Basic EJB Tutorial

Hello there!
Probably this is the wrong forum to post this, but since I couldn't find where to do it, here it goes...
Does anybody know where I can find an EJB tutorial that develops a BASIC example with source code and that uses NETBEANS IDE with its embedded server, like SJSAS 9?
Thank you very much for your time... and
God Bless

Thank you very much sir,
Does anybody know in which forum should I post in order to get more replies on this topic ?
Thanks in advance !

Similar Messages

  • Basic EJB access question

    Hi ,
    I am learning the basic EJB and trying to write my first piece of code.
    I wrote a HelloWorld.jar(EJB) and deployed it in Websphere server.
    Then I wrote a standalone java program with main method to access the EJB client. As per the tutorial..
    public void callEJB()
              try
                   java.util.Properties env = new java.util.Properties();
                   env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
                   env.put(javax.naming.Context.PROVIDER_URL,"iiop://localhost:2809/");               
                   javax.naming.Context initial = new javax.naming.InitialContext(env);
                   //Object objref =(javax.naming.Context)initial.lookup("java:comp/env/HelloWorld");                              
                   Object objref =initial.lookup("ejb/ejb/demo/HelloWorldHome");     
                   System.out.println(objref.getClass());
                   HelloWorldComponent helloRef = (HelloWorldRemote)PortableRemoteObject.narrow(objref, HelloWorldComponent.class);
              }catch(Exception e){e.printStackTrace();}
    How will my code compile???? Because HelloWorldComponent is on the application server, but my client is on a different server. It cannot find the HelloWorldComponent class right??
    What should I do now?
    Thanks.

    env.put(javax.naming.Context.PROVIDER_URL,"iiop://localhost:2809/");you should change the localhost to the server's IP address instead since you are running the client from another computer. hope this will work.
    cheers,
    clarence

  • Sun ejb tutorial compilation problem with sample code

    I have been trying to follow the ejb tutorial off of Sun's web site. However, I get the following problem when I try to compile the sample code.
    prompt>javac Demo.java
    works fine
    Prompt>javac DemoBean.java
    works fine
    Prompt>javac DemoHome.java
    DemoHome.java:23: cannot resolve symbol
    symbol : class Demo
    location: interface ejb.demo.DemoHome
    public Demo create() throws CreateException, RemoteException;
    ^
    1 error
    Prompt>
    Can anyone help me out as I have tried several books which conveniently skip the part about compiling errors.
    I noticed I don't have a CLASSPATH variable and then i created one with just '.' in it and that didn't work. any help would be appreciated as this is driving me crazy. Thanks.

    try to change the order of the exception.
    first RemoteException and then CreateException

  • Encountering Problems with Basic Sound Tutorial

    Hello everyone,
    I am encountering problems with a basic sound tutorial. I am absolutely confused as to what the problem may be because the code is so simple, and is essentially copied from the textbook. I am convinced that I have done something very silly but cannot see it.
    I have attempted to run this in an appletviewer, Firefox and Internet Explorer. I have attempted to launch it from both a .class file and a .jar file. I have uninstalled and offline installed the JDK and JRE and successfully tested the new installations.
    The audio file I am attempting to load and play is an .AU (Sun/Next 8-bit u-law) audio file I created in Audacity. It is located in the same folder as the AudioApplet.class file.
    My sound system is defintely on, since I have listened to music all day. I have attempted running the program with Media Player closed.
    package edu.myuniversityid.sandbox;
    import java.applet.Applet;
    import java.applet.AudioClip;
    * @author Ibuki
    public class AudioApplet extends Applet
         * Initialization method that will be called after the applet is loaded
         * into the browser.
        public void init()
            super.init();
            AudioClip ac = this.getAudioClip(this.getDocumentBase(), "sample.au");
            ac.play();
    }The code compiles fine, however absolutely I get a small white window when it is run. No sound.
    Thankyou for your time.
    Regards,
    Ibuki.
    PS. I am sure this worked before the university forced me to update my version of Windows to SP2. Hence, the reason for reinstalling Java. Twice.
    Edited by: Ibuki on Jan 31, 2008 11:09 AM becasuse: Added a PS.

    I have attempted this alternative, without success:
        public void init()
            try
                super.init();
                URL url = new URL(this.getDocumentBase(), "sample.au");
                AudioClip ac = this.getAudioClip(url);
                ac.play();
            catch (MalformedURLException ex)
                Logger.getLogger(AudioApplet.class.getName()).log(Level.SEVERE, null, ex);
        }The sample.au is definetly in the correct directory. Both File Explorer and NetBeans confirm this.
    Edited by: Ibuki on Jan 31, 2008 11:59 AM
    I have discovered a temporary solution that works in the applet viewer. The applet will load and plays the correct music perfectly. However, using this code it is not working when I try to deploy it using a web browser (MSIE and FF)!
    public void init()
            super.init();
            AudioClip ac = this.getAudioClip(this.getClass().getResource("sample.au"));
            ac.play();
    Edited by: Ibuki on Jan 31, 2008 12:12 PM
    Eureka!
    Having worked in the applet viewer I managed to get it working in the web browser by simply packaging my SoundApplet.class and sample.au into a .jar archive.
    <html>
         <body>
              <applet code="edu.myuniversityid.sandbox.AudioApplet.class" archive="dist/AudioApplet.jar">Unfortunately, this applet content cannot be displayed on this web page because your current browser does not support Java SE 6! Please <a href="http://www.java.com/">update your version of Java</a>.</applet>
         </body>
    </html>
    public void init()
            super.init();
            AudioClip ac = this.getAudioClip(this.getClass().getResource("sample.au"));
            ac.play();
        }Thankyou everyone.
    This thread can be closed if applicable. I'm not aware of the current moderation policy on this forum.
    Edited by: Ibuki on Jan 31, 2008 12:12 PM

  • Simple Step-by-Step Weblogic+EJB Tutorial

    Anyone know of a simple step-by-step weblogic+ejb tutorial? Online?
    Thanks,
    Rocky

    See my signature line.. Book and examples are still free for download. WL6.1
    only at this point, but not for long.
    Check out my WebLogic 6.1 Workbook for O'Reilly EJB Third Edition
    www.oreilly.com/catalog/entjbeans3 or www.titan-books.com
    "Rocky" <[email protected]> wrote in message
    news:3cd95d54$[email protected]..
    >
    Anyone know of a simple step-by-step weblogic+ejb tutorial? Online?
    Thanks,
    Rocky

  • JDev EJB Tutorial problem

    JDev v.9.0.3.2(build 1145)
    Using the built-in help facility instructions on the EJB Tutorial, I am stuck on Part 5; Step 1.
    (Copied directly from tutorial)
    *****begin tutorial instructions*******
    Step 1: Adding a Create Method to the Entity Bean
    The first step is to add a new create() method on the Dept entity bean.
    To add a new create() method: In the Navigator, double-click Dept to open the EJB Module Editor.
    Expand the node for Dept and click the Methods node.
    In the Method Category list, choose Create methods.
    Click Add.
    In the Method Details dialog box, in the Parameters field, type the following:Long deptno, String dname, Long manager, Long location Click OK to close the dialog.
    Your new create() method appears in the list of methods. Click OK to close the EJB Module Editor.
    To add code to the Dept entity bean: In the Navigator, expand the node for the Dept bean and double-click DeptBean.java.
    In the Structure pane, double-click ejbCreate(long, String, long, long) to jump to that method in the code.
    Replace the stub method with the following code:
    public DeptPK ejbCreate(Long deptno, String dname, Long manager, Long location)
    this.setDepartment_id(deptno);
    this.setDepartment_name(dname);
    this.setManager_id(manager);
    this.setLocation_id(location);
    return new DeptPK(deptno);
    In the Navigator, right click DeptBean.java and choose Make DeptBean.java to make sure it compiles without errors.
    *****end of tutorial instrucions*********
    I cannot get the 'hrApp' EJB to compile.
    The compiler complaint:
    Error(18,10): class DeptPK not found in class hr.impl.DeptBean
    Error(24,16): class DeptPK not found in class hr.impl.DeptBean
    Any recommendations are appreciated.
    Thanks,
    Robert Stuart

    Mistake: misnamed the bean in problem statement.
    I meant to say the 'DeptBean' (not hrApp EJB) did not compile, using sample code from instructions.
    Surely someone can help.
    Robert

  • Basic Template tutorial

    Suggestions for an easy to use basic template tutorial?
    1) Specifically I want to create a template with a navbar
    similar to this one:
    www.mulberrywood.com
    2) Without the center text and images
    3) And with the bottom text links to other pages.
    For some reason when I manually copy the text links at the
    bottom of the page they never link correctly... I have to use the
    link box at the bottom of the page to erase the link and then paste
    in the link and then they always work...

    > I am seeking a very easy to follow tutorial (preferably
    with step by step
    > examples) so that I can make this specific template (and
    others) myself.
    Did you read the tutorial at the dw template tutorial link I
    supplied?
    >
    > Also I am seeking a reason why when I manually copy and
    paste text links
    > such
    > as those at the bottom of the page the links never work.
    Yet when I
    > quickly
    > erase the links (leaving the text) and then redo the
    links by pasting the
    > www....... in agian they always work. I am sure taht
    there is a very
    > simple
    > logical reason but what
    I'm not exactly sure you are having the copy and paste
    problem, but I would
    assume it's because the links aren't being recognised
    correctly.
    Ok, I'll give you the steps to take to create a template from
    that mulberry
    page.
    Make sure the page you want to create a template from is
    correctly coded,
    the links are correct, the links to graphics are correct
    extra.
    1.Open the site you want to work on. ( you need to be working
    in a defined
    DW site for templates to be created correctly
    2.Open the index page (which is the one I presume you want to
    create into a
    template).
    3.Leave everything as it is.
    4. Go to FILE>SAVE AS TEMPLATE
    5. You will get a dialogue box..
    with the Site box already filled in (should be the name of
    you defined site)
    Save As: give your template a name (eg: mainpage)
    Save
    6. You will be asked to update links. Say yes
    7. You now need to create an editable region (this is the
    area that you
    will be changing on every page).
    8. Highlight the center table in your content area
    9. Go to : INSERT>TEMPLATE OBJECTS> select Editable
    Region
    10. Dialogue box: Name: maincontent (or whatever you want to
    call this
    editable region)
    11. Click OK
    12. You have now created a template.
    the code around your table should now look like this:
    <!-- InstanceBeginEditable name="maintable" -->
    <table> bla bla bla </table>
    <!-- InstanceEndEditable -->
    13. Now if you want to create a 'child page' from this
    template go to:
    FILE>NEW> and select the TEMPLATES tab
    You should now see the name of the template you create.
    13. Select the template and a page will now be created for
    you.
    You should now see a page exactly the same as your index page
    (if that is
    what you used to create the template), except that you can't
    change anything
    in any area apart from that middle table.
    14. You now need to save this page.
    SAVE AS: services.html (or whatever).
    Make sure you save the file to the root of your folder (where
    all your other
    files are kept, DO NOT save into the template folder) You are
    not to have
    anything in the Templates folder apart from the dwt file.
    15. Your bottom links in your template file (dwt) will look
    something like
    this:
    a href="../howtofoldpocketsquares/pocketsquarefolds.htm"
    This is because once the template is created, the link needs
    to point to the
    root of your site.
    When you look at the same link in the child page you created
    it will look
    like this:
    a href="howtofoldpocketsquares/pocketsquarefolds.htm"
    That's about it. You cannot however, apply this template to
    your other
    pages. You can, however, it may be difficult for a novice to
    accomplish
    until they understand how templates work.
    If you managae to create the template, you will have to
    create a child page
    and then copy and paste the contents from your other pages
    into that
    maincontent editable region you create.
    Another thing to remember is that in your template, make sure
    when / if you
    add links to make them Relative to: document. This way, your
    linking should
    always be correct.
    For when you want to create a new template at any other time
    (not with this
    site), the steps are pretty similar. Create your page, save
    as template,
    add any editable regions you need and follow the steps from
    there.
    PS: I did notice in your code, that you are using <th>
    in your tables
    instead of <tr>
    <th> is really used for headings, you should be using
    <tr> table rows.
    When you insert a table, there should be a dialogue box,
    where you need to
    DESELECT header rows.
    Anything that gets put into a <th> gets a bold
    formatting, which is not what
    you really want when you create a table correctly.
    This table tutorial may also be of some help to you:
    http://www.dwfaq.com/Tutorials/Tables/flexible_tables.asp
    Phew !! I think that's about it and I hope this helps, at
    least a bit ;-)
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.csstemplates.com.au
    - CSS Templates | Free Templates
    http://www.DreamweaverResources.com
    - Dropdown Menu Templates|Tutorials
    http://www.macromedia.com/devnet/dreamweaver/css.html
    - CSS Tutorials

  • EJB Tutorial

    Hi,
    somebody know good EJB Tutorial with Weblogic-examples. The EJB-Tutorial on Sun was to short for me.
    Thanx!

    http://www.amazon.com/exec/obidos/ASIN/0130911119/qid=1000943895/sr=1-2/ref=sr_1_2_2/002-1103791-8676014

  • EJB - Tutorial giving error in Weblogic 8.1 Deployment - Help

    I am a EJB newbie, i tried deploying the Demo.jar and i get the following error on deployment
    Please help
    Thanks in Advance
    drg
    Exception:weblogic.management.ApplicationException: prepare failed for Demo Module: Demo Error: Exception preparing module: EJBModule(Demo,status=NEW) Unable to deploy EJB: Demo.jar from Demo.jar: In EJB DemoBean, references to javax.ejb.EJBContext, javax.ejb.SessionContext, or javax.ejb.EntityContext must not be transient. 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:784) at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:700) at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1339) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:498) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:3142) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1583) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1227) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1070) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2513) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2463) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2379) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) weblogic.ejb20.compliance.ComplianceException: In EJB DemoBean, references to javax.ejb.EJBContext, javax.ejb.SessionContext, or javax.ejb.EntityContext must not be transient. at weblogic.ejb20.compliance.SessionBeanClassChecker.checkEJBContextIsNotTransient(SessionBeanClassChecker.java:69) 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:784) at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:700) at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1339) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:498) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:3142) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1583) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1227) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1070) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2513) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2463) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2379) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    [Deployer:149033]preparing application Demo on cosmosserver
    [Deployer:149033]failed application Demo on cosmosserver
    [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application Demo on cosmosserver.: Exception:weblogic.management.ApplicationException: prepare failed for Demo Module: Demo Error: Exception preparing module: EJBModule(Demo,status=NEW) Unable to deploy EJB: Demo.jar from Demo.jar: In EJB DemoBean, references to javax.ejb.EJBContext, javax.ejb.SessionContext, or javax.ejb.EntityContext must not be transient. 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:784) at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:700) at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1339) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:498) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:3142) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1583) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1227) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1070) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2513) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2463) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2379) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) weblogic.ejb20.compliance.ComplianceException: In EJB DemoBean, references to javax.ejb.EJBContext, javax.ejb.SessionContext, or javax.ejb.EntityContext must not be transient. at weblogic.ejb20.compliance.SessionBeanClassChecker.checkEJBContextIsNotTransient(SessionBeanClassChecker.java:69) 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:784) at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:700) at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1339) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:498) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:3142) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1583) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1227) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1070) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2513) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2463) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2379) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

    Could you post the code for your DemoBean?
    I suspect that you are using a really old tutorial on EJB where the EJBContext, SessionContext or EntityContext were declared transient. This was, I believe, the case with EJB 1.0. You would need to remove the transient from the context declaration, if that is the case.

  • Solaris 10 basic network tutorial

    Hi there,
    I have a solaris 10 machine and a windows xp machine.
    I have them linked up with a cross over cable.
    I have set the IP on the windows machine to 192.168.0.100 on a subnet mask of 255.255.255.0
    What i cannot seem to fathom (although i did manage it on linux, somehow) is how to configure the solaris machine.
    Does anyone know of a good BASIC tutorial on how i can get the two machine networked. Basically, i would like to get ftp and telnet working between the machines.
    Any help greatly appreciated.
    Many thanks,
    Andrew

    Hi,
    dmesg a system message log viewer.
    It will tell you the 'instance name' of your network
    card, but a whole lot else about devices and
    boot histories.
    So you need to run it, pipe the output into
    a grep (search) for network, and pipe the
    result of that into a grep for pci. I'm using your
    network card will be some kind of PCI card
    Here's what I get:
    # dmesg | grep -i network | grep pci
    Feb 7 19:13:59 ten genunix: [ID 408114 kern.info] /pci@1f,0/pci@1,1/network@1,1 (hme0) online
    hme0 is therefore my interface name.
    'hme' is the driver name, '0' is the first one.
    # man hme
    gives you the scarey driver details.
    So I need to have /etc/hostname.hme0 in order
    to have a hostname. Only one line in the file,
    only one word in it -- the same as the hostname
    you supplied in /etc/hosts.
    On sparc, the drivers include hme, qfe, eri and le.
    On x86, they include bcme and ibprb.
    An x86 box with a one broadcom network card
    will have bcme0.

  • EJB Tutorial problem

    Hi everybody,
    I try to do the tutorial for "Using EJBs in Web Dynpro".
    [Link to Tutorial|/docs/DOC-8061#20 [original link is broken]]
    But on page 14 I got problems.
    I have to implement the constructor that throws an exception called "CreateException". But this cannot be resolved from my NWDS. I tried it with organizing imports but nothing happened so I tried to import the class manually with the coding
    import javax.ejb.createexception;
    It failed again. I think the library for this is missing. Anybody did the tutorial and solved the problem?
    I am using NWDS 7.1 SP1 with SAP ehp 1.
    Thx for any help.

    Hi Gunter,
    thx for your answer but I didn't understand it. Where did you find the point "used DC"? Can you send me a screenshot?
    Link with E-Mail-Address
    [http://forums.sdn.sap.com/profile.jspa?userID=3821530]
    Thx a lot

  • Need ADF basic guidance Tutorial

    i am newbie. As my current assignment i need to work on Jdevloper and ADF. Can somebody please give some guidance how to start with ADF.
    If somebody can give some basic reference guide/tutorial it will be of great help.
    sudip

    There is a book specificallly targeted at those questions of "how do a learn JDeveloper" and "how do a learn ADF" - especially if you are a newbie.
    The Quick Start Guide to Fusion Development Oracle JDeveloper and Oracle ADF aims to get you up and running with ADF applications in as short a time as possible.
    Further details can be found here:
    http://www.mhprofessional.com/product.php?isbn=0071744282
    Regards
    Grant
    p.s. as the author, you might expect slight bias in recommending this book ;o) , but the reviews (from some well known names on the forums) have been positive as well.
    http://www.amazon.com/Quick-Start-Oracle-Fusion-Development/dp/0071744282

  • New to JDeveloper, having problems with EJB tutorial.

    Hi,
    I'm new to the world of JDeveloper, I'm trying to follow this tutorial
    http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/ejb/ejb.html
    Firstly when I create an entity from a table I get the following error;
    Starting Offline Database Synchronization
    Generating classes for Entity CbsdSecurity...
    Entity generation for CbsdSecurity failed.
    I'm not really sure why this is, however I suspect this is at the heart of the problems.
    If I continue I can get to the point where I create a EJB Diagram, however when I try to drag my autogenerated class onto the diagram I get the following error;
    "Entity does not belong to Persistence Unit xxxxEJB which is associcated with Diagram EJB3.ejb_diagram"
    In addition the log at the bottom has the following warnings.
    23-Sep-2010 10:07:46 oracle.security.jps.internal.credstore.ssp.CsfWalletManager openWallet
    WARNING: Opening of wallet based credential store failed. Reason java.io.IOException: PKI-02002: Unable to open the wallet. Check password.
    23-Sep-2010 10:07:53 oracle.adf.share.jndi.ReferenceStoreHelper getReferencesMapEx
    WARNING: Incomplete connection reference object for connection:fcs2ukd
    Now my database connection doesn't seem to remember the password even though I have ticked the 'remember password' tick box.
    I am developing under Windows XP using JDK1.6.0.21
    If anyone could point out what I'm going wrong I would be very grateful.
    Thanks
    Rich
    Edited by: Rich Carless on Sep 23, 2010 9:32 AM

    Try to test Your DB connection in JDeveloper. Is it success?
    Best regards, Debuger!

  • WebDynPro Basics and Tutorial

    Hi Experts,
    I want to learn Webdynpro ABAP, please provide me the basic info and any tutorial or any material.
    Thanks in Advance,
    Praveen

    Use the following link
    Tutorial ALV
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/60ea94e5-0901-0010-c3bb-aad5ea9620d8 [original link is broken]
    Web Dynpro Java Foundation – What's new in SAP NetWeaver 2004S
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c29a4d25-0c01-0010-50ae-e69d0e1c61f3
    SAP Web Dynpro Overview
    http://wendtstud1.hpi.uni-potsdam.de/sysmod-seminar/SS2005/presentations/12-WebDynpro-Overview.ppt
    Web Dynpro General Concepts
    https://admin.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/30ea953b-8e57-2910-4e85-f7be60b00407 [original link is broken]
    Web Dynpro
    http://help.sap.com/saphelp_nw2004s/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/frameset.htm
    Web Dynpro for ABAP: Tutorials for Beginners
    Web Dynpro for ABAP: Tutorials for Beginners [original link is broken]
    Web Dynpro Architecture
    http://help.sap.com/saphelp_nw04/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/content.htm
    Web Dynpro User Interface Design
    https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/webcontent/uuid/ce44a14c-0a01-0010-af89-d7dbd944f176 [original link is broken]
    Getting Started with Web Dynpro Java
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/webcontent/uuid/8921447c-0501-0010-07b4-83bd39ffc7be [original link is broken]
    Developing ABAP applications using Web Dynpro Configuration Scenario
    http://www50.sap.com/businessmaps/8729920B31E343F099B71340B15F06DB.htm
    http://www.sapforum.co.kr/TECHDAY07/download/9.%20SAP%20WebDynpro_%EA%B9%80%ED%98%9C%EC%84%AD.pdf
    How-to add a custom Web Dynpro iView to the MSS Employee Profile (ECC 6.0)
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/how-toaddacustomWebDynproiViewtotheMSSEmployeeProfile(ECC+6.0)&focusedCommentId=55238
    Developing Java Applications using Web Dynpro Configuration Scenario
    http://www50.sap.com/businessmaps/8F5B533C4CD24A59B11DE1E9BDD13CF1.htm
    Integrating Web Dynpro and SAP NetWeaver Portal Part 1: Creating Web Dynpro-Based Portal Content
    http://www.octavia.de/fileadmin/content_bilder/Hauptnavigation/SAP_NetWeaver/WebDynpro/Tutorial_1.pdf
    The Structural Concepts of Web Dynpro Components
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a048387a-0901-0010-13ac-87f9eb649381
    Web Dynpro:Context Mapping & Model Binding
    http://wendtstud1.hpi.uni-potsdam.de/sysmod-seminar/SS2005/presentations/14-Web_Dynpro_dataflow.pdf
    Web Dynpro:Getting Involved
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c193252d-0701-0010-f5ae-f10e09a6c87f
    Web Dynpro for ABAP
    http://www.vnsg.nl/temp/508773747/A1-WDA_Themadag.pdf
    http://www.octavia.de/fileadmin/content_bilder/Hauptnavigation/SAP_NetWeaver/WebDynpro/Web_Dynpro_Part_IV.pdf
    Web Dynpro for ABAP in SDN
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/512040e1-0901-0010-769c-c238c6ca35d9 [original link is broken]
    Developing ABAP Applications Using Web Dynpro
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/d41b25d2216babe10000000a1553f6/frameset.htm
    Web Dynpro ABAP: Development in Detail
    http://help.sap.com/saphelp_nw2004s/helpdata/en/03/0048413e466e24e10000000a155106/frameset.htm
    WDA Sample programs & tutorials
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    Web Dynpro ABAP Demonstration Videos
    /people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11 [original link is broken] [original link is broken]
    As the name suggests Web Dynpro for ABAP uses exactly the same meta model as its cousin Web Dynpro for Java. A Web Dynpro component, a Web Dynpro view, a Web Dynpro model, a Web Dynpro controller have the same semantics both for ABAP and Java. The main difference is the designtime environment, the development infrastructure and the runtime environment.
    The designtime environment is properly embedded in the ABAP Workbench where Web Dynpro artifacts are simply a new category like BSP applications or classical dynpro based applications before. Also no surprises regarding the development infrastructure. The correction and transport system keeps track on all changes that are done, versions them and helps to propagate the Web Dynpro application from development to production like you would do with ordinary BSP or dynpro-based applications.
    Last not least the execution platform is the ABAP server that produces application content ready to be integrated in the NetWeaver Portal seamlessly. Features like portal eventing can be used between applications written in ABAP or applications developed with Java.
    First of all start doing SAP SDN tutorials .
    Create some compenents with BAPI , Component usage and ALV .
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02e1fa45-0801-0010-10a0-f1cf47e8c943
    /people/marilyn.pratt/blog/2005/12/20/web-dynpro-for-abap
    Try to Download demo tutorials from SDN library & Try to search WebDynpro ABAP WebLogs .
    Wait not just that SAP has provided you with ample demo example of WD ABAP already bundled with SAP . Just Try out Components starting with WDR . I can tell you few like WDR_TEST_EVENTS ( It shows how every UI elments to use )
    See packages like SWDP_DEMO , SALV_WD_DEMO
    refer to these links
    Web Dynpro ABAP: Development in Detail
    http://help.sap.com/saphelp_nw2004s/helpdata/en/03/0048413e466e24e10000000a155106/frameset.htm
    WDA Sample programs & tutorials
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    Web Dynpro ABAP Demonstration Videos
    /people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11 [original link is broken] [original link is broken]
    This is a video blog which demonstrates all webdynpro topics.
    /people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
    Reward points..

  • Run the example of ejb tutorial ...

    When I run the example of "Enterprise JavaBeansTM Tutorial:
    Building Your First Stateless Session Bean"--DemoClient,(Weblogic server 6.0,
    win 2000) ,I met a probelm.
    Following is the error information:
    C:\bea\wlserver6.0\CLASSES>java -Djava.naming.factory.initial=weblogic.jndi.Teng
    ahInitialContextFactory -Djava.naming.provider.url=t3://localhost:7001 ejb.demo.
    DemoClient
    begin DemoClient...
    => Error <=
    javax.naming.NoInitialContextException: Cannot instantiate class: weglogic.jndi.
    T3InitialContextFactory. Root exception is java.lang.ClassNotFoundException: we
    glogic.jndi.T3InitialContextFactory
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:195)
    at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.jav
    a:45)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    55)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246
    at javax.naming.InitialContext.init(InitialContext.java:222)
    at javax.naming.InitialContext.<init>(InitialContext.java:198)
    at ejb.demo.DemoClient.getInitialContext(DemoClient.java:58)
    at ejb.demo.DemoClient.main(DemoClient.java:15)
    End DemoClient...
    Any guidance will be appreciated!
    Thanks, Yu

    I managed to fix my problem, hopefully thissolution
    will help you as well.
    I discovered that the following entries arerequired
    in the jndi.properties file in order to lookupEJB's
    using JNDI from a client application:
    java.naming.factory.initial=com.sun.jndi.cosnaming.CNCt
    Factory
    java.naming.provider.url=iiop://localhost:1050
    Note that my environment uses the j2ee server fromSUN
    running on the localhost on port 1050.
    If you can locate the proper settings for theweblogic
    server, then you can try this solution on for size.
    One quick question: When I try to run my client
    against the Ref. Implementation like this:
    java -Dorg.omg.CORBA.ORBInitialHost=localhost
    -Dorg.omg.CORBA.ORBInitialPort=1050
    -Djava.naming.factory.initial=com.sun.jndi.cosnaming.CN
    txFactory
    -Djava.naming.provider.url=iiop://localhost:1050
    com.sld.role.ValidationClient
    I get the following error:
    javax.naming.NamingException: java:comp/env namespace
    is only available from within a J2EE component.
    This stinks. All I can find out is that Sun wants you
    to use runclient, which is silly. My client is trying
    to resolve the JNDI name:
    "java:comp/env/ejb/ValidationSessionBean"
    Any idea why this isn't working?
    Thanks....
    -ScottGot it working. Here's how:
    In the client's CLASSPATH I have three things: j2ee.jar, the client jar file generated by the server during deployment, and my client class files. I took out all of the -D stuff above and it still works. (With or without it.) I haven't tried it from another machine yet - I may need them for that.
    The client uses the JNDI name "ValidationSessionBean", not "java:comp/env/ejb/ValidationSessionBean" and it now can bind to it.
    I wish Sun would have given out this kind of info with their J2EE tutorial, instead of just pushing their runclient script, which uses their own client class.
    -Scott

Maybe you are looking for

  • PS CS6 in Win7

    PhotoShop CS6 on Win7 starts only in adminstrator mode. Also InDesign CS6. What works wrong? I can't work with  tasklist or direct job contact...

  • Ipod Touch Screen wont time out?

    So about two days ago I noticed that my ipod's screen wont time out and turn off, if I for example decide to manually change a song rather then skip it from my headphones, it stays on, so i have to manually turn of the screen while I'm playing music.

  • View's in the Material Master

    Hello, With regards to the material master data: (a) are there more views to a material that are  dependent on the plant except for: 'costing', 'Forecasting', 'MRP', 'Production Resources/Tools', 'Purchasing',' Quality Management' and 'Sales'? (b) wh

  • Hierarchical Tree and keyboard navigation

    Does anyone know how to use Hierarchical Trees with keyboards, or to disable keyboard actions? (forms 9.0.4) My form has a tree which does processing in a When-Tree-Node-Selected trigger to populate some blocks depending on the selected node. If the

  • Modify grid size in dashboard view

    I have a dashboard that has a few dashboards within. I end up needing about 12 "grids", which I do by having a master two grid dashboard. The left side is two grids on top of one another showing some graphs (performance widget). The right side is two