Re: Start Javaspaces 2.1 by command line

Bulzan Stefan <[email protected]> Tue, 27 May 2008 15:21:24 -0600
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <LISTSERV%[email protected]>
Hello,

Thank you very much for your answers. They are very useful for my work.
The examples that you sent worked just well and the information were very=

useful.

for the 3rd point from last mail this is the exception stack
SEVERE: exception encountered while (re)starting server
java.net.BindException: Address already in use: Cannot bind
        at java.net.PlainDatagramSocketImpl.bind0(Native Method)
        at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.=
java:82
)
        at java.net.DatagramSocket.bind(DatagramSocket.java:368)
        at java.net.MulticastSocket.<init>(MulticastSocket.java:147)
        at java.net.MulticastSocket.<init>(MulticastSocket.java:112)
how can I start 2 servers on the same VM?
=09=09

I need a solution to insert new needed jars in classpath for the configs =
from=20
the example "jini-start-examples.zip"

1.I need a method to start the services in any configuration.
The default starter that comes with the installer works just fine. All
services work well, but
I have problems in using distributed events because I needed automatic st=
ub
replacement.
The default starter uses JERI that doesn't provide automatic stub
replacement. This is the error that
I had then:
java.rmi.MarshalException: error marshalling arguments;=20

So I need to start with a configuration that provides support for
distributed events, and
eventually I want to make a secure configuration.

Do you have some examples in starting the services with JRMP and SSL or
Kerberos secure configuration?
How can I change the default config files to start the services with othe=
r
configurations.


2. Using the configs and policy from "jini-start-examples.zip" I failed t=
o
start the services=20
using an activatable configuration I had this exception in phoenix


Group-1:err:Exception in starting ActivationGroupInit:
Group-1:err:java.lang.reflect.InvocationTargetException
Group-1:err:        at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ=
e
Method)
Group-1:err:        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java=
:39)
err:        at sun.reflect.DelegatingMethodAccessorI
mpl.invoke(DelegatingMethodAccessorImpl.java:25)
Group-1:err:        at java.lang.reflect.Method.invoke(Method.java:597)

Do you have any idea why is this?

Regards,
Stefan.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVASPACES-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html