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

java.lang.NoClassDefFoundError: org/omg/CORBA_2_3/portable/InputStream

15 views
Skip to first unread message

Paul Risenhoover

unread,
Aug 8, 2001, 11:12:07 AM8/8/01
to
hi all.

i'm getting the following stack trace when attempting to create a remote
object, and i've included the problem code following. What's strange is
that the .jar file containing this class and package are in the iioprt.jar
file, which is located in the $JAVA/jre/lib/ext directory. I was under the
impression that any files located in this directory would be automatically
loaded by the classloader if needed.

On a whim, I manually added that .jar file to my classpath and got a
different exception (java.lang.ClassCastException:
com.ibm.CORBA.iiop.ClientResponseImpl).

Can anybody shed some light on this? I've been stumped for days now.

________________________________
Paul Risenhoover
Principal - Java Enterprise Solutions
Rose International

email: prisen...@roseint.com
USDA: pr...@stl.rural.usda.gov


test:
.Setting up Party Test
Obtaining initial context.
Obtaining PartyHome object.
E
Time: 1.581
There was 1 error:
1) testCreation(gov.usda.rural.test.unit.PartyTest)
java.lang.NoClassDefFoundError: org/omg/CORBA_2_3/portable/InputStream
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java(Compiled Code))
at com.ibm.rmi.util.Utility.loadStub(Utility.java:840)
at
javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:315)
at gov.usda.rural.test.unit.PartyTest.setUp(PartyTest.java:54)
at junit.framework.TestCase.runBare(TestCase.java:128)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:121)
at junit.framework.TestSuite.runTest(TestSuite.java:157)
at junit.framework.TestSuite.run(TestSuite.java:152)
at junit.framework.TestSuite.runTest(TestSuite.java:157)
at junit.framework.TestSuite.run(TestSuite.java:152)
at junit.textui.TestRunner.doRun(TestRunner.java:74)
at junit.textui.TestRunner.start(TestRunner.java:235)
at junit.textui.TestRunner.main(TestRunner.java:108)
at TXTTester.main(TXTTester.java:28)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:127)
at org.apache.tools.ant.taskdefs.Java.run(Java.java:260)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:123)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:87)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)

FAILURES!!!
Tests run: 1, Failures: 0, Errors: 1


the code that generates this stack dump is as follows:

try {
for (int i = 0; i < 1; i++) {

execption--> Party party = home.create();

PartyKey partyKey = (PartyKey) party.getPrimaryKey();
System.out.println("Created Party(" + partyKey.objectID +
")");

/*
Party newparty = home.findByPrimaryKey(partyKey);
System.out.println("Found Party()" );

home.remove(partyKey);
System.out.println("Removed Party()");
*/
}
} catch (javax.ejb.CreateException e) {
e.printStackTrace();
fail(e.getMessage());
}


Alex Matthews

unread,
Aug 8, 2001, 2:58:01 PM8/8/01
to
The exception is being thrown in your JUnit setUp method, not the
testCreation method (which appears to be the code you included in your
post). The exception is thrown in PortableRemoteObject.narrow.

You don't say what version of WebSphere you are using - if you are using
4.0 you should really run your standalone client using the WAS
launchclient client container, not directly from Ant. The WAS 4 AD
redbook includes a chapter on using JUnit with WAS 4.0. If you are using
another version launchclient is not an option unfortunately. Is Ant
using the JDK shipped with WAS? That is essential.

Alex.

--
Alex Matthews
mailto:al...@xelacom.com
http://www.xelacom.com/

Susil

unread,
Jan 16, 2002, 3:11:30 PM1/16/02
to
I got a problem using WAS4.0.0 entity beans.

I have one entity bean EMP(say Oracle table). To get manager's data from
that I am using an external class to return me the EMP entity bean fror
corresponding managerID of the EMP entity.

But when i do call this method getManager() It throws exception

2f30aa90 ExceptionUtil X CNTR0020E: Non-application exception occurred
while processing method getManager() on bean
BeanId(PICAPP_16Jan21.ear#AllBeans16jan19.jar#Emp, pic.db.EmpKey@7c):
java.lang.NoClassDefFoundError: javax/ejb/FinderException at
pic.db.ContactBean.getManager(EmpBean.java) at
pic.db.EJSRemoteCMPEmp.getManager(EJSRemoteCMPEmp.java:1144) at
pic.db._Emp_Stub.getManager(_Contact_Stub.java:554) at
Name_jsp_0._jspService(Name_jsp_0.java:126)

--
www.MainFrameForum.com - USENET Gateway

0 new messages