Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 71285 invoked from network); 1 Mar 2001 19:22:38 -0000 Received: from smtp1.netcarrier.net (HELO smtp2.netcarrier.net) (209.140.172.6) by h31.sny.collab.net with SMTP; 1 Mar 2001 19:22:38 -0000 Received: (qmail 3931 invoked from network); 1 Mar 2001 19:14:03 -0000 Received: from user216-178-67-238.netcarrier.net (HELO newport) (216.178.67.238) by smtp1.netcarrier.net with SMTP; 1 Mar 2001 19:14:03 -0000 From: "mikhail malamud" To: Subject: RE: Please help. Going Nuts. Date: Thu, 1 Mar 2001 14:18:07 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N ajp13 connector is set up properly because default app works fine with it and so do my jsp's. As you recommended, I decided to get simple things to get to work first. So, I tried to execute a servlet not in /WEB-INF/classes/edu/myschoo/util/HelloWorldExample but simply in /WEB-INF/classes/HelloWorldExample. This time tomcat found it. And here is the error I got. Why does the same servlet work under default package or even in /examples-test but wont work under my webapp directory. ************************************** Error: 500 Location: /vitamin/servlet/HelloWorldExample Internal Servlet Error: java.util.MissingResourceException: Can't find bundle for base name LocalStrings, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.ja va:707) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604) at java.util.ResourceBundle.getBundle(ResourceBundle.java:559) at HelloWorldExample.doGet(HelloWorldExample.java:25) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav a:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnec tion(Ajp13ConnectionHandler.java:160) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416 ) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49 8) at java.lang.Thread.run(Thread.java:484) ********************************************** -----Original Message----- From: Jan Labanowski [mailto:jkl@osc.edu] Sent: Thursday, March 01, 2001 1:28 PM To: tomcat-user@jakarta.apache.org Cc: Jan Labanowski Subject: RE: Please help. Going Nuts. On Thu, 1 Mar 2001, mikhail malamud wrote: > OK. I got this to work. What's the next step, Jan? Read my message again... There were more steps there {:-)}... Read the notes at http://www.ccl.net/cca/software/UNIX/apache/index.shtml and http://www.ccl.net/cca/software/UNIX/apache/tomcatfaq.shtml Primarily check if your web.xml is correct and in correct place, if your server.xml has an entry: and you have there. And if the port is for ajp13 is the same as in worker.properties file. Check if your worker.properties are configured correctly for apj13 and if you are including the right file in the httpd.conf Once you corrected/cheked everything restart kill apache, kill tomcat start tomcat, start apache. > > -----Original Message----- > From: Jan Labanowski [mailto:jkl@osc.edu] > Sent: Thursday, March 01, 2001 12:51 PM > To: tomcat-user@jakarta.apache.org > Cc: Jan Labanowski > Subject: Re: Please help. Going Nuts. > > > One thing at a time... Do not start from most complicated stuff... Try > to make hello world JSP to work first > In your directory > /usr/local/apache/htdocs/vitamin put a file: > > hello.jsp > > > > Hello World > > > > and try to get it in the browser: > > http://my.machine.com:8080/vitamin/hello.jsp > and do it the same with your apache port, say > http://my.machine.com/vitamin/hello.jsp > > (I do not know what your ports are, so you need to change it) > > > On Thu, 1 Mar 2001, mikhail malamud wrote: > > > ################################################ > > mod_jk.conf. Apache Includes it in httpd.conf > > > > Alias /vitamin "/usr/local/apache/htdocs/vitamin" > > > > Options Indexes FollowSymLinks > > > > > > JkMount /vitamin/servlet/* ajp13 > > JkMount /vitamin/*.jsp ajp13 > > > > > > > > AllowOverride None > > deny from all > > > > Looks OK... > > > > ################################################## > > > docBase="/usr/local/apache/htdocs/vitamin" > > crossContext="false" > > debug="0" > > reloadable="true" > > > > > > Can you see anything on the Tomcat port 8080 (or whatever it is in your > case). > i.e., > http://my.machine.com:8080/vitamin/hello.jsp > > Is your apj13 connected activated? > > > ################################################## > > > > At last. I added following entry into web.xml. > > Which web.xml? The /usr/local/apache/htdocs/vitamin/WEB-INF/web.xml ? > > > > > ################################################# > > > > HelloWorld > The servlet name is not HelloWorld, it is HelloWorldExample > > > > edu.myschool.util.HelloWorldExample > > > > > > HelloWorld > The servlet name is not HelloWorld, it is HelloWorldExample > > /* > > This is wrong... > /* > > > > > ################################################# > > > Jan K. Labanowski | phone: 614-292-9279, FAX: > 614-292-7168 > Ohio Supercomputer Center | Internet: jkl@osc.edu > 1224 Kinnear Rd, | http://www.ccl.net/chemistry.html > Columbus, OH 43212-1163 | http://www.osc.edu/ > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, email: tomcat-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, email: tomcat-user-help@jakarta.apache.org > Jan K. Labanowski | phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center | Internet: jkl@osc.edu 1224 Kinnear Rd, | http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 | http://www.osc.edu/ --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, email: tomcat-user-help@jakarta.apache.org