I already had one setup:
<Context displayName="My Application" docBase="/opt/application/appname" path="/appname" workDir="work/Catalina/localhost/appname">
</Context>
Nathan
[EMAIL PROTECTED] wrote:
You may have to deploy an appname.xml file under the /conf/catalina/localhost directory. In the file put the following:
<Context docBase="appname" path="/opt/application/appname" />
Tomcat needs to find the jsp file unlike the servlet class file, which resides in a jar file in your appname/WEB-INF/lib directory. Tomcat will compile the jsp, if it hasn't already done so, and place the class file in the /tomcat/work/catalina/localhost/appname directory, from which it will get executed.
----- Original Message ----- From: Nathan Aaron <[EMAIL PROTECTED]> Date: Thursday, January 27, 2005 1:33 pm Subject: Re: Oracle JDBC
The pain factor of moving the app would be too great at this point.
What doesn't make sense is that I have a servlet that runs and uses the jdbc driver in shared/libs the servlet code is in /opt/application/appname/WEB-INF/lib. The jsp page is located in /opt/application/appname. My application is deployed under /opt/application/appname.
It is strange.
Nathan
[EMAIL PROTECTED] wrote:
Not sure if you can have your JSPs/servlets outside of the Tomcatcontexts structure. I think Tomcat, actually I think Servlet spec 2.3, expects a certain directory tree to be in place. So, it will look in the application context WEB-INF/lib directory, then up the tree to the shared/lib directory and then up the tree to the common/lib directory for jar files.
Tomcat's context structure (i.e., tomcat/webapps/appname. That's basically the standard.Someone, please correct me if I'm wrong here.
Why don't you just replicate your application structure within
though!>>----- Original Message ----- From: Nathan Aaron <[EMAIL PROTECTED]> Date: Thursday, January 27, 2005 12:58 pm Subject: Re: Oracle JDBC
Already tried it. Still doesn't work. Thanks for the interest
--Nathan
Dustin wrote:
You need to place the driver in common/lib.
Dustin
--- Nathan Aaron <[EMAIL PROTECTED]> wrote:
I have the Oracle jdbc driver installed in Tomcat's----------------------------------------------------------------
shared/lib directory. I have a JSP file that resides in the
webapps/jsp-examples that connects to an Oracle database successfully. When I move it to a context (/opt/application/appname) outside one of
the contexts that are included with Tomcat 5.0.28 the jsp stops connecting
to the database. I get "java.sql.SQLException: No suitable driver" like
it can't load the JDBC driver. What is odd is that I have a servlet
that connects to the database fine and it is in the
/opt/application/appname/WEB-INF/lib directory. Any help would be greatly appreciated.
Nathan
-----
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
__________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com
----------------------------------------------------------------
[EMAIL PROTECTED]>>>---
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: tomcat-user-
-------------------------------------------------------------------
----------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
------------------------------------------------------------------- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]