Where is application.xml?

I create a EAR for an ADF web application using Jdeveloper 11.1.1.3. The EAR has a META-INF folder which contains application.xml.
Then, I create another EAR using command line. However, this EAR does not contain META-INF folder and application.xml.
C:\Users\Administrator>d:
D:\>e:
E:\>cd E:\soaworkspace\otnapp
E:\SOAworkspace\otnapp>jar -cvf otnapp.ear
'jar' is not recognized as an internal or external command, operable program or batch file.
E:\SOAworkspace\otnapp>jar -cvf otnapp.ear */ .
'jar' is not recognized as an internal or external command, operable program or batch file.
E:\SOAworkspace\otnapp>set java_home
JAVA_HOME=E:\OracleBI_win2008_32_20101206\jdk160_18
E:\SOAworkspace\otnapp>set path
Path=D:\apache-maven-2.0.11\bin;C:\app\Administrator\product\11.2.0\dbhome_1\bin
;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common
Files\Thunder Network\KanKan\Codecs;C:\apps\FME\;C:\Program Files\Subversion\bi
n;C:\Program Files\TortoiseSVN\bin;D:\win2008EclipseWorkspace;E:\OracleBI_win200
8_32_20101206\Oracle_BI1\bin;E:\OracleBI_win2008_32_20101206\Oracle_BI1\opmn\bin
;E:\OracleBI_win2008_32_20101206\Oracle_BI1\opmn\lib;E:\OracleBI_win2008_32_2010
1206\Oracle_BI1\perl\bin;JAVA_HOME\bin;CATALINA_HOME\bin;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
E:\SOAworkspace\otnapp>

