[jboss-jira] [JBoss JIRA] Created: (JBAS-3517) Redeploy of Tomcat5 Service chokes with RuntimeException
Anil Saldhana (JIRA)
jira-events at jboss.com
Mon Aug 14 14:40:17 EDT 2006
Redeploy of Tomcat5 Service chokes with RuntimeException
--------------------------------------------------------
Key: JBAS-3517
URL: http://jira.jboss.com/jira/browse/JBAS-3517
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Security, Web (Tomcat) service
Affects Versions: JBossAS-4.0.4.GA
Reporter: Anil Saldhana
Assigned To: Anil Saldhana
Fix For: JBossAS-4.0.5.GA, JBossAS-5.0.0.GA
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 at 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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list