Ticket #231 (closed defect: fixed)

Opened 12 years ago

Last modified 11 years ago

ant messages could be more helpful

Reported by: dmn Owned by: kjdon
Priority: moderate Milestone: 3.04 Release
Component: Greenstone3 Ant Code Severity: blocker
Keywords: Cc:

Description

at the end of

========================================= (cms-r1-13-145)ant start Buildfile: build.xml

init:

[echo] tomcat.port:8080, gli.present:true gs2build.present=true gsdl2.installed.path = ${gsdl2.installed.path}

start-tomcat:

start:

BUILD SUCCESSFUL Total time: 13 seconds

=======================================

Can we say

"Greenstone 3 server now running on xxx.server.org"

or something similar.

And when we run ant stop

==================== (cms-r1-13-146)ant stop Buildfile: build.xml

init:

[echo] tomcat.port:8080, gli.present:true gs2build.present=true gsdl2.installed.path = ${gsdl2.installed.path}

stop-tomcat:

stop:

BUILD SUCCESSFUL Total time: 1 second =============================

cant we say

"Greenstone 3 server has been shutdown."

Also, if we run ant stop when a GS3 server isn't running then we get an exception:

================================= (cms-r1-13-144)ant stop Buildfile: build.xml

init:

[echo] tomcat.port:8080, gli.present:true gs2build.present=true gsdl2.installed.path = ${gsdl2.installed.path}

stop-tomcat:

[exec] 12/11/2007 10:22:13 org.apache.catalina.startup.Catalina stopServer [exec] SEVERE: Catalina.stop: [exec] java.net.ConnectException?: Connection refused [exec] at java.net.PlainSocketImpl?.socketConnect(Native Method) [exec] at java.net.PlainSocketImpl?.doConnect(PlainSocketImpl?.java:333) [exec] at java.net.PlainSocketImpl?.connectToAddress(PlainSocketImpl?.java:195) [exec] at java.net.PlainSocketImpl?.connect(PlainSocketImpl?.java:182) [exec] at java.net.SocksSocketImpl?.connect(SocksSocketImpl?.java:366) [exec] at java.net.Socket.connect(Socket.java:519) [exec] at java.net.Socket.connect(Socket.java:469) [exec] at java.net.Socket.<init>(Socket.java:366) [exec] at java.net.Socket.<init>(Socket.java:179) [exec] at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395) [exec] at sun.reflect.NativeMethodAccessorImpl?.invoke0(Native Method) [exec] at sun.reflect.NativeMethodAccessorImpl?.invoke(NativeMethodAccessorImpl?.java:39) [exec] at sun.reflect.DelegatingMethodAccessorImpl?.invoke(DelegatingMethodAccessorImpl?.java:25) [exec] at java.lang.reflect.Method.invoke(Method.java:597) [exec] at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344) [exec] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)

stop:

BUILD SUCCESSFUL Total time: 7 seconds =====================================

Can we check whether it is running so we don't get an exception?

Change History

Changed 11 years ago by dmn

  • owner changed from nobody to kjdon

Changed 11 years ago by dmn

  • milestone set to Release 3.04

Changed 11 years ago by kjdon

  • component changed from Greenstone3 Runtime to Greenstone3 Ant Code
  • severity set to blocker

Changed 11 years ago by kjdon

There is more useful output now for ant start.

Changed 11 years ago by davidb

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.