Page 1 of 1

org.apache.jasper.JasperException on browser window in tomcat

PostPosted:Tue Apr 16, 2024 8:04 am
by Mehra0019
Hi guys,
So let me tell you scenareio so, I have cloned the repo and build the open CE from source and move this generated OpenKM.war file in TOMCAT_HOME/webapps. (I have taken tomcat-8.5.69.zip form SourceForge)
After doing this I started the tomcat server TOMCAT_HOME/bin/startuop.sh.
and I got the below browser screen.(I am using Ubuntu - 22)

Re: org.apache.jasper.JasperException on browser window in tomcat

PostPosted:Mon Apr 22, 2024 7:23 am
by jllort
In the catalina.out or the openkm.log file there's the full stack strace error what should provide the clues why is not working in your scenario.

Re: org.apache.jasper.JasperException on browser window in tomcat

PostPosted:Wed Apr 24, 2024 7:16 am
by Mehra0019
The error is related to AJP connector
23-Apr-2024 17:02:39.827 SEVERE [main] org.apache.catalina.core.StandardService.startInternal Failed to start connector [Connector[AJP/1.3-8009]]
Caused by: java.lang.IllegalArgumentException: The AJP Connector is configured with secretRequired="true" but the secret attribute is either null or "". This combination is not valid.
In this case I tried deleting "com.openkm.dao.bean.NodeBase" and "com.openkm.dao.bean.NodeDocumentation" from tomcat/repository/index and it worked perfectly, but I can't understand what is causing this issue, do I need to follow this process every time this happens and also this happen anytime like an hour ago it worked fine but after some time after stooping it, it cause this issue so is there any permanent solution for this.

Re: org.apache.jasper.JasperException on browser window in tomcat

PostPosted:Mon May 13, 2024 6:59 am
by jllort
Fix the ajp connector in the server.xml
Code: Select all
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <!--
    <Connector protocol="AJP/1.3" secretRequired="false"
               address="127.0.0.1"
               port="8009"
               redirectPort="8443" />
    -->