did you try a fresh installation of tomcat? I'm sure that would solve your problem.
Each of your apps has a web.xml file and tomcat does not generate them itself. You write them yourself, or at least copy and edit them for each app you run on tomcat. To find out more about web.xml, read the servlet 2.3 specification from java.sun.com. It's quite readable.
You also need to read up on the configuration of tomcat 'context' - the docs on the jakarta website are very comprehensive.
In a normal installation of tomcat 4.1.x you will have a webapps directory jakarta-tomcat-4.1.xx/webapps and in that directory you will have a few applications in their subdirectories, plus the admin.xml file (and also the manager.xml file).
The ROOT directory is just an application that appears on your website without any additional directory, i.e. http://localhost:8080/
Admin will be at http://localhost:8080/admin/
A directory under webapps normally be at http://localhost8080/directory/
If you do not have the admin.xml file, then you are not working with a default installation of tomcat. Since you are learning about tomcat, I would strongly recommend doing a fresh installation and seeing how the admin app works by default.
HTH, Adam
On 09/24/2003 05:14 AM Sarika N Inamdar wrote:
Hi Adam and Yoav,
Thanks much for the inputs.
In our tomcat deployment we do not have admin.xml at all since we are
not using any admin applications.
Web.xml under webapps/ROOT/WEB-INF/lib has not been modified manually.
It is generated when we build ROOT.war.
Is there a way we can control as to how the web.xml be generated. I've no idea on how to use the web.xml. Am not sure why and how the actionServlet has come into web.xml
Please let me know how can I avoid having this struts action Servlet in my web.xml. Because I thought a copy of web.xml is generated during ROOT.war deployment.
Any light on this would be really helpful.
Thanks, Sarika
-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 6:29 PM
To: Tomcat Users List
Subject: RE: Is struts.jar mandatory for tomcat 4.1.24 ?
Howdy,
Why do you have the struts action servlet defined in web.xml and don't have the struts jar? Neither is required for tomcat, but if you have one you need to have the other...
Yoav Shapira Millennium ChemInformatics
-----Original Message----- From: Sarika N Inamdar [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 4:37 AM To: 'Tomcat Users List' Subject: RE: Is struts.jar mandatory for tomcat 4.1.24 ?
Hi,
Thanks for the inputs. We do not use any admin applications. We have web.xml in ROOT/WEB-INF/ directory. It has the following entry :
<servlet> <servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>application</param-name> <param-value>ApplicationResources</param-value> </init-param>
Is there a way that we can tell tomcat not to use struts.jar ? Do we need to make any changes in the web.xml ?
Please let us know on this.
Thanks Much, Sarika
-----Original Message----- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 1:49 PM To: Tomcat Users List Subject: Re: Is struts.jar mandatory for tomcat 4.1.24 ?
No it's not mandatory. But tomcat's admin app uses struts. This is controlled by an .xml file in your webapps directory, and
it points
to the deployment in tomcat/server/webapps/admin.
Adam
On 09/23/2003 06:07 AM Sarika N Inamdar wrote:
Hi All,
Please let me know if struts.jar should be present under
/WEB-INF/lib
with tomcat 4.1.24 ?
We have jps's which do not struts. But when I start
tomcat,encounter
the following exception in /logs/localhost_log file . This
execption
does not hamper the functionality though !!!
2003-09-22 20:33:01 StandardContext[]: Servlet threw
load() exception
javax.servlet.ServletException: Wrapper cannot find
servlet class
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.org.apache.str uts.action.ActionServlet or a class it depends on at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82java:891) at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex3) at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3t.java:3420) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)608) at
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347at
---------------------------------------------------------------------
Thanks in Advance, Sarika
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
-- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9
---------------------------------------------------------------------
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]
This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
--------------------------------------------------------------------- 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]
-- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]