Dears,

I am working on the project that uses Jboss+embedded-tomcat.
To speed up development process, I want to change servlet classes or JSPs in
the web deployment directory 
"$jboss-directory/tmp/deplop/XXX.war/YYYY/WEB-INF/classes/... " directly.
So, no need to re-deploy the web-application part, that is ***very*** time-consuming.
For JSP files, everything goes well. But in case of changing servlet classes, I got 
"ClassCastException"
at the point when the object(corba, rmi, or somethings ???) returned from 
ejb-container is converting to ejb-home object. (see error message at the bottom)

I find information in the jboss and tomcat -documents and on mailing-list, got some 
ideas,  
it may be that new class loader object is created by Tomcat , and that new class 
loader object uses different version ??? of class loader to what used by jboss.
But I don't know how to solve this.

Any one who knows this , please point me to the solution.

Best regards,
Komwut.

Error Message :
java.lang.ClassCastException at 
com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:296)
 at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137) at 
com.th.pcc.control.util.EJBUtil.getSCCHome(EJBUtil.java:64) at 
com.th.pcc.control.web.ModelManager.getSCCEJB(ModelManager.java:111) at 
com.th.pcc.control.web.ShoppingClientControllerWebImpl.(ShoppingClientControllerWebImpl.java:63)
 at com.th.pcc.control.web.RequestProcessor.processRequest(RequestProcessor.java:92) 
at com.th.pcc.control.web.MainServlet.doGet(MainServlet.java:64) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at 
org.apache.tomcat.core.Handler.service(Handler.java:286) at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:799) at 


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to