J2EE applications deploying

Hi all.
I'd like to know what differences there are when I deploy a J2EE application as an application instead of deploying it as stand-alone modules, other than classes being loaded by the same class loader. I am specially interested in differences at a JNDI level, if there are differences at all.
Thanks in advance.

My pleasure.
From the nature of your original question, it sounds to me that you have a good grip on the J2EE, so, if what I am about to point out is something that you already know, then by all means please ignore it...
The J2EE defines several packaging methodolgies: EJB (.jar), web application ([b/.war[/b]) and enterprise application (.ear). Each packaging paradigm is an archive, specifically, a Java archive. The J2EE specifies the specific layout of each archive as well as the specific XML deployment descriptors which are needed. EJB's can be contained within a web application and a web application can be contained with an enterprise application. Additionally, the J2EE also specifies a client application which can be packaged into an enterprise application - again, the client application is an archive, with the XML descriptors specified by the J2EE. If I remember right, the J2EE also specifies other modules, such as plain Java classes that are to be used by the enterprise application.
From a logical namespace perspective, clients of these components see one view - they need not concern themselves with any differences in terms of acquiring references to components in the container via the JNDI. However, it should be noted that the J2EE, for EJB's, specifies not only home and remotes, but local home and remotes. Just as the "normal" home interface is bound to the JNDI, so is the local home interface; both of these must be not be bound to the same node in the JNDI namespace.
Hope this helps.

Similar Messages

  • Using Web Dynpro WDUrlGenerator from within J2EE Application deployed on NW

    I have two applications deployed on a NetWeaver Application Server 2004s.
    1. A Web Dynpro application.
    2. A J2EE Application
    What I want to do is to be able to build a url to the Web Dynpro application from within the J2EE application. Obviously the problem is using Web Dynpro classes within the J2EE application.
    So I edited the Java Build Path of the J2EE application to include the werbdynproservices.jar file and exception.jar files by extending ECLIPSE_HOME variable in the libraries section. I also checked them in Order and Export. I verified the built .war file and it does contain the two .jar files.
    This was sufficient to get my project build and deployed, however the servlet in my J2EE application shows NoClassDefFoundException when I run it. My guess is there's more I need to do to get the WDUrlGenerator to run in my J2EE class.
    Is this possible or is there a better way? I am trying to avoid the client having to modify a web.xml for each depployment.
    Thanks in Advance.

    This looks like what I want, but I am unable to test it.
    I found the application-j2ee-engine.xml file under the <project-root>/gen_wdp folder. I then attempted to open it with the SAP EARDD editor. It opens with the Source tab selected. If I try to click the General tab I get an error saying:
    "The source page has errors. Other pages cannot be used until these erros are corrected."
    I see nothing wrong with the XML document. It's source is here:
    <?xml version="1.0" encoding="UTF-8"?>
    <application-j2ee-engine>
        <provider-name>local</provider-name> 
        <modules-additional>
        <module>
          <entry-name>EVENTS_WorkflowNotification.wda</entry-name>
          <container-type>webdynpro</container-type>
        </module>
      </modules-additional>
    </application-j2ee-engine>
    When I deploy the application, everything works fine. I was going to edit the XML document by hand, but of course there is no DTD listed so I don't know what's supposed to go in there without the Editor doing it for me.
    Getting closer. Thanks so much.

  • Creating worker threads in J2EE application deployed in OAS...

    Will OAS allow for the creation of worker threads in a J2EE application? I can create a worker thread in my J2EE application that is deployed in OC4J Standalone, I need to verify if the same capabilities exist in OAS.
    Thank you,
    Jason

    Hi Ritushree,
    Yor approach is not correct. You need to do a JNDI lookup for the service.
    Refer
    http://help.sap.com/saphelp_nw04/helpdata/en/42/9ddd0cbb211d72e10000000a1553f6/frameset.htm
    Thanks
    Prashant

  • J2ee application deployment error

    Hi All,
             I have created a J2ee application. I have created a EJB module project in which i have created a session bean. Also I have created a Web module project, i am referring the above created EJB in this web module. Both these projects are added to one enterprise application.While deploying this ear file to j2ee engine I am getting following error.
    Aborted: development component 'TestEAR'/'sap.com'/'localhost'/'2007.06.28.10.34.29'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application sap.com/TestEAR.. Reason: Exception during generation of components of application sap.com/TestEAR in container EJBContainer.; nested exception is:      com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application sap.com/TestEAR in container EJBContainer.
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted
    Please can anybody tell me what is going wrong?
    I am using NW 2004s.
    Cheers
    jayant

    I have the same problem. I retart the SDM.and del the app in VA,It is OK now.

  • J2ee Application Deployed,error connecting to 9i db

    Hi,
    I am working on a Oracle 10g 9.0.4 AS and a Oracle 9i db, both of which I have just installed on red Hat Linux 2.1 Advanced Server.
    I have deployed a j2ee ear file in an OC4J container. The deployment works fine as I get the login page correctly. But it fails to go further than that and gives an error "contact system administrator".The Http Server logs show the following error messages :
    [Fri Mar 25 13:07:22 2005] [error] [client 127.0.0.1] [ecid: 172.16.117.169:61745:1111736242948,2] MOD_OC4J_0015: recv() returns 0. There
    has no message available to be received and oc4j has gracefully (orderly) closed the connection.
    [Fri Mar 25 13:07:22 2005] [error] [client 127.0.0.1] [ecid: 172.16.117.169:61745:1111736242948,2] MOD_OC4J_0054: Failed to call network
    routine to receive an ajp13 message from oc4j.
    [Fri Mar 25 13:07:22 2005] [error] [client 127.0.0.1] [ecid: 172.16.117.169:61745:1111736242948,2] MOD_OC4J_0033: Failed to receive an
    ajp13 message from oc4j.
    [Fri Mar 25 13:07:22 2005] [warn] [client 127.0.0.1] [ecid: 172.16.117.169:61745:1111736242948,2] MOD_OC4J_0078: Network connection errors
    happened to host: midtier.mastek.com and port: 3303 while receiving the first response from oc4j. This request is recoverable.
    I have configured a user in the database with the reqd schema and also a datasource pointing to it and whose jndi name I have specified in the application.
    Also, I get an error saying in the OC4J container :
    05/03/25 13:02:28 log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
    05/03/25 13:02:28 log4j:WARN Please initialize the log4j system properly.
    indicating that mebbe the logging hasnt been successfully installed and that's mebbe why I am not getting proper error messages.
    I am thinking that there maybe some error in the connection to the 9i database, but cant figure out what.
    PLEASE,PLEASE HELLLLPPPPP!!!!

    Also got these in logs
    emias.log
    com.evermind.server.http.HttpIOException: Broken pipe ---> Enterprise Manager
    em-application.log
    Broken pipe sometimes followed with : java.io.FileNotFoundException: Could not find ias/.uix
    and                    : java.io.FileNotFoundException: Could not find ias/clusters/.uix
    OHS errors :
    [warn] [client 127.0.0.1] MOD_OC4J_0078: Network connection errors happened to host: midtier.mastek.com and port: 3303 while receiving
    the first response from oc4j. This request is recoverable.
    March 25, 2005 12:47:15 PM IST HTTP_Server Error ohs [error] [client 172.16.117.254] (32)Broken pipe: MOD_OC4J_0087: Got an unexpected error while calling send() to send a message to oc4j
    and the error code is 32.
    March 25, 2005 12:47:15 PM IST HTTP_Server Error ohs [error] [client 172.16.117.254] MOD_OC4J_0053: Failed to call network routine to send out an ajp13 buffer message to oc4j.
    March 25, 2005 12:47:15 PM IST HTTP_Server Error ohs [error] [client 172.16.117.254] MOD_OC4J_0032: Failed to send out an ajp13 message to oc4j.
    March 25, 2005 12:47:21 PM IST HTTP_Server Error ohs [error] [client 127.0.0.1] MOD_OC4J_0015: recv() returns 0. There has no message available to be received and oc4j has gracefully (orderly)
    closed the connection.
    March 25, 2005 12:47:21 PM IST HTTP_Server Error ohs [error] [client 127.0.0.1] MOD_OC4J_0054: Failed to call network routine to receive an ajp13 message from oc4j.
    March 25, 2005 12:47:21 PM IST HTTP_Server Error ohs [error] [client 127.0.0.1] MOD_OC4J_0033: Failed to receive an ajp13 message from oc4j.

  • J2EE application deploy error

    Hi!
    thank you for see my question.
    when I deploy EJB Model to Oracle 10 AS, the server notice exception like this
    "java.rmi.RemoteException
    deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Unknown assembly root-tag attribute: xmlns. deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Unknown assembly root-tag attribute: xmlns".
    and I deploied a JSF Application to Oracle 10g AS, but the Faces Servlets cann't be used.
    please help me, thank you so much.

    What specific versions are you using? It sounds like you are deploying a J2EE 1.4 based application (from JDev 10.1.3) to OC4J/OracleAS 10.1.2. That version of the server implements J2EE 1.3 which used DTDs and not XML schema. Thus when you are throwing some schema at it, it's not able to handle it.
    Using OC4J/OracleAS 10.1.3 should solver this problem.
    -steve-

  • J2EE Application Deployment

    I have install the Oracle 9iAS and OC4J in Linux OS, how should I deploy my application in this two components. My application consists of JSP, Servlet, Java Bean, and Enterprise Java Bean.

    Hi Pang,
    You have already looked through the documentation and sample code
    that's available on OTN, haven't you? Just follow the links from
    this URL:
    http://technet.oracle.com/tech/java/oc4j/content.html
    Other links that may also be beneficial include (not in any particular
    order):
    http://www.orionserver.com
    http://www.atlassian.com
    http://www.orionsupport.com
    http://www.elephantwalker.com
    So let's say you've already looked through the documentation, and
    the code samples, and you're having trouble deploying your app.
    How did you try to deploy it? Where did the deployment fail? What
    (if any) error messages are you getting?
    Good Luck,
    Avi.

  • Multiple J2EE applications on iAS904

    Hi,
    We will be having lots of J2EE applications deploy on iAS904. Is the best practice for this to have 1 OC4J per J2EE application? Or all J2EE applications in one OC4J container?
    Thanks,
    Charles

    Hi Charles --
    It's difficult to provide a single best practice. You'll need to look at the pros/cons of each and decide what makes most sense for your environment:
    To get the ball rolling, here are some considerations:
    1 OC4J instance per app:
    + finer grained manageability -- you can make changes to the one app which may require a start/stop of the app or the instance, which won't have any effect on other running apps/OC4J instances
    + The container level log files will just contain information pertaining to that one specific application
    + The OC4J instances can be tuned specifically for the application -- ie JVM settings
    + Clustering can be targetted for the single app -- if you have multiple applications per OC4J instance, then they all will participate in clustering if it is enabled (and they are clusterable). One app per OC4J instance produces a finer grained cluster model.
    - Each OC4J instance is a JVM process. If each app has a JVM process then you may be wasting resouces on the system as the apps aren't sharing a JVM
    - More management operations may be required since you may need to configure/maintain more instance information
    I'm sure some other folks will chime in here with some more insight on their practical experiences.
    There's an Oracle Application Server Best Practices document on OTN which I seem to remember does have some coverage of management/deployment issues which may some more information for you to consider.
    cheers
    -steve-

  • No Data Source found error while deploying J2EE application

    hi
    i am new to Oracle9ias. I was going through the Oracle by Example tutorial available on the site. There i followed the steps to deploy a sample J2EE application. Acc to it i first created the datasource and then tried to deploy the application. But i am getting "datasource not found" error. I am totally unaware of the possible cause of this. The error in specific is as follows
    Deployment failed: Nested exception Root Cause: No DataSource found at jdbc/hrDS. No DataSource found at jdbc/hrDS
    Please help
    thanks
    nitin

    Document is outdated & for now could you please follow http://dev.day.com/content/kb/home/cq5/Development/HowToConfigureSlingDatasource.html

  • How to deploy oracle forms + J2EE application in single OC4J instance

    We have ORACLE forms application, which is deployed in OC4J Instance in application server.
    There are some modules, which are developed in Java/J2EE, which are invoked from Oracle forms application. Currently this java application is
    deployed in separate OC4J instance.
    Could you please help us how to combine this forms +J2ee application in single ear file,
    And this ear file has to be deployed in one OC4J instance.

    Maybe have a look at :
    http://download.oracle.com/docs/cd/B14099_19/web.1012/b14032/basics.htm

  • How to get deployment time of an J2EE application

    Hi All,
    I am developing J2EE applications on NetWeaver 7.0 and 7.1. In my application, I need to get deployment time of a J2EE application installed in the J2EE engine.
    For NetWeaver 7.1, I found SAP's Java APIs to do that:
          com.sap.engine.services.deploy.server.cache.dpl_info.Applications.get("appName").getMonitorData().getDateOfLastRedeployment();
    But for NetWeaver 7.0, I haven't found any similar stuffs.
    Could you give me any helps for the case of NetWeaver 7.0?
    Thank you very much.
    Viet

    I'm not 100% sure but you may be able to turn on tracing for the Java stack "Deploy" service.
    In Visual Administrator, go to "Global Conf [Server] -> services -> Deploy" change additional_debug_info.
    Then in "Cluster [server x] -> services -> log configurator [locations] -> com -> sap -> engine -> services -> deploy" change the debug level to "Info" or something.
    This should put some additional tracing out to the trace files which can be viewed in the Log Viewer.
    Don't forget to reset the trace level when you're done.

  • Deployed J2EE application successfully. But cannot access the application

    I installed SAP Netweaver 2004s and tried to create a Web application and an ear file looking at the example given at
    http://help.sap.com/saphelp_nw04/helpdata/en/7f/5c93acbd1343d4be7d79dc298faa7b/frameset.htm
    I followed all the steps listed there. The deployment from the Developer Studio showed success. When I try to access the application using the url
    http://localhost:50000/Calculator/Calculator.jsp I get the following error. I am not sure why it is looking at com.sap.engine.docs.examples for the file.
    The requested resource /Calculator/Calculator.jsp is not available
      Details:   File [Calculator/Calculator.jsp] not found in application root of alias [/] of J2EE application [sap.com/com.sap.engine.docs.examples].
    Please let me know what I am possibly doing wrong here. Any help is very much appreciated.

    Hi Viji,
    If you are opening the web browser from your desktop , instead of <localhost>, you should use the name of the machine on which your J2EE engine is installed.
    Call the calculator application by entering its URL in the Web browser:
    http://<host>:50000/<contextRoot>/<Name_of_JSP.jsp>
    Where <host> is where j2ee is installed.
    Regards,
    Siddhesh

  • Trouble deploying a J2EE application using the J2EE 6.20 Deploy Tool

    I am having trouble deploying a J2EE application using the J2EE 6.20 Deploy Tool.
    I successfully create the WAR/EAR files, I then select deploy and the deploy process gets to 100% before displaying an error message.
    Can anybody help?
    Please see Deploy Tool log entry:
    01:39 -  **********************************************************
    05/01/17 10:19:16 -  Applying user role management mappings.
    05/01/17 10:19:16 -  Start updating EAR-file...D:\SAP_J2EEngine6.20_Cluster\deploying\carmodeller\carmodeller.ear
    05/01/17 10:19:27 -  Temp files deleted...
    05/01/17 10:19:27 -  Ear-file updated successfully for 11375ms.
    05/01/17 10:19:27 -  Start deploying ...
    05/01/17 10:20:15 -  Ear-file uploaded to server for 47297ms.
    05/01/17 10:21:47 -  ERROR: ID90506: NOT Deployed. ERROR returned from deploy service :
                         com.inqmy.services.deploy.container.DeploymentException: Can't init application carmodeller. com.inqmy.services.servlets_jsp.server.WebApplicationException: ID17110: Error in starting application carmodeller.java.lang.NullPointerException
                              at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.deploy(ServletsAndJspImpl.java:482)
                              at com.inqmy.services.servlets_jsp.server.WebContainer.commitDeploy(WebContainer.java:256)
                              at com.inqmy.services.deploy.server.DeployServiceImpl.commit(DeployServiceImpl.java:2848)
                              at com.inqmy.services.deploy.server.DeployServiceImpl.deploy1(DeployServiceImpl.java:512)
                              at com.inqmy.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:140)
                              at com.inqmy.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:184)
                              at com.inqmy.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:157)
                              at com.inqmy.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:108)
                              at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
                              at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
                              at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
                              at java.security.AccessController.doPrivileged(Native Method)
                              at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:153)
    05/01/17 10:21:47 -  **********************************************************

    Hi, it looks like the app has trouble starting up:
    05/01/17 10:21:47 - ERROR: ID90506: NOT Deployed. ERROR returned from deploy service :
    com.inqmy.services.deploy.container.DeploymentException: Can't init application carmodeller. com.inqmy.services.servlets_jsp.server.WebApplicationException: ID17110: Error in starting application carmodeller.java.lang.NullPointerException
    Did you have any errors on the compile of the code?
    You also want to check if the app is deployed (if so you may want to remove it before re-deploying it)

  • Updating a Deployed J2EE Application Component

    Hi All,
    I was going through this link below :
    http://e-docs.bea.com/wls/docs61/adminguide/utils.html#1139180
    Updating a Deployed J2EE Application
    To update a specific component, enter the following commands:
    % java weblogic.deploy -port 7001 -host localhost -component
    Basic_example:sampleserver,exampleserver update weblogicpwd Basic_example c:\updatesample\ejb\basic\BasicStatefulTraderBean.jar
    update will cause the application or component to be updated on all server instances
    to which is targeted.
    Does this require the application be deployed in a "Expanded Directory Format"
    and "Auto-deployment" turned 'on' ? - which is not good for Production, I guess.
    Regards,
    Nathan Pillai

    Hi Uday,
        Steps to be followed !!!
    1. Take a Copy of the .Ear to test.EAR
    2. Rename test.Ear to test.Zip
    3. Extract the Files present in the test.zip into a Folder 'test' (this folder has the .War file)
    4. Rename .war to .Zip
    5. Extract the Contents from .zip to a Folder(myRoot Folder should contain the JSP, WEB-INF, Filters, WebContent etc)
    6. Open NWDS --> create a Web Container Project(myContainerWar) in J2EE perspective
    7. Select myContainerWar --> right Click --> Choose IMPORT File --> Browse --> Select MYROOT folder created by us. FINISH
    WAR holds the total Structure of the Web Component based application.
    Meaning WAR structure will get created in the NWDS !!!!
    Once you are finished with the Changes, you have to create a EA project in NWDS and add the new WAR to it. Build the .EAR and deploy it !!!
    Thanks
    Suresh KB

  • HELP!!! Cannot deploy J2EE application with Oracle JDBC driver...

    Hi,
    I am writing a J2EE application which (in theory, at least)
    connects to an Oracle 9i database.
    I have written a simple Java test app utilising only the
    java.sql package classes (e.g. Connection, ResultSet) to directly
    connect to the database. As long as the classes12.zip is in the
    CLASSPATH it works fine.
    Now I have written an Enterprise application (SessionBean,
    Remote and Home interface and Client) which I am attempting to
    deploy via deploytool.
    If I include just the client jar and EJB jar in the application
    it deploys okay but when I run the application (using runclient)
    it produces the following error:
    java.lang.NoClassDefFoundError: oracle/jdbc/OracleDriver
    (It is nested within other error output but that is the core
    issue).
    However if I try to include the JAR libraries into the app
    (classes12.jar and nls_charset.jar from $ORACLE_HOME/jdbc/lib),
    then I get the following output from deploytool when I hit the
    "deploy" (or "redeploy") button:
    Deployment error: invalid entry compressed size
    (expected 14411 but got 14580 bytes)
    Can someone please tell me what is going on???
    How can I deploy the J2EE application including the Oracle
    JDBC Driver???
    My only other option at the moment is to place all the function-
    -ality in the client and not use the J2EE framework.
    Any help is greatly appreciated.
    Regards,
    Ben New
    Leftclick Software Development
    [email protected]

    OK Ben,
    I admit I'm a bit confused. Let me see if I understand where you're
    coming from.
    You have written a J2EE application that includes a session bean,
    correct? If so, your session bean needs to be deployed to an EJB
    container. What container are you using? The Oracle 9i database
    has an embedded EJB container which (theoretically) you can use.
    However, as far as I know, Oracle recommends you use OC4J as the
    EJB container. So again I ask, what EJB container are you using?
    If, as you say, you are new to EJB, then I think you should
    immediately start working wiht OC4J as your EJB container.
    Did you look at the tutorial link I gave in my previous post? It
    explains -- step by step -- how to create, deploy and run a J2EE
    application using OC4J as the EJB container. It also has links to
    introductory material for people without little knowledge of J2EE
    and EJB.
    I have 9iAS Enterprise Edition and 8.1.7.1.0 database server (and
    OC4J) installed on my SUN machine. I cannot find any of the
    utilities you mention -- "j2eeadmin","runclient" or "deploytool".
    What Oracle software have you installed? What are the versions?
    What platform are you using?
    A J2EE application (according to the specification from SUN)
    consists of modules. A module can either be a client module or an
    EJB module. A client module can either be a java application client
    or a web-based client (servlet or JSP). A J2EE application usually
    contains one client module and one EJB module. A J2EE application
    needs to be deployed to a J2EE container.
    Hopefully the J2EE picture is becoming clearer. I think you need
    to read some introductory material regarding J2EE if you intend
    to become proficient at it.
    I feel that you are under the impression that a J2EE application
    is a glorified JDBC application. It isn't (as far as I'm aware).
    Good Luck,
    Avi.

