Discussions

General J2EE: Servlet: "action" failed to preload due to servlet exception wit

  1. Hello,

    I have tried struts application excecuting in Weblogic in which i created my own Domain, Whenever i start the server i m encountering the following error before deplyment. This is becoz of the ActionServlet may be.

    <Error> <HTTP> <BEA-101216> <Servlet: "action" failed to preload on startup
    in Web application: "XYZ".javax.servlet.ServletException:org/apache/commons/digester/RuleSet at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm pl.java:884) at
    weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub Impl.java:848) at
    weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI mpl.java:787) at
    weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS ervletContext.java:3252) at
    weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp ServletContext.java:3197) at
    weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp pServletContext.java:3174) at
    weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServl etContext.java:5647) at
    weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:869) at
    weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer .java:2022) at
    weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai ner.java:2063) at
    weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.
    activateContainer(SlaveDeployer.java:2592) at
    weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit( SlaveDeployer.java:2515) at
    weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeplo yer.java:2317) at
    weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(S laveDeployer.java:2399) at
    weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDepl oyer.java:2311) at
    weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S laveDeployer.java:2479) at
    weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla veDeployer.java:798) at
    weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl oyer.java:507) at
    weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep loyer.java:465) at
    weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan dler.java:25) at
    weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at
    weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) > <Mar 21, 2006 5:18:59 PM IST> <Warning>
    <HTTP> <BEA-101248> <[Application: 'C:\b ea8.1\user_projects\domains\mydomain\applications',
    Module: 'servetexample']: De ployment descriptor "web.xml" is malformed. Check against the DTD:
    org.xml.sax.S AXParseException: cvc-elt.1: Cannot find the declaration of element 'web-app'. ( line
    2, column 10).> <Mar 21, 2006 5:19:04 PM IST> <Warning> <HTTP> <BEA-101248> <[null]: Deployment
    descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseEx ception: cvc-
    elt.1: Cannot find the declaration of element 'web-app'. (line 2, c olumn 10).>

    =======================================================
    Struts-config.xml, web.xml are perfectly alright.

    Even i am able to execute same application In TOMCAT sucessfully.
    Plz help me so that i can work it out with WEBLOGIC. I guess The RuleSet inetface has some problem.

    Do reply me ASAP.
    Thanks
  2. Prasad,

    The digester doesn't like the web.xml file, so I'd be interested to know upon which facts you based your decision that it is 'perfectly alright'.

    Maybe you could post the web.xml file, so that we can determine where the problem lies?

    Bob
  3. Thanks Bob for ur inputs,

    After alot of R&D i found the solution for this.It cannot be called as solution becoz i uninstalled the WLS8.1.2 & reinstalled it. Afetr that i deployed the same application.. and surprizingly it worked..

    I astonised, really i tried to dig in it but i didn't find any reason for that...

    Whats ur words on it.

    Regards,
    Prasad
  4. I hate it when this kind of thing happens, because you never really know what went wrong so you're not sure if it'll come back at some point.

    In the end though, I wouldn't lose any sleep over it - just get one with the next thing on your list.