tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From The Gman <gmanrockstom...@yahoo.com>
Subject RE: Tomcat5 - MySql5.0.0a - apache2.0 - XP - JNDI connection problems
Date Fri, 02 Apr 2004 19:06:58 GMT
I apologize - but I haven't been receiving any of the tomcat-user lists emails to my previous
email account. I have since switched to this one. Anyway...
 
Tom K. - asked:
Are you using jstl tags to connect to your database? Looking at your
error, I noted the path http://java.sun.com/jsp/jstl/sql You are using
the preview version of mySQL (Version 5), has connectorJ been tested
with it...I don't know, I'm just asking. 

My response: I'm a newbie on the configuration so I was just following
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html

I would have no idea if it has been tested - how could I find out?
 
 
My previous email:
 
I am following:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html

I am running windows XP - have apache 2.0.48 and Tomcat 5.0.19 up and
running with j2sdk1.4.2_04. I am also running MySql5.0.0a

Under $CATALINA_HOME/comon/lib
  mysql-connector-java-3.0.11-stable-bin
  commons-collections.3.0.jar
  commons-dbcp-1.1.jar
  commons-pool-1.1.jar

When I run the test code - test.jsp I get the following error:

Exception report:
org.apache.jasper.JasperException: The absolute uri:
http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or
the
jar files deployed with this application

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
ler.java:94)
        
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java
:404)
        
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java
:154)

org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLib
raryInfoImpl.java:359)

org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.
java:190)
        
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458)
        
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523)
        
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577)
        org.apache.jasper.compiler.Parser.parse(Parser.java:171)
        
org.apache.jasper.compiler.ParserController.doParse(ParserController.jav
a:258)
        
org.apache.jasper.compiler.ParserController.parse(ParserController.java:
139)
        
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
        
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:553)
        
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:291)
        
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
        
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

What is wrong with my configuration?

Step 2. server.xml configuration says "</Context> tag of the examples
context and the </Host>"
My server.xml doesn't have <Context> tags should there be one?

Step 3. web.xml configuration - Do I make/add these changes to the
web.xml
under $CATALINA\ROOT\WEB-INF or under a subdirectory called /DBTest/??

Step 4. test code says "deploy your web app into $CATALINA_HOME/webapps
either as a warfile called DBTest.war orinto a subdirectory called
DBTest."
So, I created a directory called DBTest and just put the test.jsp file
into
that directory - doesn't that qualify as "deploying"??

Thanks for any help to fix my configuration.

Tim



---------------------------------
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway - Enter today
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message