How to deploy 2 EJB's in separate jars

Hi,
I have successfully deployed 2 session ejb's in the same jar file, i.e. with one ejb-jar.xml and one weblog-ejb-jar.xml. And get get the ejb's to communicate with each other.
Now I want to be able to compile and deploy the 2 ejb's in separate jar files as part of an ear file.
My method so far is this:
I have split the ejb-jar.xml file into two, for each ejb, and also the weblogic-ejb-jar.xml file into two for each ejb.
I then compiled the ejb source files and packaged each ejb up with its respective deployment descriptors into two separate .jar files.
I then want to run weblogics ejbc on each .jar file in turn so that the resultant .jar files (with newly created stubs/skels) can be packaged into an .ear to be easily deployed into weblogic.
I try and run the ejbc command on the first of the .jar files and i get the error:
ERROR: Error from ejbc:
In ejb-jar.xml, the EJB 'SessClient' contains an invalid ejb-link in ejb
-ref 'ejb/SessLogHome'. No EJB with ejb-name 'IntellectStateless.jar#SessLog' co
uld be found.
ERROR: ejbc found errors
My ejb-jar.xml file for this ejb is:
<ejb-jar>
  <enterprise-beans>
    <session>
      <ejb-name>SessClient</ejb-name>
      <home>intellectsession.sessiontwo.SessClientEntHome</home>
      <remote>intellectsession.sessiontwo.SessClientEnt</remote>
      <ejb-class>intellectsession.sessiontwo.SessClientEntBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      <ejb-ref>
        <ejb-ref-name>ejb/SessLogHome</ejb-ref-name>
        <ejb-ref-type>Session</ejb-ref-type>
        <home>intellectsession.stateless.SessLogHome</home>
        <remote>intellectsession.stateless.SessLog</remote>
        <ejb-link>IntellectStateless.jar#SessLog</ejb-link>
      </ejb-ref>
    </session>
  </enterprise-beans>
  <assembly-descriptor>
    <container-transaction>
      <method>
     <ejb-name>SessClient</ejb-name>
     <method-name>*</method-name>
      </method>
      <trans-attribute>Required</trans-attribute>
    </container-transaction>
  </assembly-descriptor>
</ejb-jar>and both of my .jar files are in the same directory when I run the ejbc command.
I'm sure this can be done but I just think i'm not doing it in the right order maybe??
Anyway pointers will be gr8ly appreciated.
Cheers
T

Okay here is the solution to how to achieve the problem I encountered above:
I am compiling my ejb.jar files using the weblogic.ejbc compiler, obviously I am deploying on weblogic here.
This section:
<ejb-ref>
  <ejb-ref-name>ejb/SessLogHome</ejb-ref-name>
  <ejb-ref-type>Session</ejb-ref-type>
<home>intellectsession.stateless.SessLogHome</home>
  <remote>intellectsession.stateless.SessLog</remote>
  <ejb-link>IntellectStateless.jar#SessLog</ejb-link>
</ejb-ref>must have JUST the <ejb-link/> tag removed from the ejb-jar.xml file. And then the weblogic-ejb-jar.xml file MUST look like this:
<weblogic-ejb-jar>
    <weblogic-enterprise-bean>
        <ejb-name>SessClient</ejb-name>
        <reference-descriptor>
          <ejb-reference-description>
            <ejb-ref-name>ejb/SessLogHome</ejb-ref-name>
            <jndi-name>SessLog</jndi-name>
          </ejb-reference-description>
        </reference-descriptor>
        <jndi-name>SessClient</jndi-name>
    </weblogic-enterprise-bean>
</weblogic-ejb-jar>Note the <refererence-descriptor> tag as the important part.
After these changes, the 2 ejb.jar files can be compiled using the weblogic.ejbc tool, thus supplying the stubs/skels, and then the resultant two ejb.jar files can be added to the EAR file and deployed to weblogic.
Result: 2 ejb's in separate jars, in one EAR file, talking to each other.
T

