Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CORBA works outside servlet but not inside

0 views
Skip to first unread message

Benjamin Dover

unread,
Sep 20, 2001, 9:50:41 PM9/20/01
to
Hi,
I have a Java client talking to a C++ server using CORBA.
The program runs perfectly when the code is executed
from the main method and the program is run from
the command line. However, the code does not run
inside a servlet.

Can someone point me in the right direction?
Specifically, I get a ClassDefNotFoundError
for one of the Helper classes.

I am using Orbacus for this purpose.

Thanks
Ben

Benjamin Dover

unread,
Sep 21, 2001, 2:36:35 PM9/21/01
to
Sorry, it's not a ClassDefNotFoundError, but the following:

Internal Servlet Error:

org.omg.CORBA.OBJ_ADAPTER: minor code: 1398079492 completed: No
at com.sun.corba.se.internal.corba.ORB.connect(ORB.java:1098)
at com.sun.corba.se.internal.corba.ORB.getServantIOR(ORB.java:1140)
at com.sun.corba.se.internal.corba.ClientDelegate.getServiceContexts(ClientDelegate.java:254)
at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:346)
at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:362)
at com.sun.corba.se.internal.corba.RequestImpl.doInvocation(RequestImpl.java:273)
at com.sun.corba.se.internal.corba.RequestImpl.invoke(RequestImpl.java:223)
at ej.mol.mtmol.StubForMtMol.convertMolecule(StubForMtMol.java:341)
at ej.compound.reg.RegSheetFactory.convertSmilesToSD(RegSheetFactory.java:519)
at ej.compound.reg.RegSheetFactory.populateSheetWithStructureInfo(RegSheetFactory.java:319)
at ej.compound.reg.RegSheetFactory.getSheetBySampleId(RegSheetFactory.java:80)
at ej.compound.reg.FindRegSheet.doGet(FindRegSheet.java:354)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.java:626)
at org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:534)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:378)
at org.apache.tomcat.core.Context.handleRequest(Context.java:644)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:440)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:144)
at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:310)
at java.lang.Thread.run(Thread.java:484)

Thanks for any pointers
Ben

bdov...@yahoo.com (Benjamin Dover) wrote in message news:<c3e5663d.0109...@posting.google.com>...

tomasz.r...@ams.com

unread,
Jan 26, 2005, 3:07:25 PM1/26/05
to
I have a similar problem, still trying to figure it out. The code
snippet below works fine as a stand-alone java program but inside a
servlet/web service hangs forever when narrowing the context. I'm using
Orbix/OmniOrb and Sun Java System Application Server Platform Edition
8.1.

Properties props = new Properties();
props.put("org.omg.CORBA.ORBInitialPort", "6078");
props.put("org.omg.CORBA.ORBInitialHost", "localhost");//works
with a hard-coded IP address as well
props.put("org.omg.CORBA.ORBInitRef",
"NameService=corbaloc::localhost:6078/NameService");

String []st = null;
ORB orb = ORB.init(st, props);
org.omg.CORBA.Object o = orb.resolve_initial_references(
"NameService");
NamingContext nc = NamingContextHelper.narrow(o);

0 new messages