• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
So there I was, trapped in the jungle. And at the last minute, I was saved by this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic