cancel
Showing results for 
Search instead for 
Did you mean: 

What is the UserName for the J2EEServer

Former Member
0 Kudos

Hi all,

I want to deploy the ear from the CommandLine . I write the deploy-manager-config.xml and tried to execute the command

c:\....\deploying> deploymanager deploy-manager-config.xml

But it is giving me the error that

com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [localhost] with user name: [admin]

Check your login information.

Exception is:

com.sap.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.]

What will be the user name for SAP J2EE server.

I tried with SAPJ2EDB, SAPJ2E, J2E and CONTROLLER also. But i am still getting the same error.

Can any body help me....

Regards,

Ramu.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi sunil

While depoying through deploy-manager-config.xml

the application need to be started manually from the visual admin.

You need go to the Deploy option in the Visual admin

select the depyed application and start it manually.

Also 50004 is the default P4 port which SDM listens to u have to use 50004 , u can check in the visual admin the p4 port

If you want to have a hot deployment sort off option u need to write a ant task

please follow this link for the ant task

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1ca44e78-0801-0010-fa9d-a76...

<b>Please do reward points if you find this helpful .</b>

regards

rajeshkr

Message was edited by: Rajesh K. R.

Former Member
0 Kudos

Hi Rajesh,

Is there any other way to start the application instead of from the Visual Admin.

I want to do all the process automatically. I didn't want to do manually.

If VisualAdmin is the only solution , is there any other way do deploy the EAR from CommandLine which can automatically active on the server(no need to start manually).

regards,

Ramu.

Former Member
0 Kudos

Hi Rajesh,

How can i start the application using the VisualAdmin manually.

Where can i find this option.

Former Member
0 Kudos

Hi rajesh,

Thankyou for your help.

I found the option to start the application via VisualAdmin.

But my problem is i have to deploy a webservice using CommandLine. I don't want to do this again using VisualAdmin. Can i achieve this in any other way?

Is there a chance to activate the application in VisualAdmin through any command. (I mean from CommandLine).

If so pls tell me the procedure.

regards,

Ramu.

Former Member
0 Kudos

Hi Sunil

one possible way is to write an ant task which will do that.

please follow the link which contains step by step guide as to how u can do it using ant scripts

link to PDF

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1ca44e78-0801-0010-fa9d-a76...

example link

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/business_packages/a1-8-4/w...

Other possible ways are using the SDM command line option . You will find the SDM.bat.

There is a deploy and undeploy option ,but it works only for SDA and SCA .Not very sure whether it supports deployment for J2ee appications ( war ,ear ....).

You can find the help related to deployment in

http://help.sap.com/saphelp_nw04/helpdata/en/21/82a9058fa8de46b1ba7522289345b2/frameset.htm

hope this helps, if yes please donot forget to reward

points

regards

rajeshkr

Former Member
0 Kudos

Hi Ramu,

To start a application from command line you have to use the following commands.

telnet <J2ee Server Name> 50008

<Administrator>

<password>

jump 0

add deploy

start_app <application name> com.sap/irj

You need to give the full application name like com.sap/irj. You can find this name at the same place in Visual Admin from where you started the application.

For more telnet commands check this out.

http://help.sap.com/saphelp_erp2005/helpdata/en/ae/01343ef3f9ff2de10000000a114084/frameset.htm

Hope this helps.

Regards,

Shubham

Former Member
0 Kudos

Rajesh,

This was a very helpful hint.

I succesfully made that Ant Deploytask.

I wonder if there are examples of how to extend this class to be able to deploy Library files (SDA's), and Dictionary project files.

Or is this something I have to find out by trial and error...

Jan

Former Member
0 Kudos

Hi sunil

here is a sample deploy-manager-config.xml . Usually it is Administrator /admin .

In the deploy-manager-config.xml u can give it as following

<user-name> <i>Administrator</i> </user-name>

<user-password> <i>your_password</i> </user-password>

Please do not forget to reward points if you find it helpful

regards

rajeshkr

Former Member
0 Kudos

Hi Rajesh,

Thankyou for giving reply.

I gave the UserName as admin and Password as admin and the Port as 50004. Then my application is deploying. If i change the PortNumber it is giving error that Cannot connect to Host.

I used Port as 50004 and admin as username and password.

My application was deployed and generated the following log file.

06/04/19 11:45:36 - Start updating EAR file...

06/04/19 11:45:36 - start-up mode is lazy

06/04/19 11:45:37 - EAR file updated successfully for 109ms.

06/04/19 11:45:37 - Start deploying ...

06/04/19 11:45:38 - EAR file uploaded to server for 78ms.

06/04/19 11:45:54 - Successfully deployed. Deployment took 16297ms.

06/04/19 11:45:54 - Application : sap.com/BrowserEar

06/04/19 11:45:54 -

06/04/19 11:45:54 - BrowserSessionBean - EJB

06/04/19 11:45:54 - WEB SERVICE PORTS:

/LaunchBrowserWS/Config1

- WEBSERVICES

06/04/19 11:45:54 - LaunchBrowserWS/Config1 - WEB

06/04/19 11:45:54 - sap.com/BrowserEar - METAMODELREPOSITORY

06/04/19 11:45:54 - ***********************************************************

Now the problem my Webservice Name is LaunchBrowserWS. but i was unable to access this Webservice.

When i tried to access through the websercice Navigator with the url

http://192.168.1.219:50000/LaunchBrowserWS/Config1?wsdl

it is giving error that Application Stopped.

regards,

Ramu.

Former Member
0 Kudos

Hi Sunil,

On windows OS normally the admin ID is 'Administrator'.

Regards,

Shubham

Former Member
0 Kudos

Your suggestion helped me..

thankx