File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
James Long
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic