I am trying to deploy a web application developed in the Tomcat gaming environment. The first few times when I tried, I received the following message in the Tomcat console,
INFO: validateJarFile(C:\Tomcat7\webapps\sandbox.war\WEB-INF\lib\geronimo-servlet_2.5_spec-1.2.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
So, I manually deleted geronimo-servlet_2.5_spec-1.2.jar from the war game file. And once this is done, I see the following success message,
13:56:43,571 INFO ~ Starting C:\Tomcat7\webapps\sandbox.war\WEB-INF\application 13:56:43,618 INFO ~ Application is precompiled 13:56:44,149 INFO ~ Connected to jdbc:mysql://localhost/db?useUnicode=yes&ch aracterEncoding=UTF-8&connectionCollation=utf8_general_ci 13:56:44,899 INFO ~ Application 'play-sandbox' is now started !
When I try to access the application from IE using the url http: // localhost: 8080 / play-sandbox , I get a 404 message saying: "The requested resource (/ play-sandbox /) is unavailable."
I run this on Tomcat 7 and the tomcat logs are clear. I use
play war play-sandbox -o sandbox.war
to create war
Questions:
- How to prevent geronimo-servlet_2.5_spec-1.2.jar conflict?
Why can't I view the application through a browser in a Tomcat deployment? Where, as a game launcher, {app name} everything works fine.
The same war file seems to work fine on the Glassfish server. I believe this has something to do with the contextual path of the playframework application or the isolation of the application. Any help would be appreciated.
Thanks Abi
source share