Quote:
Originally posted by RKrick
Which kind of exceptions are you getting?
|
Thanks for your reply.
The ANT script: stops the application-server; "db2stop force"; "db2start" and backs up database - all o.k. But problems happen when I try to restart the sever. The exception is included below.
I start and stop the application-server using this ant command, where "mode" can be "start" or "stop"
<target name="appServer">
<echo message="${mode}ing ${appServer} Application Server..."/>
<exec dir="${websphere}/../../../bin/" executable="wscp.bat" vmlauncher="false">
<arg line="-c "ApplicationServer ${mode} /Node:${computer.name}/ApplicationServer:${appServer}/""/>
</exec>
<echo message="... Done!"/>
</target>
[echo] starting MyServer Application Server...
[exec] com.ibm.ejs.sm.client.RepositoryOpException: Failed t
o create InitialContext : Error during resolve
[exec] at com.ibm.ejs.sm.ejscp.ClientRepository.<init>(C
lientRepository.java:150)
[exec] at com.ibm.ejs.sm.ejscp.EjscpExtension.init(Ejscp
Extension.java:113)
[exec] at tcl.lang.JavaLoadCmd.cmdProc(JavaLoadCmd.java:
129)
[exec] at tcl.lang.Parser.evalObjv(Parser.java:810)
[exec] Failed to load extension : EjscpExtension
[exec] at tcl.lang.Parser.eval2(Parser.java(Compiled Cod
e))
[exec] at tcl.lang.Interp.eval(Interp.java:2042)
[exec] at tcl.lang.Interp.eval(Interp.java:2071)
[exec] at com.ibm.ejs.sm.ejscp.WscpShell.main(WscpShell.
java(Compiled Code))
[exec] invalid command name "ApplicationServer"