1 Reply Latest reply: Mar 28, 2013 3:21 AM by 998979 RSS

    weblogic.management.DeploymentException while deploying spring app on 12C

    998979
      War file deployeed and tested on 11g is failing to deploy on 12C with error below.

      log4j:ERROR Could not parse input source [org.xml.sax.InputSource@69a890d4].
      java.lang.SecurityException: SHA1 digest error for log4j.xml
           at sun.security.util.ManifestEntryVerifier.verify(ManifestEntryVerifier.java:220)
           at java.util.jar.JarVerifier.processEntry(JarVerifier.java:229)
           at java.util.jar.JarVerifier.update(JarVerifier.java:216)
           at java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:471)
           at java.io.FilterInputStream.read(FilterInputStream.java:133)
           at org.apache.xerces.impl.XMLEntityManager$RewindableInputStream.read(Unknown Source)
           at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
           at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
           at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
           at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
           at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
           at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
           at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
           at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
           at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
           at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
           at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:665)
           at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
           at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
           at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
           at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
           at org.apache.log4j.Logger.getLogger(Logger.java:85)
           at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
           at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
           at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
           at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
           at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
           at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
           at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
           at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
           at com.bea.console.resource.http.ResourceServlet.<clinit>(ResourceServlet.java:52)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
           at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
           at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
           at java.lang.Class.newInstance0(Class.java:372)
           at java.lang.Class.newInstance(Class.java:325)
           at weblogic.servlet.internal.WebComponentContributor.getNewInstance(WebComponentContributor.java:236)
           at weblogic.servlet.internal.WebComponentContributor.getNewInstance(WebComponentContributor.java:229)
           at weblogic.servlet.internal.WebComponentContributor.createServletInstance(WebComponentContributor.java:258)
           at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.newServletInstanceIfNecessary(StubSecurityHelper.java:320)
           at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:273)
           at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:250)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
           at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
           at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
           at weblogic.servlet.internal.StubSecurityHelper.initServletInstance(StubSecurityHelper.java:94)
           at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:82)
           at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:74)
           at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:60)
           at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:34)
           at weblogic.servlet.internal.ServletStubImpl.initStubLifecycleHelper(ServletStubImpl.java:624)
           at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:565)
           at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1874)
           at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1848)
           at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1738)
           at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2740)
           at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1704)
           at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:781)
           at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
           at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
           at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70)
           at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:212)
           at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:111)
           at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
           at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
           at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
           at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70)
           at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:24)
           at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:729)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
           at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)
           at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:61)
           at weblogic.application.services.BackgroundDeploymentService$2.next(BackgroundDeploymentService.java:337)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
           at weblogic.application.services.BackgroundDeploymentService$BackgroundDeployAction.run(BackgroundDeploymentService.java:237)
           at weblogic.application.services.BackgroundDeploymentService$OnDemandBackgroundDeployAction.run(BackgroundDeploymentService.java:300)
           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)
      log4j:WARN No appenders could be found for logger (com.bea.console.preferences.spi.FilePreferencesProvider).
      log4j:WARN Please initialize the log4j system properly.
      weblogic.management.DeploymentException:
           at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:123)
           at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:239)
           at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:48)
           at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)
           at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
           at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
           at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:96)
           at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:229)
           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.NullPointerException
           at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:445)
           at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConnection.java:37)
           at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
           at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
           at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.parse(Unknown Source)
           at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.parse(Unknown Source)
           at org.apache.xerces.impl.xs.opti.SchemaDOMParser.parse(Unknown Source)
           at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown Source)
           at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
           at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
           at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown Source)
           at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
           at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
           at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
           at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
           at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
           at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
           at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
           at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
           at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
           at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
           at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
           at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
           at org.jboss.weld.xml.BeansXmlParser.parse(BeansXmlParser.java:107)
           at org.jboss.weld.xml.BeansXmlParser.parse(BeansXmlParser.java:133)
           at org.jboss.weld.bootstrap.WeldBootstrap.parse(WeldBootstrap.java:461)
           at com.oracle.injection.provider.weld.BasicBeanDeploymentArchive.getBeansXml(BasicBeanDeploymentArchive.java:89)
           at org.jboss.weld.bootstrap.BeanDeployment.<init>(BeanDeployment.java:98)
           at org.jboss.weld.bootstrap.WeldBootstrap$DeploymentVisitor.visit(WeldBootstrap.java:173)
           at org.jboss.weld.bootstrap.WeldBootstrap$DeploymentVisitor.visit(WeldBootstrap.java:149)
           at org.jboss.weld.bootstrap.WeldBootstrap.startContainer(WeldBootstrap.java:268)
           at com.oracle.injection.provider.weld.WeldInjectionContainer.initialize(WeldInjectionContainer.java:85)
           at com.oracle.injection.integration.CDIAppDeploymentExtension.prepare(Unknown Source)
           at weblogic.application.internal.flow.AppDeploymentExtensionFlow.prepare(AppDeploymentExtensionFlow.java:23)
           at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:706)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
           at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:237)
           at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:48)
           at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)
           at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
           at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
           at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:96)
           at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:229)
           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)
      >


      web.xml is as below
      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
      <display-name>rpm-adapter-spring</display-name>
      <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
      </welcome-file-list>

      <context-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>WEB-INF/beans.xml</param-value>
      </context-param>
      <listener>
      <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
      </listener>

      </web-app>


      Is it mandatory to have atleast one servlet with contextListener
      Edited by: 995976 on 26-Mar-2013 05:08

      Edited by: 995976 on 27-Mar-2013 23:33