This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Java in General and the fly likes jstatd not starting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "jstatd not starting" Watch "jstatd not starting" New topic
Author

jstatd not starting

Vinicius Caldeira Carvalho
Greenhorn

Joined: Nov 22, 2006
Posts: 3
Hello there! I'm trying to get jstad running, but I'm running with some issues.
I'm using
jstatd -J-Djava.security.policy=jstatd.all.policy where this file has:
grant codebase "file:${java.home}/../lib/tools.jar" {
permission java.security.AllPermission;
};

first I was getting this message:

Could not bind /JStatRemoteHost to RMI Registry
java.rmi.ConnectIOException: non-JRMP server at remote endpoint
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:217)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at sun.tools.jstatd.Jstatd.bind(Jstatd.java:40)
at sun.tools.jstatd.Jstatd.main(Jstatd.java:126)

So I changed to port 1098 because I read somewhere here that JBoss binds the naming to 1099 but the socket to 1098 or something like that.
Tried jstatd -J-Djava.security.policy=jstatd.all.policy -p 1098
and now I get this message:
Could not bind //:1098/JStatRemoteHost to RMI Registry
java.rmi.NoSuchObjectException: no such object in table
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at sun.tools.jstatd.Jstatd.bind(Jstatd.java:40)
at sun.tools.jstatd.Jstatd.main(Jstatd.java:126)

What's wrong in jstatd commands I'm using?

Best regards and happy holidays
Ajay Singh
Ranch Hand

Joined: Dec 13, 2006
Posts: 182
are you vitum of this: http://jguru.com/forums/view.jsp?EID=1222382
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jstatd not starting