Hi Eileen,

Jar files need to go in your WEB-INF/lib directory in order to get
automatically recognized. The WEB-INF/classes directory is for non-jarred
class files (i.e. com/domain.com/class/myclass.class)

So, move your file to:

$TOMCAT_HOME/webapps/lta/WEB-INF/lib/ltaServlet.jar

and it should work.

Hope this helps!

--jeff

----- Original Message -----
From: "eileen li" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, March 29, 2001 2:32 PM
Subject: problem of access web.xml


>
> Folks:
>
> Thanks for pay attention for my questions:
> 1. I don't think that tomcat  read my web.xml file?
> 2. I created a directory call $TOMCAT_HOME/classess and drop some of
> jar
> files which my servlet will reference. But the tomcat does not pick it
> up and put into CLASSPATH.
>
> I am tring to install servlets within a web-application and following
> the instruction of FAQ. There are the directory and files I created:
>
> $TOMCAT_HOME/webapps/lta
> $TOMCAT_HOME/webapps/lta/servlets/ManagerRequestForm.html
> $TOMCAT_HOME/webapps/lta/WEB-INF/classes/ltaServlet.jar
> $TOMCAT_HOME/webapps/lta/WEB-INF/web.xml
>
> There is the ManagerRequestForm.html:
> <html>
> <head>
> <title>Logictier Automation System Manager Request Client</title>
> </head>
> <frameset rows=75,*>
>   <frame name=LTAHeader src=LTAHeader.html scrolling=no noresize>
>   <frameset cols=300,*>
>     <frame name=ManagerRequest
> src=../servlet/logictier.lta.servlet.ManagerRequestForm scrolling= no>
>     <frame name=ManagerResponse src=empty.html scrolling=yes>
>   </frameset>
> </frameset>
> </html>
>
> The servlet java file logictier.lta.servlet.ManagerRequestForm is one
> of
> class in the jar file.
> There is my web.xml file:
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <!DOCTYPE web-app
>     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>     "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
>
> <web-app>
>     <servlet>
>         <servlet-name>
>                 ManagerRequestForm
>         </servlet-name>
>         <servlet-class>
>                 logictier.common.servlet.ManagerRequestForm
>         </servlet-class>
>         <init-param>
>             <param-name>pool</param-name>
>             <param-value>lta</param-value>
>         </init-param>
>         <init-param>
>             <param-name>port</param-name>
>             <param-value>3000</param-value>
>         </init-param>
>     </servlet>
>         <servlet-mapping>
>         <servlet-name>
>                 ManagerRequestForm
>         </servlet-name>
>         <url-pattern>
>             /ManagerRequestForm
>         </url-pattern>
>     </servlet-mapping>
>    </web-app>
>
>
> After I type in the url with servlet name, the messages said:
> ******************
> Error: 503
>
> Location:
> /lta/servlet/logictier.lta.servlet.ManagerRequestForm
>
> Missing parm: pool
> *******************
>
> The parameter has been set up in the web.xml. Can anybody tell me what
> did I missed???
>
>
> Thanks,
>
> Eileen Li
>
>
>

Reply via email to