This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes ExceptionInInitializerError when I deploy application on Managed server on Weblogic91 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "ExceptionInInitializerError when I deploy application on Managed server on Weblogic91" Watch "ExceptionInInitializerError when I deploy application on Managed server on Weblogic91" New topic
Author

ExceptionInInitializerError when I deploy application on Managed server on Weblogic91

Vishnu Murthy
Ranch Hand

Joined: Jan 04, 2001
Posts: 56
Hi,
I am are working on upgrading our application from weblogic6.1 to weblogic9.1 application server.

Deployed the application on weblogic91 Admin server it is working fine, but when I deploy the same application on one of the managed server of weblog91 from the server console, it is throughing the follwoing exception message.


An error occurred during activation of changes, please see the log for details.
[HTTP:101216]Servlet: "action" failed to preload on startup in Web application: "aegis". java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) 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:121) at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:68) at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58) at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:493) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1688) at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1665) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1585) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2678) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:874) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:326) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:114) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60) at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:25) at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:640) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:252) at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:567) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:131) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:101) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:329) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:845) at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1246) at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:432) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:161) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67) at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207) at weblogic.work.ExecuteThread.run(ExecuteThread.java:179) Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.reflect.InvocationTargetException at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395) at org.apache.struts.action.ActionServlet.<clinit>(ActionServlet.java:375) ... 43 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525) ... 47 more Caused by: java.lang.NoClassDefFoundError at org.apache.log4j.Logger.getLogger(Logger.java:85) at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:102) ... 52 more
Substituted for missing class org.apache.commons.logging.LogConfigurationException - java.lang.reflect.InvocationTargetException



I need your help.
Thanks
-Vishnu
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8843
    
    7

Originally posted by Vishnu Murthy:
... 47 more Caused by: java.lang.NoClassDefFoundError at org.apache.log4j.Logger.getLogger(Logger.java:85) at


That message sure makes it look like this problem is related to your previous problem.
I like to work on one problem at a time. While you are doing this upgrade, why don't you use a standard log4j class as an appender. Once you get your application working, introduce the custom class and debug that problem in a working application.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
 
subject: ExceptionInInitializerError when I deploy application on Managed server on Weblogic91
 
Similar Threads
ModuleException while publishing the EAR in Weblogic Server
Servlet failed to preload on startup in Web application
Servlet failed to preload on startup in Web application
Log4j in Weblogic - ClassNotFoundException please help
Servlet: "action" failed to preload on startup in Web application: "MyAPPName"