Sergiu Dumitriu wrote:
I guess it's not a encoding issue, although I
once had the same
problem and it was caused by the encoding.
- Does the page load fine without the mod_jk? (access the tomcat port
directly)
Hi Sergiu and all the xwiki users :)
I directly tried with apache and mod_jk.
- Does your mod_jk config file contain something
unusual?
here are my conf files and only the interestings parts
## tomcat / server.xml ###
<Server port="8005" shutdown="SHUTDOWN">
<Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
/>
<Listener
className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
<Service name="Catalina">
<Connector port="8009"
enableLookups="false" redirectPort="8443"
protocol="AJP/1.3" />
<Engine name="tomcat-apache"
defaultHost="m6prg.ufr-info-p7.jussieu.fr">
<Host name="m6prg.ufr-info-p7.jussieu.fr"
appBase="/var/lib/tomcat5.5/webapps/xwiki"
unpackWARs="false" autoDeploy="false">
<Context path="/xwiki"
docBase="/var/lib/tomcat5.5/webapps/xwiki" debug="0"
reloadable="true"/>
</Host>
</Engine>
</Service>
</Server>
## apache / apache2.conf
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel warn
## apache / xwiki conf
JkMount /xwiki/* worker1
## mod_jk / workers.properties
workers.tomcat_home=/usr/share/tomcat5.5
workers.java_home=/usr/lib/jvm/java-1.5.0-sun
ps=/
worker.list=worker1
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=worker1
- Do your pages contain special symbols outside
the normal ASCII range?
I don't think so, and in fact all the pages are
affected, so I don't
think there are symbols outside ASCII in every page :)
- What's the operating system codepage?
## /etc/locale.gen
en_US.UTF-8 UTF-8
fr_FR.ISO-8859-1 ISO-8859-1
fr_FR ISO-8859-1
fr_FR.UTF-8 UTF-8
fr_FR@euro ISO-8859-15
##printenv | grep LANG
LANG=fr_FR
I managed to put xwiki behind mod_jk, and it's working fine.
So I put all this stuff, maybe U foind something weird, before I try
to access the wiki by tomcat directly (HTTP/1.1, default port 8180)
hi everyone,
I found a java exception in the catalina tomcat log file, that is
written when a user logs in.
##
14:33:03,245 WARN TP-Processor1
XWikiAction:execute:182 - Uncaught exception: Error number 0 in 11:
Uncaught exception
Wrapped Exception: null
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
Wrapped Exception: null
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:159)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:121)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Wrapped Exception:
java.lang.IllegalStateException
at
org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:432)
at
org.securityfilter.authenticator.FormAuthenticator.showLogin(FormAuthenticator.java:230)
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.showLogin(MyFormAuthenticator.java:55)
at
com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.showLogin(XWikiAuthServiceImpl.java:197)
at
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:201)
at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:2548)
at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:3233)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:128)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:121)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684
##
It seems to deal with jk connector with this line
(org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:432),
isn't it ?
Julien.