Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4482166
Votes 66
Synopsis ServerTool wrapper doesn't accept the register command in one shot
Category idl:tools
Reported Against merlin-beta2
Release Fixed
State 11-Closed, Will Not Fix, bug
Priority: 3-Medium
Related Bugs
Submit Date 20-JUL-2001
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.


******************************************************************************
  xxxxx@xxxxx   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. 

******************************************************************************
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
---
Evaluation
Will fix it for Tiger.


  xxxxx@xxxxx   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
---



  xxxxx@xxxxx   2002-12-05
Comments
  
  Include a link with my name & email   

Submitted On 28-NOV-2001
cliffredmond
Please consider making the implmentation repository IDL 
interface definition available in the next release (even 
if it's an OMG standard (is it?)); then we could write our 
own clients.

Otherwise, nice to get a fully functional ORB for free... 
keep up the good work!


Submitted On 15-APR-2002
tabberkev
This bug is stopping us using this command at all...

Our company have just started using 1.4, and we are finding 
this command simply does not work.

Looking in docs at 
http://java.sun.com/j2se/1.4/docs/guide/idl/servertool.html

.. we should be able to enter commands, and run at the 
command line. Very useful for scripting, and we planned to 
write a support tool using it.

But, if you enter something like servertool -ORBInitialPort 
1100 list, it just goes into interactive mode, meaning your 
script just hangs waiting for something to return that 
never will.

I see you have added a comment to fix in 1.5, but we really 
need this fixed in 1.4. It seems like quite a simple coding 
error to us.

Many Thanks.

Kevin.


Submitted On 24-APR-2002
chris_j_roberts
documentation descrepency....
add -cmd prior to commands.
eg: servetool -ORBInitialPort xxxx -cmd list


Submitted On 09-JUN-2003
linda_postniece
chris_j_roberts's suggestion works for all but the 'register' 
command :( Very annoying...



PLEASE NOTE: JDK6 is formerly known as Project Mustang