BC4J Hotel Sample Works on CORBA/EJB ??

HI, JDev Folks,
I am debugging the BC4J with CORBA and EJB. And I download the BC4J Hotel Sample from the OTN web under the Jdeveloper/Sample Codes folder. I got the error in the client file BC4JHotelSample.java at
public ApplicationModule createRootCORBAAppModule(String sessionDefName) {
Hashtable env = new Hashtable(10);
javax.naming.Context ic = new InitialContext(env);
and the error is :
Successfully loaded properties file using: getResourceAsStream("/oracle/jbo/common/Diagnostic.properties");
Diagnostics: Silencing all diagnostic output (use -Djbo.debugoutput=console to see it)
Error = javax.naming.NameNotFoundException: Nothing bound for specified name [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound]
But if ran it under LOCAL, everythin is OK. Not under EJB/CORBA.
Anybody happened make it works, please be advised. Thanks!
Mike
null

Hi, ROBERT,
I deployed the CORBA as guide by the Hotel Sample instruction. and I just created the JDBC and IIOP connection which both are OK by test. To be more convinced, I attached the code from deployment of CORBA for the it.
============================================
*** Executing deployment profile C:\Program Files\Oracle\JDeveloper 3.2\myprojects\BC4JSample\bcdeploy\BC4JHRSBcO8.prf ***
*** Generating archive file C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses\BC4JHRSBcO8.jar ***
Compiling the project...done
Validating the profile...done
Initializing deployment...done
Scanning project files...done
Generating classpath dependencies...done
Generating archive entries table...done
*** Archive generation completed ***
*** Loading the CORBA classes into 8i JVM using JDBC ***
Load Java argument list:
"C:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\bin\javaw"
"-DPATH=C:\Program Files\Oracle\JDeveloper 3.2\bin;C:\Program Files\Oracle\JDeveloper 3.2\java1.2\bin"
-classpath
"C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax-ssl-1_2.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\jasper.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\translator.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\mts.jar;C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbojdbcpatch.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbodomorcl.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbodatum12.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jdev-rt.zip;C:\Program Files\Oracle\JDe
eloper 3.2\jdbc\lib\oracle8.1.7\classes12.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\connectionmanager.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbomt.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboremote.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jndi.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\xmlparserv2.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboejb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax_ejb.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax-ssl-1_2.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\jasper.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\translator.zip;C:\Program Files\Or
cle\JDeveloper 3.2\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\mts.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboo8i.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbotester.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbocmp.zip;C:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\lib\rt.jar"
oracle.aurora.server.tools.loadjava.LoadJavaMain
-user
travel/travel@localhost:1521:test
-thin
-verbose
-resolve
"C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses\BC4JHRSBcO8.jar"
initialization complete
identical: META-INF/MANIFEST.MF is unchanged from previously loaded file
loading : connections.properties
creating : connections.properties
resolver :
*** CORBA classes load completed ***
*** Publishing the CORBA object in 8i JVM ***
Publish CORBA Object argument list:
"C:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\bin\javaw"
"-DPATH=C:\Program Files\Oracle\JDeveloper 3.2\bin;C:\Program Files\Oracle\JDeveloper 3.2\java1.2\bin"
-classpath
"C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax-ssl-1_2.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\jasper.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\translator.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\mts.jar;C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbojdbcpatch.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbodomorcl.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbodatum12.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jdev-rt.zip;C:\Program Files\Oracle\JDe
eloper 3.2\jdbc\lib\oracle8.1.7\classes12.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\connectionmanager.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbomt.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboremote.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jndi.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\xmlparserv2.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboejb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax_ejb.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax-ssl-1_2.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\jasper.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\translator.zip;C:\Program Files\Or
cle\JDeveloper 3.2\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\mts.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboo8i.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbotester.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbocmp.zip;C:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\lib\rt.jar"
oracle.aurora.namespace.shell.ShellClient
-command
publish /test/travel/$DefaultAppModule oracle.jbo.server.remote.corba.aurora.AuroraApplicationModule oracle.jbo.common.remote.corba.RemoteApplicationModuleHomeHelper -republish
-user
travel
-password
travel
-service
sess_iiop://localhost:2482:test
*** 8i JVM CORBA publishing completed ***
*** Deployment completed ***
*** Executing deployment profile C:\Program Files\Oracle\JDeveloper 3.2\myprojects\BC4JSample\bcdeploy\BC4JHRS1.prf ***
*** Generating archive file C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses\BC4JHRS1.jar ***
Compiling the project...done
Validating the profile...done
Initializing deployment...done
Scanning project files...done
Generating classpath dependencies...done
Generating archive entries table...done
*** Archive generation completed ***
*** Executing deployment profile C:\Program Files\Oracle\JDeveloper 3.2\myprojects\BC4JSample\bcdeploy\BC4JHRSCommonO81.prf ***
*** Generating archive file C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses\BC4JHRSCommonO81.jar ***
Compiling the project...done
Validating the profile...done
Initializing deployment...done
Scanning project files...done
Generating classpath dependencies...done
Generating archive entries table...done
*** Archive generation completed ***
*** Executing deployment profile C:\Program Files\Oracle\JDeveloper 3.2\myprojects\BC4JSample\bcdeploy\AppModuleServerO81.prf ***
*** Generating archive file C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses\AppModuleServerO81.jar ***
Compiling the project...done
Validating the profile...done
Initializing deployment...done
Scanning project files...done
Generating classpath dependencies...done
Generating archive entries table...done
*** Archive generation completed ***
*** Loading archive C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses\BC4JHRSCommonO81.jar,C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses\BC4JHRS1.jar into 8i JVM using JDBC ***
Load Java argument list:
"C:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\bin\javaw"
"-DPATH=C:\Program Files\Oracle\JDeveloper 3.2\bin;C:\Program Files\Oracle\JDeveloper 3.2\java1.2\bin"
-classpath
"C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax-ssl-1_2.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\jasper.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\translator.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\mts.jar;C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbojdbcpatch.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbodomorcl.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbodatum12.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jdev-rt.zip;C:\Program Files\Oracle\JDe
eloper 3.2\jdbc\lib\oracle8.1.7\classes12.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\connectionmanager.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbomt.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboremote.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jndi.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\xmlparserv2.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboejb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax_ejb.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax-ssl-1_2.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\jasper.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\translator.zip;C:\Program Files\Or
cle\JDeveloper 3.2\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\mts.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboo8i.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbotester.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbocmp.zip;C:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\lib\rt.jar"
oracle.aurora.server.tools.loadjava.LoadJavaMain
-user
travel/travel@localhost:1521:test
-thin
-verbose
-resolve
"C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses\BC4JHRSCommonO81.jar"
"C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses\BC4JHRS1.jar"
initialization complete
loading : META-INF/MANIFEST.MF
creating : META-INF/MANIFEST.MF
loading : connections.properties
creating : connections.properties
identical: BC4JHRS/common/bc4j.xcfg is unchanged from previously loaded file
identical: BC4JHRS/HotelsImpl is unchanged from previously loaded file
identical: BC4JHRS/Available_Room_Types_ViewImpl is unchanged from previously loaded file
identical: BC4JHRS/Hotel_Facilities_ViewImpl is unchanged from previously loaded file
identical: BC4JHRS/FaxNo is unchanged from previously loaded file
identical: BC4JHRS/WebURL is unchanged from previously loaded file
identical: BC4JHRS/AppModuleImpl is unchanged from previously loaded file
identical: BC4JHRS/CitiesImpl is unchanged from previously loaded file
identical: BC4JHRS/CountriesImpl is unchanged from previously loaded file
identical: BC4JHRS/AvailableRoomTypesImpl is unchanged from previously loaded file
identical: BC4JHRS/PhoneNo is unchanged from previously loaded file
identical: BC4JHRS/Room_Availability_ViewImpl is unchanged from previously loaded file
identical: BC4JHRS/Exchange_Rate_Updation_ViewImpl is unchanged from previously loaded file
identical: BC4JHRS/RoomAvailabilityImpl is unchanged from previously loaded file
identical: BC4JHRS/Hotel_Bookings_ViewImpl is unchanged from previously loaded file
identical: BC4JHRS/HotelFacilitiesImpl is unchanged from previously loaded file
identical: BC4JHRS/ExchangeRatesImpl is unchanged from previously loaded file
identical: BC4JHRS/HotelBookingsImpl is unchanged from previously loaded file
identical: BC4JHRS/Hotel_Info_ViewImpl is unchanged from previously loaded file
loading : META-INF/MANIFEST.MF
creating : META-INF/MANIFEST.MF
identical: BC4JHRS/HotelBookings.xml is unchanged from previously loaded file
identical: BC4JHRS/AvailableRoomTypes.xml is unchanged from previously loaded file
identical: BC4JHRS/ExrConFkAssoc.xml is unchanged from previously loaded file
identical: BC4JHRS/PhoneNo.xml is unchanged from previously loaded file
identical: BC4JHRS/RavHotFkAssoc.xml is unchanged from previously loaded file
identical: BC4JHRS/HotelBookingsVL.xml is unchanged from previously loaded file
identical: BC4JHRS/ArtHotFkAssoc.xml is unchanged from previously loaded file
identical: BC4JHRS/BC4JHRS.xml is unchanged from previously loaded file
identical: BC4JHRS/Hotel_Info_View.xml is unchanged from previously loaded file
identical: BC4JHRS/HtfHotFkAssoc.xml is unchanged from previously loaded file
identical: BC4JHRS/HotelFacilitiesVL.xml is unchanged from previously loaded file
identical: BC4JHRS/Cities.xml is unchanged from previously loaded file
identical: BC4JHRS/FaxNo.xml is unchanged from previously loaded file
identical: BC4JHRS/Room_Availability_View.xml is unchanged from previously loaded file
identical: BC4JHRS/Hotel_Facilities_View.xml is unchanged from previously loaded file
identical: BC4JHRS/ArtVL.xml is unchanged from previously loaded file
identical: BC4JHRS/RavVL.xml is unchanged from previously loaded file
identical: BC4JHRS/CtyConFkAssoc.xml is unchanged from previously loaded file
identical: BC4JHRS/WebURL.xml is unchanged from previously loaded file
loading : BC4JHRS/AppModule.xml
creating : BC4JHRS/AppModule.xml
identical: BC4JHRS/BC4JHRS.jpx is unchanged from previously loaded file
identical: BC4JHRS/ExchangeRates.xml is unchanged from previously loaded file
loading : connections.properties
creating : connections.properties
identical: BC4JHRS/Hotels.xml is unchanged from previously loaded file
identical: BC4JHRS/Available_Room_Types_View.xml is unchanged from previously loaded file
identical: BC4JHRS/HotelFacilities.xml is unchanged from previously loaded file
identical: BC4JHRS/RoomAvailability.xml is unchanged from previously loaded file
identical: BC4JHRS/Countries.xml is unchanged from previously loaded file
identical: BC4JHRS/ExrConFk2Assoc.xml is unchanged from previously loaded file
identical: BC4JHRS/HobHotFkAssoc.xml is unchanged from previously loaded file
identical: BC4JHRS/Exchange_Rate_Updation_View.xml is unchanged from previously loaded file
identical: BC4JHRS/Hotel_Bookings_View.xml is unchanged from previously loaded file
resolver :
skipping : BC4JHRS/HotelsImpl is already resolved
skipping : BC4JHRS/Available_Room_Types_ViewImpl is already resolved
skipping : BC4JHRS/Hotel_Facilities_ViewImpl is already resolved
skipping : BC4JHRS/FaxNo is already resolved
skipping : BC4JHRS/WebURL is already resolved
skipping : BC4JHRS/AppModuleImpl is already resolved
skipping : BC4JHRS/CitiesImpl is already resolved
skipping : BC4JHRS/CountriesImpl is already resolved
skipping : BC4JHRS/AvailableRoomTypesImpl is already resolved
skipping : BC4JHRS/PhoneNo is already resolved
skipping : BC4JHRS/Room_Availability_ViewImpl is already resolved
skipping : BC4JHRS/Exchange_Rate_Updation_ViewImpl is already resolved
skipping : BC4JHRS/RoomAvailabilityImpl is already resolved
skipping : BC4JHRS/Hotel_Bookings_ViewImpl is already resolved
skipping : BC4JHRS/HotelFacilitiesImpl is already resolved
skipping : BC4JHRS/ExchangeRatesImpl is already resolved
skipping : BC4JHRS/HotelBookingsImpl is already resolved
skipping : BC4JHRS/Hotel_Info_ViewImpl is already resolved
*** Archive load completed ***
*** Loading the CORBA classes into 8i JVM using JDBC ***
Load Java argument list:
"C:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\bin\javaw"
"-DPATH=C:\Program Files\Oracle\JDeveloper 3.2\bin;C:\Program Files\Oracle\JDeveloper 3.2\java1.2\bin"
-classpath
"C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax-ssl-1_2.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\jasper.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\translator.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\mts.jar;C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbojdbcpatch.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbodomorcl.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbodatum12.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jdev-rt.zip;C:\Program Files\Oracle\JDe
eloper 3.2\jdbc\lib\oracle8.1.7\classes12.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\connectionmanager.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbomt.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboremote.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jndi.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\xmlparserv2.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboejb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax_ejb.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax-ssl-1_2.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\jasper.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\translator.zip;C:\Program Files\Or
cle\JDeveloper 3.2\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\mts.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboo8i.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbotester.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbocmp.zip;C:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\lib\rt.jar"
oracle.aurora.server.tools.loadjava.LoadJavaMain
-user
travel/travel@localhost:1521:test
-thin
-verbose
-resolve
"C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses\AppModuleServerO81.jar"
initialization complete
loading : BC4JHRS/server/o8/AppModuleServerO8
creating : BC4JHRS/server/o8/AppModuleServerO8
loading : META-INF/MANIFEST.MF
creating : META-INF/MANIFEST.MF
loading : connections.properties
creating : connections.properties
resolver :
resolving: BC4JHRS/server/o8/AppModuleServerO8
*** CORBA classes load completed ***
*** Publishing the CORBA object in 8i JVM ***
Publish CORBA Object argument list:
"C:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\bin\javaw"
"-DPATH=C:\Program Files\Oracle\JDeveloper 3.2\bin;C:\Program Files\Oracle\JDeveloper 3.2\java1.2\bin"
-classpath
"C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax-ssl-1_2.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\jasper.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\translator.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\mts.jar;C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbojdbcpatch.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbodomorcl.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbodatum12.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jdev-rt.zip;C:\Program Files\Oracle\JDe
eloper 3.2\jdbc\lib\oracle8.1.7\classes12.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\connectionmanager.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbomt.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboremote.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jndi.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\xmlparserv2.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboejb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax_ejb.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax-ssl-1_2.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\jasper.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\translator.zip;C:\Program Files\Or
cle\JDeveloper 3.2\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\mts.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboo8i.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbotester.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbocmp.zip;C:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\lib\rt.jar"
oracle.aurora.namespace.shell.ShellClient
-command
publish /test/travel/BC4JHRS.AppModule BC4JHRS.server.o8.AppModuleServerO8 oracle.jbo.common.remote.corba.RemoteApplicationModuleHomeHelper -republish
-user
travel
-password
travel
-service
sess_iiop://localhost:2482:test
*** 8i JVM CORBA publishing completed ***
*** Deployment completed ***
=============================================
Then I created the library called BC4JHRSCommon8i to the created jar files to it. and attached it to the client program BC4JJavaClient.jpr. In the meantime to change the Run/Debug status to CORBA NOT LOCAL. then I rebuild and run the test program. then I got the error:
=================================
"C:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\bin\javaw.exe" -mx50m -classpath "C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboremote.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboremoteejb.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax_ejb.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jndi.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboejb.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbomt.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbodomorcl.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\xmlparserv2.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\jdev-rt.zip;C:\Program Files\Oracle\JDeveloper 3.2\jdbc\lib\oracle8.1.7\classes12.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\connectionmanager.zip;C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses\BC4JHRSCommonO8.jar;C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses\AppModuleServerO8.jar;C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses\BC4JHRS.jar;C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses\AppModuleServerO81.jar;C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses\BC4JHRS1.jar;C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses\BC4JHRSBcO8.jar;C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses\BC4JHRSCommonO81.jar;C:\Program Files\Oracle\JDeveloper 3.2\Program Files\Oracle\JDeveloper 3.0\myclasses\BcO8.jar;C:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\lib\rt.jar" BC4JJavaClient.BC4JHotelSample CORBA
Successfully loaded properties file using: getResourceAsStream("/oracle/jbo/common/Diagnostic.properties");
Diagnostics: Silencing all diagnostic output (use -Djbo.debugoutput=console to see it)
Error = javax.naming.NamingException: oracle.jbo.client.remote.corba.aurora.AuroraInitialContext [Root exception is java.lang.ClassNotFoundException: oracle.jbo.client.remote.corba.aurora.AuroraInitialContext]
=======================================
I did all those step by step by the guidance. My enviornment is JDEV3.2, ORA8.1.7
on WIN2000.
Also I did NOT find the Sample Codes Forum in the discussion forum? Any comments about error. BY the way If I created a BC4J from scratch, I did not have the error above But I got another error when I ran the client. It is clearly linked to my BC4J CORBA. I also attached the error and the debug msg below.
========================================
"C:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\bin\javaw.exe" -mx50m -classpath "C:\Program Files\Oracle\JDeveloper 3.2\myclasses;C:\Program Files\Oracle\JDeveloper 3.2\lib\jdev-rt.zip;C:\Program Files\Oracle\JDeveloper 3.2\jdbc\lib\oracle8.1.7\classes12.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\connectionmanager.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboremote.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbo8iclient.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\jndi.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\jboo8i.zip;C:\Program Files\Oracle\JDeveloper 3.2\myclasses\BC4JDemoCommonO82.jar;C:\Program Files\Oracle\JDeveloper 3.2\myclasses\BC4JDemo3.jar;C:\Program Files\Oracle\JDeveloper 3.2\myclasses\BC4JDemoBcO8.jar;C:\Program Files\Oracle\JDeveloper 3.2\myclasses\BC4JDemoModuleServerO82.jar;C:\Program Files\Oracle\JDeveloper 3.2\myclasses\BcO81.jar;C:\Program Files\Oracle\JDeveloper 3.2\myclasses\BC4JDemoCommonO81.jar;C:\Program Files\Oracle\JDeveloper 3.2\myclasses\BC4JDemoModuleServerO81.jar;C:\Program Files\Oracle\JDeveloper 3.2\myclasses\BC4JDemoCommonO8.jar;C:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\lib\rt.jar" BC4JDemo.BC4J_8iCorba_Test CORBA
In the EVN0: test
Successfully loaded properties file using: getResourceAsStream("/oracle/jbo/common/Diagnostic.properties");
Diagnostics: Silencing all diagnostic output (use -Djbo.debugoutput=console to see it)
In the EVN1: javax.naming.InitialContext@16e2
In the EVN2: test HOME = : oracle.jbo.client.remote.corba.aurora.AuroraApplicationModuleHome@480c
In the EVN3: BC4JDemoModule
In the EVN4: jdbc:oracle:kprb:
In the EVN5: oracle.jbo.client.remote.ViewUsageImpl@32ad
In the EVN51: 8
In the EVN52: null
In the EVN53: BC4JDemo.DeptView
In the EVN54: SELECT Dept.DEPTNO, Dept.DNAME, Dept.LOC FROM DEPT Dept
In the EVN55: -1
In the EVN56: 4
In the EVN57: DeptView
In the EVN58: 3
In the EVN59: 2
In the getDetailRowSets: [Loracle.jbo.RowSet;@3d34
In the EVN51: -1
In the getViewObject: DeptView
oracle.jbo.PiggybackException: JBO-28300: Piggyback read error
void oracle.jbo.client.remote.ApplicationModuleImpl.processPiggyback(byte[])
int oracle.jbo.client.remote.ApplicationModuleImpl.syncIterator(int, int, int, boolean, boolean)
int oracle.jbo.client.remote.RowSetIteratorImpl.syncIterator(int, int, boolean)
oracle.jbo.Row oracle.jbo.client.remote.RowSetIteratorImpl.first()
oracle.jbo.Row oracle.jbo.client.remote.RowSetImpl.first()
oracle.jbo.Row oracle.jbo.client.remote.ViewUsageImpl.first()
void BC4JDemo.BC4J_8iCorba_Test.main(java.lang.String[])
## Detail 0 ##
java.lang.ClassNotFoundException: oracle.jbo.domain.Number
void oracle.jbo.client.remote.ApplicationModuleImpl.processPiggyback(byte[])
int oracle.jbo.client.remote.ApplicationModuleImpl.syncIterator(int, int, int, boolean, boolean)
int oracle.jbo.client.remote.RowSetIteratorImpl.syncIterator(int, int, boolean)
oracle.jbo.Row oracle.jbo.client.remote.RowSetIteratorImpl.first()
oracle.jbo.Row oracle.jbo.client.remote.RowSetImpl.first()
oracle.jbo.Row oracle.jbo.client.remote.ViewUsageImpl.first()
void BC4JDemo.BC4J_8iCorba_Test.main(java.lang.String[])
In the EVN8: oracle.jbo.PiggybackException: JBO-28300: Piggyback read error
JBO-28300: Piggyback read error
=========================================
All the lines withe "In the ENV*" are my debug msg, you can ingore them. But the msg come from ObjectView e.g. ObjectView deptVo=appMod.findViewObject("DeptView");
deptVo.first();
The mothods first(), next(), last(), ... etc are list in the view. But as soon as I called it. I got the "JBO-28300: Piggyback read error". JBO-28300 even not list in the help guidance. I did not know why this bug come from? It at least should listed in the help of JDEV3.2 doc and give me more explaintion what it goes wrong. If you met those problem before, please post here how to fix it. Thanks!
MIke

Similar Messages

  • EJB Hotel samples

    Hi,
    I would like assistance in getting the EJB hotel samples from OTN to work with JDeveloper 3.2 against an 8.1.7 database.
    The instructions seem to be for JDeveloper 3.1. I tried following them and got the travel schema loaded into the database but I am stuck at the part where you deploy stuff from JDeveloper. It appears that the menu items referred to in the instructions are not the same ones in JDeveloper 3.2. Also the HotelSystem.ejb file shows up with an icon that has a question mark on it. Has anybody tried to get these to work with JDeveloper 3.2 and oracle 8.1.7? I'm really interested in this example to work because it has both a GUI client and a servlet client sharing the same business logic code. Alternatively, if anyone knows of another example like this (GUI client and web client), I'd appreciate it if you sent me a pointer to it. Thanks in advance.

    OTN developers are updating the Hotel sample apps to run under the current product versions. Work is ongoing, and when they finish you will be able to download revised files from OTN (they have not announced a release date). You might get a more immediate answer by posting your question in the Sample Code forum. The developers monitor that forum, and may be able to help you right away.
    Regards,
    -rh
    null

  • HOWTO: Using a BC4J Application Module in an Stateless EJB Session Bean

    HOWTO: Using a BC4J Application Module in an Stateless EJB Session Bean
    by Steve Muench
    Overview
    BC4J provides automatic facilities for deploying any application module as a stateful EJB session bean. If you want to leverage the features of your BC4J application module from a stateless EJB session bean, it's not automatic but it is straightforward to implement. This howto article explains the details.
    For our example, we will create a stateless EJB session bean that uses a container-managed transaction. To keep things simple, let's assume the session bean has a single public method on its remote interface named createDepartment() with the following signature:
    public void createDepartment(int id, String name, String loc) throws AppException
    AppException is an example of an application-specific exception that our method will throw if any problems arise during its execution.The goal of this article is to illustrate how to use the BC4J application module named com.example.hr.HRApp as part of the implementation of this createDepartment method on our stateless enterprise bean. Let's assume that the HRApp application module has a view object member named Departments, based on the com.example.hr.DeptView view object, based on the familiar DEPT table and related to the com.example.hr.Dept entity object so our view can be updateable.
    Creating the Stateless Session Bean
    We can start by using the JDeveloper Enterprise Bean wizard to create a new stateless session bean called StatelessSampleEJB implemented by:[list][*]com.example.StatelessSampleEJBBean (Bean class)[*]com.example.StatelessSampleEJBHome (Home interface)[*]com.example.StatelessSampleEJB (Remote interface)[list]
    We then use the EJB Class Editor to add the createDepartment method to the remote interface of StatelessSampleEJB with the signature above. We edit the remote interface to make sure that it also reflects that the createDepartment method thows the AppException like this:
    package com.example;
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    public interface StatelessSampleEJB extends EJBObject {
      void createDepartment(int id, String name, String loc)
      throws RemoteException,AppException;
    }Before we start adding BC4J into the picture for our implementation, our StatelessSampleEJBBean class looks like this:
    package com.example;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    public class StatelessSampleEJBBean implements SessionBean {
      public void ejbCreate(){}
      public void ejbActivate(){}
      public void ejbPassivate(){}
      public void ejbRemove(){}
      public void setSessionContext(SessionContext ctx){
      public void createDepartment(int id, String name, String loc) 
      throws AppException {
        // TODO: Implement method here
    }We can double-click on the ejb-jar.xml file in our project to see the XML deployment descriptor for the bean we just created:
    <ejb-jar>
       <enterprise-beans>
          <session>
             <description>Session Bean ( Stateless )</description>
             <display-name>StatelessSampleEJB</display-name>
             <ejb-name>StatelessSampleEJB</ejb-name>
             <home>com.example.StatelessSampleEJBHome</home>
             <remote>com.example.StatelessSampleEJB</remote>
             <ejb-class>com.example.StatelessSampleEJBBean</ejb-class>
             <session-type>Stateless</session-type>
             <transaction-type>Container</transaction-type>
          </session>
       </enterprise-beans>
    </ejb-jar>We need to add the extra <assembly-descriptor> section in this file to indicate that the createDepartment method will require a transaction. After this edit, the ejb-jar.xml file looks like this:
    <ejb-jar>
       <enterprise-beans>
          <session>
             <description>Session Bean ( Stateless )</description>
             <display-name>StatelessSampleEJB</display-name>
             <ejb-name>StatelessSampleEJB</ejb-name>
             <home>com.example.StatelessSampleEJBHome</home>
             <remote>com.example.StatelessSampleEJB</remote>
             <ejb-class>com.example.StatelessSampleEJBBean</ejb-class>
             <session-type>Stateless</session-type>
             <transaction-type>Container</transaction-type>
          </session>
       </enterprise-beans>
       <assembly-descriptor>
          <container-transaction>
             <method>
                <ejb-name>StatelessSampleEJB</ejb-name>
                <method-name>createDepartment</method-name>
                <method-params>
                   <method-param>int</method-param>
                   <method-param>java.lang.String</method-param>
                   <method-param>java.lang.String</method-param>
                </method-params>
             </method>
             <trans-attribute>Required</trans-attribute>
          </container-transaction>
       </assembly-descriptor>
    </ejb-jar>
    Aggregating a BC4J Application Module
    With the EJB aspects of our bean setup, we can proceed to implementing the BC4J application module aggregation.
    The first thing we do is add private variables to hold the EJB SessionContext and the instance of the aggregated BC4J ApplicationModule, like this:
    // Place to hold onto the aggregated appmodule instance
    transient private ApplicationModule _am  = null;
    // Remember the SessionContext that the EJB container provides us
    private           SessionContext    _ctx = null;and we modify the default, empty implementation of the setSessionContext() method to remember the session context like this:
    public void setSessionContext(SessionContext ctx){ _ctx = ctx; }We add additional constants that hold the names of the J2EE datasource that we want BC4J to use, as well as the fully-qualified name of the BC4J application module that we'll be aggregating:
    // JNDI resource name for the J2EE datasource to use
    private static final String DATASOURCE = "jdbc/OracleCoreDS";
    // Fully-qualified BC4J application module name to aggregate
    private static final String APPMODNAME = "com.example.hr.HRApp";We expand the now-empty ejbCreate() and ejbRemove() methods to create and destory the aggregated instance of the BC4J application module that we'll use for the lifetime of the stateless session bean. When we're done, ejbCreate() it looks like this:
    public void ejbCreate() throws CreateException {
      try {
        // Setup a hashtable of environment parameters for JNDI initial context
        Hashtable env = new Hashtable();
        env.put(JboContext.INITIAL_CONTEXT_FACTORY,JboContext.JBO_CONTEXT_FACTORY);
        // NOTE: we want to use the BC4J app module in local mode as a simple Java class!
        env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_LOCAL);
        env.put(PropertyConstants.INTERNAL_CONNECTION_PARAMS,DATASOURCE);
        // Create an initial context, using this hashtable of environment params
        InitialContext ic = new InitialContext(env);
        // Lookup a home interface for the application module
        ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup(APPMODNAME);
        // Using the home, create the instance of the appmodule we'll use
        _am = home.create();
        // Register the BC4J factory to handle EJB container-managed transactions
        registerContainerManagedTransactionHandlerFactory();
      catch(Exception ex) {
         ex.printStackTrace();
        throw new CreateException(ex.getMessage());
    }and ejbRemove() looks like this:
    public void ejbRemove() {
      try {
        // Cleanup any appmodule resources before getting shutdown
        _am.remove();
      catch(JboException ex) { /* Ignore */ }
    }The helper method named reigsterContainerManagedTransactionHandlerFactory() looks like this:
    private void registerContainerManagedTransactionHandlerFactory() {
      SessionImpl session = (SessionImpl)_am.getSession();
      session.setTransactionHandlerFactory(
        new TransactionHandlerFactory() {
          public TransactionHandler  createTransactionHandler() {
            return new ContainerManagedTxnHandlerImpl();
          public JTATransactionHandler createJTATransactionHandler() {
            return new ContainerManagedTxnHandlerImpl();
    }The last detail is to use the BC4J appmodule to implement the createDepartment() method. It ends up looking like this:
    public void createDepartment(int id, String name, String loc)
    throws AppException {
      try {
        // Connect the AM to the datasource we want to use for the duration
        // of this single method call.
        _am.getTransaction().connectToDataSource(null,DATASOURCE,false);
        // Use the "Departments" view object member of this AM
        ViewObject departments = _am.findViewObject("Departments");
        // Create a new row in this view object.
        Row newDept = departments.createRow();
        // Populate the attributes from the parameter arguments.
        newDept.setAttribute("Deptno", new Number(id));
        newDept.setAttribute("Dname", name);
        newDept.setAttribute("Loc", loc);
        // Add the new row to the view object's default rowset
        departments.insertRow(newDept);
        // Post all changes in the AM, but we don't commit them. The EJB
        // container managed transaction handles the commit.
        _am.getTransaction().postChanges();
      catch(JboException ex) {
        // To be good EJB Container-Managed Transaction "citizens" we have
        // to mark the transaction as needing a rollback if there are problems
        _ctx.setRollbackOnly();
        throw new AppException("Error creating dept "+ id +"\n"+ex.getMessage());
      finally {
        try {
          // Disconnect the AM from the datasource we're using
          _am.getTransaction().disconnect();
        catch(Exception ex) { /* Ignore */ }
    Building a Test Client
    With the EJB-Tier work done, we can build a sample client program to test this new stateless EJB Session Bean by selecting the bean in the Oracle9i JDeveloper IDE and choosing "Create Sample Java Client" from the right-mouse menu.
    When the "Sample EJB Client Details" dialog appears, we take the defaults of connecting to embedded OC4J container. Clicking the (OK) button generates the following test class:
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import com.example.StatelessSampleEJB;
    import com.example.StatelessSampleEJBHome;
    public class SampleStatelessSampleEJBClient {
      public static void main(String [] args) {
        SampleStatelessSampleEJBClient sampleStatelessSampleEJBClient =
           new SampleStatelessSampleEJBClient();
        try {
          Hashtable env = new Hashtable();
          env.put(Context.INITIAL_CONTEXT_FACTORY,
                  "com.evermind.server.rmi.RMIInitialContextFactory");
          env.put(Context.SECURITY_PRINCIPAL, "admin");
          env.put(Context.SECURITY_CREDENTIALS, "welcome");
          env.put(Context.PROVIDER_URL,
                  "ormi://localhost:23891/current-workspace-app");
          Context ctx = new InitialContext(env);
          StatelessSampleEJBHome statelessSampleEJBHome =
               (StatelessSampleEJBHome)ctx.lookup("StatelessSampleEJB");
          StatelessSampleEJB statelessSampleEJB;
          // Use one of the create() methods below to create a new instance
          // statelessSampleEJB = statelessSampleEJBHome.create();
          // Call any of the Remote methods below to access the EJB
          // statelessSampleEJB.createDepartment( int id, java.lang.String name, java.lang.String loc );
        catch(Throwable ex) {
          ex.printStackTrace();
    }We uncomment the call to the create() method and add a few calls to the createDepartment() method so that the body of the test program now looks like this:
    // Use one of the create() methods below to create a new instance
    statelessSampleEJB = statelessSampleEJBHome.create();
    // Call any of the Remote methods below to access the EJB
    statelessSampleEJB.createDepartment( 13, "Test1","Loc1");
    System.out.println("Created department 13");
    statelessSampleEJB.createDepartment( 14, "Test2","Loc2");
    System.out.println("Created department 14");
    try {
      // Try setting a department id that is too large!
      statelessSampleEJB.createDepartment( 23456, "Test3","Loc3");
    catch (AppException ax) {
      System.err.println("AppException: "+ax.getMessage());
    }Before we can successfully run our SampleStatelessSampleEJBClient we need to first run the EJB bean that the client will try to connect to. Since Oracle9i JDeveloper supports local running and debugging of the EJB-Tier without doing through a full J2EE deployment step, to accomplish this prerequisite step we just need to right-mouse on the StatelessSampleEJB node in the System Navigator and select "Run". This starts up the embedded OC4J instance and runs the EJB right out of the current out path.Finally, we can run the SampleStatelessSampleEJBClient, and see the output of the test program in the JDeveloper log window:
    Created department 13
    Created department 14
    AppException: Error creating dept 23456
    JBO-27010: Attribute set with value 23456 for Deptno in Dept has invalid precision/scale
    Troubleshooting
    One error that might arise while running the example is that the database connection information in your data-sources.xml for the jdbc/OracleCoreDS datasource does not correspond to the database you are trying to test against. If this happens, then double-check the file .\jdev\system\oc4j-config\data-sources.xml under the JDeveloper installation home directory to make sure that the url value provided is what you expect. For example, to work against a local Oracle database running on your current machine, listening on port 1521, with SID of ORCL, you would edit this file to have an entry like this for jdbc/OracleCoreDS :
    <data-source
        class="com.evermind.sql.DriverManagerDataSource"
        name="OracleDS"
        location="jdbc/OracleCoreDS"
        xa-location="jdbc/xa/OracleXADS"
        ejb-location="jdbc/OracleDS"
        connection-driver="oracle.jdbc.driver.OracleDriver"
        username="scott"
        password="tiger"
        url="jdbc:oracle:thin:@localhost:1521:ORCL"
        inactivity-timeout="30"
    />This is the data-sources.xml file that gets used by the embedded OC4J instance running in JDeveloper.
    Conclusion
    Hopefully this article has illustrated that it is straightforward to utilize the full power of BC4J in local mode as part of your EJB Stateless Session Beans using container-managed transaction. This example illustrated a single createDepartment method in the enterprise bean, but by replicating the application module interaction code that we've illustrated in createDepartment, any number of methods in your stateless session bean can use the aggregated application module instance created in the ejbCreate() method.
    Code Listing
    The full code listing for the SampleStatelessEJB bean implementation class looks like this:
    * StatelessSampleEJB
    * Illustrates how to use an aggregated BC4J application module
    * in local mode as part of the implementation of a stateless
    * EJB session bean using container-managed transaction.
    * HISTORY
    * smuench/dmutreja 14-FEB-2002 Created
    package com.example;
    import oracle.jbo.*;
    import oracle.jbo.server.*;
    import javax.ejb.*;
    import oracle.jbo.domain.Number;
    import oracle.jbo.common.PropertyConstants;
    import java.util.Hashtable;
    import javax.naming.InitialContext;
    import oracle.jbo.server.ejb.ContainerManagedTxnHandlerImpl;
    public class StatelessSampleEJBBean implements SessionBean {
      // JNDI resource name for the J2EE datasource to use
      private static final String DATASOURCE = "jdbc/OracleCoreDS";
      // Fully-qualified BC4J application module name to aggregate
      private static final String APPMODNAME = "com.example.hr.HRApp";
      // Place to hold onto the aggregated appmodule instance
      transient private ApplicationModule _am  = null;
      // Remember the SessionContext that the EJB container provides us
      private           SessionContext    _ctx = null;
      public void ejbCreate() throws CreateException {
        try {
          // Setup a hashtable of environment parameters for JNDI initial context
          Hashtable env = new Hashtable();
          env.put(JboContext.INITIAL_CONTEXT_FACTORY,JboContext.JBO_CONTEXT_FACTORY);
          env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_LOCAL);
          env.put(PropertyConstants.INTERNAL_CONNECTION_PARAMS,DATASOURCE);
          // Create an initial context, using this hashtable of environment params
          InitialContext ic = new InitialContext(env);
          // Lookup a home interface for the application module
          ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup(APPMODNAME);
          // Using the home, create the instance of the appmodule we'll use
          _am = home.create();
          // Register the BC4J factory to handle EJB container-managed transactions
          registerContainerManagedTransactionHandlerFactory();
        catch(Exception ex) {
           ex.printStackTrace();
          throw new CreateException(ex.getMessage());
      public void ejbActivate(){}
      public void ejbPassivate(){}
      public void ejbRemove(){}
      public void setSessionContext(SessionContext ctx){ _ctx = ctx; }
      public void createDepartment(int id, String name, String loc)
      throws AppException {
        try {
          // Connect the AM to the datasource we want to use for the duration
          // of this single method call.
          _am.getTransaction().connectToDataSource(null,DATASOURCE,false);
          // Use the "Departments" view object member of this AM
          ViewObject departments = _am.findViewObject("Departments");
          // Create a new row in this view object.
          Row newDept = departments.createRow();
          // Populate the attributes from the parameter arguments.
          newDept.setAttribute("Deptno", new Number(id));
          newDept.setAttribute("Dname", name);
          newDept.setAttribute("Loc", loc);
          // Add the new row to the view object's default rowset
          departments.insertRow(newDept);
          // Post all changes in the AM, but we don't commit them. The EJB
          // container managed transaction handles the commit.
          _am.getTransaction().postChanges();
        catch(JboException ex) {
          // To be good EJB Container-Managed Transaction "citizens" we have
          // to mark the transaction as needing a rollback if there are problems
          _ctx.setRollbackOnly();
          throw new AppException("Error creating dept "+ id +\n"+ex.getMessage());
        finally {
          try {
            // Disconnect the AM from the datasource we're using
            _am.getTransaction().disconnect();
          catch(Exception ex) { /* Ignore */ }
      private void registerContainerManagedTransactionHandlerFactory() {
        SessionImpl session = (SessionImpl)_am.getSession();
        session.setTransactionHandlerFactory(
          new TransactionHandlerFactory() {
            public TransactionHandler createTransactionHandler() {
              return new ContainerManagedTxnHandlerImpl();
            public JTATransactionHandler createJTATransactionHandler() {
              return new ContainerManagedTxnHandlerImpl();

    Hi Steve, It4s me again;
    About the question I made, I tried with a single assembly-descriptor tag and a single container-transaction tag in the deployment descriptor of the session bean and these were the results.
    java.lang.NullPointerException
         void com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(java.lang.Throwable)
         java.lang.Object com.evermind.server.rmi.RMIConnection.invokeMethod(com.evermind.server.rmi.RMIContext, long, long, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         void __Proxy1.modificaEnvoltura(java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.String)
         void SamplemdeController.envolturaControlEJBClient.main(java.lang.String[])
    Then I tried with multiple assembly-descriptor tags each with a single container-transaction tag and the results were:
    java.lang.NullPointerException
         void com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(java.lang.Throwable)
         java.lang.Object com.evermind.server.rmi.RMIConnection.invokeMethod(com.evermind.server.rmi.RMIContext, long, long, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         void __Proxy1.modificaEnvoltura(java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.String)
         void SamplemdeController.envolturaControlEJBClient.main(java.lang.String[])
    Finally I tried with a single assembly-descriptor and multiple container tags and the results were:
    java.lang.NullPointerException
         void com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(java.lang.Throwable)
         java.lang.Object com.evermind.server.rmi.RMIConnection.invokeMethod(com.evermind.server.rmi.RMIContext, long, long, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         void __Proxy1.modificaEnvoltura(java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.String)
         void SamplemdeController.envolturaControlEJBClient.main(java.lang.String[])
    How can I make my Stateless Session bean work out?

  • Can Oracle SQL Flavor be used When BC4J is deployed in WebLogic as EJB?

    Hi,
    Does anybodys know if Oracle SQL Flavor can be used When BC4J is deployed in WebLogic as EJB?
    We succeeded in deploying BC4J to WebLogic 7.0 & 6.0, but we had to select the SQL92 option for SQL Flavor when the first BC package is created in a project. Selecting Oracle option for SQL Flavor will cause EJB to fail, and client get a ClassCastException.
    We still want to use Oracle SQL, is it possible to use it with WebLogic?
    Thanks.

    We figured out that Oracle SQL Flavor can be used with WebLogic, but only with DB connections created from JDBC URL, not work with DB connections from WebLogic connection pool.

  • Free sample work

    Hi, I'm looking for sites of good (free) sample work of
    Captivate tutorials. I'm not interested in simulations so much as
    just some neat ideas for animations etc. for displaying text.
    Thanks!

    I started by using the demos that come with captivate. They
    provide a lot of ideas. Just click the links on the right side of
    the opening screen.
    Also, go to the web site
    http://www.adobe.com/products/captivate/
    and scroll down to see the examples there. Once you are on the web
    page, look to the links at the right side and use the developer
    center, tutorials etc. to find ideas.

  • BC4J pooling sample

    Hi, I am trying to get an application module from the Web context (without using data bindings). Searching through this forum I found the following message:
    " An alternative approach that would provide tighter integration with the web container is to use the HttpContainer to acquire a SessionCookie and to then use that SessionCookie to acquire/release an AM. This approach is documented in the BC4J pooling sample that should be available here on OTN. "
    Does anyone knows where I can find that document ?
    Thanks in advance.

    If you download the 9.0.4 JDeveloper release from:
    http://www.oracle.com/technology/software/products/jdev/index.html
    the sample is included in there in the ./BC4J/samples/Pooling directory.

  • EJB Hotel Sample Application - error running client

    Hi
    I am trying to run the GUI client interface in the EJB Hotel Enquiry and Reservation Application (using a single EJB). I have deployed the EJB jar file and had no errors but when I run the GUI client I get the following error whilst trying to read the list of hotels:
    Error while invoking EJB procedure :RemoteException :
    com.evermind.server.rmi.OrionRemoteException: Invocation error: java.lang.NoSuchMethodException; nested exception is:
    java.lang.NoSuchMethodException
    Could anyone please suggest where to start looking ?
    TIA
    Trevor

    Hi,
    I am able to run this sample successfully. Can you try bouncing OC4J and then run the client application again ? Let me ]
    know if that works.
    Cheers,
    --Rajesh                                                                                                                                                                                                                                                                                                                                                   

  • OAS hotel sample, oneEJBHotel

    I have been trying very hard to set up the OAS Sample Hotel Servlet (oneEJBHotel). I didn't have any luck. I get the following error when invoking the servlet through the browser:
    "A Servlet Error Occurred
    An unexpected error occured attempting to run this servlet.
    The most likely explanation is a problem with the servlet code.
    Please check the server log for a detailed message"
    I got the left pane (logo) and the bottom pane (buttons) right. The right pane always shows me the error shown above. It seems like it is not able to establish the connection with the EJB.
    Any advice appreciated.
    null

    Are you sure you EJB is working properly? That was my main problem, to get the EJB up and running. While deploying the EJB to OAS the wizard couldn't find the _client.jar, while it was present, but not at the location the wizard was looking. I think one of the settings of our OAS was wrong, but didn't have the time to find out what. So check out your EJB-deployment and make sure it's correct, otherwise the servlet will never be able to connect and might produce a servlet error.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Deploying BC4J JSP app to 9iAS (via EJB?)

    Hello. Please help a newbie (new to Java, JDev, JSP, and 9iAS R2).
    I've just built my first BC4J JSP app in JDev, and I've even setup a remote DCM connection to my 9iAS R2 server.
    1. JDev release notes say that BC4J deployment from JDev to 9iAS R2 is not supported. Confusing. What is the best way to deploy this app?
    2. I've created an EJB .ear file in JDev 9.0.3 and deployed it using the EM from OC4J_home. It seemed to deploy okay, but I don't know how to find it via an http path (I know, sounds dumb). Do I need to include a port number? Do I still point to my JSP page, or do I point to a servlet? What would a sample path look like?
    3. Can you recommend a good book, something like "Oracle 9iAS and JSP Apps for Dummies?"
    Thanks in advance.
    -Tony.

    Hello - I've just asked one of the BC4J team to take a look at your questions, so please keep a lookout for a response.
    I am not super familiar with BC4J, but since it's deployed as a J2EE application it should work in the following way:
    When you deploy an EAR file which contains a Web application module, you have to tell the server what URL pattern it should use to know when to send the request to the Web application. The deployment screens in OEM prompt you to enter these URLs when the deployment is done.
    Once the deployment is complete (and assuming that you've not modified the HTTP server port) you should then be able to access the application using
    http://<server-host>:7777/<url>
    where <url> is the pattern you entered for the Web application during the deployment process.
    cheers
    -steve-

  • CORBA-EJB

    Hi,
    I want to develop connectivity between CORBA and EJB in both directions.Where could I find the procedures/sample codes for the same ? I'am using J2EEServer for EJB and ORB from Sun(jdk1.3) for CORBA.
    In the process of trying to connect from CORBA to EJB, I could successfully generate the IDL file and the client-side usage bindings needed by a CORBA client(Holder,Helper etc classes) for the EJB.However,I'am getting errors while compiling these Java files.
    Thanks in advance
    Kavitha

    Even I am getting errors compiling the Java code. Did you solve this problem ? If so, how ? I appreciate your help.

  • Corba/Ejb, Please help

    Hi,
    Could you tell me what is the main benefit of communication between Ejbs and Corba interfaces except transactions, if I use Java on Corba side also. Is it so good from the view of performance or something? If I suggest such a structure that connecting only to a corba side or only to a ejb side, does not it work nearly the same?
    I am confused about the design strategy...
    Best regards
    jg

    Comments inline...
    jg wrote:
    Hi,
    Could you tell me what is the main benefit of communication between Ejbs and Corba interfaces except transactions, if I use Java on Corba side also.I'm not sure that it is possible, unless you do some extremely brittle things with the classes that are loaded. The interface from java-idl to an EJB is totally busted, as far as I can tell.
    Is it so good from the view of performance or something?Functionality is the only benefit, performance is not the objective.
    If I suggest such a structure that connecting only to a corba side or only to a ejb side, does not it work nearly the same?If I understand the question, you are wondering if it is possible to start from either IDL interfaces or EJB interfaces? The answer is that you must choose one or the other. If you choose IDL interfaces, consider WLE. If you Choose EJB interfaces, consider WLS.
    >
    >
    I am confused about the design strategy...
    Best regards
    jg

  • App No Longer Works After Creating EJB Session Bean

    I am using EJB3.0 and using JDEV 11g, PS1. I have used EJB to create my entities from tables and then i created my ejb diagram. After doing that my application (i have a jspx page) that runs fine. Once I create my session bean, I am no longer able to run my application. After creating my session bean I get the following error when I run the application (i.e. not at build/compile time).
    <Feb 12, 2010 3:28:57 PM PST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1266017332257' for task '5'. Error is: 'java.lang.ClassNotFoundException: javax.faces.webapp.ConverterELTag'
    java.lang.ClassNotFoundException: javax.faces.webapp.ConverterELTag
    If i delete the sessionejb.java, ejbbean.java, and the ejblocal.java files, I am able to run my application again. Am I missing something or is this a bug?
    Thanks.

    Did you solved the problemn? I'm getting this, when I try run my App doesn't work, but if I deploy to WLS Integrated and go to URL it's work...

  • BC4J RowImpl not working correctly in UIX

    Hello
    I have customized the wizard generated RowImplementation of a view object by doing some customizing on the current selected row; i set the value of a attribute in dependancy of another value via this way.
    It works correctly in the BC4J Tester. But when i insert a record in uix the dependent value is not determined.
    Why does the behaviour differ from the bc4j tester. Has anybody a hint how to solve the problem!
    Carsten

    What conditions trigger your code to be executed? Have you tried putting in debugging code (or actually debugging) to see if your code is called?

  • Are Oracle Java Serlet and JSP samples working in Oracle9i?

    Oracle web site provides many good Servlet and JSP samples. All
    the instructions talk about Oracle8i. Does anybody know for sure
    they are working under Oracle9i or not?
    Thanks!
    H.

    OTN has sample applications that demonstrate a range of JSP techniques, from basic to advanced. OTN provides two versions of the samples: one version is built to the Servlet 2.0 specification and runs under Oracle9iAS-JServ or JDeveloper, the other verion is built to the Servlet 2.2 specification and runs under the Oracle Servlet Engine (OSE) built into the Oracle8i database or the mod_ose module of Oracle9iAS.
    Regards,
    -rh

  • JasperReports not working in EAR/EJB/JSF application

    Hi,
    When trying to compile a report using JasperReports, I get this exception. I have an EAR application, pdf generation happens in an EJB module, called by a WAR (Glassfish 3, JSF 2).
    Any clue?
    org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'jar:file:/C:/Users/Yannick%2520Majoros/dev/GestempsEE/dist/gfdeploy/GestempsEE/lib/jasperreports-3.7.0.jar!/net/sf/jasperreports/engine/dtds/jasperreport.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:2541)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:2528)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:1825)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:531)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.java:766)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:550)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2408)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1753)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:685)
    at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:767)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3095)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:922)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    at org.apache.commons.digester.Digester.parse(Digester.java:1647)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:235)
    ... 73 more

    I did as you said:
    Sanity Test:-
    java -classpath .;MyEJB.jar LoadTest
    java.lang.ClassNotFoundException: com.myexample.IXMLSerializer
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at LoadTest.main(LoadTest.java:5)
    Now if I run the same command as follows
    java -classpath MyEJB.jar;.;dep1.jar LoadTest
    it works (including the dep1.jar in classpath)
    com.myexample.IXMLSerializer
    MyEJB.jar has the following structure:
    |
    &#9492;&#9472;&#9472;&#9472;META-INF\Manifest.mf
    Manifest-Version: 1.0
    Class-Path: dep1.jar
    dep1.jar is found in the same directory where I executed the sanity test command (since I unpacked the ear file)

Maybe you are looking for