I'm trying to deploy a EAR which runs on Websphere6.1 on JBoss AS7 but i'm getting this error:
Caused by: java.lang.IllegalArgumentException: No enum const class org.jboss.metadata.web.spec.BodyContentType.None
at java.lang.Enum.valueOf(Unknown Source) [:1.6.0_29]
at or.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.processTlds(TldParsingDeploymentProcessor.java:105)
at org.jboss.as.web.deployment.TldParsingDeploymentProcessor.deploy(TldParsingDeploymentProcessor.java:81)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]
... 5 more
I can't tell which .tld file it's trying to parse but I've looked at the .tld files in the WAR and the ones which specify a <body-content>
tag are <body-content>scriptless</body-content>
. All the .tld files have this doctype:
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
Has any body come across this or a similar problem?
[edit]
I've added a <body-content>
tag to each tag in the tld files but i'm still getting this error - so I guess it's trying to parse some other .tld ...
... and removing all the .tld files from the EAR gives the same result.