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
Similar Messages
-
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)
>>>>
>>
>
-
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)
>
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)
>
-
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. -
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
-
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? -
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,
kifwetTake 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. -
Win 98SE Startup Logon Problem
All our Win 98SE had the startup logon problem when we migrated to Cisco 1240AP. Previously, we don't had this problem when we are still using the SMC AP.
When we want to login to windows 2000 Domain during startup, the system will complain that it can't find a DC and we had to click ok to proceed. Once login, we can see that it can detect the AP with good signal strength. Then we need to logoff and then only we can login to the Domain without any problem.
But when we restart the system to login to the Domain again, the same problem occurs. Only when you click ok to login without network and then logoff again to login without restart the system, then the PC can find the Domain and login without problem. All our PCs are using the static IP assignment with DNS and WINS configure.
We are currently using the DLink client wireless adapter and we had try to change to Belkin client wireless adapter with more recent Win98 driver but with the same problem.
Our Window XP don't had this issue. As i had said, previously when we are using a SMC AP, we don't had this problem.
Anyone here had the same problem that had a solution ?
Thanks.
CMYipYes. The solution was to upgrade to upgrade the customer's laptops to WinXP.
(Drive mappings were also a related issue). -
WLS 7.0 sp2 - Servlet Problems with SOAP messages
I'm using Weblogic 7.0 SP2 and trying to create a Servlet to receive SOAP wrapped
XML messages. I'm getting the following error. Is this a problem with WLS7.0sp2's
support of JAXM? The System.out.println's indicate I have successfully received
the incoming SOAP request and then successfully formatted the SOAP response, but
upon returning saving the response it appears to blow up. Does anyone have any
suggestions?
I need to do the following in a servlet:
- receive an incoming SOAP request with an embedded XML message
- perform some processing
- return a SOAP response with an embedded XML message
Should I be using JAXM? Or can I do this same task easily with JAX-RPC?
<Feb 24, 2004 4:10:42 PM AST> <Error> <HTTP> <101017> <[ServletContext(id=260434
7,name=isd.war,context-path=)] Root cause of ServletException
java.lang.Error: NYI
at weblogic.webservice.core.soap.SOAPMessageImpl.saveRequired(SOAPMessag
eImpl.java:360)
at javax.xml.messaging.JAXMServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5445)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:780)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3105)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2588)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
>
I've stripped the code down so that all it does is verifies the incoming SOAP/XML
request and creates a hard-coded response... be gentle... I'm a novice at this
import javax.xml.soap.*;
import javax.servlet.*;
import javax.servlet.http.*;
// import javax.xml.transform.*;
import java.util.*;
import java.io.*;
public class RegisterServlet extends HttpServlet
static MessageFactory fac = null;
static
try
fac = MessageFactory.newInstance();
catch (Exception ex)
ex.printStackTrace();
public void init(ServletConfig servletConfig) throws ServletException
super.init(servletConfig);
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException,
IOException
try
System.out.println("** Note: doPost() Entering req = " + req);
// Get all the headers from the HTTP request
MimeHeaders headers = getHeaders(req);
// Get the body of the HTTP request
InputStream is = req.getInputStream();
// Now internalize the contents of a HTTP request
// and create a SOAPMessage
SOAPMessage msg = fac.createMessage(headers, is);
System.out.println("** Note: doPost() Step A");
SOAPMessage reply = null;
reply = onMessage(msg);
System.out.println("** Note: doPost() Step B reply = " + reply);
if (reply != null)
* Need to call saveChanges because we're
* going to use the MimeHeaders to set HTTP
* response information. These MimeHeaders
* are generated as part of the save.
if (reply.saveRequired())
System.out.println("** Note: doPost() Step C reply.saveRequired()");
reply.saveChanges();
resp.setStatus(HttpServletResponse.SC_OK);
putHeaders(reply.getMimeHeaders(), resp);
// Write out the message on the response stream
OutputStream os = resp.getOutputStream();
System.out.println("** Note: doPost() Step D os = " + os);
reply.writeTo(os);
os.flush();
else
resp.setStatus(HttpServletResponse.SC_NO_CONTENT);
catch (Exception ex)
throw new ServletException("** Error: SAAJ POST failed: " + ex.getMessage());
static MimeHeaders getHeaders(HttpServletRequest req)
Enumeration enum = req.getHeaderNames();
MimeHeaders headers = new MimeHeaders();
while (enum.hasMoreElements())
String headerName = (String)enum.nextElement();
String headerValue = req.getHeader(headerName);
StringTokenizer values =
new StringTokenizer(headerValue, ",");
while (values.hasMoreTokens())
headers.addHeader(headerName,
values.nextToken().trim());
return headers;
static void putHeaders(MimeHeaders headers, HttpServletResponse res)
Iterator it = headers.getAllHeaders();
while (it.hasNext())
MimeHeader header = (MimeHeader)it.next();
String[] values = headers.getHeader(header.getName());
if (values.length == 1)
res.setHeader(header.getName(),
header.getValue());
else
StringBuffer concat = new StringBuffer();
int i = 0;
while (i < values.length)
if (i != 0)
concat.append(',');
concat.append(values[i++]);
res.setHeader(header.getName(), concat.toString());
// This is the application code for handling the message.
public SOAPMessage onMessage(SOAPMessage message)
SOAPMessage replymsg = null;
try
System.out.println("** Note: OnMessage() Entering msg = " + message);
//Extract the ComputerPart element from request message and add to reply SOAP
message.
SOAPEnvelope reqse = message.getSOAPPart().getEnvelope();
SOAPBody reqsb = reqse.getBody();
//System.out.println("** Note: OnMessage() Step B");
System.out.println("** Note: OnMessage () Step A Soap Request Message Body = "
+ reqsb);
//Create a reply mesage from the msgFactory of JAXMServlet
System.out.println("** Note: OnMessage () Step B");
replymsg = fac.createMessage();
SOAPPart sp = replymsg.getSOAPPart();
SOAPEnvelope se = sp.getEnvelope();
SOAPBody sb = se.getBody();
System.out.println("** Note: OnMessage () Step C Soap Reply Before Message Body
= " + sb);
se.getBody().addBodyElement(se.createName("RegisterResponse")).addChildElement(se.createName("ErrorCode")).addTextNode("000");
System.out.println("** Note: OnMessage () Step D Soap Reply After Message Body
= " + sb);
replymsg.saveChanges();
System.out.println("** Note: OnMessage() Exiting replymsg = " + (replymsg));
catch (Exception ex)
ex.printStackTrace();
return replymsg;
Michael,
I got the same error on WLS8.1/Win2K professional and apache FOP (old version).
After digging into the WLS code and FOP(old version). i found the conflict happens
on
the "org.xml.sax.parser" system property. In WLS code, they hard coded like the
following when startup weblogic server:
System.setProperty("org.xml.sax.parser", "weblogic.xml.jaxp.RegistryParser");
But the FOP code try to use the "org.xml.sax.parser" system property to find the
sax parser then conlict happens.
Here is the response from BEA support :
"I consulted with our developers regarding the question of whether we can change
the hard-coded value for the java system property: org.xml.sax.parser by using
a configuration parameter and I found that unfortunately there is no specific
setting to change the value. As you had mentioned in your note the org.xml.sax.parser
system property can be changed programmatically in your application code."
I solve my problem by using newer apache FOP (it never use the system property:org.xml.sax.parser
any more) and XML Registy for WLS8.1.
Good luck.
David Liu
Point2 Technologies Inc.
"p_michael" <[email protected]> wrote:
>
Help.
When we migrated from WLS 6.1 to WLS 7.0 SP2 when encountered a problem
with XML
parsing that did not previously exist.
We get the error "weblogic.xml.jaxp.RegistryParser is not a SAX driver".
What does this mean? And, what should we do about it.
p_michael -
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. -
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!
>
-
MI Client 7.0 startup classpath problem
hi experts,
I have installed jdk1.5.0_11 and MI Client 7.0 on my system. Now when-ever i try to start my client it shows me an error "Time out 61, cannot connect to server ". I have run the "startup.bat" file in cmd and it shows following trace.
C:\Program Files\SAP Mobile Infrastructure>startup.bat
C:\Program Files\SAP Mobile Infrastructure>set ME_HOME=C:\Program Files\SAP Mobi
le Infrastructure
C:\Program Files\SAP Mobile Infrastructure>set JAVA_OPTIONS=
C:\Program Files\SAP Mobile Infrastructure>set JAVA_EXE=1\bin\java.exe
C:\Program Files\SAP Mobile Infrastructure>set JAVA_HOME=1
C:\Program Files\SAP Mobile Infrastructure>REM set bootstrapjars=;
C:\Program Files\SAP Mobile Infrastructure>set bootstrapjars=C:\Program Files\
SAP Mobile Infrastructure\lib\system\crimson.jar;C:\Program Files\SAP Mobile Inf
rastructure\lib\system\jaxp.jar;C:\Program Files\SAP Mobile Infrastructure\lib\s
ystem\xalan.jar;
C:\Program Files\SAP Mobile Infrastructure>REM SET JAVA_HOME=
C:\Program Files\SAP Mobile Infrastructure>REM SET ME_HOME=
C:\Program Files\SAP Mobile Infrastructure>REM SET JAVA_EXE=
C:\Program Files\SAP Mobile Infrastructure>REM SET JAVA_OPTIONS=-mx256m
C:\Program Files\SAP Mobile Infrastructure>SET _OLDCP=C:\Program Files\Java\jre1
.5.0_11\lib\ext\QTJava.zip
C:\Program Files\SAP Mobile Infrastructure>set _MEJARS=
C:\Program Files\SAP Mobile Infrastructure>copy /b "C:\Program Files\SAP Mobile
Infrastructure\SetMejar.txt" + "C:\Program Files\SAP Mobile Infrastructure\listO
fJars.txt" "C:\Program Files\SAP Mobile Infrastructure\setMeJar.bat"
C:\Program Files\SAP Mobile Infrastructure\SetMejar.txt
C:\Program Files\SAP Mobile Infrastructure\listOfJars.txt
1 file(s) copied.
C:\Program Files\SAP Mobile Infrastructure>call "C:\Program Files\SAP Mobile Inf
rastructure\setMeJar.bat"
C:\Program Files\SAP Mobile Infrastructure>SET _MEJARS=C:\Program Files\SAP Mobi
le Infrastructure\lib\crimson.jar;C:\Program Files\SAP Mobile Infrastructure\lib
\jasper.jar;C:\Program Files\SAP Mobile Infrastructure\lib\jaxp.jar;C:\Program F
iles\SAP Mobile Infrastructure\lib\MEg.jar;C:\Program Files\SAP Mobile Infrastru
cture\lib\pinstall.jar;C:\Program Files\SAP Mobile Infrastructure\lib\servlet.ja
r;C:\Program Files\SAP Mobile Infrastructure\lib\webserver.jar;
C:\Program Files\SAP Mobile Infrastructure>set _SSLJARS=
C:\Program Files\SAP Mobile Infrastructure>if exist "C:\Program Files\SAP Mobile
Infrastructure\lib\jsse.jar" set _SSLJARS=C:\Program Files\SAP Mobile Infrastru
cture\lib\jsse.jar
C:\Program Files\SAP Mobile Infrastructure>if exist "C:\Program Files\SAP Mobile
Infrastructure\lib\jcert.jar" set _SSLJARS=;C:\Program Files\SAP Mobile Infrast
ructure\lib\jcert.jar
C:\Program Files\SAP Mobile Infrastructure>if exist "C:\Program Files\SAP Mobile
Infrastructure\lib\jnet.jar" set _SSLJARS=;C:\Program Files\SAP Mobile Infrastr
ucture\lib\jnet.jar
C:\Program Files\SAP Mobile Infrastructure>set _IAKJARS=
C:\Program Files\SAP Mobile Infrastructure>if exist "C:\Program Files\SAP Mobile
Infrastructure\lib\system\jdk13\iaik_jce.jar" set _IAKJARS=C:\Program Files\SAP
Mobile Infrastructure\lib\system\jdk13\iaik_jce.jar
C:\Program Files\SAP Mobile Infrastructure>if exist "C:\Program Files\SAP Mobile
Infrastructure\lib\system\jdk13\iaik_javax_crypto.jar" set _IAKJARS=C:\Program
Files\SAP Mobile Infrastructure\lib\system\jdk13\iaik_jce.jar;C:\Program Files\S
AP Mobile Infrastructure\lib\system\jdk13\iaik_javax_crypto.jar
C:\Program Files\SAP Mobile Infrastructure>set CLASSPATH=C:\Program Files\SAP Mo
bile Infrastructure\lib\crimson.jar;C:\Program Files\SAP Mobile Infrastructure\l
ib\jasper.jar;C:\Program Files\SAP Mobile Infrastructure\lib\jaxp.jar;C:\Program
Files\SAP Mobile Infrastructure\lib\MEg.jar;C:\Program Files\SAP Mobile Infrast
ructure\lib\pinstall.jar;C:\Program Files\SAP Mobile Infrastructure\lib\servlet.
jar;C:\Program Files\SAP Mobile Infrastructure\lib\webserver.jar;;C:\Program Fil
es\SAP Mobile Infrastructure\lib\system\crimson.jar;C:\Program Files\SAP Mobile
Infrastructure\lib\system\jaxp.jar;C:\Program Files\SAP Mobile Infrastructure\li
b\system\xalan.jar;;;C:\Program Files\SAP Mobile Infrastructure\lib\system\jdk13
\iaik_jce.jar;C:\Program Files\SAP Mobile Infrastructure\lib\system\jdk13\iaik_j
avax_crypto.jar;1\lib\tools.jar
C:\Program Files\SAP Mobile Infrastructure>echo Using CLASSPATH: C:\Program File
s\SAP Mobile Infrastructure\lib\crimson.jar;C:\Program Files\SAP Mobile Infrastr
ucture\lib\jasper.jar;C:\Program Files\SAP Mobile Infrastructure\lib\jaxp.jar;C:
\Program Files\SAP Mobile Infrastructure\lib\MEg.jar;C:\Program Files\SAP Mobile
Infrastructure\lib\pinstall.jar;C:\Program Files\SAP Mobile Infrastructure\lib\
servlet.jar;C:\Program Files\SAP Mobile Infrastructure\lib\webserver.jar;;C:\Pro
gram Files\SAP Mobile Infrastructure\lib\system\crimson.jar;C:\Program Files\SAP
Mobile Infrastructure\lib\system\jaxp.jar;C:\Program Files\SAP Mobile Infrastru
cture\lib\system\xalan.jar;;;C:\Program Files\SAP Mobile Infrastructure\lib\syst
em\jdk13\iaik_jce.jar;C:\Program Files\SAP Mobile Infrastructure\lib\system\jdk1
3\iaik_javax_crypto.jar;1\lib\tools.jar
Using CLASSPATH: C:\Program Files\SAP Mobile Infrastructure\lib\crimson.jar;C:\P
rogram Files\SAP Mobile Infrastructure\lib\jasper.jar;C:\Program Files\SAP Mobil
e Infrastructure\lib\jaxp.jar;C:\Program Files\SAP Mobile Infrastructure\lib\MEg
.jar;C:\Program Files\SAP Mobile Infrastructure\lib\pinstall.jar;C:\Program File
s\SAP Mobile Infrastructure\lib\servlet.jar;C:\Program Files\SAP Mobile Infrastr
ucture\lib\webserver.jar;;C:\Program Files\SAP Mobile Infrastructure\lib\system\
crimson.jar;C:\Program Files\SAP Mobile Infrastructure\lib\system\jaxp.jar;C:\Pr
ogram Files\SAP Mobile Infrastructure\lib\system\xalan.jar;;;C:\Program Files\SA
P Mobile Infrastructure\lib\system\jdk13\iaik_jce.jar;C:\Program Files\SAP Mobil
e Infrastructure\lib\system\jdk13\iaik_javax_crypto.jar;1\lib\tools.jar
C:\Program Files\SAP Mobile Infrastructure>"1\bin\java.exe" -DSERVER_IMPL="com.
sap.tc.webdynpro.serverimpl.me.MEServerImplementation" -Duse.repository=noDB com
.sap.ip.me.core.Startup "-home:C:\Program Files\SAP Mobile Infrastructure"
The system cannot find the path specified.
C:\Program Files\SAP Mobile Infrastructure>SET CLASSPATH=C:\Program Files\Java\j
re1.5.0_11\lib\ext\QTJava.zip
i have set the classpath variable as
CLASSPATH = C:\Program Files\Java\jre1.5.0_11\lib\ext\QTJava.zip.
The location pointed by classpath for QTJava.zip file is correct, then too its showing me this error.
Please let me know what i should do to get it resolved.
Thanks in advance,
regards,
rajesh
Edited by: RAJESH SHINDE on Jun 20, 2008 12:35 PMHi,
this is your error:
C:\Program Files\SAP Mobile Infrastructure>"1\bin\java.exe" -DSERVER_IMPL="com.
sap.tc.webdynpro.serverimpl.me.MEServerImplementation" -Duse.repository=noDB com
.sap.ip.me.core.Startup "-home:C:\Program Files\SAP Mobile Infrastructure"
Please open the startup.bat file. Check the values for JAVA_EXE and for JAVA_RUNTIME (or so). You find them both at the beginning. One tells you simply '1' - should be the JAVA_EXE. Set it correctly to the value of your system and it will work fine in the future. Most likely it is a problem of the installer - but with this manual change it will work for you.
Regards,
Oliver -
Hi all,
Present we are using IIS web server for our website and internally we add Tomcat3.2.3 plugin to run servlets and jsp pages.For getting connection pool we are using web.xml descriptor file to invoke one start up servlet which internally calls some other class files to create connection pooling.Presently we are placing this web.xml file in web-inf directiory of tomcat container.The actual functinality of web.xml file is whenever we start up the web server it automatically invoke the startup servelet and the start up servlet will take care of connection pooling.
Recently we had taken oracle 9i application server.It is internally using apache webserver.we have configure servlet through servlet zones ,Apache intenally using Jserv servlet container to run servlet files.But we are unable to find such folder to place web.xml descriptor file.
regards
RadhikaRadhika,
Oracle 9iAS has OC4J as Java application server (although, JServ is there but you need not to use that). OC4J has similar structure as Tomcat that you can use. Also, it have xml based configuration so you can use the same web.xml with OC4J under WEB-INF folder. It is recommended that you use OC4J and not JServ. See OC4J documentation for more detail. Since you have used Tomcat earlier, you should not have any problem using OC4J.
-Ram Jadvani -
WLS 5.1 sp8 servlet problems
Ok. I must be just plain stupid..... :-(
My environment:
Win2K advanced server
IIS 5.0
WLS 5.1 sp8
jdk 1.3
standard install directories. The only changes were to use the 1.3 jdk.
I can get jsps to run out of the /public_html/ directory. I've configured
iisproxy to proxy .jhtml, .jsp, and .svlt file extensions ( the .svlt for
servlets :-) ).
The server runs, the console runs, everything seems to be Ok, except, I
can't figure out how to run even the example SnoopServlet. The
weblogic.properties file has the examples registered defaulted.
I also get an evaluation period over on the cloudscape database, when the
server is starting up. So even the BigTel app has problems with the
database.
I also get that same missing javai.dll on startup. It does jump to the
interpreter though. I've seen the explanation on the javai.dll and can
accept that it will be fixed in sp9. I don't understand the cloudscape
thing. And for the life of me I can't figure out how to get the SnoopServlet
to run.
I'm running the version of WLS 5.1 that comes with Visual Cafe EE 4.0. and
have patched it up to sp8.
I thought that by adding the .svlt extension that the iisproxy would call
the Servlet. As in:
http://localhost/SnoopServlet.svlt would call the SnoopServlet from the
examples.
Any help would be appreciated.
GeorgeHi George,
Are you having fun yet? :-)
George Smith wrote:
Ok. I must be just plain stupid..... :-(
My environment:
Win2K advanced server
IIS 5.0
WLS 5.1 sp8
jdk 1.3
standard install directories. The only changes were to use the 1.3 jdk.
I can get jsps to run out of the /public_html/ directory. I've configured
iisproxy to proxy .jhtml, .jsp, and .svlt file extensions ( the .svlt for
servlets :-) ).
The server runs, the console runs, everything seems to be Ok, except, I
can't figure out how to run even the example SnoopServlet. The
weblogic.properties file has the examples registered defaulted.The registeration in the weblogic.properties file looks like this:
weblogic.httpd.register.snoop=examples.servlets.SnoopServlet
You can access it directly using the URL
http://myweblogic.machine.name:7001/snoop
In order to get IIS to proxy this appropriately, you need to specify the .svlt
extension to the URL. However, the above registration does not use this
extension so WLS will not find the servlet if append the extension. Therefore,
you need to do one of the following (but not both):
1.) Change your servlet registration to look like this:
weblogic.httpd.register.snoop.svlt=examples.servlets.SnoopServlet
2.) Change your IIS configuration to proxy by path. For example, configure IIS
to proxy all URLs with /weblogic using the WLForwardPath parameter and the
PathTrim parameter value of /weblogic. This will allow you to enter the
following URL in the browser:
http://myweblogic.machine.name:7001/weblogic/snoop
IIS will forward this because of the /weblogic but it will trim the URL to
/snoop before forwarding it to WLS (allowing WLS to find the servlet registered
with weblogic.httpd.register.snoop=examples.servlets.SnoopServlet).
I also get an evaluation period over on the cloudscape database, when the
server is starting up. So even the BigTel app has problems with the
database.Download and install the Cloudscape updater from the WebLogic 5.1.0 Service Pack
area.
I also get that same missing javai.dll on startup. It does jump to the
interpreter though. I've seen the explanation on the javai.dll and can
accept that it will be fixed in sp9. I don't understand the cloudscape
thing. And for the life of me I can't figure out how to get the SnoopServlet
to run.Hmm... I thought that the reason for the javai.dll thing was because you were
picking up a different version of some JDK files (javai.dll is from JDK 1.1.x).
I'm running the version of WLS 5.1 that comes with Visual Cafe EE 4.0. and
have patched it up to sp8.
I thought that by adding the .svlt extension that the iisproxy would call
the Servlet. As in:
http://localhost/SnoopServlet.svlt would call the SnoopServlet from the
examples.
Any help would be appreciated.
GeorgeHope this helps,
Robert
Maybe you are looking for
-
ITunes install error on Windows 7 --- newest iTunes Release
I've tried all the recommendatiosn to install iTunes on my Windows 7. The new update is failing. Can anyone help. I spent all day trying different things. Still getting error and dll error. Skarlat
-
How do I change the size of my icons and text
I just purchased a new iMac 21.5 The display font and text are too small to read comfortably. How do I adjust the display, icons and text?
-
Allow user to password protect a form
I have created a form that asks if the user wants to insert a password - a basic text field. If the password field is empty, then the form opens. If the password exists, then the user is asked for a password - if correct, the form opens for editing,
-
I received an error "No Audio CD Found" how do I fix this?
I was running a diagnostic check and error came up "No Audio CD Found". this is on my iPhone 5S How can I fix this?
-
HOw do I register??? I keep getting an error message that they have an acct. for me, but I don't have an acct. This question was solved. View Solution.