Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: JOnAS 4.10.5, JOnAS 4.8.7
-
Fix Version/s: JOnAS 5.3.0 M4
-
Component/s: Deployment System
-
Labels:None
-
Environment:Java : Sun 1.5.0_14
OS : Solaris 10
Description
If I deploy an WAR with a erroneous url-pattern in the security-constraint, I get the following error :
Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> viewTree.do/* in security constraint
...
2009-12-01 17:05:13,193 : SEVERE : ContextConfig.applicationWebConfig : Occurred at line 1860 column 26
2009-12-01 17:05:13,194 : SEVERE : ContextConfig.start : Marking this application unavailable due to previous error(s)
2009-12-01 17:05:13,195 : SEVERE : StandardContext.start : Error getConfigured
2009-12-01 17:05:13,196 : SEVERE : StandardContext.start : Context [/ctisrv-applicatifecm/jon48/jonasAdmin] startup failed due to previous errors
2009-12-01 17:05:13,225 : SEVERE : CatalinaJWebContainerServiceImpl.checkStartedContext : Le contexte '/ctisrv-applicatifecm/jon48/jonasAdmin' n'a pas été configuré proprement.";
however when after I try to deploy a corrected WAR, JOnAS tell me that the context-root is already in used whereas my application is not running :
+ /bin/ksh /opt/jonas/scripts/dev/zone_globale/jonas_bin/jonas48.ksh admin -a webapps/jadmin.war
Exception during execution of org.objectweb.jonas.adm.JonasAdmin : Exception during registering war: java.lang.IllegalArgumentException: addChild: Child name '/ctisrv-applicatifecm/jon48/jonasAdmin' is not unique
org.objectweb.jonas.service.ServiceException : Exception during registering war: java.lang.IllegalArgumentException: addChild: Child name '/ctisrv-applicatifecm/jon48/jonasAdmin' is not unique
at org.objectweb.jonas.web.catalina55.CatalinaJWebContainerServiceImpl.registerWarMBean(CatalinaJWebContainerServiceImpl.java:1184)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.objectweb.jonas.web.wrapper.catalina55.CatalinaJWebContainerServiceWrapper.invoke(CatalinaJWebContainerServiceWrapper.java:158)
at org.objectweb.jonas.web.wrapper.catalina55.CatalinaJWebContainerServiceWrapper.registerWarMBean(CatalinaJWebContainerServiceWrapper.java:269)
at org.objectweb.jonas.adm.Adm.addWar(Adm.java:357)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.objectweb.carol.irmi.Server.invoke(Server.java:1006)
at org.objectweb.carol.irmi.Server$Handler.call(Server.java:1254)
at org.objectweb.carol.irmi.Server$Handler.dispatch(Server.java:1178)
at org.objectweb.carol.irmi.Server$Handler.run(Server.java:1149)
Caused by: java.lang.IllegalArgumentException: addChild: Child name '/ctisrv-applicatifecm/jon48/jonasAdmin' is not unique
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:750)
at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:122)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:144)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:738)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.objectweb.jonas.web.catalina55.CatalinaJWebContainerServiceImpl.doRegisterWar(CatalinaJWebContainerServiceImpl.java:596)
at org.objectweb.jonas.web.AbsJWebContainerServiceImpl.registerWar(AbsJWebContainerServiceImpl.java:969)
at org.objectweb.jonas.web.AbsJWebContainerServiceImpl.registerWarMBean(AbsJWebContainerServiceImpl.java:1053)
at org.objectweb.jonas.web.catalina55.CatalinaJWebContainerServiceImpl.registerWarMBean(CatalinaJWebContainerServiceImpl.java:1182)
... 15 more
I've tried to undeploy the WAR but JOnAS tell me that it's not deployed.
Fixed