Application Name: Platform WAR Version Number: 1.12.0
Question: Hi there,
I am trying to run OpenMRS on Resin (http://caucho.com/) instead of Tomcat/Jetty.
The following is my setup:
- OS: CentOS 6.8 86_64
- Java: OpenJDK-22.214.171.124
- MySQL: Percona-Server-server-56-5.6.30
- Java Application Server: Resin v4.0.45
I have installed DB, created DB accounts, installed Resin, added openmrs.war into webapps folder, and modified web.xml to make it run on Resin as follows:
- disabled servlet-name “jsp”, since Resin has it’s own called “resin-jsp”, using class “com.caucho.jsp.JspServlet”
- created new servlet mapping for “*.withjstl” to use “resin-jsp” servlet
- disabled explicit servlet mapping for “.jsp”, since Resin already has one usinf “resin-jsp”
<servlet> <servlet-name>jsp</servlet-name> <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> </servlet> –>
<servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>*.withjstl</url-pattern> </servlet-mapping> –>
<servlet-mapping> <servlet-name>resin-jsp</servlet-name> <url-pattern>*.withjstl</url-pattern> </servlet-mapping>
<servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>*.jsp</url-pattern> </servlet-mapping> –>
Also, in dwr.xml I had to apply the following >> fix <<
After that, I went to http://myserver:8080/openmrs/ and followed the instruction of setup wizard. All’s good so far. Once the wizard had finished with the configuration process, the welcome message “Welcome to OpenMRS. Please login to proceed.” and login form was shown.
At this point, the problems start.
I can log in with admin credentials. But as soon as I log in, I see the following error message in my browser:
Error 404 The page "/openmrs/" cannot be found. Check the link and try again.
and the following error message in the log file:
WARN - DispatcherServlet.noHandlerFound(1108) |2016-06-08 15:17:55,313| No mapping found for HTTP request with URI [/openmrs/] in DispatcherServlet with name 'openmrs'
I can click “My Profile” and update “Defaults”, “Change Login Info”, and “Notifications”. But I cannot click “Home”, “Dictionary”, “Administration”, because I’ll get that error message I mentioned above.
Is there anything I’m missing in my configuration? Any log files or configuration files you would like me to provide?