Basic Jini problem and cast exceptions

Jose Hernan Valdes Murguia <[email protected]> Thu, 8 Nov 2007 20:07:14 -0400
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
Hello again. Thanks for reading my email.

Here is the script I am using to start the server.

JINI_HOME=/opt/java/jini2_1
APP_DIR=./
CLASSPATH=$JINI_HOME/lib/jsk-
lib.jar:$JINI_HOME/lib/jsk-platform.jar:$APP_DIR/hello-server.jar:$APP_DIR/hello-dl.jar
export CLASSPATH

java -Djava.rmi.server.codebase=http://sakura:8080/hello-dl.jar \
      -Djava.security.policy=$JINI_HOME/common/jsk-all.policy \
      net.jini.server.Server 172.16.248.2
# 172.16.248.2 is the machine where reggie service is running.

Besides, the jsk-all policy is this.

grant {
    permission java.security.AllPermission
;
};

Something interesting to  comment is that I have a 64bits machine with
SlamD64 linux operation systems. Since the beginning I had to start http-
server and jrmp-reggie services with scripts (I learned a lot about jini by
doing that, jeje) that comes in Jini2_1.zip version. I am not using the
jini2_1.bin with Lanch_All. script, which comes in a bin package. In spite
of that, on a virtual machine I have installed the .bin version but the
problem is the same. When I run the browser tool on 127.16.248.2, I can see
the hello service available without any exception. All seems to be clean (I
think).

 IP:  172.16.248.1 (sakura machine)-> server and client machine and a http
server
 IP:  172.16.248.2 (vmware machine)-> http server and the jrmp-reggie
service- Show quoted text -

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]