Sac Ram

Greenhorn
+ Follow
since Oct 31, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sac Ram

Hi All,
I have written DefaultBindings task in build.xml, to generate the default Websphere bindings to the specified EAR.
the pieceof code written in build.xml is
************************************************************************
taskdef name="wsDefaultBindings" classname="com.ibm.websphere.ant.tasks.DefaultBindings"
target name="defaultBinding"
description="Generating default bindings for EAR file."
wsDefaultBindings
ear="build/ear/harcourt_Nov4_12.ear"
outputFile="build/ear/harcourt_Nov4_13.ear"
defaultDataSource="TEST"
dbUser="test"
dbPassword="test"
exportFile="build/ear/harcourt_Nov4_14.ear"
wsDefaultBindings
target
*************************************************************************
now i am running this target from command prompt, i am getting following error message
*************************************************************************
C:\harcourt_Nov4_11\bin>ant defaultBinding
Buildfile: build.xml
defaultBinding:
BUILD FAILED
java.lang.NoClassDefFoundError: com/ibm/ws/management/application/dfltbndngs/Bin
dEar
at com.ibm.websphere.ant.tasks.DefaultBindings.execute(DefaultBindings.j
ava:108)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
Total time: 5 seconds
java.lang.NoClassDefFoundError: com/ibm/ws/management/application/dfltbndngs/Bin
dEar
at com.ibm.websphere.ant.tasks.DefaultBindings.execute(DefaultBindings.j
ava:108)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
com/ibm/ws/management/application/dfltbndngs/BindEar
C:\harcourt_Nov4_11\bin>
**************************************************************************
20 years ago
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.
20 years ago
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..
20 years ago
Hi Mahesh,
No This application is not in the list of installed application.
But it is in
\\<installed directory>\AppServer\wstemp\workspace\cells\applications.
Thanks.
20 years ago
Hi All,
I am trying to deploy EJBs using ANT into the Websphere Application Server. i.e.(it should do the RMIC, so that stubs and skeleton are generated for the EJB.

the piece of code/script written in "build.xml" is as below
*********************************************************
<taskdef name="wsejbdeploy" <br /> classname="com.ibm.websphere.ant.tasks.WsEjbDeploy"/>

<target name="ejbDeploy"<br /> description="Starts generating RMIC for the ejb.">

<wsejbdeploy inputJar="build/ear/harcourt_Nov4_11.jar"<br /> wasHome="\\<server machine> \ server installation directory"<br /> workingDirectory="${dirs.base}" <br /> outputJar="harcourt_Nov4_12.jar">
</wsejbdeploy>
</target>

*********************************************************
When i try to run ejbDeploy command, from the command prompt
i am getting following error.
***********************************************************
C:\harcourt_Nov4_11\bin>ant ejbDeploy
Buildfile: build.xml

ejbDeploy:

[wsejbdeploy]

[wsejbdeploy] Starting workbench.

[wsejbdeploy]

[wsejbdeploy] 20021023_1257-WB201-AD-V50D-GA-I
[wsejbdeploy]

[wsejbdeploy] Shutting down workbench.

[wsejbdeploy] Failure invoking BootLoader.startup method
[wsejbdeploy] java.lang.reflect.InvocationTargetException
[wsejbdeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wsejbdeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
l.java:39)
[wsejbdeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
essorImpl.java:25)
[wsejbdeploy] at java.lang.reflect.Method.invoke(Method.java:324)
[wsejbdeploy] at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.startup(BootLo
aderLoader.java:315)
[wsejbdeploy] at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.startup(BatchDeploy
.java:207)
[wsejbdeploy] at com.ibm.etools.ejbdeploy.EJBDeploy.startup(EJBDeploy.java:382)
[wsejbdeploy] at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:79)
[wsejbdeploy] at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:309)
[wsejbdeploy] Caused by: java.lang.ClassNotFoundException: org.eclipse.core.internal.r
untime.InternalPlatform
[wsejbdeploy] at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(D
elegatingURLClassLoader.java:734)
[wsejbdeploy] at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
[wsejbdeploy] at org.eclipse.core.internal.boot.InternalBootLoader.startup(InternalB
ootLoader.java:905)
[wsejbdeploy] at org.eclipse.core.boot.BootLoader.startup(BootLoader.java:517)
[wsejbdeploy] ... 9 more
[wsejbdeploy] EJBDeploy level: 20021023_1257-WB201-AD-V50D-GA-I
[wsejbdeploy] Java Result: 1

BUILD SUCCESSFUL
Total time: 12 seconds
C:\harcourt_Nov4_11\bin>
***********************************************************

