aspose file tools*
The moose likes Servlets and the fly likes Why can't not been run two broswers at the same time in Tomcat server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Why can Watch "Why can New topic
Author

Why can't not been run two broswers at the same time in Tomcat server

James Long
Greenhorn

Joined: Feb 02, 2001
Posts: 14
Hi, all:
I have one servlet called ParseXMLFileServlet. Tomcat32 is my server (web server and servlet engine)
ParseXMLFileServlet get the XML files (called MyXmL.xml) location from its initial parameter, which is defined in the $TOMCAT_HOME/webapps/MyApp/WEB-INF/web.xml file.
then ParseXMLFileServlet parse this MyXmL.xml file using IBM XML4j API. and pass the XML file content into XMLFileContent.jsp page.
If I just run this application by the single user (i.e. only one
browser access the web URL
"http://localhost:8080/MyApp/servelt/ParseXMLFileServlet "
ParseXMLFileServlet works fine and it forward to XMLFileContent.jsp page to show the content inside this XML file.
THE PROBLEM is that:
when lauched another broswer to access the URL: "http://localhost:8080/MyApp/servelt/ParseXMLFileServlet ".
The XMLFileContent.jsp can't be shown up.
In Tomcat server console, it show me the following error message:
(1) java.lang.NullPointerException because ParseXMLFileServlet's init() method is not called second time
XMIFile location can't not be got again
(2)2001-03-31 10:26:45 - Ctx( /MyApp ): IllegalStateException in: R( /MyApp + /jsp/XMLFileContent.jsp + null) Cannot forward as OutputStream or Writer has already been obtained
How can I make my Application multi accessorable with no any error? How can I sovle this problem?
If anyone can help me ASAP, it would be very appreciated.
Thank you in advanced.
J. Long
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why can't not been run two broswers at the same time in Tomcat server