tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maxime Pelletier" <mpellet...@wantedtech.com>
Subject RE: invoker servlet, tomcat 4.1.29, apache 2.0.48 and connector jk2
Date Wed, 07 Jan 2004 18:26:12 GMT
Thanks for your help.

-----Original Message-----
From: Justin Ruthenbeck [mailto:justinr@nextengine.com]
Sent: January 6, 2004 5:27 PM
To: Tomcat Users List
Subject: RE: invoker servlet, tomcat 4.1.29, apache 2.0.48 and connector
jk2



Hmm -- everything looks correct (though I don't use the invoker servlet
personally).  If you're able to hit the servlet directly on Tomcat, then
all of this shouldn't matter.  Seems like it has to be a connector issue.

(1) Can you get *anything* from Tomcat through Apache?  Try the examples
webapp or even a static image from Tomcat.

(2) Just an observation: your naming scheme is a bit odd since the
invoker and specific url mappings both match certain URLs.  That's a
boundary case that could potentially cause problems.  Also, you don't
need to define the invoker in your WEB-INF/web.xml file -- if it's
defined in the conf/web.xml, your WEB-INF/web.xml will inherit it.

(3) Pump up the debug level in your workers2.properties file for the uri
mapping in question.  See if it's being matched at all (or whether it's
being matched and Tomcat is erroring out).  It's probably not matched at
all.

(4) Try explicitly mapping your servlet to something other than
/servlet/xxx.  Map instead to /foo/xxx and see if Apache forwards it.  In
other words, make sure it has nothing to do with the invoker (I don't
think it does).  Then make sure your jk2 forwarding is working correctly
for other servlets.

justin


At 01:53 PM 1/6/2004, you wrote:

