Timi1982
|
Posted: 04/20/2005, 3:17 AM |
|
Hello,
I have created a WebApp and when I want to public it on the tomcat 5 Server I got the following Message:
Fehler: [jar] Building jar: C:\DOKUME~1\tlessner\LOKALE~1\Temp\~jsp32\CCSBuild\appWar\jsp3.war
When I call the page1.jsp in the tomcat I got also a lot of bad messages
exception
org.apache.jasper.JasperException: Unable to create connection 'mysqlLESSSRV' to the database.
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.RuntimeException: Unable to create connection 'mysqlLESSSRV' to the database.
com.codecharge.db.PoolJDBCConnection.getConnection(PoolJDBCConnection.java:19)
com.codecharge.db.JDBCConnection.<init>(JDBCConnection.java:80)
com.codecharge.db.PoolJDBCConnection.<init>(PoolJDBCConnection.java:11)
com.codecharge.db.JDBCConnectionFactory.getJDBCConnection(JDBCConnectionFactory.java:36)
com.codecharge.db.JDBCConnectionFactory.getJDBCConnection(JDBCConnectionFactory.java:27)
com.codecharge.GridProcessor.select(GridProcessor.java:90)
com.codecharge.GridProcessor.process(GridProcessor.java:65)
com.codecharge.PageProcessor.process(PageProcessor.java:28)
com.codecharge.PageController.process(PageController.java:155)
org.apache.jsp.page1_jsp._jspService(page1_jsp.java:189)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Have anyone an idea???
The COnnection to the database is correct. I also have the MySQL jar iin the shared folder of the tomcat and it is also in the classpath.
|
|
|
mrachow
Posts: 509
|
Posted: 04/25/2005, 3:08 AM |
|
Do you have really spelled your jndi database connection on TOMCAT this way:
mysqlLESSSRV?
_________________
Best regards,
Michael |
|
|
|