You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Eduardo Kotujansky <ed...@complex.com.br> on 2002/12/18 18:38:08 UTC
basic tomcat configuration
I can only run servlets at webapps\examples\WEB-INF\classes.
If I put a servlet at webapps\myApp\WEB-INF\classes , does not work.
any help?
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: basic tomcat configuration
Posted by Eduardo Kotujansky <ed...@complex.com.br>.
Ok, there was no <servlet-mapping> at my myApp/WEB_INF/web.xml. It worked .
but... Why I can just save a servlet at examples/WEB_INF/classes and it
works ? With out
put anything at examples web.xml file.
The myApp Context in server.xml file is ok
( <Context path="/myApp" docBase="myApp"/> )
Thanks for any help
Eduardo
----- Original Message -----
From: "Dodd Gatsos" <dg...@slb.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Wednesday, December 18, 2002 3:44 PM
Subject: Re: basic tomcat configuration
> Is this standalone or through apache with mod_jk?
>
> If mod_jk, is the Alias for myApp added and the JkMount in the mod_jk.conf
> file?
> Alias /myApp "/Tomcat/webapps/myApp"
> JkMount /myApp/* ajp13
>
> Is the myApp Context added to the server.xml file?
> <Context path="/myApp" docBase="myApp"/>
>
> Is the <servlet> and <servlet-mapping> setup in the
> webapps/myApp/WEB-INF/web.xml file?
> <servlet>
> <servlet-name>servletname</servlet-name>
> <servlet-class>classname</servlet-class>
> </servlet>
> <servlet-mapping>
> <servlet-name>servletname</servlet-name>
> <url-pattern>/urlname</url-pattern>
> </servlet-mapping>
>
> Lastly, check the log files to ensure that your Context is being
> successfully loaded and not failing due to an XML parsing error.
>
> ----- Original Message -----
> From: "Eduardo Kotujansky" <ed...@complex.com.br>
> To: <to...@jakarta.apache.org>
> Sent: Wednesday, December 18, 2002 11:38 AM
> Subject: basic tomcat configuration
>
>
> >
> > I can only run servlets at webapps\examples\WEB-INF\classes.
> > If I put a servlet at webapps\myApp\WEB-INF\classes , does not work.
> >
> > any help?
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: basic tomcat configuration
Posted by Dodd Gatsos <dg...@slb.com>.
Is this standalone or through apache with mod_jk?
If mod_jk, is the Alias for myApp added and the JkMount in the mod_jk.conf
file?
Alias /myApp "/Tomcat/webapps/myApp"
JkMount /myApp/* ajp13
Is the myApp Context added to the server.xml file?
<Context path="/myApp" docBase="myApp"/>
Is the <servlet> and <servlet-mapping> setup in the
webapps/myApp/WEB-INF/web.xml file?
<servlet>
<servlet-name>servletname</servlet-name>
<servlet-class>classname</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>servletname</servlet-name>
<url-pattern>/urlname</url-pattern>
</servlet-mapping>
Lastly, check the log files to ensure that your Context is being
successfully loaded and not failing due to an XML parsing error.
----- Original Message -----
From: "Eduardo Kotujansky" <ed...@complex.com.br>
To: <to...@jakarta.apache.org>
Sent: Wednesday, December 18, 2002 11:38 AM
Subject: basic tomcat configuration
>
> I can only run servlets at webapps\examples\WEB-INF\classes.
> If I put a servlet at webapps\myApp\WEB-INF\classes , does not work.
>
> any help?
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>