paulofaulstich
Programmer
- May 19, 2009
- 1
Hello friends,
I have a problem in my application. I developed one source for starting the glassfish with "ant" but have anything wrong.
Can anybody help me?
My source.
call me source with prompt
output on prompt
Much thanks,
Paulo Faulstich.
-----------------------------
I have a problem in my application. I developed one source for starting the glassfish with "ant" but have anything wrong.
Can anybody help me?
My source.
Code:
<target name="sun-taskdef">
<taskdef name="sun-appserv-admin" classname="org.apache.tools.ant.taskdefs.optional.sun.appserv.AdminTask">
<classpath>
<pathelement location="C:\tools\servers\glassfish-v2ur2\lib\sun-appserv-ant.jar"/>
</classpath>
</taskdef>
</target>
<target name="start-app" depends="sun-taskdef">
<sun-appserv-admin explicitcommand="start-domain --domaindir /C:/tools/servers/glassfish-v2ur2/domains --user admin --passwordfile passfile domain1" asinstalldir="C:\tools\servers\glassfish-v2ur2\"/>
</target>
call me source with prompt
Code:
C:\testebuild>ant start-app
output on prompt
Code:
Buildfile: build.xml
sun-taskdef:
start-app:
[sun-appserv-admin] Executing: start-domain --domaindir /C:/tools/servers/glassfish-v2ur2/domains --user admin --passwordfile passfile domain1
[sun-appserv-admin] Starting Domain domain1, please wait.
[sun-appserv-admin] Log redirected to /C:/tools/servers/glassfish-v2ur2/domains\domain1\logs\server.log.
[sun-appserv-admin] com.sun.enterprise.config.ConfigException: Server Instance null does not exist.
[sun-appserv-admin] at com.sun.enterprise.config.serverbeans.ServerHelper.getServerByName(ServerHelper.java:114)
[sun-appserv-admin] at com.sun.enterprise.admin.servermgmt.launch.ASLauncher.buildInternalCommand(ASLauncher.java:759)
[sun-appserv-admin] at com.sun.enterprise.admin.servermgmt.launch.ASLauncher.buildCommand(ASLauncher.java:714)
[sun-appserv-admin] at com.sun.enterprise.admin.servermgmt.launch.ASLauncher.process(ASLauncher.java:418)
[sun-appserv-admin] at com.sun.enterprise.admin.servermgmt.pe.PEInstancesManager.startInstanceAllJava(PEInstancesManager.java:283)
[sun-appserv-admin] at com.sun.enterprise.admin.servermgmt.pe.PEInstancesManager.startInstance(PEInstancesManager.java:160)
[sun-appserv-admin] at com.sun.enterprise.admin.servermgmt.pe.PEDomainsManager.startDomain(PEDomainsManager.java:247)
[sun-appserv-admin] at com.sun.enterprise.cli.commands.StartDomainCommand.startDomain(StartDomainCommand.java:148)
[sun-appserv-admin] at com.sun.enterprise.cli.commands.StartDomainCommand.runCommand(StartDomainCommand.java:215)
[sun-appserv-admin] at com.sun.enterprise.cli.framework.CLIMain.invokeCommand(CLIMain.java:171)
[sun-appserv-admin] at com.sun.enterprise.cli.framework.CLIMain.invokeCLI(CLIMain.java:64)
[sun-appserv-admin] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[sun-appserv-admin] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[sun-appserv-admin] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[sun-appserv-admin] at java.lang.reflect.Method.invoke(Method.java:597)
[sun-appserv-admin] at org.apache.tools.ant.taskdefs.optional.sun.appserv.AppServerAdmin.execAdminCommand(AppServerAdmin.java:543)
[sun-appserv-admin] at org.apache.tools.ant.taskdefs.optional.sun.appserv.AdminTask.execute(AdminTask.java:182)
[sun-appserv-admin] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[sun-appserv-admin] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[sun-appserv-admin] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[sun-appserv-admin] at java.lang.reflect.Method.invoke(Method.java:597)
[sun-appserv-admin] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[sun-appserv-admin] at org.apache.tools.ant.Task.perform(Task.java:348)
[sun-appserv-admin] at org.apache.tools.ant.Target.execute(Target.java:357)
[sun-appserv-admin] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[sun-appserv-admin] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[sun-appserv-admin] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[sun-appserv-admin] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[sun-appserv-admin] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[sun-appserv-admin] at org.apache.tools.ant.Main.runBuild(Main.java:758)
[sun-appserv-admin] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[sun-appserv-admin] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[sun-appserv-admin] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
[sun-appserv-admin] Timeout waiting for domain domain1 to go to starting state.
BUILD FAILED
C:\testebuild\build.xml:320: An exception occurred while running the command. The exception message is: CLI156 Could not start the domain domain1..
Total time: 3 minutes 0 seconds
Much thanks,
Paulo Faulstich.
-----------------------------