This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlet failed to preload on startup in Web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

Servlet failed to preload on startup in Web application

Sat Nar
Ranch Hand

Joined: Oct 22, 2004
Posts: 83
I have a servlet and when i start the server, i get the error message

"Servlet failed to preload on startup in Web application"

The servlet is present inside a jar file and the jar has been included in the classpath.

I am not able to move forward. Kindly help me out.

Mourouganandame Arunachalam
Ranch Hand

Joined: Oct 29, 2008
Posts: 396

Please post the full error stack trace and your web.xml will help to find out more on this issue.

Open Source leads to Open Mind
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
It sounds like you indicated that a servlet be loaded on startup of the container, however the container could not load or find it. As suggested, post your web.xml.

So much trouble in the world -- Bob Marley
Avinash Kp

Joined: May 12, 2010
Posts: 2

Hi all,

I am also getting "failed to preload on startup in Web application"exception while deploying EAR file in
Weblogic 10.3.

Please let me know, if you got the solution for the same.

Thanks & Regards

[HTTP:101216]Servlet: "TestEventSubmitForm" failed to preload on startup in Web application: "twkmhb". java.lang.NullPointerException at com.crimsonlogic.twk.config.ConfigManager.preload( at com.crimsonlogic.twk.config.ConfigManager.get( at com.crimsonlogic.twk.servlet.TestEventSubmitForm.init( at javax.servlet.GenericServlet.init( at weblogic.servlet.internal.StubSecurityHelper$ at at Source) at weblogic.servlet.internal.StubSecurityHelper.createServlet( at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance( at weblogic.servlet.internal.StubLifecycleHelper.<init>( at weblogic.servlet.internal.ServletStubImpl.prepareServlet( at weblogic.servlet.internal.WebAppServletContext.preloadServlet( at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup( at weblogic.servlet.internal.WebAppServletContext.preloadResources( at weblogic.servlet.internal.WebAppServletContext.start( at weblogic.servlet.internal.WebAppModule.startContexts( at weblogic.servlet.internal.WebAppModule.start( at weblogic.application.internal.flow.ModuleStateDriver$ at weblogic.application.utils.StateMachineDriver.nextState( at weblogic.application.internal.flow.ModuleStateDriver.start( at weblogic.application.internal.flow.ScopedModuleDriver.start( at weblogic.application.internal.flow.ModuleListenerInvoker.start( at weblogic.application.internal.flow.ModuleStateDriver$ at weblogic.application.utils.StateMachineDriver.nextState( at weblogic.application.internal.flow.ModuleStateDriver.start( at weblogic.application.internal.flow.StartModulesFlow.activate( at weblogic.application.internal.BaseDeployment$ at weblogic.application.utils.StateMachineDriver.nextState( at weblogic.application.internal.BaseDeployment.activate( at weblogic.application.internal.EarDeployment.activate( at weblogic.application.internal.DeploymentStateChecker.activate( at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate( at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate( at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment( at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit( at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit( at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit( at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit( at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList( at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit( at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit( at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback( at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100( at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$ at$ at at
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63536

Please do not post the same question more than once.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Servlet failed to preload on startup in Web application
It's not a secret anymore!