Active Thermochemical Tables/BubblesService

From Java CoG Kit

Jump to: navigation, search

Contents

Active Tables Service on Bubbles

Current Bubbles configuration

Web services running:

ATables: This makes use of the parser from CoG Kit 4.1.2 Deployed: http://140.221.9.133:8080/axis/services/ATables Files: C:\cygwin\home\Administrator\atct_parser_service

ATables2: This is the older service Deployed: http://140.221.9.133:8080/axis/services/ATables2 Files: C:\cygwin\home\Administrator\cmcs

Java: Version: 1.4.2 Location: C:\cygwin\usr\local\bin\j2sdk1.4.2_06 JAVA_HOME is set as a windows environment variable through Control Panel -> System-> Advanced-> Environment Variables. Has to be updated when java version is updated. The .bat scripts for starting up and shutting down the Tomcat server use this variable.

Apache Tomcat: Version: 4.1.30 Location: C:\cygwin\usr\local\bin\jakarta-tomcat-4.1.30 CATALINA_HOME is set as a windows environment variable through Control Panel -> System-> Advanced-> Environment Variables. . The .bat scripts for starting up and shutting down the Tomcat server use this variable for picking the tomcat version to use.

Apache Axis: Version: 1.2RC1 Location: In the current Tomcat webapps dir. Copying the servlet.jar to axis/WEB-INF/lib dir causes problems because one already exists under tomcat/common/lib. Make sure that you build file is not copying this over.

Installing the ATCT service on bubbles

1. The service related files(tar.gz or zip) are copied over to the C:\cygwin\home\Administrator directory on Bubbles.

2. cd into the dir containing the wsdl and make required changes to service element to reflect bubbles’ ip address in the corresponding wsdl file.

3. cd ../ and check your build file(build.xml) to see which wsdl file the “precompile” target is using for the wsdl2java task.

4. change locations of the deploy directories and the QEngine directories in the properties files if necessary.

5. ant precompile

6. Make sure the server is down and run ant deploy_jar

7. Start up the tomcat server and ant deploy_AT or ant deploy_AT2 corresponding to the project.

Restarting the bubbles tomcat server

The tomcat has been set up as a service on bubbles that gets restarted automatically when bubbles is rebooted. The list of services that are started up on bubbles when the sytem is booted can be viewed by going to the Control Panel --> Administrative Tools --> Computer Management --> Services. There are options to start and stop the service by right clicking any of the services and viewing its properties. The startup of the service can be set to a Manual mode or Automatic. Currently, its set to Automatic.

If ever you want to change this you may uninstall the service by entering the following at the command prompt:

C:\cygwin\usr\local\bin\jakarta-tomcat-4.1.30\bin> tomcat.exe -uninstall ApacheTomcat

where ApacheTomcat is the name of the service that was started up.

The service can again be restarted by using:

C:\cygwin\usr\local\bin\jakarta-tomcat-4.1.30\bin> tomcat.exe -install "Apache Tomcat" "C:\cygwin\usr\local\bin\j2sdk1.4.2_06\jre\bin\client\jvm.dll" -Djava.class.path="C:\cygwin\usr\local\bin\jakarta-tomcat-4.1.30\bin\bootstrap.jar" -Djava.endorsed.dirs="C:\cygwin\usr\local\bin\jakarta-tomcat-4.1.30\bin;C:\cygwin\usr\local\bin\jakarta-tomcat-4.1.30\common\lib" -Dcatalina.home="C:\cygwin\usr\local\bin\jakarta-tomcat-4.1.30" -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out "C:\cygwin\usr\local\bin\jakarta-tomcat-4.1.30\logs\stdout.log" -err "C:\cygwin\usr\local\bin\jakarta-tomcat-4.1.30\logs\stderr.log" -current "C:\cygwin\usr\local\bin\jakarta-tomcat-4.1.30\bin"

If for some reason the service is down all you need to do is restart the tomcat at C:\cygwin\usr\local\bin\jakarta-tomcat-4.1.30\bin\startup.bat and disconnect from bubbles. Do not logout since this will kill the process.

Note: The client needs to have XercesImpl.jar on his build path to be able to retrieve information from the web service. Otherwise this results in a not-so informative null pointer exception.

This will use the port 8080 by default.

More Information

Contact Gregor von Laszewski gregor@mcs.anl.gov

Personal tools
Collaboration and Jobs