You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "ravi sekhar mikkilineni (JIRA)" <ji...@apache.org> on 2009/12/04 08:03:21 UTC

[jira] Created: (AXIS2-4573) Issue when deploying axis2.1.5 application in weblogic 10.3 (Failed to initialize the application 'axis2' due to error weblogic.application.ModuleException)

Issue when deploying axis2.1.5 application in weblogic 10.3 (Failed to initialize the application 'axis2' due to error weblogic.application.ModuleException)
------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2-4573
                 URL: https://issues.apache.org/jira/browse/AXIS2-4573
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: deployment
    Affects Versions: 1.5
         Environment: OS SunOS 5.10 
Weblogic10.3
Axis2.1.5
jdk1.6.0_16
            Reporter: ravi sekhar mikkilineni


Below is the Exception I am getting...Please let me know the work around to get rid of this error.

<Failed to initialize the application 'myaxis2' due to error weblogic.application.ModuleException: .
weblogic.application.ModuleException: 
        at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)
        at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
        at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
        at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
        Truncated. see log file for complete stacktrace
java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory cannot be cast to javax.xml.stream.XMLInputFactory
        at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:137)
        at weblogic.servlet.internal.TldCacheHelper$TldIOHelper.parseXML(TldCacheHelper.java:124)
        at weblogic.descriptor.DescriptorCache.parseXML(DescriptorCache.java:380)
        at weblogic.servlet.internal.TldCacheHelper.parseTagLibraries(TldCacheHelper.java:65)
        at weblogic.servlet.internal.War.getTagInfo(War.java:891)
        Truncated. see log file for complete stacktrace

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-4573) Issue when deploying axis2.1.5 application in weblogic 10.3 (Failed to initialize the application 'axis2' due to error weblogic.application.ModuleException)

Posted by "Axel van Lil (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12786229#action_12786229 ] 

Axel van Lil commented on AXIS2-4573:
-------------------------------------

In my case (although OSX) the following helped:

- removed stax-1.0.1, upgraded to 1.0.2 (1.0.1 packages an incompatible javax.xml.namespace.QName class - difficult story)
- set prefer-web-inf-classes to 'true' in weblogic.xml
- I updated woodstox stax 'wstx-asl' to 3.2.8 (don't know if required)

Had the same Exception as you - it's working now.

> Issue when deploying axis2.1.5 application in weblogic 10.3 (Failed to initialize the application 'axis2' due to error weblogic.application.ModuleException)
> ------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4573
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4573
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: deployment
>    Affects Versions: 1.5
>         Environment: OS SunOS 5.10 
> Weblogic10.3
> Axis2.1.5
> jdk1.6.0_16
>            Reporter: ravi sekhar mikkilineni
>
> Below is the Exception I am getting...Please let me know the work around to get rid of this error.
> <Failed to initialize the application 'myaxis2' due to error weblogic.application.ModuleException: .
> weblogic.application.ModuleException: 
>         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)
>         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
>         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
>         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
>         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
>         Truncated. see log file for complete stacktrace
> java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory cannot be cast to javax.xml.stream.XMLInputFactory
>         at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:137)
>         at weblogic.servlet.internal.TldCacheHelper$TldIOHelper.parseXML(TldCacheHelper.java:124)
>         at weblogic.descriptor.DescriptorCache.parseXML(DescriptorCache.java:380)
>         at weblogic.servlet.internal.TldCacheHelper.parseTagLibraries(TldCacheHelper.java:65)
>         at weblogic.servlet.internal.War.getTagInfo(War.java:891)
>         Truncated. see log file for complete stacktrace

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (AXIS2-4573) Issue when deploying axis2.1.5 application in weblogic 10.3 (Failed to initialize the application 'axis2' due to error weblogic.application.ModuleException)

Posted by "ravi sekhar mikkilineni (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ravi sekhar mikkilineni closed AXIS2-4573.
------------------------------------------

    Resolution: Fixed

Now I am able to successfully deploy and invoke my services...

Here is the solution:

change the following entry to false in your weblogic.xml

<prefer-web-inf-classes>false</prefer-web-inf-classes>

By default it is true,that means application first tries to load the classes which are present in WEB-INF,as the classes require the jars which are not yet loaded weblogic throws exception...

If we set it to false,the system loader first loads jars and then it will try to load web-inf classes

The problem is solved

> Issue when deploying axis2.1.5 application in weblogic 10.3 (Failed to initialize the application 'axis2' due to error weblogic.application.ModuleException)
> ------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4573
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4573
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: deployment
>    Affects Versions: 1.5
>         Environment: OS SunOS 5.10 
> Weblogic10.3
> Axis2.1.5
> jdk1.6.0_16
>            Reporter: ravi sekhar mikkilineni
>
> Below is the Exception I am getting...Please let me know the work around to get rid of this error.
> <Failed to initialize the application 'myaxis2' due to error weblogic.application.ModuleException: .
> weblogic.application.ModuleException: 
>         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)
>         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
>         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
>         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
>         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
>         Truncated. see log file for complete stacktrace
> java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory cannot be cast to javax.xml.stream.XMLInputFactory
>         at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:137)
>         at weblogic.servlet.internal.TldCacheHelper$TldIOHelper.parseXML(TldCacheHelper.java:124)
>         at weblogic.descriptor.DescriptorCache.parseXML(DescriptorCache.java:380)
>         at weblogic.servlet.internal.TldCacheHelper.parseTagLibraries(TldCacheHelper.java:65)
>         at weblogic.servlet.internal.War.getTagInfo(War.java:891)
>         Truncated. see log file for complete stacktrace

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.