tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nacho Esteban <jeste...@ebro.cps.unizar.es>
Subject Fatal interaction between Voyager Corba services and Tomcat
Date Wed, 29 Aug 2001 15:09:46 GMT
Hi, I are looking for a solution to this problem

    I want to get a Proxy to a corba object (Corba services provided by
Voyager):

        CORBASCAG scag = (CORBASCAG)
Corba.narrow(Namespace.lookup("deriva/SCAG"), CORBASCAG.class);

    which is previously asociated in a namespace:

        Namespace.rebind("deriva/SCAG", new SCAG());

    and obviously the class SCAG implements a CORBA interface:

        public class SCAG implements CORBASCAG {

    but I get this exception:

*********************************************************************************************
   
Error: 500
Location: /Si/globalPrincipal.jsp
Internal Servlet Error:

javax.servlet.ServletException: deriva.system.SCAG@ec8da7 is not a proxy
to a CORBA object
	at java.lang.Throwable.fillInStackTrace(Native Method)
	at java.lang.Throwable.fillInStackTrace(Compiled Code)
	at java.lang.Throwable.(Compiled Code)
	at java.lang.Exception.(Compiled Code)
	at javax.servlet.ServletException.(ServletException.java:161)
	at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:455)
	at globalPrincipal_1._jspService(Compiled Code)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:500)
	at org.apache.tomcat.core.Handler.service(Compiled Code)
	at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:448)
	at
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherImpl.java:252)
	at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:172)
	at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:418)
	at accesoVerify_1._jspService(accesoVerify_1.java:89)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:500)
	at org.apache.tomcat.core.Handler.service(Compiled Code)
	at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:448)
	at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(Compiled Code)
	at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Compiled
Code)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled
Code)
	at java.lang.Thread.run(Thread.java:485)
Root cause:
java.lang.IllegalArgumentException: deriva.system.SCAG@ec8da7 is not a
proxy to a CORBA object
	at java.lang.Throwable.fillInStackTrace(Native Method)
	at java.lang.Throwable.fillInStackTrace(Compiled Code)
	at java.lang.Throwable.(Compiled Code)
	at java.lang.Exception.(Compiled Code)
	at java.lang.RuntimeException.(RuntimeException.java:47)
	at
java.lang.IllegalArgumentException.(IllegalArgumentException.java:43)
	at com.objectspace.voyager.corba.Corba.narrow(Corba.java:162)
	at globalPrincipal_1._jspService(Compiled Code)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:500)
	at org.apache.tomcat.core.Handler.service(Compiled Code)
	at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:448)
	at
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherImpl.java:252)
	at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:172)
	at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:418)
	at accesoVerify_1._jspService(accesoVerify_1.java:89)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:500)
	at org.apache.tomcat.core.Handler.service(Compiled Code)
	at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:448)
	at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(Compiled Code)
	at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Compiled
Code)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled
Code)
	at java.lang.Thread.run(Thread.java:485)
*********************************************************************************************
  
 the lines belonging to our files refered in the exception are the
following:
   
   +accesoVerify_1._jspService(accesoVerify_1.java:89):
	
       pageContext.forward("globalPrincipal.jsp" +  _jspx_qfStr);
   
   +at globalPrincipal_1._jspService(Compiled Code)    (the suspicious
line):
	                    
       CORBASCAG scag = (CORBASCAG)
Corba.narrow(Namespace.lookup("deriva/SCAG"), CORBASCAG.class);


The technologies used are:

     JSP provided by Tomcat 3.3-m4
     our ORB is ObjectSpace Voyager 3.1

The application without Tomcat works well, so Voyager is OK, and I think
the problem is Tomcat.

Probably, it'll be a configuration problem, I didn't change the default
settings in server.xml, web.xml, etc. even the context doesn't have an
own web.xml (I think it isn't needed)

it's indispensable to use Voyager (we implements movile agents), please,
donĀ“t suggest using another ORB

Bye, Nacho

PS: I'll be very pleased to get info about sombeody who use Voyager with
Tomcat

PS: Thanks in advance.

Mime
View raw message