>I can definitly access the servlets with the tomcat port.
>Using the following addresses :
>
>Tomcat url work
>http://XX.X.X.XX:8081/servlet/com.wanted.cobrandpropertyeditor.servlet.Text
E
>ditServlet
>
>Apache/jk2/tomcat does not work
>http://XX.X.X.XX/servlet/com.wanted.cobrandpropertyeditor.servlet.TextEditS
e
>rvlet
>
>Same thing if I use a servlet-mapping :
>
>Tomcat url work
>http://XX.X.X.XX:8081/servlet/CPE_TextEditServlet
>
>Apache/jk2/tomcat does not work
>http://XX.X.X.XX:8081/servlet/CPE_TextEditServlet
>
>Old Tomcat ver. 4.1.24 upgraded to 4.1.29
>Old Apache ver. 2.0.45 upgraded to 2.0.48
>
>The conf/web.xml part you are talking about is the following (not
>commented)
>:
>
>     <!-- The mapping for the default servlet -->
>     <servlet-mapping>
>         <servlet-name>default</servlet-name>
>         <url-pattern>/</url-pattern>
>     </servlet-mapping>
>
>     <!-- The mapping for the invoker servlet -->
><!-- -->
>     <servlet-mapping>
>         <servlet-name>invoker</servlet-name>
>         <url-pattern>/servlet/*</url-pattern>
>     </servlet-mapping>
><!-- -->
>
>     <!-- The mapping for the JSP servlet -->
>     <servlet-mapping>
>         <servlet-name>jsp</servlet-name>
>         <url-pattern>*.jsp</url-pattern>
>     </servlet-mapping>
>
>Here is a section of my WEB-INF/web.xml file. It should by ok anyway
>because
>it is working with the 8081 port ...
>
>   <servlet>
>       <servlet-name>CPE_TextEditServlet</servlet-name>
>
><servlet-class>com.wanted.cobrandpropertyeditor.servlet.TextEditServlet</se
r
>vlet-class>
>       <!--init-param-->
>       <!--param-name>param1</param-name-->
>       <!--param-value>value1</param-value-->
>       <!--/init-param-->
>       <load-on-startup>3</load-on-startup>
>    </servlet>
>
>    <servlet-mapping>
>       <servlet-name>invoker</servlet-name>
>       <url-pattern>/servlet/*</url-pattern>
>    </servlet-mapping>
>
>     <servlet-mapping>
>         <servlet-name>CPE_TextEditServlet</servlet-name>
>         <url-pattern>/servlet/CPE_TextEditServlet</url-pattern>
>     </servlet-mapping>
>
>Thanks again,
>Max
>
>-----Original Message-----
>From: Justin Ruthenbeck [mailto:justinr@nextengine.com]
>Sent: January 6, 2004 4:05 PM
>To: Tomcat Users List
>Subject: RE: invoker servlet, tomcat 4.1.29, apache 2.0.48 and connector
>jk2
>
>
>
>This looks correct.
>
>What version of Tomcat and Apache did you upgrade from?  Are you *sure*
>you can hit your /servlet/* URLs going directly to Tomcat?  Just to be
>sure: you're aware of the invoker servlet changes that Tim sent a URL to,
>right (that the invoker is disabled by default)?
>
>justin
>
>At 12:35 PM 1/6/2004, you wrote:
> >Hi,
> >
> >My workers2.properties file have the following entries :
> >
> >[uri:/*.jsp]
> >info=Map to Tomcat All *.jsp In Default Context
> ># context=/
> ># group=channel.un:/var/log/tomcat/intranet/intranet_jk2.socket
> >group=ajp13:/var/log/tomcat/intranet/intranet_jk2.socket
> >debug=0
> >disable=0
> >
> >[uri:/*/.jsp]
> >info=Map to Tomcat All *.jsp In All Contexts
> ># context=/examples
> ># group=channel.un:/var/log/tomcat/intranet/intranet_jk2.socket
> >group=ajp13:/var/log/tomcat/intranet/intranet_jk2.socket
> >debug=0
> >disable=0
> >
> >[uri:/servlet/*]
> >info=Map to Tomcat All Files in /servlet In Default Context
> >context=/servlet
> ># group=channel.un:/var/log/tomcat/intranet/intranet_jk2.socket
> >group=ajp13:/var/log/tomcat/intranet/intranet_jk2.socket
> >debug=0
> >disable=0
> >
> >[uri:/*/servlet/*]
> >info=Map to Tomcat All Files in /servlet of All Contexts
> ># context=/servlet
> ># group=channel.un:/var/log/tomcat/intranet/intranet_jk2.socket
> >group=ajp13:/var/log/tomcat/intranet/intranet_jk2.socket
> >debug=0
> >disable=0
> >
> >My server.xml context (context for that app) is :
> >
> >         <Context path="" docBase="/home/httpd/html/intranet" debug="0"
> >                  reloadable="true" crossContext="true">
> >           <Resources
> > className="org.apache.naming.resources.FileDirContext"
> >allowLinking="true"/>
> >         </Context>
> >
> >
> >
> >Any idea ?
> >
> >Thanks
> >Max
> >
> >-----Original Message-----
> >From: Justin Ruthenbeck [mailto:justinr@nextengine.com]
> >Sent: January 6, 2004 3:22 PM
> >To: Tomcat Users List
> >Subject: Re: invoker servlet, tomcat 4.1.29, apache 2.0.48 and connector
> >jk2
> >
> >
> >
> >Since you're able to hit your servlets through the invoker when pointing
> >to Tomcat directly, this sounds like a connector problem.  Check your
> >workers[2].properties to make sure you're passing requests for
> "/servlet"
> >through to Apache.
> >
> >justin
> >
> >At 11:47 AM 1/6/2004, you wrote:
> > >http://jakarta.apache.org/tomcat/faq/misc.html#invoker
> > >
> > >-Tim
> > >
> > >
> > >Maxime Pelletier wrote:
> > >
> > >>Hi,
> > >>We upgraded our tomcat to 4.1.29 and apache to 2.0.48 recently and we
> > >>have
> > >>lost access to all servlet invoked in the following form
> > >>http://address/servlet/MyServlet
> > >>the apache does no longer pass the request to the tomcat and result
> in
> > >>a 404
> > >>error (processed by apache).
> > >>When I use the tomcat only port the servlets are accessibles :
> > >>http://address:tomcatport/servlet/MyServlet
> > >>Does anyone have a solution to this ?
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> >______________________________________________
> >Justin Ruthenbeck
> >Software Engineer, NextEngine Inc.
> >justinr - AT - nextengine DOT com
> >Confidential. See:
> >http://www.nextengine.com/confidentiality.php
> >______________________________________________
> >
> >
> >---------------------------------------------------------------------
> >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
>
>
>______________________________________________
>Justin Ruthenbeck
>Software Engineer, NextEngine Inc.
>justinr - AT - nextengine DOT com
>Confidential. See:
>http://www.nextengine.com/confidentiality.php
>______________________________________________
>
>
>---------------------------------------------------------------------
>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


______________________________________________
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
______________________________________________


---------------------------------------------------------------------
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