Creating EAR files from JDeveloper is different then creating EAR files from commandline. The easiest way to do this from command line is to put everything in one directory structure and issue the JAR command. JAR does not create files from scratch (with the exception of Manifest.mf).
--olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Orion-application.xml location

    Hi,
    I am building an EAR file in JDeveloper 10.1.3.4 and then deploying it on 10G server. I need to add the orion-application.xml file to my EAR file. Where should I put it relatively to the home directory of my web application?
    This file already exists on the server in application-deployments/<app_name> directory, however it was copied there manually.
    thanks in advance

    You have to put it in the META-INF of the EAR. The directory where the application.xml resides.
    --olaf                                                                                                                                                                                                                   

  • ClearOnAppStop - where does it belong? Application.xml

    I see the documentation about using clearOnAppStop, but its not clear what file its supposed to be put into!?
    Does it belong in Application.xml?  Event.xml?  httpd.conf?  main.asc?  In the HTML of the player?????
    Sorry, I'm far from an expert on all of this stuff.  I have been able to successfully publish multibitrate HDS and HLS, but I'd like the stream files to go away.
    Update: I added the recommended configuration to the Application.xml file:
    <Application>
        <ScriptEngine>
            <ApplicationObject>
                <config>
                    <clearOnAppStop>true</clearOnAppStop>
                </config>
            </ApplicationObject>
        </ScriptEngine>
    </Application>
    After 600 seconds of inactivity, the stream files, and the directory they were in, were removed.  I found helpful info about this here: http://forums.adobe.com/thread/755484
    Also, I'm assuming that this setting has no affect on the livepkgr/events/_definst_/<event>/*.stream files?
    Is there a way to clean up the events?  I'm creating a unique event and stream names for each event, and when the event is over, it will never be used again.
    Update: I still haven't found an automatic way to remove the event files.
    Thanks!
    -bos

    clearOnAppStop is not something which AMS server does it for you. It is jus that the default livepkgr application that is shipped with AMS uses this flag to do cleanup, when the aplication stops.
    It is just that, AMS allows scripts to acess configuration variables in Application.xml if specified under certain specific tags and hence the livepkgr tries to store one such variable in Application.xml...I would prefer top have this variable in Applicatios; own copy of applicatyion.xml rather than mentioning it it server's copy of Application.xml...It makes no sense in having this variable(specific to a given application) specified in Server level Application.xml.

  • Error-page tag not valid in global-web-application.xml ?

    Hi!
    From what I understand about the global-web-application.xml file in Oracle's documentation, the content of the web-app tag should be inherited to all web application as a web.xml content.
    One of the web.xml tags is error-page, which contains the page url for the standard return codes (404, 500, and so on).
    If I put the error-page on the web.xml inside a web application, it works as expected.
    But if I don't put this tag inside the web applicaction, but in the global-web-applicacion.xml (web-app) tag, it doesn't work.
    We are testing the 404 error page, but I don't know if it is because the application server can't find the error page or because the global-web-application.xml isn't being inherited correctly.
    Where is this file supposed to be looked for? Or the only way to do this is by writing the configuration on all web applications?
    We are using 9.0.3
    Franco Catrin L.
    TUXPAN

    Just refreshing... Does anyone have any idea?
    Daniel.

  • How to include custom application.xml in JDev9i project

    Can anybody explain to me how to include a custom application.xml file when deploying to an .ear file? I need to include application wide security roles, and I can't see where in Jev9i how to do this.
    After searching this forum, I see that jdev9i can't include the orion-application.xml, but I want to include just the standard J2EE application.xml. Is this possible?
    Thanks,
    matt

    The standard application.xml file unfortunately can't be customized in JDev 9.0.2. The reasons why this capability was left out of JDev 9.0.2 are same reasons why the other EAR-level XML files were excluded. The OTN thread
    Re: Regarding 11i and E-business suite
    has a summary of those reasons, which you've probably seen. We know this is an area in need of improvement and will be adding this functionality in the JDev 9.0.3 release. Until then, you'll have to go with a work-around like an Ant build file, batch file, Java application, or some other kind of script.
    Below is a sample Java application which can be used to insert <security-role> elements into an EAR file's application.xml. Modify the main() method to customize for your purposes, and put xmlparserv2.jar on the classpath (in a JDev project, add the "Oracle XML Parser v2" library):
    package mypackage4;
    import java.io.*;
    import java.util.*;
    import java.util.zip.*;
    import oracle.xml.parser.v2.*;
    import org.w3c.dom.*;
    import org.xml.sax.SAXException;
    public class PostProcessEAR
    public static void main( String[] args ) throws IOException
    final String earFile = "C:\\temp\\myapp.ear";
    final PostProcessEAR postProcess = new PostProcessEAR( earFile );
    postProcess.addSecurityRole( null, "first_role" );
    postProcess.addSecurityRole( "Description for the second role", "second_role" );
    postProcess.commit();
    System.out.println( "Done." );
    private final File _earFile;
    private final ArrayList _securityRoles = new ArrayList();
    public PostProcessEAR( String earFile )
    _earFile = new File( earFile );
    public void addSecurityRole( String description, String roleName )
    if ( roleName == null )
    throw new IllegalArgumentException();
    _securityRoles.add( description );
    _securityRoles.add( roleName );
    * Write out modified EAR file.
    public void commit() throws IOException
    if ( _securityRoles.size() == 0 )
    return;
    final ZipFile zipFile = new ZipFile( _earFile );
    final Enumeration entries = zipFile.entries();
    final File outFile = new File( _earFile.getAbsolutePath() + ".out" );
    final ZipOutputStream out = new ZipOutputStream( new BufferedOutputStream( new FileOutputStream( outFile ) ) );
    while ( entries.hasMoreElements() )
    final ZipEntry entry = (ZipEntry) entries.nextElement();
    final InputStream in = zipFile.getInputStream( entry );
    if ( "META-INF/application.xml".equals( entry.getName() ) )
    final XMLDocument modifiedApplicationXml = insertSecurityRoles( in );
    final ByteArrayOutputStream byteOutput = new ByteArrayOutputStream();
    modifiedApplicationXml.print( byteOutput );
    final int numBytes = byteOutput.size();
    entry.setSize( numBytes );
    if ( entry.getMethod() == ZipEntry.STORED )
    entry.setCompressedSize( numBytes );
    final CRC32 crc32 = new CRC32();
    crc32.update( byteOutput.toByteArray() );
    entry.setCrc( crc32.getValue() );
    out.putNextEntry( entry );
    byteOutput.writeTo( out );
    else
    // Copy all other zip entries as they are.
    out.putNextEntry( entry );
    copy( in, out );
    in.close();
    out.close();
    private XMLDocument insertSecurityRoles( InputStream in ) throws IOException
    final DOMParser domParser = new DOMParser();
    domParser.setAttribute( DOMParser.STANDALONE, Boolean.TRUE );
    try
    domParser.parse( in );
    final XMLDocument doc = domParser.getDocument();
    final Element docElem = doc.getDocumentElement();
    final Iterator iter = _securityRoles.iterator();
    while ( iter.hasNext() )
    final String desc = (String) iter.next(); // might be null
    final String roleName = iter.next().toString(); // must not be null
    final Element securityRoleElem = doc.createElement( "security-role" );
    if ( desc != null )
    securityRoleElem.appendChild( createPcdata( doc, "description", desc ) );
    securityRoleElem.appendChild( createPcdata( doc, "role-name", roleName ) );
    docElem.appendChild( securityRoleElem );
    return doc;
    catch ( SAXException e )
    e.printStackTrace();
    return null;
    private Element createPcdata( XMLDocument doc, String elemName, String pcdata )
    final Element elem = doc.createElement( elemName );
    elem.appendChild( doc.createTextNode( pcdata ) );
    return elem;
    private final byte[] buffer = new byte[4096];
    private void copy( InputStream in, OutputStream out ) throws IOException
    while ( true )
    final int bytesRead = in.read( buffer );
    if ( bytesRead < 0 )
    break;
    out.write( buffer, 0, bytesRead );

  • Servlet context in application.xml does not appear to work

    Hi all,
    I have created a very simple servlet and an index.html file with a link
    to it, then packaged it into a WAR file with the appropriate web.xml and
    ias-web.xml files. I then created an application.xml file referencing
    only this servlet and adding a context root. After deployment via
    "iasdeploy deployapp simple.ear" and cycling the web server, I can reach
    the welcome file (index.html) correctly
    -"http://localhost/NASApp/simple". When I attempt to follow the link to
    the servlet ("simple servlet") the URL ends
    up as "http://localhost/NASApp/SimpleServlet" whereas it should be
    http://localhost/NASApp/simple/SimpleServlet If I type that url in, the
    servlet executes fine.
    I've deployed this into Tomcat and get the behavior I expect. It appears
    that the element in the application.xml file is ignored by
    iAS.
    I'm using iAS SP3 on Win2k (same problem on NT).
    This is such a basic behavior that I can't believe this is an existing
    bug. I must be doing something wrong...
    Any ideas?
    Thanks in advance,
    -Glen
    Files are attached.

    Can you show me some of your code? This works for me.
    Also, you say that you are working with 6.0sp3. Are you sure? sp3 hasn't been
    released yet, except in a very limited beta. (I believe only internally, but I
    could be wrong about that.)
    David
    [email protected] wrote:
    Hi all,
    I have created a very simple servlet and an index.html file with a link
    to it, then packaged it into a WAR file with the appropriate web.xml and
    ias-web.xml files. I then created an application.xml file referencing
    only this servlet and adding a context root. After deployment via
    "iasdeploy deployapp simple.ear" and cycling the web server, I can reach
    the welcome file (index.html) correctly
    -"http://localhost/NASApp/simple". When I attempt to follow the link to
    the servlet ("simple servlet") the URL ends
    up as "http://localhost/NASApp/SimpleServlet" whereas it should be
    http://localhost/NASApp/simple/SimpleServlet If I type that url in, the
    servlet executes fine.
    I've deployed this into Tomcat and get the behavior I expect. It appears
    that the element in the application.xml file is ignored by
    iAS.
    I'm using iAS SP3 on Win2k (same problem on NT).
    This is such a basic behavior that I can't believe this is an existing
    bug. I must be doing something wrong...
    Any ideas?
    Thanks in advance,
    -Glen
    Files are attached.
    Name: simple.ear
    simple.ear Type: application/x-unknown-content-type-ear_auto_file
    Encoding: base64
    Description: filename="simple.ear"

  • Soap Receiver : how to convert application/xml of payload to text/xml?

    I get a purchase order xml from SRM with payload as "MainDocument(application/xml)". The receiving system is a Webmethods service that can only accept text/xml. If I try using the testing facility of the runtime workbench (Testing tab under IE under Component monitoring) by pasting my required xml payload, it works because the payload is generated as "PayloadName(text/xml)".
    Is there some easy way to change this to "MainDocument(text/xml)"? I am using SOAP receiver adapter and have selected/checked the 'Do not use SOAP envelope', 'Keep Headers' boxes. If I use '&nosoap=true' at the end of the URL, I am getting a 'Unknownservice' exception back from the receiving system.
    Thanks

    Hi Bhavesh,
                   thnks for u replies, i have tried this but facing some issues.
        If i uncheck option <b>Do not Use SOAP envelope</b> the again it gives me the error  "com.sap.aii.af.ra.ms.api.DeliveryException: java.io.IOException: invalid content type for SOAP: TEXT/HTML"  in response msg id.
    Also u said that there is no need to use bpm, but the flow of my data is first to R/3 where it creates a employee record and then the same data is passed to mdm.

  • Customized orion-application.xml

    Configuration:
    Jdeveloper 9i Release 2 Production Version
    I have a customized orion-application.xml file under <project-directory>/src/META-INF directory. I would like to package this along with my application.
    How do I include it in my Deployment Profile (.ear)?
    TIA,
    Ranga

    Another OTN thread on this topic:
    http://forums.oracle.com/forums/message.jsp?id=988554
    The middle of that thread (read the beginning to get the full context) has an answer relevant to your question here.
    ------ begin quoted --------------------------------------------------------------------
    Hello,
    JDeveloper 9.0.2 is limited in this area unfortunately. For the use case you are describing, there are two work-arounds:
    1) Use an Ant build file (or any other script) as you mentioned.
    2) Do your testing in the embedded OC4J server instead of an external OC4J server. You should then be able to make manual changes to the orion-application.xml file used by the embedded server -- it's in the Workspace directory and has a name like "Workspace1-oc4j-app.xml".
    We were expecting users to use Oracle Enterprise Manager (OEM) to configure production J2EE applications, since JDeveloper is a development tool whereas OEM is the real server administration tool. For some time, we've debated internally on the JDev team whether that kind of feature separation across Oracle products makes sense. It's clear that developers like you need to perform some administration tasks in the course of testing a production app, so we focused on allowing that for JDeveloper's integrated OC4J server ("embedded OC4J") and left the administration of an external OC4J server to OEM.
    For future JDeveloper releases, we will probably have an increasing level of direct support for OC4J administration, but to what extent we will pursue that is still in discussion.
    For 9.0.3, I've filed bug 2392697 to track the issue you are reporting (with reference to this OTN thread) to make sure that it is resolved properly for the 9.0.3 release.
    ------ end quoted -----------------------------------------------------------------------

  • Using "Get Context" button in Modules tab of application.xml editor

    Hello,
    When you open the editor for the application.xml file there is a tab called Modules. On that tab there is a button named "Get Context"
    When you select a module and click that button a popup window comes up with two fields. The first field is a dropdown of values and the second is a text field.
    Where do the values in the dropdown come from?
    Thanks in advance for any help!

    Hi David,
    they come from the name server on the SLD, at least the first item with the drop downs come from there. You can define context root prefixes for your J2EE web apps. The 2nd text box is the prefix specific to your app. So if you select in the drop down the prefix "test", and in the text box enter "myapp" you would then access your app when deployed as: http://server:port/test/myapp. The context root test/myapp would be reserved on the name server as well.
    Hope this helps!
    Cheers,
    Jeff

  • Restart of OC4J required ? If orion-application.xml changes

    Hello,
    If i make a change in the orion-application.xml, basically i am interested in changing the JAZN LDAP configuration settings --- do i need to restart the OC4J ?
    If yes, where is this mentioned in the documentation ?
    Does the answer (yes / no) apply to all versions (10g minor versions) of OC4J.
    Please confirm.
    Thanks in advance.
    Warm Regards
    AB

    Hi Deepak,
    I fully agree with you that changes in the orion-application.xml require a restart.
    Infact, when i do that practically, a message is displayed on the OEM console that the changes have been saved to the XML file but for the changes to take effect, i need to restart my container.
    Agreed.
    But where is it specifically mentioned in the official documentation ?
    In the link you forwarded, there is not a single mention about orion-application.xml
    Every statement over there talks about jazn.xml
    I even checked the documentation for orion-application.xml, there too i could not locate that statements like you gave "any change to the jazn configuration (either in jazn.xml or otherwise) will need a restart."

  • Ejb jars not being read from application.xml

    Hello. If somebody wouldn't mind reading this, I've been wrestling wiht this most of the day. I have a coupe of entity ejbs and a stateless session ejb, each packed into it's own jar. When I deploy the ear, the war deploys fine but the three ejb jar files are not read as per the application.xml. As a test, I put the jars into the default server lib directory and after I did that, the enterpise app launched as expected. I can't figure out why the server, resin 3.0.12, is not able to see these ejb jars. I've tried to add the directory after deployment to the classpath in the autoexec.bat but no dice. I've moved the ejb jars around into subdirectories and modified the application.xml accordingly but to no avail. I've also looked into the server configuration file but resin doesn't seem to have any taggings within it's ejb server tag that would dictate where the container would look for jar or class files. Does anybody have any ideas what this could be?...this is the application.xml...pretty straightforward...the ejb jars are located in the root of the ear...
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE web-app (View Source for full doctype...)>
    - <application>
    <display-name>MyApp</display-name>
    - <module>
    <ejb>cn.jar</ejb>
    </module>
    - <module>
    <ejb>cnf.jar</ejb>
    </module>
    - <module>
    <ejb>cni.jar</ejb>
    </module>
    - <module>
    - <web>
    <web-uri>nctims.war</web-uri>
    <context-root>/nctims</context-root>
    </web>
    </module>
    </application>
    Thank you very much for taking your time to read my post.

    Hello. Thank you very much for the reply.
    Yeah, application.xml is sitting in META-INF. The war referenced wihtin application.xml deploys fine...the container jsut seems to ignore the <module><ejb>..</ejb></module> tags when it reads the ejb deployment descriptors and tries to locate the classes. I've tried everything...shouldn't application.xml take care of all class-loader issues with the module references? Thank you again to everybody reading this or whatever.

  • Application.xml file?

    What is the use of the Application.xml file in enterprise application> If we not specified it...what will happen?
    Thanks,
    R.

    The application.xml file specifies metadata about the Java EE application as a whole. The main pieces of information are the list of modules(ejb-jar, .war, application client, etc.) in the .ear. It was required for J2EE 1.4 and earlier but is optional in Java EE 5, where the module type is derived based on the contents of the modules themselves.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • EAR proects deploys but has no application.xml file!

    Hello,
    I working my through a Web Logic tutorial and the very first step is to create a the application projects like this:
    # Select File > New > Project.
    # In the New Project dialog, open the node Workshop Quick Start Applications and select WebLogic/Beehive Web Application.
    Click Next.
    # In the Application Name field, enter CustomerCare.
    Next to Domain home click the Browse button. Browse to <BEA_HOME>/workshop_10.3/samples/domains/workshop. Click OK.
    Click Finish.
    The applications are create and I can deploy the ear project, but it doesn't contain an application.xml file and I don't understand how this can work. Can someone enlighten me please.

    The applications are create and I can deploy the ear project, but it doesn't contain an application.xml file and
    I don't understand how this can work. Can someone enlighten me please.
    The wizard created three projects: CustomerCare, CustomerCareEAR and CustomerCareSharedCode. I'm assuming
    that the project is being deployed is an EAR.The CustomerCareEAR is an EAR project in your application. The application.xml file will be located in CustomerCareEAR/EarContent directory.
    I'm not entirely sure where the project is getting deployed to. I thought it would be to <BEA HOME>\user_projects,
    but I can't see an EAR or directory structure in there that would suggest that this is the deployment directory.
    As I am deploying the project from within Eclipse it is possible (perhaps) that eclipse is deploying the project directly
    from my workspace - but I can't be sure.The deployment does not use user_projects directory. It happens largely directly from the Eclipse workspace with assistance of a few temporary directories. The structure of deployment is not something that you need to be concerned about.
    If you want to see what the EAR will look like when you are done, export an EAR archive using the wizard under File -> Export. Point the wizard at CustomerCareEAR project.
    - Konstantin
    - Konstantin

  • What is application.xml

    HI All,
    I want to know about the application.xml. anybody knows about this please send a link where I can get the info.
    thank you very much

    application.xml is the deployment descriptor required to deploy a J2EE application on a application server.
    http://e-docs.bea.com/wls/docs81/programming/app_xml.html#1007302

  • Problem with application.xml

    Hi,
    I would be really grateful if anybody could help me on this. My application.xml is given below:
    <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
    "http://java.sun.com/dtd/application_1_3.dtd">
    <application>
    <display-name>SayMyName</display-name>
    <description>SayMyName</description>
    <module>
    <ejb>TheSayMyName.jar</ejb>
    <java></java>
    <web>
    <web-uri>TheSayMyName.war</web-uri>
    <context-root>SayMyName</context-root>
    </web>
    </module>
    <security-role></security-role>
    </application>
    At first I never had <security-role> and <java> element.
    But with all permutations and combinations I am always
    getting the following error message, whenever I am
    trying to deploy my .ear file.
    weblogic.management.DeploymentException: Error while loading descriptors: Error parsing file 'META-INF/application.xml' at line: 19 column: 15. weblogic.xml.process.XMLParsingException: Error parsing file 'META-INF/application.xml' at line: 19 column: 15. The content of element type "application" must match "(icon?,display-name,description?,module+,security-role*)". - with nested exception: [org.xml.sax.SAXParseException: The content of element type "application" must match "(icon?,display-name,description?,module+,security-role*)".] - with nested exception: [org.xml.sax.SAXParseException: The content of element type "application" must match "(icon?,display-name,description?,module+,security-role*)".]
    If anybody is aware of this problem, then kindly help.
    Interesting thing is that, even if I have number of lines
    less than 19, it says 19.
    Regards,
    Caesar

    Caesar Dutta wrote:
    <module>
    <ejb>TheSayMyName.jar</ejb>
    <java></java>
    <web>
    ...try
    <module>
    <ejb>...</ejb>
    </module>
    <module>
    <web>...</web>
    </module>

Maybe you are looking for

  • I have a scratch inside my screen...what are my options to fix it?

    I don't nescessarily take extra good care of my computer but recently I didn't throw my computer or anything..but i have a scratch on my screen like inside, digitally, but theres no visible scratchh on the actual screen...not sure how it hpapened. Bu

  • How to use my macbook air as a dvr

    I would like to use my MacBook Air as a DVR in this manner:  I would bring up a flick that I missed and stream it (after the "live" broadcast").  I would like to record it to my "MacDVR" and play it back enabling me to Fast Forward thru the commercia

  • About the job name

    hi all, could anyone please tell me which table contian the Jab name ,Job status(like schelued,cancled ect.) . i want to check the job status and print all the job which cancled out. thanks in advance

  • Please help with Cinema 4D Rendering?

    So my rendering settings look like this. Instead of this, can someone tell me how i can change them to be like the one below? i need to render to a png for after effects.

  • New ALS Demo Application (release 9.0.5.x)

    AMIS just released the ALS (AMIS Library System) application based on BC4J and JSP with JSTL for JDeveloper 10g and JHeadstart 9.0.5.x. The ALS application is shipped with JHeadstart 9.0.5.x, to demonstrate the use of Toplink with JHeadstart. The app