• 1 reply
  • Latest Post - ‏2013-04-02T13:05:43Z by cyu021
3 Posts

Pinned topic unable to deploy

‏2013-04-01T08:29:06Z |
Hi all,

I built a web service with CXF in WAR that works for tomcat6. When I try to deploy the same WAR to WASCE3, I get the following error message:

2013-04-01 16:28:00,527 ERROR DeployTool Error:
org.apache.geronimo.common.DeploymentException: Unable to deploy FET_ECSP.war: Failed parsing descriptors for module: /usr/IBM/WebSphere/AppServerCommunityEdition/instances/instance1/var/temp/geronimo-deployer1663543040816487284.tmpdir/FET_ECSP.war
Cannot unmarshall the beans.xml file: jar:file:/usr/IBM/WebSphere/AppServerCommunityEdition/instances/instance1/var/temp/geronimo-deployer1663543040816487284.tmpdir/FET_ECSP.war!/WEB-INF/beans.xml: unexpected element (uri:"", local:"import"). Expected elements are <{}decorators>,<{}alternatives>,<{}interceptors>
unexpected element (uri:"", local:"import"). Expected elements are <{}decorators>,<{}alternatives>,<{}interceptors>

at org.apache.geronimo.deployment.cli.CommandDeploy.runCommand(
at org.apache.geronimo.deployment.cli.CommandDistribute.executeOnline(
at org.apache.geronimo.deployment.cli.CommandDistribute.execute(
at org.apache.geronimo.deployment.cli.DeployTool.execute(
at org.apache.geronimo.system.main.MainBridge.execute(
at org.apache.geronimo.main.Bootstrapper.execute(
at org.apache.geronimo.cli.AbstractCLI.executeMain(
at org.apache.geronimo.cli.deployer.DeployerCLI.main(

I have no idea what to do next, any help is very much appreciated.
Updated on 2013-04-02T13:05:43Z at 2013-04-02T13:05:43Z by cyu021
  • cyu021
    3 Posts

    Re: unable to deploy

    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)
    3. not loading a few modules when startup application server
    4. put a few classes into hidden-classes

    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 ~na:na
    at ~na:na
    at ~na:na
    at ~na:na
    at$XSIErrorReporter.reportError( ~na:na
    at ~na:na
    at ~na:na
    at ~na:na
    at ~na:na
    at ~na:na
    at com.sun.xml.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.startElement( ~jaxb-impl-2.2.6.jar:2.2.6
    at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement( ~jaxb-impl-2.2.6.jar:2.2.6
    at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement( ~jaxb-impl-2.2.6.jar:2.2.6
    at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge( ~jaxb-impl-2.2.6.jar:2.2.6
    at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0( ~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:

    hidden-classes filter doesn't seem to work on "", 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?