Duke' Bank Application in j2ee 1.5 using ejb 3

Will the Duke' Bank Application from j2ee 1.4 tutorial be rewritten, using ejb3 and java persistence in j2ee 1.5 tutorial? Is there a way to get a beta version of it , if there exists one?

Here is the link to the new J2EE 5 tutorial:
http://java.sun.com/javaee/5/docs/tutorial/doc/index.html

Similar Messages

  • Duke bank application client probleam

    Warning: Could not find file /usr/local/sges-v3/glassfish/domains/domain1/gener ated/xml/dukesbank/dukesbankClient.jar to copy.
    Copying 1 file to /root/10 jun/javaeetutorial5/examples/dukesbank/dist
    Copying 3 files to /root/10 jun/javaeetutorial5/examples/dukesbank/dist/dukesb ankClient
    Copying 1 file to /root/10 jun/javaeetutorial5/examples/dukesbank/dist/dukesb ankClient
    java.lang.NullPointerException
    at org.glassfish.appclient.client.acc.ACCLogger$1.run (ACCLogger.java:149)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.glassfish.appclient.client.acc.ACCLogger.revis eLogger(ACCLogger.java:146)
    at org.glassfish.appclient.client.acc.ACCLogger.init( ACCLogger.java:93)
    at org.glassfish.appclient.client.acc.ACCLogger.<init >(ACCLogger.java:80)
    at org.glassfish.appclient.client.AppClientFacade.cre ateBuilder(AppClientFacade.java:360)
    at org.glassfish.appclient.client.AppClientFacade.pre pareACC(AppClientFacade.java:247)
    at org.glassfish.appclient.client.acc.agent.AppClient ContainerAgent.premain(AppClientContainerAgent.jav a:75)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at sun.instrument.InstrumentationImpl.loadClassAndSta rtAgent(InstrumentationImpl.java:323)
    at sun.instrument.InstrumentationImpl.loadClassAndCal lPremain(InstrumentationImpl.java:338)
    Java Result: 1
    run-dukesbank-appclient:
    BUILD SUCCESSFUL (total time: 25 seconds)

    Application client not running in duke bank Application for Netbeans IDE 6.8 and Application server Glass Fish and Data Base Java DB
    I made all installation as per guide of j2eetutorial5.zip application but i got struck while I am trying to run application client

  • Security check, j_security_check, Duke's Bank Application

    Hello all! I'm a newbie on j2ee and looking for answer to some thoughts.
    When looking at the "Duke's Bank Application" I found that the webclient use a form to authorize the user (logon.jsp), the form post to "j_security_check".
    - What is "j_security_check" and where is it defined?
    - In deplytool I noticed that the BankWAR have some security settings that are set to "Form Based" and that there are some login-stuff in web.xml but...how does it connect to j_security_check?

    I also got the same problem whenever I run the web client, the application client is working just fine. Please help!!!
    Thanks,
    ace

  • WEB CLIENT in Duke�s Bank Application

    Hi, I have a problem with running the WEB CLIENT in Duke�s Bank Application.
    First about the VERSIONs:
    I downloaded
    "The Java EE 5 Tutorial" For Sun Java System Application Server Platform Edition 9, dated: June 16 2006
    The source for the tutorial examples is obtained from the above mentioned "The Java EE 5 Tutorial" online, when on that page click on "Download". The downloaded file is
    javaee-5-doc-tutorial-1[1].0_01.
    I am running Sun Java System Application Server Platform Edition 9.0 (build b48).
    I am referring to what happens when I follow the instructions on pages 1209-1213 of the manual
    After you have read the description of the problem, please see below for output from running:
    ant create-tables
    ant
    ant deploy
    which I did according to the tutorial. Also I created the users according to the tutorial.
    As you can see below,
    ant reported �dukesbank-war\src\conf\persistence.xml� missing
    Could someone please explain why (and whether that is the reason for my problems).
    This seems significant (though I am an absolute beginner in J2EE and may be wrong). Would it be possible that the file �dukesbank-war\src\conf\persistence.xml� mistakenly was not included in the zipped source code file?
    APPLICATION CLIENT it would seem runs okay. I could log on as bankadmin, create a new customer.
    WEB CLIENT
    First of all the manual says the url is
    http://localhost:1189/dukesbank/main.faces
    but the url that works is
    http://localhost:1189/dukesbank-war/main.faces
    Is that just a small inaccuracy in the manual, or there is more to it?
    Now for the problem:
    I do get the page �Please enter your customer ID and password and click Submit�
    If I enter the user 200 (the one created as per the tutorial), I get:
    HTTP Status 403 - Access to the requested resource has been denied
    type Status report
    message Access to the requested resource has been denied
    description Access to the specified resource (Access to the requested resource has been denied) has been forbidden.
    Sun Java System Application Server Platform Edition 9.0
    However, if I enter a non-existing user I get the page �dukesbank-war/j_security_check � which tells me:
    �Please check your customer ID and password.�
    �. Which is of course a correct response. (I would get the same response with the correct user 200 but incorrect password, which also makes sense)
    So, what is the problem when I use a correct user name and password, why can't I proceed?
    THE ANT OUTPUTS:
    C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\examples\dukesbank>ant create
    -tables
    Buildfile: build.xml
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database already started on host localhost, port 1527.
    [exec] Command start-database executed successfully.
    delete-tables:
    [sql] Executing file: C:\javaeetutorial5\examples\common\sql\javadb\de
    .sql
    [sql] 24 of 24 SQL statements executed successfully
    create-tables:
    [sql] Executing file: C:\javaeetutorial5\examples\common\sql\javadb\tu
    al.sql
    [sql] 181 of 181 SQL statements executed successfully
    BUILD SUCCESSFUL
    Total time: 9 seconds
    C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\examples\dukesbank>ant
    Buildfile: build.xml
    -pre-init:
    init:
    default-ear:
    -pre-init:
    init:
    default-ear:
    -pre-compile:
    bpp-actual-compilation:
    [echo] Compiling dukesbank-ejb
    [mkdir] Created dir: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exam
    ples\dukesbank\dukesbank-ejb\build\jar
    [javac] Compiling 25 source files to C:\javaee-5-doc-tutorial-1[1].0_01\java
    eetutorial5\examples\dukesbank\dukesbank-ejb\build\jar
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    -post-compile:
    compile:
    package:
    bpp-package-persistence-unit-war:
    bpp-package-persistence-unit-ejb-jar:
    [copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
    \examples\dukesbank\dukesbank-ejb\build\jar\META-INF
    package-persistence-unit:
    [delete] Deleting: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\example
    s\dukesbank\dukesbank-ejb\build\dukesbank-ejb.jar
    [jar] Building jar: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exa
    mples\dukesbank\dukesbank-ejb\build\dukesbank-ejb.jar
    [delete] Deleting directory C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial
    5\examples\dukesbank\dukesbank-ejb\build\jar
    bpp-copy-dist:
    [copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
    \examples\dukesbank\dukesbank-ejb\dist
    default-not-ear:
    default:
    -pre-init:
    init:
    default-ear:
    copy-common-jars:
    -pre-compile:
    bpp-actual-compilation:
    [echo] Compiling dukesbank-appclient
    -post-compile:
    compile:
    package:
    [mkdir] Created dir: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exam
    ples\dukesbank\dukesbank-appclient\build\app-client
    [copy] Copying 27 files to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutoria
    l5\examples\dukesbank\dukesbank-appclient\build\app-client
    [delete] Deleting: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\example
    s\dukesbank\dukesbank-appclient\build\dukesbank-appclient.jar
    [jar] Building jar: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exa
    mples\dukesbank\dukesbank-appclient\build\dukesbank-appclient.jar
    [delete] Deleting directory C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial
    5\examples\dukesbank\dukesbank-appclient\build\app-client
    bpp-copy-dist:
    [copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
    \examples\dukesbank\dukesbank-appclient\dist
    default-not-ear:
    default:
    Trying to override old definition of task iterate
    -pre-init:
    init:
    default-ear:
    build-common:
    -pre-init:
    init:
    default-ear:
    -pre-compile:
    bpp-actual-compilation:
    [echo] Compiling dukesbank-ejb
    [mkdir] Created dir: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exam
    ples\dukesbank\dukesbank-ejb\build\jar
    [javac] Compiling 25 source files to C:\javaee-5-doc-tutorial-1[1].0_01\java
    eetutorial5\examples\dukesbank\dukesbank-ejb\build\jar
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    -post-compile:
    compile:
    package:
    bpp-package-persistence-unit-war:
    bpp-package-persistence-unit-ejb-jar:
    [copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
    \examples\dukesbank\dukesbank-ejb\build\jar\META-INF
    package-persistence-unit:
    [delete] Deleting: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\example
    s\dukesbank\dukesbank-ejb\build\dukesbank-ejb.jar
    [jar] Building jar: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exa
    mples\dukesbank\dukesbank-ejb\build\dukesbank-ejb.jar
    [delete] Deleting directory C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial
    5\examples\dukesbank\dukesbank-ejb\build\jar
    bpp-copy-dist:
    [copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
    \examples\dukesbank\dukesbank-ejb\dist
    default-not-ear:
    default:
    copy-common-jars:
    [copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
    \examples\dukesbank\dukesbank-war\build\web\WEB-INF\lib
    -pre-compile:
    bpp-actual-compilation:
    [echo] Compiling dukesbank-war
    -post-compile:
    compile:
    package:
    [mkdir] Created dir: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exam
    ples\dukesbank\dukesbank-war\build\war
    bp-copy-classes:
    [mkdir] Created dir: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exam
    ples\dukesbank\dukesbank-war\build\war\WEB-INF\classes
    [copy] Copying 25 files to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutoria
    l5\examples\dukesbank\dukesbank-war\build\war\WEB-INF\classes
    [copy] Copying 27 files to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutoria
    l5\examples\dukesbank\dukesbank-war\build\war
    bpp-package-persistence-unit-war:
    [mkdir] Created dir: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exam
    ples\dukesbank\dukesbank-war\build\war\WEB-INF\classes\META-INF
    [copy] Warning: Could not find file C:\javaee-5-doc-tutorial-1[1].0_01\java
    eetutorial5\examples\dukesbank\dukesbank-war\src\conf\persistence.xml to copy.
    [copy] Warning: Could not find file C:\javaee-5-doc-tutorial-1[1].0_01\java
    eetutorial5\examples\dukesbank\dukesbank-war\src\conf\persistence.xml to copy.
    bpp-package-persistence-unit-ejb-jar:
    package-persistence-unit:
    [delete] Deleting: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\example
    s\dukesbank\dukesbank-war\build\dukesbank-war.war
    [jar] Building jar: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exa
    mples\dukesbank\dukesbank-war\build\dukesbank-war.war
    [delete] Deleting directory C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial
    5\examples\dukesbank\dukesbank-war\build\war
    bpp-copy-dist:
    [copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
    \examples\dukesbank\dukesbank-war\dist
    default-not-ear:
    default:
    -pre-compile:
    bpp-actual-compilation:
    [echo] Compiling dukesbank
    -post-compile:
    compile:
    package:
    [echo] building ear package
    [mkdir] Created dir: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exam
    ples\dukesbank\build\ear
    [mkdir] Created dir: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exam
    ples\dukesbank\build\ear\META-INF
    [copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
    \examples\dukesbank\build\ear\META-INF
    [copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
    \examples\dukesbank\build\ear\META-INF
    bpp-copy-dist:
    [copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
    \examples\dukesbank\build\ear
    bpp-copy-dist:
    [copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
    \examples\dukesbank\build\ear
    Trying to override old definition of task iterate
    bpp-copy-dist:
    [copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5
    \examples\dukesbank\build\ear
    [delete] Deleting: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\example
    s\dukesbank\build\dukesbank.ear
    [jar] Building jar: C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\exa
    mples\dukesbank\build\dukesbank.ear
    bpp-copy-dist:
    [copy] Copying 1 file to C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial
    \examples\dukesbank\dist
    default-not-ear:
    default:
    BUILD SUCCESSFUL
    Total time: 9 seconds
    C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\examples\dukesbank>
    C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\examples\dukesbank>ant deploy
    Buildfile: build.xml
    check:
    tools:
    -pre-deploy:
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database already started on host localhost, port 1527.
    [exec] Command start-database executed successfully.
    delete-tables:
    [sql] Executing file: C:\javaeetutorial5\examples\common\sql\javadb\del
    .sql
    [sql] 24 of 24 SQL statements executed successfully
    create-tables:
    [sql] Executing file: C:\javaeetutorial5\examples\common\sql\javadb\tut
    al.sql
    [sql] 181 of 181 SQL statements executed successfully
    deploy:
    [exec] Command deploy executed successfully.
    deploy-url-message:
    [echo] Application Deployed at: http://localhost:8080/dukesbank
    BUILD SUCCESSFUL
    Total time: 13 seconds
    C:\javaee-5-doc-tutorial-1[1].0_01\javaeetutorial5\examples\dukesbank>
    So please do try this all and respond. If you have ever got Duke's Bank WEB CLIENT going on any other version of j2EE tutorial or application server please let me know too, I am happy to go to a previous version!
    Message was edited by:
    grand_armee on 10-nov-06-
    added version information
    Message was edited by:
    grand_armee

    As you can see below,
    ant reported �dukesbank-war\src\conf\persistence.xml�
    missing
    Could someone please explain why (and whether that is
    the reason for my problems).
    This seems significant (though I am an absolute
    beginner in J2EE and may be wrong). Would it be
    possible that the file
    �dukesbank-war\src\conf\persistence.xml� mistakenly
    was not included in the zipped source code file?You can ignore that warning message. It's part of the BluePrints build system, which checks to see if you have persistence.xml in your WAR so it can package it. The persistence unit is in in the EJB JAR for Duke's Bank:
    javaeetutorial5/examples/dukesbank/dukesbank-ejb/src/conf/persistence.xml
    First of all the manual says the url is
    http://localhost:1189/dukesbank/main.faces
    but the url that works is
    http://localhost:1189/dukesbank-war/main.faces
    Is that just a small inaccuracy in the manual, or
    there is more to it? Actually, in "Running the Web Client" the page is:
    http://localhost:8080/bank/main.faces
    So in your case it should be:
    http://localhost:1189/bank/main.faces
    Try that URL instead, and see if you get the same error.
    -ian

  • Getting error while compiling The Duke’s Bank Application

    Hi,
    I am trying to complies The Duke’s Bank Application with reference to http://docs.jboss.org/jbossas/getting_started/v4/html/dukesbank.html guide.
    I am getting the following error:
    D:\Technical\Software\Tutorial\J2ee\Installation\J2ee-1_4\J2ee-1_4\j2ee-1_4-doc-tutorial_7\j2eetutorial14\jbossj2ee-src\examples\bank>ant -f jboss-build.xml c
    pile
    Buildfile: jboss-build.xml
    prepare:
    compile:
    [javac] Compiling 5 source files to D:\Technical\Software\Tutorial\J2ee\Installation\J2ee-1_4\J2ee-1_4\j2ee-1_4-doc-tutorial_7\j2eetutorial14\jbossj2ee-sr
    examples\bank\build
    BUILD FAILED
    D:\Technical\Software\Tutorial\J2ee\Installation\J2ee-1_4\J2ee-1_4\j2ee-1_4-doc-tutorial_7\j2eetutorial14\jbossj2ee-src\examples\bank\jboss-build.xml:44: D:\T
    hnical\Software\Tutorial\J2ee\Installation\J2ee-1_4\J2ee-1_4\j2ee-1_4-doc-tutorial_7\j2eetutorial14\jbossj2ee-src\examples\bank\${jboss.server}\lib not found.
    Total time: 0 seconds
    D:\Technical\Software\Tutorial\J2ee\Installation\J2ee-1_4\J2ee-1_4\j2ee-1_4-doc-tutorial_7\j2eetutorial14\jbossj2ee-src\examples\bank>
    Its not able to find ${jboss.server}\lib.
    What is the solution for this compiling problem. Please help me.
    Thanks in Advance.

    Hi,
    This could also be a reason :
    If you have any private proc defined in package body, make sure you define it at the top before using in other proc inside package body.

  • Why can't use all the function when deployed Duke Bank successfully

    i am use the DukesBankApp.ear in j2eetutorial14 to deployed .When i change the "public Object ejbCreate() throws CreateException" to "public String ejbCreate() throws CreateException",deployed Duke Bank successfully
    But,I open the client,i can not use all the function. for example,when i creat new customer or account .Applecation message watch will say "remote exception"
    why?or send the true DukesBankApp.ear to me .My mailbox is "[email protected]"
    thinks!!!!! i want to receive your help imminence!think you very much!

    the sever log say:
    [#|2005-05-10T22:39:18.609+0800|&#20449;&#24687;|sun-appserver-pe8.0|javax.enterprise.system.container.ejb|_ThreadID=13;|
    javax.ejb.EJBException: createCustomer: Could not create Entity EJB; nested exception is: com.sun.jdo.api.persistence.support.JDOFatalUserException: JDO76604: JNDI lookup for cmp-resource 'jdbc/BankDB' failed.
    NestedException: javax.naming.NameNotFoundException: BankDB not found
         at com.sun.ebank.ejb.customer.CustomerControllerBean.createCustomer(Unknown Source)
         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 com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:146)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:930)
         at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:151)
         at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:128)
         at $Proxy27.createCustomer(Unknown Source)
         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 com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:117)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:651)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:190)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1653)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1513)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:895)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:172)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:668)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:375)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.read(SocketOrChannelConnectionImpl.java:284)
         at com.sun.corba.ee.impl.transport.ReaderThreadImpl.doWork(ReaderThreadImpl.java:73)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:382)
    |#]

  • Why am I continually being asked my security question on my banking application when I use either Windows XP or Windows 7 and Firefox 3.6.13 but not on my Windows XP system with Firefox 3.6.3?

    I have three computers, two run Windows XP. One of the XP systems has Firefox 3.6.3 and the other has 3.6.13 installed. The banking application login acts normally with Firefox 3.6.3 but each banking login requires the security question answered with Firefox 3.6.13. This happens on both the Windows XP system using 3.6.13 and the Windows 7 system using 3.6.13. Testing Internet Explorer on all three computers does not show the same problem with the security question.
    I am unable to trace this starting with any particular Firefox update due to initially thinking the problem was with the banking website.
    The login webpage is https://you.usersonlnet.com/asp/USERS/Common/Login/NetLogin.asp

    I believe I've solved this issue by carrying out the following action:-
    First cancel all “send and receive” operations in OutLook. Next remove all emails from your "Outbox" (by either deleting them or moving them to the “Draft” folder). Next shutdown OutLook and then click on the “Start” button on the lower left-hand side of the Window’s taskbar, then click on “Run” now type in “regsvr32.exe inetcomm.dll” without the quotation marks, so it looks like this:
    regsvr32.exe inetcomm.dll
    Note the space between .exe and inetcomm.dll and hit “Enter” on the keyboard.
    The computer will execute the command. If all goes well in a few moments a dialog box will appear and state “dll registered successful
    I have not had it hand since ... cross fingers ;)

  • Duke's Bank Application

    Where can I find the files for the duke's bank application?

    Where did you look?
    What did Google suggest?
    %

  • Got Error when Deploy Duke Bank!!!!!!!!!

    I had deployed the Duke Bank for over ten times but I never succeed.
    I had followed the "j2eetutorial14" step by step but I got error time by time.
    sometimes I got the Error like this:
    distribute: D:\j2eetutorial14\examples\bank\DukesBankApp.ear
    deployment started : 0%
    Deploying application in domain failed; Fatal Error from EJB Compiler -- Compilation failed: Native compiler returned an error: 1
    Error messages are: D:\Sun\AppServer\domains\domain1\generated\ejb\j2ee-apps\DukesBankApp\com\sun\ebank\ejb\util\NextIdBean_1892492754_ConcreteImpl.java:176: ejbCreate() in com.sun.ebank.ejb.util.NextIdBean_1892492754_ConcreteImpl cannot override ejbCreate() in com.sun.ebank.ejb.util.NextIdBean; attempting to use incompatible return typefound : java.lang.Stringrequired: java.lang.Object public java.lang.String ejbCreate () ^1 error; requested operation cannot be completed
    !!! Operation Failed !!!
    !!! With The Following Failure Messages !!!
    Deploying application in domain failed; Fatal Error from EJB Compiler -- Compilation failed: Native compiler returned an error: 1
    Error messages are: D:\Sun\AppServer\domains\domain1\generated\ejb\j2ee-apps\DukesBankApp\com\sun\ebank\ejb\util\NextIdBean_1892492754_ConcreteImpl.java:176: ejbCreate() in com.sun.ebank.ejb.util.NextIdBean_1892492754_ConcreteImpl cannot override ejbCreate() in com.sun.ebank.ejb.util.NextIdBean; attempting to use incompatible return typefound : java.lang.Stringrequired: java.lang.Object public java.lang.String ejbCreate () ^1 error; requested operation cannot be completedFatal Error from EJB Compiler -- Compilation failed: Native compiler returned an error: 1
    Error messages are: D:\Sun\AppServer\domains\domain1\generated\ejb\j2ee-apps\DukesBankApp\com\sun\ebank\ejb\util\NextIdBean_1892492754_ConcreteImpl.java:176: ejbCreate() in com.sun.ebank.ejb.util.NextIdBean_1892492754_ConcreteImpl cannot override ejbCreate() in com.sun.ebank.ejb.util.NextIdBean; attempting to use incompatible return typefound : java.lang.Stringrequired: java.lang.Object public java.lang.String ejbCreate () ^1 error
    [Completed (time=51.0sec, status=13)]
    [Completed (time=51.1sec, status=13)]
    sometimes I got the Error like this:
    distribute: D:\j2eetutorial14\examples\bank\DukesBankApp.ear
    [TIMEOUT: 'ProgressObject' never started running.]
    deployment started : 0%
    !!! Operation Incomplete [NotRunning] !!!
    [Completed (time=4.9sec, status=12)]
    my env:j2ee1.4 2005Q1+win2003
    Can anyone help me???

    i noticed that my path was pointed to the regular jdk install. i changed it to point to the one in my j2ee home. same error. bounce the server and the deploytool also.
    here is my new asant
    C:\Sun\AppServer\j2eetutorial14\examples\bank>asant listprops
    Buildfile: build.xml
    listprops:
    [echo] Path information
    [echo] j2ee.home = C:Sun\AppServer
    [echo] j2ee.tutorial.home = C:\SunAppServer\j2eetutorial14
    [echo] j2ee.home = C:Sun\AppServer
    [echo] env.Path = C:\oracle\bin;C:\oracle\jre\1.4.2\bin\client;C:\oracle\jre\1.4.2\bin;C:\oracl
    e\product\10.1.0\db_1\bin;C:\oracle\product\10.1.0\db_1\jre\1.4.2\bin\client;C:\oracle\product\10.1.
    0\db_1\jre\1.4.2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Te
    chnologies\ATI Control Panel;C:\Sun\AppServer\jdk\bin;C:\Sun\AppServer\jdk\bin;C:\Sun\AppServer\bin;
    ;C:\Program Files\SSH Communications Security\SSH Secure Shell
    [echo] env.PATH = ${env.PATH}
    [echo] Classpath information
    [echo] classpath = ${env.CLASSPATH}
    [echo] Admin information
    [echo] admin.password = ${AS_ADMIN_PASSWORD}
    [echo] admin.password.file = C:\SunAppServer\j2eetutorial14/examples/common/admin-password.txt
    [echo] admin.host = localhost
    [echo] admin.user = admin
    [echo] admin.port = 4848
    [echo] https.port = 8181
    [echo] Domain information
    [echo] domain.resources = "domain.resources"
    [echo] domain.resources.port = 8080
    [echo] Database information
    [echo] db.root = C:Sun\AppServer/pointbase
    [echo] db.driver = com.pointbase.jdbc.jdbcUniversalDriver
    [echo] db.host = localhost
    [echo] db.port = 9092
    [echo] db.sid = sun-appserv-samples
    [echo] db.url = jdbc:pointbase:server://localhost:9092/sun-appserv-samples
    [echo] db.user = pbpublic
    [echo] db.pwd = pbpublic
    [echo] url.prop = DatabaseName
    [echo] ds.class = com.pointbase.jdbc.jdbcDataSource
    [echo] db.jvmargs = -ms16m -mx32m
    BUILD SUCCESSFUL
    Total time: 1 second
    C:\Sun\AppServer\j2eetutorial14\examples\bank>
    v

  • WEB BASED MAPPING APPLICATION TO DEVELOP QUERY UTILITY USING MAPVIEWER

    Dear Sir,
    please any one can answer me as soon as possible its very urgent
    WEB BASED MAPPING APPLICATION TO DEVELOP QUERY UTILITY USING MAPVIEWER
    I     As oracle mapviewer Chapter 8 (Oracle Maps) says generating our own Web based mapping application we are trying to generate our own maps for our own data contains in our layers like example boundary lines and roads and etc. and we are following complete example as described in Oracle Mapviewer Document Chapter 8.
    Before this step we tried with demo data downloaded from OTN mvdemo. And we downloaded latest demo today itself from the OTN and imported into our database schema called mvdemo. And we copied all three jar files mvclient and mvconnection and mvpalette into our jdeveloper .
    II.     We created a jsp to execute the following code from oracle mapviewer chapter 8 documents
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/customizable" prefix="cust"%>
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/jwcache.tld"
    prefix="jwcache"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/fileaccess.tld"
    prefix="fileaccess"%>
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/jesitaglib.tld"
    prefix="JESI"%>
    <f:view>
    <html>
    <head>
    <META http-equiv="Content-Type" content="text/html" charset=UTF-8>
    <TITLE>A sample Oracle Maps Application</TITLE>
    <script language="Javascript" src="jslib/loadscript.js"></script>
    <script language=javascript>
    var themebasedfoi=null
    function on_load_mapview()
    var baseURL = " http://localhost:8888/mapviewer/omserver";
    // Create an MVMapView instance to display the map
    var mapview = new MVMapView(document.getElementById("map"), baseURL);
    // Add a base map layer as background
    mapview.addBaseMapLayer(new MVBaseMap("mvdemo.demo_map"));
    // Add a theme-based FOI layer to display customers on the map
    themebasedfoi = new MVThemeBasedFOI('themebasedfoi1','mvdemo.customers');
    themebasedfoi.setBringToTopOnMouseOver(true);
    mapview.addThemeBasedFOI(themebasedfoi);
    // Set the initial map center and zoom level
    mapview.setCenter(MVSdoGeometry.createPoint(-122.45,37.7706,8307));
    mapview.setZoomLevel(4);
    // Add a navigation panel on the right side of the map
    mapview.addNavigationPanel('east');
    // Add a scale bar
    mapview.addScaleBar();
    // Display the map.
    mapview.display();
    function setLayerVisible(checkBox){
    // Show the theme-based FOI layer if the check box is checked and
    // hide the theme-based FOI layer otherwise.
    if(checkBox.checked)
    themebasedfoi.setVisible(true) ;
    else
    themebasedfoi.setVisible(false);
    </script>
    </head>
    <body onload= javascript:on_load_mapview() >
    <h2> A sample Oracle Maps Application</h2>
    <INPUT TYPE="checkbox" onclick="setLayerVisible(this)" checked/>Show customers
    <div id="map" style="width: 600px; height: 500px"></div>
    </body>
    </html>
    </f:view>
    <!--
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <title>mapPage</title>
    </head>
    <body><h:form binding="#{backing_mapPage.form1}" id="form1"></h:form></body>
    </html>
    -->
    <%-- oracle-jdev-comment:auto-binding-backing-bean-name:backing_mapPage--%>
    III.     When we run this jsp it’s giving us following Two errors
    1     Error:     ‘MVMapView’ is undefined
         Code:     0
         URL:     http://192.168.100.149:8988/MapViewerApp-WebProj-context-root/faces/mapPage.jsp
    2     Error:     ‘themebasedfoi’ is null or not an object
         Code:     0
         URL:     http://192.168.100.149:8988/MapViewerApp-WebProj-context-root/faces/mapPage.jsp
    Please let us know what could be problem as soon as possible. Very urgent
    Please let us know where we can find Mapviewer AJAX API’s for Jdeveloper Extention
    Thanks
    Kabeer

    I currently use parameters, and they are passed from the form to the report. Report is then generated based on a function returning ‘strongly typed’ cursor. The ‘strongly typed’ cursor in my case returns a record consisting of an orderly collection of fields.
    This collection of fields is returned by another function that relies on the IF … THEN logic.
    However, the number of IF ... THEN statements is quite large (currently 64 covering all possible combinations of 6 parameters available in the form).
    I would like to avoid the large number of IF … THEN statements, and hope that there is a way of passing a string to a query, where the Dynamic SQL would in Select close and Where close reflect parameters passed by the form.
    In addition to this I would like to avoid creating and populating a table or a view dedicated to the report, because this may lead to a conflict in case of multiple users concurrently generating reports with different choice of parameters.
    Edited by: user6883574 on May 28, 2009 9:16 PM

  • Error targeting server for the EJB module while deploying the sample banking application

    I am currently having a very difficult time attempting to deploy the
    example banking application that I downloaded from the BEA website. I
    have followed all of the steps in the "Hands On: Deploying the Sample
    Banking Application" document, and I do fine until I get to the next to
    last step. When I attempt to target the server for the EJB module, the
    deployment process generates the error that I have included at the end
    of this message.
    I can get to the login.html page under "http://localhost:7001/banking/",
    but after that I can't go further.
    Any suggestions. BTW, in case you haven't figured it out, I'm brand new
    to BEA WebLogic server.
    Thanks in advance for any help you can offer.
    Scott
    Error deploying application \ejb:
    Unable to deploy EJB: \ejb from \ejb:
    Compiler failed
    executable.exec(java.lang.String[javac,-nowarn,-classpath,E:\bea\wlserver6.1\tmp_ejbwinged-demon7001\banking-exploded_\ejb;E:\bea\wlserver6.1\.\config\ScottsServer\applications\.wlnotdelete\wlap60763\ejb;E:\bea\jdk131\jre\lib\rt.jar;E:\bea\jdk131\jre\lib\i18n.jar;E:\bea\jdk131\jre\lib\sunrsasign.jar;E:\bea\jdk131\jre\classes;.;E:\bea\wlserver6.1\lib\weblogic_sp.jar;E:\bea\wlserver6.1\lib\weblogic.jar,-d,E:\bea\wlserver6.1\tmp_ejbwinged-demon7001\banking-exploded_\ejb,E:\bea\wlserver6.1\tmp_ejbwinged-demon7001\banking-exploded_\ejb\examples\tutorials\migration\banking\*.java])
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:302)
    at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:296)
    at weblogic.ejb20.deployer.Deployer.compileEJB(Deployer.java:684)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:851)
    at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:30)
    at weblogic.j2ee.Application.addComponent(Application.java:163)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
    at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:491)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:361)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy11.addDeployment(Unknown Source)
    at
    weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1516)
    at
    weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:895)
    at
    weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:295)
    at
    com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
    at
    com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
    at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
    at $Proxy68.setTargets(Unknown Source)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
    at
    weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:135)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    The deployment process invokes javac internally to compile some generated classes.
    Do you have javac installed and in the path?
    Seth
    Scott Springer wrote:
    I am currently having a very difficult time attempting to deploy the
    example banking application that I downloaded from the BEA website. I
    have followed all of the steps in the "Hands On: Deploying the Sample
    Banking Application" document, and I do fine until I get to the next to
    last step. When I attempt to target the server for the EJB module, the
    deployment process generates the error that I have included at the end
    of this message.
    I can get to the login.html page under "http://localhost:7001/banking/",
    but after that I can't go further.
    Any suggestions. BTW, in case you haven't figured it out, I'm brand new
    to BEA WebLogic server.
    Thanks in advance for any help you can offer.
    Scott
    Error deploying application \ejb:
    Unable to deploy EJB: \ejb from \ejb:
    Compiler failed
    executable.exec(java.lang.String[javac,-nowarn,-classpath,E:\bea\wlserver6.1\tmp_ejbwinged-demon7001\banking-exploded_\ejb;E:\bea\wlserver6.1\.\config\ScottsServer\applications\.wlnotdelete\wlap60763\ejb;E:\bea\jdk131\jre\lib\rt.jar;E:\bea\jdk131\jre\lib\i18n.jar;E:\bea\jdk131\jre\lib\sunrsasign.jar;E:\bea\jdk131\jre\classes;.;E:\bea\wlserver6.1\lib\weblogic_sp.jar;E:\bea\wlserver6.1\lib\weblogic.jar,-d,E:\bea\wlserver6.1\tmp_ejbwinged-demon7001\banking-exploded_\ejb,E:\bea\wlserver6.1\tmp_ejbwinged-demon7001\banking-exploded_\ejb\examples\tutorials\migration\banking\*.java])
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:302)
    at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:296)
    at weblogic.ejb20.deployer.Deployer.compileEJB(Deployer.java:684)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:851)
    at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:30)
    at weblogic.j2ee.Application.addComponent(Application.java:163)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
    at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:491)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:361)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy11.addDeployment(Unknown Source)
    at
    weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1516)
    at
    weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:895)
    at
    weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:295)
    at
    com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
    at
    com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
    at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
    at $Proxy68.setTargets(Unknown Source)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
    at
    weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:135)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

  • Using EJBs in Web Dynpro Applications

    I have recently started to develop Web applications using the Web Dynpro framework. Coming from a pure J2EE world, I must admit that Web Dynpro has a few innovative features that I find interesting for user interface development. The use of component & view contexts, for example, is not unlike the ActionForms that one may find in a Struts application, but pushed a bit further. No complaints here.
    What I do have some problems with is the whole CommandBean paradigm that is put forth by SAP (refer to the document <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20ejbs%20in%20web%20dynpro%20applications.pdf">Using EJBs in Web Dynpro Applications</a>).
    I do understand the usefulness of defining a model that will be used to generate and eventually bind to Context data structures. That's fine. What I do object to is the use of a so-called CommandBean to play that role. Again, coming from a J2EE world, I am familiar with the BusinessDelegate pattern - which would typically be used by a client application to invoke business logic on the server side. I would propose that a better, cleaner way of integrating EJBs with the Web Dynpro framework would be to use a BusinessDelegate for invoking business logic, and importing a separate and distinct ModelBean (instead of a CommandBean) to be used for defining and binding to Context data.
    I have built one Web Dynpro application thus far. Instead of using a CommandBean, I created a ModelBean that extends my business object DTO (Data Transfer Object) (which is quite appropriate for that role, given that it implements all the get & set methods that are required for the business data that I need to model). My Web Dynpro application also makes use of an independant BusinessDelegate that is packaged with my EJB DC - this is a standard best practice on J2EE projects. I have been asked by the people working with me to modify this architecture to bring it more in line with the SAP way of doing things. I am open-minded and willing to learn and accept new ways of thinking and doing things. However, I fail to understand the usefulness of merging structure and behaviour by resorting to CommandBeans:
    - <b>It violates the MVC paradigm</b> by having one object (the CommandBean) serve as both model AND controller as far as the Web Dynpro application is concerned. The CommandBean is obviously a model - since it is literally imported as such into the Web Dynpro application. It is ALSO a controller from the Web Dynpro's application perspective, since all calls to the back-end go thru the CommandBean via one or more of its execute_xxx methods. In contrast, the use of a business delegate by the Web Dynpro application clearly separates the model (the CommandBean... or rather, a more suitably named ModelBean) from the controller (BusinessDelegate).
    - <b>Doesn't carry its own weight</b>. In other words, I haven't yet been provided with any valid justification for going thru the extra effort of coding the CommandBean's execute methods. It's been proposed to me that it somehow serves as an abstraction layer between the Web Dynpro application and the business logic. I would argue that it is the BusinessDelegate's role to abstract away the back-end logic from clients. If one does have a BusinessDelegate available, I would argue there's no need to code execute methods in a separate CommandBean. To prove my point, I would simply point out that all of the CommandBean examples that I have seen so far, either in How-To documents, or in production code, all follow the same pattern....
    CommandBean.execute_doSomething() calls BusinessDelegate.doSomething()
    Not a heck of an "abstraction" layer... I would in fact argue that it is worse than useless. If some major change occurs in the business logic that requires changing the doSomething() operation, we expect of course to modify the BusinessDelegate. The Web Dynpro client will also presumably need to be modified - that's to be expected, and unavoidable. But then, we'll also need to go about and change the CommandBean's execute_doSomething() method - again, extra work for no apparent benefit. Adding and removing business methods has the same implication. All this for an layer that simply adds the prefix execute_ in front of all business method calls... Is this "abstraction layer" worth the cost of creating and maintaining it ??
    - <b>Unnecessarily complicates error handling</b>. I have been told that for technical reasons, it is recommended that all exceptions thrown by the CommandBean be of type WDException or WDRuntimException. But what if the client application needs to react differently to different failure scenarios ? When I create a business object, I might wish to provide the user with an error messages if connection is lost to the backend, and with a different error message if an object already exists in the database with the same attributes. In order to do that, I will have to catch the WDException, extract the cause, and continue processing from there... possible, yes, but clearly less standard and more labor intensive than the classical try/catch mechanism.
    To say nothing about the fact that SAP's own API documentation clearly states that applications using Web Dynpro can reference and catch WDExceptions, but THEY MUST NOT THROW OR EXTEND IT !
    - <b>Produces unnecessary DCs</b>. Page 6 of the aforementioned document presents an architectural view of a Web Dynpro project that uses a CommandBean. Why an extra DC for the CommandBean ?? I created my ModelBean class right inside the Web Dynpro project (in the Package view). That, to me, is where this class should reside, because it is created for no other reason that to be used by this particular Web Dynpro application. What is the benefit of placing it in its own independant DC ?
    - <b>Not a typical application of the Command pattern</b>. The well-documented command pattern (Design Patterns - Gang of Four) has been devised mainly to enable encapsulation of request as objects, thereby making it possible to:
    - specify, queue and execute requests at different times
    - decouple execution of a command from its invoker
    - support undo operations
    - support logging changes so that they can be reapplied in case of system crash making it possible to assemble commands into composite commands (macros), thereby structuring a system around high-level operations built on primitive operations.
    None of this applies to the way the SAP CommandBeans are being used. Not that much of an issue to people new to J2EE and/or OO development... but quite confusing for those already familiar with the classic Command pattern.
    At this point, I fail to understand the advantage of merging structure (model) and behaviour (execute methods) through the use of a unique CommandBean object. Am I missing something ?

    Hi Romeo,
    You would be disappointed, this reply ain't anywhere nearby to what you are talking about...
    I wanted to mail you, but you have not mentioned your email in your profile.
    I am really impressed by your flair for writing. It would be far better had you written a blog on this topic. Believe me, it would really be better. There is a much wider audience waiting out there to read your views rather than on the forums. This is what I believe. To top it, you would be rewarded for writing something like this from SDN. On the blogs too, people can comment and all, difference being there you would be rewarded by SDN, here people who reply to you would be rewarded by you. Doesn't make  much a difference.
    Anyways the ball is still in your court
    As far as I am concerned, it has still not been much time since I have started working on Web Dynpro. So can't really comment on the issue...
    Bye
    Ankur

  • [J2EE:160167] uses ejb-links but no EJB modules

    Dear All
    Seeking support/assistance to resolve the below problem. I'm using laster Jdeveloper 11g software publish in 2011.
    weblogic.deployment.EnvironmentException: [J2EE:160167]The module abc-ViewController-context-root in application abc_Project1_abc uses ejb-links but no EJB modules were found for this application
    Please provide guidelines why this appears and how to resolve it.
    Best Regards
    Shahebaz Shaikh

    The module abc-ViewController-context-root in application abc_Project1_abc uses ejb-links but no EJB modules were found for this application
    Is the application deployed as an EAR application with web and ejb modules? If not, deploy as an EAR application.

  • JMS Application on J2EE server

    Hi,
    How can I run a simple PTP client-server application of JMS on windows platform? I am using a machine running windows 98, on which I have installed JDK1.3 and J2SDKEE1.2.1. I use J2EE server to deploy EJBs and Servlets on localmachine. I want to use the same J2EE server (J2SDKEE1.2.1 for windows) for JMS applications also. Please help me.
    Paras.

    Sun's J2EE SDK 1.2.1 does not support JMS. In other words, it does not have a JMS provider.
    You need to use Sun's J2EE SDK 1.3 to use the reference implementation of JMS API.
    However, you could use JMS provider from other vendor and still use J2EE SDK 1.2.1 reference inplementation as your application server.

  • Calling a java application from j2ee web application

    Hi,
    I have a j2ee application in which i am making a call to a jar file which is a java application.
    Runtime a4 = Runtime.getRuntime();
    Runtime a = Runtime.getRuntime();
    String cmd[] = new String[14];
    cmd[0] = "cmd";
    cmd[1] = "/c";
    cmd[2] = "start";
    cmd[3] = "javaw";
    cmd[4] = "-jar";
    cmd[5] = CATALINA_HOME+"\\webapps\\AveksaTesting\\AveksaTestingJava\\dist\\AveksaTestingJava.jar";
    cmd[6] = SERVER_TESTS;
    cmd[7] = COLLECTOR_TESTS;
    cmd[8] = SYSTEM_TESTS;
    cmd[9] = CREATE_ORACLE;
    cmd[10] = DB_NAME;
    cmd[11] = DB_DUMP;
    cmd[12] = email;
    cmd[13] = isMIGRATE;
    try{
    java.lang.Process p = a.exec(cmd);
    Now in the called java application, i am first shutting down the tomcat server by calling shutdown.bat script and then starting it using startup.bat. But the problem i am facing is when i restart the server from java application, it says address already in use(i.e. port 8445 on which tomcat is runninng).
    Id i just call the java application and do the same operation it works fine. I guess when i am calling java from j2ee application, j2ee still has some threads holding java and not shutting down tomcat properly.
    Can anyone suggest me what can be done in this case. I have to call a java application from j2ee and restart the tomcat server many times.
    Thanks in advance
    -Vikram

    Annoyingly crossposted.
    http://forum.java.sun.com/thread.jspa?threadID=730657

Maybe you are looking for

  • Vendor payments for PO appear in PO

    Hi Is there is any possibliy so that i can see the vendor down payment and the other progreesive payments made to vendor. Also i want to link the payments made to vendor i.e what all payments is made to vendor aganist the PO should appear in PO in th

  • Can i sync iphone to ipad

    can i sync my iphone to my ipad

  • Checking Quotations while PO Release

    While releasing the PO i have to check whether the PO is raised  for the vendor who have quoted the min price for that pariticular material. i tried to select the po line item and clicked on environment, there i selected RFQ/Quotation But the system

  • How do I download my Nikons pictures into Elements?

    How do I download my Nikons pictures into Elements?

  • Saving image as JPG

    Hi all, after editing my photo in Photoshop I save as JPG but later when I open it, it automatically opens Photoshop everytime which I don't want to do.  What am I doing wrong? Thanks so much for your advice. Louise