[jboss-dev-forums] [JBoss AS7 Development] - possible jboss as7 bug
andrea bisaro
do-not-reply at jboss.com
Tue Sep 6 10:48:23 EDT 2011
andrea bisaro [http://community.jboss.org/people/abisaro] created the discussion
"possible jboss as7 bug"
To view the discussion, visit: http://community.jboss.org/message/625065#625065
--------------------------------------------------------------
Hi all,
i ported a webapp (.war) running on JBoss 4.2.2 to JBoss 5.1.0 without big problems, then I was asked to try to port it to JBoss AS 7.
After two or three days of frustrating temptatives, always getting an obscure error at deployment time, trying to modify, add, remove xml conf files in the app's WEB-INF, I cleaned up my mind and started from beginning, that is the error printed by the server.
The error is the following:
14:36:26,605 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.unit."XXXX.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."XXXX.war".PARSE: Failed to process phase PARSE of deployment "XXXX.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_20]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_20]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]
Caused by: java.lang.IllegalArgumentException: No enum const class org.jboss.metadata.web.spec.BodyContentType.emtpy
at java.lang.Enum.valueOf(Enum.java:196) [:1.6.0_20]
at org.jboss.metadata.web.spec.BodyContentType.valueOf(BodyContentType.java:30)
at org.jboss.metadata.parser.jsp.TagMetaDataParser.parse(TagMetaDataParser.java:117)
at org.jboss.metadata.parser.jsp.TldMetaDataParser.parse(TldMetaDataParser.java:226)
at org.jboss.as.web.deployment.TldParsingDeploymentProcessor.parseTLD(TldParsingDeploymentProcessor.java:124)
at org.jboss.as.web.deployment.TldParsingDeploymentProcessor.deploy(TldParsingDeploymentProcessor.java:89)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
... 5 more
and I noticed what looks like a typo error somewhere in the code that parse the TLDs.
I put it in bold for your convenience
Caused by: java.lang.IllegalArgumentException: No enum const class org.jboss.metadata.web.spec.BodyContentType.em*tp*y
The BodyContentType enum declaration is:
public enum BodyContentType {
tagdependent, JSP, em*pt*y, scriptless
}
the valueOf method throwing the exception is:
public static <T extends http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/lang/Enum.java#Enum Enum<T>> T valueOf( http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/lang/Class.java#Class Class<T> enumType, http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/lang/String.java#String String name) {
T result = enumType. http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/lang/Class.java#Class.enumConstantDirectory%28%29 enumConstantDirectory(). http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/util/Map.java#Map.get%28java.lang.Object%29 get(name);
if (result != null)
return result;
if (name == null)
throw new http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/lang/NullPointerException.java#NullPointerException NullPointerException("Name is null");
throw new http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/lang/IllegalArgumentException.java#IllegalArgumentException IllegalArgumentException("No enum const " + enumType +"." + name);
}
I think that the wrong em*tp*y name is passed instead of the right em*pt*y
I got it using jboss-as-7.0.1.Final but I think it affects also previous versions
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/625065#625065]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110906/9a751ac9/attachment.html
More information about the jboss-dev-forums
mailing list