You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Diego Figueroa <df...@yorku.ca> on 2009/06/11 18:09:55 UTC

mod_jk, missing uri map

Hi,

I'm having issues using mod_jk 1.2.28 with Tomcat 6.0.18 and Apache 2.2. 
Whenever I call one of the mount points defined on my apache2.conf file I 
get the same message in the log file (below). I am including what I 
believe are the relevant portions of my config files. Thanks!

I call the URL:

https://localhost/ceo/servlet/ceo

My mod_jk.log shows:

[Thu Jun 11 11:34:58 2009] [10331:3075028768] [debug] 
jk_child_init::mod_jk.c (3068): Initialized mod_jk/1.2.28
[Thu Jun 11 11:35:07 2009] [10075:3075028768] [debug] 
jk_translate::mod_jk.c (3419): missing uri map for 
localhost:/ceo/servlet/ceo
[Thu Jun 11 11:35:07 2009] [10075:3075028768] [debug] 
jk_map_to_storage::mod_jk.c (3579): missing uri map for 
localhost:/ceo/servlet/ceo

My apache2.conf has:

--- apache2.conf ---
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel debug
JkShmFile /var/log/apache2/jk.shm
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkMount /ceo/* ajp13
--- apache2.conf ---

My worker.properties file:

--- workers.properties ---
workers.tomcat_home=/home/dfiguero/testbed/apache-tomcat-6.0.18
workers.java_home=/usr/lib/jvm/java-6-sun
ps=/

worker.list=ajp13,jkstatus

# defaults
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp13.socket_keepalive=true
worker.ajp13.connect_timeout=60000

# status
worker.jkstatus.type=status
--- workers.properties ---

Finally my server.xml file has (shared among several instances):

--- server.xml ---
<?xml version='1.0' encoding='utf-8'?>
<Server port="${shutdown.port}" shutdown="SHUTDOWN">

  <Listener className="org.apache.catalina.core.AprLifecycleListener" 
SSLEngine="on" />
  <Listener className="org.apache.catalina.core.JasperListener" />
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" 
/>
  <Listener 
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />


  <GlobalNamingResources>
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved" 
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="${catalina.base}/../shared/conf/tomcat-users.xml" 
/>
  </GlobalNamingResources>

  <Service name="Catalina">
 
    <Connector port="${http.port}" protocol="HTTP/1.1" 
               connectionTimeout="60000" enableLookups="true"
               redirectPort="8443" />

    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" 
enableLookups="true" />

    <Engine name="Catalina" defaultHost="localhost">

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm" 
resourceName="UserDatabase"/>

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
      </Host>
    </Engine>
  </Service>
</Server>
--- server.xml ---

RE: Listener Start Error

Posted by Mohamed Shah <Mo...@tecnotree.com>.
Actually I am using Liferay portal Bundled with tomcat. So is the confusion. 	Anyway I will get the latest one from them(liferay).

Thanks.

-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] 
Sent: Thursday, August 13, 2009 6:40 PM
To: Tomcat Users List
Subject: RE: Listener Start Error

> From: Mohamed Shah [mailto:Mohamed.Shah@tecnotree.com]
> Subject: RE: Listener Start Error
> 
> Version:
> Tomcat 6.0.5.1.2

No such animal; where did you get that information?

If it is indeed some variation of Tomcat 6.0.5, you should immediately upgrade to 6.0.20, since there have been many, many fixes put in since 2006 - and 6.0.5 was not sufficiently stable to have even been released as an alpha.

In addition to what you posted previously, your logs should contain a stack trace of the listener startup failure; take a look at that and see what it shows.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


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


RE: Listener Start Error

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Mohamed Shah [mailto:Mohamed.Shah@tecnotree.com]
> Subject: RE: Listener Start Error
> 
> Version:
> Tomcat 6.0.5.1.2

No such animal; where did you get that information?

If it is indeed some variation of Tomcat 6.0.5, you should immediately upgrade to 6.0.20, since there have been many, many fixes put in since 2006 - and 6.0.5 was not sufficiently stable to have even been released as an alpha.

In addition to what you posted previously, your logs should contain a stack trace of the listener startup failure; take a look at that and see what it shows.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


RE: Listener Start Error

Posted by Mohamed Shah <Mo...@tecnotree.com>.
Hi,

Version:

Jdk1.5
Windows xp sp2
Tomcat 6.0.5.1.2

-----Original Message-----
From: Pid [mailto:pid@pidster.com] 
Sent: Thursday, August 13, 2009 1:42 PM
To: Tomcat Users List
Subject: Re: Listener Start Error

On 13/08/2009 09:00, Mohamed Shah wrote:
> Hi,
>
> I am getting a Listener Start Error during deployment.
>
> This is the error in log.
>
> Aug 13, 2009 7:26:37 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 53316 ms
> Aug 13, 2009 7:27:37 AM org.apache.catalina.startup.HostConfig checkResources
> INFO: Undeploying context [/ViewAdjustmentsN]
> Aug 13, 2009 7:27:40 AM org.apache.catalina.core.StandardContext addApplicationListener
> INFO: The listener "com.liferay.portal.kernel.servlet.PortletContextListener" is already configured for this context. The duplicate definition has been ignored.
> Aug 13, 2009 7:27:40 AM org.apache.catalina.core.StandardContext start
> SEVERE: ERROR LISTENERSTART
> Aug 13, 2009 7:27:40 AM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/ViewAdjustmentsN] startup failed due to previous errors.
>
>
> Contents web.xml
>
> ?xml version="1.0" encoding="UTF-8"?>
> <web-app>
> 	<display-name>ViewAdjustmentsN</display-name>
> 	<context-param>
>         <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
>         <param-value>com.liferay.ViewAdjustments.util.ApplicationResources</param-value>
>       </context-param>
> 	<listener>
> 		<listener-class>com.liferay.portal.kernel.servlet.PortletContextListener</listener-class>
> 	</listener>
> 	<servlet>
> 		<servlet-name>1</servlet-name>
> 		<servlet-class>com.liferay.portal.kernel.servlet.PortletServlet</servlet-class>
> 		<init-param>
> 			<param-name>portlet-class</param-name>
> 			<param-value>com.liferay.ViewAdjustments.portlet.ViewAdjustmentsPortlet</param-value>
> 		</init-param>
> 		<load-on-startup>0</load-on-startup>
> 	</servlet>
> 	<servlet-mapping>
> 		<servlet-name>1</servlet-name>
> 		<url-pattern>/1/*</url-pattern>
> 	</servlet-mapping>
> 	<taglib>
> 		<taglib-uri>http://java.sun.com/portlet_2_0</taglib-uri>
> 		<taglib-location>/WEB-INF/tld/liferay-portlet.tld</taglib-location>
> 	</taglib>
> </web-app>
>
>
> I have Restarted Tomcat . Taken the Listener tags and ran without the listener tags.
> Every time the same error Turns up. May I Know what causes this error as my build is fine.

Tomcat version (in full)?
JVM version?
OS Version?

p



> Thanks&  Regards,
> Mohamed Shah.K
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


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


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


Re: Listener Start Error

Posted by Pid <pi...@pidster.com>.
On 13/08/2009 09:00, Mohamed Shah wrote:
> Hi,
>
> I am getting a Listener Start Error during deployment.
>
> This is the error in log.
>
> Aug 13, 2009 7:26:37 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 53316 ms
> Aug 13, 2009 7:27:37 AM org.apache.catalina.startup.HostConfig checkResources
> INFO: Undeploying context [/ViewAdjustmentsN]
> Aug 13, 2009 7:27:40 AM org.apache.catalina.core.StandardContext addApplicationListener
> INFO: The listener "com.liferay.portal.kernel.servlet.PortletContextListener" is already configured for this context. The duplicate definition has been ignored.
> Aug 13, 2009 7:27:40 AM org.apache.catalina.core.StandardContext start
> SEVERE: ERROR LISTENERSTART
> Aug 13, 2009 7:27:40 AM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/ViewAdjustmentsN] startup failed due to previous errors.
>
>
> Contents web.xml
>
> ?xml version="1.0" encoding="UTF-8"?>
> <web-app>
> 	<display-name>ViewAdjustmentsN</display-name>
> 	<context-param>
>         <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
>         <param-value>com.liferay.ViewAdjustments.util.ApplicationResources</param-value>
>       </context-param>
> 	<listener>
> 		<listener-class>com.liferay.portal.kernel.servlet.PortletContextListener</listener-class>
> 	</listener>
> 	<servlet>
> 		<servlet-name>1</servlet-name>
> 		<servlet-class>com.liferay.portal.kernel.servlet.PortletServlet</servlet-class>
> 		<init-param>
> 			<param-name>portlet-class</param-name>
> 			<param-value>com.liferay.ViewAdjustments.portlet.ViewAdjustmentsPortlet</param-value>
> 		</init-param>
> 		<load-on-startup>0</load-on-startup>
> 	</servlet>
> 	<servlet-mapping>
> 		<servlet-name>1</servlet-name>
> 		<url-pattern>/1/*</url-pattern>
> 	</servlet-mapping>
> 	<taglib>
> 		<taglib-uri>http://java.sun.com/portlet_2_0</taglib-uri>
> 		<taglib-location>/WEB-INF/tld/liferay-portlet.tld</taglib-location>
> 	</taglib>
> </web-app>
>
>
> I have Restarted Tomcat . Taken the Listener tags and ran without the listener tags.
> Every time the same error Turns up. May I Know what causes this error as my build is fine.

Tomcat version (in full)?
JVM version?
OS Version?

p



> Thanks&  Regards,
> Mohamed Shah.K
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


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


Listener Start Error

Posted by Mohamed Shah <Mo...@tecnotree.com>.
Hi,

I am getting a Listener Start Error during deployment.

This is the error in log.

Aug 13, 2009 7:26:37 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 53316 ms
Aug 13, 2009 7:27:37 AM org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/ViewAdjustmentsN]
Aug 13, 2009 7:27:40 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.liferay.portal.kernel.servlet.PortletContextListener" is already configured for this context. The duplicate definition has been ignored.
Aug 13, 2009 7:27:40 AM org.apache.catalina.core.StandardContext start
SEVERE: ERROR LISTENERSTART
Aug 13, 2009 7:27:40 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/ViewAdjustmentsN] startup failed due to previous errors.


Contents web.xml

?xml version="1.0" encoding="UTF-8"?>
<web-app>
	<display-name>ViewAdjustmentsN</display-name>
	 <context-param>
       <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
       <param-value>com.liferay.ViewAdjustments.util.ApplicationResources</param-value>
     </context-param>
	<listener>
		<listener-class>com.liferay.portal.kernel.servlet.PortletContextListener</listener-class>
	</listener>
	<servlet>
		<servlet-name>1</servlet-name>
		<servlet-class>com.liferay.portal.kernel.servlet.PortletServlet</servlet-class>
		<init-param>
			<param-name>portlet-class</param-name>
			<param-value>com.liferay.ViewAdjustments.portlet.ViewAdjustmentsPortlet</param-value>
		</init-param>
		<load-on-startup>0</load-on-startup>
	</servlet>
	<servlet-mapping>
		<servlet-name>1</servlet-name>
		<url-pattern>/1/*</url-pattern>
	</servlet-mapping>
	<taglib>
		<taglib-uri>http://java.sun.com/portlet_2_0</taglib-uri>
		<taglib-location>/WEB-INF/tld/liferay-portlet.tld</taglib-location>
	</taglib>
</web-app>


I have Restarted Tomcat . Taken the Listener tags and ran without the listener tags. 
Every time the same error Turns up. May I Know what causes this error as my build is fine.


Thanks & Regards,
Mohamed Shah.K

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


Re: mod_jk, missing uri map

Posted by Rainer Jung <ra...@kippdata.de>.
... or try JkMountCopy All

On 13.08.2009 09:28, bazzaP wrote:
> 
> I came across the same error in my mod_jk.log file. It turned out not to be a
> problem with my mod_jk configuration though...I had set the
> transport-guarantee in web.xml to CONFIDENTIAL, but forgotten to configure
> the server certificate. I noticed you are also callling https:// . When I
> changed my transport-guarantee to NONE, it worked. So try doing the same, or
> check your SSL settings in apache?
> 
> 
> Diego Figueroa wrote:
>>
>> Hi,
>>
>> I'm having issues using mod_jk 1.2.28 with Tomcat 6.0.18 and Apache 2.2. 
>> Whenever I call one of the mount points defined on my apache2.conf file I 
>> get the same message in the log file (below). I am including what I 
>> believe are the relevant portions of my config files. Thanks!
>>
>> I call the URL:
>>
>> https://localhost/ceo/servlet/ceo
>>
>> My mod_jk.log shows:
>>
>> [Thu Jun 11 11:34:58 2009] [10331:3075028768] [debug] 
>> jk_child_init::mod_jk.c (3068): Initialized mod_jk/1.2.28
>> [Thu Jun 11 11:35:07 2009] [10075:3075028768] [debug] 
>> jk_translate::mod_jk.c (3419): missing uri map for 
>> localhost:/ceo/servlet/ceo
>> [Thu Jun 11 11:35:07 2009] [10075:3075028768] [debug] 
>> jk_map_to_storage::mod_jk.c (3579): missing uri map for 
>> localhost:/ceo/servlet/ceo
>>
>> My apache2.conf has:
>>
>> --- apache2.conf ---
>> LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
>> JkWorkersFile /etc/apache2/workers.properties
>> JkLogFile /var/log/apache2/mod_jk.log
>> JkLogLevel debug
>> JkShmFile /var/log/apache2/jk.shm
>> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
>> JkRequestLogFormat "%w %V %T"
>> JkMount /ceo/* ajp13
>> --- apache2.conf ---
>>
>> My worker.properties file:
>>
>> --- workers.properties ---
>> workers.tomcat_home=/home/dfiguero/testbed/apache-tomcat-6.0.18
>> workers.java_home=/usr/lib/jvm/java-6-sun
>> ps=/
>>
>> worker.list=ajp13,jkstatus
>>
>> # defaults
>> worker.ajp13.port=8009
>> worker.ajp13.host=localhost
>> worker.ajp13.type=ajp13
>> worker.ajp13.lbfactor=1
>> worker.ajp13.socket_keepalive=true
>> worker.ajp13.connect_timeout=60000
>>
>> # status
>> worker.jkstatus.type=status
>> --- workers.properties ---
>>
>> Finally my server.xml file has (shared among several instances):
>>
>> --- server.xml ---
>> <?xml version='1.0' encoding='utf-8'?>
>> <Server port="${shutdown.port}" shutdown="SHUTDOWN">
>>
>>   <Listener className="org.apache.catalina.core.AprLifecycleListener" 
>> SSLEngine="on" />
>>   <Listener className="org.apache.catalina.core.JasperListener" />
>>   <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" 
>> />
>>   <Listener 
>> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
>>
>>
>>   <GlobalNamingResources>
>>     <Resource name="UserDatabase" auth="Container"
>>               type="org.apache.catalina.UserDatabase"
>>               description="User database that can be updated and saved" 
>> factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>>               pathname="${catalina.base}/../shared/conf/tomcat-users.xml" 
>> />
>>   </GlobalNamingResources>
>>
>>   <Service name="Catalina">
>>  
>>     <Connector port="${http.port}" protocol="HTTP/1.1" 
>>                connectionTimeout="60000" enableLookups="true"
>>                redirectPort="8443" />
>>
>>     <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" 
>> enableLookups="true" />
>>
>>     <Engine name="Catalina" defaultHost="localhost">
>>
>>       <Realm className="org.apache.catalina.realm.UserDatabaseRealm" 
>> resourceName="UserDatabase"/>
>>
>>       <Host name="localhost"  appBase="webapps"
>>             unpackWARs="true" autoDeploy="true"
>>             xmlValidation="false" xmlNamespaceAware="false">
>>       </Host>
>>     </Engine>
>>   </Service>
>> </Server>
>> --- server.xml ---

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


Re: mod_jk, missing uri map

Posted by bazzaP <ba...@ubiquitech.co.za>.
I came across the same error in my mod_jk.log file. It turned out not to be a
problem with my mod_jk configuration though...I had set the
transport-guarantee in web.xml to CONFIDENTIAL, but forgotten to configure
the server certificate. I noticed you are also callling https:// . When I
changed my transport-guarantee to NONE, it worked. So try doing the same, or
check your SSL settings in apache?


Diego Figueroa wrote:
> 
> Hi,
> 
> I'm having issues using mod_jk 1.2.28 with Tomcat 6.0.18 and Apache 2.2. 
> Whenever I call one of the mount points defined on my apache2.conf file I 
> get the same message in the log file (below). I am including what I 
> believe are the relevant portions of my config files. Thanks!
> 
> I call the URL:
> 
> https://localhost/ceo/servlet/ceo
> 
> My mod_jk.log shows:
> 
> [Thu Jun 11 11:34:58 2009] [10331:3075028768] [debug] 
> jk_child_init::mod_jk.c (3068): Initialized mod_jk/1.2.28
> [Thu Jun 11 11:35:07 2009] [10075:3075028768] [debug] 
> jk_translate::mod_jk.c (3419): missing uri map for 
> localhost:/ceo/servlet/ceo
> [Thu Jun 11 11:35:07 2009] [10075:3075028768] [debug] 
> jk_map_to_storage::mod_jk.c (3579): missing uri map for 
> localhost:/ceo/servlet/ceo
> 
> My apache2.conf has:
> 
> --- apache2.conf ---
> LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
> JkWorkersFile /etc/apache2/workers.properties
> JkLogFile /var/log/apache2/mod_jk.log
> JkLogLevel debug
> JkShmFile /var/log/apache2/jk.shm
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
> JkRequestLogFormat "%w %V %T"
> JkMount /ceo/* ajp13
> --- apache2.conf ---
> 
> My worker.properties file:
> 
> --- workers.properties ---
> workers.tomcat_home=/home/dfiguero/testbed/apache-tomcat-6.0.18
> workers.java_home=/usr/lib/jvm/java-6-sun
> ps=/
> 
> worker.list=ajp13,jkstatus
> 
> # defaults
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> worker.ajp13.lbfactor=1
> worker.ajp13.socket_keepalive=true
> worker.ajp13.connect_timeout=60000
> 
> # status
> worker.jkstatus.type=status
> --- workers.properties ---
> 
> Finally my server.xml file has (shared among several instances):
> 
> --- server.xml ---
> <?xml version='1.0' encoding='utf-8'?>
> <Server port="${shutdown.port}" shutdown="SHUTDOWN">
> 
>   <Listener className="org.apache.catalina.core.AprLifecycleListener" 
> SSLEngine="on" />
>   <Listener className="org.apache.catalina.core.JasperListener" />
>   <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" 
> />
>   <Listener 
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
> 
> 
>   <GlobalNamingResources>
>     <Resource name="UserDatabase" auth="Container"
>               type="org.apache.catalina.UserDatabase"
>               description="User database that can be updated and saved" 
> factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>               pathname="${catalina.base}/../shared/conf/tomcat-users.xml" 
> />
>   </GlobalNamingResources>
> 
>   <Service name="Catalina">
>  
>     <Connector port="${http.port}" protocol="HTTP/1.1" 
>                connectionTimeout="60000" enableLookups="true"
>                redirectPort="8443" />
> 
>     <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" 
> enableLookups="true" />
> 
>     <Engine name="Catalina" defaultHost="localhost">
> 
>       <Realm className="org.apache.catalina.realm.UserDatabaseRealm" 
> resourceName="UserDatabase"/>
> 
>       <Host name="localhost"  appBase="webapps"
>             unpackWARs="true" autoDeploy="true"
>             xmlValidation="false" xmlNamespaceAware="false">
>       </Host>
>     </Engine>
>   </Service>
> </Server>
> --- server.xml ---
> 

-- 
View this message in context: http://www.nabble.com/mod_jk%2C-missing-uri-map-tp23984359p24950146.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: mod_jk, missing uri map

Posted by Diego Figueroa <df...@yorku.ca>.
Hi André,

Thanks for your input. I added "JkMountCopy On" to both the default and 
SSL VirtualHosts and it started working.

Diego.





André Warnier <aw...@ice-sa.com> 
2009/06/11 01:03 PM
Please respond to
"Tomcat Users List" <us...@tomcat.apache.org>


To
Tomcat Users List <us...@tomcat.apache.org>
cc

Subject
Re: mod_jk, missing uri map






Hi.

Good points for providing all relevant information.

By any chance, are you using VirtualHost's ?
(Unlikely with HTTPS, but nevertheless)
If yes, make sure to look up the JkMountCopy directive.
JkMount is not automatically inherited by VirtualHosts, from the main 
configuration.

A couple more things below

Diego Figueroa wrote:
> Hi,
> 
> I'm having issues using mod_jk 1.2.28 with Tomcat 6.0.18 and Apache 2.2. 

> Whenever I call one of the mount points defined on my apache2.conf file 
I 
> get the same message in the log file (below). I am including what I 
> believe are the relevant portions of my config files. Thanks!
> 
> I call the URL:
> 
> https://localhost/ceo/servlet/ceo
> 
> My mod_jk.log shows:
> 
> [Thu Jun 11 11:34:58 2009] [10331:3075028768] [debug] 
> jk_child_init::mod_jk.c (3068): Initialized mod_jk/1.2.28
> [Thu Jun 11 11:35:07 2009] [10075:3075028768] [debug] 
> jk_translate::mod_jk.c (3419): missing uri map for 
> localhost:/ceo/servlet/ceo
> [Thu Jun 11 11:35:07 2009] [10075:3075028768] [debug] 
> jk_map_to_storage::mod_jk.c (3579): missing uri map for 
> localhost:/ceo/servlet/ceo
> 
> My apache2.conf has:
> 
> --- apache2.conf ---
> LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
> JkWorkersFile /etc/apache2/workers.properties
> JkLogFile /var/log/apache2/mod_jk.log
> JkLogLevel debug
> JkShmFile /var/log/apache2/jk.shm
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
> JkRequestLogFormat "%w %V %T"
> JkMount /ceo/* ajp13

The above all looks ok to me.
Just in case : maybe you also want to add a
JkMount /ceo ajp 13
(only if "/ceo" has to be proxied to Tomcat also.)


> --- apache2.conf ---
> 
> My worker.properties file:
> 
> --- workers.properties ---
> workers.tomcat_home=/home/dfiguero/testbed/apache-tomcat-6.0.18
> workers.java_home=/usr/lib/jvm/java-6-sun

I believe the preceding 2 lines are obsolete, no longer used by mod_jk 
since a long time.
But that's not the cause of your problem.

> ps=/
> 
> worker.list=ajp13,jkstatus
> 
> # defaults
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> worker.ajp13.lbfactor=1
> worker.ajp13.socket_keepalive=true
> worker.ajp13.connect_timeout=60000
> 
> # status
> worker.jkstatus.type=status
> --- workers.properties ---
> 
> Finally my server.xml file has (shared among several instances):
> 
> --- server.xml ---
> <?xml version='1.0' encoding='utf-8'?>
> <Server port="${shutdown.port}" shutdown="SHUTDOWN">
> 
>   <Listener className="org.apache.catalina.core.AprLifecycleListener" 
> SSLEngine="on" />
>   <Listener className="org.apache.catalina.core.JasperListener" />
>   <Listener 
className="org.apache.catalina.mbeans.ServerLifecycleListener" 
> />
>   <Listener 
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" 
/>
> 
> 
>   <GlobalNamingResources>
>     <Resource name="UserDatabase" auth="Container"
>               type="org.apache.catalina.UserDatabase"
>               description="User database that can be updated and saved" 
> factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
> pathname="${catalina.base}/../shared/conf/tomcat-users.xml" 
> />
>   </GlobalNamingResources>
> 
>   <Service name="Catalina">
> 
>     <Connector port="${http.port}" protocol="HTTP/1.1" 
>                connectionTimeout="60000" enableLookups="true"
>                redirectPort="8443" />
> 
>     <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" 
> enableLookups="true" />
> 
I guess this is the only instance which has an AJP connector then ?


>     <Engine name="Catalina" defaultHost="localhost">
> 
>       <Realm className="org.apache.catalina.realm.UserDatabaseRealm" 
> resourceName="UserDatabase"/>
> 
>       <Host name="localhost"  appBase="webapps"
>             unpackWARs="true" autoDeploy="true"
>             xmlValidation="false" xmlNamespaceAware="false">
>       </Host>
>     </Engine>
>   </Service>
> </Server>
> --- server.xml ---

Basically, everything /looks/ ok.
But the logfile does indicate that mod_jk is called to examine the URL, 
but does not find a JkMount that matches the "/ceo/servlet/ceo" URL.
So either it is the VirtualHost thing, or else I don't know.

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



Re: mod_jk, missing uri map

Posted by André Warnier <aw...@ice-sa.com>.
Hi.

Good points for providing all relevant information.

By any chance, are you using VirtualHost's ?
(Unlikely with HTTPS, but nevertheless)
If yes, make sure to look up the JkMountCopy directive.
JkMount is not automatically inherited by VirtualHosts, from the main 
configuration.

A couple more things below

Diego Figueroa wrote:
> Hi,
> 
> I'm having issues using mod_jk 1.2.28 with Tomcat 6.0.18 and Apache 2.2. 
> Whenever I call one of the mount points defined on my apache2.conf file I 
> get the same message in the log file (below). I am including what I 
> believe are the relevant portions of my config files. Thanks!
> 
> I call the URL:
> 
> https://localhost/ceo/servlet/ceo
> 
> My mod_jk.log shows:
> 
> [Thu Jun 11 11:34:58 2009] [10331:3075028768] [debug] 
> jk_child_init::mod_jk.c (3068): Initialized mod_jk/1.2.28
> [Thu Jun 11 11:35:07 2009] [10075:3075028768] [debug] 
> jk_translate::mod_jk.c (3419): missing uri map for 
> localhost:/ceo/servlet/ceo
> [Thu Jun 11 11:35:07 2009] [10075:3075028768] [debug] 
> jk_map_to_storage::mod_jk.c (3579): missing uri map for 
> localhost:/ceo/servlet/ceo
> 
> My apache2.conf has:
> 
> --- apache2.conf ---
> LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
> JkWorkersFile /etc/apache2/workers.properties
> JkLogFile /var/log/apache2/mod_jk.log
> JkLogLevel debug
> JkShmFile /var/log/apache2/jk.shm
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
> JkRequestLogFormat "%w %V %T"
> JkMount /ceo/* ajp13

The above all looks ok to me.
Just in case : maybe you also want to add a
JkMount /ceo ajp 13
(only if "/ceo" has to be proxied to Tomcat also.)


> --- apache2.conf ---
> 
> My worker.properties file:
> 
> --- workers.properties ---
> workers.tomcat_home=/home/dfiguero/testbed/apache-tomcat-6.0.18
> workers.java_home=/usr/lib/jvm/java-6-sun

I believe the preceding 2 lines are obsolete, no longer used by mod_jk 
since a long time.
But that's not the cause of your problem.

> ps=/
> 
> worker.list=ajp13,jkstatus
> 
> # defaults
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> worker.ajp13.lbfactor=1
> worker.ajp13.socket_keepalive=true
> worker.ajp13.connect_timeout=60000
> 
> # status
> worker.jkstatus.type=status
> --- workers.properties ---
> 
> Finally my server.xml file has (shared among several instances):
> 
> --- server.xml ---
> <?xml version='1.0' encoding='utf-8'?>
> <Server port="${shutdown.port}" shutdown="SHUTDOWN">
> 
>   <Listener className="org.apache.catalina.core.AprLifecycleListener" 
> SSLEngine="on" />
>   <Listener className="org.apache.catalina.core.JasperListener" />
>   <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" 
> />
>   <Listener 
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
> 
> 
>   <GlobalNamingResources>
>     <Resource name="UserDatabase" auth="Container"
>               type="org.apache.catalina.UserDatabase"
>               description="User database that can be updated and saved" 
> factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>               pathname="${catalina.base}/../shared/conf/tomcat-users.xml" 
> />
>   </GlobalNamingResources>
> 
>   <Service name="Catalina">
>  
>     <Connector port="${http.port}" protocol="HTTP/1.1" 
>                connectionTimeout="60000" enableLookups="true"
>                redirectPort="8443" />
> 
>     <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" 
> enableLookups="true" />
> 
I guess this is the only instance which has an AJP connector then ?


>     <Engine name="Catalina" defaultHost="localhost">
> 
>       <Realm className="org.apache.catalina.realm.UserDatabaseRealm" 
> resourceName="UserDatabase"/>
> 
>       <Host name="localhost"  appBase="webapps"
>             unpackWARs="true" autoDeploy="true"
>             xmlValidation="false" xmlNamespaceAware="false">
>       </Host>
>     </Engine>
>   </Service>
> </Server>
> --- server.xml ---

Basically, everything /looks/ ok.
But the logfile does indicate that mod_jk is called to examine the URL, 
but does not find a JkMount that matches the "/ceo/servlet/ceo" URL.
So either it is the VirtualHost thing, or else I don't know.

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