aspose file tools*
The moose likes Websphere and the fly likes UserName and Password for starting Websphere Application Server5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "UserName and Password for starting Websphere Application Server5.0" Watch "UserName and Password for starting Websphere Application Server5.0" New topic
Author

UserName and Password for starting Websphere Application Server5.0

Sac Ram
Greenhorn

Joined: Oct 31, 2003
Posts: 13
Hi Friends,
Anyone has the idea about what is the userName and Password for Websphere Application Server5.0.
I want to start the server using ANT. I have written the script in "build.xml" to start the server. when i try to run the server using ANT, it says
"Logon failure: unknown user name or bad password)"
The script written in "build.xml" for starting the server is as below.
*********************************************************************
<taskdef name="wsStartServer" classname="com.ibm.websphere.ant.tasks.StartServer"/>
<target name="serverRun"<br /> description="Starts an instance of the Websphere server.">
<wsStartServer taskname="startServer"<br /> server="server1"<br /> username=""<br /> password=""<br /> wasHome="\\192.168.0.22\c$\Program Files\WebSphere\AppServer">
</wsStartServer>
</target>
**************************************************************************
Mahesh Chalil
Ranch Hand

Joined: Jan 24, 2002
Posts: 147
Unless otherwise you enabled the global security, you dont need to specify a user id and password to start your websphere application server. If u enabled, you should be knowing the userid and password?;-)
Make sure you also have the right to start the server. may be the user id you are logged in will not have the access to start the server. Try starting the server directly from the start menu or from the command line.
Sac Ram
Greenhorn

Joined: Oct 31, 2003
Posts: 13
Hi Mahesh,
I have not done any changes in the settings(i.e. global security),
I am able to start the server from start menu as well as from command prompt.It doesnot ask for any userName and Password.
But when i try to run ant script then it asks for UserName and Password.
Anyway how can i enable the global security, and specify the UserName and Password.
Thanks..
Mahesh Chalil
Ranch Hand

Joined: Jan 24, 2002
Posts: 147
Dont do that till you get your startServer command works.
Do you remember who installed Websphere? Ask them what was the User id and password they gave while installing the appserver
Is the Websphere Admin Service running? Go and check it from Control Panel-Administrative tools-services and make sure IBM Websphere Admin Service is Started
From my experience, this happens when the User id used for installing Websphere doesnt have enough permissions, including Acting as Part of the OS and Log on as a Service. Check these permissions by going to Control Panel-Administrative tools - Local Security Policy- local policies - user rights and assignments.
Did you just install it? Or have been running for long time?
Pls send me the details of these questions
Sac Ram
Greenhorn

Joined: Oct 31, 2003
Posts: 13
Hi Mahesh,
I am using this server for a long time.
Websphere Server was installed by another person and he dont remember the userName and Password. Is there any by which we can know the UserName and Password.
My Websphere Admin Service was not running. i went to Control Panel-Administrative tools-services and Started the Admin Service.
Then i observed that error msg of UserName and Password has gone, but it had some problem with
wasHome="WebSphere Installation directory".
The Server is on the another machine, i am trying to start the server from my pc, so i have given the
wasHome="\\<MACHINE NAME OF SERVER>\<SERVER INSTALLATION DIRECTORY>".
Ex wasHome="\\mtmum_apps02\c$\Program Files\WebSphere\AppServer")

Now i am getting the message as below, when i try to run server
*****************************************************************
C:\harcourt_Nov4_11\bin>ant serverRun
Buildfile: build.xml
serverRun:
[startServer] ADMU0116I: Tool information is being logged in file \\mtmum_apps02\c$\Pr
ogram
[startServer] Files\WebSphere\AppServer\logs\server1\startServer.log
[startServer] ADMU3100I: Reading configuration for server: server1
[startServer] ADMU0111E: Program exiting with error:
[startServer] com.ibm.ws.process.exception.ProcessOpException: The system c
annot
[startServer] find the path specified.
[startServer] 003: No such process
[startServer] ADMU0211I: Error details may be seen in the file: \\mtmum_apps02\c$\Prog
ram
[startServer] Files\WebSphere\AppServer\logs\server1\startServer.log
[startServer] ADMU1211I: To obtain a full trace of the failure, use the -trace option.
[startServer] Java Result: 111
BUILD SUCCESSFUL
Total time: 10 seconds
C:\harcourt_Nov4_11\bin>
*****************************************************************
Now i am not sure where it is failing,,
*does it still looks for UserName and Password(But according to Doc UserName and Password are optional).
*Or its not getting server path?
Thanks for your help.
Mahesh Chalil
Ranch Hand

Joined: Jan 24, 2002
Posts: 147
Sac,
Your Websphere Application Server is running on another machine.
You are trying to start the server from your machine.
Can you try this first? Go to AdminConsole from your machine, http://othermachine:9090/admin
And see first, whether this is coming up or not.
If yes, from your command line, (I am assuming that you have Websphere Installed in your machine too. Rt?)
startServer -hostname othermachinenameORip
Mahesh Chalil
Ranch Hand

Joined: Jan 24, 2002
Posts: 147
WAS_HOME is where you installed Websphere in your machine and not in the "other machine"
Mahesh Chalil
Ranch Hand

Joined: Jan 24, 2002
Posts: 147
Websphere automatically should put WAS_HOME in your environement variables list. Please go and check it under Systems from Control pane. Use the same value in your build file too
Sac Ram
Greenhorn

Joined: Oct 31, 2003
Posts: 13
Hi,
Yes the server is on another machine. I am able to start/stop it coz i am using VNC Client Software.
I can run admin console page from my pc
http://server m/c name:9090/admin.
Thks..
Sac Ram
Greenhorn

Joined: Oct 31, 2003
Posts: 13
Hi Mahesh,
I am able to get WAS_HOME now.
I was trying to start server which is on other machine from my pc. but now i am trying in the server machine only.
WAS_HOME problem is solved..
WAS_HOME was not in the list of environement variables.I added WAS_HOME in environment list and it worked out.

NOW WHEN I TRY TO START THE SERVER, I AM GETTING SUCCESS MESSAGE THAT THE SERVER IS OPEN FOR BUSINESS...THEN I TRY TO GO TO ADMIN PAGE, BUT ADMIN PAGE IS NOT OPENING.
WHAT COULD BE THE WRONG..
Thanks for your help.
Mahesh Chalil
Ranch Hand

Joined: Jan 24, 2002
Posts: 147
Very interesting.
Server open for e-business but admin page is not coming?
Server open for e-business indicating that Application Server started and it will not start unless Admin Service is not started.
But you earlier mentioned that "I can run admin console page from my pc
http://server m/c name:9090/admin." whats happened after that? When you try to do the same what are you getting?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UserName and Password for starting Websphere Application Server5.0