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)

Similar Messages

  • How do i convert a .pdf to a WORD file?

    How do I convert a .pdf to a WORD file?

    Hi pdfyes,
    Welcome!
    Try going here:
    ExportPDF getting started guide: http://forums.adobe.com/docs/DOC-2412
    Kindest regards,
    Stacy

  • How do i convert a pdf into a word file, i have tried doing save as?

    how do i convert a pdf into a word file, i have tried doing save as?

    Hi Jack,
    What version of Acrobat are you using?
    You might need to go to File> Save As Other> Microsoft Word or choose 'Adobe PDF printer' from the File menu.
    Is save as option not functioning correctly? Do you get any specific error?
    Please let me know.
    Regards,
    Anubha

  • How can I convert a mp3 to a text file?

    How can I convert a mp3 to a text file?

    Agree with dwb
    .. and wanted to say hi from my Schnauzer....

  • How to include external .js file into .ear file using NetBean 5.5.1?

    is it possible to include external .js file into .ear file using NetBean 5.5.1? if not, then where should I placed the external .js file and how to write the src="xxx" element? (that is , how to write the path of "xxx"?)
    I am using JBOSS 4.2.2 GA as server
    thx!!

    Even this is also not possible because, the code in that package is developed by DWR and i am just adding it to my lib folder and importing the respective classes. In the same manner i need to include the *.js* file in the JSP.It took me about 3 minutes reading through the [DWR Getting Started|http://getahead.org/dwr/getstarted] page to learn that you don't have to do any of that. Perhaps you should read that page?

  • How many Ways jar files from ear file on a jboss can be downloaded on clien

    Aoa
    How many Ways jar files from ear file on a jboss can be downloaded on client side
    like jnlp etc..
    Regards
    M Fazal Ur Rehman

    First, you need to be able to boot from the Recovery HD:
    Boot Using Command+R keys:
      1. Restart the computer.
      2. Immediately after the chime press and hold down the
          "COMMAND" and the "R" keys together.
      3. Release the keys when the Utilities Menu appears.
    Once at the Utilities Menu select Terminal from the Utilities menu in the screen's menubar. Now, you need to know where these new files are located. You move to any location using the 'cd' command such as cd /Users/user_name/Documents, then press RETURN. Replace user_name with your actual username. Next you need to do a directory listing to see if your files are in that location, Documents. Use ls -al to do a directory listing of the files and folders in Documents. If you find your new files there, then connect an external drive or flash drive. You will need to know the name you have assigned to this drive. It needs to be already formatted. Copy your files using cp /Documents/filename /Volumes/volname/filename. Replace volname and filename with those that apply. Press RETURN.
    Or take it to your local Apple Store and see if they can do the chore for you.

  • Difference between .war file and .ear file

    Hi,
    what is the difference between .war file and .ear file ?
    Please let me know with appropriate explanation.

    War file means web application archive. It is archived file having a collection of JSP, servlets and static pages that together costitute a web application. It contains one WEB-INF directory which will have a file named web.xml which defines the structure of the web application.
    On the other side EAR file is Enterprise application archive. It is file having packaged content of one or more modules into a single archive so that the deployment of all the modules can be done simultaneously on the application server. It also contains XML files called deployment descriptors which gives the details of the deployment method. This deployment descriptor will be present in the folder META-INF folder.
    So the main difference betwwen the two is that Ear file is having collection of various modules to be deployed on the application server while the WAR file is used to deploy the web applications.

  • Editing log4j.properties file of ear while deploying ear file.

    Hi,
    Can i edit log4j.properties file of ear while deploying ear file.
    ~ Dhiraj.

    javainstead:
    >>is MyFolder in the root? else you mite wanna try giving the entire path starting from the root
    No the "MyFolder" is not in the root. Normally if we give the file name alone, it will store in a directory. Instead of storing in that directory, i want to have create another subfolder under that directory and storing the file in it. This is my need.
    OS: Windows 2000.
    zakir_sh:
    log4j.rootCategory=DEBUG,myproj
    log4j.appender.myproj=org.apache.log4j.RollingFileAppender
    log4j.appender.myproj.File=/u3/logs/myproj_webapp_logs/dev_region/mylogfile.log......
    I gave relative path like this and got the file not found error.
    log4j.appender.myproj.File=/MyFolder/error_file.log
    Thanks,
    Manikandan

  • How do i convert a document to a pdf file off desktop

    how do i convert a file to a pdf file

    Which Adobe software or service would you like to accomplish this task with Jerry?

  • How can I convert a Slideshow to an .m4v file?

    I am trying to convert a slideshow, with audio, created with iDVD to a movie file to transfer into iMovie to be able to post on iWeb. How can I convert to an .m4v file?

    You'll have to rip the iDVD disk that you burned with HandBreak or similar app and then import the resulting movie file into iMovie.
    OT

  • HOW DO YOU CONVERT IPHOTO 8.1 TO APERTURE FILE FORMATT

    how do you convert iphoto 8.1.2 photos to aperture file formatt?

    I believe this is still possible if the iPhoto library has not been up graded.
    No joy, Frank. This is what I get, when I try to import an older iPhoto Library into Aperture 3.4.3 using "File > Import > Library":
    Aperture 3.4.x insists on the library being converted to 9.4.x. To be able to import earlier iPhoto Libraries you would have to fall back on Aperture 3.2.x; temporarily install a second, older Aperture version, create a new Aperture library with this version, import the iPhoto Libraries, then open this Aperture library in Aperture 3.4.3 to convert it to a current version.
    bertpa, how many iphoto photos are we talking abourt? If you are having several iPhoto libraries with thousands of edited photos, it really would be worth it to upgrade to iPhoto 9.4 to convert your libraries. iPhoto 9.4 will convert your library to a format with Master-version pairs like aperture uses. If you import this to Aperture, you will be able to import each edited image as a single image with two versions (original and edited)- importing from previous iPhoto versions you would be importing each edited image as two separate images - an edited image and the original. This would be wasteful, if you have many photos in Aperture, and it would cause a lot of additional work to get these duplicates sorted out. But if you only have a handful of iPhoto images, launch iPhoto and use the "File > Export" command to export your photos from iPhoto to a folder. You will have to do it twice - once to export the originals and once to export the edited versions. Then import your exported iPhoto photos into Aperture.
    Regards
    Léonie

  • How can I convert an array into a .wav file?

    I have an array of points that I need converted and written into a .wav file. Any help?

    Indeed there is!
    Look at the attached vi....that's about all there is to it!
    Good Luck..
    Eric
    Eric P. Nichols
    P.O. Box 56235
    North Pole, AK 99705
    Attachments:
    ARRAY_TO_WAVE.vi ‏17 KB

  • How do I convert a pdf to an excel file

    how do I convert a pdf to an excel file

    Hi blondie196398,
    You can use ExportPDF (or Adobe PDF Pack to do that). Please see Getting Started with ExportPDF | Adobe Community - Adobe Forums.
    If you have additional questions, please let us know!
    Best,
    Sara

  • How do I convert an Encore project to an iTunes or Android app?

    I've got a rather complex video project with lots of submenus (that works as a DVD - so it is "debugged") that I need to be able to export from Encore into an app to upload on the iTunes store and Android Market. So far, I've managed to export the project via Encore's Flash output and test the results using a web browser (it works).
    Everything got saved in a new folder structure with an index.html file pointing to a flashdvd.swf file pointing to a AuthoredContent.xml file that actually holds all the information on the file structure (there are 99 files totalling over 200 megabytes at the lowest resolution in the Sources subfolder) and uses a Theme.xml file to generate a background.
    So I need to somehow convert this "stuff" into something that can be uploaded to the appropriate store. I stumbled upon Jeanette Stalions tutorials on using Flash Builder for this purpose, but can't even figure out how to open the Encore  output in some meaningful way using Flash Builder so I can get started. (yes the swf file can be opened but that doesn't seem to have any particular value since all it does is point to the xml files.)
       1. I've got Flash Builder 4.5 - do I need to upgrade to 4.7 in order to import the project or can this be done in 4.5?
    2. Is there some intermediate step that I'm missing? Do I need to do something in Flash Pro first?
    3. Will Flash Builder be able to repackage all these files into the file specs required by each target platform (I'm assuming it will - is that a valid assumption)?
    And moving downstream a bit...
    4. Since this is a video based project with over 200 megabytes of F4V content, how will the content arrive on the end user device? Will it have to be  streamed or can it be downloaded? - this is a big issue should the app become popular and we be forced to maintain a streaming server somewhere. What about server sizing in such an event? For example: is there a way to estimate how much bandwidth is required per 1,000 instances?
    <moved by mod from flash pro cc forum - kglad>

    Ok, so I opened Flash Builder, created a new project and after a lot of trial & error was able to bring in all the files from the Encore output using import/general/file_system in one chunk. That at least gets me to something that might have a future!
    As to question 1 above: Many of the articles I've found in the Developer Center refer to various versions of tools: Flex, Flex Builder (now called Flash Builder), Flex SDK, Spark, ActionScript and Flash Catalyst. The products seem to have undergone quite a few transformations and specific processes like roundtripping between Catalyst & Flash Builder are now obsolete since Catalyst is now a dead product.  So does this mean that all (or many) of these confusing tools are now united in Flash Builder 4.7?
    And this begs the question "how does a newcomer get started building an AIR app without having to learn the entire history of Flash and it's evolution from simple display of vector graphics to a Swiss Army knife environment?"

  • How to access a jar file in EAR file?

    I have a EAR file which contains EJB.jar file and util.jar file. Outside of EAR, I mean in client side, I need to reference util.jar file. How can I access it?
    EAR structure is
    |--+META-INF/
    |--|---application.xml
    |--|---manifest.mf
    |--EJB.jar
    |--|---+MEAT-INF/
    |--|---|--- deployment descriptors...
    |--|---|--- manifest.mf
    |--|--- EJB classes
    |--Util.jar
    Util.jar must be executed in server side. If I just add Util.jar in client program's classpath, when client program is executed, serverside Util.jar is executed? Or what else I should do in the client program to reference server-side Util.jar?

    Excellent question. I don't see any client-jar in your EAR file structure. So I am assuming you are writing a separate client application which will talk to the ejbs deployed as part of this EAR. You need to do the following:
    Write another EAR file with the following structure:
    ear:
    META-INF/application.xml
    util.jar
    client.jar
    client.jar should have a META-INF/MANIFEST.MF and that should contain Class-Path:util.jar and value for Main-Class attribute.
    Now deploy this new ear to your application server and execute it using Application Client Container that comes with your app server.
    If you don't want to write another EAR file, then bundle th client.jar in your original EAR file.
    Points to note are:
    you have to repackage util.jar again inside this ear file.
    For portability reason, you should use Class-Path manifest entry in client.jar. Refer to http://java.sun.com/j2ee/verified/packaging.html and J2EE platform spec section #8.2.
    Hope this helps,
    Sahoo

Maybe you are looking for

  • To color selected cells in dynamically created table in ALV.

    Hi,        The requirement is to display a table (whose columns are dynamic) using ALV n to color few cells of the table based on some condition. For creating the table dynamically i have used the method cl_alv_table_create=>create_dynamic_table. Now

  • Migrating apps from WLS 10.3.0 to SOA Suite 11g-- WLS 10.3.3

    Hi, We want to migrate our apps from WLS 10.3.0 to SOA Suite 11g-->WLS 10.3.3. While deploying the apps on WLS 10.3.3 (SOA Suite Domain 11g), it is throwing exception as below. This exception is common for almost all apps. Kindly help. Caused by: web

  • Intelligent agent not running

    Hi all, i had database of 9.2.0.1 on windows xp. i am trying to configure EM using OMS. while discovering nodes i am getting error saying intelligent agent not running. i tried to start that using "agentctl start" but its saying "could not able to co

  • GT683 USB Port Problem

    Hi, I have a External HDD USB 3 compatible device (WD 500 GB 2,5"). I'm pluging it to USB 2 port and Windows 7 say: "this device can perform faster". But when I use the USB 3 port of my device, Windows 7 can not recognize my device. Any idea?

  • GRANT LOGON TO SERVICE RIGHTS TO A USER REMOTELY

    Hi all, I have 20 Windows 2008 servers running an application I want to grant logon to service rights to a particular domain user on all these 10 servers. I have three services in which the user needs to be granted logon to service permission. Can I