You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Randy Paries <ra...@unitnet.com> on 2002/12/19 16:50:34 UTC

Should not be this hard

Hello, me again

This should have been so easy (famous last words)

I am upgrading from tomcat jakarta-tomcat-4.0.4 to jakarta-tomcat-4.1.17
4.0.4 was working fine.....

For some reason I can not find my servlets ARG!

In my web.xml I have a <load-on-startup/> and in the log file , the
servlet
Starts ok....
But if I goto http://bart.mydomain.com:8080/servlet/uServlet
I get a 404.......

Here is some details. I have to be missing something very simple.

My static html and jsps work ok when I goto
http://bart.mydomain.com:8080/index.html
http://bart.mydomain.com:8080/jsp/dirgloblogin.jsp

But if I goto http://bart.mydomain.com:8080/servlet/uServlet
I get a 404

from the log file I get :

2002-12-19 09:42:13 StandardContext[]: Mapping contextPath='' with
requestURI='/servlet/uServlet' and relativeURI='/servlet/uServlet

2002-12-19 09:42:13 StandardContext[]:   Trying exact match
2002-12-19 09:42:13 StandardContext[]:   Trying prefix match
2002-12-19 09:42:13 StandardContext[]:   Trying extension match
2002-12-19 09:42:13 StandardContext[]:   Trying default match
2002-12-19 09:42:13 StandardContext[]:  Mapped to servlet 'default' with
servlet path '/servlet/uServlet' and path info 'null' and update=true
2002-12-19 09:42:13 default: DefaultServlet.serveResource:  Serving
resource '/servlet/uServlet' headers and data


In my server.xml I have

<Engine name="Standalone" defaultHost="localhost" debug="9">

<Host name="localhost" debug="0" appBase="/home/unit" unpackWARs="true"
autoDeploy="true">
       
 <Context path=""
                 docBase="/home/unit"
                 crossContext="true"
                 debug="9"
                 reloadable="false" >
 </Context>
 

#ls -ls /home/unit/WEB-INF/classes
total 104
  32 -rwxrwxrwx    1 apache   apache      32734 Dec 18 21:31
bbsServlet.class
   4 drwxrwxrwx    3 apache   apache       4096 Aug 24 22:19 com
  36 -rw-rw-r--    1 apache   apache      33984 Nov  6 15:43
EditjsServlet.class
  32 -rwxrwxrwx    1 apache   apache      31030 Dec 18 21:31
uServlet.class

Thanks for any Help!!!




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Should not be this hard

Posted by Jacob Kjome <ho...@visi.com>.
Hello Randy,

Uncomment the invoker servlet in Tomcat's conf/web.xml

You should not be depending on the invoker servlet on production
servers.  It is a security risk.

jake

Thursday, December 19, 2002, 9:50:34 AM, you wrote:

RP> Hello, me again

RP> This should have been so easy (famous last words)

RP> I am upgrading from tomcat jakarta-tomcat-4.0.4 to jakarta-tomcat-4.1.17
RP> 4.0.4 was working fine.....

RP> For some reason I can not find my servlets ARG!

RP> In my web.xml I have a <load-on-startup/> and in the log file , the
RP> servlet
RP> Starts ok....
RP> But if I goto http://bart.mydomain.com:8080/servlet/uServlet
RP> I get a 404.......

RP> Here is some details. I have to be missing something very simple.

RP> My static html and jsps work ok when I goto
RP> http://bart.mydomain.com:8080/index.html
RP> http://bart.mydomain.com:8080/jsp/dirgloblogin.jsp

RP> But if I goto http://bart.mydomain.com:8080/servlet/uServlet
RP> I get a 404

RP> from the log file I get :

RP> 2002-12-19 09:42:13 StandardContext[]: Mapping contextPath='' with
RP> requestURI='/servlet/uServlet' and relativeURI='/servlet/uServlet

RP> 2002-12-19 09:42:13 StandardContext[]:   Trying exact match
RP> 2002-12-19 09:42:13 StandardContext[]:   Trying prefix match
RP> 2002-12-19 09:42:13 StandardContext[]:   Trying extension match
RP> 2002-12-19 09:42:13 StandardContext[]:   Trying default match
RP> 2002-12-19 09:42:13 StandardContext[]:  Mapped to servlet 'default' with
RP> servlet path '/servlet/uServlet' and path info 'null' and update=true
RP> 2002-12-19 09:42:13 default: DefaultServlet.serveResource:  Serving
RP> resource '/servlet/uServlet' headers and data


RP> In my server.xml I have

RP> <Engine name="Standalone" defaultHost="localhost" debug="9">

RP> <Host name="localhost" debug="0" appBase="/home/unit" unpackWARs="true"
autoDeploy="true">>
       
RP>  <Context path=""
RP>                  docBase="/home/unit"
RP>                  crossContext="true"
RP>                  debug="9"
RP>                  reloadable="false" >
RP>  </Context>
 

RP> #ls -ls /home/unit/WEB-INF/classes
RP> total 104
RP>   32 -rwxrwxrwx    1 apache   apache      32734 Dec 18 21:31
RP> bbsServlet.class
RP>    4 drwxrwxrwx    3 apache   apache       4096 Aug 24 22:19 com
RP>   36 -rw-rw-r--    1 apache   apache      33984 Nov  6 15:43
RP> EditjsServlet.class
RP>   32 -rwxrwxrwx    1 apache   apache      31030 Dec 18 21:31
RP> uServlet.class

RP> Thanks for any Help!!!




RP> --
RP> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
RP> For additional commands, e-mail: <ma...@jakarta.apache.org>



-- 
Best regards,
 Jacob                            mailto:hoju@visi.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Should not be this hard

Posted by Charles Baker <ra...@yahoo.com>.
--- Randy Paries <ra...@unitnet.com> wrote:
> Hello, me again
> 
> This should have been so easy (famous last words)
> 
> I am upgrading from tomcat jakarta-tomcat-4.0.4 to
> jakarta-tomcat-4.1.17
> 4.0.4 was working fine.....
> 
> For some reason I can not find my servlets ARG!
> 
I believe that the servlet-mapping sections in web.xml
are now required. Do you have those for all of your
servlets?

{{SNIP}}

=====
rascharles@yahoo.com
http://www.charleshbaker.com/~chb/
BOFH excuse #106:
The electrician didn't know what the yellow cable was so he yanked the ethernet out.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>