aspose file tools
The moose likes Servlets and the fly likes Servlet chaining Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Servlet chaining" Watch "Servlet chaining" New topic
Author

Servlet chaining

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi,
I have a problem with servlet chaining.i have 2 servlets -Utilities and TallCoin.the TallCoin servlet calls the Utilities servlet.I am using Jbuilder.The code is as follows:
public classTallCoin extends HttpServlet{
public synchronized void init(servletConfig config){
try{
super.init(config);
}
catch(ServletException se){
System.out.println("Couldn't access superclass init");
}
when i run ,i am getting an error:init config parameter is null.
can anyone tell me under what conditions this NullPointer exception is thrown?
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 19672
    ∞

I do a lot of servlet chaining and I found out the hard way that if you are using Apache and JRun, you can't have one servlet call another servlet in the same vm. It locks up apache. But if you have one servlet call another servlet on another vm, everything is fine.
This probably doesn't help you at all, but I thought I would toss it out there anyway.
Looking at your question: Do you need config?


permaculture forums
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet chaining
 
Similar Threads
Unable to get init parameters in servlet
when does a servlet clas get servletness ?
init(ServletConfig config) query
Why does it die after init()?
No servlet maps to URL