Maybe you are looking for

  • How can I control the size of a cell in the GridBagLayout?

    Hi,Swing Gurus I am developing a swing-based program using JBulider5 enterprise. It seems to me that the GridBagLayout is really a hard nut! How can I control the size of a cell in the GridBagLayout? It seems that I cann't control the size of a cell

  • FPGA et I/O : comment bien faire ?

    Bonjour, J'essaie en vain de lire tous mes capteurs en programmation FPGA sur C-RIO 9022 avec un chassis C-RIO 9113. Je souhaite utiliser le FPGA pour prendre une série de 250 mesures (sur 27 capteurs) sur un pas de temps très court, et ne conserver

  • Oracle export error

    Hi I am trying to export a table with 2 million records and getting below error. exp user1/user1 buffer=8192 compress=y file=Test_table.dmp tables=test_table filesize=8192000000 Export: Release 10.2.0.1.0 - Production on Mon Oct 29 12:49:23 2012 Copy

  • Reg:JMS Adapter

    Hi All, need your help to consume the message as string !! here are the explanation .. I have created Adapter to consume the message from the MMX.while creating adapter the jdev is asking me to define the message format which need to be consumed.i ca

  • Third Party Infinitiy 2 Compatible Modem

    Hi, I have received my HH5 and have spent a merry time disabling everything in preparation for my install, to discover that you have to have DHCP enabled to set the DMZ to the static IP of my networks router. I have to say the interface is so dumb do