Converting .EAR file to .SDA
I have a generic Java EAR file that I need to publish to the SAP WAS using SDM but I'm having a hard time finding a tool that will package it properly (ie create the sap_manifest file).
I found tools to convert PAR and EPA files to SDA's (see SAP note 696084) but nothing for a generic EAR file yet.
Has anyone done this before?
thanks,
Glenn
In NW04 you should perform all deployment through the SDM.
SDM cannot deploy PAR files, and neither EPA.
It can deploy single SDA (Software Development Archive) or an SCA (Software Component Archive) which consists of one or more SDAs. EAR files are considered as a valid SDA.
SDAs are considered "development". If you are creating a full application, the finished product should be archived in an SCA and not as a mumbojumbo of EAR, PAR, EPA or whatever.
As of NW04 EPA files should not have PAR files inside. So in order for you to create a complete businees packaged that works and easy to deploy - pack it all into an SCA. If your whole application is a single PAR file, then I guess, you don't have to go into all this trouble. But using SDM is highly advisable and one day will probably be a must.
EPA (Enterprise Portal Archive) are the "complete" Business Package you create (if you are...)
Hope I helped shed light...
Azriel
Similar Messages
-
How to convert .ear file of webdynpro for java application to webdynpro pro
Hi All,
I have a .ear file which belongs one web dynpro for java application.
I do have other information about the same.
I need to convert it into a web dynpro project and use it in NWDS to make changes.
How can I do it? I could not find any solution on SDN.. I hope I get here...
Thanks and Regards,
Aditya Deshapnde
Edited by: Aditya Deshpande on Nov 23, 2010 1:55 PMHi Friend,
This is almost not possible even if you have Java Decompiler -- WD has a lot compile(design)-time only artifacts that are not exist in generated EAR.
Hope this is help full for u.
Regards
Vijay Kalluri -
Converting .ear file to .par file
Hi all,
I created an view in webdynpro. I want to change that .ear file
to .par file .can any body give me suggesion regarding this.
Thanks
PrasadIn NW04 you should perform all deployment through the SDM.
SDM cannot deploy PAR files, and neither EPA.
It can deploy single SDA (Software Development Archive) or an SCA (Software Component Archive) which consists of one or more SDAs. EAR files are considered as a valid SDA.
SDAs are considered "development". If you are creating a full application, the finished product should be archived in an SCA and not as a mumbojumbo of EAR, PAR, EPA or whatever.
As of NW04 EPA files should not have PAR files inside. So in order for you to create a complete businees packaged that works and easy to deploy - pack it all into an SCA. If your whole application is a single PAR file, then I guess, you don't have to go into all this trouble. But using SDM is highly advisable and one day will probably be a must.
EPA (Enterprise Portal Archive) are the "complete" Business Package you create (if you are...)
Hope I helped shed light...
Azriel -
Convert jar files to sda or sca
hi friends,
is there any procedure to conver jar files to sca or sda files?
One of my friend gave me some jar files and asked me to deploy it thru SDM.
I know that SDM can deploy only sda,sca,ear and rar files but i donno how to depoloy jar files thru sdm. then i thought of converting them into sca and deploy them thru sdm.
Can anybody please help me with this conversion from jar to sca?
Thanks in advance....Chimei,
Please refer the same discussion in the below thread and do the same in order to get SDA file.
How TO DEPLOY JAR FILES INTO XI Server using SDM
Best regards,
raj. -
Deploying EAR files in PI 7.1
Hello,
we are currently upgrading our XI 3.0 system to PI 7.1.
We had developed some adapter modules for XI 3.0 and we have compiled them with new libraries for using in PI 7.1.
But how can we deploy the created EAR-files in PI 7.1 now?
In XI 3.0 we used the Visual Administrator for Deploying. But we can't use this tool any more.
The SAP Netweaver Administrator doesn't have such a feature (we didn't find it anyway until now).
The only thing I found was to deploy EAR-Files using Developer Studio. But we can't deploy EAR files in test and production system this way.
Does anybody know an easy way to deploy EAR files in PI 7.1 (like in XI 3.0)?
Regards,
ThorstenHi Sean,
Definitely it is possible to use JSPM to deploy ear files in PI 7.1 (at least SP06). When you open up JSPM tool you will have to select "Hot Fixes" and then next. The file will have to be copied to the following Unix directory /<transport directory>/EPS/in. Unfortunately if the file is already deployed and you want to deploy it again with the same version but changes, you will not be able to redeploy it. For that propose you can use the scripts under unix ../j2ee/deployment/scripts. please have a lock under: http://help.sap.com/saphelp_nwpi71/helpdata/EN/46/1bd4293d034f08e10000000a114a6b/content.htm. There you will also find a script to convert an EAR file to SDA.
Regards,
Toni -
How to Convert EAR to SDA & Deploy it to PI 7.1 for Custom Adapter Module
Hi all,
I need to convert an EAR file created using NWDS 7.1 to SDA file and deploy it to PI 7.1
How can i do so.
Please help if possible! Thanks!
Mayankhi Mayank,
I quote from help.sap
"● Use the SAP NetWeaver Developer Studio and the SDM in the following cases:
○ If the source files of the application are available, you can import them into the relevant project types in the SAP NetWeaver Developer Studio and then build the archive files. This scenario enables you to change the code of the application if necessary, as well as to build an application archive, which can be deployed using the SDM.
This graphic is explained in the accompanying text
You can convert the application using the Converter Tool to see what information you should include in the additional deployment descriptors. Then you can edit the generated descriptors in the SAP NetWeaver Developer Studio.
○ If your applicationu2019s EAR file contains the descriptors required to deploy it with the SDM (sda-dd.xml), you can use the SDM to deploy it on the J2EE Engine 7.0. The EAR is automatically converted at deployment time.
This graphic is explained in the accompanying text
When the application is converted using the SDM, the newly generated descriptors are used during deployment only and are not stored in the file system. You cannot reuse the converted application later. Therefore, we recommend that you convert the application using the Converter Tool first, and then deploy it using the SDM.
● Using the Deploy Tool is more convenient in the following cases:
○ If only the EAR of the application is available and it does not contain the sda-dd.xml, use the Deploy Tool to convert and deploy the application on the J2EE Engine. Note that once the application EAR has been converted, it is no longer compatible with 6.20.
http://help.sap.com/saphelp_nw04s/helpdata/EN/2c/dd813e77d46245e10000000a114084/content.htm
Regards
joel -
Urgent urgent urgent how to convert 20 ear file into 1 sca file
hi experts, friends
help me if are intersted with this question ( its very urgent )_
my questions is
1 . how to convert the 20 ear files into 1 sca file
2 . how can i do that is there any 3rd party tool is there to convert
descripation :- i have 20 application which are developed by ui webdynpro java . 20 application are in .ear
files, that i can see in sdm tool. now i need to pack or bundil all 20 application or .ear files into 1 .sca file.
plz help me to resolve this issue
regards
rajaRaja,
The following conversions are possible:
PAR to EAR
EPA to SDA
EAR to SDA
SDA to SCA
Check with this SAP Help to make SDA file first and then
SDA to SCA.
[Creation of SDA and SCA Archives|http://help.sap.com/saphelp_nw70/helpdata/EN/a3/782240da03e569e10000000a155106/frameset.htm]
Check out this SAP Note as well :
Note 696084 - EP 6.0: How to create SDA files for EPA or PAR files
You can use the Command Line tool if your environment is SAP NetWeaver 7.1 Composition Environment (CE).
[Composition Environment Command Line Tool |http://help.sap.com/saphelp_nwce10/helpdata/en/45/5a3613dca22a4ce10000000a11466f/frameset.htm]
or
Follow the way mentioned here.
[Adding Transport Packages to NWDI|http://help.sap.com/saphelp_nw70/helpdata/EN/45/bd060552fd731de10000000a1553f6/content.htm]
Regards,
Karthick Eswaran
Edited by: Karthick Eswaran on Jun 20, 2008 8:50 AM -
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 .
ThanksHI,
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) -
Unable to deploy .EAR file to PI 7.1
/people/vijayakhanna.raman/blog/2007/06/08/cool-way-to-create-your-own-scas
Note 696084 - EP 6.0: How to create SDA files for EPA or PAR fileshi,
your ejb-jar.xml should look like:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<description>EJB JAR description</description>
<display-name>EJB JAR</display-name>
<enterprise-beans>
<session>
<ejb-name> MIDataTarget_PortTypeBean </ejb-name>
<home>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundHome4</home>
<remote>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundRemote4</remote>
<local-home>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocalHome4</local-home>
<local>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocal4</local>
<ejb-class>com.wipro.javaProxy. MIDataTarget_PortTypeBean </ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
check:
http://wiki.sdn.sap.com/wiki/display/XI/JavaProxyOutbound+Implementation
/people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
http://wiki.sdn.sap.com/wiki/display/XI/PIBlogsby+Topics
make sure that you are using PI 7.1 libraries:
https://wiki.sdn.sap.com/wiki/display/XI/XIlibrariesfor+development
for references in application-j2ee-engine.xml use:
http://wiki.sdn.sap.com/wiki/display/Java/JavaProxyChangesinPI7.1fromPI7.0
For deploying either you can directly deploy ear project using NWDS 7.1 or convert ear to sda using CECLT tool provided with NWDS 7.1:
Re: How to build an adapter module in NWDS 7.1?
Thanks,
Mayank -
Deploy EAR file into WAS using command line
hi,
I have an EAR file and i want to deploy it into WAS using command line interface.
I have seen the SDM_commandline.doc file in SDM directory ..it talks about deploying SDA's and SCA's :-
> sdm deploy file=<...>
however it is not working for EAR files...is there any way to deploy EAR files directly or should I convert the EAR to SDA and then deploy using this command.
thanksFor NW Java releases prior to 7.1, an EAR file needs to be transformed into a SDA file, then it can be deployed. For later releases, an EAR file can be directly deployed.
-
Error in deploying .ear file in weblogic 6.1
Hi
i had deployed an ear file named ProjectBroker.ear using hte weblogic console
and it was working fine .i had made changes to the ejb bean file and hence tried
redeploy it,though on the console it shows that it is deployed it , i'm not able
to access the ejb methods ,also when i start the server it gives me the following
error ---
<Mar 11, 2002 11:22:32 AM IST> <Error> <J2EE> <Error deploying application web-s
ervices: Cannot deploy WebAppServletContext(5197502,web-services,/ProjectBroker)
on myserver because WebAppServletContext(5450599,web-services,/ProjectBroker)
i
s already registered for path /ProjectBroker>
java.lang.reflect.UndeclaredThrowableException: weblogic.j2ee.DeploymentExceptio
n: Cannot deploy WebAppServletContext(5197502,web-services,/ProjectBroker) on
my
server because WebAppServletContext(5450599,web-services,/ProjectBroker) is alre
ady registered for path /ProjectBroker
could any one help me out on this issue
Rgds
raviHi Ivaylo,
to answer your first question, the EAR that I am trying
to deploy gets created as part of the publish step. When
I look in the application.xml file of this EAR I see a
version attribute with value of 1.4 in the application
tag, can we assume that this implies J2EE 1.4 compliancy?
One thing about this generated EAR is that it does not
include any java code (VM or otherwise). When I generate
the EAR by hand (by exporting the EJB project as an EAR
file there is a JAR for the actual java code put in
there, but when generating the EAR via publish there is
only some xml and manifest stuff put in the EAR, with the
result that it's only 2KB or so in size. I have specified
a J2EE module dependency from the Enterprise Application
project to the EJB project, but is there something else I
need to do to ensure that the java code (jar) gets
included in the EAR of the Enterprise Application when
attempting to deploy via publish?
Thanks for the other suggest, "Import J2EE Archive".
However, I am having difficulty locating this button.
When I look at the "Deploy View" window I see on the left
the Workspace and External Deployable Archives trees,
and on the right there are "Setting for Updating
SCAs/SDAs" radio buttons, as well as "Error Strategy"
radio buttons, but no "Import J2EE Archive" button.
Thanks for the info about SDM by the way, I was wondering
why I was not able to launch it (there is still a remote
gui shortcut, which should probably go away). -
Error in deploying, EAR file does not contain SAP_MANIFEST.MF
I just upgraded to SAP Netweaver Developer Studio 7.1 from 7.0, and the process of creating and deploying an EJB archive seems to be quite different. Here are the steps I am following:
(1) I create and build an EJB Project called foo.
(2) Export the EJB Project foo as an EJB JAR (not sure if this is necessary)
(3) Create an Enterprise Applications project called fooEAR, with target runtime set to SAP server. When I am prompted for J2EE Modules to add, I select foo (created in step (1)).
(4) Export the EAR project fooEAR as an EAR file. When I am prompted for which EAR application I choose fooEAR.
(5) Try to deploy the EAR created in (4) using Deploy View -> External Deployable Archives -> Add, then choose the fooEAR.ear as the target. But I get an error message:
Wrong SDA/SCA archive
Error while loading archive ...
Archive has no entry META-INF/SAP_MANIFEST.MF
I looked inside fooEAR.ear, and there is no SAP_MANIFEST.MF file. How can I create an EAR that has such a file ?Hi Ivaylo,
to answer your first question, the EAR that I am trying
to deploy gets created as part of the publish step. When
I look in the application.xml file of this EAR I see a
version attribute with value of 1.4 in the application
tag, can we assume that this implies J2EE 1.4 compliancy?
One thing about this generated EAR is that it does not
include any java code (VM or otherwise). When I generate
the EAR by hand (by exporting the EJB project as an EAR
file there is a JAR for the actual java code put in
there, but when generating the EAR via publish there is
only some xml and manifest stuff put in the EAR, with the
result that it's only 2KB or so in size. I have specified
a J2EE module dependency from the Enterprise Application
project to the EJB project, but is there something else I
need to do to ensure that the java code (jar) gets
included in the EAR of the Enterprise Application when
attempting to deploy via publish?
Thanks for the other suggest, "Import J2EE Archive".
However, I am having difficulty locating this button.
When I look at the "Deploy View" window I see on the left
the Workspace and External Deployable Archives trees,
and on the right there are "Setting for Updating
SCAs/SDAs" radio buttons, as well as "Error Strategy"
radio buttons, but no "Import J2EE Archive" button.
Thanks for the info about SDM by the way, I was wondering
why I was not able to launch it (there is still a remote
gui shortcut, which should probably go away). -
J2EE cluster error while deploying "EAR" file from SDM tool
Hi all,
I am new to CRM ISA development side. I am learning how to build b2c ear file base on b2c.ear and then how to deploy through SDM. Everything is working fine till build tool. Successfully build my own b2c_ashish.ear file. then I started SDM GUI and try to deploy it. In SAP MMC all process are running. J2EE engine is also running fine. I have describe below which step I took.
PL. go through it an let me know about my mistake.
I am just pasting that portion of error which I am getting when I am accessing "/b2c_kce/b2c/init.do"
===================
A runtime error occurred
Contact the administrator
Start application
==================
do you have any idea in which log file it writes error so I can open that file and . I tried to access log file from "Admin" page.
If I am trying to access "/b2c_kce/admin/index.jsp" I am able to access those pages without problem only "/b2c_kce/b2c/init.do" I am getting problem like above "run time error Occured"
When I click on "Start Application" it is opening new window and showing same text.
I checked SAP MMC. it is showing all node Green "dgntisa", "dgntisa1" and "dgntisa0" Also All process like under "dgntisa0" process "jcontrol.exe" and "igswd.exe " are green.
I build "b2c_ashish" new by using build tool. It was also successful.
I start SDM server by "StartServer.bat" and after that I start SDM remote GUI.
I select "Deployment" tab and add "crm.b2c_ashish" for deployment then I click on Start button and I got below error for "J2EE Cluster" that "SDM could not start J2EE cluster on the host dgntisa"
Pl. if you have any idea then pl. let me know how to solve this error.
Deployment started Sun May 14 14:24:50 PDT 2006
===========================================================================
Starting Deployment of crm.b2c_ashish
Aborted: development component 'crm.b2c_ashish'/'sap.com'/'SAP AG'/'400.200605141307':
SDM could not start the J2EE cluster on the host dgntisa! The online deployment is terminated. JStartup Framework is not able to deliver an information about the cluster control instances! Please check the status of the J2EE Engine
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).STARTUP_CLUSTER)
Deployment of crm.b2c_ashish finished with Error (Duration 3250 ms)
===========================================================================
Above error start ater restarting "WAS" server. Now You can not deploy or undeploy any SDA or SCA component.
I follow above mentioned steps 2 time after restarting "WAS" server. but it seems that one service for J2EE cluster is not started. I also chekced the running mode of SDM and SAP J2EE version. SDM Runing mode is "integrated" and SAP J2EE version is " 6.30" While using a build file it is showing J2EE engin version.
=======================================================Would you post the same thread under SAP Netweaver or WAS?
-
Java proxy and EAR file in NDS
Hi,
I'm new in java and also proxy development and I need some help
I have followed the pdf how to create java proxies in 3.0.
But i have some doubts:
Must I delete aii*.jar libraries from the EAR create?
I have no other .jar archive in that .ear... why? I suppose that is not correct and why my EJB module .jar is not included?
Thanks
carme,Hi, Shabarish
I have followed the same steps point out in this two blogs.
I recreated all my EJB project and application.
The EAR file created only contains:
guidgenerator.jar
aii_utilxi_misc.jar
aii_proxy_xirt.jar
aii_msg_runtime.jar
sda-dd.xml
application-j2ee-engine.xml
application.xml
Sap_manifest.mf
Manifest.mf
and also a file WITHOUT NAME and size 0.
That is not correct... right? -
Help deploying ear file in WAS
I have a few jsp, js and image files in my application that I intend deploying on the WAS. I created the ear file. When I deploy the ear file, I get the following message:
Dec 21, 2004 10:40:52 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Deploy Thread] WARNING:
vipsV4.ear -> Deployment finished with warning
DEPLOYMENT ...
==> SDM host : xxx
==> SDM port : 50018
==> URL : file:/C:/DOCUME1/smani/LOCALS1/Temp/temp11937YYY.ear
... PRECONDITION VIOLATED
com.sap.sdm.util.sduread.IllFormattedSduFileException: The information about the development component
found in the SDA C:\usr\sap\J2E\JC00\SDM\program\temp\temp11937YYY.ear is either missing or incomplete!
Manifest attributes are missing or have badly formatted value:
attribute keylocation is missing
attribute keyname is missing
attribute keyvendor is missing
attribute keycounter is missing
Reason:
Problems during deployment !
DEPLOYMENT ...
==> SDM host : xxx
==> SDM port : 50018
==> URL : file:/C:/DOCUME1/smani/LOCALS1/Temp/temp11937YYY.ear
... PRECONDITION VIOLATED
com.sap.sdm.util.sduread.IllFormattedSduFileException: The information about the development component
found in the SDA C:\usr\sap\J2E\JC00\SDM\program\temp\temp11937YYY.ear is either missing or incomplete!
Manifest attributes are missing or have badly formatted value:
attribute keylocation is missing
attribute keyname is missing
attribute keyvendor is missing
attribute keycounter is missing
Appreciate your help. How can I see the deployed applications in WAS. FYI, I come from a weblogic background.
ThanksHi Siriam,
how did you build that ear? I hope you did not just import it from weblogic and then use it from the studio. You should open new projects and import the files to the studio and thenbuild a new ear.
There is an article about prtong here at SDN: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/porting a j2ee application to sap web application server.pdf
Please check there for details.
Regards,
Benny
Maybe you are looking for
-
Audit Management in ECC 6.0
Can anybody Know How to use Audit Management In ECC 6.0,My Client Want To Audit Managament linking with Quality Mangament ,please Guide me if Anybody Know About this
-
OCR, Voting share problem.
Hi all, I trying to install an Oracle RAC on two Sun v240 (Solaris 10) with a Sun Storage 3510. But I dont know how to share the partitions for the OCR and Voting files that the RAC needs. The SE 3510 have 2 disk of 300 gb each one. Node1 sees those
-
Hi Experts, I have following problem, Please provide your inputs to solve this. <b>Background Info:</b> We are using web interface ( web excel) for planning and we have fund center authorization variable and once user launches the interface and selec
-
Our company is considering purchasing a C170 appliance with the hybrid cloud support also. We have about 500 users and would be using the encryption and DLP features as well. Any opinions from thos using this setup? Is this a good solution or should
-
IOS6 DELETED CONTACTS icloud switched on but nothing in there. Can I get them back or has ios6 killed them permenantly?