Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Configure tomcat, I need help

2 views
Skip to first unread message

Gladus

unread,
Jul 26, 2001, 8:24:58 AM7/26/01
to
I just install Tomcat, and the examples are runing
I made a JPS in

D:/jakarta-tomcat-3.2.2/webapps/test, and it run OK
I made a web.xml file in :
D:/jakarta-tomcat-3.2.2/webapps/ROOT/WEB-INF/web.xml

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>

<servlet>
<servlet-name>RequestDetails</servlet-name>

</servlet>

<servlet-mapping>
<servlet-name>RequestDetails</servlet-name>
<url-pattern>/SamplesServlets</url-pattern>
</servlet-mapping>

</web-app>


I have update the file server.xml adding :

D:/jakarta-tomcat-3.2.2/conf/server.xml

<Context path="/SamplesServlets"
docBase="webapps/ROOT"
crossContext="true"
debug="0"
reloadable="true"
trusted="false" >
</Context>


After i create a servlet :
D:/jakarta-tomcat-3.2.2/webapps/ROOT/WEB-INF/classes/RequestDetails.class
And i can't run it

http://145.232.178.74:8080/SamplesServlets/RequestDetails

The message come from the server

DÚmarrage de tomcat. Consultez le fichier logs/tomcat.log pour les messages d''
rreurs
2001-07-26 09:44:19 - ContextManager: Adding context Ctx( /SamplesServlets )
2001-07-26 09:44:19 - ContextManager: Adding context Ctx( /examples )
2001-07-26 09:44:19 - ContextManager: Adding context Ctx( /admin )
2001-07-26 09:44:19 - ContextManager: Adding context Ctx( /AppliJSP )
2001-07-26 09:44:19 - ContextManager: Adding context Ctx( /myweapp )
2001-07-26 09:44:19 - ContextManager: Adding context Ctx( /myWebApp )
2001-07-26 09:44:19 - ContextManager: Adding context Ctx( /mywebapp.app )
2001-07-26 09:44:19 - ContextManager: Adding context Ctx( /RequestDetails.class
)
2001-07-26 09:44:19 - ContextManager: Adding context Ctx( )
2001-07-26 09:44:19 - ContextManager: Adding context Ctx( /test )
2001-07-26 09:44:20 - PoolTcpConnector: Starting HttpConnectionHandler on 8080
2001-07-26 09:44:20 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
2001-07-26 09:44:44 - Ctx( ): 404 R( + /Bonjour + null) null
2001-07-26 09:45:53 - Ctx( ): 404 R( + /RequestDetails + null) null
2001-07-26 09:46:19 - Ctx( ): 404 R( + /SamplesServlets.RequestDetails + null
null
2001-07-26 09:46:27 - Ctx( /SamplesServlets ): 404 R( /SamplesServlets + /Reque
tDetails + null) null
2001-07-26 09:47:32 - Ctx( ): 404 R( + /Test/Test1.jsp + null) Le fichier JSP
est introuvable
2001-07-26 09:47:51 - Ctx( ): 404 R( + /ROOT/RequestDetails + null) null
2001-07-26 09:47:58 - Ctx( ): 404 R( + /ROOT.RequestDetails + null) null
2001-07-26 09:49:41 - Ctx( /SamplesServlets ): 404 R( /SamplesServlets + /Reque
tDetails + null) null
2001-07-26 10:17:15 - Ctx( /SamplesServlets ): 404 R( /SamplesServlets + /Reque
tDetails + null) null

I need help. Thank
Excuse me for the bad englih, but i speak french

Jon Skeet

unread,
Jul 26, 2001, 8:43:06 AM7/26/01
to
Gladus <claude.z...@rf.vd.ch> wrote:
> I just install Tomcat, and the examples are runing
> I made a JPS in
>
> D:/jakarta-tomcat-3.2.2/webapps/test, and it run OK
> I made a web.xml file in :
> D:/jakarta-tomcat-3.2.2/webapps/ROOT/WEB-INF/web.xml
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <!DOCTYPE web-app
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
>
> <web-app>
>
> <servlet>
> <servlet-name>RequestDetails</servlet-name>
>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>RequestDetails</servlet-name>
> <url-pattern>/SamplesServlets</url-pattern>
> </servlet-mapping>
>
> </web-app>

Your url pattern here is wrong - it's meant to be the URL pattern
relative to the context - so I suspect you want

<url-pattern>/RequestDetails</url-pattern>

You can then use http://whatever/SamplesServlets/RequestDetails

--
Jon Skeet - <sk...@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too

Gladus

unread,
Jul 27, 2001, 2:35:38 AM7/27/01
to
Jon Skeet <sk...@pobox.com> wrote in message news:<MPG.15ca20b1a...@mrmog.peramon.com>...

> Gladus <claude.z...@rf.vd.ch> wrote:
> > I just install Tomcat, and the examples are runing
> > I made a JPS in
> >
> > D:/jakarta-tomcat-3.2.2/webapps/test, and it run OK
> > I made a web.xml file in :
> > D:/jakarta-tomcat-3.2.2/webapps/ROOT/WEB-INF/web.xml
> >
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> >
> > <!DOCTYPE web-app
> > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> >
> > <web-app>
> >
> > <servlet>
> > <servlet-name>RequestDetails</servlet-name>
> >
> > </servlet>
> >
> > <servlet-mapping>
> > <servlet-name>RequestDetails</servlet-name>
> > <url-pattern>/SamplesServlets</url-pattern>
> > </servlet-mapping>
> >
> > </web-app>
>
> Your url pattern here is wrong - it's meant to be the URL pattern
> relative to the context - so I suspect you want
>
> <url-pattern>/RequestDetails</url-pattern>
>
> You can then use http://whatever/SamplesServlets/RequestDetails

Thanks, its better now, bu i have this message :
Error: 500
Location: /SamplesServlets/RequestDetails
Erreur Interne de Servlet:
java.lang.IllegalStateException: Can't happen - classname is null, who
added this ?
at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:261)
at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
at org.apache.tomcat.core.Handler.service(Handler.java:254)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Thread.java:479)

Jon Skeet

unread,
Jul 27, 2001, 4:04:19 AM7/27/01
to
Gladus <claude.z...@rf.vd.ch> wrote:
> Thanks, its better now, bu i have this message :
> Error: 500
> Location: /SamplesServlets/RequestDetails
> Erreur Interne de Servlet:
> java.lang.IllegalStateException: Can't happen - classname is null, who
> added this ?

I've seen that error message once, on a system which was very strangely
configured (it had half of one product on, and half of another).
Unfortunately, I didn't get to the bottom of why that would create the
problem...

Gladus

unread,
Jul 27, 2001, 9:39:20 AM7/27/01
to
>
> I've seen that error message once, on a system which was very strangely
> configured (it had half of one product on, and half of another).
> Unfortunately, I didn't get to the bottom of why that would create the
> problem...


Thank but i test to install a new version of Tomcat 3.2.2, and the problem stay.

0 new messages