Red Hat Bugzilla – Bug 1029333
Errors in cdi-alternative quickstart
Last modified: 2013-12-15 11:21:59 EST
I have seen two issues when testing cdi-alternative quickstart: unexpected WARN in server log and war archive created, instead of ear.
The following warning is written in the server.log just shortly after an application cdi-alternative is deployed:
08:42:43,180 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "jboss-cdi-alternative.war" (runtime-name: "jboss-cdi-alternative.war")
08:42:43,206 WARN [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016010: Warning while parsing vfs:/content/jboss-cdi-alternative.war/WEB-INF/beans.xml:18 SchemaLocation: schemaLocation value = 'http://java.sun.com/xml/ns/javaee' must have even number of URI's.
According to the README file, no WARN is expected.
README.md, line 77:
"4. This will deploy `target/jboss-cdi-alternative.ear` to the running instance of the server."
But jboss-cdi-alternative.war is built and deployed.
A search of that error turned up this page: http://www.coderanch.com/t/127073/XML/Head
It sounds like it may be a problem with the schema definition an the fix may be to change xsi:schemaLocation="http://java.sun.com/xml/ns/javaee" to xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/javaee".
I'll try this out after fixing the more urgent bugs.
Replaced the beans.xml with the namespace.
Modified the README to say it's a war.
Fixed in this commit: https://github.com/jboss-developer/jboss-eap-quickstarts/commit/a1655bf7674080bced13c9b5b63303c6e17a889d
Verified using 6.2.0.CR1.