Hi,

I've been asked to move an application from glassfish to tomcat. I have
added some roles

<role rolename="tomcat"/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<role rolename="admin-gui"/>
<role rolename="admin-script"/>

and users for the corresponding roles

 <user username="tomcat" password="secret" roles="tomcat"/>
 <user username="manager" password="secret"
roles="manager-gui,manager-script,manager-jmx,manager-status"/>
 <user username="admin" password="secret" roles="admin-gui"/>

I have then deployed the application war file using the manager. The
application is supposed to take json POST requests, related to a path on
the host filesystem such as /opt/app/app_data/datafile . The POST requests
work on the old glassfish deployed application. However the POST requests
do not seem to work on the tomcat deployed application. Instead I get a
403. I looked through the tomcat logs folder, but only saw the POST
request, and nothing regarding the 403. Can anybody offer some advice. I
would like to note that I had nothing to do with the development of the
application. I'm just the poor sap who has been asked to put it into
production.

cat web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>

  <listener>

<listener-class>com.sdl.sap.web.context.JodaContextListener</listener-class>
  </listener>
  <listener>
    <listener-class>com.sdl.sap.hlab.api.GuiceSetup</listener-class>
  </listener>

  <filter>
    <filter-name>guiceFilter</filter-name>
    <filter-class>com.google.inject.servlet.GuiceFilter</filter-class>
  </filter>

  <filter-mapping>
    <filter-name>guiceFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

</web-app>

Reply via email to