I see the same error from time to time. and as in your case if I try to
compile it a second time
it works just fine. I agree sounds like a problem in the 'pagecompile'
package.
All I can say, we had to make sure all JSP's are compiled into classes
before we delivered!!
At the time we were using WebSphere's pagecompile engine and they agreed
that there
could be a bug and that the whole package is revisited in their 2.0x
release.
Cheers,
Tammam Al-Hamwy
Ralph Eddy <[EMAIL PROTECTED]> on 04/21/99 04:46:43 PM
Please respond to "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Tom Al-Hamwy/Toronto/IBM)
Subject: Re: JSP Casting Problem
The exception is:
java.lang.ClassCastException
at jsp.Cust_List.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
com.livesoftware.jrun.plugins.jsp.JSPCore.runServlet(JSPCore.java)
at com.livesoftware.jrun.plugins.jsp.JSP.callPage(Compiled Code)
at com.livesoftware.jrun.plugins.jsp.JSP.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at com.livesoftware.jrun.JRun.runServlet(Compiled Code)
at com.livesoftware.jrun.JRunGeneric.handleConnection(Compiled
Code)
at com.livesoftware.jrun.JRunGeneric.handleProxyConnection(Compiled
Code)
at
com.livesoftware.jrun.service.proxy.JRunProxyServiceHandler.handleRequest(C
ompiled Code)
at com.livesoftware.jrun.service.ThreadConfigHandler.run(Compiled
Code)
at java.lang.Thread.run(Thread.java:466)
The jsp is Cust_List.jsp.
JRun creates Cust_List.java and when it tries to compile it gives the above
exception.
I can compile Cust_List.java in JBuilder and in dos using javac.
Also, If in the browser I start over and login again, it calls
Cust_List.jsp, and the second time I do not get any errors.
If I change anything in Cust_List.jsp (like add a <BR> in the html) then I
get the error all over again.
Sounds like JRun has a Build the .java and compile it bug.
Ralph Eddy
tel 415.383.4924
fax 415.383.6560
mailto:[EMAIL PROTECTED]
On Wednesday, April 21, 1999 4:02 AM, Tammam Al-Hamwy
[SMTP:[EMAIL PROTECTED]] wrote:
> I could be helpful to include the java generated code that's failing
>
> Cheers,
>
>
> Tammam Al-Hamwy
>
>
>
> Ralph Eddy <[EMAIL PROTECTED]> on 04/20/99 03:52:03 PM
>
> Please respond to "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>
> To: [EMAIL PROTECTED]
> cc: (bcc: Tom Al-Hamwy/Toronto/IBM)
> Subject: JSP Casting Problem
>
>
>
>
>
> I am using JRun 2.2.1 on NT with IIS.
>
> After the user logs in I create an object called UserInfo and store this
> object in the session.
> UserInfo info = new UserInfo(userCode, userName);
> session.putValue(UserInfo.USER, info);
>
> After other events I sendRedirect to a jsp file called Customer_List.jsp
> JRun creates Customer_List.java and attempts to compile it but gets a
> Casting exception at the fourth line below:
> <%UserInfo info = new UserInfo();
> <%HttpSession session = request.getSession(false);
> if(session!=null) {
> info = (UserInfo)session.getValue(UserInfo.USER); <<<<<<<<<<<<
> error <<<<<<<<<<<
> } %>
>
> UserInfo.USER is public static final String.
> I am doing this successfully with casting String.
>
> If I open Customer_List.java and compile it I do NOT get casting errors.
>
> Thanks
>
> Ralph Eddy
> tel 415.383.4924
> fax 415.383.6560
> mailto:[EMAIL PROTECTED]
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html