Weblogic startup servlet load

          Hi,
          I am encountering problems in running a Servlet on Weblogic
          server startup.
          The steps to be followed to execute a servlet on webLogic
          Server startup are as follows
          Register the following in the Weblogic properties
          file.
          1.register the servlet
          weblogic.httpd.register.MyServlet=\
          examples.servlets.myservletclass
          2.weblogic.system.startupClass.StartMyServlet=\
          weblogic.servlet.utils.ServletStartup
          3.weblogic.system.startupArgs.StartMyServlet=\
          servlet=MyServlet
          where MyServlet is the synonym used for registering the
          servlet in the file and myservletclass is the Actual
          name of the servlet.
          I have followed the steps accordingly but the server
          is failing to execute my servlet on startup.
          Any suggestions,solutions for the above problem
          will be most welcome.
          Thanx
          Tapan.
          

HOw did you specified the load-on-startup? and what error you get
          upon startup/deployment time?
          Kumar
          Giulia Esposito wrote:
          > I try to load my servlet on startup of Bea WebLogic Server 6.1 (SP 3) cluster.
          > This load failed.
          >
          > Can you help me?
          >
          > Tank's!
          >
          

Similar Messages

  • Weblogic startup servlet loading

    Hi
    I am encountering problems in loading a Servlet on Weblogic
    server startup.
    The steps to be followed to load a servlet on webLogic
    Server startup are as follows
    Register the following in the Weblogic properties
    file.
    1.register the servlet
    weblogic.httpd.register.MyServlet=\
    examples.servlets.myservletclass
    2.weblogic.system.startupClass.StartMyServlet=\
    weblogic.servlet.utils.ServletStartup
    3.weblogic.system.startupArgs.StartMyServlet=\
    servlet=MyServlet
    where MyServlet is the synonym used for registering the
    servlet in the file and myservletclass is the Actual
    name of the servlet.
    I have followed the steps accordingly but the server
    is failing to load my servlet on startup.
    Any suggestions,solutions for the above problem
    will be most welcome.
    Thanx
    Tapan.

    Hi
    I am encountering problems in loading a Servlet on Weblogic
    server startup.
    The steps to be followed to load a servlet on webLogic
    Server startup are as follows
    Register the following in the Weblogic properties
    file.
    1.register the servlet
    weblogic.httpd.register.MyServlet=\
    examples.servlets.myservletclass
    2.weblogic.system.startupClass.StartMyServlet=\
    weblogic.servlet.utils.ServletStartup
    3.weblogic.system.startupArgs.StartMyServlet=\
    servlet=MyServlet
    where MyServlet is the synonym used for registering the
    servlet in the file and myservletclass is the Actual
    name of the servlet.
    I have followed the steps accordingly but the server
    is failing to load my servlet on startup.
    Any suggestions,solutions for the above problem
    will be most welcome.
    Thanx
    Tapan.

  • load-on-startup 1 /load-on-startup not working in Weblogic 9.1

    Hi
              I have the following xml tag in web.xml file
              <load-on-startup>1</load-on-startup> for some servlets, i have given then sequence 1 to 5, but for some reason 5 is loading first and the whole application crashes because of this.
              do i have to mention anything in weblogic.xml?
              Any ideas how do i fix this

    You're right, your situation is very similar to the situation the other poster describes. However, the main similarity is that neither of you have given us any information about what is going wrong. We can't read minds or read what's on your screen. We need to see specific error messages, stack traces, and specific code that shows what you are trying to do.
              However, it's likely that you're running into problems with the issues with "tag reuse" and "tag pooling". You should first read the JSP specification in the areas that talk about this issue, although this will probably leave you with more questions than you started with.
              I'm guessing that your "<gui:button>" element doesn't have any attributes. It's possible that WebLogic is reusing a single "<gui:button>" tag instance for each occurrence in your page. You may have to figure out how to turn off tag pooling in the JSP compiler, but I'm not sure how to do that.
              It's possible that Websphere doesn't give you an issue with this because perhaps they didn't bother with the tag pooling optimization (it is a good thing to have it available).

  • How long load-on-startup servlet stays in weblogic6.1 sp2

    does anybody know how long a load-on-startup servlet exists (before
              gets destroyed) in weblogic6.1 sp2. What i want is in load-on-startup
              servlet, I want to schedule a java.util.Timer and when application
              gets undeployed, i want to cancel that timer. if load-on-startup
              servlet exists for the whole application life span then i could do
              timer.cancel() on the destroy method of load-on-startup servlet.
              any suggestion?
              thanks in adv,
              soumik
              

    You can simply use ServletContextListener instead - that way you do not
              have to worry if (or when) WebLogic decides to destroy the servlet.
              soumik <[email protected]> wrote:
              > does anybody know how long a load-on-startup servlet exists (before
              > gets destroyed) in weblogic6.1 sp2. What i want is in load-on-startup
              > servlet, I want to schedule a java.util.Timer and when application
              > gets undeployed, i want to cancel that timer. if load-on-startup
              > servlet exists for the whole application life span then i could do
              > timer.cancel() on the destroy method of load-on-startup servlet.
              > any suggestion?
              > thanks in adv,
              > soumik
              Dimitri
              

  • Weblogic 7.0 startup servlet problem

    I have added a new startup servlet to my existing web application.
              While deploying the same, weblogic is throwing the following
              exception.
              I'm very sure that class (com/lbx/util/LbxProperties) is part of
              webapp war file I created. Can somebody please throw some light about
              this.
              I'm trying to do the .ear file deployment.
              Thank you very much
              Santhosh.
              <Dec 30, 2002 12:04:27 PM PST> <Error> <HTTP> <101216> <Servlet:
              "StartupServlet" failed to preload on startup in webapp: "wliWEB"
              javax.servlet.ServletException: com/lbx/util/LbxProperties
              at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:912)
              at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:833)
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:773)
              at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2763)
              at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2708)
              at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:2681)
              at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:4746)
              at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:539)
              at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:983)
              at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1017)
              at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1112)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:732)
              at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
              >
              

              Hi Santhosh,
              Yeah , if its part of the system class path, it should find it. How are u referencing
              the file? Try wrapping the code that gets the Resource and see what exception
              you get.
              -Raj
              "Santhosh Kumar" <[email protected]> wrote:
              >
              >Raj, you are right. I'm trying to load the properties from within the
              >that class.
              >However, path (external to ear file) where I placed all those properties
              >is part
              >of system class path. So wl should find those property files, right?
              >
              >-Santhosh.
              >
              >"Raj" <[email protected]> wrote:
              >>
              >>Hi
              >>Are you trying to load any property file in your startup servlet? I
              >think
              >>WL does
              >>not extract the file "automatically" from within the war file. You should
              >>probably
              >>try referencing the file using some other mechanism or try loading it
              >>from ur
              >>EJB(as EJB JARs are loaded before WARs).
              >>
              >>-Raj
              >>
              >>
              >>[email protected] (Santhosh Kumar) wrote:
              >>>I have added a new startup servlet to my existing web application.
              >>>While deploying the same, weblogic is throwing the following
              >>>exception.
              >>>
              >>>I'm very sure that class (com/lbx/util/LbxProperties) is part of
              >>>webapp war file I created. Can somebody please throw some light about
              >>>this.
              >>>
              >>>I'm trying to do the .ear file deployment.
              >>>
              >>>Thank you very much
              >>>Santhosh.
              >>>
              >>><Dec 30, 2002 12:04:27 PM PST> <Error> <HTTP> <101216> <Servlet:
              >>>"StartupServlet" failed to preload on startup in webapp: "wliWEB"
              >>>javax.servlet.ServletException: com/lbx/util/LbxProperties
              >>> at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:912)
              >>> at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:833)
              >>> at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:773)
              >>> at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2763)
              >>> at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2708)
              >>> at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:2681)
              >>> at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:4746)
              >>> at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:539)
              >>> at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:983)
              >>> at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1017)
              >>> at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1112)
              >>> at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:732)
              >>> at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
              >>> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
              >>> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
              >>>>
              >>
              >
              

  • Servlet load on server startup ?

    With WebLogic 4.5.1 can you specify a servlet to load when the server
              starts ?.
              Thanks
              Peter.
              

              Hi Kumar
              I have installed BEA Weblogic through Webgain Studio. I remember to have chosen to install Weblogic with the Service Packs.
              How do I know if I have installed the correct service packs.
              I still have this problem that 'main not found' in a startup servlet.
              Thanks
              - anand
              Kumar Allamraju <[email protected]> wrote:
              >Sorry to mislead you.
              >
              >Here is the proper syntax.
              >weblogic.httpd.register.myservlet=examples.servlets.HelloWorld2
              >weblogic.allow.execute.weblogic.servlet.myservlet=everyone
              >
              >weblogic.system.startupClass.servletTest=weblogic.servlet.utils.ServletStartup
              >weblogic.system.startupArgs.servletTest=servlet=myservlet
              >
              >Unfortunately this has been broken in WLS 5.1 and the fix has been included
              >in SP-2 which is scheduled to be released in about a week.
              >If you wanna contact support , refer the Issue # 10245
              >
              >Thx, Kumar
              >
              >"Hien Q. Nguyen" wrote:
              >
              >> Hi,
              >>
              >> I think what you are talking about is the weblogic.servlet.utils.ServletStartup
              >> as mentioned in the WL5.1 docs. For example:
              >>
              >> # register myservlet
              >> weblogic.httpd.register.myservlet=com.mycom.MyServlet
              >>
              >> # Load MyServlet servlet on startup
              >> weblogic.system.startupClass.StartMyServlet=weblogic.servlet.utils.ServletStartup
              >>
              >> weblogic.system.startupArgs.StartMyServlet=\
              >> servlet=myservlet
              >>
              >> Even this didn't work!
              >>
              >> I tried what you suggested, it didn't work! Here is the starck trace:
              >>
              >> java.lang.NoSuchMethodException: com.mycom.MyServlet does not define 'public
              >> static void main(String[])'
              >> at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:208)
              >> at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java, Compiled Code)
              >> at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
              >>
              >> Maybe its a bug?
              >>
              >> Kumar Allamraju wrote:
              >>
              >> > You can register the servlet as a startup class.
              >> >
              >> > For e.g.
              >> > weblogic.system.startupClass.helloWorld=examples.servlets.HelloWorldServlet.
              >> >
              >> > Hope this helps
              >> > -Kumar
              >> >
              >> > "Hien Q. Nguyen" wrote:
              >> >
              >> > > See below!
              >> > >
              >> > > Kumar Allamraju wrote:
              >> > >
              >> > > > Yes, provided if you registered in weblogic.properties file.
              >> > > >
              >> > > > This will deploy the servlet whenever the WebLogic server is started (or
              >> > > > restarted).
              >> > > >
              >> > > > weblogic.httpd.register.hello = examples.servlets.HelloWorldServlet
              >> > > >
              >> > >
              >> > > But this is only to register the servlet with the servlet engine. The
              >> > > servlet itself isn't loaded at this time
              >> > > until you call http://<myserver>/hello
              >> > >
              >> > > >
              >> > > > -Kumar
              >> > > >
              >> > > > Peter Martin wrote:
              >> > > >
              >> > > > > With WebLogic 4.5.1 can you specify a servlet to load when the server
              >> > > > > starts ?.
              >> > > > >
              >> > > > > Thanks
              >> > > > > Peter.
              >
              

  • Load on startup servlet and references

              Weblogic 6.1 SP2
              No jars specified in the classpath. A Singleton is located in a utility.jar file
              inside a .ear file.
              If I create a Singleton from a load on startup servlet, how long will the singleton
              be around? I know that if I undeploy the application, the singleton will be destroyed
              since the classloader is unloaded. However, if I never undeploy my application,
              will the Singleton always be around? Does Weblogic keep a reference alive to
              this Singleton forever?
              Please provide some more details on this!
              Thanks.
              Dan
              

              Dan Baumbach wrote:
              > So, because the startup servlet has a static reference to the singleton, the servlet
              > will never be garbage collected?
              Correct.
              >
              >
              > What if there's a class that is not a singleton, but there are static methods.
              > How would garbage collection work in this case?
              >
              A class object is not an instance object. If the class object has been loaded by the
              classloader, it will not be unloaded or garbage collected, regardless of whether or not
              it has static methods. If an instance of a class is instatiated on the heap, and a
              reference to that object is placed in a static member of its associated class object,
              also referred to as a class member, then the instance will not be garbage collected.
              >
              > Thanks.
              > Dan
              >
              > William Kemp <[email protected]> wrote:
              > >The jvm will not garbage collect an object that has a static reference
              > >to it. Which is how
              > >I am assuming you have implemented the singleton.
              > >
              > >Bill
              > >
              > >Dan Baumbach wrote:
              > >
              > >> Weblogic 6.1 SP2
              > >> No jars specified in the classpath. A Singleton is located in a utility.jar
              > >file
              > >> inside a .ear file.
              > >>
              > >> If I create a Singleton from a load on startup servlet, how long will
              > >the singleton
              > >> be around? I know that if I undeploy the application, the singleton
              > >will be destroyed
              > >> since the classloader is unloaded. However, if I never undeploy my
              > >application,
              > >> will the Singleton always be around? Does Weblogic keep a reference
              > >alive to
              > >> this Singleton forever?
              > >>
              > >> Please provide some more details on this!
              > >> Thanks.
              > >> Dan
              > >
              

  • "load-on-startup" servlet configuration

    Dear All,
    I am trying to load a servlet "SettingServlet" at the startup of the application, the configuration I am using inside the web.xml file is as following:
    <web-app>
         <servlet>
         <servlet-name>SettingsServlet</servlet-name>
         <servlet-class>com.myPack.SettingsServlet</servlet-class>
         <init-param>
         <param-name>fichierConfig</param-name>
         <param-value>D:/tomcat41/webapps/init.conf</param-value>
         </init-param>
         <load-on-startup>5</load-on-startup>
         </servlet>
    </web-app>
    It seems that the "SettingsServlet" servlet is not started at the startup.Even it's started in the tomcat window I am getting something like
    (SEVERE: Parse error at line......column...:Element type ....not declared ..)
    and that for the servlet-name, parma-name,servlet-class, init-param...etc
    Do I missed something in the configuration?, please tcheck the few lines above. because Simply I got stuck ! ,,,,,Please help me to fix it, I am waiting for you reply guys.
    Thanks and Regards,
    kifwet

    Take a look at the header of your web.xml file, the part about:<!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd"> And go check the dtd for your version.
    Some versions are very picky about the order of parameters.
    Hope this helps.

  • Class not found for Startup servlet

    I have deployed a war file under weblogic 7. The application has some startup servlets,
    which are failing to load during startup. It returns the following error messages
    for each servlet
    ####<Jan 8, 2003 2:00:25 PM CST> <Error> <HTTP> <abc-web1> <abcAppServer> <Thread-8>
    <kernel identity> <> <101249> <[ServletContext(id=3959381,name=abcApps,context-path=/abcApps)]:
    Servlet class com.abc.servlets.startup.StartupTSContentDaemonServlet for servlet
    StartupTSContentDaemonServlet could not be loaded because the requested class
    was not found in the classpath D:\bea\user_projects\abcdomain\abcAppServer\stage\abcApps\abcApps.war;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\servlet2373.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\jbcl2374.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\jaxp2375.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\xerces2376.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\AS4002377.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\decrypt2378.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\cls2372.jar.
    java.lang.UnsupportedClassVersionError: com/abc/servlets/startup/StartupTSContentDaemonServlet
    (Unsupported major.minor version 48.0)>
    ####<Jan 8, 2003 2:00:25 PM CST> <Error> <HTTP> <abc-web1> <abcAppServer> <Thread-8>
    <kernel identity> <> <101216> <Servlet: "StartupTSContentDaemonServlet" failed
    to preload on startup in webapp: "abcApps">
    javax.servlet.ServletException: [ServletContext(id=3959381,name=abcApps,context-path=/abcApps)]:
    Servlet class com.abc.servlets.startup.StartupTSContentDaemonServlet for servlet
    StartupTSContentDaemonServlet could not be loaded because the requested class
    was not found in the classpath D:\bea\user_projects\abcdomain\abcAppServer\stage\abcApps\abcApps.war;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\servlet2373.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\jbcl2374.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\jaxp2375.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\xerces2376.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\AS4002377.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\decrypt2378.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\cls2372.jar.
    java.lang.UnsupportedClassVersionError: com/abc/servlets/startup/StartupTSContentDaemonServlet
    (Unsupported major.minor version 48.0)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:785)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2763)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2708)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:2681)
         at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:552)
         at weblogic.servlet.internal.WebService.preloadResources(WebService.java:476)
         at weblogic.t3.srvr.ServletInitRunner$1.run(ServletInitRunner.java:50)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
         at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:46)
         at java.lang.Thread.run(Thread.java:479)
    When i look into the directories weblogic created after deployment, there is a
    cls2372.jar at 1 level above the web-inf folder and it has all the servlets in
    the correct package structure i.e. com/abc/servlets/startup
    Any idea on why this is happening or what i am doing wrong?

    also posting to servlet newsgroup.
    "Ram" <[email protected]> wrote in message
    news:[email protected]...
    >
    I have deployed a war file under weblogic 7. The application has somestartup servlets,
    which are failing to load during startup. It returns the following errormessages
    for each servlet
    ####<Jan 8, 2003 2:00:25 PM CST> <Error> <HTTP> <abc-web1> <abcAppServer><Thread-8>
    <kernel identity> <> <101249><[ServletContext(id=3959381,name=abcApps,context-path=/abcApps)]:
    Servlet class com.abc.servlets.startup.StartupTSContentDaemonServlet forservlet
    StartupTSContentDaemonServlet could not be loaded because the requestedclass
    was not found in the classpathD:\bea\user_projects\abcdomain\abcAppServer\stage\abcApps\abcApps.war;D:\bea
    \user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381
    \jarfiles\WEB-INF\lib\servlet2373.jar;D:\bea\user_projects\abcdomain\.\abcAp
    pServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\jbcl2374.j
    ar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApp
    s_3959381\jarfiles\WEB-INF\lib\jaxp2375.jar;D:\bea\user_projects\abcdomain\.
    \abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\xerc
    es2376.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApp
    s_abcApps_3959381\jarfiles\WEB-INF\lib\AS4002377.jar;D:\bea\user_projects\ab
    cdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF
    \lib\decrypt2378.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdel
    ete\abcApps_abcApps_3959381\jarfiles\cls2372.jar.
    java.lang.UnsupportedClassVersionError:com/abc/servlets/startup/StartupTSContentDaemonServlet
    (Unsupported major.minor version 48.0)>
    ####<Jan 8, 2003 2:00:25 PM CST> <Error> <HTTP> <abc-web1> <abcAppServer><Thread-8>
    <kernel identity> <> <101216> <Servlet: "StartupTSContentDaemonServlet"failed
    to preload on startup in webapp: "abcApps">
    javax.servlet.ServletException:[ServletContext(id=3959381,name=abcApps,context-path=/abcApps)]:
    Servlet class com.abc.servlets.startup.StartupTSContentDaemonServlet forservlet
    StartupTSContentDaemonServlet could not be loaded because the requestedclass
    was not found in the classpathD:\bea\user_projects\abcdomain\abcAppServer\stage\abcApps\abcApps.war;D:\bea
    \user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381
    \jarfiles\WEB-INF\lib\servlet2373.jar;D:\bea\user_projects\abcdomain\.\abcAp
    pServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\jbcl2374.j
    ar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApp
    s_3959381\jarfiles\WEB-INF\lib\jaxp2375.jar;D:\bea\user_projects\abcdomain\.
    \abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF\lib\xerc
    es2376.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdelete\abcApp
    s_abcApps_3959381\jarfiles\WEB-INF\lib\AS4002377.jar;D:\bea\user_projects\ab
    cdomain\.\abcAppServer\.wlnotdelete\abcApps_abcApps_3959381\jarfiles\WEB-INF
    \lib\decrypt2378.jar;D:\bea\user_projects\abcdomain\.\abcAppServer\.wlnotdel
    ete\abcApps_abcApps_3959381\jarfiles\cls2372.jar.
    java.lang.UnsupportedClassVersionError:com/abc/servlets/startup/StartupTSContentDaemonServlet
    (Unsupported major.minor version 48.0)
    atweblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
    a:785)
    atweblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletC
    ontext.java:2763)
    atweblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServlet
    Context.java:2708)
    atweblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServle
    tContext.java:2681)
    atweblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:552)
    atweblogic.servlet.internal.WebService.preloadResources(WebService.java:476)
    at weblogic.t3.srvr.ServletInitRunner$1.run(ServletInitRunner.java:50)
    atweblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:744)
    at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:46)
    at java.lang.Thread.run(Thread.java:479)
    When i look into the directories weblogic created after deployment, thereis a
    cls2372.jar at 1 level above the web-inf folder and it has all theservlets in
    the correct package structure i.e. com/abc/servlets/startup
    Any idea on why this is happening or what i am doing wrong?

  • Weblogic startup class (urgent)

    Hi All,
    I need a java program (weblogic startup class) which should fetch data from the database and instantiate another one class (it will be the data holder) and store that object into a webapplication context. Anyone tried this? Since its urgent any help will be appreciated.
    Thanks in advance
    Cheers,
    Pandiaraj

    Do this in the init() method of a servlet and start
    the servlet when you start your weblogic server
    second that. just give a value of 1 for <load-on-startup> in web.xml

  • Startup servlet  problem in weblogic81

    Hi
    I created one web application in weblogic81 and it contains one servlet and act as startup servlet.When i m trying to get jndi context to connect to DataSource in init method, i m getting the following exception
    javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://16.138.181.88:7501: Dest
    ination unreachable; nested exception is:
            java.net.ConnectException: Connection refused; No available router to de
    stination]
    init method
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    env.put(Context.PROVIDER_URL,"t3://16.138.181.88:7501" );
    jndiContext = new InitialContext(env);
    web.xml
    <servlet>
    <servlet-name>MyServlet</servlet-name>
              <servlet-class>com.MyServlet</servlet-class>
              <load-on-startup>0</load-on-startup>
    </servlet>
    Please help me out.
    Regards
    Chandra

    To use the /servlet/ notaton you will need to enable the invoker servlet. To do this open the conf/web.xml and search on "invoker". Follow the directions.
    An alternative would be to map the servlet to a url and use that url to call the servlet
    <servlet>
    <servlet-name>TestServlet</servlet-name>
    <servlet-class>TestServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>TestServlet</servlet-name>
    <url-pattern>/TestServlet</url-pattern>
    </servlet-mapping>
    now you should be able to access the servlet with /Fortune/TestServlet

  • Problem setting up startup servlets in iWS 4.x

    I have configured iPlanet Web Server(iWS) 4.1 SP9 to use a startup servlet. However, the error log does not show that the servlet has been initialized. Instead, it shows only the following entries:
    Loading Simple Session Manager by default. Specify MMapSessionManager in servlets.properties to load persistent session manager
    I found in the Knowledgebase that we need to copy the the configuration entry that was created in context.properties file into the servlets.properties file
    My question that ...do we need to copy all the contents of the context.properties file or some portion of that file to servlets.properties .
    Please suggest asap, I cant take a risk as this is a live server.
    Thanks.

    Hi,
    You need not to copy entry file. In your servlets.properties file at the end of the file you can see the parameters settings of servlet which you have been configured as a servlet.
    For example the below setting are for "HelloWorldServlet" servlet configuration. You need to copy that line only.
    servlet.HelloWorldServlet.classpath=/export/home/41sp9/docs/servlet
    servlet.HelloWorldServlet.code=HelloWorldServlet.class
    Note: Make sure that before changing(copying)any changes in file take backup of the old file(present).
    Regards,
    Dakshin.
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support.

  • What will happen if i mention like load-on-startup -1 /load-on-startup   ?

    Hi All,
    In my web.xml what will happen if i mention like <load-on-startup>
    -1</load-on-startup> ?

    It's not WebLogic-specific, the load-on-startup web.xml element is a standard common component to all application servers.
    As for what it does, then yes, the BEA link explains it well enough. So that explanation applies to WAS too.

  • What does this mean ---- load-on-startup 1 /load-on-startup

    Hi All,
    Anybody please tell me what does this mean:
    <load-on-startup>1</load-on-startup>
    Thanks in advance
    amitindia

    From the dtd :
    The load-on-startup element indicates that this servlet should be
    loaded (instantiated and have its init() called) on the startup
    of the web application. The optional contents of
    these element must be an integer indicating the order in which
    the servlet should be loaded. If the value is a negative integer,
    or the element is not present, the container is free to load the
    servlet whenever it chooses. If the value is a positive integer
    or 0, the container must load and initialize the servlet as the
    application is deployed. The container must guarantee that
    servlets marked with lower integers are loaded before servlets
    marked with higher integers. The container may choose the order
    of loading of servlets with the same load-on-start-up value.

  • Servlet load balancing

    I am testing load balancing of servlet on Weblogic 6.0 with Netscape
              Enterprise Server 3.6. I can hit both weblogic servers if I try to hit
              them heavily. However no matter what I do I can not get the round robin
              work.
              Has any one got load balancing work for servlets with 3rd party web
              server? As I understand weblogic only supports round robin for servlets
              load balancing because of DNS rotatioin, am I right?
              Thanks,
              Yong
              

              Yes. I even see this behavior from clients on different hosts.
              Yong
              "Kumar Allamraju" <[email protected]> wrote:
              >round-robin happens for new requests, not for the existing requests.
              >Are you seeing the following behaviour with new clients (i.e. sending
              >requests from different browsers)..
              >
              >--
              >Kumar
              >
              >"Yong Sun" <[email protected]> wrote in message
              >news:[email protected]..
              >> I am testing load balancing of servlet on Weblogic 6.0 with Netscape
              >> Enterprise Server 3.6. I can hit both weblogic servers if I try to
              >hit
              >> them heavily. However no matter what I do I can not get the round
              >robin
              >> work.
              >>
              >> Has any one got load balancing work for servlets with 3rd party web
              >> server? As I understand weblogic only supports round robin for servlets
              >> load balancing because of DNS rotatioin, am I right?
              >>
              >> Thanks,
              >>
              >>
              >> Yong
              >>
              >>
              >
              >
              

