Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-3517

Redeploy of Tomcat5 Service chokes with RuntimeException

XMLWordPrintable

    • Medium

      Suppose you change a flag in jboss-service.xml in deploy/jbossweb-tomcat55.sar/META-INF, a redeploy of the tomcat 5 service happens.

      You will notice the following Runtime Exception and the tomcat service fails to deploy.

      ==============================================================================================
      13:33:30,421 INFO [Catalina] Initialization processed in 562 ms
      13:33:30,421 INFO [StandardService] Starting service jboss.web
      13:33:30,421 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.1
      7
      13:33:30,453 INFO [StandardHost] XML validation disabled
      13:33:30,468 INFO [Catalina] Server startup in 47 ms
      13:33:30,468 WARN [ServiceController] Problem starting service jboss.web:service=WebServer
      java.lang.IllegalArgumentException: Handler for key=javax.servlet.http.HttpServl
      etRequest, exists, handler: org.jboss.web.tomcat.security.HttpServletRequestPolicyContextHandler@1bb03ee
      at javax.security.jacc.PolicyContext.registerHandler(PolicyContext.java:185)
      at org.jboss.web.tomcat.tc5.Tomcat5.startService(Tomcat5.java:467)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      ===================================================================================

      Use the following api of PolicyContext in Tomcat5 service
      http://java.sun.com/j2ee/1.4/docs/api/javax/security/jacc/PolicyContext.html#registerHandler(java.lang.String,%20javax.security.jacc.PolicyContextHandler,%20boolean)

            anil.saldhana Anil Saldanha (Inactive)
            anil.saldhana Anil Saldanha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: