Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
invoker servlet, tomcat 4.1.29, apache 2.0.48 and connector jk2

invoker servlet, tomcat 4.1.29, apache 2.0.48 and connector jk2

2004-01-07       - By Maxime Pelletier

 Back
Thanks for your help.

-- --Original Message-- --
From: Justin Ruthenbeck [mailto:justinr@(protected)]
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@(protected)]
>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 Source code of org.apache.naming.resources.FileDirContext"
> >allowLinking="true"/>
> >         </Context>
> >
> >
> >
> >Any idea ?
> >
> >Thanks
> >Max
> >
> >-- --Original Message-- --
> >From: Justin Ruthenbeck [mailto:justinr@(protected)]
> >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@(protected)
> > >For additional commands, e-mail: tomcat-user-help@(protected)
> >
> >
> >__ ____ ____ ____ ____ ____ ____ ____ ____ ___
> >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@(protected)
> >For additional commands, e-mail: tomcat-user-help@(protected)
> >
> >
> >-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> >To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> >For additional commands, e-mail: tomcat-user-help@(protected)
>
>
>__ ____ ____ ____ ____ ____ ____ ____ ____ ___
>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@(protected)
>For additional commands, e-mail: tomcat-user-help@(protected)
>
>
>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>For additional commands, e-mail: tomcat-user-help@(protected)


__ ____ ____ ____ ____ ____ ____ ____ ____ ___
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@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




©2008 junlu.com - Jax Systems, LLC, U.S.A.