JDK-4482166 : ServerTool wrapper doesn't accept the register command in one shot
  • Type: Bug
  • Component: other-libs
  • Sub-Component: corba:idl
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2001-07-20
  • Updated: 2004-01-21
  • Resolved: 2004-01-21
Description
ServerTool doesnot accept a server register command in one line, instead it needs to be started first with ServerTool -ORBInitialPort <port> and then register the server in the ServerTool prompt. This is inconvenient if we have to register the server from the Makefile.

A command like
$(SERVERTOOL) -ORBInitialPort $(ORB_INITIAL_PORT) register -server Persi
stentServer -applicationName s1 -class /home/hemanth/PersistentServer 

should work.


******************************************************************************
###@###.### 2002-01-28

This bug is preventing us from using the servertool wrapper for our SAF (tests/product/poa/saf) tests. Since we have a large no. of tests, the workaround of manually starting the servertool and registering the server is very time consuming. 
We are currently running the tests using the Servertool class and it works fine. But for SE builds we are supposed to be using the wrapper. A quick fix would help us start using the wrapper for testing the SE builds. 

******************************************************************************

Comments
WORK AROUND This seems to be a popular bug to fix, as 1.4.2 bug fix window is closed. Here's a workaround that people can use to get around the ServerTool Wrapper not accepting a long command. Use the class directly instead of the wrapper. Please note that this is the workaround for the release of 1.4.*, the name of the class may change in future 1.5.* and up releases. The template to use the Servertool class is --- ${JAVA_HOME}/bin/java com.sun.corba.se.internal.Activation.ServerTool -ORBInitialPort ${ORB_INITIAL_PORT} -cmd register -server sample.MyServer -classpath jar1:jar2:jar3 -applicationName sample ---
2004-06-11

PUBLIC COMMENTS This seems to be a popular bug to fix, as 1.4.2 bug fix window is closed. Here's a workaround that people can use to get around the ServerTool Wrapper not accepting a long command. Use the class directly instead of the wrapper. Please note that this is the workaround for the release of 1.4.*, the name of the class may change in future 1.5.* and up releases. The template to use the Servertool class is --- ${JAVA_HOME}/bin/java com.sun.corba.se.internal.Activation.ServerTool -ORBInitialPort ${ORB_INITIAL_PORT} -cmd register -server sample.MyServer -classpath jar1:jar2:jar3 -applicationName sample ---
2004-06-10

EVALUATION Will fix it for Tiger. ###@###.### 2001-09-27 This seems to be a popular bug to fix, as 1.4.2 bug fix window is closed. Here's a workaround that people can use to get around the ServerTool Wrapper not accepting a long command. Use the class directly instead of the wrapper. Please note that this is the workaround for the release of 1.4.*, the name of the class may change in future 1.5.* and up releases. The template to use the Servertool class is --- ${JAVA_HOME}/bin/java com.sun.corba.se.internal.Activation.ServerTool -ORBInitialPort ${ORB_INITIAL_PORT} -cmd register -server sample.MyServer -classpath jar1:jar2:jar3 -applicationName sample --- ###@###.### 2002-12-05
2002-12-05