tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Volker <tom...@trendsetter.de>
Subject Re: TomCat 4.1.24 -> alias problem?
Date Mon, 21 Jul 2003 17:30:58 GMT
Hi John,

I read the document and made my "web.xml" under /tomcat/webapps/ROOT/WEB-INF/
look like this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
   <servlet-name>
     HttpTunnelingServletdc
   </servlet-name>
   <servlet-class>
     com.net.chat.util.tunnel3.HttpTunnelingServlet
   </servlet-class>
   <init-param>
     <param-name>Host</param-name>
     <param-value>localhost</param-value>
   </init-param>
   <load-on-startup>1</load-on-startup>
 </servlet>
<servlet-mapping>
  <servlet-name>HttpTunnelingServletdc</servlet-name>
  <url-pattern>/HttpTunnelingServletdc</url-pattern>
</servlet-mapping>
</web-app>

Like before "catalina.out" points out a line that the tunneling servlet is
connected to my chat server.

BUT - and that is the problem -
http://www.MyDomain.com/servlet/HttpTunnelingServletdc still results in a 404
error
AND
catalina.out has an additional error message:
"org.xml.sax.SAXParseException: The content of element type "web-app" must
match
(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".

Obviously the /servlet directory (ATTENTION -> not /servlets!) is not found!

I get more and more frustrated about my step to 4.1.24 because - considering
the efforts to make 4.1.24 run with jk1 - the whole affair is much more
complicated than TomCat 3.2.3.

All hints to get that HttpTunnelingServletdc running are appreciated ;-))


Thanks and best regards

Volker


John Turner schrieb:

> Hi -
>
> Check <servlet-mapping> in the web.xml DTD.
>
> Also:  http://jakarta.apache.org/tomcat/faq/misc.html#invoker
>
> John
>
> On Mon, 21 Jul 2003 16:57:05 +0200, Volker <tomcat@trendsetter.de> wrote:
>
> > Hi,
> >
> > after installing TomCat 4.1.24 and making it run correctly with mod_jk
> > (jk1.2) I still have a little problem which I did not have in the former
> > TomCat 3.2.3 environment:
> >
> > I have a "HttpTunnelingServlet.class" located under
> > /tomcat/webapps/ROOT/WEB-INF/classes/com/net/chat/util/tunnel3
> > which should be requested via the URL
> > http://MyDomain.com/servlet/HttpTunnelingServletdc
> >
> > That means http://MyDomain.com/servlet/HttpTunnelingServletdc should
> > result in requesting
> > /tomcat/webapps/ROOT/WEB-
> > INF/classes/com/net/chat/util/tunnel3/HttpTunnelingServlet.class
> >
> > Under /webapps/ROOT/WEB-INF in my TomCat 4.1.24 installation I placed
> > following web.xml file:
> >
> > <web-app>
> > <servlet>
> > <servlet-name>
> > HttpTunnelingServletdc
> > </servlet-name>
> > <servlet-class>
> > com.net.chat.util.tunnel3.HttpTunnelingServlet
> > </servlet-class>
> > <init-param>
> > <param-name>Host</param-name>
> > <param-value>localhost</param-value>
> > </init-param>
> > <load-on-startup>1</load-on-startup>
> > </servlet>
> > </web-app>
> >
> > In contrast to the TomCat 3.2.3 environment in which you find files like
> > "uriworkermap.properties", "tomcat-apache.conf" etc. in the /conf
> > directory of my new TomCat 4.1.24 /conf  I only find server.xml,
> > web.xml, tomcat-users.xml and jk2.properties files.
> >
> > http://MyDomain.com/servlet/HttpTunnelingServletdc shows up a 404 error
> > and the former working request
> > http://MyDomain.com/servlet/SnoopServlet
> >
> > does not work at the moment.
> >
> > Abviously the problem derives from a missing alias directive - can
> > anyone give me a hint? Will I have to edit server.xml AND mod_jk.conf or
> > which files?
> >
> >
> > Thanks and best regards
> >
> > Volker
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message