Tim,

> I am following:
>
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html
Good start.

>
> 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
>
I recommend for the purpose of testing to access Tomcat directly if
possible. MySQL version may cause issues as noted by Tom. Once everything
else is fixed, we'll see.


> 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
That is the correct place for the driver.

>
> 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(DefaultErrorHandler.
java:94)
snip...
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
This looks odd to me. Don't have an answer at this point. Look into Tom's
sugestions.

>
> What is wrong with my configuration?
To answer this it is much easier if we can see them.

>
> 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?
Yes and no.
To keep things simple and to start you down the path of Tomcat knowledge,
for now create the context section as shown in the example. Later you can
move it to context.xml. Look up the context section under server
configuration for more detail.

>
> 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/??
Under /DBTest/WEB-INF/ in the web.xml for your app.

>
> 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"??
No. IMHO  You need to create the file structure and the web.xml. Not sure
what else as I use .war files.

Doug



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to