Servlet directory
I have put some servlet classes in my web applications classes directory, however when I try to access it via the url http://localhost:8080/myapp/servlet/myservlet it does not work. It seems to only work when I put the classes in the default ROOT web app and access it via http://localhost:8080/servlet/myservlet. Is there a way of configuring tomcat to make it work from the first url???
Re: Servlet directory
Yes Micheal, I have added those entries When I try to use the servlet mapping name it gives me a CLASS NOT FOUND exception. - Original Message - From: Michael E. Locasto [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, August 03, 2002 2:44 PM Subject: Re: Servlet directory And you've provided appropriate servelet and servlet-mapping entries in your web.xml? -Michael - Original Message - From: Daliso Zuze [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, August 03, 2002 4:51 AM Subject: Servlet directory I have put some servlet classes in my web applications classes directory, however when I try to access it via the url http://localhost:8080/myapp/servlet/myservlet it does not work. It seems to only work when I put the classes in the default ROOT web app and access it via http://localhost:8080/servlet/myservlet. Is there a way of configuring tomcat to make it work from the first url??? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Servlet directory
Thanks, I got it working now, I had misplaced the classes directory. Daliso - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, August 03, 2002 7:18 PM Subject: Re: Servlet directory The way you are trying to access this servlet implies a couple of assumptions: 1. Your servlet is in the default package. That is to say that it exist in WEB-INF/classes and not some directory deeper inside of that. 2. Your class is all lower case myservlet since that is how it is written on the URL your provided below. I think it is probably likely that #1 is true. However, I'm guessing that #2 is not. The general practice for naming classes is to use Capital letters for each distinct part of the class name. For instance, you probably named your class MyServlet, not myservlet. As such, the URL you provided won't work. It should be: http://localhost:8080/myapp/servlet/MyServlet Note that servlet and servlet-mapping entries in your own web.xml have nothing in particular to do with accessing your class through Tomcat's default servlet invoker which is mapped to /[your context]/servlet/*. The other thing you should look at is that the directory that your app is running out of exists in: $TOMCAT_HOME/webapps/myapp make sure that myapp is in all lower case. Oh, and make sure that there are no spaces in $TOMCAT_HOME. If you have it installed in a directory like Program Files, you can do the following (on Windows). I'll use my setup as an example. $CATALINA_HOME=C:\Progra~1\Apache~1\Jakarta\tomcat-4.1.8 The original path is: C:\Program Files\Apache Group\Jakarta\tomcat-4.1.8 Just use the tilde's to fix directory names which have spaces. The names with tilde's can be no more than 8 chars long. Restart Tomcat after using the hints above and things should work just fine. Jake At 10:51 AM 8/3/2002 +0200, you wrote: I have put some servlet classes in my web applications classes directory, however when I try to access it via the url http://localhost:8080/myapp/servlet/myservlet it does not work. It seems to only work when I put the classes in the default ROOT web app and access it via http://localhost:8080/servlet/myservlet. Is there a way of configuring tomcat to make it work from the first url??? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
STARTING TOMCAT
IS THERE ANY CONFIRMATION THAT YOU CAN GET THAT TOMCAT IS ACTUALLY RUNNING APART FROM TRYING http://localhost:8080 I've tried starting up tomcat on SuSE linx 6.2, everything seemed alright but no response on localhost:8080, I don't know what to try next? What should I be looking for in the log file? Daliso Zuze University of Namibia +264 81 248 4931 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Problems starting tomcat on SuSE linux
= Thu Nov 29 18:00:22 2001 Elapsed Time = 2 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.3.1_01 mixed mode) # # An error report file has been saved as hs_err_pid6614.log. # Please refer to the file for further information. # Daliso Zuze University of Namibia +264 81 248 4931 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: STARTING TOMCAT
Thanks Avi, what exactly should it show if tomcat is running? Daliso - Original Message - From: Avi Green [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, November 30, 2001 3:20 AM Subject: Re: STARTING TOMCAT IS THERE ANY CONFIRMATION THAT YOU CAN GET THAT TOMCAT IS ACTUALLY RUNNING APART FROM TRYING http://localhost:8080 1. Check ps $ ps aguwwx |grep -i tomcat 2. Check netstat $ netstat -elpt == = Avi Green :-) avi at sputnik7.com (-: 212 320-3735 = Unix SysAdmin System Specialist = http://www.sputnik7.com - chronic online entertainment http://www.res.com - The Future of Filmmaking http://www.epitonic.com - Hi Quality Free MP3 Music http://www.we-deliver.tv - Log on, order in, smoke out -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
STARTING TOMCAT: JAVA_HOME ERROR
Hello all, I have a small problem starting up tomcat 4.0.1. I followed the instructions for installing the jdk, and I extracted tomcat to a directory. Then as required, I set environment variables for JAVA_HOME and CATALINA_HOME. When it comes to starting up tomcat the following message is displayed: Must set java_home to point to the jdk installation directory (or something like that) If anyone could help me out, I'd really appreciate it. Thanks, Daliso Daliso Zuze University of Namibia +264 81 248 4931 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
FAILING TO CONNECT TO TOMCAT ON PORT 8080
Hello, I am running SUSE Linux 6.2 and I have recently installed the jdk1.3.1 and tomcat 1.4.1. I ran the startup.sh script as required and it seemed to have executed properly but the server does not respond to requests on port 8080 from my web browser. If anyone has any clues I'd appreciate it Daliso