Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please help me! Problem in Deploy .

 
Parinya Hiranpanthaporn
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use SUNONE7 to deploy.but I got this error when I deploy.
[12/May/2004:22:29:18] INFO ( 2472): CORE3282: stdout: Lookup Result :com.sun.corba.ee.internal.iiop.CDRInputStream_1_0$1
[12/May/2004:22:29:18] SEVERE ( 2472): StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.lang.ClassCastException
at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
at _jasper._HelloClient_jsp._jspService(_HelloClient_jsp.java:72)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:158)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
And this is my code.
try {
InitialContext ic = new InitialContext();
Object objRef = ic.lookup("ejb/HelloBean");
System.out.println("Lookup Result :"+objRef.getClass().getName());
HelloHome home = (HelloHome)PortableRemoteObject.narrow(objRef,HelloHome.class);
hello = home.create();
} catch (RemoteException ex) {
System.out.println("Couldn't create hello bean."+ ex.getMessage());
} catch (CreateException ex) {
System.out.println("Couldn't create hello bean."+ ex.getMessage());
} catch (NamingException ex) {
System.out.println("Unable to lookup home: "+ "HelloBean "+
ex.getMessage());
}
}
public void jspDestroy() {
hello = null;
}
%>
How can I do?Please help me.
[ May 13, 2004: Message edited by: Parinya Hirunpunthaporn ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic