How Do You Deploy a War File to The OC4J Standalone ?

I have a .war file that contains example code and I would like to deploy it to my OC4J Standalone.
I tried putting the war file in the applications directory and adding a line in the server.xml file but I received the error:
Error instantiating application at file:/C:/OC4JStandAlone/pdk101202_oc4j_extended/j2ee/home/applications/displaytag-examples-1.1.war: Unable to find/read assembly info for C:\OC4JStandAlone\pdk101202_oc4j_extended\j2ee\home\applications\displaytag-examples-1.1 (META-INF/application.xml)
It appears it was expecting an .ear file instead of a .war file
Is there an easy way to deploy a .war file to the OC4J Standalone?
Thanks,

Please refer to the OC4J FAQ on :-
http://www.oracle.com/technology/tech/java/oc4j/1012/collateral/OC4J-FAQ-101202.pdf
Q 24 should have your answer.
Cheers!

Similar Messages

  • How do you import a .png file into the Final Cut Pro X and at the same time keep the file's original transparency settings?

    How do you import a .png file into the Final Cut Pro X and at the same time keep the file's original transparency settings?

    Go to the Info inspector for the still image and in settings select the alpha type.

  • How to easily deploy a WAR file?

    Hi everyone. I'm not really an portal user but I was tasked to deploy a WAR file into our Oracle portal installation. The file came with instructions but there's something wrong.
    I went to our mid-tier server (let's call it mid.company.com) and was able to "succesfully" deployed the war file. This is what I have done:
    1. Browse for my war file
    2. application name = voyager
    3. map to url = /voyager
    4. and then deploy.
    I then login to our portal using the admin account. I tried to register a provider (in Remote Provider) and these are the info I provided:
    1. Application Name: VOYAGERPORTLET
    2. Display Name: voyagerportlet
    3. timeout: 100
    4. timeout message: Voyager has timed out.
    5. Implementation style: WSRP
    My problem is WSDL URL. I do not know what to put there.*
    I tried "http://mid.company.com:7777/voyager/portlets?WSDL" and I get
         An error occurred during the call to the WSRP Provider: java.rmi.RemoteException: HTTP transport error: java.lang.NullPointerException; nested exception is:
    HTTP transport error: java.lang.NullPointerException
    com.sun.xml.rpc.client.ClientTransportException: HTTP transport error: java.lang.NullPointerException
    Java stack trace from root exception:
    java.lang.NullPointerException
    at HTTPClient.URI.<init>(URI.java:384)
    at HTTPClient.URI.<init>(URI.java:353)
    at oracle.webdb.wsrp.client.HTTPClientTransport.invoke(Unknown Source)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:82)
    at oracle.webdb.wsrp.WSRP_v1_ServiceDescription_PortType_Stub.getServiceDescription(WSRP_v1_ServiceDescription_PortType_Stub.java:63)
    at oracle.webdb.wsrp.client.design.v1.OraWSRP_v1_ServiceDescription_PortType.getServiceDescription(Unknown Source)
    Can you help? Thank you very much

    You may want to check Metalink Note 341922.1 (How to Deploy and Register a WSRP Producer into Portal?) for a comprehensive overview of how to deploy WSRP producers for Oracle Portal.
    Thanks,
    EJ

  • Deploying a war file to the portal server

    Hi,
    I have downloaded a portlet (portletsamples.war) from the following URL,
    http://developers.sun.com/prodtech/portalserver/reference/techart/jsr168/
    Could I know how to deploy this war file to SUN ONE Portal server 6.0?
    --Muthu                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    i used the following command
    /opt/SUNWps/bin/pdeploy deploy -u "amadmin" -w password -d "dc=cmarks,dc=com" -p password /opt/madiha/me.war
    It gives the error
    errorStoreDP (User does not have sufficient access.)
    1)does it matter if the portal server is started or not when we deploy?
    2)i am logged in to the machine as the super user "root" but yet it is throwing this error
    the error that i get in the pdeply.debug file is
    ERROR: Exception:
    com.sun.portal.desktop.context.ContextError: DSAMEConnection.setTemplateAttribute(): , dn=dc=cmarks,dc=com, serviceName= SunPortalDesktopService, sunPortalDesktopDpDocument=
    com.iplanet.am.sdk.AMException: User does not have sufficient access.
    at com.sun.portal.desktop.context.DSAMEConnection.setTemplateAttribute(DSAMEConnection.java:1050)
    at com.sun.portal.desktop.context.DSAMEConnection.setAttributeByDN(DSAMEConnection.java:518)
    at com.sun.portal.desktop.context.DSAMEAdminDPContext.storeDPDocumentByDN(DSAMEAdminDPContext.java:210)
    at com.sun.portal.portlet.cli.PDDPUpdater.storeDPDocument(PDDPUpdater.java:232)
    at com.sun.portal.portlet.cli.PDDPUpdater.addProviders(PDDPUpdater.java:98)
    at com.sun.portal.portlet.cli.PDDeploy.process(PDDeploy.java:229)
    at com.sun.portal.portlet.cli.PortletDeployerCommand.runCommand(PortletDeployerCommand.java:208)
    at com.sun.portal.portlet.cli.PortletDeployerMain.main(PortletDeployerMain.java:54)
    com.iplanet.am.sdk.AMException: User does not have sufficient access.
    at com.iplanet.am.sdk.AMDirectoryManager.setAttributes(AMDirectoryManager.java:2136)
    at com.iplanet.am.sdk.AMCacheManager.setAttributes(AMCacheManager.java:867)
    at com.iplanet.am.sdk.AMObjectImpl.store(AMObjectImpl.java:1573)
    at com.iplanet.am.sdk.AMObjectImpl.store(AMObjectImpl.java:1514)
    at com.sun.portal.desktop.context.DSAMEConnection.setTemplateAttribute(DSAMEConnection.java:992)
    at com.sun.portal.desktop.context.DSAMEConnection.setAttributeByDN(DSAMEConnection.java:518)
    at com.sun.portal.desktop.context.DSAMEAdminDPContext.storeDPDocumentByDN(DSAMEAdminDPContext.java:210)
    at com.sun.portal.portlet.cli.PDDPUpdater.storeDPDocument(PDDPUpdater.java:232)
    at com.sun.portal.portlet.cli.PDDPUpdater.addProviders(PDDPUpdater.java:98)
    at com.sun.portal.portlet.cli.PDDeploy.process(PDDeploy.java:229)
    at com.sun.portal.portlet.cli.PortletDeployerCommand.runCommand(PortletDeployerCommand.java:208)
    at com.sun.portal.portlet.cli.PortletDeployerMain.main(PortletDeployerMain.java:54)
    can somebody plz help?

  • Can I deploy a war file with the mixture of JSP and servlet?

    I have a project, which the JSP has been created for view page, and the servlet was created to retrieve the database, but we have trouble to pass the session variable from servlet back to JSP, it is NULL, with different session ID.
    Now, I try to add the servlet into the same JSP project, and deploy them as one war file, so, it will be called under the same subdirectory (Tomcat).
    It failed to call the servlet, with the error message
    Servlet FirstServlet is not available
    I wonder whether this is valid, if it is, what I may lost, if it is not, how to pass the session variable between them.
    Thanks.

    I double checked the web.xml file, the FirstServlet was defined as servlet class, and the FirstServlet class was found under WEB-INF/classes/FirstServletPackage directory.
    Here it is the web.xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <servlet>
    <servlet-name>FirstServlet</servlet-name>
    <servlet-class>FirstServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>FirstServlet</servlet-name>
    <url-pattern>/FirstServlet</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    and here it is the message from Tomcat log
    May 28, 2009 5:09:43 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Allocate exception for servlet FirstServlet
    java.lang.ClassNotFoundException: FirstServlet
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1094)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:808)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:595)
    I will try to rename it, then test it again.

  • How do you open a psd file in the trial version of Photoshop?

    How do y ou open a psd file in the trial version of Photoshop? I'm trying to import it from my file pictures or desk top.

    Hi,
    File>Open from within photoshop is the most basic way.

  • How do you play a swf file from the desktop

    I have created a swf file using flash. It can be downloaded
    onto the desktop. It is zipped. When unzipped it is called
    yadayada.swf. It does not get associated to the flash player or the
    shockwave flash player which are both installed. So if i double
    click on it it won't play.
    What do I have to do to make it play from the desktop in its
    plain swf file format. I want people to be able to download it onto
    their desktop for both Mac and PC users. I published it as a
    projector .exe file but mac users cant run it.
    What should be my next step?
    I have installed Flash on my development box so this isnt an
    issue but it is for my test computer that doesnt have flash
    installed.

    HI
    mm 2 things you can do.
    1. Create a html page that loads this SWF file, This will
    work on both OS's.
    2. Create a Projector file for PC and HQX for the Mac. You
    cannot have one
    file todo both.
    Hope this helps.
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. - www.flashjester.com
    "This has been one of the most impressive and thoroughly
    pleasant
    experiences of customer support I have ever come across -
    astounding!"
    Director - hedgeapple

  • How do you get an xml file from the PO Output for Communication report?

    Can anyone tell me how you've created an xml output fil for this program? When I run it, the View XML button doesn't light up, and the output file is empty.
    I can see the XML when I click the View Log button, but can't figure out how to save it so that the XMLP Desktop tool can load it properly.
    If you can tell me how to create this file, I'd be very appreciative.

    Hi,
    I can't see the xml in my log file. Maybe you have a different logging level. One issue I have had before is that the xml declaration had a strange character encoding. It should say something like: <?xml version="1.0" ?>. If it mentions anything about encoding you can remove it.
    One of our developers wrote a custom process to write the xml to a table when the document was generated as we couldn't find any other way of doing it.
    You can use the sample xml available from the data definition but this is missing fields.
    Probably not much help...
    Paul

  • How to deploy a war file with no descriptors in WLS - quick question

    Hi All
    How do we deploy a war file, which doesnt have weblogic.xml nor web.xml in it ?
    We have these xml files.
    1- How do we include these xml files ? any command line to do that ?
    2- Which is an easier approach to deploy a war file
    a) include these xml files into the war and then deploy with WLS using weblogic.Deployer or
    b) explode the war and then copy these xml files to its WEB-INF ?
    Is there an example we could use to follow to deploy our war file ?
    Thanks

    Puthanampatti, thanks for responding.
    What is the complete command line to deploy the war to a managed server, not Admin Server ?
    Our thinking is to deploy an exploded war directory but copy the descriptor files first.
    What do you think ?

  • How to deploy a WAR file to Sun One Portal Server

    Would someone please tell me the instruction of how to deploy a WAR file to Sun One Portal Server 6.2. Thank you.

    I would advise against this. We tried that and it totally hosed the server.xml file and took our staging portal server down.
    I have no idea what was "in" the server.xml or other files, but trying to deploy a .war file using the WS admin interface hosed portal server's settings.

  • Deploying a WAR file

    I am trying to deploy a war in the startlone mode using the command line admin utility and I get the following error.
    If I deploy it using the em console it get deployed properly, Are there any special requesites for command line deployment
    C:\OAS\10.1.3\OracleAS_1\j2ee\home>java -jar admin.jar ormi://localhost:23791 oc4jadmin pwd4oc4jadmin -deploy -file C:\gbctest.war -deploymentName gbc
    test
    Error: Deploy error: deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: java.lang.InstantiationException: Unable to find/read file META-INF/application.xml in C:\OAS\10
    .1.3\OracleAS_1\j2ee\home\applications\gbctest (META-INF/application.xml)

    In order to deploy using the CLI you are required to package your WAR file into an EAR. When you deploy a WAR through EM the EAR is generated for you

  • How do you load exs. format files into EXS 24 sampler?

    How do you load EXS24 format files into the EXS24 sampler? the only format I can load directly is aiff and wav. can't find any posts addressing this question? please help

    You don't load them in, you need to put them in:
    *System/users/your user name/library/application support/logic/Sampler instruments*
    Restart Logic if it's running, they will then appear in the EXS library.

  • How do I convert an war file to ear file, deploying weblogic apps

    Problem Description: I have a war file from a legacy application that needs to be migrated to weblogic. To migrate this application to weblogic, we need a ear file. Reading weblogic doc. it says we needs to use ant utility on an exploded web content application folder/ directory to create the ear file. I need to covert the existing war file to ear file , if it is doable or create one from the scratch. I need to know how to do that in weblogic. Please let me know if you have any hints .
    Thanks

    HI,
    Please try the following to convert your WAR file into an EAR exploded archieve:
    *1).* Create a Directory in your file system.
    Example:
    /home/apps/MyFirstEAR
    *2).* Place the WAR file inside the above Directory. (Suppose your WAR file name is test.war)
    Example:
    /home/apps/MyFirstEAR/test.war
    *3).* Now create a "META-INF" directory inside "/home/apps/MyFirstEAR" directory
    *4).* Now create an "application.xml" file like following inside "/home/apps/MyFirstEAR/META-INF" directory:
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.4">
    <description>Test EAR Example</description>
    <display-name>TestEAR Example</display-name>
    <module>
    <web>
    <web-uri>test.war</web-uri>
    <context-root>test</context-root>
    </web>
    </module>
    </application>
    *5).* Your EAR is ready now you can deploy the "MyFirstEAR" directory in the WebLogic Server.
    NOTE: if you want to place the "test.war" file also as an exploaded format content inside the EAR then you need to extract the test.war file and then in place of the test.war you can have "test" directory at the same place.
    You need to change the "application.xml" file like below in that case:
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.4">
    <description>Test EAR Example</description>
    <display-name>TestEAR Example</display-name>
    <module>
    <web>
    <font color=red> <web-uri>test</web-uri> </font><br>
    <context-root>test</context-root>
    </web>
    </module>
    </application>
    For more information on an EAR application structure you can refer to : http://middlewaremagic.com/weblogic/?p=1952
    Thanks
    Jay SenSharma
    http://middlewaremagic.com/weblogic (Middleware Magic Is Here)

  • How to deploy a war file from a different app server to the SAP one

    Hello,
    I hve recieved a war file from Tomcat that needs to be deployed on the SAP Java App server. As far as I know the SDM only allows to deploy ear files. How can I deploy this war to the app server?

    Hi Roy,
    in order to deploy the WAR file you have to wrap an EAR around it. I had the same problem.
    You can do this using Netweaver Developer studio.
    Perform the following steps:
    - Start NWDS
    - Create a New Enterprise Application Project
    - Create a New Web Module Project (name it like your war file => e.g. your war file is called myApp.war => call your Web Module myApp)
    - Edit the application.xml of your Enterprise App if necessary (description, Displayname etc.)
    - Link your Web Archive to your application archive (right Mouse click on Application Archive and from the Context Menu choose "Add Modules" => In the list choose your Web Module)
    => You can also perform a right mouse click on your web Module and from the context menu choose "Add to EAR Project" => In the list choose your Enterprise Application!
    - Build Web Archive (right mouse click on your Web Module and from the context menu choose "Build Web Archive" => This will create a war file that has the same name as your war file! => If you do not see it try to switch to resource perspective!)
    - Build Application archive (right mouse click on Application archive => from the context menu choose "Build Application Archive")
    You are done
    The EAR file is generated and will be created in your workspace.
    Now browse to your workspace. Unpack the EAR using WinZip or any other Archiver program.
    Replace the contained war with your war and repack the ear file (You can also use tools like Total Commander to directly replace the war file in the EAR with your war without having to unpack the war). You can also import your war into NWDS and rebuild it so you won't have to replace the WAR in the EAR but as your WAR is already built I would just replace it as described!
    You can now deploy the ear file to SAP J2EE
    Hope this helps (Reward points for helpful answers are appreciated!)
    Cheers

  • How to deploy exploded war file(from JBoss-Eclipse IDE) to Sun Server 9

    anyone plz tell how to deploy exploded war file (from JBoss-Eclipse IDE) to sun application server 9.i deployed noramllay at tht time404 hrown.plzz tell urgent
    regards,
    S Sunder

    Hi!
    How did You deploy WAR file? Did You try to do this with Application Server Admin Console?
    Thanks,
    Roman.

