Re: Not finding my servlet ....
Tomcat Contexts are configured in server.xml If docBase is a relative path it points to a sub-directory of tomcat/webapps If you want to have your application directory somewhere else you need to use an absolute pathname for docBase. The docBase directory should contain the following subdirectories: # Application java classes dir WEB-INF/classes # Application jar/zip files dir WEB-INF/lib server.xml Context examples: Context path=/examples docBase=examples ... ... /Context Context path=/myapp docBase=/path/to/myapp debug=0 reloadable=true crossContext=true / See http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html So if you want to use in your own servlet, either create a new Context and Directory or put it somewhere in tomcat/webapps/examples/ At 21:28 20.07.2003 -0400, you wrote: Hi All, I have Tomcat installed and running. I'm trying to get it to see a test sevlet but it can't seem to find it. I started looking at the example code that comes with the 4.1.24 release. I can call the HelloWorldExample servlet from my html code and it executes fine. I went through all of the configuration (.xml) files to see how this works and couldn't find HelloWorldExample anywhere. I assumed I entered my servlet in my web.xml incorrectly but now I'm confused since I can't find the example servlet in a .xml file. Can anyone shed some light? Thanks much ... Jeff seera naveen wrote: Hi, Where can I find information about Context? Currently I am using Sun ONE studio to assign context to a web application. But, how to assign a context to a web application manually? From the list, I found that by using Context element we can achieve that, but I am using Tomcat4.1.24 bundled with Jboss3.2.1. Please help me!! Thanks in advance. Naveen SMS using the Yahoo! Messenger;Download latest version. - 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]
RE: Not finding my servlet ....
Howdy, I have Tomcat installed and running. I'm trying to get it to see a test sevlet but it can't seem to find it. I started looking at the If you post the exact error you'll likely get the cause and solution very quickly ;) example code that comes with the 4.1.24 release. I can call the HelloWorldExample servlet from my html code and it executes fine. I went through all of the configuration (.xml) files to see how this works and couldn't find HelloWorldExample anywhere. That's because the Invoker servlet is explicitly mapped in $CATALINA_HOME/webapps/examples/WEB-INF/web.xml. So there is no explicit entry for the HelloWorldExample servlet as you would ordinarily have. For your servlet, map it in your web.xml file. Don't rely on the invoker servlet. If you need help with specific details, just ask ;) Yoav Shapira 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]
Not finding my servlet ....
Hi All, I have Tomcat installed and running. I'm trying to get it to see a test sevlet but it can't seem to find it. I started looking at the example code that comes with the 4.1.24 release. I can call the HelloWorldExample servlet from my html code and it executes fine. I went through all of the configuration (.xml) files to see how this works and couldn't find HelloWorldExample anywhere. I assumed I entered my servlet in my web.xml incorrectly but now I'm confused since I can't find the example servlet in a .xml file. Can anyone shed some light? Thanks much ... Jeff seera naveen wrote: Hi, Where can I find information about Context? Currently I am using Sun ONE studio to assign context to a web application. But, how to assign a context to a web application manually? From the list, I found that by using Context element we can achieve that, but I am using Tomcat4.1.24 bundled with Jboss3.2.1. Please help me!! Thanks in advance. Naveen SMS using the Yahoo! Messenger;Download latest version. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]