0 Replies Latest reply on Jan 7, 2019 8:08 AM by 3519756

    java.lang.ClassNotFoundException: com.sun.xml.internal.stream.Entity$ScannedEntity

    3519756

      When we deploy the WAR file in weblogic it got the error -> java.lang.ClassNotFoundException: com.sun.xml.internal.stream.Entity$ScannedEntity

      The WLS_ADF1 log as below.

       

       

      weblogic.application.ModuleException: Failed to load webapp: HCM.war because of DeploymentException: java.lang.ClassNotFoundException: com.sun.xml.internal.stream.Entity$ScannedEntity

      at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:395)

      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:517)

      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

      at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)

      at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)

      at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:648)

      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

      at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)

      at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:44)

      at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)

      at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)

      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:208)

      at weblogic.deploy.internal.targetserver.operations.StartOperation.createAndPrepareContainer(StartOperation.java:94)

      at weblogic.deploy.internal.targetserver.operations.StartOperation.doPrepare(StartOperation.java:107)

      at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)

      at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)

      at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)

      at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)

      at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)

      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)

      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)

      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)

      at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)

      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

      Caused By: java.lang.ClassNotFoundException: com.sun.xml.internal.stream.Entity$ScannedEntity

      at java.net.URLClassLoader.findClass(URLClassLoader.java:434)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:677)

      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:643)

      at java.lang.J9VMInternals.verifyImpl(Native Method)

      at java.lang.J9VMInternals.verify(J9VMInternals.java:73)

      at java.lang.J9VMInternals.initialize(J9VMInternals.java:135)

      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.<init>(XML11Configuration.java:513)

      at com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration.<init>(XIncludeAwareParserConfiguration.java:125)

      at com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration.<init>(XIncludeAwareParserConfiguration.java:86)

      at java.lang.J9VMInternals.newInstanceImpl(Native Method)

      at java.lang.Class.newInstance(Class.java:1558)

      at com.sun.org.apache.xerces.internal.parsers.ObjectFactory.newInstance(ObjectFactory.java:349)

      at com.sun.org.apache.xerces.internal.parsers.ObjectFactory.createObject(ObjectFactory.java:154)

      at com.sun.org.apache.xerces.internal.parsers.ObjectFactory.createObject(ObjectFactory.java:97)

      at com.sun.org.apache.xerces.internal.parsers.DOMParser.<init>(DOMParser.java:125)

      at com.sun.org.apache.xerces.internal.parsers.DOMParser.<init>(DOMParser.java:109)

      at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.<init>(DocumentBuilderImpl.java:115)

      at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.<init>(DocumentBuilderImpl.java:109)

      at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:109)

      at com.bea.core.repackaged.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(Unknown Source)

      at com.bea.core.repackaged.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(Unknown Source)

      at com.bea.core.repackaged.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(Unknown Source)

      at com.bea.core.repackaged.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(Unknown Source)

      at com.bea.core.repackaged.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(Unknown Source)

      at com.bea.core.repackaged.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)

      at com.bea.core.repackaged.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)

      at com.bea.core.repackaged.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)

      at com.oracle.pitchfork.server.DefaultContainerBootstrap.bootstrap(DefaultContainerBootstrap.java:51)

      at com.oracle.pitchfork.server.Bootstrap.deploy(Bootstrap.java:147)

      at com.oracle.pitchfork.spi.WLSBootstrap.deploy(WLSBootstrap.java:111)

      at com.oracle.pitchfork.server.Bootstrap.deploy(Bootstrap.java:114)

      at com.oracle.pitchfork.spi.bean.internal.AbstractBeanManager.initialize(AbstractBeanManager.java:52)

      at com.oracle.pitchfork.spi.WebComponentContributorBrokerImpl.initialize(WebComponentContributorBrokerImpl.java:69)

      at weblogic.servlet.internal.WebComponentContributor.initialize(WebComponentContributor.java:98)

      at weblogic.servlet.internal.WebAppServletContext.processAnnotations(WebAppServletContext.java:1389)

      at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:451)

      at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:495)

      at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:418)

      at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:976)

      at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:384)

      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:517)

      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

      at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)

      at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)

      at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:648)

      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

      at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)

      at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:44)

      at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)

      at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)

      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:208)

      at weblogic.deploy.internal.targetserver.operations.StartOperation.createAndPrepareContainer(StartOperation.java:94)

      at weblogic.deploy.internal.targetserver.operations.StartOperation.doPrepare(StartOperation.java:107)

      at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)

      at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)

      at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)

      at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)

      at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)

      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)

      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)

      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)

      at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)

      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:2