JSP compilation problem.
Hi, I am new to writing JSP pages. First problem i am getting is Jasper Exception followed by Number Format Exception 500. I am not using any parseInt method explicitly to convert any string to int. But i am trying to read data from session (where we have our own classes). I am not sure if the exception is in my code or because of my tomcat configuration. Second problem is i have my pages in the examples directory of Tomcat. First time after installation i access the JSP page it is able to access it. But if in between sometime i stop my Tomcat and then access the same page, it gives error saying the page is not accessible although i have not moved anything. Can anyboby help me with an answer for any or both the questions. Regards, Seema Pandey SIEMENS SPCNL SCS B2, Blr. Wireline: +91 80 5062 400 Wireless: 98442 58931 Mail me @: mailto:[EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JSP compilation problem.
Seema, Send your JSP page and the specific error message. Regards, Richard At 07:27 PM 4/28/2002 +0530, you wrote: Hi, I am new to writing JSP pages. First problem i am getting is Jasper Exception followed by Number Format Exception 500. I am not using any parseInt method explicitly to convert any string to int. But i am trying to read data from session (where we have our own classes). I am not sure if the exception is in my code or because of my tomcat configuration. Second problem is i have my pages in the examples directory of Tomcat. First time after installation i access the JSP page it is able to access it. But if in between sometime i stop my Tomcat and then access the same page, it gives error saying the page is not accessible although i have not moved anything. Can anyboby help me with an answer for any or both the questions. Regards, Seema Pandey SIEMENS SPCNL SCS B2, Blr. Wireline: +91 80 5062 400 Wireless: 98442 58931 Mail me @: mailto:[EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
pllllllllllease help: context classloader issues
Hi group, I am facing the following problem: I've got a JSP which, among other things, is invoking an EJB. Our framework includes a utility class called HomeFactory which is responsible of obtaining home stubs in a uniform, application-centric manner (reading jndi.properties once, etc.). Whenever I'm trying to use this HomeFactory to get an EJB's Home reference, I'm getting a ClassNotFoundException (for the Home Interface), although the EJB client jar file is located in WEB-INF\lib, as often recommended in J2EE tutorials. I _did_ find out that the problem is solved when the EJB client jar is located in he application server's classpath (that's WLS6.1, btw) OR the HomeFactory located in the WEB-INF\classes directory. It seems, however, that neither of these solutions is ideal (due to maintnance redeployment issues) - but I can't find a way to make it work. One last thing - I've done this little test, where I've written a small web-app where a jsp is instantiating a class which is located in the server's classpath, and this class, in turn, instantiates another class that is located in the web application's classpath (WEB-INF\lib). Again, the JSP threw a ClassNotFoundException, but when comparing the web-app's ClassLoader to the first class's ClassLoader(using Thread.currentThread().getContextClassLoader()) I found out that they were the same classloaders, having access to the same class files... Does anyone have an idea how I can solve this thing, keeping the IFS class in the server's classpath and the EJB Client classes in the WEB-INF\lib??? any _ideas_ would be greatly appreciated. Zvika Markfeld Comverse, Israel. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JSP compilation problem.
Seema, The Number Format exception should be from your code only. In the exception stack trace look for the line and jsp where it has thrown the exception, may be you find something or send the code. -Original Message- From: Seema Pandey [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 28, 2002 7:27 PM To: [EMAIL PROTECTED] Subject: JSP compilation problem. Hi, I am new to writing JSP pages. First problem i am getting is Jasper Exception followed by Number Format Exception 500. I am not using any parseInt method explicitly to convert any string to int. But i am trying to read data from session (where we have our own classes). I am not sure if the exception is in my code or because of my tomcat configuration. Second problem is i have my pages in the examples directory of Tomcat. First time after installation i access the JSP page it is able to access it. But if in between sometime i stop my Tomcat and then access the same page, it gives error saying the page is not accessible although i have not moved anything. Can anyboby help me with an answer for any or both the questions. Regards, Seema Pandey SIEMENS SPCNL SCS B2, Blr. Wireline: +91 80 5062 400 Wireless: 98442 58931 Mail me @: mailto:[EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
How to restrict access of my server??
HI, Can anyone tell me how I can stop people from viewing the directory listings and files in the server directories? I use JBoss + Tomcat. If the URL used to access the server has some directory name, then the server displays the whole directory listing. This can cause several security problems. I need my servlets and JSPs to access these directories but not anyone else. Valli IIC Technologies Pvt Ltd INDIA === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com