Hi,
I'm trying to get Quercus to run on Tomcat 6, and I'm running into problems. I used Eclipse's Project wizard to open the Quercus war and extracted the files and copied the quercus.jar, script-10.jar and resin-util.jar files from the project's WebContent/WEB-INF/lib/ directory to C:\apache-tomcat-6.0.14\li
b (I would like to have the qercus libs install globally for all of my apps instead of having them in my web app lib directory, since my production servers are already running resin & quercus together & I don't want to have to remove files from my lib directory when deploying to production).
My web.xml file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns="
http://java.sun.com/xml/ns/javaee"
xmlns:web="
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID" version="2.5">
<display-name>MesEduSchool
sProject</
display-na
me>
<welcome-file-list>
<welcome-file>index.php</w
elcome-fil
e>
<welcome-file>index.html</
welcome-fi
le>
<welcome-file>index.htm</w
elcome-fil
e>
<welcome-file>index.jsp</w
elcome-fil
e>
<welcome-file>default.html
</welcome-
file>
<welcome-file>default.htm<
/welcome-f
ile>
<welcome-file>default.jsp<
/welcome-f
ile>
</welcome-file-list>
<listener>
<listener-class>teska.back
end.Sessio
nCounter</
listener-c
lass>
</listener>
<servlet>
<servlet-name>Quercus Servlet</servlet-name>
<servlet-class>
com.caucho.quercus.servlet
.QuercusSe
rvlet
</servlet-class>
<!-- Specifies the encoding Quercus should use to read in PHP scripts.
Uncomment this if you're having "invalid utf-8" errors.
-->
<!--
<init-param>
<param-name>script-encodin
g</param-n
ame>
<param-value>ISO-8859-1</p
aram-value
>
</init-param>
-->
<!-- Tells Quercus to use the following JDBC database and to ignore the
arguments of mysql_connect().
- From Sinner
Note this must be JNDI configured (see readme)
and wont work with CMS Spring Configured Non JNDI pool
this wont be an issue if all bus logic is done in spring anyways
but if you want to use php mysql libraries directly another connection
pool will need to be configured via JNDI
-->
<!--
<init-param>
<param-name>database</para
m-name>
<param-value>jdbc/test</pa
ram-value>
</init-param>
-->
<!--
<init-param>
<param-name>php-ini-file</
param-name
>
<param-value>WEB-INF/php.i
ni</param-
value>
</init-param>
-->
</servlet>
<servlet-mapping>
<servlet-name>Quercus Servlet</servlet-name>
<url-pattern>*.php</url-pa
ttern>
</servlet-mapping>
</web-app>
When I restart my tomcat server and view my webapp that uses php, jsp & java I get the following error message:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.IllegalStateExce
ption
org.apache.catalina.connec
tor.Respon
seFacade.s
endRedirec
t(Response
Facade.jav
a:435)
com.caucho.quercus.lib.Htt
pModule.he
ader(HttpM
odule.java
:112)
sun.reflect.NativeMethodAc
cessorImpl
.invoke0(N
ative Method)
sun.reflect.NativeMethodAc
cessorImpl
.invoke(Un
known Source)
sun.reflect.DelegatingMeth
odAccessor
Impl.invok
e(Unknown Source)
java.lang.reflect.Method.i
nvoke(Unkn
own Source)
com.caucho.quercus.module.
StaticFunc
tion.invok
e(StaticFu
nction.jav
a:120)
com.caucho.quercus.env.Jav
aInvoker.c
all(JavaIn
voker.java
:615)
com.caucho.quercus.env.Jav
aInvoker.c
all(JavaIn
voker.java
:488)
com.caucho.quercus.env.Jav
aInvoker.c
all(JavaIn
voker.java
:473)
com.caucho.quercus.expr.Fu
nctionExpr
.evalImpl(
FunctionEx
pr.java:18
2)
com.caucho.quercus.expr.Fu
nctionExpr
.eval(Func
tionExpr.j
ava:126)
com.caucho.quercus.program
.ExprState
ment.execu
te(ExprSta
tement.jav
a:64)
com.caucho.quercus.program
.BlockStat
ement.exec
ute(BlockS
tatement.j
ava:99)
com.caucho.quercus.program
.QuercusPr
ogram.exec
ute(Quercu
sProgram.j
ava:239)
com.caucho.quercus.page.In
terpretedP
age.execut
e(Interpre
tedPage.ja
va:61)
com.caucho.quercus.page.Qu
ercusPage.
executeTop
(QuercusPa
ge.java:11
9)
com.caucho.quercus.servlet
.QuercusSe
rvletImpl.
service(Qu
ercusServl
etImpl.jav
a:163)
com.caucho.quercus.servlet
.QuercusSe
rvlet.serv
ice(Quercu
sServlet.j
ava:353)
javax.servlet.http.HttpSer
vlet.servi
ce(HttpSer
vlet.java:
803)
Does anyone know what I can do to fix this problem? I have no idea what the error message means.
Thanks so much for assisting me on this!
Courtenay