failed to deploy in tomcat5.5.20

I need help.

My application worked well on appserv pe8.2.

When I tested it in tomcat, exceptions were thrown out.

/****************************************/

exception

javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConn ection(Http11BaseProtocol.java:664)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:5 27)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorke rThread.java:80)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:6 84)

java.lang.Thread.run(Thread.java:595)

root cause

java.lang.NullPointerException

javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConn ection(Http11BaseProtocol.java:664)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:5 27)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorke rThread.java:80)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:6 84)

java.lang.Thread.run(Thread.java:595)

Fan

[1814 byte] By [Jack.Fan] at [2007-11-26 11:00:34]
# 1
Did you check out this? http://developers.sun.com/prodtech/javatools/jscreator/reference/docs/help/depl oy/howtodeploy/deploy_tomcat.htmlHTH,Sakthi
sakthivelgopal at 2007-7-7 3:14:13 > top of Java-index,Development Tools,Java Tools...
# 2
I had checked it.I succeeded ever, but failed now.thanks.hope reply.
JackFan at 2007-7-7 3:14:13 > top of Java-index,Development Tools,Java Tools...
# 3
insert followed code into web.xml.<listener><listener-class>com.sun.faces.config.ConfigureListener</listener-class ></listener>webapp will work.
JackFan at 2007-7-7 3:14:13 > top of Java-index,Development Tools,Java Tools...
# 4
Sometime is a problem of path composition .... I had a similar problem, solved installing Tomcat in C:\tomcat55.
pascali at 2007-7-7 3:14:13 > top of Java-index,Development Tools,Java Tools...
# 5
I am experiencing the same problem. Got back to 5.5.17 and is now working.Tomorrow I will try to install 5.5.20 in a different directory to see if that solves the problem.
SPITU at 2007-7-7 3:14:13 > top of Java-index,Development Tools,Java Tools...
# 6

We have a similar problem with some JSC applications that work fine in Tomcat 5.5.17 but when we run them under 5.5.20, the CPU usage goes to 100% and the tomcat jvm hangs the machine. We had to revert back to 5.5.17. We do not know if the problem is with the JSC application or with Tomcat 5.5.20.

nethompson at 2007-7-7 3:14:13 > top of Java-index,Development Tools,Java Tools...
# 7

Hi,

I managed to get web pages that are NOT using the database connection work.

Web pages that uses the database connection generates the following error:

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (ORA-00911: invalid character

)

See the sql query below *). What can cause this error ?

*)

SELECT BININDEX, STATE, TPNAME, HOSTINITIATES, AUX1, to_char(TS,'yyyy-mm-dd:HH24:mi:SS') TS, to_char(STARTTIME,'yyyy-mm-dd:HH24:mi:SS') STARTTIME, OPERATIONID FROM (SELECT * FROM BC_AUDIT WHERE TS between to_date(?,'yyyy-mm-dd:HH24:mi') AND to_date(?,'yyyy-mm-dd:HH24:mi') ORDER BY TS DESC) WHERE ROWNUM <= 1000

krister16 at 2007-7-7 3:14:13 > top of Java-index,Development Tools,Java Tools...
# 8
Hi Krister16,not 100% sure about this but...I would check the parameters for the JNDI and the JDBC DataSource in particular. It seems to me that your problem is that you are not able to connect to your database.Take careLuca
SPITU at 2007-7-7 3:14:13 > top of Java-index,Development Tools,Java Tools...
# 9

Thanks Luca,

the problem was the ";" in the validationQuery.

I removed it and now it works :-)

<Resource

name="jdbc/B2B"

auth="Container"

type="javax.sql.DataSource"

factory="org.apache.commons.dbcp.BasicDataSourceFactory"

password="xxxxx"

driverClassName="com.inet.ora.OraDriver"

maxIdle="2"

maxWait="5000"

validationQuery="select max(binindex) from bc_audit"

username="xxxxxxx"

url="jdbc:inetora:xxxxxxx:oracle"

maxActive="4"/>

/Regards Krister

krister16 at 2007-7-7 3:14:13 > top of Java-index,Development Tools,Java Tools...
# 10
this might help http://forum.sun.com/jive/thread.jspa?messageID=386412
InfoSysExperts at 2007-7-7 3:14:13 > top of Java-index,Development Tools,Java Tools...