Maybe you are looking for

  • ITunes cannot open apple iphone 4 device

    Recently i have been trying to sync my iTunes and put new music and other stuff, but a small box appears and says "The iPhone cannot be used because the Apple Mobile device service is not started". I try to restart my laptop and iPhone 4 but it has b

  • Pdf converter button on top of the browser disappeared.

    I have adobe acrobat 9.  I had a Pdf converter button on top og the browser that I used to convert web pages to pdf documents.  This button disappeared last week.  Could it be restored?  I tried reinstalling the software and tried internet options to

  • Adobe Presenter 9  Scorm 1.2 package does not close..Help!

    Hello.  I am in the process of compiling some 90+ SWIF CBTS into SCORM 1.2 conformant LMS Lessons using Adobe Presenter 9.0 and MS Powerpoint 2010. All works like a charm when compiled in 2 different LMS systems up to the end..  The Lesson Window rem

  • Connecting ipod touch to talktalk wifi connection

    I know there's lots of questions around connection to wifi but I still can't get my ipod touch connected. I tried several times and typed in the password for the network when asked but keep getting an unable to join message. I am typing in the correc

  • BRTools or SQLPlus to restore table after unfortunate tablespace drop?

    We have had an unfortunate incident after an upgrade here. I assume something went wrong during the upgrade, which left a lot of tables assigned to a table type which can not be selected and has description «Repositoryswitch tablespace 700». There ar