If anyone come across such problem.pls revert back as soon as possible.

Thanks in Advance.
20 years ago
Hi All,
When i try to deploy EAR file onto the Websphere Application Server,
I am getting message that "Application already exists in the config repository."
How can i delete old refference from the config repository.
If anyone of you have come across such problem please let me know..
Thanks..
20 years ago
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.
20 years ago
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..
20 years ago
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>
**************************************************************************
20 years ago
Hi All,
If anybody know how to start and stop the websphere application server5, from the command prompt,then plase let me know.
Thanks..
20 years ago
Hi All,
Any one of you know how to configure ant with Websphere Application Server.
I have created EAR file using ant, When i try to deploy this EAR file on to the Application Server. i am getting error as below.
If you know such problem pls let me know.
Thanks in Advance.

**************************************************************************
Installing..
If there are EJB's in the application, the EJB Deploy process may take several minutes. Please do not save the configuration until the process is complete.
Check the SystemOut.log on the Deployment Manager or Server where the application is deployed for specific information about the EJB Deploy process as it occurs.
ADMA5016I: Installation of harcourt started.
ADMA5018I: Starting EJBDeploy on ear C:\Program Files\WebSphere\AppServer\wstemp\Harcourt\upload\harcourt.ear..
Starting workbench.
ADMA5008E: EJBDeploy failed on C:\TEMP\app_f8a1f4eed5\dpl\dpl_harcourt.ear: com.ibm.etools.ejbdeploy.EJBDeploymentException: Error executing EJBDeploy
ADMA5011I: Cleanup of temp dir for app harcourt done.
ADMA5014E: Installation of application harcourt failed.
Installation of application harcourt failed.
If you want to work with installed applications, then click Manage Applications.
Manage Applications
***********************************************************************
content of "ejb-jar.xml" is as below
<?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">;
<ejb-jar>
<display-name>harcourt</display-name>
<enterprise-beans>
<session id="ServiceBO">
<ejb-name>ServiceBO</ejb-name>
<home>com.harcourt.elearning.stars.business.bo.ServiceBOHome</home>
<remote>com.harcourt.elearning.stars.business.bo.ServiceBO</remote>
<ejb-class>com.harcourt.elearning.stars.business.bo.ServiceBOBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
<session id="TreeViewBO">
<ejb-name>TreeViewBO</ejb-name>
<home>com.harcourt.elearning.stars.business.bo.TreeViewBOHome</home>
<remote>com.harcourt.elearning.stars.business.bo.TreeViewBO</remote>
<ejb-class>com.harcourt.elearning.stars.business.bo.TreeViewBOBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
<session id="CorrelateBO">
<ejb-name>CorrelateBO</ejb-name>
<home>com.harcourt.elearning.stars.business.bo.CorrelateBOHome</home>
<remote>com.harcourt.elearning.stars.business.bo.CorrelateBO</remote>
<ejb-class>com.harcourt.elearning.stars.business.bo.CorrelateBOBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</session>
<session id="AdminBO">
<ejb-name>AdminBO</ejb-name>
<home>com.harcourt.elearning.stars.business.bo.AdminBOHome</home>
<remote>com.harcourt.elearning.stars.business.bo.AdminBO</remote>
<ejb-class>com.harcourt.elearning.stars.business.bo.AdminBOBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</session>
<session id="UniqueKeyBO">
<ejb-name>UniqueKeyBO</ejb-name>
<home>com.harcourt.elearning.stars.business.bo.UniqueKeyBOHome</home>
<remote>com.harcourt.elearning.stars.business.bo.UniqueKeyBO</remote>
<ejb-class>com.harcourt.elearning.stars.business.bo.UniqueKeyBOBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
<session id="ImportBO">
<ejb-name>ImportBO</ejb-name>
<home>com.harcourt.elearning.stars.business.bo.ImportBOHome</home>
<remote>com.harcourt.elearning.stars.business.bo.ImportBO</remote>
<ejb-class>com.harcourt.elearning.stars.business.bo.ImportBOBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</session>
<session id="MaintainBO">
<ejb-name>MaintainBO</ejb-name>
<home>com.harcourt.elearning.stars.business.bo.MaintainBOHome</home>
<remote>com.harcourt.elearning.stars.business.bo.MaintainBO</remote>
<ejb-class>com.harcourt.elearning.stars.business.bo.MaintainBOBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
20 years ago
Hi All,
Any one of you know how to do the setting for ANT build in WSAD.
Thanks in Advance.
20 years ago