You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nancy Crisostomo Martinez <na...@correo.uqroo.mx> on 2002/02/07 21:52:11 UTC
Re: WEB-INF/classes
Anja,
If you are using Tomcat 3.3 you need to create an XML file (apps-applicationname.xml) where you have to declare the new context where your WEB-INF directory is...
Otherwise, if you are using Tomcat 3.2 or less, you have to modify the server.xml file using the new Context entry.
Is something like this:
<Context path="/applicationname"
docBase="webapps/applicationname"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
Hope this help you..
Anja Falkner wrote:
> Hello,
>
> at setting up a new context for Tomcat, I must have forgotten something, because tomcat doesn't find my classes in WEB-INF/classes. The following fault appears:
>
> login_0005ftest$jsp.java:71: Class org.apache.jsp.DBSConnect not found.
> DBSConnect connect = new DBSConnect();
>
> Until now I thought: When Tomcat is restarted, it recognizes the content in WEB-INF/classes.
>
> But perhaps I have to make some entries in server.xml or web.xml referring to this classes?
>
> Thank you for any help
>
> Anja
Re: WEB-INF/classes
Posted by Nancy Crisostomo Martinez <na...@correo.uqroo.mx>.
Anja, I'm not sure, but I know that Tomcat 3.3 and later have a similar
behavior.
So the only thing you have to do is to create the apps-contextname.xml
file and put it on tomcat-path/conf directory:
The xml file is like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<webapps>
<Context path="/contextname"
docBase="webapps/contextname"
debug="0"
reloadable="true" >
</Context>
</webapps>
If you want to can check the apps-examples.xml file that gives you a hint
of this...:-)
Nancy.
Anja Falkner wrote:
> Hi Nancy,
>
> I am using Tomcat 4.0.1. What's to do here?
>
> Anja
>
> --
> To unsubscribe: <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
Re: WEB-INF/classes
Posted by Anja Falkner <an...@fimedia.de>.
Hi Nancy,
I am using Tomcat 4.0.1. What's to do here?
Anja
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>