Tomcat 5.5.23- mysql Connector 5.1.0- MySql 5.0.24

I need help to make this work. Tomcat works perfect, mysql works perfect jsp pages can work perfect but simple jsp page or war file that needs to connect mysql don't work. What am I doing wrong? I tried to change web.xml, context.xml but still nothing changed. non of the advices on this forum solved this problem...

please HELP!!

CLASSPATH C:\Program Files\Tomcat\common\lib

JAVA_HOME C:\Program Files\Java\jdk1.6.0

TOMCAT_HOMEC:\Program Files\Tomcat

when I try to go to url that I deployed as a war file I get:

exception

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

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

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

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

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

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

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

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

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

root cause

java.lang.NullPointerException

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

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

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

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

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

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

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

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

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

when I try to go to simple jsp page which is located in root I get :

-I put "faces/" in url" otherwise I get Cannot find FacesContext error-

exception

org.apache.jasper.JasperException: Access denied for user ''@'localhost' (using password: NO)

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrappe r.java:476)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

root cause

javax.servlet.ServletException: Access denied for user ''@'localhost' (using password: NO)

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl .java:846)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.j ava:779)

org.apache.jsp.de_jsp._jspService(de_jsp.java:77)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

root cause

java.sql.SQLException: Access denied for user ''@'localhost' (using password: NO)

com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1056)

com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)

com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2938)

com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:855)

com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3337)

com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1217)

com.mysql.jdbc.Connection.createNewIO(Connection.java:1930)

com.mysql.jdbc.Connection.<init>(Connection.java:716)

com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)

sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)

sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)

java.lang.reflect.Constructor.newInstance(Constructor.java:513)

com.mysql.jdbc.Util.handleNewInstance(Util.java:353)

com.mysql.jdbc.Connection.getInstance(Connection.java:295)

com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)

java.sql.DriverManager.getConnection(DriverManager.java:582)

java.sql.DriverManager.getConnection(DriverManager.java:185)

org.apache.jsp.de_jsp._jspService(de_jsp.java:57)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

[5576 byte] By [aircana] at [2007-11-27 4:10:48]
# 1
Hi!Try to read here: http://wiki.netbeans.org/wiki/view/DeploymentOnExternalTomcatforNB6I hope it helps.Thanks,.Roman.
-Grif-a at 2007-7-12 9:16:27 > top of Java-index,Development Tools,Java Tools...