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.
-
Weblogic startup Servlet (6 messages)
- Posted by: Tapan Phadke
- Posted on: August 08 2001 11:12 EDT
Threaded Messages (6)
- Weblogic startup Servlet by Andy Nguyen on August 08 2001 11:56 EDT
- Weblogic startup Servlet by Tapan Phadke on August 08 2001 23:40 EDT
-
Weblogic startup Servlet by Andy Nguyen on August 09 2001 09:53 EDT
- Weblogic startup Servlet by Tapan Phadke on August 10 2001 04:05 EDT
-
Weblogic startup Servlet by Tapan Phadke on August 10 2001 04:07 EDT
- Weblogic startup Servlet by Andy Nguyen on August 10 2001 11:04 EDT
-
Weblogic startup Servlet by Andy Nguyen on August 09 2001 09:53 EDT
- Weblogic startup Servlet by Tapan Phadke on August 08 2001 23:40 EDT
-
Weblogic startup Servlet[ Go to top ]
- Posted by: Andy Nguyen
- Posted on: August 08 2001 11:56 EDT
- in response to Tapan Phadke
I think you may be a little confused. The procedure you followed "loads" a servlet on WebLogic startup. It doesn't "run" a servlet on startup. Loading a servlet will execute its init() method, but none of the do...() methods or the service() method will be called.
Do you want to invoke a servlet on startup or just load the servlet?
Andy -
Weblogic startup Servlet[ Go to top ]
- Posted by: Tapan Phadke
- Posted on: August 08 2001 23:40 EDT
- in response to Andy Nguyen
Hi Andy,
Well,just executing the init method..
I just want to load the servlet on startup.
Any suggestions,help from you will be welcome.
Thanx
Tapan. -
Weblogic startup Servlet[ Go to top ]
- Posted by: Andy Nguyen
- Posted on: August 09 2001 09:53 EDT
- in response to Tapan Phadke
What do the last few lines of the weblogic.log show right after you startup WebLogic? What does your servlet's init() method do?
Andy -
Weblogic startup Servlet[ Go to top ]
- Posted by: Tapan Phadke
- Posted on: August 10 2001 04:05 EDT
- in response to Andy Nguyen
Hi,
The following message is obtained when the Weblogic
server is started up.This is obtained in the stdout
when the server is started up.
> <WebLogicServer> T3StartupDef stest weblogic.servlet.utils.ServletStartup reports:servlet: MyServlet not found
This means that the init method of the servlet is
not executing probably because the servlet is not
being found by weblogic server.\
Any help will be extremely helpful
Thanx
Tapan.
-
Weblogic startup Servlet[ Go to top ]
- Posted by: Tapan Phadke
- Posted on: August 10 2001 04:07 EDT
- in response to Andy Nguyen
Hi,
The following message is obtained when the Weblogic
server is started up.This is obtained in the stdout
when the server is started up.
> <WebLogicServer> T3StartupDef Myservlet weblogic.servlet.utils.ServletStartup reports:servlet: MyServlet not found
This means that the init method of the servlet is
not executing probably because the servlet is not
being found by weblogic server.\
Any help will be extremely helpful
Thanx
Tapan.
-
Weblogic startup Servlet[ Go to top ]
- Posted by: Andy Nguyen
- Posted on: August 10 2001 11:04 EDT
- in response to Tapan Phadke
Hmm...some things to check:
* Does the line where you register MyServlet appear before the lines for ServletStartup? I'm not sure if this makes a difference to WebLogic, but it makes sense logically.
* Is the servlet class file in the servlet classpath? The directory structure under the servlet classpath should match the package structure for your servlet class.
* Can you access the servlet from a browser? This will check if WebLogic even recognizes the servlet.
You can email me if you want a quicker response:
anguyen at itgssi dot com
Andy