Bug 1029333 - Errors in cdi-alternative quickstart
Summary: Errors in cdi-alternative quickstart
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Quickstarts
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: CR1
: EAP 6.2.0
Assignee: sgilda
QA Contact: Jitka Kozana
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-12 07:56 UTC by Jitka Kozana
Modified: 2017-10-10 00:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-15 16:21:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jitka Kozana 2013-11-12 07:56:56 UTC
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.

Comment 1 sgilda 2013-11-12 11:14:30 UTC
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.

Comment 2 sgilda 2013-11-12 14:22:06 UTC
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

Comment 3 Jitka Kozana 2013-11-15 09:40:13 UTC
Verified using 6.2.0.CR1.


Note You need to log in before you can comment on or make changes to this bug.