2 Replies Latest reply on Mar 15, 2011 9:47 AM by 847464

    Error parsing descriptor in Web appplication

    787971
      I have noticed this exception over the past few days


      <Jun 28, 2010 3:29:32 AM EDT> <Error> <HTTP> <BEA-101064> <[WebAppModule(server1:webapp)] Error parsing descriptor in Web appplication "/opt/bea-10.3.2/user_projects/domains/myDomain/servers/server1/tmp/_WL_user/server1/32gb33/webapp.war"


      There seems to be an issue with the weblogic.xml file. Below mentioned is the descriptor tag inside the weblogic.xml :

      <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">

      The URL within the tag is not accessible , Could that be the cause for the exception? If this something others have seen and what needs to be done to fix this ?

      Thanks.
        • 1. Re: Error parsing descriptor in Web appplication
          Jay SenSharma MiddlewareMagic
          Hi,

          try this to debug the issue:

          <b><font color=maroon>Step-1).</font></b> Open a command prompt and the run "setWLSEnv.cmd" (which is available inside %WL_HOME%\server\bin)
          If you are using Unix based operating System then please run
          *". ./setWLSEnv.sh"*
          Note: There are 2 DOTs in above command...... the first DOT represents that set the Environment in the current Shell, AND the second ./ represents execute the script from the current directory. After this Verify that the Classpath is Set properly or not by running following command:
          echo $CLASSPATH

          <b><font color=maroon>Step-2).</font></b> In the same command prompt move Just beside your Application Directory. and run the following command

          java weblogic.DDConverter -d . <Your Application Name>

          Example:
          java weblogic.DDConverter -d . TestWelcomePage.war


          Just check whether in your current directory Latest Deployment descriptors are generated or not?
          If not ...it means your Deployment descriptors are not correct...in that case please Post your Complete deployment descriptor for investigation.
          And
          Please specify Which version of WebLogic Are you using.
          .
          .
          Thanks
          Jay SenSharma
          http://weblogic-wonders.com/weblogic/ (WebLogic Wonders Are Here)
          • 2. Re: Error parsing descriptor in Web appplication
            847464
            Hi Jay Sen Sharma ,
            I m facing the same issue mentioned above.Im using OIM 11.1.1.3.0 and weblogic 10.3,the error I see is

            <Mar 15, 2011 3:02:20 AM PDT> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'oim [Version=11.1.1.3.0]' due to error weblogic.a
            pplication.ModuleException: [HTTP:101064][WebAppModule(oim [Version=11.1.1.3.0]:xlWebApp)] Error parsing descriptor in Web appplication "T:\Oracle\Mid
            dleware\Oracle_IDM1\server\apps\oim.ear\xlWebApp.war"
            javax.xml.stream.XMLStreamException: Error at Line:0 Prefix [XDtConfig] used without binding it to a namespace URI
            at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:206)
            at weblogic.xml.stax.XMLStreamReaderBase.next(XMLStreamReaderBase.java:237)
            at javax.xml.stream.util.StreamReaderDelegate.next(StreamReaderDelegate.java:60)
            at weblogic.application.descriptor.DebugStreamReaderDelegate.next(DebugStreamReaderDelegate.java:89)
            at weblogic.application.descriptor.BasicMunger2.next(BasicMunger2.java:442)
            at weblogic.application.descriptor.VersionMunger._next(VersionMunger.java:333)
            at weblogic.application.descriptor.VersionMunger.next(VersionMunger.java:221)
            at weblogic.application.descriptor.VersionMunger.consumeInputStream(VersionMunger.java:499)
            at weblogic.application.descriptor.VersionMunger.init(VersionMunger.java:425)
            at weblogic.application.descriptor.VersionMunger.<init>(VersionMunger.java:85)
            at weblogic.application.descriptor.VersionMunger.<init>(VersionMunger.java:66)
            at weblogic.servlet.internal.WlsWebAppReader2.<init>(WlsWebAppReader2.java:59)
            at weblogic.servlet.internal.WebAppDescriptor$MyWlsWebAppDescriptor.createXMLStreamReader(WebAppDescriptor.java:316)
            at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:402)
            at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
            at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768)
            at weblogic.servlet.internal.WebAppDescriptor.getWeblogicWebAppBean(WebAppDescriptor.java:170)
            at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:1332)
            at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:371)
            at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
            at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
            at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
            at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:149)
            at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
            at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
            at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
            at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
            at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
            at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
            at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:141)
            at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
            at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
            at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
            at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:261)
            at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:220)
            at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
            at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
            at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
            at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
            at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
            Caused by: Error at Line:0 Prefix [XDtConfig] used without binding it to a namespace URI
            at weblogic.xml.babel.baseparser.Element.setNameSpace(Element.java:111)
            at weblogic.xml.babel.baseparser.StartElement.parse(StartElement.java:92)
            at weblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java:453)
            at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:326)
            at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:195)
            ... 44 more

            Error at Line:0 Prefix [XDtConfig] used without binding it to a namespace URI.
            weblogic.application.ModuleException: [HTTP:101064][WebAppModule(oim [Version=11.1.1.3.0]:xlWebApp)] Error parsing descriptor in Web appplication "T:\
            Oracle\Middleware\Oracle_IDM1\server\apps\oim.ear\xlWebApp.war"
            javax.xml.stream.XMLStreamException: Error at Line:0 Prefix [XDtConfig] used without binding it to a namespace URI
            at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:206)
            at weblogic.xml.stax.XMLStreamReaderBase.next(XMLStreamReaderBase.java:237)


            Also here is the content of my weblogic.xml :

            <?xml version='1.0' encoding='UTF-8'?>
            <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">


                 <security-role-assignment>
                      <role-name>User</role-name>
                      <principal-name>User</principal-name>
                 </security-role-assignment>
                 <jsp-descriptor>
                 <jsp-param>
                 <param-name>encoding</param-name>
                 <param-value>UTF-8</param-value>
                 </jsp-param>
                 <jsp-param>
                 <param-name>compilerSupportsEncoding</param-name>
                 <param-value>true</param-value>
                 </jsp-param>
            </jsp-descriptor>

            <container-descriptor>
                 <filter-dispatched-requests-enabled>
                      false
                 </filter-dispatched-requests-enabled>
            </container-descriptor>

                 <XDtConfig:ifConfigParamEquals paramName="clustering" value="true">
                 <XDtConfig:ifConfigParamEquals paramName="replication" value="InMemory">
                 <session-descriptor>
                      <session-param>
                           <param-name>PersistentStoreType</param-name>
                           <param-value>replicated</param-value>
                      </session-param>
                 </session-descriptor>
                 </XDtConfig:ifConfigParamEquals>

                 <XDtConfig:ifConfigParamEquals paramName="replication" value="Database">
                 <session-descriptor>
                      <session-param>
                           <param-name>PersistentStoreType</param-name>
                           <param-value>jdbc</param-value>
                      </session-param>
                      <session-param>
                           <param-name>PersistentStorePool</param-name>
                           <param-value>xlConnectionPool</param-value>
                      </session-param>
                 </session-descriptor>
                 </XDtConfig:ifConfigParamEquals>
                 </XDtConfig:ifConfigParamEquals>
            <wl-dispatch-policy>OIMUIWorkManager</wl-dispatch-policy>
            </weblogic-web-app>


            Please let me know what needs to be done or incase you need more information on the details.

            Regards,
            Rahul