Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Won't Fix
-
Affects Version/s: 1.2-RC2
-
Fix Version/s: 1.2 final
-
Component/s: None
-
Labels:None
-
Environment:windows 2000
Description
How to replicate issue:
1) Download and install Grails 1.2-RC2
2) grails create-app test
3) grails war
4) Copy test-0.1.war to jboss deploy directory
- e.g. xx\jboss-4.2.3.GA\server\default\deploy
5) run jboss - e.g run.bat -c default
Jboss will split a lot of errors. Here is some portion of the errors:
— MBeans waiting for other MBeans —
ObjectName: jboss.web.deployment:war=test-0.1.war,id=971911194
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/C:/Documents and S
ettings/tecways.TECWAYS-0278920/Desktop/jboss-4.2.3.GA/server/default/tmp/deploy
/tmp6828575293335056983test-0.1-exp.war/ deployment failed
— MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM —
ObjectName: jboss.web.deployment:war=test-0.1.war,id=971911194
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/C:/Documents and S
ettings/tecways.TECWAYS-0278920/Desktop/jboss-4.2.3.GA/server/default/tmp/deploy
/tmp6828575293335056983test-0.1-exp.war/ deployment failed
Trying to fix by removing log4j jar in BuildConfig.groovy :
grails.war.resources = {path ->
delete(file: "$path/WEB-INF/lib/log4j-1.2.15.jar")
}
but no luck.
Issue Links
- relates to
-
GRAILS-5606
Deploy on JBoss 5.1.0 GA
-
Reducing to minor because this is IMO, not a Grails issue. JBoss packages up a whole bunch of libraries such as log4j, hibernate-* and so on that Grails uses. This results in conflicts and deployment time. You have to explicitly create a jboss-web.xml like the below that specifies classloader isolation:
<jboss-web> <class-loading> <loader-repository> org.myapp:loader=SomeClassloader <loader-repository-config> java2ParentDelegation=false </loader-repository-config> </loader-repository> </class-loading> </jboss-web>If that doesn't work for you I suggest raising a JIRA on the JBoss JIRA as then it is JBoss doing something bad with its classloaders. In summary, not a Grails issue.