Re: URL rewrite and Apache Webserver

"Aage Nielsen" <[email protected]>
Newsgroups gmane.comp.cms.jahia.install
Message-ID <OF029B3556.57D2A280-ONC1257067.006A8EC4-C1257067.006B1625@interactive.as>
Thanks Philippe - it works :-))) 

We enabled the rewrite part in the httpd.conf file. Another error was that 
we where using jdk 1.5 and apparently there are some trouble when 
compiling jsp pages (be aware of the tomcat/work directory where compiled 
classes are cached - just delete them all).

Regards
Aage Nielsen
------------------------------------
Vesterbrogade 8
DK-8800 Viborg
Denmark

Phone +45 87 25 50 83
Mobile +45 25 28 69 83
e-mail: [email protected]



"Aage Nielsen" <[email protected]> 
24-08-2005 19:51
Please respond to
<[email protected]>


To
<[email protected]>
cc

Subject
Re: URL rewrite and Apache Webserver







Ok that helps a bit, adding connection_pool_size to something (big) 

worker.list=jahia 
worker.jahia.type=ajp13 
worker.jahia.host=localhost 
worker.jahia.connection_pool_size=1200 
worker.jahia.port=8009 
worker.jahia.lbfactor=1 

but some of the jsp pages cannot be compiled due to 

Error during handle of operation, Error during handle of operation, root 
cause:403 Access forbidden, 403 Access forbidden


Exception StackTrace: Cause level : 0 (level 0 is the most precise 
exception)
org.jahia.exceptions.JahiaForbiddenAccessException: 403 Access forbidden, 
403 Access forbidden
                at 
org.jahia.engines.addcontainer.AddContainer_Engine.handleActions(AddContainer_Engine.java:246)
                at 
org.jahia.operations.OperationManager.handleOperations(OperationManager.java:302)
                at org.jahia.bin.JahiaAction.execute(JahiaAction.java:50)
                at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
                at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
                at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
                at org.jahia.bin.Jahia.process(Jahia.java:1547)
                at org.jahia.bin.Jahia.service(Jahia.java:862)
                at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
                at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
                at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
                at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
                at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
                at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
                at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
                at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
                at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
                at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
                at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
                at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
                at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
                at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
                at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
                at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
                at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
                at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
                at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
                at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
                at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
                at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
                at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
                at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
                at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
                at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
                at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
                at 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
                at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
                at 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
                at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
                at java.lang.Thread.run(Unknown Source) 


What do I do next ?

Regards
Aage Nielsen
------------------------------------
Vesterbrogade 8
DK-8800 Viborg
Denmark

Phone +45 87 25 50 83
Mobile +45 25 28 69 83
e-mail: [email protected] 


Philippe Vollenweider <[email protected]> 
24-08-2005 16:26 

Please respond to
<[email protected]>


To
<[email protected]> 
cc

Subject
Re: URL rewrite and Apache Webserver








Have a look at 
http://www.mail-archive.com/[email protected]/msg156642.html
It seem to be the same problem...

At 24.08.2005 16:04, you wrote:

>Well - I am not sure - what do you mean with ok ? The problem is the 
same...
>
>Can the rewrite conditions be left out ?
>
>After switching between (from the tomcat server.xml)  the
>
>     <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
>     <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>                port="8009" minProcessors="5" maxProcessors="75"
>                enableLookups="true" redirectPort="8443"
>                acceptCount="10" debug="0" connectionTimeout="0"
>                useURIValidationHack="false"
> 
>protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>
>and the
>
>     <!-- Define an AJP 1.3 Connector on port 8009 -->
>
>     <!-- <Connector className="org.apache.ajp.tomcat4.Ajp13Connector" >  
             port="8009" minProcessors="5" maxProcessors="75" >  
acceptCount="10" debug="0"/> -->
>
>I get an error in the mod_jk:
>
>[Wed Aug 24 15:56:56 2005] [warn]  jk_ajp_common.c (2138): Unable to 
>get the free endpoint for worker jahia from 1 slots
>[Wed Aug 24 15:56:56 2005] [info]  jk_ajp_common.c (2152): can't 
>find free endpoint
>[Wed Aug 24 15:56:56 2005] [info]  mod_jk.c (1844): Service error=0 
>for worker=jahia
>[Wed Aug 24 15:56:56 2005] [warn]  jk_ajp_common.c (2138): Unable to 
>get the free endpoint for worker jahia from 1 slots
>[Wed Aug 24 15:56:56 2005] [info]  jk_ajp_common.c (2152): can't 
>find free endpoint
>[Wed Aug 24 15:56:56 2005] [info]  mod_jk.c (1844): Service err
>
>That might be the problem or ?
>
>Regards
>Aage Nielsen
>------------------------------------
>Vesterbrogade 8
>DK-8800 Viborg
>Denmark
>
>Phone +45 87 25 50 83
>Mobile +45 25 28 69 83
>e-mail: [email protected]

-------=[ pvollenweider at jahia dot com ]=---------
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.