Maybe you are looking for

  • SNOW LEOPARD MAIL - INCOMPATIBLE PULGIN

    After i updated to snow leopard its saying ing the mail app (first time ive launched it since update last night) it says: Incompatible Plug-ins Disabled Mail has disabled the following plug-ins: MailUnreadMenu Contact the makers of these plug-ins for

  • ALV_grid oo: event "data_changed" on F4 in the line only for some fields

    Hi all, when I add a new line in ALV_Grid and I select the search help, for some fields the event "data_changed" has triggered even I have not finished to fill the entire fields on the line, and I don't need this. Opposite I have some fields which wo

  • KT4V and FSB133 a nogo combo?

    I have an AMD Athlon XP 2200+ (1.8ghz) CPU [with 256mbytes of PC2100 266mhz DDR Ram] I also have an MSI KT4V MB (latest Bios). The Motherboard defaults to 100mhz CPU FSB and the Computer is stable as can be but the MB only sees the CPU as an AMD 1500

  • Keep certain text in a datafield together when it is divided in more lines

    Hello, I have a datafield 'U_ketel_verw'. The field is set as Allow to grow. What I like to realize is that certain text in this datafield is kept together. This is my exemple: It looks like this now: A = MAG 135/7, B = MAG 135/71, C = MAG 135/7 SO17

  • Find the personal number of chief of org unit

    hi all,      I want to know how to find the personel number of the chief of organizational unit. For org. unit only one chief will exists, So I want to know how can we get that pernr. Is there any quickest way like function module or any other way. t