EJB Reloading with 9.1

I'd swear I had EJB reloading working on WLS8.1. Even changes to the signature of a bean method were picked up by the server without restart (i.e. in cases where the debugger had no change to apply hotswap to the code).
Is there a way to enable EJB reloading for WLS 9.1?
Thanks
Stefan

You should just need to redeploy the application not restart the WLS instance.
-- Rob
WLS Blog http://dev2dev.bea.com/blog/rwoollen/

Similar Messages

  • TS1424 I am trying to update itunes so that I can sync my new iphone.  I get a message Error 7(Windows Error 127).  I have uninstalled all apple software and tried to reload with no luck.  I have also cleaned my registry with software.

    I am trying to update iTunes so that I can sync my new iPhone.  I get a message Error 7 (Windows Error 127).  I have uninstalled all Apple software and tried to reload with no luck.  I have also cleaned my computer's registry with registry cleaning software.  Even tried reloading operating system disk to fix errors.  Any ideas?

    Hello chathamcpa,
    I found an article with steps you can take when you are getting Error 7 when opening iTunes.  I recommend following the steps in this article:
    iTunes for Windows: "Error 7" message when opening iTunes
    http://support.apple.com/kb/ts3074
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How to cause a form to reload with a newly created record?

    I hope this is easy and I'm just missing it.
    I have a form based on a table (a "parent" table.). The parent table uses a trigger to generate the PK.
    When a new parent record is created with the form, I want the page to reload with the newly created record still in the form. Then some conditional regions based upon child-tables would appear, with options to populate the detail records.
    My problem is simple: how can I access the value of the primary key of the newly created record once it is submitted to the database, so I can use it to reload that record into the form?
    Thanks very much for your help!

    John - The DML process (Automatic Row Processing) has a Return Key Into Item option. That's what you need.
    Scott

  • Can't fill ByteArray in EJB-Method with generated Model-Class from WD-Model

    Hello everybody,
    i try to call an ejb-method with data from an FileUpload-UI-Element in WD. The EJB-Method is receiving the byte-data to create a document in KM via a Web-Service.
    The ebj-methid has the following signature:
    public FObject putFileDataSimple (byte [] btContent, String fullFileName, String username, String password)
    After importing the Model and creating a context node i have the following structure:
    Request_X_putFileDataSimple
    +---btContent (Node)
          +-- item
    + fullFileName
    + username
    + password
    btContent is of the generated Type Byte_Item, which is itself a generated Model-Class of modelClassType ARRAY
    item is of Type byte
    But i simply have problems to fill the context node (or the binded model-object). i tried different ways and looked at thread [https://www.sdn.sap.com/irj/scn/thread?messageID=1954223] but i cant get it work.
    So my Method in WD looks like this to fill the structure and start the ejb-method:
    public boolean putKMDataSimple( com.sap.tc.webdynpro.services.sal.datatransport.api.IWDResource fin )  {
    try
      wdContext.currentRequest_X_putFileDataSimpleElement().setFullFileName("abc");
      wdContext.currentRequest_X_putFileDataSimpleElement().setUsername("def");
      wdContext.currentRequest_X_putFileDataSimpleElement().setPassword("xxx");
      byte[] buffer = new byte[1];
      InputStream in = fin.read(false);
      int i = 1;
      int j = 0;
      while (i!=-1)
         i = in.read(buffer);
         if (i!=-1)
           Byte_Item bi = new Byte_Item(mAlf);     // mAlf ist global defined Model-Class-Instance
           bi.setItem(buffer[0]);
            wdContext.currentRequest_X_putFileDataSimpleElement().modelObject().addBtContent(bi);
      wdContext.currentRequest_X_putFileDataSimpleElement().modelObject().execute();
    Doing this results in Error-Messages like:
    Model-Object is not a complex type for every byte added this way.
    And finally an IllegalArgumentException at java.lang.reflect.Array.set(Native Method)
    The second way i tried is:
    public boolean putKMDataSimple( com.sap.tc.webdynpro.services.sal.datatransport.api.IWDResource fin )  {
    try
      wdContext.currentRequest_X_putFileDataSimpleElement().setFullFileName("abc");
      wdContext.currentRequest_X_putFileDataSimpleElement().setUsername("def");
      wdContext.currentRequest_X_putFileDataSimpleElement().setPassword("xxx");
      byte[] buffer = new byte[1];
      ArrayList<Byte> btlist = new ArrayList<Byte>();
      InputStream in = fin.read(false);
      int i = 1;
      int j = 0;
      while (i!=-1)
         i = in.read(buffer);
         if (i!=-1)
              btList.add(buffer[0]);
      wdContext.currentRequest_X_putFileDataSimpleElement().modelObject().setBtContent(btList);
      wdContext.currentRequest_X_putFileDataSimpleElement().modelObject().execute();
    Trying so results in:
    java.lang.ClassCastException: class java.lang.Byte:null incompatible with interface com.sap.tc.cmi.model.ICMIModelClass:library:com.sap.tc.cmi(at-sign)[email protected]@alive
    whenn calling the setBtContent Method
    I don't what to do now to fill the context/model-object the right way.
    Any helpfull hints are very welcome
    Edited by: Matthias Hayk on Dec 1, 2008 5:51 PM
    Edited by: Matthias Hayk on Dec 2, 2008 10:56 AM

    Ok Vesselin and thanx for your idea,
    so i adapted the source in the way you told like the following:
                     ArrayList<Byte_Item> btlist = new ArrayList<Byte_Item>();
                     byte[] buffer = new byte[1];
                     InputStream in = fin.read(false);
                     int i = 1;
                     int j = 0;
                     while (i!=-1)
                          i = in.read(buffer);
                          if (i!=-1)
                               // Byte gelesen
                               Byte_Item bi = new Byte_Item(mAlf);
                               bi.setItem(buffer[0]);
                               btlist.add(bi);
                               j++;
                     wdContext.currentRequest_X_putFileDataSimpleElement().modelObject().setBtContent(btlist);     
                     wdContext.currentRequest_X_putFileDataSimpleElement().modelObject().execute();
    This results also in the following Exception when exceuting the WS-proxy:
    execute
    [EXCEPTION]
    java.lang.IllegalArgumentException
    at java.lang.reflect.Array.set(Native Method)
    at com.sap.tc.webdynpro.model.ejb.model.EJBGenericModelClassExecutable.getInputParameters(EJBGenericModelClassExecutable.java:215)
    at com.sap.tc.webdynpro.model.ejb.model.EJBGenericModelClassExecutable.execute(EJBGenericModelClassExecutable.java:112)

  • Authorised.i have removed itunes program and reloaded with lastest release still no joy

    when i try to down load my content from the cloud i get a error message not authorised on this pc.I have removed the itunes and reloaded with the latest release still no joy.Also have checked on my account where it states my pc is authorised. Any suggestions Thanks

    Sorry about the delay, pack. Brooding over what to try next.
    I'd like to doublecheck the malware possibilities with another malware scanner.
    Try downloading and installing the free version of Malwarebytes AntiMalware. Update your MBAM definitions and then run a full scan of the PC. (Takes about 2 hour on my Lenovo.)
    http://www.malwarebytes.org/mbam.php
    Does the scan find any infections? If so, please paste the contents of the log file for the scan in a reply here so we can have a look.

  • How to use EJB Remote with Netbeans7.0 ?

    I try to create Session Bean in Netbeans 7.0 but when I select Remote then I have to select Java Application in Netbeans. It different from Netbeans 6.8 ,6.9 which in Netbeans6.8, 6.9 not have dropdown for select Java Application when we choose Remote. So I don't know how to use EJB Remote in Netbeans7.0 then I click finish. After that, I create Project is Enterprise Application Client. but in Main.java at this line
    BLSessionRemote obj = (BLSessionRemote)ctx.lookup("TestBean");
    It can't find BLSessionRemote in Session Beans. How to use EJB Remote with Netbeans7.0 ?

    Why don't you ask this question in the Netbeans mailing lists, where it belongs. Come here when you have problems with code you wrote yourself.

  • EJB Websphere with Universal Test Client

    Hi,
    I developed an ejb application using WSAD. I developed a universal test client in WSAD. The business logic method which i have written is argumented. When i am testing ejb applicatin with Universal test client, i should see text box to enter value for that arguments. But i am not getting that provision.
    The method definition is like this:
    private long [] employeeIDs = { 10010, 10023, 10045, 10051, 10061 };
    private String [] employees = {"Frank", "Sam", "Maddy", "Jack", "Lorette" };
    public String getEmployeeName( long employeeID )
    throws javax.ejb.CreateException, java.rmi.RemoteException
    for ( int i=0; i < employees.length; i++ )
    if ( employeeIDs[ i ] == employeeID )
    return employees[ i ];
    return "ramesh";
    Please help me. Thanks in advance

    Is this the first time you are using the Universal Test Client? You first have to get to the EJB via either a create (for a Session Bean) or a create or finder method for an entity bean. Once you have the EJB, it should show you all the available methods and when you select one, it should give you the text box to enter the parameters. How far are you getting in the process? By the way, methods have to be defined in the remote or local interface for the UTC to show them.
    This has nothing to do with the UTC but why is your getEmployeeName method throwing a CreateException?

  • Unable to find ejb-jar with uri X.jar in ear at c:/Y/split_src

    Stack trace is below, but the ejb does exist at the location that the FileNotFoundException states. I've checked that application.xml, org.eclipse.wst.common.component both have the correct name for this dependency.
    java.lang.Exception: Exception received from deployment driver. See Error Log view for more detail.
      at oracle.eclipse.tools.weblogic.server.internal.DeploymentProgressListener.watch(DeploymentProgressListener.java:190)
      at oracle.eclipse.tools.weblogic.server.internal.WlsJ2EEDeploymentHelper.deploy(WlsJ2EEDeploymentHelper.java:506)
      at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishWeblogicModules(WeblogicServerBehaviour.java:1466)
      at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:898)
      at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:686)
      at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:539)
      at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
      at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3153)
      at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
    Caused by: weblogic.application.ModuleException:
      at weblogic.ejb.container.deployer.EJBModule.init(EJBModule.java:334)
      at weblogic.application.internal.flow.ModuleListenerInvoker.init(ModuleListenerInvoker.java:167)
      at weblogic.application.internal.flow.InitModulesFlow.initModule(InitModulesFlow.java:312)
      at weblogic.application.internal.flow.InitModulesFlow.initModules(InitModulesFlow.java:325)
      at weblogic.application.internal.flow.InitModulesFlow.prepare(InitModulesFlow.java:378)
      at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:648)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
      at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:59)
      at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
      at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:208)
      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
      at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
      at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
      at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
      at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
      at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
      at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: java.io.FileNotFoundException: Unable to find ejb-jar with uri ***.jar in ear at C:\***\split_src
      at weblogic.ejb.spi.EJBJar.<init>(EJBJar.java:81)
      at weblogic.ejb.container.deployer.EJBModule.buildClassFinder(EJBModule.java:201)
      at weblogic.ejb.container.deployer.EJBModule.init(EJBModule.java:313)

    Hi Ten,
    FYI, just by placing the ejb jar inside EAR project it will not be picked up for deployment. The EJB module has to be defined on EAR Module Assembly, and the steps are:
    > EAR Project | Properties, Deployment Assembly - Add EJB module
    NOTE: To verify the dependency you could try to export the EAR project to an .ear file. If the exported .ear file bundles ejb jar then deployment should work fine.
    As far as the deployment mode, OEPE supports WebLogic Split-source (default) and Exploded archive. In the default split-source mode, the .beabuild.txt contains the mapping to the actual files whereas in exploded archive the files are copied over to deployment staging location.
    Steps to modify deployment mode:
    > In the server view, right click on server configuration | Properties, select WebLogic | Publishing
    Please make sure the ejb module is defined appropriately and let me know if this resolves the issue.
    Thanks,
    Ram

  • Unable to publish - Unable to find ejb-jar with uri itr-ejbs.jar in ear

    I'm using Weblogic 10.3.4 with Eclipse Juno before i was with Eclipse Galileo. Since the update i'm not able to publish my ear anymore.
    I search on the internet the explanation of this stacktrace but i don't find a understandable answer so i ask to you :D
    <5 oct. 2012 12 h 30 CEST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1349433008242' for task '0'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
         at weblogic.ejb.container.deployer.EJBModule.init(EJBModule.java:334)
         at weblogic.application.internal.flow.ModuleListenerInvoker.init(ModuleListenerInvoker.java:167)
         at weblogic.application.internal.flow.InitModulesFlow.initModule(InitModulesFlow.java:285)
         at weblogic.application.internal.flow.InitModulesFlow.initModules(InitModulesFlow.java:298)
         at weblogic.application.internal.flow.InitModulesFlow.prepare(InitModulesFlow.java:330)
         Truncated. see log file for complete stacktrace
    Caused By: java.io.FileNotFoundException: Unable to find ejb-jar with uri itr-ejbs.jar in ear at D:\dev\workspaces\.metadata\.plugins\org.eclipse.core.resources\.projects\itr-ear\beadep\citron_domain\itr-ear\split_src
         at weblogic.ejb.spi.EJBJar.<init>(EJBJar.java:81)
         at weblogic.ejb.container.deployer.EJBModule.buildClassFinder(EJBModule.java:201)
         at weblogic.ejb.container.deployer.EJBModule.init(EJBModule.java:313)
         at weblogic.application.internal.flow.ModuleListenerInvoker.init(ModuleListenerInvoker.java:167)
         at weblogic.application.internal.flow.InitModulesFlow.initModule(InitModulesFlow.java:285)
         Truncated. see log file for complete stacktrace
    >
    <5 oct. 2012 12 h 30 CEST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'itr-ear'.>
    <5 oct. 2012 12 h 30 CEST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException:
         at weblogic.ejb.container.deployer.EJBModule.init(EJBModule.java:334)
         at weblogic.application.internal.flow.ModuleListenerInvoker.init(ModuleListenerInvoker.java:167)
         at weblogic.application.internal.flow.InitModulesFlow.initModule(InitModulesFlow.java:285)
         at weblogic.application.internal.flow.InitModulesFlow.initModules(InitModulesFlow.java:298)
         at weblogic.application.internal.flow.InitModulesFlow.prepare(InitModulesFlow.java:330)
         Truncated. see log file for complete stacktrace
    Caused By: java.io.FileNotFoundException: Unable to find ejb-jar with uri itr-ejbs.jar in ear at D:\dev\workspaces\.metadata\.plugins\org.eclipse.core.resources\.projects\itr-ear\beadep\citron_domain\itr-ear\split_src
         at weblogic.ejb.spi.EJBJar.<init>(EJBJar.java:81)
         at weblogic.ejb.container.deployer.EJBModule.buildClassFinder(EJBModule.java:201)
         at weblogic.ejb.container.deployer.EJBModule.init(EJBModule.java:313)
         at weblogic.application.internal.flow.ModuleListenerInvoker.init(ModuleListenerInvoker.java:167)
         at weblogic.application.internal.flow.InitModulesFlow.initModule(InitModulesFlow.java:285)
         Truncated. see log file for complete stacktrace
    >Thank You

    Hi,
    It seems one of your ejb jar is missing from the current file location.
    D:\dev\workspaces\.metadata\.plugins\org.eclipse.core.resources\.projects\itr-ear\beadep\citron_domain\itr-ear\split_src
    you can make it manually copied to this location and build the project again so that it can able to deploy propertly.
    Now one more thing you can do open a ticket with oracle support for better assistance.
    Regards,
    Kal

  • EJB-QL with Date parameter

    Hi All,
    I have used the follwing EJB-QL with java.sql.Date as one of the parameter.
    <query-method>
    <method-name>findByLeaveEmpTypeDateStatus</method-name>
    <method-params>
    <method-param>java.lang.Integer</method-param>
    <method-param>java.lang.Integer</method-param>
    <method-param>java.sql.Date</method-param>
    <method-param>java.lang.String</method-param>
    </method-params>
    </query-method>
    <ejb-ql>
    <![CDATA[select object(o) from LeaveBean o where o.leaveId = ?1
                and o.empTypeId = ?2 and o.createdDate = ?3 and o.status = ?4]]>
    </ejb-ql>
    The server log throws the following exception.
    Test Name : tests.ejb.entity.ejbql.EjbQLFromCmpEntityDescriptor
    Test Assertion : EJB 2.0 Spec Chapter 10 Container managed persistent
    queries should comply with specification in its sytax and semantic rules
    Test Description : Error: [ select object(o) from LeaveBean o where
    o.leaveId = ?1 and o.empTypeId = ?2 and o.createdDate = ?3 and o.status = ?4 ]
    has parsing error(s)
    Exception occured : [Invalid type for expression (o.createdDate  = ?3)
    EJB QL statement : 'select object(o) from LeaveBean o where o.leaveId = ?1
    and o.empTypeId = ?2 and o.createdDate = ?3 and o.status = ?4'
    EJB QL method    : public abstract LeaveLocal LeaveLocalHome.findByLeaveEmpTypeDateStatus
    (java.lang.Integer,java.lang.Integer,java.sql.Date,java.lang.String)
    throws javax.ejb.FinderException
    All the ejb-ql statements with Date as parameter only are throwing the above exception.
    Instead of java.sql.Date, I have tried with Timestamp and Long, but the same exception throws.
    I am using Oracle as my DB.
    The same application with Date as parameter works fine with Weblogic and JBoss.
    --Muthu.

    We are having the same problem: We have timestamps in the database and the ejbql is this:
    SELECT Object(e) FROM EstimateOrder e WHERE e.idDistributor = ?1 and e.ordDateEntered > ?2 and e.ordDateEntered < ?3
    The verifier gives this error:
    Exception occured : [Invalid type for expression (e.ordDateEntered  > ?2)
    Can timestamps be used as input params in ejbql and the used in comparisons?  We tried the "between" also with the same results.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • New To Iplanet app server.Can some one help me getting started by delpoying and calling one of each of these:JSP,Servlet,EJB.Tried with iplanet docs..didnt quite get it. thanx

     

    Hi,
    What is that you are trying to accomplish ? Is it deployment or
    trying to develop applications ? Are you getting any errors ? If so,
    please post them to help you. I think the documentation is the best place
    for you to begin with.
    Regards & Happy New Year
    Raj
    Arif Khan wrote:
    New To Iplanet app server.Can some one help me getting started by
    delpoying and calling one of each of these:JSP,Servlet,EJB.Tried with
    iplanet docs..didnt quite get it. thanx
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • HT1689 How do you keep pictures from reloading with every sync

    How do you keep pictures from reloading with every sync

    What do mean by reloading? Once you sync the photos to the iPad they should not sync again. Is that what you are seeing? The progress bar is showing that the photos are being transferred all over again?

  • How do I use the J2EE EJB container with the FULL version of Tomcat

    The version of Tomcat integrated in J2EE is really cut-down. I want to be able to run the standard Tomcat 4.0.1 to give the full JSP facilities, but I also want to be able to use EJBs from the J2EE.
    If I copy the j2ee.jar, j2ee-ri-svc.jar and home interface to the "lib" directory they do not appear to be loaded, as I cannot resolve the javax.ejb.EJBHome.class.
    If I copy the same library into the application's WEB-INF/lib directory then the naming jaxax.naming.InitialContext gives a context without the java:/comp/env entries.
    I do not want to use another EJB contrainer after having got used to deploying apps with J2EE.
    If anyone can help I would be greatful, and post a thanks message with duke dollars!
    Chris
    10 Duke Dollars available

    I have done it before and basically it is not that difficult, but in practice not that easy ;-)
    All you need to do is see Tomcat as a client to the EJBs. This means deploying the application in two parts: the webapp as a WAR to Tomcat 4.0.1, and the EJBs to J2EE. Both running and started independantly.
    This ofcourse means that the WAR file must have the stubs of the EJBs to be able to communicate and access to j2ee.jar to get the InitialContext.
    So:
    - compile the EJBs
    - create the EAR (containing only EJBs)
    - deploy the EAR
    - copy the stubs to the libs directory of the webapp
    - compile the webapp
    - create the WAR
    - deploy the WAR
    Off you go.
    Tom

  • Multiple EJB's with the same name

    I have one EJB application which I deployed twice: JndiJarTest01 and JndiJarTest02.
    It has a session bean FooBean with a remote interface FooRemote.
    Then I have one WAR application: JndiWarTest.
    From the NewServlet servlet in the WAR application I want to JNDI lookup a specific FooBean.
    I am working with Glassfish.
    sun-ejb-jar.xml of JndiJarTest01
    <sun-ejb-jar>
      <enterprise-beans>
        <ejb>
          <ejb-name>FooBean</ejb-name>
          <ejb-ref>
            <ejb-ref-name>ejb/FooBean01</ejb-ref-name>
            <jndi-name>ejb/FooBean01</jndi-name>
          </ejb-ref>
        </ejb>
      </enterprise-beans>
    </sun-ejb-jar>
    web.xml of JndiWarTest
    <web-app...
        <ejb-ref>
            <ejb-ref-name>ejb/FooBean01</ejb-ref-name>
            <ejb-ref-type>Session</ejb-ref-type>
            <remote>com.bar.jndijartest.FooRemote</remote>
            <ejb-link>FooBean01</ejb-link>
        </ejb-ref>
        <ejb-ref>
            <ejb-ref-name>ejb/FooBean02</ejb-ref-name>
            <ejb-ref-type>Session</ejb-ref-type>
            <remote>com.bar.jndijartest.FooRemote</remote>
            <ejb-link>FooBean02</ejb-link>
        </ejb-ref>
    </web-app>
    NewServlet.java
    private FooRemote lookupFooBean(String which) {
        try {
            Context c = new InitialContext();
            return (FooRemote) c.lookup("java:comp/env/ejb/FooBean"+ which);
        } catch (NamingException ne) {
            java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE, "exception caught", ne);
            throw new RuntimeException(ne);
    }I just can not get past the NameNotFoundException
    javax.naming.NameNotFoundException: #com.bar.jndijartest.FooRemote not foundAny ideas? Or futher questions? Thanks.

    I did it! (Thanks to Jop.)
    sun-ejb-jar.xml
    <sun-ejb-jar>
      <enterprise-beans>
        <ejb>
          <ejb-name>FooBean</ejb-name>
          <jndi-name>ejb/FooBean01</jndi-name>
        </ejb>
      </enterprise-beans>
    </sun-ejb-jar>I did not have to do anything with EJB's in the web.xml.
    Change the JNDI lookup in NewServlet.java.
            return (FooRemote) c.lookup("ejb/FooBean"+ which);It turned out to be easier than I thought.

  • Build a EJB/ Application with Sun One Studio and deploy to Weblogic

    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development, but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic 6.1.
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for the weblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar with the deployment
    process?
    Many Thanks for all of you.
    Ivan

    where do you get the weblogic plugin from ?
    i am intrested in doing the same thing
    thanx
    prem
    "Ivan" <[email protected]> wrote in message
    news:[email protected]..
    >
    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development,but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic6.1.
    >
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for theweblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar withthe deployment
    process?
    Many Thanks for all of you.
    Ivan

Maybe you are looking for

  • Printing my photoshop photo book?

    How do I print my photobook? Is there a service that takes .pse format? Or how do I make it .psd for shutterfly? The order button is not available on my photoshop elements menu.

  • Screen pop-up

    Hi there I keep on getting a screen popping up at random occasions when online. I used to have a Yahoo mail account, but no longer do. The box which pops up has the following info: Enter the Yahoo! password for [email protected]. It then ha

  • Where are the Fieldpoint controls in LabView 8.0?

    I have just upgraded to LabView 8.0 and I can no longer find the FieldPoint controls in the control palette.  All of my modules are installed in and configured in MAX but there does not appear to be any way to add Fp I/O to my block diagrams?

  • Kind of an unusual Screen Issue

    The screen isn't cracked or anything, but the touch functionality won't work. I'm sure it's because of water or something because it happened RIGHT after I finished installing my InvisiShield clear protector. I'm just trying to figure out WHAT part I

  • Itunes page does not show full page w/license agreement..nano does not work

    plugged in nano to computer, license agreement comes up half page, can not click any responces. they r not there in view.Also no set up assintant appears as it said it would in the pathetic little " manual" that came with it. wonder if they burn well