OC4J app dir., manual ear assembly question???

Hello,
I have to figure out some stuff about OC4J soon and need help.
below are some questions, please answer them if you know the answer.
1) what is the 100% OC4J directory setup for a application that I plan to make into a ear file when development is done??? I have this dir setup and it works for doing development BUT I want to make sure that I can make a ".ear" file out of it! I ask this questions cause the Oracle doc. is not 100% like this example below!
atm/META-INF/application.xml
atm/atm-ejb/META-INF/ejb-jar.xml
atm/atm-ejb/myclasses.jar
atm/atm-web/index.html
atm/atm-web/WEB-INF/web.xml
atm/atm-web/WEB-INF/lib/taglib.jar
atm/atm-web/WEB-INF/classes/SnoopServlet.java
2) exactly how do I manually create an ear file out of the above dir/file structure??? Is there ANY examples out on the web or somewhere that good detailed examples????
Your help is MUCH appreciated, THANKS!!!
Pete Lucuk
[email protected]

your structure is almost correct...
the atm-ejb directory is using the "exploded" directory method. For an ear you would have a ejb.jar in the same directory as the application...
atm/META-INF/application.xml
atm/myejb.jar
atm/mywebapp.war
go to the atm directory, and type jar -cf myatm.ear *
likewise, for the ejb construction:
atmejb/META-INF/ejb-jar.xml
atmejb/com/acme/whatever...
go to the atmejb directiry, and type jar -cf myejb.jar *
likewsie, for war construction"
atmwar/WEB-INF/web.xml
atmwar/WEB-INF/classes/com/acme/whatever
atmwar/WEB-INF/lib/mylib.jar
atmwar/atm-web/*.html,*.jsp,*.images, etc..
go to the atmwar directory, and type jar -cf atm-web.war *
You can also set this up with ant. Go to the www.jollem.com site for excellent tutorials on how to do this.
The docs are a little confusing. I stick with the ear deployment even in development, since it so easy to set up a build with ant or even shell scripts.
Regards,
the elephantwalker
null

Similar Messages

  • Error deploying to standalone OC4J app server

    Hey all,
    I created a web app with jdeveloper 10.1.3.3 using OC4J 10.1.3.3 as well. I'm using EJB and session beans to communicate with a database. nothing particularly fancy about it, i just read tables from the db. however, when i try and deploy through jdev to the standalone OC4J i get an error. here's the last part of the deployment log when it fails:
    Deployment Log:
    Binding ibmswauth web-module for application ibmswauth to site default-web-site under context root ibmswauth
    Operation failed with error:
    [ibmswauth:ibmswauth] - Exception creating EntityManagerFactory using PersistenceProvider class oracle.toplink.essentials.PersistenceProvider for persistence unit WD_WORK.
    The only thing in my Persistence.xml file is the <persistence-unit> tag with name "WD_WORK", and in that a <jta-data-source> tag.
    Also, it runs fine on the local embedded server, it's only when i try and deploy that it gives this error. I even deployed my app to an EAR file and tried uploading it manually to the app server, still same error.
    any ideas?

    If you have a model project that has objects referenced by the view controller/UI project then you need to explicitly include them in the deployment. Unlike in embedded OC4J they wont be automatically included.
    Create an ADF library deployment profile in the model project and include the generated library in your UI project war file. You can add this jar to the project Libraries/Classpath then make sure it is included in the WEB-INF/lib Contributors list.

  • How to deploy a secured oc4j app in 9iAS

    Hi,
    We are running 9iAS Rel.2 Ent. Edition (9.0.2.0.1) and we want to setup a secured site portion that works through SSL.
    The secured application is already deployed in oc4j but we were using the standalone oc4j container capabilities to mount our application under a secured area, using this fashion:
    <web-site host="myhost" port="443" display-name="Secured app" secure="true">
    Everything works fine using the container-only deployment but now we need a way to deploy this application in 9iAS.
    My efforts to do this were not succesful so far. I was thinking of mounting an SSL folder using httpd.conf and then to forward the request to the secured oc4j application. I tried to do it but I lack the experience with the apache conf unfortunately, so I failed.
    If you can point me to a document that explains how to expose an oc4j application (war or ear) via Apache SSL or if you have any idea, please let me know.
    Thank you!
    florin

    Ok, I found a [very helpful blog post |http://andrejusb.blogspot.com/2009/01/practical-adf-security-deployment-on.html] by [Andrejus Baranovski|http://www.blogger.com/profile/04468230464412457426]. I wish Oracle's documentation was as clear as this...
    The blog post refers to an article by Steve Muench, called [Simplified ADF 11g Application Credential and Policy Migration to Standalone WebLogic Servers|http://www.oracle.com/technology/products/jdev/tips/muench/credmig111100/index.html]. This article presents an Ant script that migrates policies from JDeveloper to WebLogic, using some PFM. (See the last definition here.)
    The problem is that Steve Muench's script assumes that JDeveloper and the standalone WebLogic are on the same machine. However, in a typical environment, such as the one I'm working in currently, this is not the case. In our case the developer stations are Windows machines, while our WebLogic server runs on a HP-UX machine. So the question is: how to perform this migration between two machines with different operating systems?
    Regards,
    Bart Kummel

  • I have multiple apple ids was backing up everything to iCloud from iPhone 5. I just bought iPhone 6 and perform a iCloud restore. I received a message that all files did not restore.   How can I restore apps, files manually?

    I have multiple apple ids was backing up everything to iCloud from iPhone 5. I just bought iPhone 6 and perform a iCloud restore. I received a message that all files did not restore.   How can I restore apps, files manually?

    Yes - I connected my phone to my computer / Itunes and went into the apps section, but from there I have no idea how to manage the push notifications.  I even tryied going into itunes that is installed on my phone.  I still cannot find anyplace to manage these popups.  I have also gone into settings - notifiations - and tried turning all notifications for these apps all off but that didnt work either.  Any guidance is MUCH appreciated - Im not sure where to go from here.

  • I have a new Ipad and when I try to buy an app it asks for my  questions! I dont remember them so I press the button that send me an email to reset them. Ive sent it various times but it doesnt arrive. please help I need this app for school!!!

    I have a new Ipad and when I try to buy an app it asks for my  questions! I dont remember them so I press the button that send me an email to reset them. Ive sent it various times but it doesnt arrive. please help I need this app for school!!!

    See Kappy's great User Tips.
    See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities https://discussions.apple.com/docs/DOC-4551
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Send Apple an email request for help at: Apple - Support - iTunes Store - Contact Us http://www.apple.com/emea/support/itunes/contact.html
    Call Apple Support in your country: Customer Service: Contacting Apple for support and service http://support.apple.com/kb/HE57
     Cheers, Tom

  • I have some problem when I want to download app in iTunes some security question ask me about my visa when I right my visa number I got an errors and on top of the page told me go to iTunes support I do these things and now what should I do

    I have some problem when I want to download app in iTunes some security question ask me about my visa when I right my visa number I got an errors and on top of the page told me go to iTunes support I do these things and now what should I do

    Most of the people on these forums, including myself, are fellow users - you're not talking to iTunes Support here.
    You can contact iTunes Support via this link : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • I can't remember my password to my itunes or app account or the security questions,

    I can't remember my password to my itunes or app account or the security questions,

    Click here and request assistance.
    (88880)

  • Oc4j starting with Oracle Database & oc4j App Server on same machine

    Hi ALL, can anybody help me(pls read this)
    This is Sagar, i have created a GIS Application(java) using Oracle 10g.
    Senario I:
    oc4j server and oracle 10g Database Server on different machines:
    When i start oc4j server with NO. OF Mappers = 64 or 30 in DNS using
    1. oc4j -start (normally)
    from the path c:/oc4j/bin by setting ORACLE_HOME path normally
    application is working fine but when users are increased say 4 to 5 oc4j server gives error:
    java.lang.OutOfMemoryError: Java Heap Space
    I searched for this error i found a solution for starting oc4j as follows:
    2.Java -Xmx1024m -Xms1024m -jar oc4j.jar
    from the path c:/oc4j/j2ee/home --- oc4j.jar
    Then map & application works fine and fast since heap space is increased to 1GB (speed is noticable)
    but if...(in other senario)
    Senario II:
    oc4j server and oracle 10g Database Server on same machine:
    if step 2: is used form above senario, oc4j Server does not gets started only it gets initialized...(server does not gets started)
    but Step 1: is used application works fine but again heap space error as mentioned above is seen.
    Again if changes are made in oc4j.cmd file in c:/oc4j/bin ....by giving the heap space command oc4j works fine but the application(performance) is very very slow but heap space error is not seen.
    Please can any body suggest the solution.. application should work fast and also the heap space should be increased but taking the senario - oc4j App Server & Oracle 10g Database Server on Same machine..

    Hello,
    How much RAM do you have on the machine? What is the size of the SGA for the database you are using?
    if step 2: is used form above senario, oc4j Server does not gets started only it gets >initialized...(server does not gets started)What do you mean by this? Provide the output from the server when you start your server.

  • I updated to Yosemite and now I can't open my YNAB finance app. There is a question mark in the Dock where the App should be and when I hover over the question mark it does say YNAB but I can't open it.

    I updated to Yosemite and now I can't open my YNAB finance app. There is a question mark in the Dock where the App should be and when I hover over the question mark it does say YNAB but I can't open it. When I double click on the question mark nothing happens. Has the link to YNAB been broken with the update? Has this happened to anyone else?

    Check the Application folder.
    If it is not there, contact YNAB Finance for a OS X Yosemite compatible version of the application.
    Best.

  • HT1947 When trying to purchase apps, it asks me security questions that I wasn't asked when I signed up

    When trying to purchase apps, one of the security questions they asked me was not the one they originally asked me, so am unable to purchase.

    It's happening to me too!! Did you find a resoloution?

  • HT5699 I can't remember the answers to my Apple ID security questions. 1 Reply Latest reply : by alexbird I have I money in my apple I'd and when tried to purchase Apps asking me two security question but I am not remember the answer so I need your help

    I can't remember the answers to my Apple ID security questions.
    1 Reply Latest reply : by alexbird I have I money in my apple I'd and when tried to purchase Apps asking me two security question but I am not remember the answer so I need your help

    Hello there, Subhi.sa.
    Just wanted to second Niel's recommendation. Additionally this Knowledge Base article also provides some steps you can take yourself if you don't remember your security questions:
    Apple ID: All about Apple ID security questions
    http://support.apple.com/kb/HT5665
    What should I do if I don't remember the answers to my Apple ID security questions?
    Try answering them at least once to see if you can get them right, even if you are not sure you remember the answers to your security questions.
    If you are confident you can't remember them, try one of the following:
    If you have three security questions and a rescue email addresssign in to My Apple ID and select the Password and Security tab to send an email to your rescue email address to reset your security questions and answers. 
    If you have one security question and you know your Apple ID passwordsign in to My Apple ID and select the Password and Security tab to reset your security question.
    If you have one security question, but don't remember your Apple ID passwordcontact Apple Support for assistance. Learn more about creating a temporary support PIN to help Apple confirm your identity when you contact Apple Support.
    Note: If you have forgotten your password and answer your security questions incorrectly too many times in a row, you will be unable to try to answer your security questions for a period of time. During that time you will not be able to reset your password and will not have access to your account.
    Thanks for reaching out to us on the Apple Support Communities.
    Cheers,
    Pedro D.

  • Hi There, What is the Location for resource folder in apps dir.

    Hi There,
    What is the Location for resource folder in apps dir Structure.
    Bachan

    Are you trying to open the form locally or remotely?
    If locally then do the following:
    - From 'regedit' navigate to HKEY_LOCAL_MACHINE\Software\Oracle
    - Search for FORMS60_PATH
    - Make sure that "D:\oracle\visappl\au\11.5.0\resource" exist in FORMS60_PATH
    If remotely the do the following:
    - Copy "D:\oracle\visappl\au\11.5.0\resource" to your local machine (for example D:\resource)
    - From 'regedit' navigate to HKEY_LOCAL_MACHINE\Software\Oracle
    - Search for FORMS60_PATH
    - Make sure that "D:\resource" exist in FORMS60_PATH
    Close/Open the from builder, you should be able to open the form then.

  • Deploying Portal App in exploded EAR format

    Hi all,
    We are using Portal BEA 8.1 SP2 and we also configured a cluster with
    production mode enabled.
    We want to deploy our portal app in exploded EAR format.
    http://edocs.bea.com/wlp/docs81/bestprac/conf.html#1056723
    But when we use workshop to "Build App" and when the application build is successful.
    And when we copy the App folder to the production server and deploy,
    We get the following error,
    [Deployer:149033]preparing application commApp on mgServer1
    [Deployer:149033]preparing application commApp on mgServer2
    [Deployer:149033]failed application commApp on mgServer1
    [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application commApp on devCluster,bkarthiPS.:
    Exception:weblogic.management.ApplicationException: Application commApp is packaged using the WebLogic Split Development Directory structure. The Split Development Directory structure can only be used in development environments with a single WebLogic Server. If you wish to deploy this application to a separate managed server or cluster, use the wlpackage ant task to create an exploded or archived EAR.
    [Deployer:149033]failed application commApp on mgServer2
    [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application commApp on devCluster,bkarthiPS.:
    Exception:weblogic.management.ApplicationException: Application commApp is packaged using the WebLogic Split Development Directory structure. The Split Development Directory structure can only be used in development environments with a single WebLogic Server. If you wish to deploy this application to a separate managed server or cluster, use the wlpackage ant task to create an exploded or archived EAR.
    What is the problem ?
    Thanks,
    Karthi.
    [att1.html]

    To deploy the app as EAR (I am confused by the expression "exploed EAR", my understanding
    its either exploded or EAR format) build the app as EAR (there is an option in
    the workshop build drop down).
    Did this help?
    S
    "Karthi" <[email protected]> wrote:
    >
    >
    Hi all,
    We are using Portal BEA 8.1 SP2 and we also configured a cluster with
    production mode enabled.
    We want to deploy our portal app in exploded EAR format.
    http://edocs.bea.com/wlp/docs81/bestprac/conf.html#1056723
    But when we use workshop to "Build App" and when the application build
    =
    is successful.=20
    And when we copy the App folder to the production server and deploy,=20
    We get the following error,
    [Deployer:149033]preparing application commApp on mgServer1
    [Deployer:149033]preparing application commApp on mgServer2
    [Deployer:149033]failed application commApp on mgServer1
    [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy
    =
    application commApp on devCluster,bkarthiPS.:=20
    Exception:weblogic.management.ApplicationException: Application commApp
    =
    is packaged using the WebLogic Split Development Directory structure.
    =
    The Split Development Directory structure can only be used in =
    development environments with a single WebLogic Server. If you wish to
    =
    deploy this application to a separate managed server or cluster, use
    the =
    wlpackage ant task to create an exploded or archived EAR.
    [Deployer:149033]failed application commApp on mgServer2
    [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy
    =
    application commApp on devCluster,bkarthiPS.:=20
    Exception:weblogic.management.ApplicationException: Application commApp
    =
    is packaged using the WebLogic Split Development Directory structure.
    =
    The Split Development Directory structure can only be used in =
    development environments with a single WebLogic Server. If you wish to
    =
    deploy this application to a separate managed server or cluster, use
    the =
    wlpackage ant task to create an exploded or archived EAR.
    What is the problem ?
    Thanks,
    Karthi.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Diso-8859-1">
    <META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY bgColor=3D#c0c0c0 background=3D"">
    <DIV><FONT face=3DArial size=3D2>Hi all,<BR><BR>We are using Portal BEA
    =
    8.1 SP2 and=20
    we also configured a cluster with<BR>production mode enabled.<BR><BR>We
    =
    want to=20
    deploy our portal app in exploded EAR=20
    format.<BR><BR>http://edocs.bea.com/wlp/docs81/bestprac/conf.html#1056723=
    <BR><BR>But=20
    when we use workshop to "Build App" and when the application build is=20
    successful. <BR><BR>And when we copy the App folder to the production
    =
    server and=20
    deploy, <BR><BR>We get the following =
    error,<BR><BR>[Deployer:149033]preparing=20
    application commApp on mgServer1<BR>[Deployer:149033]preparing =
    application=20
    commApp on mgServer2<BR>[Deployer:149033]failed application commApp on=20
    mgServer1<BR>[Deployer:149034]An exception occurred for task=20
    [Deployer:149026]Deploy application commApp on devCluster,bkarthiPS.:=20
    <BR>Exception:weblogic.management.ApplicationException: Application =
    commApp is=20
    packaged using the WebLogic Split Development Directory structure. The
    =
    Split=20
    Development Directory structure can only be used in development =
    environments=20
    with a single WebLogic Server. If you wish to deploy this application
    to =
    a=20
    separate managed server or cluster, use the wlpackage ant task to create
    =
    an=20
    exploded or archived EAR.<BR>.<BR>[Deployer:149033]failed application
    =
    commApp on=20
    mgServer2<BR>[Deployer:149034]An exception occurred for task=20
    [Deployer:149026]Deploy application commApp on devCluster,bkarthiPS.:=20
    <BR>Exception:weblogic.management.ApplicationException: Application =
    commApp is=20
    packaged using the WebLogic Split Development Directory structure. The
    =
    Split=20
    Development Directory structure can only be used in development =
    environments=20
    with a single WebLogic Server. If you wish to deploy this application
    to =
    a=20
    separate managed server or cluster, use the wlpackage ant task to create
    =
    an=20
    exploded or archived EAR.</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>What is the problem ?</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>Karthi.</FONT></DIV></BODY></HTML>

  • TS3297 Everytime i purchase from the apps store it always show the security questions and i cant buy the apps i want because the questions are not answerable. Pls help....

    Everytime i purchase from the apps store it always show the security questions and i cant buy the apps i want because the questions are not answerable. Pls help....

    I think you need to reset those questions. You'll need to call the tech support for your country, ask to be connected to the Account Security Team and then ask if they can reset the questions for you.
    http://support.apple.com/kb/HE57

  • OC4J  10.1.3 WSA -assemble "Duplicate type name" error

    I am trying to expose a Java class as a web service using the WSA tool assemble command. The return result of one of the methods is reasonably complex and includes two variables the classes of which both extend the same base class e.g. (bean bits missing for brevity)
    public class Value extends DatasetMember {
    private double value;
    public class Text extends DatasetMember {
    private String value;
    When I attempt to assemble the web service wsa spits out
    Error: uk.gov.ecoconnect.webservices.datatypes.DatasetMember - Duplicate type name "uk.gov.ecoconnect.webservices.datatypes.DatasetMember" for Java type "{http://uk.gov.ecoconnect.webservices.datatypes/}DatasetMember" found. To remove this error do not specify a single typeNamespace for all value types or specify a mapping file. This error could also be caused when an erroneous type has been used more than once.
    If I use AXIS against the same classes I get at correctly generated wsdl file.
    Is there any way to get wsa to generate as wsdl that utilises the <extension> element?
    Is there an alternative OC4J mechanism that I could use to achieve this?
    I'm guessing that if the answer to the above questions is no I guess I'm going to have to move to using AXIS instead.

    Hi Tzhang,
    Thanks for the udpate.
    What spcific changes you made to make this work? can you please share that with us?
    By looking at the exception, it looks like it's failing when trying to clear the datasource connection cache. I even opened the admin_ejb app. All it has is some MDB using JMS queues. But I didn't find any datasource references in that application.
    Regards,
    Rajesh

Maybe you are looking for

  • Safari 6.0.5 won't full screen

    I'm using Safari 6.0.5 and Mac OS X 10.8.5. I've tried using the safari icon, view/fullscreen and keyboard shortcut, but nothing will work. Any suggestions?

  • 2007 Mac mini Mavericks upgrade?

    Hi, coming from the list of machines eligible for OS X Mavericks, my Mac mini is not included. However, the AppStore says I can. Do I make the upgrade or it will not proceed? Thanks. Maybe somebody out there already did upgrade not on the list.

  • Multiple MIDI Inputs Yet???

    Can anyone tell me if LP8 offers multiple MIDI inputs? I use the step sequencer from my Elektron Monomachine for pattern creation and would like to be able to assign the external tracks from it to instrument tracks hosting either native or 3rd party

  • Has adobe adopted the compound math feature like quark has in its interface.

    I am currently working with CS3. Has adobe adopted the compound math feature like quark has in its interface. For instance If I want to duplicate an item 29/6" vertically but I know that that step should be 1/8" short, in quark I can type 29/6-.125,

  • File transfer to XI sever

    Hi Experts , I have all the data in my internal table , now i have to place that data in the form of TEXT file and plcae it to the XI server. Please let me know whta needs to be done to place the file in XI server. thanks in advance..