primefaces with myfaces 2 don't start

84 views
Skip to first unread message

fiorenzino

unread,
Oct 24, 2010, 5:59:44 PM10/24/10
to SIwpas Discussion
Hi,

primefaces 2.2.M1 don't deploy:

INFO: Deploying web application directory siwpas2
[severity=ERROR,message=unexpected element (uri:"http://java.sun.com/
xml/ns/javaee", local:"partial-view-context-factory"). Expected
elements are <{http://java.sun.com/xml/ns/javaee}faces-context-
factory>,<{http://java.sun.com/xml/ns/javaee}tag-handler-delegate-
factory>,<{http://java.sun.com/xml/ns/javaee}visit-context-
factory>,<{http://java.sun.com/xml/ns/javaee}external-context-
factory>,<{http://java.sun.com/xml/ns/javaee}factory-
extension>,<{http://java.sun.com/xml/ns/javaee}exception-handler-
factory>,<{http://java.sun.com/xml/ns/javaee}application-
factory>,<{http://java.sun.com/xml/ns/javaee}render-kit-
factory>,<{http://java.sun.com/xml/ns/javaee}lifecycle-
factory>,<{http://java.sun.com/xml/ns/javaee}view-declaration-language-
factory>,locator=[node=null,object=null,url=null,line=10,col=39,offset=-1]]

----



Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the
faces configuration file: jar:file:/home/fiorenzo/workspace_15102010/
siwpas2/target/siwpas2/WEB-INF/lib/primefaces-2.2.M1.jar!/META-INF/
faces-config.xml: unexpected element (uri:"http://java.sun.com/xml/ns/
javaee", local:"partial-view-context-factory"). Expected elements are
<{http://java.sun.com/xml/ns/javaee}faces-context-factory>,<{http://
java.sun.com/xml/ns/javaee}tag-handler-delegate-factory>,<{http://
java.sun.com/xml/ns/javaee}visit-context-factory>,<{http://
java.sun.com/xml/ns/javaee}external-context-factory>,<{http://
java.sun.com/xml/ns/javaee}factory-extension>,<{http://java.sun.com/
xml/ns/javaee}exception-handler-factory>,<{http://java.sun.com/xml/ns/
javaee}application-factory>,<{http://java.sun.com/xml/ns/javaee}render-
kit-factory>,<{http://java.sun.com/xml/ns/javaee}lifecycle-
factory>,<{http://java.sun.com/xml/ns/javaee}view-declaration-language-
factory>
at
org.apache.openejb.config.ReadDescriptors.readFacesConfig(ReadDescriptors.java:
563)
at
org.siwpas.openejb.integration.SiwpasContextListener.addFacesConfigs(SiwpasContextListener.java:
1139)
at
org.siwpas.openejb.integration.SiwpasContextListener.createWebModule(SiwpasContextListener.java:
999)
... 37 more
Caused by: javax.xml.bind.UnmarshalException: unexpected element
(uri:"http://java.sun.com/xml/ns/javaee", local:"partial-view-context-
factory"). Expected elements are <{http://java.sun.com/xml/ns/javaee}
faces-context-factory>,<{http://java.sun.com/xml/ns/javaee}tag-handler-
delegate-factory>,<{http://java.sun.com/xml/ns/javaee}visit-context-
factory>,<{http://java.sun.com/xml/ns/javaee}external-context-
factory>,<{http://java.sun.com/xml/ns/javaee}factory-
extension>,<{http://java.sun.com/xml/ns/javaee}exception-handler-
factory>,<{http://java.sun.com/xml/ns/javaee}application-
factory>,<{http://java.sun.com/xml/ns/javaee}render-kit-
factory>,<{http://java.sun.com/xml/ns/javaee}lifecycle-
factory>,<{http://java.sun.com/xml/ns/javaee}view-declaration-language-
factory>
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:
616)
at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:
244)
at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:
239)
at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:
116)
at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.childElement(Loader.java:
101)
at
com.sun.xml.bind.v2.runtime.unmarshaller.StructureLoader.childElement(StructureLoader.java:
245)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:
452)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:
433)
at
com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:
137)
at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:
527)
at org.apache.openejb.jee.JaxbJavaee
$JavaeeNamespaceFilter.startElement(JaxbJavaee.java:225)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:
501)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:
400)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:
648)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:
140)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:
511)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:
808)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:
737)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:
119)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:
1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
$JAXPSAXParser.parse(SAXParserImpl.java:522)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:
211)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:
190)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:
238)
at org.apache.openejb.jee.JaxbJavaee.unmarshalJavaee(JaxbJavaee.java:
116)
at
org.apache.openejb.config.ReadDescriptors.readFacesConfig(ReadDescriptors.java:
558)

Some help?

thank's

fiorenzo

Gurkan Erdogdu

unread,
Oct 25, 2010, 2:41:00 AM10/25/10
to siwpas-d...@googlegroups.com
Hello,

Bug is confirmed. It will be resolved in CR5 and above.

Thanks;

Gurkan Erdogdu

2010/10/25 fiorenzino <fiore...@gmail.com>



--
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com

Gurkan Erdogdu

unread,
Oct 25, 2010, 2:51:06 AM10/25/10
to siwpas-d...@googlegroups.com
For workaround, download attachment from http://code.google.com/p/siwpas/issues/detail?id=6&can=7 and replace openejb-jee.jar from "server_path/lib/openejb-jee.jar"

Thanks;

--Gurkan

2010/10/25 Gurkan Erdogdu <cgurkan...@gmail.com>
Reply all
Reply to author
Forward
0 new messages