Re: JSP fine but no Java.
andoni == andoni [EMAIL PROTECTED] writes: andoni Hello, andoni I am having a really annoying problem that I hope somebody can help me with. andoni My tomcat will run .jsp files fine and process them perfectly but will not andoni even consider using a .class file. andoni My app has jsps with javabeans linked in through tags in the .jsp files. In andoni fact any java code in the .jsp files seems to work fine until a java class andoni needs to be called. It would be helpful if you indicated exactly what error messages you're getting, and showing the actual jsp page, along with your web.xml file. -- === David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] ; SCJP; SCWCD -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JSP fine but no Java.
Chances are that you have the the mapping for the invoker servlet commented out in your $TOMCAT_HOME/conf/web.xml file. - Nick On 20 Jan 2003, David M. Karr wrote: andoni == andoni [EMAIL PROTECTED] writes: andoni Hello, andoni I am having a really annoying problem that I hope somebody can help me with. andoni My tomcat will run .jsp files fine and process them perfectly but will not andoni even consider using a .class file. andoni My app has jsps with javabeans linked in through tags in the .jsp files. In andoni fact any java code in the .jsp files seems to work fine until a java class andoni needs to be called. It would be helpful if you indicated exactly what error messages you're getting, and showing the actual jsp page, along with your web.xml file. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JSP fine but no Java.
Tomcat can't serve a .class file in the same way it could a .html or .jsp. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED]] Sent: 16 January 2003 13:12 To: Tomcat Users List Subject: JSP fine but no Java. Hello, I am having a really annoying problem that I hope somebody can help me with. My tomcat will run .jsp files fine and process them perfectly but will not even consider using a .class file. My app has jsps with javabeans linked in through tags in the .jsp files. In fact any java code in the .jsp files seems to work fine until a java class needs to be called. Please help as I haven't got much hair left from pulling it all out ;) Regards Andoni. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JSP fine but no Java.
I realise a .class file cannot be served to a browser etc. but why can it not be used by my application. It works most of the time, unfortunately I have just changed something in the config and now it's not working - Original Message - From: Collins, Jim [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 1:16 PM Subject: RE: JSP fine but no Java. Tomcat can't serve a .class file in the same way it could a .html or .jsp. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED]] Sent: 16 January 2003 13:12 To: Tomcat Users List Subject: JSP fine but no Java. Hello, I am having a really annoying problem that I hope somebody can help me with. My tomcat will run .jsp files fine and process them perfectly but will not even consider using a .class file. My app has jsps with javabeans linked in through tags in the .jsp files. In fact any java code in the .jsp files seems to work fine until a java class needs to be called. Please help as I haven't got much hair left from pulling it all out ;) Regards Andoni. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JSP fine but no Java.
Are the class files you're trying to use in your /WEB-INF/classes/ directory or in a jar in your /WEB-INF/lib/ directory? Have you tried using the jsp:useBean tag? -Original Message- From: Andoni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 2:12 PM To: Tomcat Users List Subject: JSP fine but no Java. Hello, I am having a really annoying problem that I hope somebody can help me with. My tomcat will run .jsp files fine and process them perfectly but will not even consider using a .class file. My app has jsps with javabeans linked in through tags in the .jsp files. In fact any java code in the .jsp files seems to work fine until a java class needs to be called. Please help as I haven't got much hair left from pulling it all out ;) Regards Andoni. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JSP fine but no Java.
The classfiles are in the right place. That tag is what's being used. Andoni. - Original Message - From: Barney Hamish [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 1:20 PM Subject: RE: JSP fine but no Java. Are the class files you're trying to use in your /WEB-INF/classes/ directory or in a jar in your /WEB-INF/lib/ directory? Have you tried using the jsp:useBean tag? -Original Message- From: Andoni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 2:12 PM To: Tomcat Users List Subject: JSP fine but no Java. Hello, I am having a really annoying problem that I hope somebody can help me with. My tomcat will run .jsp files fine and process them perfectly but will not even consider using a .class file. My app has jsps with javabeans linked in through tags in the .jsp files. In fact any java code in the .jsp files seems to work fine until a java class needs to be called. Please help as I haven't got much hair left from pulling it all out ;) Regards Andoni. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JSP fine but no Java.
put all u r class files inside a package and try it...u will get it.. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 6:42 PM To: Tomcat Users List Subject: JSP fine but no Java. Hello, I am having a really annoying problem that I hope somebody can help me with. My tomcat will run .jsp files fine and process them perfectly but will not even consider using a .class file. My app has jsps with javabeans linked in through tags in the .jsp files. In fact any java code in the .jsp files seems to work fine until a java class needs to be called. Please help as I haven't got much hair left from pulling it all out ;) Regards Andoni. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JSP fine but no Java.
What is the actual error message being displayed? Can you send an example of the the jsp:useBean tag you're using and then the use of that bean? It's hard to diagnose the problem without more specific information. Hamish -Original Message- From: Andoni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 2:37 PM To: Tomcat Users List Subject: Re: JSP fine but no Java. The classfiles are in the right place. That tag is what's being used. Andoni. - Original Message - From: Barney Hamish [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 1:20 PM Subject: RE: JSP fine but no Java. Are the class files you're trying to use in your /WEB-INF/classes/ directory or in a jar in your /WEB-INF/lib/ directory? Have you tried using the jsp:useBean tag? -Original Message- From: Andoni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 2:12 PM To: Tomcat Users List Subject: JSP fine but no Java. Hello, I am having a really annoying problem that I hope somebody can help me with. My tomcat will run .jsp files fine and process them perfectly but will not even consider using a .class file. My app has jsps with javabeans linked in through tags in the .jsp files. In fact any java code in the .jsp files seems to work fine until a java class needs to be called. Please help as I haven't got much hair left from pulling it all out ;) Regards Andoni. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JSP fine but no Java.
Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: class com.company_name.javaBeans.MerchandiseBean : java.lang.NullPointerException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java, Compiled Code) at org.apache.jsp.validate$jsp._jspService(validate$jsp.java, Compiled Code) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled Code) jsp:useBean id=merchandise scope=application class=com.company_name.javaBeans.MerchandiseBean/- Original Message - From: Barney Hamish [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 1:47 PM Subject: RE: JSP fine but no Java. What is the actual error message being displayed? Can you send an example of the the jsp:useBean tag you're using and then the use of that bean? It's hard to diagnose the problem without more specific information. Hamish -Original Message- From: Andoni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 2:37 PM To: Tomcat Users List Subject: Re: JSP fine but no Java. The classfiles are in the right place. That tag is what's being used. Andoni. - Original Message - From: Barney Hamish [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 1:20 PM Subject: RE: JSP fine but no Java. Are the class files you're trying to use in your /WEB-INF/classes/ directory or in a jar in your /WEB-INF/lib/ directory? Have you tried using the jsp:useBean tag? -Original Message- From: Andoni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 2:12 PM To: Tomcat Users List Subject: JSP fine but no Java. Hello, I am having a really annoying problem that I hope somebody can help me with. My tomcat will run .jsp files fine and process them perfectly but will not even consider using a .class file. My app has jsps with javabeans linked in through tags in the .jsp files. In fact any java code in the .jsp files seems to work fine until a java class needs to be called. Please help as I haven't got much hair left from pulling it all out ;) Regards Andoni. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JSP fine but no Java.
Try recompiling your classes, deleting the work directory and restarting tomcat. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 3:05 PM To: Tomcat Users List Subject: Re: JSP fine but no Java. Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error -- -- type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: class com.company_name.javaBeans.MerchandiseBean : java.lang.NullPointerException at org.apache.jasper.runtime.PageContextImpl.handlePageException( PageContextImp l.java, Compiled Code) at org.apache.jsp.validate$jsp._jspService(validate$jsp.java, Compiled Code) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java , Compiled Code) jsp:useBean id=merchandise scope=application class=com.company_name.javaBeans.MerchandiseBean/- Original Message - From: Barney Hamish [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 1:47 PM Subject: RE: JSP fine but no Java. What is the actual error message being displayed? Can you send an example of the the jsp:useBean tag you're using and then the use of that bean? It's hard to diagnose the problem without more specific information. Hamish -Original Message- From: Andoni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 2:37 PM To: Tomcat Users List Subject: Re: JSP fine but no Java. The classfiles are in the right place. That tag is what's being used. Andoni. - Original Message - From: Barney Hamish [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 1:20 PM Subject: RE: JSP fine but no Java. Are the class files you're trying to use in your /WEB-INF/classes/ directory or in a jar in your /WEB-INF/lib/ directory? Have you tried using the jsp:useBean tag? -Original Message- From: Andoni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 2:12 PM To: Tomcat Users List Subject: JSP fine but no Java. Hello, I am having a really annoying problem that I hope somebody can help me with. My tomcat will run .jsp files fine and process them perfectly but will not even consider using a .class file. My app has jsps with javabeans linked in through tags in the .jsp files. In fact any java code in the .jsp files seems to work fine until a java class needs to be called. Please help as I haven't got much hair left from pulling it all out ;) Regards Andoni. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]