Websphere 8.5 Run EJBDeploy tool with arguments
Answered
I need to run the EJBDeploy tool with additional arguments for Websphere 8.5 application server. Currently I am not seeing any options in the deployment tab to add arguments to the ejbdeploy plug in.
Please sign in to leave a comment.
Could you clarify please what are you trying to customize and what arguments you want to use? Thanks.
I am trying to deploy the ear artifact with WAR and EJB artifacts. My ejb is dependent on other jar which I need to add in classpath to compile. I need to add classpath arguments while generating the stubs using EJBDeploy tool. I am seeing the checkbox option for ejbdeploy command but not sure how to add the below arguments.
(ex) ejbdeploy.bat -cp "classpth/directory"
Do you create and build EAR using IDE's artifacts configuration or doing it externally?
>I am trying to deploy the ear artifact with WAR and EJB artifacts. My ejb is dependent on other jar which I need to add in classpath to compile.
When you use IDE for artifacts generation - IDE will automtically include all the dependencies of the artifact (from the corresponding module's dependencies) int it, thus no need to additionally configure anything.
I resolved the issue using launch external tool option from "Before Launch" section
Deploying Ear Artifact generated by Intellij and using the following steps to resolve the issue
1. Building the EAR artifact
2. Launching the preDeploy.bat(added the required commands in the batch file) using the external tool option to perform the stub generation using ejbdeploy.bat from websphere with required arguments
3. Unchecked the Run EJBDeploy tool from the deployment tab
Hi, Lakshmi
Would you please describe your resolution steps in more detail.
I have the exact same problem as you had, where I need to somehow generate the needed stubs.
My EAR has been built and is ready. And I'm now ready to run the EJB Deploy Tool.
Where do you find the “preDeploy.bat” and “ejbDeploy.bat” files? It appears they do not exist on my PC.
What is the name of that external tool that you used?
Where is the deployment tab located that you're referring to?
Hi Sashko82 , on my computer (WebSphere 6 and 9), it's under C:\Program Files\IBM\WebSphere\AppServer\deploytool\itp\ejbdeploy.bat
However, I can't find any doc about the “preDeploy.bat”. If you are using the latest version of WebSphere Liberty, then there will no these bat files too, it will act like a Spring single process app.