This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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