cancel
Showing results for 
Search instead for 
Did you mean: 

how to Deploy .war on J2EE

Former Member
0 Kudos

Hi,

Can anyone tell me how do i deploy .war file on J2EE engine. While searchin for the solution, i learnt that i need to convert .war file to .ear file, is that right?. Can anyone tell me how do i do that. what tool to use and the procedure. I dnt want to do the conversion from .war to .ear and deployment through NWDS.

Regards,

naveen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hello naveen,

the easiest way is to use the deploytool.

create a new EAR file and include your WAR file into it. then connect to your

J2EE server and deploy.

WAR file is not literally converted to EAR file. rather, it is being included into

the package. and EAR file may contain several WAR files...

regards

jo

Former Member
0 Kudos

Hi,

Thanks for the reply. I was able to convert the .war file to .ear file using the deploy tool as suggested by you. But i'm having problem connecting to the J2EE engine.Our portal is active at port 50000 and hence wanted to

deploy the EAR on the port 50000.While tryin to connect to port

50000 we get the followin error,but connection to other port (50004) does not

throw any error. I tried resetting the user 'Administrator' and the port to 50000 using config tool, but still the same error is being displayed. I also restarted the J2EE engine after makin the changes.

ERROR: Cannot connect to Host: [localhost] with user name: [Administrator]

Check your login info.

Exception is:

com.asap.engine.services.jndi.persistent.exceptions.NamingException:

Exception while trying to get InitialContext. [Root exception is

com.sap.engine.services.security.exceptions.BaseLoginException: Cannot

create new RemoteLoginContext instance.]

Please assist in solving the above issue.

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Naveen,

1. Try restarting the server once and deploy.

Are you able login using visual admin?

Regards, Suresh KB

Former Member
0 Kudos

Hi,

Are you doing the deployment from NWDS? Even though the portal is active on 50000, deployment happens through SDM whose default port is 50018. Which port did you change using config tool?

Rajit

Former Member
0 Kudos

Hi,

I'm not deploying thrgh NWDS. I was able to deploy thrgh Deploy Tool. Now, how do i see that the deployment was successful. Does it appear in the portal as a portal content. How can i use my web application.

Regards,

naveen

Former Member
0 Kudos

I tried to open my web application by typing in http://<myhost>:5xxxx/Myapp after deployin my ear file using Deploy tool. But nothing appears on the screen(just a blank screen without any error message).

Can somebody help me as any configuration needs to be done.

Thanks,

Naveen

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Naveen,

U have to convert .war to .ear if u want to deploy on J2EE engine.

Use Ant tool in which u need to specify where to deploy and where the source is available.

Simple xml tags.Go through the Ant tutorial.

Former Member
0 Kudos

Hi Naveen,

check these threads:

Hope this help

Francesco