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

Similar Messages

  • 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                                                                                                                                                                                                                                                                                                                                                   

  • Oracle sample: EJB Hotel --- is it runable?

    oracle offers four EJB hotel example code, which one is runable?

    All the EJB Hotel Samples are runnable. These show different ways of building the same system using EJBs.
    a. OneEJBHotelSample shows how a single session bean can be used to build the system
    b. ThreeEJBHotel shows shows how the same system can be built using session and entity beans
    c. AQHotel shows how to use Advance Queing with EJBS for building the same system
    Once again, all the samples are runnable. If you have any questions, please post it in the OTN Sample code discussion
    forum.
    Cheers !
    --Rajesh
    oracle offers four EJB hotel example code, which one is runable?

  • 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

  • EJB & CORBA Samples

    The URL is: http://technet.oracle.com/tech/java/ejb_corba/index2.htm?Code&files/hotel/hotelHome.htm
    These samples implement a Hotel Reservation Application four different ways: two designs use EJB components and two designs use CORBA components. Compare the source code.
    There are four samples: EJB, CORBA, AQ, and Java Stored Procedures. They have been available for awhile, but I'm posting here to remind people, and to start a thread for a discussion.
    -rh
    null

    Here are some questions from Vadim Katz and answers from the OTN developers who built the AQ Hotel sample app:
    I was able to compile the whole projects but only after doing the following:
    1) Adding JBO 8i Client library which contains
    javax.jts.UserTransaction. This is not mentioned in the example guide
    and UserTransaction is not a part of Sun's javax.jts packageThe AQ EJB/CORBA Sample was developed using JDeveloper 2.0. In JDeveloper 2.0, the CORBA library contains aurora_client.jar, and aurora_client.jar contains classes like javax.jtx.UserTransaction, etc.
    JDeveloper 3.1does not include the CORBA library by default, and that is why you need to add JBO 8i Client, etc.
    > 2) I also had to compile HotelSystemSQLJ.sqlj file to get .class file;
    > otherwise, during global project rebuilt I was only getting .ser file.
    > Missing .class file was causing compilation errors.
    JDeveloper requires you to first compile HotelSystemSQLJ.sqlj and HotelSQLJ.sqlj separately. These steps are
    mentioned in the README.txt.
    3) FINALLY, A BIG QUESTION. Why does travel8i.dmp modify SYSTEM TABLES
    and because of that user "travel" is required to have SYS priveledges???The Sample requires a TRAVEL user with Sample Travel Data. We could have asked the user to create a separate tablespace and import travel8i.dmp into it, but that would increase the installation steps. For
    simplicity, we create the TRAVEL user in the SYSTEM tablespace.
    When you want to delete example data, simply drop the "TRAVEL" user.
    The AQ Sample needs access to DBMS_AQADM and DBMS_AQ packages which are present in SYS user.
    I hope this helps,
    -rh

  • Beginner Question - Help Needed for EJB QL Sample Application

    I'm working with a group of student interns, like myself, and we've been given an assignment to work with Oracle. All of us have no training or experience with this, so we're just learning as we go.
    I've been trying to run the EJB QL Sample Application (http://www.oracle.com/technology/sample_code/tech/java/ejb_corba/ejbql/Install.html), but I keep running into problems at step 3.
    Now, we will deploy the sample application onto OC4J. Open another command prompt and go to the folder <OC4J_HOME>/j2ee/home and run the following commands one-by-one
    > java -jar admin.jar ormi://<machine_name>:<admin_port> admin <admin_pwd> -deploy -file <SAMPLE_HOME>/build/ejbql.ear -deploymentName Ejbql
    > java -jar admin.jar ormi://<machine_name>:<admin_port> admin <admin_pwd> -bindWebApp Ejbql ejbql-war http-web-site /ejbql
    where,
    <machine_name>      Name of the machine where OC4J Server is running
    <admin_port>      Admin Port on which the OC4J server listens. This value by default is 23791 unless explicitly changed by the user
    <admin_pwd>      Adminstrator password to access OC4J. The default value is welcome
    When I do this step I get this error:
    Error: Unable to find java:comp/ServerAdministrator: Lookup error: javax.naming.
    AuthenticationException: Invalid username/password for default (sds); nested exc
    eption is:
    javax.naming.AuthenticationException: Invalid username/password for defa
    ult (sds)
    com.evermind.client.orion.AdminCommandException: Unable to find java:comp/Server
    Administrator: Lookup error: javax.naming.AuthenticationException: Invalid usern
    ame/password for default (sds); nested exception is:
    javax.naming.AuthenticationException: Invalid username/password for defa
    ult (sds)
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
    nsole.java:105)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
    :27)
    javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException
    : Invalid username/password for default (sds); nested exception is:
    javax.naming.AuthenticationException: Invalid username/password for defa
    ult (sds) [Root exception is javax.naming.AuthenticationException: Invalid usern
    ame/password for default (sds)]
    at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:153)
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
    nsole.java:102)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
    :27)
    Caused by: javax.naming.AuthenticationException: Invalid username/password for d
    efault (sds)
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2410
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2226
    at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1692)
    at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:727)
    at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:134)
    ... 2 more
    ---- Embedded exception
    javax.naming.AuthenticationException: Invalid username/password for default (sds
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2410
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2226
    at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1692)
    at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:727)
    at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:134)
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
    nsole.java:102)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
    :27)
    Any suggestions to fix this error?
    Thanks in advance for any help.

    George,
    The Readme.html file is available with the ejbqlsample.jar downloadable (Extract and find the doc in Ejbql\docs\Readme.html) which is printable.
    Or,
    If you are trying to print the file directly from OTN site, you need to set the Page-Setup Orientation to 'Landscape'.
    Hope this helps.
    Regards
    Pushkala

  • EJB Hotel Update for EJB1.1

    It would be real nice for OTN to post a complete update for the EJB Hotel Application updated for Oracle 8.1.7 and EJB 1.1 specs with XML deployment descriptors and all.
    Thanks

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by MM:
    It would be real nice for OTN to post a complete update for the EJB Hotel Application updated for Oracle 8.1.7 and EJB 1.1 specs with XML deployment descriptors and all.
    Thanks<HR></BLOCKQUOTE>
    Thanks for the request. I'll pass it along. The team has several projects slated already, so no promises right now.
    Regards,
    -rh
    null

  • 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • [b]EJB Hotel RA Client Error - HELP[/b]

    1. Travel schema installed fine
    2. Web Client can successfully be run and all the buttons
    work fine
    3. The only file I modified was in config properties.
    Provider_Url = ormi://localhost:8888/OneEJBHotel
    4. in oc4j directory: principals file:
    user id is "admin", and password was given as
    "admin"
    4. deployment from jdeveloper is fine as follows:
    ---- Deployment started. ---- Jan 24, 2003 6:24:08 PM
    Wrote EJB JAR file to C:\oc4j\samples\ejb\OneEJBHotel\src\oracle\otnsamples\OneEJBHotel\OneEJBHotel.jar
    Wrote WAR file to C:\oc4j\samples\ejb\OneEJBHotel\src\oracle\otnsamples\OneEJBHotel\OneEJBHotel-Web.war
    Wrote EAR file to C:\oc4j\samples\ejb\OneEJBHotel\src\oracle\otnsamples\OneEJBHotel\OneEJBHotel-Web.ear
    Invoking OC4J admin tool...
    C:\jdeveloper\jdk\jre\bin\javaw.exe -jar C:\jdeveloper\j2ee\home\admin.jar ormi://DLEE/ admin **** -deploy -file C:\oc4j\samples\ejb\OneEJBHotel\src\oracle\otnsamples\OneEJBHotel\OneEJBHotel-Web.ear -deploymentName OneEJBHotel
    Auto-unpacking C:\oc4j\j2ee\home\applications\OneEJBHotel-Web.ear... done.
    Auto-unpacking C:\oc4j\j2ee\home\applications\OneEJBHotel-Web\OneEJBHotel-Web.war... done.
    Copying default deployment descriptor from archive at C:\oc4j\j2ee\home\applications\OneEJBHotel-Web/META-INF/orion-application.xml to deployment directory C:\oc4j\j2ee\home\application-deployments\OneEJBHotel...
    Auto-deploying OneEJBHotel (New server version detected)...
    Exit status of OC4J admin tool (-deploy): 0
    C:\jdeveloper\jdk\jre\bin\javaw.exe -jar C:\jdeveloper\j2ee\home\admin.jar ormi://DLEE/ admin **** -bindWebApp OneEJBHotel OneEJBHotel-Web http-web-site /OneEJBHotel
    Exit status of OC4J admin tool (-bindWebApp): 0
    Use the following context root(s) to test your web application(s):
    http://DLEE:8888/OneEJBHotel
    Elapsed time for deployment: 14 seconds
    ---- Deployment finished. ---- Jan 24, 2003 6:24:22 PM
    5. System Configuation
    jdeveloper: 9.0.3.1035
    DB: oracle 92010
    oc4j: 9.0.3.0.0
    6. When run from jdeveloper client: run Client.jpr
    the following errors were generated:
    Process exited with exit code 0.
    C:\jdeveloper\jdk\bin\javaw.exe -ojvm -classpath C:\oc4j\samples\ejb\OneEJBHotel\src\classes;C:\oc4j\samples\ejb\OneEJBHotel\config;C:\oc4j\samples\ejb\OneEJBHotel;C:\oc4j\samples\ejb\OneEJBHotel\src\web;C:\jdeveloper\jdev\lib\jdev-rt.jar;C:\jdeveloper\j2ee\home\lib\activation.jar;C:\jdeveloper\j2ee\home\lib\ejb.jar;C:\jdeveloper\j2ee\home\lib\jaas.jar;C:\jdeveloper\j2ee\home\lib\jaxp.jar;C:\jdeveloper\j2ee\home\lib\jcert.jar;C:\jdeveloper\j2ee\home\lib\jdbc.jar;C:\jdeveloper\j2ee\home\lib\jms.jar;C:\jdeveloper\j2ee\home\lib\jndi.jar;C:\jdeveloper\j2ee\home\lib\jnet.jar;C:\jdeveloper\j2ee\home\lib\jsse.jar;C:\jdeveloper\j2ee\home\lib\jta.jar;C:\jdeveloper\j2ee\home\lib\mail.jar;C:\jdeveloper\j2ee\home\oc4j.jar oracle.otnsamples.OneEJBHotel.client.EJBHotelSample
    javax.naming.NamingException: Lookup error: java.io.IOException: Server protocol was not ORMI, if uncertain about the port your server uses for ORMI then use the default, 23791; nested exception is:
         java.io.IOException: Server protocol was not ORMI, if uncertain about the port your server uses for ORMI then use the default, 23791
         java.lang.Object com.evermind.server.rmi.RMIContext.lookup(java.lang.String)
              RMIContext.java:134
         java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
              InitialContext.java:350
         void oracle.otnsamples.OneEJBHotel.client.EJBHotelSample.getHotelSystemBean()
              EJBHotelSample.java:132
         void oracle.otnsamples.OneEJBHotel.client.EJBHotelSample.main(java.lang.String[])
              EJBHotelSample.java:147
    Process exited with exit code 0.
    Thanks for help!
    David

    David,
    config.properties is used only by the client.jpr. Not by the Web.jpr
    config.properties file has been provided for looking up resources[EJB, Datasources] from JNDI tree of OC4J.
    Since servlet and other resources are in the same container[Single JVM] there is no need to specify the username, password, Provdier_URL at the time of lookup.
    Look at the init method of EJBHotelServlet.java :
    Context ctx = new InitialContext();
    // Acquire the home interface handle and call the create
    //method on it
    homeInterface = (HotelSystemHome)ctx.lookup("OneEJBHotel");
    Here servlet looks up EJB without any authentication information, as servlet and EJB are in the same container.
    Whereas Stand alone client is running outside the OC4J.
    So the stand alone client need to authentcate itself for looking up the resources from JNDI tree.
    Look at the getHotelSystemBean method of EJBHotelSample.java :
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, prop.getProperty("Initial_Context_Factory"));
    env.put(Context.SECURITY_PRINCIPAL, prop.getProperty("Principal"));
    env.put(Context.SECURITY_CREDENTIALS, prop.getProperty("Credential"));
    env.put(Context.PROVIDER_URL, prop.getProperty("Provider_Url") );
    // Associate the properties with the context
    Context ctx = new InitialContext(env);
    // Acquire the home interface handle and call the create
    //method on it
    homeInterface = (HotelSystemHome)ctx.lookup("OneEJBHotel");
    Here stand alone client looks up EJB by specifying the authentication information, as stand alone client and EJB are running in different JVM's.
    Hope this helps...
    Cheers
    --Venky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • EJB QL Sample errors in deploying

    I get following error when deploying ear file in oc4j10g. =>
    D:\oc4j10g\j2ee\home>java -jar admin.jar ormi://localhost:23791 admin welcome -d
    eploy -file d:\myj2ee\oc4jsamples\accounts\ejbql\build\ejbql.ear -deploymentName
    Ejbql
    Error: Deploy error: deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-mod
    ule, Exception: Missing method-params in query-method; see page 478 in ejb 2.0 s
    pec
    com.evermind.client.orion.AdminCommandException: Deploy error: deploy failed!: ;
    nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-mod
    ule, Exception: Missing method-params in query-method; see page 478 in ejb 2.0 s
    pec
    at com.evermind.client.orion.DeployCommand.execute(DeployCommand.java:95
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
    nsole.java:117)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
    :26)
    java.rmi.RemoteException: deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-mod
    ule, Exception: Missing method-params in query-method; see page 478 in ejb 2.0 s
    pec
    at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_R
    EMOTE_SERVER(RMIConnection.java:1504)
    at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java
    :1456)
    at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocati
    onHandler.java:55)
    at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(Rec
    overableRemoteInvocationHandler.java:22)
    at __Proxy0.deploy(Unknown Source)
    at com.evermind.client.orion.DeployCommand.execute(DeployCommand.java:92
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
    nsole.java:117)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
    :26)
    Caused by: oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-
    module, Exception: Missing method-params in query-method; see page 478 in ejb 2.
    0 spec
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:94)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.internalDeploy(DefaultApplicationServerAdministrator.java:378)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.deploy(DefaultApplicationServerAdministrator.java:278)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:140)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:54)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:199)
    at java.lang.Thread.run(Thread.java:534)
    ---- Embedded exception
    oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module, Exc
    eption: Missing method-params in query-method; see page 478 in ejb 2.0 spec
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:94)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.internalDeploy(DefaultApplicationServerAdministrator.java:378)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.deploy(DefaultApplicationServerAdministrator.java:278)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:140)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:54)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:199)
    at java.lang.Thread.run(Thread.java:534)
    ---- Embedded exception
    java.lang.InstantiationException: Error initializing ejb-module, Exception: Miss
    ing method-params in query-method; see page 478 in ejb 2.0 spec
    at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:1792)
    at com.evermind.server.Application.postInit(Application.java:635)
    at com.evermind.server.Application.setConfig(Application.java:206)
    at com.evermind.server.ApplicationServer.addApplication(ApplicationServe
    r.java:1654)
    at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(Applica
    tionDeployer.java:414)
    at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDe
    ployer.java:132)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:76)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.internalDeploy(DefaultApplicationServerAdministrator.java:378)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.deploy(DefaultApplicationServerAdministrator.java:278)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:140)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:54)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:199)
    at java.lang.Thread.run(Thread.java:534)
    ---- Embedded exception
    java.lang.InstantiationException: Error initializing ejb-module, Exception: Miss
    ing method-params in query-method; see page 478 in ejb 2.0 spec
    at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:1792)
    at com.evermind.server.Application.postInit(Application.java:635)
    at com.evermind.server.Application.setConfig(Application.java:206)
    at com.evermind.server.ApplicationServer.addApplication(ApplicationServe
    r.java:1654)
    at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(Applica
    tionDeployer.java:414)
    at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDe
    ployer.java:132)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:76)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.internalDeploy(DefaultApplicationServerAdministrator.java:378)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.deploy(DefaultApplicationServerAdministrator.java:278)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:140)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:54)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:199)
    at java.lang.Thread.run(Thread.java:534)
    D:\oc4j10g\j2ee\home>

    Hello Ravi,
    The EJB 2.0 specification has made it mandatory to have <method-params> tag within the ejb-jar.xml. Due to the absence of this tag, you are getting the error...
    Please modify ejb-jar.xml and add an empty <method-params></method-params> tag for the findByAllAccounts and ejbSelectByTopAccounts methods. For example,
    <query>
    <description>This query retrieves all the accounts</description>
    <query-method>
    <method-name>findByAllAccounts</method-name>
    <method-params></method-params>
    </query-method>
    <ejb-ql>select distinct object(ua) from UserAccount ua</ejb-ql>
    </query>
    Notice the empty <method-params> tag added. Please do the same for the ejbSelectByTopAccounts method.
    Another thing to be changed is the jsp:usebean tag in index.jsp and DisplayAccounts.jsp. In the mentioned files, replace jsp:usebean with jsp:useBean. Please notice the capital 'B'. JDK 1.4 has made this mandatory.
    Futher more, as you would be aware, 10G onwards, the CMP beans accesses the database tables through the Toplink. Toplink is the default persistence manager now. To use the orion-ejb-jar.xml, please start the OC4J with the following command
    java -Ddefault.cmp.pm=native_cmp -jar oc4j.jar
    I would like to point out that the sample works fine in OC4J 904 developers preview without any of the above mentioned changes. The sample application has been certified in that version.
    Thanks for pointing this problem out. We are making the necessary changes in the sample and the updated jar will be uploaded on OTN shortly.
    Hope this helps,
    Rajat

  • Exceptions in deploying ThreeEJB Hotel sample

    When I use JDeveloper to deploy ThreeEJBHotel to "Connection" I
    encounter the following exceptions. I am looking for
    suggestions from other developers or Oracle tech support.
    The OS is Windows 2000 advanced server.
    Thank you very much.
    Beginning deployment to Oracle9i Application Server...
    Wrote EJB .jar file to
    D:\ORACLE_HOME\j2ee\home\applications\ThreeEJBHotel\src\oracle\ot
    nsamples\ThreeEJBHotel\ThreeEJBHotel-ejb.jar
    D:\oracle\ora81\jdev\jdk1.3\jre\bin\javaw.exe -jar
    D:\oracle\ora81\jdev\lib\admin.jar ormi://IL92-4088/ admin **** -
    deploy -file
    D:\ORACLE_HOME\j2ee\home\applications\ThreeEJBHotel\src\oracle\ot
    nsamples\ThreeEJBHotel\ThreeEJBHotel.ear -deploymentName
    ThreeEJBHotel
    Wrote EJB .ear file to
    D:\ORACLE_HOME\j2ee\home\applications\ThreeEJBHotel\src\oracle\ot
    nsamples\ThreeEJBHotel\ThreeEJBHotel.ear
    Invoking Oracle9iAS admin tool...
    Auto-unpacking
    D:\ORACLE_HOME\j2ee\home\applications\_ThreeEJBHotel.ear... done.
    Auto-deploying ThreeEJBHotel (Assembly had been updated)...
    java.lang.InstantiationException: Unknown entity subtag: primary-
    field
         at
    com.evermind.server.ejb.deployment.EntityBeanDescriptor.<init>
    (EntityBeanDescriptor.java:108)
         at
    com.evermind.server.ejb.deployment.EJBPackage.parseEnterpriseBean
    s(EJBPackage.java:475)
         at
    com.evermind.server.ejb.deployment.EJBPackage.parseMainNode
    (EJBPackage.java:369)
         at com.evermind.xml.XMLConfig.parseRootNode
    (XMLConfig.java:256)
         at com.evermind.xml.XMLConfig.init(XMLConfig.java:142)
         at com.evermind.server.ServerComponent.init
    (ServerComponent.java:178)
         at
    com.evermind.server.ejb.EJBPackageDeployment.getPackage
    (EJBPackageDeployment.java:534)
         at
    com.evermind.server.administration.ServerApplicationInstallation.
    finish(ServerApplicationInstallation.java:397)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.evermind.server.rmi.RMICallHandler.run
    (RMICallHandler.java:66)
         at com.evermind.util.ThreadPoolThread.run
    (ThreadPoolThread.java:62)
    Exit status of Oracle9iAS admin tool: 0
    ---- Deployment finished. ----

    Hi Allen,
    I assume you have followed the steps given in the readme.html
    file, like creating EJBs in the first project, then creating a
    web.jpr for the client and so on. In the course of this, you
    would also have created an app server connection, where you would
    have mentioned the host of your OC4J server, username, password
    etc. After that you would have created a deployment profile for
    the EJB, where you would have mentioned the EAR and EJB-Jar
    file.Then you would have right clicked on the deployment profile
    and clicked deploy. Just to reiterate the steps. Can you clearly
    say at what point you get this exception?
    Cheers
    --Rajesh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Exception when trying to run OneEJBHotelSample

    I get the following exception when trying to run the one ejb hotel sample,
    any clues as to what is wrong??
    java.lang.IncompatibleClassChangeError: Unimplemented interface method
    at javax.naming.spi.NamingManager.getURLObject(Compiled Code)
    at javax.naming.spi.NamingManager.getURLContext(Compiled Code)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(Compiled Code)
    at javax.naming.InitialContext.lookup(Compiled Code)
    at client.JavaGUIClient.EJBHotelSample.getHotelSystemBean(Compiled Code)
    at client.JavaGUIClient.EJBHotelSample.main(Compiled Code)
    null

    Hello,
    Like you said it was the problem with url.
    The webservice I used is actually running on the local machine (where the NetWeaver developer studio is installed); so in the url I had specified localhost. But I deployed the application on another server(SAP J2EE Engine). That is why it didn't work. On changing the url as required, the application is working fine.
    Thanks !
    Regards,
    Loveline.

  • Hotel AQ sample code error

    Have downloaded the Hotel reservation AQ sample code from OTN with 9.0.1.3 database, OC4J 903 and JDK 1.3. Everything deploys correctly, and when I open the AQEJBHOTELSAMPLE frameset page, I can see the hotel lists. However, when I try to click on either theb 'Hotel Details' or 'Room Availability' tabs, I get the following error in the OC4J journal (ORA-25228). According to the RequestAQHandler and ServiceAQHandler classes, the 'first_message' dequeue option is correctly set (this was a previous noted error in this area). Could someone please tell me what they think could be the problem here ? :-
    D:\OC4J-13\j2ee\home>java -jar D:\OC4J-13\j2ee\home\oc4j.jar -config D:\OC4J-13\j2ee\home\co
    nfig\server.xml -verbosity 10
    Application default (default) initialized...
    Binding EJB EJB Reservation System - The oracle.otnsamples.AQEJBHotelSample.ejb.Hotel sessio
    n bean to Hotel...
    Binding EJB EJB Reservation System - The oracle.otnsamples.AQEJBHotelSample.ejb.HotelSystem
    session bean to HotelSystem...
    Application AQEJBHotelSample (Hotel Reservation System - AQEJB Sample) initialized...
    Web-App default:defaultWebApp (0.0.0.0/0.0.0.0:8888) started...
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    Web-App AQEJBHotelSample:AQEJBHote[i]Long postings are being truncated to ~1 kB at this time.

    Have downloaded the Hotel reservation AQ sample code from OTN with 9.0.1.3 database, OC4J 903 and JDK 1.3. Everything deploys correctly, and when I open the AQEJBHOTELSAMPLE frameset page, I can see the hotel lists. However, when I try to click on either theb 'Hotel Details' or 'Room Availability' tabs, I get the following error in the OC4J journal (ORA-25228). According to the RequestAQHandler and ServiceAQHandler classes, the 'first_message' dequeue option is correctly set (this was a previous noted error in this area). Could someone please tell me what they think could be the problem here ? :-
    D:\OC4J-13\j2ee\home>java -jar D:\OC4J-13\j2ee\home\oc4j.jar -config D:\OC4J-13\j2ee\home\co
    nfig\server.xml -verbosity 10
    Application default (default) initialized...
    Binding EJB EJB Reservation System - The oracle.otnsamples.AQEJBHotelSample.ejb.Hotel sessio
    n bean to Hotel...
    Binding EJB EJB Reservation System - The oracle.otnsamples.AQEJBHotelSample.ejb.HotelSystem
    session bean to HotelSystem...
    Application AQEJBHotelSample (Hotel Reservation System - AQEJB Sample) initialized...
    Web-App default:defaultWebApp (0.0.0.0/0.0.0.0:8888) started...
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    Web-App AQEJBHotelSample:AQEJBHote[i]Long postings are being truncated to ~1 kB at this time.

  • JDeveloper 2.0 EJB Samples

    I am trying to run the AcmeVideo (EJB & Servlet) sample that came
    with JDeveloper2.0. Using Oracle8i, Java Web Server and IE4.
    Followed everything in the documentation from creating the
    database up to deploying the fiels to the web server. But when I
    was running it through the browser (using
    http://<servername>/acmevideo.html) this is the error that comes
    out...
    Not Found (404)
    The file that you requested could not be found....
    Again, I followed the documentation to the smallest detail. And
    another thing couldn't find the acmevideo.html anywhere, not even
    in the compressed files.
    I would very much appreciate a reply, thanks in advance.
    null

    I am trying to run the AcmeVideo (EJB & Servlet) sample that came
    with JDeveloper2.0. Using Oracle8i, Java Web Server and IE4.
    Followed everything in the documentation from creating the
    database up to deploying the fiels to the web server. But when I
    was running it through the browser (using
    http://<servername>/acmevideo.html) this is the error that comes
    out...
    Not Found (404)
    The file that you requested could not be found....
    Again, I followed the documentation to the smallest detail. And
    another thing couldn't find the acmevideo.html anywhere, not even
    in the compressed files.
    I would very much appreciate a reply, thanks in advance.
    null

  • EJB Timer problem

    Hi all, I'm trying to run the J2EE Tutorial EJB Timer sample, but I keep getting an exception:
    Errors while obtaining information about the database. Got the following exception:
    java.sql.SQLException: Error in allocating a connection. Cause:
    Connection could not be allocated because: Connection does not exist.
    com.sun.jdo.api.persistence.support.JDOFatalInternalException:
    JDO76519: Failed to identify vendor type for the data store.
    NestedException: java.sql.SQLException: Error in allocating a connection.
    Cause: Connection could not be allocated because: Connection does not exist. .The tutorial says that I should start the PointBase database first, and I did; but there seems to be something missing, like the server is trying to lookup some datasource and it can't find it.
    Any ideas?

    Hi ,,
        Go THru this article, sure it helps .
    http://www.oracle.com/technology/sample_code/tutorials/fbs10g/fbs10gtoc.htm
    Reg
      VArun CN

Maybe you are looking for

  • Mass creation of Material Master Records

    Hi all, I have to create 50.000 materials the first time and then, once a month, I have to manage the update of 50/100 materials. What do you suggest ? Direct input the first time and Idoc (Matmas) to manage the updating? Thanks in advance Bye

  • Zen Touch: Same unsolvable button prob

    The player has been nothing but joy since I bought it. Flawless functionality with only minor problems with the Mediasource software, but nothing with the player itself. Just recently though, all of the face buttons and the scroll wheel stopped worki

  • How to remove -ve sign from the deduction wagetype in payslip

    Hi Experts, Plz tell me how i can remove the -ve sign from the deduction column in the Payslip. Regards TS

  • HT1386 iTouch/iTunes sync issue

    My iTouch is (all of a sudden) not able to connect with iTunes (PC) with a USB connection.  The PC doesn't appear to recognize/acknowledge it.  No reason to believe there's any software corruption or hardware damage...my iPhone continues to connect/s

  • How to upload electronic statement?

    Hi: I nee to upload automatically electronic statement bank from bank portal to SAP. It that possible. There are any method to do that without people management? Thank in advance. Paco