Re: WebLogic NullPointer from PageContextImpl.getAttribute
How do you have your environment setup? Where did you put the Struts.jar and your application classes? From: Wong Kok Wai [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: WebLogic NullPointer from PageContextImpl.getAttribute Date: Sat, 30 Dec 2000 17:45:03 -0800 (PST) Strange I don't have the ClassCastException. Is the struts.jar included in the weblogic classpath? If yes, I believe if you remove struts.jar from the classpath, the ClassCastException will go away. --- Tim Kuntz [EMAIL PROTECTED] wrote: Thanks. SP8 corrects the PageContextImpl.getAttribute problem but the ClassCastException remains and will probably do so until BEA changes the way they handle class loading. I haven't evaluated WebLogic 6 to see if it works as expected. __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: WebLogic NullPointer from PageContextImpl.getAttribute
As per specs: struts.jar is under WEB-INF/lib and all the classes in WEB-INF/classes --- Tim Kuntz [EMAIL PROTECTED] wrote: How do you have your environment setup? Where did you put the Struts.jar and your application classes? __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/
Re: WebLogic NullPointer from PageContextImpl.getAttribute
If you are using WLS 5.1, apply the SP8 and the problems should go away. --- Tim Kuntz [EMAIL PROTECTED] wrote: I have been using WebLogic for a while but am new to Struts and am having a problem running Struts as an explicit WebLogic Web application (weblogic.httpd.webApp.myapp) due to a problem with WebLogic class loaders. __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/
Re: WebLogic NullPointer from PageContextImpl.getAttribute
Thanks. SP8 corrects the PageContextImpl.getAttribute problem but the ClassCastException remains and will probably do so until BEA changes the way they handle class loading. I haven't evaluated WebLogic 6 to see if it works as expected. - Original Message - From: "Wong Kok Wai" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 30, 2000 3:08 AM Subject: Re: WebLogic NullPointer from PageContextImpl.getAttribute If you are using WLS 5.1, apply the SP8 and the problems should go away. --- Tim Kuntz [EMAIL PROTECTED] wrote: I have been using WebLogic for a while but am new to Struts and am having a problem running Struts as an explicit WebLogic Web application (weblogic.httpd.webApp.myapp) due to a problem with WebLogic class loaders. __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/
WebLogic NullPointer from PageContextImpl.getAttribute
I have been using WebLogic for a while but am new to Struts and am having a problem running Struts as an explicit WebLogic Web application (weblogic.httpd.webApp.myapp) due to a problem with WebLogic class loaders. The problem is misleading because the error message is a NullPointerException from the pageContext.getAttribute() call when retrieving the MessageResource (MR) instance. But, if you modify the code slightly to retrieve the MR instance directly from the ServletContext you get a ClassCastException. To my knowledge, this occurs because the MR is being created/stored by the ActionServlet but is retrieved as part of the JSP servlet. WebLogic uses 2 different class loaders for these so a ClassCast occurs. The only way I can eliminate the error is to move the Struts classes and my application classes to the WebLogic classpath versus the dynamic classpath (WEB-INF/classes). Has anyone else found a workaround for this problem? Thanks, Tim Kuntz [EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com