java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory

Atlassian JIRA | Brenden Bain [Atlassian] | 7 years ago
  1. 0

    JIRA 4.0 does not run on WebLogic 10, even with the fixes for JRA-19367 it does not work. When you enable the {{<prefer-web-inf-classes>true</prefer-web-inf-classes>}} option you end up with some ClassCastException when trying to deploy the application: {code} java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory 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) at weblogic.servlet.internal.WebAppServletContext$ServletContextWebAppHelper.getTldInfo(WebAppServletContext.java:3612) {code} I guess WebLogic is using some parser from within JIRA or its plugins and is thus having some problems. If you try {{<prefer-web-inf-classes>false</prefer-web-inf-classes>}} this you get the following error when booting up JIRA. {code} java.lang.NoSuchMethodError: join at com.atlassian.plugin.osgi.factory.transform.stage.GenerateManifestStage.execute(GenerateManifestStage.java:124) at com.atlassian.plugin.osgi.factory.transform.DefaultPluginTransformer.transform(DefaultPluginTransformer.java:113) at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.createOsgiPluginJar(OsgiPluginFactory.java:218) at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.create(OsgiPluginFactory.java:152) at com.atlassian.plugin.loaders.ScanningPluginLoader.deployPluginFromUnit(ScanningPluginLoader.java:115) at com.atlassian.plugin.loaders.ScanningPluginLoader.loadAllPlugins(ScanningPluginLoader.java:88) at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:135) at com.atlassian.jira.plugin.JiraPluginManager.start(JiraPluginManager.java:49) at com.atlassian.jira.ComponentManager$PluginSystem.start(ComponentManager.java:1275) at com.atlassian.jira.ComponentManager.quickStart(ComponentManager.java:226) at com.atlassian.jira.ComponentManager.start(ComponentManager.java:210) {code} This is caused by accessing an old versions of commons-lang from some where. The full log is attached for other information. The actual problems start happening at 12/10/2009 03:44:59 PM EST. The other errors are just setup problems. I have the install in a VM if you want to have a play.

    Atlassian JIRA | 7 years ago | Brenden Bain [Atlassian]
    java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory
  2. 0

    JIRA 4.0 does not run on WebLogic 10, even with the fixes for JRA-19367 it does not work. When you enable the {{<prefer-web-inf-classes>true</prefer-web-inf-classes>}} option you end up with some ClassCastException when trying to deploy the application: {code} java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory 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) at weblogic.servlet.internal.WebAppServletContext$ServletContextWebAppHelper.getTldInfo(WebAppServletContext.java:3612) {code} I guess WebLogic is using some parser from within JIRA or its plugins and is thus having some problems. If you try {{<prefer-web-inf-classes>false</prefer-web-inf-classes>}} this you get the following error when booting up JIRA. {code} java.lang.NoSuchMethodError: join at com.atlassian.plugin.osgi.factory.transform.stage.GenerateManifestStage.execute(GenerateManifestStage.java:124) at com.atlassian.plugin.osgi.factory.transform.DefaultPluginTransformer.transform(DefaultPluginTransformer.java:113) at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.createOsgiPluginJar(OsgiPluginFactory.java:218) at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.create(OsgiPluginFactory.java:152) at com.atlassian.plugin.loaders.ScanningPluginLoader.deployPluginFromUnit(ScanningPluginLoader.java:115) at com.atlassian.plugin.loaders.ScanningPluginLoader.loadAllPlugins(ScanningPluginLoader.java:88) at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:135) at com.atlassian.jira.plugin.JiraPluginManager.start(JiraPluginManager.java:49) at com.atlassian.jira.ComponentManager$PluginSystem.start(ComponentManager.java:1275) at com.atlassian.jira.ComponentManager.quickStart(ComponentManager.java:226) at com.atlassian.jira.ComponentManager.start(ComponentManager.java:210) {code} This is caused by accessing an old versions of commons-lang from some where. The full log is attached for other information. The actual problems start happening at 12/10/2009 03:44:59 PM EST. The other errors are just setup problems. I have the install in a VM if you want to have a play.

    Atlassian JIRA | 7 years ago | Brenden Bain [Atlassian]
    java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    db:: 3.25::Problems with app descriptor.xml fp

    hivmr.com | 8 months ago
    java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory

    6 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.ctc.wstx.stax.WstxInputFactory

      at javax.xml.stream.XMLInputFactory.newInstance()
    2. Java RT
      XMLInputFactory.newInstance
      1. javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:137)
      1 frame
    3. Atmosphere weblogic
      TldCacheHelper$TldIOHelper.parseXML
      1. weblogic.servlet.internal.TldCacheHelper$TldIOHelper.parseXML(TldCacheHelper.java:124)
      1 frame
    4. weblogic.descriptor
      DescriptorCache.parseXML
      1. weblogic.descriptor.DescriptorCache.parseXML(DescriptorCache.java:380)
      1 frame
    5. Atmosphere weblogic
      WebAppServletContext$ServletContextWebAppHelper.getTldInfo
      1. weblogic.servlet.internal.TldCacheHelper.parseTagLibraries(TldCacheHelper.java:65)
      2. weblogic.servlet.internal.War.getTagInfo(War.java:891)
      3. weblogic.servlet.internal.WebAppServletContext$ServletContextWebAppHelper.getTldInfo(WebAppServletContext.java:3612)
      3 frames