Similar Messages

  • How to deploy the EJB which used Japanese word on Weblogic server

    Hi All,
    I am running a test on WIN 2K pro Japanese system. When I deploy an ejb bean with
    using Japanese character in the Java src code and also in ejb-jar.xml file, some
    exceptions were thrown.
    I am thinking that the weblogic cann’t pass ejb-jar.xml which is encoding as UTF-8
    but with Japanese character. Could you please let me know how to configure the
    Weblogic to solve the problem or to encode the ejb-jar.xml differently?
    Any suggestion will be welcome.
    Thanks,
    OUTPUT>>OUTPUT>>Invalid byte 3 of 3-byte UTF-8 sequence.
    OUTPUT>>OUTPUT>>java.io.UTFDataFormatException: Invalid byte 3 of 3-byte UTF-8
    s
    equence.
    OUTPUT>>OUTPUT>> at weblogic.apache.xerces.impl.io.UTF8Reader.invalidByte
    (UTF8Reader.java:693)
    OUTPUT>>OUTPUT>> at weblogic.apache.xerces.impl.io.UTF8Reader.read(UTF8Re
    ader.java:445)
    ===
    weblogic.management.ApplicationException:
    Exception:weblogic.management.ApplicationException: prepare failed for ejb
    Module: ejb Error: Exception preparing module: EJBModule(ejb,status=NEW)
    EJB ejb.jar ‚ð ejb.jar ‚©‚çƒfƒvƒƒC‚Å‚«‚Ü‚¹‚ñB
    EJB ‚Ђ낱 ‚ł́A‚·‚×‚Ä‚Ì cmp/cmr ƒtƒB[ƒ‹ƒh‚ª¬•¶Žš‚ÅŠJŽn‚³‚ê‚é•K—v‚ª‚ ‚è‚Ü‚·BƒtƒB[ƒ‹ƒh
    '‚È‚Ü‚¦‚P' ‚Í‚±‚ê‚É“K‡‚µ‚Ü‚¹‚ñB
    at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:268)
    at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:232)
    at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:810)
    at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:766)
    at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:200)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
    at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
    at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
    at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
    at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277)
    at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2962)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2602)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2552)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
    Making application available for use ... done.
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    weblogic.ejb20.compliance.ComplianceException: EJB ‚Ђ낱 ‚ł́A‚·‚×‚Ä‚Ì cmp/cmr
    ƒtƒB[ƒ‹ƒh‚ª¬•¶Žš‚ÅŠJŽn‚³‚ê‚é•K—v‚ª‚ ‚è‚Ü‚·BƒtƒB[ƒ‹ƒh '‚È‚Ü‚¦‚P' ‚Í‚±‚ê‚É“K‡‚µ‚Ü‚¹‚ñB
            at weblogic.ejb20.compliance.EJB20EntityBeanClassChecker.checkCMPFields(EJB20EntityBeanClassChecker.java:178)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:278)
            at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:232)
            at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:810)
            at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:766)
            at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:200)
            at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
            at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
            at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
            at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
            at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
            at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277)
            at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
            at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2962)
            at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
            at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
            at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
            at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2602)
            at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2552)
            at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
            at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
            at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
            at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
            at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
            at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
            at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
            at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2556)
            at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
            at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
            at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
            at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
            at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
            at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
            at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    --------------- nested within: ------------------
    weblogic.management.ManagementException:  - with nested exception:
    [weblogic.management.ApplicationException:
    Exception:weblogic.management.ApplicationException: prepare failed for ejb
            Module: ejb     Error: Exception preparing module: EJBModule(ejb,status=NEW)
    EJB ejb.jar ‚ð ejb.jar ‚©‚çƒfƒvƒƒC‚Å‚«‚Ü‚¹‚ñB
    EJB ‚Ђ낱 ‚ł́A‚·‚×‚Ä‚Ì cmp/cmr ƒtƒB[ƒ‹ƒh‚ª¬•¶Žš‚ÅŠJŽn‚³‚ê‚é•K—v‚ª‚ ‚è‚Ü‚·BƒtƒB[ƒ‹ƒh
    '‚È‚Ü‚¦‚P' ‚Í‚±‚ê‚É“K‡‚µ‚Ü‚¹‚ñB
            at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:268)
            at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:232)
            at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:810)
            at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:766)
            at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:200)
            at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
            at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
            at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
            at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
            at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
            at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277)
            at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
            at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2962)
            at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
            at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
            at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
            at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2602)
            at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2552)
            at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
            at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
            at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
            at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
            at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
            at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
            at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    weblogic.ejb20.compliance.ComplianceException: EJB ‚Ђ낱 ‚ł́A‚·‚×‚Ä‚Ì cmp/cmr
    ƒtƒB[ƒ‹ƒh‚ª¬•¶Žš‚ÅŠJŽn‚³‚ê‚é•K—v‚ª‚ ‚è‚Ü‚·BƒtƒB[ƒ‹ƒh '‚È‚Ü‚¦‚P' ‚Í‚±‚ê‚É“K‡‚µ‚Ü‚¹‚ñB
            at weblogic.ejb20.compliance.EJB20EntityBeanClassChecker.checkCMPFields(EJB20EntityBeanClassChecker.java:178)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:278)
            at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:232)
            at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:810)
            at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:766)
            at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:200)
            at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
            at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
            at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
            at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
            at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
            at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277)
            at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
            at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2962)
            at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
            at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
            at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
            at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2602)
            at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2552)
            at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
            at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
            at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
            at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
            at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
            at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
            at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2491)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >

    Open your server console (eg: http://localhost:7001/console)
    Go to deployment modules
    select ejb modules
    Click deploy new ejb module
    a browse will come, browse and find the applicaiton folder where u have kept your ejb
    Select that and click deploy..
    Error msg or successful message will come in the console window.
    regards
    SHanu

  • How to deploy an EJB that uses TopLink (w/o including all the TopLink libs)

    This might be a basic question. Sorry !
    When my EJB uses TopLink libraries, is there a way to deploy the EJB without having to include the TopLink jars in the deploying JAR/EAR file ?
    Is there a way to make sure TopLink libraries are accessible commonly to all the applications on the app server ?
    Thanks,
    Krishna

    I think I got how to do this.
    I ave to use the "application.xml" file which is the global application.xml file for all applications on that OC4J instance.
    http://otn.oracle.com/tech/java/oc4j/doc_library/902/A95880_01/html/advanced.htm#1015123
    Gotta add all the common libraries to that file. for example:
         <library path="C:\OraHome1\toplink\core\lib\toplink.jar" />
         <library path="C:\OraHome1\toplink\core\lib\xerces.jar" />
         <library path="C:\OraHome1\toplink\core\lib\antlr.jar" />
         <library path="C:\OraHome1\toplink\hsql\lib\hsqldb.jar" />

  • How to deploy an EJB to Oracle9iAS installed into another machine?

    When I try to deploy a statless ejb to a local machine where JDeveloper is installed every thing works fine. However, when I try to deploy it into another machine where Oracle9iAS(oc4j) is installed,I get the following error:
    Error: javax.naming.NamingException: Lookup error: java.io.EOFException: Disconnected; nested exception is:
    java.io.EOFException: Disconnected
    Can anybody help?
    thanks
    Ali

    I got problem when I deloy ejb in Oracle JDeveloper: I created jar file and delpoyed the jar, but when I tried to call the bean from client code I got "connection refused" error. I tried to created a connection to Application server, it asked me to enter userid/password. Since I use the embeded OC4J as my server now, I never set userid/password for the OC4J, so I left the fields empty, but I cannot create the connection.
    Please let me know what should I do to get my ejb deployed. Thank you.

  • How to deploy the EJB pr0gram

    i need sample EJB program..
    also nees which software can used for deployment
    step by step process to solve deployment,...

    You can use netbeans IDE for developement.
    [download NetBeans IDE|http://www.netbeans.org/downloads/index.html]
    also you can download j2ee tutorial from sun. It has explained every tech. in j2ee framework. it also has sample programs for each of them (eg. sample programs for session beans, entity beans, JMS)
    and procedure to execute them.
    Here is the [download j2ee tutorial.|http://java.sun.com/javaee/5/docs/tutorial/doc/JavaEETutorial.pdf]
    Hope this will help you.
    Sujit.

  • Deploy the EJB in Weblogic server

    Hi all
    How do deploy the EJB In WebLogic server ?
    How do call the Deployed EJB from your client Program?
    Plz...Help Me.........

    How do deploy the EJB In WebLogic server ?first create ejb-jar.
    then package ur ejb-jar inside an ear.
    deploy this ear in weblogic. (i hope u know how to create a domain in weblogic. if not, refer weblogic online help)
    How do call the Deployed EJB from your client
    Program?while packaging the ejb-jar, u would have given some jndi names to ur APIs. use this jndi name to do a lookup on the context of ur server. u will get home interface. call create method on this interface. u get remote interface. now u can call the business methods.
    in case u r clueless on wht i m talking abt, u got a long way to go. understanding the weblogic, ejbs, packaging, deployment, JNDIs is quite involving to say the least.
    regards

  • Reg:Deployment of EJB in 9iAS

    Dear All,
    How to deploy the EJB in 9iAs Application server. i want the document for the same.
    Vijay

    Vijay -- I would start by looking at the information available on OTN. I would especially look at the how-tos which give
    step by step instructions as well as looking at the documentation that is there. That will probably get you started.
    A good starting link is http://otn.oracle.com/tech/java/oc4j/content.html
    Thanks -- Jeff

  • Two EJB's, separate JARS?

    Hi,
    I have a MDB, consuming messages from a Q, a Java Bean and a Stateless Session Bean.
    The MDB has a message sent to it, consumes the message, calls the Bean and the bean then passes the Remote interface of the EJB back to the MDB.
    I have packaged and deployed this like so:
    first jar: MDB and Java Bean;
    second jar: Session EJB.
    I call the session ejb from the Bean like so:
    Context ctx = getInitialContext();
    Object objRef = ctx.lookup("java:comp/env/IntellectSessionRemote");I get this error, caught from the NamingException thrown in the above code:
    Javax.Naming.NameNotFound Exception: Unable to resolve comp/env/IntellectSessionRemote/ Resolved: comp/env Unresolved: IntellectSessionRemote ; remaining name ' ' in ejb
    Any ideas/help??/
    I am deploying on Weblogic 6.1, in development mode.
    Cheers
    T

    Hi again,
    I am confused still about a couple of things:
    1) Should I be deploying the EJB's in seperate JAR's?
    2) It is my Bean class, not MDB, that is doing the
    Object objRef = ctx.lookup("java:comp/env/ejb/IntellectSessionRemote");lookup, therefore why do i put the reference to the jndi name of the Session EJB in the deplotment descriptor of the MDB?
    I tried putting the ejb-ref tag in the ejb-jar.xml file and now get the following error when the server starts:
    In ejb-jar.xml the EJB 'consumer' contains an invalid eb-link in ejb-ref 'ejb/IntellectSession'. No ejb with ejb-name 'IntellectSession' could be found.Any ideas on this one????
    Cheers
    T

  • How to deploy the native dll with the applet package by Sun Java Plugin

    I have an applet which use some native methods. I have written code for the native dll, but I don't know how to deploy the DLL with the applet jar file for Sun Java Plugin. What parameter do i should pass to System.loadLibrary()? I think the solution should don't care which browser used by the end client. How to do it? How to deal with the applet security problem?
    Thank for any comment!

    I have a similar problem.
    Trying to use the javax.comm package requires that the user have the win32com.dll located on their machine.
    I have solved the problem by using a signed applet that allows me to write the dll to the clients machine and then run the code but ideally I would like to run the code without writing the dll to the users machine...i.e. I want to load the dll directly through the applet in the same way the class files are loaded forthe applet are loaded without copying them to the clients machine. After trying everything I have come to the conclusion that it is NOT possible. The calls loadLibrary and load both require that the dll reside on the clients machine. If anyone has had a different experience please rebut this.
    Rob

  • Problem deploying related EJBs in separate JARs

    I have 2 entity EJBs, User and Address, in separate JAR files. The User bean
    has business methods to get and set its related address as follows:
    void setAddressPK(AddressPK newAddress) throws java.rmi.RemoteException;
    AddressPK getAddressPK() java.rmi.RemoteException;
    When I try and load User.jar in the EJB Deployment tool it complains that it
    can't find the AddressPK class. However, I can get round this by explicitly
    adding Address.jar to the classpath.
    When I actually deploy and use the User bean I do NOT need Address.jar on
    the classpath, although I do get warnings during deployment.
    So my question is how do I package and deploy related EJBs. I don't want to
    have to have all my EJBs in the same JAR, nor do I want to have the same
    classes in more than one JAR. Is what I'm doing correct - am I supposed to
    have Address.jar on the classpath? And what about an utility classes that
    are shared between EJBs - where do I put those?
    Thanks in advance,
    Steve.

    I resolved the problem be making sure that my deployment
    jars don't appear in my servlet classpath....
    Jason
    Jeff Wang <[email protected]> wrote in message news:[email protected]...
    In general, if two beans are related (i.e. you can not compile one
    without the other being on the classpath) and they are both deployed
    they should be in the same jar file. If you do not deploy one of them,
    then the undeployed bean can be in the weblogic.class.path with no
    problem.
    I suspect that you are getting a ClassCastException because you have the
    deployment jars in your weblogic.class.path (or java classpath.) Remove
    them, and see if the error is resolved.
    Jeff Wang
    WLCS 2.0 Software Engineer
    Jason Rosenberg wrote:
    Does the same apply for beans of different types? In other words, do
    I need to have an entity bean and a session bean which wraps the entity
    bean in the same jar file?
    I am having a problem accessing a session bean from a JSP servlet. I get
    the dreaded ClassCastException. I don't get this problem, however, if
    I access the session bean directly from a stand-alone java client. It's
    only when I access the session bean via JSP....
    Any ideas?
    Jason
    Jeff Wang <[email protected]> wrote in message news:[email protected]...
    What you should have in the .jar files are:
    the home (say it is called <bean>home.class)
    the remote (say it is called <bean>.class)
    the impl (say it is called <bean>impl.class)
    These are the only ones that should be in the .jar file. (not even the
    PK should be there, for an entity bean.) All the support classes should
    be in weblogic.class.path If you have cross jar dependencies,
    unfortunately, you will have to specify the jar in the
    weblogic.class.path... However, this is not a good idea, as you will
    have 2 class files in memory. At the very least, you will not be able
    to do hot deploy. Depending on your code, you'll have a "class cast
    exception <bean> can not be casted to an object of <bean>" (Something
    like that, I don't have the exact error in front of me.) In your
    example it is probably better to put User and Address in the same jar.
    Jeff Wang
    WLCS 2.0 Software Engineer
    Steve Ward wrote:
    I have 2 entity EJBs, User and Address, in separate JAR files. The User bean
    has business methods to get and set its related address as follows:
    void setAddressPK(AddressPK newAddress) throws java.rmi.RemoteException;
    AddressPK getAddressPK() java.rmi.RemoteException;
    When I try and load User.jar in the EJB Deployment tool it complains that it
    can't find the AddressPK class. However, I can get round this by explicitly
    adding Address.jar to the classpath.
    When I actually deploy and use the User bean I do NOT need Address.jar on
    the classpath, although I do get warnings during deployment.
    So my question is how do I package and deploy related EJBs. I don't want to
    have to have all my EJBs in the same JAR, nor do I want to have the same
    classes in more than one JAR. Is what I'm doing correct - am I supposed to
    have Address.jar on the classpath? And what about an utility classes that
    are shared between EJBs - where do I put those?
    Thanks in advance,
    Steve.

  • How to Deploy the third party EJB 3.0 jar in web application

    I have a web application which calls services provided by EJB 3.0 beans packaged in third party jar. How do a configure the ViewController project to deploy the beans to the weblogic server when I run the application rather than deploy the EJB ear as a stand application to the server?
    The jar file has already referenced by the project. In the "EJB Module" of project properties I've set the EJB Version property to 3.0, but the Annotated EJB 3.0 Bean Classes list remains empty, presumably because I have no beans defined in the sources of the application. When running the project the EJB jar did not deploy automatically. Is there something wrong? How can I achive this goal?
    Best Wishes~
    ELeven.Xu
    IDE: JDeveloper 11g (11.1.1.2.0)
    OS: Linux

    I don't think this technique will work. I added a META-INF/ejb-jar.xml file to the application, and added a <session> section for one of the EJB 3.0 beans from my third party jar. I specified values for <ejb-name>, <ejb-class>, and <session-type> hoping the rest of the configuration would be determined from the annotations in the class. When the server starts, this warning message is displayed:
    Oct 30, 2009 12:06:41 PM com.evermind.server.ejb.logging.EJBDeploymentMessages warningSessionBizInterfaceNotDefined
    WARNING: \[current-workspace-app: ... \] - The session bean does not has at least one business interface defined for client access. The bean is not accessiable and usable at runtime.
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 11042 ms.
    \[sic\]
    EJB 3.0 beans are not required to define business interfaces, as they are supposed to be generated by the container.
    Good idea, but still cannot deploy beans from the third party EJB 3.0 jar referenced by my project to the embedded OC4J container. Still investigating.
    Thanks,
    Steve
    By the way, I have been able to use your technique to deploy EJB 2.1 beans from third party jars in other projects, just not EJB 3.0 beans that do not provide ejb-jar.xml deployment descriptors, nor business interfaces.
    Edited by: user10375549 on Oct 30, 2009 9:51 AM - Added relevant comment regarding technique described for solving problem. It works for EJB 2.1 beans but not EJB 3.0 beans.

  • How to deploy and run  EJB in eclipse without XDoclet

    Hi Friends
    I am new in j2ee.In my academic project i want to do some ejb programming.
    For that purpose i want to write some ejb's.I have written all required class for ejb,created ejb-jar.xml file manually,weblogic .xml file manually. I am using weblogic8 as an server for deployment.
    I know deployment with xdoclet but i want to know hoe to deploy ejb without xdoclet.
    If u have saple code or useful link regarding this please send it as soon as possible.
    Thanks in advance
    How to deploy and run EJB in eclipse without XDoclet

    HI Welcome to J2ee...
    I am also new to this...But i ll share my ideas with you...
    In EJB 3.0 No need of any Deployment Descriptors....
    And If you are using Eclipse You can Deploy(as jar) using Export in File tab...
    XDoclet is not mandatory...
    Gopal V

  • How deploy the EJB in security on the Sun Java System Application Server 9?

    I hava deploied a simple Hello EJB Object on PE 9(Sun Java System Application Server Platform Edition 9). I can use this EJB object without user name an password On any client. See the following code section:
         public static void main(String[] args) {
              try{
                   Properties props = System.getProperties();
                   props.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.enterprise.naming.SerialInitContextFactory");
                   props.put(Context.PROVIDER_URL,"iiop://localhost:3700");
                   Context ctx = new InitialContext(props);
                   Hello h = (Hello) ctx.lookup("ejb/test/Hello");
                   System.out.println(h.sayHello());
              }catch(Exception e){
                   e.printStackTrace();
    Please tell me how deploy the EJB in security on the Sun Java System Application Server 9? So that, The client must set the user name and password when lookup the ejb object. Like the following:
    props.put(Context.SECURITY_PRINCIPAL,"admin")
    props.put(Context.SECURITY_CREDENTIALS,"1234");

    Guys,
    I too have the same issue. If anyone has an answer, please let me know.
    Is this GlassFish problem? or Prgram issue?
    Find below the source code
    package TransactionSecurity.bean;
    import javax.annotation.Resource;
    import javax.annotation.security.DeclareRoles;
    import javax.annotation.security.PermitAll;
    import javax.annotation.security.RolesAllowed;
    import javax.ejb.Remote;
    import javax.ejb.SessionContext;
    import javax.ejb.Stateless;
    import javax.ejb.TransactionAttribute;
    import javax.ejb.TransactionAttributeType;
    @Stateless
    @Remote(TSCalculator.class)
    @DeclareRoles({"student", "teacher"})
    public class TSCalculatorBean implements TSCalculator {
         private @Resource SessionContext ctx;
         @PermitAll
    //     @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
         public int add(int x, int y) {
              System.out.println("CalculatorBean.add  Caller Principal:" + ctx.getCallerPrincipal().getName());
              return x + y;
         @RolesAllowed( { "student" })
         public int subtract(int x, int y) {
              System.out.println("CalculatorBean.subtract  Caller Principal:" + ctx.getCallerPrincipal().getName());
              System.out.println("CalculatorBean.subtract  isCallerInRole:" + ctx.isCallerInRole("student"));
              return x - y;
         @RolesAllowed( { "teacher" })
         public int divide(int x, int y) {
              System.out.println("CalculatorBean.divide  Caller Principal:" + ctx.getCallerPrincipal().getName());
              System.out.println("CalculatorBean.divide  isCallerInRole:" + ctx.isCallerInRole("teacher"));
              return x / y;
    package TransactionSecurity.bean;
    import javax.ejb.Remote;
    @Remote
    public interface TSCalculator {
            public int add(int x, int y);
            public int subtract(int x, int y);
            public int divide(int x, int y);
    package TransactionSecurity.client;
    import java.util.Properties;
    import javax.ejb.EJBAccessException;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import TransactionSecurity.bean.TSCalculator;
    public class TSCalculatorClient {
         public static void main(String[] args) throws Exception {
              // Establish the proxy with an incorrect security identity
              Properties env = new Properties();
              env.setProperty(Context.SECURITY_PRINCIPAL, "kabir");
              env.setProperty(Context.SECURITY_CREDENTIALS, "validpassword");
            env.setProperty(Context.INITIAL_CONTEXT_FACTORY,"com.sun.appserv.naming.S1ASCtxFactory");
            env.setProperty(Context.PROVIDER_URL,"iiop://127.0.0.1:3700");
            env.setProperty("java.naming.factory.initial","com.sun.enterprise.naming.SerialInitContextFactory");
            env.setProperty("java.naming.factory.url.pkgs","com.sun.enterprise.naming");
            env.setProperty("java.naming.factory.state","com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
            env.setProperty("org.omg.CORBA.ORBInitialHost", "127.0.0.1");
            env.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
              InitialContext ctx = new InitialContext(env);
              TSCalculator calculator = null;
              try {
                   calculator = (TSCalculator) ctx.lookup(TSCalculator.class.getName());
              } catch (Exception e) {
                   System.out.println ("Error in Lookup");
                   e.printStackTrace();
                   System.exit(1);
              System.out.println("Kabir is a student.");
              System.out.println("Kabir types in the wrong password");
              try {
                   System.out.println("1 + 1 = " + calculator.add(1, 1));
              } catch (EJBAccessException ex) {
                   System.out.println("Saw expected SecurityException: "
                             + ex.getMessage());
              System.out.println("Kabir types in correct password.");
              System.out.println("Kabir does unchecked addition.");
              // Re-establish the proxy with the correct security identity
              env.setProperty(Context.SECURITY_CREDENTIALS, "validpassword");
              ctx = new InitialContext(env);
              calculator = (TSCalculator) ctx.lookup(TSCalculator.class.getName());
              System.out.println("1 + 1 = " + calculator.add(1, 1));
              System.out.println("Kabir is not a teacher so he cannot do division");
              try {
                   calculator.divide(16, 4);
              } catch (javax.ejb.EJBAccessException ex) {
                   System.out.println(ex.getMessage());
              System.out.println("Students are allowed to do subtraction");
              System.out.println("1 - 1 = " + calculator.subtract(1, 1));
    }The user kabir is created in the server and this user belongs to the group student.
    Also, I have enabled the "Default Principal To Role Mapping"
    BTW, I'm able to run other EJB3 examples [that does'nt involve any
    security features] without any problems.
    Below is the ERROR
    Error in Lookupjavax.naming.NamingException: ejb ref resolution error for remote business interfaceTransactionSecurity.bean.TSCalculator [Root exception is java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
         org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0  completed: No
         at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.handle_null_service_context(SecServerRequestInterceptor.java:407)
         at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.receive_request(SecServerRequestInterceptor.java:429)
         at com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeServerInterceptorIntermediatePoint(InterceptorInvoker.java:627)
         at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeServerPIIntermediatePoint(PIHandlerImpl.java:530)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.getServantWithPI(CorbaServerRequestDispatcherImpl.java:406)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:224)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1846)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1706)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1088)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:223)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    ----------END server-side stack trace----------  vmcid: 0x0  minor code: 0  completed: No]
         at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:425)
         at com.sun.ejb.containers.RemoteBusinessObjectFactory.getObjectInstance(RemoteBusinessObjectFactory.java:74)
         at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
         at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:403)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at TransactionSecurity.client.TSCalculatorClient.main(TSCalculatorClient.java:35)
    Caused by: java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
         org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0  completed: No
         at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.handle_null_service_context(SecServerRequestInterceptor.java:407)
         at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.receive_request(SecServerRequestInterceptor.java:429)
         at com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeServerInterceptorIntermediatePoint(InterceptorInvoker.java:627)
         at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeServerPIIntermediatePoint(PIHandlerImpl.java:530)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.getServantWithPI(CorbaServerRequestDispatcherImpl.java:406)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:224)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1846)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1706)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1088)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:223)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    ----------END server-side stack trace----------  vmcid: 0x0  minor code: 0  completed: No
         at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:277)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:205)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
         at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:225)
         at com.sun.ejb.codegen._GenericEJBHome_Generated_DynamicStub.create(com/sun/ejb/codegen/_GenericEJBHome_Generated_DynamicStub.java)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:372)
         ... 5 more
    Caused by: org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0  completed: No
         at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.handle_null_service_context(SecServerRequestInterceptor.java:407)
         at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.receive_request(SecServerRequestInterceptor.java:429)
         at com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeServerInterceptorIntermediatePoint(InterceptorInvoker.java:627)
         at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeServerPIIntermediatePoint(PIHandlerImpl.java:530)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.getServantWithPI(CorbaServerRequestDispatcherImpl.java:406)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:224)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1846)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1706)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1088)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:223)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    ----------END server-side stack trace----------  vmcid: 0x0  minor code: 0  completed: No
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:913)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:131)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:685)
         at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:472)
         at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:363)
         at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:219)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:192)
         ... 13 moreAny help is appreciated.
    Regards!
    Nithi.
    Edited by: EJB3 on Aug 17, 2008 8:17 PM

  • Urgent!!!!How to deploy only an EJB from Weblogic to oc4j.

    Hi
    How can i deploy only EJB from Weblogic into oc4j without any web application or client coming into pitcture as my client access bean remotely....
    regards,
    Sapthapathi

    If you are migrating from ejb1.1->ejb1.1 you shouldn't have many changes - your ejb-jar.xml file should be the same (I assume you are still talking about ejbs). Once you pull over the base ejb - then if you want to, mess around with the automatically generated orion-ejb-jar.xml file. Obviously - those are all app server specific. I go back and forth between wls6.1 and oc4j all the time. When going from wls5.1 to oc4j - what particular issues do you run into. What do you mean, in particular, by configuration changes?
    Curious -
    Ray
    hi,
    EJBs and other applications can be migrated from weblogic to oc4j but many changes are required.These changes are mainly configuration changes rather than code changes.Infact there are many problems in effect while migrating and delloyment.Hope oracle is a bit more attentive to this issue.
    regards,
    chennai

  • How to deploy ejb in an Enterprise Environment using the jbuilder plugin

    Hello:
    I use Oracle9iAS Plug-in Release 2 (9.0.2) for Borland JBuilder 7 to deploy my ejb. But now, i would like to deploy my ejb to oc4j in an Enterprise Environment (not as standalone).
    Does anybody know how can i do it? I noted that the plugin use admin.jar to deploy ejb, and I suppose it need to use dcmctl.
    Thank you
    Sergio

    Sergio,
    The current release of Borland JBuilder only allows you to deploy to standalone OC4J. If you want to deploy to Oracle9iAS (Enterprise OC4J), please try Oracle9i JDeveloper 9.0.3:
    http://otn.oracle.com/software/products/jdev/content.html
    JDeveloper 9.0.3 uses DCM to deploy to Oracle9iAS
    Regards,
    Chen.

Maybe you are looking for

  • Problems with adding a new device in Common Services

    Hello, I have the following problem: I need to add a new device in my Cisco Works. What I do is I go to Common Services >> Device and Credentials >> Device Management. There I click "Add" and I add the new device with the corresponding credential set

  • ERROR  in send mail step

    In workflow  i have  user decision step with attachment as PDF, after he rejects i should send a notification to the initiater about rejection, I used send mail step after the user decision step of rejection branch,,  the send mail step is giving fol

  • Ipod completly locked up. dont know pass code,id, or anything. need to reset but dont know how. please help.

    ipod completely locked up. dont know pass code or anything. belongs to my 8 year old who likes to play around in settings. needs reset or something, but i dont know how. please

  • Accesing Oracle_Home in 11g

    Please kindly help out; im looking for ORACLE_HOME...my OS is Window7 while my DB is Oracle 11g Express Edition

  • Increase in wait time of synchronous interface

    I am working on HTTP to proxy synchronous interface on PI 7.3 PI uses communication channel with SOAP receiver adapter over XI protocol Now I am facing below error in the interface while testing after 3minutes-       com.sap.engine.interfaces.messagi