Servlet Issue.

A

Andrew Tucker

Is there any restriction on the number of servlets a web application can run
concurrently? I am working on a simple applet front end, servlet back end
that calles one servlet to initially pass objects to applet and then when
applet session is finished passes back objects to a different servlet.
Entries in web.xml are both identical (w/ appropriate name changes) but the
second servlet never gets called. The method in the applet is running w/out
exception. I can monitor tomcat's progress through a command window. Servlet
one runs w/out a hitch, servlet two never called.

Any help greatly appreciated, Andrew.
 
V

VisionSet

Andrew Tucker said:
Is there any restriction on the number of servlets a web application can run
concurrently? I am working on a simple applet front end, servlet back end
that calles one servlet to initially pass objects to applet and then when
applet session is finished passes back objects to a different servlet.
Entries in web.xml are both identical (w/ appropriate name changes) but the
second servlet never gets called. The method in the applet is running w/out
exception. I can monitor tomcat's progress through a command window. Servlet
one runs w/out a hitch, servlet two never called.

Does *any* code in the applets destroy method get called? I'm assuming this
is where you call the 2nd servlet. I'm not sure if all browsers JVM's
respect this method properly.
 
L

Luke Tulkas

Andrew Tucker said:
Is there any restriction on the number of servlets a web application can run
concurrently? I am working on a simple applet front end, servlet back end
that calles one servlet to initially pass objects to applet and then when
applet session is finished passes back objects to a different servlet.
Entries in web.xml are both identical (w/ appropriate name changes) but the
second servlet never gets called. The method in the applet is running w/out
exception. I can monitor tomcat's progress through a command window. Servlet
one runs w/out a hitch, servlet two never called.

Never called in terms of
1. http server receives a request, but servlet doesn't appear to be
there or
2. no http request at all?
 
J

Jason

Did you by any chance copy the second servlet descriptor and url
encoding from the first entry in the web.xml file ??? If they have the
same URL only the first servlet will get called.

Regards,
 
A

Andrew Tucker

Initially i tried that but i quickly changed for the sake of testing. I have
added a JButton w/ listener that establishes connection and passes objects
through to servlet. This listener method runs w/out exception. I have added
assertions thorughout ie Establishing connection, constructing
objectoutputstream etc. Everything seems ok but the servlet is never
called!!

Thanks for suggestion!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,123
Latest member
Layne6498
Top