tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mikhail malamud" <mikhail.mala...@drexel.edu>
Subject RE: Please help. Going Nuts.
Date Thu, 01 Mar 2001 19:18:07 GMT
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:
   <!-- Apache AJP13 support. This is also used to shut down tomcat.
          -->
        <Connector
className="org.apache.tomcat.service.PoolTcpConnector">
            <Parameter name="handler"

value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
            <Parameter name="port" value="8006"/>
        </Connector>

and  you have
  <Context path="/vitamin"
    docBase="/usr/local/apache/htdocs/vitamin"
          crossContext="false"
          debug="0"
          reloadable="true" >
   </Context>
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
>
> <HTML>
> <BODY>
> Hello World
> </BODY>
> <HTML>
>
> 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"
> > <Directory "/usr/local/apache/htdocs/vitamin">
> >     Options Indexes FollowSymLinks
> > </Directory>
> >
> > JkMount /vitamin/servlet/* ajp13
> > JkMount /vitamin/*.jsp ajp13
> >
> >
> > <Location "/vitamin/WEB-INF/">
> >     AllowOverride None
> >     deny from all
> > </Location>
>
> Looks OK...
>
>
> > ##################################################
> > <Context path="/vitamin"
> >                  docBase="/usr/local/apache/htdocs/vitamin"
> >                  crossContext="false"
> >                  debug="0"
> >                  reloadable="true" >
> >         </Context>
>
>
> 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 ?
>
> >
> > #################################################
> > <servlet>
> >         <servlet-name>HelloWorld</servlet-name>
> The servlet name is not HelloWorld, it is HelloWorldExample
> >
> > <servlet-class>edu.myschool.util.HelloWorldExample</servlet-class>
> > </servlet>
> > <servlet-mapping>
> >         <servlet-name>HelloWorld</servlet-name>
> The servlet name is not HelloWorld, it is HelloWorldExample
> >         </url-pattern>/*</url-pattern>
>
> This is wrong...
>          <url-pattern>/*</url-pattern>
>
> > </servlet-mapping>
> > #################################################
>
>
> 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


Mime
View raw message