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.
thanks
For 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.
Similar Messages
-
Got this error after deploying ear file into OC4J server.
Hello Frnsz,
Can any one help to resolve the following error :)
Got this error after deploying ear file into OC4J server.
2008-06-04 14:57:58.551 WARNING J2EE JSP-0027 Errors parsing file:/C:/Program Files/Java/oc4j/j2ee/home/applications/MyEarProject/MyEarProjectWeb/WEB-INF/tld/pager-taglib.tld
2008-06-04 14:57:58.566 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:57:58.566 WARNING J2EE JSP-0027 Errors parsing file:/C:/Program Files/Java/oc4j/j2ee/home/applications/MyEarProject/MyEarProjectWeb/WEB-INF/tld/struts-bean.tld
2008-06-04 14:57:58.598 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:57:58.598 WARNING J2EE JSP-0027 Errors parsing file:/C:/Program Files/Java/oc4j/j2ee/home/applications/MyEarProject/MyEarProjectWeb/WEB-INF/tld/struts-html.tld
2008-06-04 14:57:58.629 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:57:58.629 WARNING J2EE JSP-0027 Errors parsing file:/C:/Program Files/Java/oc4j/j2ee/home/applications/MyEarProject/MyEarProjectWeb/WEB-INF/tld/struts-logic.tld
2008-06-04 14:57:58.660 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:57:58.660 WARNING J2EE JSP-0027 Errors parsing file:/C:/Program Files/Java/oc4j/j2ee/home/applications/MyEarProject/MyEarProjectWeb/WEB-INF/tld/struts-nested.tld
2008-06-04 14:57:58.691 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:57:58.691 WARNING J2EE JSP-0027 Errors parsing file:/C:/Program Files/Java/oc4j/j2ee/home/applications/MyEarProject/MyEarProjectWeb/WEB-INF/tld/struts-tiles.tld
2008-06-04 14:57:58.723 NOTIFICATION Binding web application(s) to site default-web-site ends...
2008-06-04 14:57:58.723 NOTIFICATION Application Deployer for MyEarProject COMPLETES. Operation time: 3422 msecs
2008-06-04 14:58:04.895 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:58:04.910 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:58:04.926 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:58:04.942 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:58:04.957 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:58:04.973 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:58:04.973 WARNING J2EE JSP-0003 loading Tld's into cachedConfigTable:
2008-06-04 14:58:04.973 WARNING J2EE JSP-0003 loading Tld's into cachedConfigTable:
2008-06-04 14:58:04.973 WARNING J2EE JSP-0003 loading Tld's into cachedConfigTable:
2008-06-04 14:58:04.989 WARNING J2EE JSP-0003 loading Tld's into cachedConfigTable:
2008-06-04 14:58:04.989 WARNING J2EE JSP-0003 loading Tld's into cachedConfigTable:
2008-06-04 14:58:04.989 WARNING J2EE JSP-0003 loading Tld's into cachedConfigTable:
2008-06-04 14:58:05.020 NOTIFICATION J2EE JSP-0008 Unable to dispatch JSP Page : Exception:oracle.jsp.parse.JspParseException: /WEB-INF/jsp/login.jsp: Line # 2, <%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
Error: java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei
Cheers,
CapCross posted in correct forum
[http://forum.java.sun.com/thread.jspa?threadID=5302192] -
Can an Access 2013 accdb file be encrypted using command line switches?
Can an Access 2013 accdb file be encrypted using command line switches?
I found all the command switches, but nothing about encrypting. And I've searched online and found nothing.
Can this be done?
Thanks!Hi Sharon2000,
I think you could try the Database.NewPassword Method (DAO) in the VBScript file, and you could get more information about it from the link below:
#Database.NewPassword Method (DAO)
https://msdn.microsoft.com/en-us/library/office/ff844754.aspx
Here is a simple demo to achieve your issue.
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
Errror while deploying ear file into sapwas
Hi all,
I am getting following error while deploying the ear file into sap web application server during the migration of j2ee medRec application into sapwas.
06/02/22 10:46:21 - ***********************************************************
Feb 22, 2006 10:46:21... Info: End of log messages of the target system.
Feb 22, 2006 10:46:21... Info: ***** End of SAP J2EE Engine Deployment (J2EE Application) *****
Feb 22, 2006 10:46:21... Error: Aborted: development component 'Medical Records Patient Application'/'sap.com'/'localhost'/'2006.02.22.10.44.55':
Caught exception during application deployment from SAP J2EE Engine's deploy service:
java.rmi.RemoteException: Cannot deploy application sap.com/Medical Records Patient Application..
Reason: Incorrect multiplicity value: one. Use One or Many.; nested exception is:
com.sap.engine.services.ejb.exceptions.deployment.EJBXMLParserException: Incorrect multiplicity value: one. Use One or Many.
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
Feb 22, 2006 10:46:22... Info: J2EE Engine is in same state (online/offline) as it has been before this deployment process.
Feb 22, 2006 10:46:22... Error: -
At least one of the Deployments failed -
Thanks
Neeta VermaHi,
Check in the corresponding applcation.xml for entries
like <multiplicity>one</multiplicity>, <multiplicity>many</multiplicity> and replace them with <multiplicity>One</multiplicity> ,
<multiplicity>Many</multiplicity> respectively.
Regards,
Prasita -
Read in file name + path using command line arguments
Hi guys,
I am trying to use command line arguments to read in the name of two files. The code below works as long as the files are on the class path.
public class cmdLineArguments {
public static void main(String[] args) {
String xmlFile1 = args[0];
String xmlFile2 = args[1];
System.out.println ("\nXmlFile1: " + args[0] + "\nXmlFile2: " + args[1]);
}I would like to be able to read files that are not on the class path as well by entering their full path along with their names.
In other words, It works if I type:
C:\Documents and Settings\user\workspace\CmdLineArgs\src>java cmdLineArgs file1.xml file2.xmlbut not if I type:
C:\Documents and Settings\user\workspace\CmdLineArgs\src>java cmdLineArgs c:\Documents and Settings\user\desktop\file1.xml c:\Documents and Settings\user\desktop\file2.xmlWould anyone please explain how I can edit the code to make it work? I guess I could take them both as a String, modify them manually (add a \ to it etc) but is there an easier way to do it? Even a reference to a tutorial, article etc about this would be very much appreciated.
Also, any idea why a code would compile and run fine in Eclipse but would create an error from command line?
Thanks a lot.You need to learn about cmd.exe which is used to process the command line. The arguments passed to any program is the command line split at white space so your command line arguments of
c:\Documents and Settings\user\desktop\file1.xml c:\Documents and Settings\user\desktop\file2.xmlis turned into an array of
"c:\Documents", "and", "Settings\user\desktop\file1.xml", "c:\Documents", "and", "Settings\user\desktop\file2.xml"In other words instead of 2 arguments you actually have 6.
To get round this the file names need to be quoted
java cmdLineArgs "c:\Documents and Settings\user\desktop\file1.xml" "c:\Documents and Settings\user\desktop\file2.xml" -
How to convert a word file into PDF in command line ?
Hi,
I want to convert a word (excel, powerpoint, ...) into a PDF using a windows command line.
The command :
c:\> acrodist toto.ps
is working file and the output is a PDF file (toto.pdf)
But if i try with a MS office word file it is not working
c:\> acrodist toto.doc
The output in the console is:
%%[ Error: undefined; OffendingCommand: ÐÏࡱá ]%%
%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
%%[ Warning: PostScript error. No PDF file produced. ] %%
If i do a right clic on the file with the mouse and select in the context menu the option convert to PDF it is working fine :-\
How can i convert that kind of file with a command line ?
Thanks for your help
Xav>But, from the windows explorer, if i do a right clic on the word document, with the context menu, i can directly convert to PDF
This is equivalent to using the PDFMaker facility in Word - that is,
the Acrobat button. Which is also the same thing that is done when you
use File > Create PDF > From File in Acrobat.
What it does is print to a PS file *and* do a lot of additional
processing to write stuff about links, tags etc. into the PS file.
>(no tmp PS file is used, cause the links are still working).
This isn't true, but it's certainly the case that you won't get links.
There seems to be no API, via any mechanism, still less the "obsolete"
(Microsoft's view) command line, to use PDFMaker from your program.
Aandi Inston -
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 -
Getting an Error while deploying ear file to WAS 6.40 server
Hi All,
I am getting following error while deploying the application
Result
=> deployment aborted : file:/C:/DOCUME1/bv45127/LOCALS1/Temp/temp31955boc.com~cedapp.ear
Aborted: development component 'cedapp'/'boc.com'/'QUA_00000127_D'/'20070328162705':
Caught exception during application deployment from SAP J2EE Engine's deploy service:
java.rmi.RemoteException: Cannot deploy application boc.com/cedapp.. Reason: Exception during generation of components of application boc.com/cedapp in container EJBContainer.; nested exception is: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application boc.com/cedapp in container EJBContainer.
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
Deployment exception : The deployment of at least one item aborted
I have added reference to JCO in application-j2ee-engine.xml.
Please guide me
Thanks
BidhudasHi Again,
Now with a different problem.
I have removed configuration and imported the configuration again. But now it is not recognizing API ( created by me with all common classes as java project).
Structre of the application is as follows
Cedapp - ear file
Cedejb - ejb module
Cedweb web module
Cedapi - java project with common classes used in both ejb module and web module and published as library. This refered in both the ejbmodule and web module.
The problem now I am facing is that cedapi is not getting recognized by ejb module or web module. But it is available in used dcs of each. -
Converting Doc files to PDF using command line ?
Hello,
I need to automate the process of converting (in command line) word files to pdf.
Is Acrobat distiller Server the right product ? or is there another product from Adobe that would allow me to reach this goal ?
NB : currently using pdfcreator in command line but have some stability problems now...
thanks a lot
FlorentAcrobat Distiller Server can only convert Postscript to PDF. You may look at this product:
http://www.adobe.com/products/livecycle/pdfgenerator/ -
Error while re deploying .ear file in .eap project
Hi Every one,
i developed ejb module ,It Exposed to as Webservice .
I Deployed .ear file into server got result successfully.
Now i made changes in EJb module by adding some other methods .
Then i perform build a Ejb Archive, EAp project Archive.
Next deployed into server .
getting error as follow.
Application alias [WebServiceNew/Config1] for application [sap.com/MA_EAR] already exists in the HTTP Provider Service
what are the things i need to change for getting sucess.hi ,
go to the undeploy perspective, and select ur web services , add to the undeploy list and undeploy it .
delete the webservice model and generate the code , build and deploy it again to the server.
hope ur problem get resolved
thanks and regards -
How to open url in acrobat reader using command line
Hi,
I need to open file from url using command line, but I'm still getting some error (wrong filename).
I've tried for example this command:
AcroRd32.exe http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf
Can anyone help me and tell me what's wrong?You can't use a URL as parameter for AcroRd32.exe.
-
Compiling FLA and AS files to SWF file using command line
I need to encorporate the .as sources and .fla file, into my
build environment, to compile the SWF file.
Right I have to Open Flash 8 to perform this and copy the SWF
created through the compilation process.
Compiling FLA and AS files to SWF file using command line is
my main purpose. If there such a utility there, does it exist for
Linux and Windows.Try
Flash
Command or
Flash
Shell Extension
We use an enhanced version of Flash Command internally, of
which we fixed the bug of Mike Chamber's Flash Command which cannot
be run in .NEt 2.0 and added some other functionality. Once we are
comfortable with it, we will release it to the public. -
How to use command line with acrobat to extract page(s) from pdf file?
I have adobe acrobat, and have a pdf file with over 500 pages. I need to extract small chunks of pages from it as seperate pdf files. I was hoping I could use command line interface to do this faster.
Something like:
acrobat src des start end
so for example
adobe file.pdf my_folder 3 5
Is this possible? There are many chunks and I don't want to manually do it for every chunk. Command line would be much easier...
ThanksI can't find any programs... sorry.
Can you create one for me please.
It should at least have these 5 arguments: (well the first one is not neccessary since were not using acrobat anymore...)
[program] [src path/src file] [destination path/file name] [start page (inclusive)] [end page (inclusive)]
for example:
acrobat ./my_file.pdf ./my_folder/chunk1.pdf 3 5
if start page == end page, then it only extracts that one page.
So this way I can just stack these comands on a .bat file or something (maybe like 100 commands), then run the bat file, and it will create all the files.
Thanks for doing this, it is appreciated. -
Error coming while deploying portal EAR file into the weblogic Portal 8.1..
HI Guys,
When I deploy the latest PORTAL EAR file into the BEA portal environment we
receive a number of these errors:
####<Feb 27, 2008 4:36:14 PM PST> <Warning> <netuix> <dev147> <portalName>
<ExecuteThread: '0' for queue: 'weblogic.kernel.System'> <<WLS Kernel>>
<BEA-423171> <
java.lang.Throwable: New portlet file
[portlet/portletname.portlet] and existing portlet
file null have the same definition label
Lebel Name. Will not create a definition for
portlet file [portlet/portletname.portlet].
at
com.bea.netuix.application.manager.persistence.jdbc.PortletDefinitionDelegate.c
reatePortletDefinitionInternal(PortletDefinitionDelegate.java:1442)
at
com.bea.netuix.application.manager.persistence.jdbc.PortletDefinitionDelegate.c
reatePortletDefinition(PortletDefinitionDelegate.java:906)
at
com.bea.netuix.application.manager.persistence.jdbc.PortletDefinitionManagerImp
l.createPortletDefinition(PortletDefinitionManagerImpl.java:520)
at
com.bea.netuix.application.manager.persistence.jdbc.PortletDefinitionManager_41
0kn4_EOImpl.createPortletDefinition
(PortletDefinitionManager_410kn4_EOImpl.java:476)
at
com.bea.netuix.servlets.repository.PortletFilePersistenceManager.create
(PortletFilePersistenceManager.java:189)
at
com.bea.netuix.servlets.repository.PortletFilePersistenceManager.createUpdatePo
rtletDefinitions(PortletFilePersistenceManager.java:304)
at com.bea.netuix.servlets.repository.PortletFilePersistenceManager.sync
(PortletFilePersistenceManager.java:609)
at
com.bea.netuix.servlets.repository.AbstractFilePersistenceManager$Sync.run
(AbstractFilePersistenceManager.java:187)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs
(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs
(SecurityManager.java:147)
at
com.bea.netuix.servlets.repository.AbstractFilePersistenceManager.startup
(AbstractFilePersistenceManager.java:86)
at com.bea.netuix.servlets.manager.PortalServlet.initFilePoller
(PortalServlet.java:511)
at com.bea.netuix.servlets.manager.PortalServlet.init
(PortalServlet.java:242)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run
(ServletStubImpl.java:1099)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs
(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs
(SecurityManager.java:121)
at weblogic.servlet.internal.ServletStubImpl.createServlet
(ServletStubImpl.java:975)
at weblogic.servlet.internal.ServletStubImpl.createInstances
(ServletStubImpl.java:954)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet
(ServletStubImpl.java:893)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet
(WebAppServletContext.java:3456)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets
(WebAppServletContext.java:3413)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets
(WebAppServletContext.java:3399)
at weblogic.servlet.internal.WebAppServletContext.preloadResources
(WebAppServletContext.java:3382)
at weblogic.servlet.internal.WebAppServletContext.setStarted
(WebAppServletContext.java:6262)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:892)
at weblogic.j2ee.J2EEApplicationContainer.start
(J2EEApplicationContainer.java:2181)
at weblogic.j2ee.J2EEApplicationContainer.activate
(J2EEApplicationContainer.java:2222)
at
weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateCo
ntainer(SlaveDeployer.java:2521)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit
(SlaveDeployer.java:2439)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit
(SlaveDeployer.java:2156)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit
(SlaveDeployer.java:2255)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare
(SlaveDeployer.java:2150)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare
(SlaveDeployer.java:2402)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask
(SlaveDeployer.java:884)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta
(SlaveDeployer.java:592)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate
(SlaveDeployer.java:501)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute
(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Thanks in advance...
Regards,
Sandeep KBefore deploying the app, you could check database table PF_PORTLET_DEFINITION for any entries there which might conflict with yours.
--Stefan -
How to deploy an Ear File into Weblogic Server
Hello,
i have created an ADF application successfully and make it as an EAR file.
How can we deploy that EAR file into weblogic server..?
Let me know step-by-step procedure.
Regards.Hi,
Steps to deploy EAR file on Weblogic server:
1) login to http://<hostname>:<port>/console
2) Go to deployments and then install your ear on weblogic server.
Also you will need to create a data source with same name as given in your Application Module.
Following link contains steps for data source creation - http://www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html ( section - "Configure a JDBC Data Source")
Thanks,
Randhir
Maybe you are looking for
-
Hello all, I am trying to deploy EAR(has more than 25 ejb's) in weblogic 9.2 but currently one EJB ejb-pwc.jar is failing to compile(gives out of memory error). But if i try building ear only with this EJB and its dependencies class it work. Here is
-
Does anyone know what how to fix this problem? My mouse works fine, but I can't drag a song anywhere. It will highlight a song, but won't move it anywhere (a playlist, to the desktop, ipod etc.). It is as if my mouse ceases to drag in Itunes. I have
-
Aluminum Macbook compared to white Macbook
Ive been looking to buy a 2.0 Aluminum macbook but the white macbook now has a little bit faster processor and its 300 dollars cheaper. So could anyone tell me what makes the aluminum macbook worth that extra 300 dollars if there is any reason at all
-
Is it too much to ask from apple, an option for different volumes levels from different apps, including alarm, text, email, basically from every posible app?
-
Facebook albums missing after upgrade to iPhoto '11
I installed iPhoto '11 on my wife's iMac. She had probably 30 or more Facebook albums that showed up on the left side of the screen in iPhoto '09. After the upgrade there is just one icon that shows she has an account but none of her previous albums