geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cyu021 <cyu...@gmail.com>
Subject Re: unable to deploy WAR file
Date Tue, 02 Apr 2013 13:03:01 GMT
I tried a few more possibilities:
1. use CXFServlet instead of Spring when generating Java code from WSDL
2. replace CXF2.7.3 with CXF2.6.6 (2.7.3 generate exception) 
cxf-servlet.xml
<http://apache-geronimo.328035.n3.nabble.com/file/n3986501/cxf-servlet.xml> 
,  web.xml
<http://apache-geronimo.328035.n3.nabble.com/file/n3986501/web.xml>  
3. not loading a few modules when startup application server  config.xml
<http://apache-geronimo.328035.n3.nabble.com/file/n3986501/config.xml>  
4. put a few classes into hidden-classes  geronimo-web.xml
<http://apache-geronimo.328035.n3.nabble.com/file/n3986501/geronimo-web.xml>  

After step 1 ~ 3 are done, I can deploy my WAR to geronimo3 and runs
smoothly
However, the same WAR file can only run without xml schema validation (that
is schema-validation-enabled set to false).  If I set
schema-validation-enabled to true, I get the following exception:

Caused by: org.xml.sax.SAXParseException: UndeclaredPrefix: 無法解析
'prov:UpdateProvisionTaskEx' 為 QName: 未宣告前置碼 'prov'。
	at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:231)
~[na:na]
	at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:167)
~[na:na]
	at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:420)
~[na:na]
	at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:354)
~[na:na]
	at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:453)
~[na:na]
	at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3217)
~[na:na]
	at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.getAndCheckXsiType(XMLSchemaValidator.java:2499)
~[na:na]
	at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1986)
~[na:na]
	at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:741)
~[na:na]
	at
com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement(ValidatorHandlerImpl.java:597)
~[na:na]
	at
com.sun.xml.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.startElement(ValidatingUnmarshaller.java:101)
~[jaxb-impl-2.2.6.jar:2.2.6]
	at
com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:75)
~[jaxb-impl-2.2.6.jar:2.2.6]
	at
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:247)
~[jaxb-impl-2.2.6.jar:2.2.6]
	at
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:181)
~[jaxb-impl-2.2.6.jar:2.2.6]
	at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:366)
~[jaxb-impl-2.2.6.jar:2.2.6]
	... 39 common frames omitted


I replace jaxb lib with 2.7.3's jaxb and put latest jaxp lib into
WEB-INF/lib.
This is my hidden-classes setting:
        <dep:hidden-classes>
            <dep:filter>org.apache.cxf</dep:filter>
            <dep:filter>org.slf4j</dep:filter>
        	<dep:filter>com.sun.xml.bind.v2</dep:filter>
        	<dep:filter>com.sun.org.apache.xerces.internal</dep:filter>
        </dep:hidden-classes>

hidden-classes filter doesn't seem to work on
"com.sun.org.apache.xerces.internal", looks like the default lib is still
being used at runtime instead of the jaxp I put under WEB-INF/lib (since
debug message doesn't show the filename and version of the classes
"[na:na]").

What should I do next to get rid of this exception?



--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/unable-to-deploy-WAR-file-tp3986490p3986501.html
Sent from the Users mailing list archive at Nabble.com.

Mime
View raw message