You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@river.apache.org by helcio silva <su...@gmail.com> on 2011/01/12 16:15:02 UTC

Can't start ServiceStarter utility.

   Hello to everybody.

   I've used to start reggie to build my client/server applications.
Now, I need to use the transaction manager, named mahalo, but I can't
start it. My first trial was try to start it after reggie, but it
throws an exception. Next, I tried to use the servicestarter utility,
but it didn't work. Some information will be provided below:

i) the way I start the servicestarter:

java -Djava.security.policy=jsk-all.policy -jar
/usr/local/apache-river-2.1.1/lib/start.jar
start-transient-jeri-all.config

ii) the policy file, named jsk-all.policy:

grant codebase "file:/usr/local/apache-river-2.1.1/lib/*" {
    permission java.security.AllPermission;
};

iii) the configuration file, named start-transient-jeri-all.config:

import com.sun.jini.start.NonActivatableServiceDescriptor;
import com.sun.jini.start.ServiceDescriptor;

com.sun.jini.start {

    //
    // HTTPD Service
    //
    private static httpd_codebase = "";
    private static httpd_policy = "/home/helcio/jini/servicos/jsk-all.policy";
    private static httpd_classpath =
"/usr/local/apache-river-2.1.1/lib/classserver.jar";
    private static httpd_impl = "com.sun.jini.tool.ClassServer";
    private static httpd_service =
        new NonActivatableServiceDescriptor(
            httpd_codebase, httpd_policy, httpd_classpath, httpd_impl,
            new String[]{"-port", "8080", "-dir",
"/usr/local/apache-river-2.1.1/lib-dl", "-verbose"});
	
    //	
    // Fiddler (Lookup Discovery Service)
    //
    private static fiddler_codebase = "http://127.0.0.1:8080/fiddler-dl.jar"
        + " http://127.0.0.1:8080/jsk-dl.jar";
    private static fiddler_policy = "/home/helcio/jini/servicos/jsk-all.policy";
    private static fiddler_classpath =
"/usr/local/apache-river-2.1.1/lib/fiddler.jar";
    private static fiddler_config =
"/home/helcio/jini/servicos/transient-jeri-fiddler.config";
    private static fiddler_impl = "com.sun.jini.fiddler.TransientFiddlerImpl";
    private static fiddler_service =
        new NonActivatableServiceDescriptor(
            fiddler_codebase, fiddler_policy, fiddler_classpath,
	    fiddler_impl, new String[] { fiddler_config });
	
    //	
    // Mahalo (Transaction Service)
    //
    private static mahalo_codebase = "http://127.0.0.1:8080/mahalo-dl.jar"
        + " http://127.0.0.1:8080/jsk-dl.jar";
    private static mahalo_policy = "/home/helcio/jini/servicos/jsk-all.policy";
    private static mahalo_classpath =
"/usr/local/apache-river-2.1.1/lib/mahalo.jar";
    private static mahalo_config =
"/home/helcio/jini/servicos/transient-jeri-mahalo.config";
    private static mahalo_impl = "com.sun.jini.mahalo.TransientMahaloImpl";
    private static mahalo_service =
        new NonActivatableServiceDescriptor(
            mahalo_codebase, mahalo_policy, mahalo_classpath,
	    mahalo_impl, new String[] { mahalo_config });
	
    //	
    // Mercury (Event Mailbox Service)
    //
    private static mercury_codebase = "http://127.0.0.1:8080/mercury-dl.jar"
        + " http://127.0.0.1:8080/jsk-dl.jar";
    private static mercury_policy = "/home/helcio/jini/servicos/jsk-all.policy";
    private static mercury_classpath =
"/usr/local/apache-river-2.1.1/lib/mercury.jar";
    private static mercury_config =
"/home/helcio/jini/servicos/transient-jeri-mercury.config";
    private static mercury_impl = "com.sun.jini.mercury.TransientMercuryImpl";
    private static mercury_service =
        new NonActivatableServiceDescriptor(
            mercury_codebase, mercury_policy, mercury_classpath,
	    mercury_impl, new String[] { mercury_config });

    //	
    // Norm (Lease Renewal Service)
    //
    private static norm_codebase = "http://127.0.0.1:8080/norm-dl.jar"
        + " http://127.0.0.1:8080/jsk-dl.jar";
    private static norm_policy = "/home/helcio/jini/servicos/jsk-all.policy";
    private static norm_classpath =
"/usr/local/apache-river-2.1.1/lib/norm.jar";
    private static norm_config =
"/home/helcio/jini/servicos/transient-jeri-norm.config";
    private static norm_impl = "com.sun.jini.norm.TransientNormServerImpl";
    private static norm_service =
        new NonActivatableServiceDescriptor(
            norm_codebase, norm_policy, norm_classpath,
	    norm_impl, new String[] { norm_config });

    //	
    // Outrigger (JavaSpaces Service)
    //
    private static outrigger_codebase = "http://127.0.0.1:8080/outrigger-dl.jar"
        + " http://127.0.0.1:8080/jsk-dl.jar";
    private static outrigger_policy =
"/home/helcio/jini/servicos/jsk-all.policy";
    private static outrigger_classpath =
"/usr/local/apache-river-2.1.1/lib/outrigger.jar";
    private static outrigger_config =
"/home/helcio/jini/servicos/transient-jeri-outrigger.config";
    private static outrigger_impl =
"com.sun.jini.outrigger.TransientOutriggerImpl";
    private static outrigger_service =
        new NonActivatableServiceDescriptor(
            outrigger_codebase, outrigger_policy, outrigger_classpath,
	    outrigger_impl, new String[] { outrigger_config });

    //	
    // Reggie (Lookup Service)
    //
    private static reggie_codebase = "http://127.0.0.1:8080/reggie-dl.jar"
        + " http://127.0.0.1:8080/jsk-dl.jar";
    private static reggie_policy = "/home/helcio/jini/servicos/jsk-all.policy";
    private static reggie_classpath =
"/usr/local/apache-river-2.1.1/lib/reggie.jar";
    private static reggie_config =
"/home/helcio/jini/servicos/transient-jeri-reggie.config";
    private static reggie_impl = "com.sun.jini.reggie.TransientRegistrarImpl";
    private static reggie_service =
        new NonActivatableServiceDescriptor(
            reggie_codebase, reggie_policy, reggie_classpath,
	    reggie_impl, new String[] { reggie_config });

    static serviceDescriptors = new ServiceDescriptor[] {
        httpd_service,
	fiddler_service,
	mahalo_service,
	mercury_service,
	norm_service,
	outrigger_service,
	reggie_service
    };
}

iv) the Fiddler's configuration file, named transient-jeri-fiddler.config:

com.sun.jini.fiddler {
    initialLookupGroups = new String[] { "public" };
}

v) the Mahalo's configuration file, named transient-jeri-mahalo.config:

com.sun.jini.mahalo {
    initialLookupGroups = new String[] { "public" };
}

vi) the Mercury's configuration file, named transient-jeri-mercury.config:

com.sun.jini.mercury {
    initialLookupGroups = new String[] { "public" };
}

vii) the Norm's configuration file, named transient-jeri-norm.config:

com.sun.jini.norm {
    initialLookupGroups = new String[] { "public" };
}

viii) the Outrigger's configuration file, named transient-jeri-outrigger.config:

com.sun.jini.outrigger {
    initialLookupGroups = new String[] { "public" };
}

ix) the Reggie's configuration file, named transient-jeri-reggie.config:

com.sun.jini.reggie {

    initialMemberGroups = new String[] { "public" };

}

x) the exception thown by servicestarter when I try to start it:

12/01/2011 11:58:54 net.jini.lookup.JoinManager$ProxyReg fail
INFO: JoinManager - failure
java.security.AccessControlException: access denied
(java.net.SocketPermission 127.17.3.161:39194 connect,resolve)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
        at java.security.AccessController.checkPermission(AccessController.java:546)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
        at java.net.Socket.connect(Socket.java:524)
        at net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connectToSocketAddress(TcpEndpoint.java:678)
        at net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connectToHost(TcpEndpoint.java:608)
        at net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connect(TcpEndpoint.java:543)
        at net.jini.jeri.connection.ConnectionManager.connect(ConnectionManager.java:228)
        at net.jini.jeri.connection.ConnectionManager$ReqIterator.next(ConnectionManager.java:629)
        at net.jini.jeri.BasicObjectEndpoint$1.next(BasicObjectEndpoint.java:371)
        at net.jini.jeri.BasicInvocationHandler.invokeRemoteMethodOnce(BasicInvocationHandler.java:708)
        at net.jini.jeri.BasicInvocationHandler.invokeRemoteMethod(BasicInvocationHandler.java:659)
        at net.jini.jeri.BasicInvocationHandler.invoke(BasicInvocationHandler.java:528)
        at com.sun.jini.reggie.$Proxy16.register(Unknown Source)
        at com.sun.jini.reggie.RegistrarProxy.register(RegistrarProxy.java:107)
        at net.jini.lookup.JoinManager$ProxyReg.register(JoinManager.java:1222)
        at net.jini.lookup.JoinManager$RegisterTask.run(JoinManager.java:784)
        at net.jini.lookup.JoinManager$ProxyRegTask.tryOnce(JoinManager.java:608)
        at com.sun.jini.thread.RetryTask.run(RetryTask.java:131)
        at com.sun.jini.thread.TaskManager$TaskThread.run(TaskManager.java:331)

-------------------------------------------------------------------------

   I'm using java version "1.6.0_22". The exception is shown after
messages relating that services were started and their proxies'
classes were requested. The failure, in my opinion, occurs when
service are trying to register their proxies on reggie. The same
exception occurs when I try to start mahalo separately, after to start
reggie.

   Can someone help me with this problem? Why this exception was
thrown? How can I overcome? Is there some error on configuration
files? Any help is appreciated.

   Best regards.

   Helcio Wagner.

Re: Can't start ServiceStarter utility.

Posted by helcio silva <su...@gmail.com>.
   Hi, Dennis. I've modified the policy file by following your
suggestion. Now, it contains two grant statements:

grant codebase "file:/usr/local/apache-river-2.1.1/lib/*" {
    permission java.security.AllPermission;
};

grant codebase "file:/usr/local/apache-river-2.1.1/lib-dl/*" {
    permission java.security.AllPermission;
};

   However, when I try to start ServiceStarter the exception still
there. I really don't know what is going wrong...

   Helcio.

2011/1/12 Dennis Reedy <de...@gmail.com>:
>
> On Jan 12, 2011, at 1208PM, helcio silva wrote:
>>>>>>
>>>>>> ii) the policy file, named jsk-all.policy:
>>>>>>
>>>>>> grant codebase "file:/usr/local/apache-river-2.1.1/lib/*" {
>>>>>>    permission java.security.AllPermission;
>>>>>> };
>
>
> Wondering if you need to grant access to file:/usr/local/apache-river-2.1.1/lib-dl/* ?
>
>

Re: Can't start ServiceStarter utility.

Posted by Dennis Reedy <de...@gmail.com>.
On Jan 12, 2011, at 1208PM, helcio silva wrote:
>>>>> 
>>>>> ii) the policy file, named jsk-all.policy:
>>>>> 
>>>>> grant codebase "file:/usr/local/apache-river-2.1.1/lib/*" {
>>>>>    permission java.security.AllPermission;
>>>>> };


Wondering if you need to grant access to file:/usr/local/apache-river-2.1.1/lib-dl/* ?


Re: Can't start ServiceStarter utility.

Posted by helcio silva <su...@gmail.com>.
   Believe me, Dan: I tried. See what's happen:

helcio@xavante:~/jini/servicos$ ls
jsk-all.policy                   start-transient-jeri-all.config~
transient-jeri-mahalo.config~
jsk-all.policy~                  start-transient-jeri-mahalo.config
transient-jeri-mercury.config
start-jeri-all                   start-transient-jeri-reggie.config
transient-jeri-norm.config
start-jeri-mahalo                start-transient-jrmp-reggie.config
transient-jeri-outrigger.config
start-jeri-reggie                start-ws
transient-jeri-reggie.config
start-jrmp-reggie                transient-jeri-fiddler.config
transient-jrmp-reggie.config
start-transient-jeri-all.config  transient-jeri-mahalo.config
transient-jrmp-reggie.config~

helcio@xavante:~/jini/servicos$ java
-Djava.security.policy=/home/helcio/jini/servicos/jsk-all.policy -jar
/usr/local/apache-river-2.1.1/lib/start.jar
start-transient-jeri-all.config
12/01/2011 14:06:24 com.sun.jini.tool.ClassServer run
INFO: ClassServer started [[/usr/local/apache-river-2.1.1/lib-dl/],
port 8080]
fiddler-dl.jar requested from localhost:53966
jsk-dl.jar requested from localhost:53967
12/01/2011 14:06:25 com.sun.jini.fiddler.FiddlerImpl logInfoStartup
INFO: Fiddler started: be294032-160b-4f4e-85df-b81f15020e29, [public],
[]
fiddler-dl.jar probed from localhost:53968
fiddler-dl.jar requested from localhost:53969
jsk-dl.jar requested from localhost:53970
mahalo-dl.jar requested from localhost:53971
jsk-dl.jar requested from localhost:53972
12/01/2011 14:06:25 com.sun.jini.mahalo.TxnManagerImpl doInit
INFO: Mahalo started: com.sun.jini.mahalo.TransientMahaloImpl@1c9b9ca
mahalo-dl.jar probed from localhost:53973
mahalo-dl.jar requested from localhost:53974
mercury-dl.jar requested from localhost:53975
jsk-dl.jar requested from localhost:53976
12/01/2011 14:06:25 com.sun.jini.mercury.MailboxImpl doInit
INFO: Mercury started:
com.sun.jini.mercury.TransientMercuryImpl@12c7568
mercury-dl.jar probed from localhost:53977
mercury-dl.jar requested from localhost:53978
norm-dl.jar requested from localhost:53979
jsk-dl.jar requested from localhost:53980
12/01/2011 14:06:25 com.sun.jini.norm.NormServerBaseImpl init
INFO: Norm service started:
TransientNormServerImpl[05c1a71a-3039-4db6-a990-c98aa866c009]
norm-dl.jar probed from localhost:53981
norm-dl.jar requested from localhost:53982
outrigger-dl.jar requested from localhost:53983
jsk-dl.jar requested from localhost:53984
12/01/2011 14:06:26 com.sun.jini.outrigger.OutriggerServerImpl <init>
INFO: Outrigger server started:
com.sun.jini.outrigger.OutriggerServerImpl@145f0e3
outrigger-dl.jar probed from localhost:53985
outrigger-dl.jar requested from localhost:53986
reggie-dl.jar requested from localhost:53987
jsk-dl.jar requested from localhost:53988
12/01/2011 14:06:26 com.sun.jini.reggie.RegistrarImpl init
INFO: started Reggie: 526769d4-d710-45c8-9f3e-ce567f75976f, [public],
ConstrainableLookupLocator[[jini://xavante/], [null]]
reggie-dl.jar probed from localhost:53989
reggie-dl.jar requested from localhost:53991
12/01/2011 14:06:27 net.jini.lookup.JoinManager$ProxyReg fail
INFO: JoinManager - failure
java.security.AccessControlException: access denied
(java.net.SocketPermission 127.17.3.161:47898 connect,resolve)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
        at java.security.AccessController.checkPermission(AccessController.java:546)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
        at java.net.Socket.connect(Socket.java:524)
        at net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connectToSocketAddress(TcpEndpoint.java:678)
        at net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connectToHost(TcpEndpoint.java:608)
        at net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connect(TcpEndpoint.java:543)
        at net.jini.jeri.connection.ConnectionManager.connect(ConnectionManager.java:228)
        at net.jini.jeri.connection.ConnectionManager$ReqIterator.next(ConnectionManager.java:629)
        at net.jini.jeri.BasicObjectEndpoint$1.next(BasicObjectEndpoint.java:371)
        at net.jini.jeri.BasicInvocationHandler.invokeRemoteMethodOnce(BasicInvocationHandler.java:708)
        at net.jini.jeri.BasicInvocationHandler.invokeRemoteMethod(BasicInvocationHandler.java:659)
        at net.jini.jeri.BasicInvocationHandler.invoke(BasicInvocationHandler.java:528)
        at com.sun.jini.reggie.$Proxy13.register(Unknown Source)
        at com.sun.jini.reggie.RegistrarProxy.register(RegistrarProxy.java:107)
        at net.jini.lookup.JoinManager$ProxyReg.register(JoinManager.java:1222)
        at net.jini.lookup.JoinManager$RegisterTask.run(JoinManager.java:784)
        at net.jini.lookup.JoinManager$ProxyRegTask.tryOnce(JoinManager.java:608)
        at com.sun.jini.thread.RetryTask.run(RetryTask.java:131)
        at com.sun.jini.thread.TaskManager$TaskThread.run(TaskManager.java:331)
12/01/2011 14:06:27 net.jini.lookup.JoinManager$ProxyReg fail
INFO: JoinManager - failure
java.security.AccessControlException: access denied
(java.net.SocketPermission 127.17.3.161:47898 connect,resolve)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
        at java.security.AccessController.checkPermission(AccessController.java:546)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
        at java.net.Socket.connect(Socket.java:524)
        at net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connectToSocketAddress(TcpEndpoint.java:678)

  In other words, the exception occured again!

   Helcio Wagner.

011/1/12 Dan Creswell <da...@gmail.com>:
> Try specifying a full path for that policy file instead of a relative
> one....
>
> On 12 January 2011 16:52, helcio silva <su...@gmail.com> wrote:
>
>>   Hi, Dan. The policy file is properly located. See where it is located:
>>
>> helcio@xavante:~/jini/servicos$ ls
>> jsk-all.policy                   start-transient-jeri-all.config~
>> transient-jeri-mahalo.config~
>> jsk-all.policy~                  start-transient-jeri-mahalo.config
>> transient-jeri-mercury.config
>> start-jeri-all                   start-transient-jeri-reggie.config
>> transient-jeri-norm.config
>> start-jeri-mahalo                start-transient-jrmp-reggie.config
>> transient-jeri-outrigger.config
>> start-jeri-reggie                start-ws
>> transient-jeri-reggie.config
>> start-jrmp-reggie                transient-jeri-fiddler.config
>> transient-jrmp-reggie.config
>> start-transient-jeri-all.config  transient-jeri-mahalo.config
>> transient-jrmp-reggie.config~
>>
>>   Now, see how I try to start ServiceStarter and what's happen:
>>
>> helcio@xavante:~/jini/servicos$ java
>> -Djava.security.policy=jsk-all.policy -jar
>> /usr/local/apache-river-2.1.1/lib/start.jar
>> start-transient-jeri-all.config
>> 12/01/2011 13:45:24 com.sun.jini.tool.ClassServer run
>> INFO: ClassServer started [[/usr/local/apache-river-2.1.1/lib-dl/],
>> port 8080]
>> fiddler-dl.jar requested from localhost:55436
>> jsk-dl.jar requested from localhost:55437
>> 12/01/2011 13:45:24 com.sun.jini.fiddler.FiddlerImpl logInfoStartup
>> INFO: Fiddler started: 5c9bdbf4-8622-4847-b3e2-dd82cf955272, [public],
>> []
>> fiddler-dl.jar probed from localhost:55438
>> fiddler-dl.jar requested from localhost:55439
>> jsk-dl.jar requested from localhost:55440
>> mahalo-dl.jar requested from localhost:55441
>> jsk-dl.jar requested from localhost:55442
>> 12/01/2011 13:45:25 com.sun.jini.mahalo.TxnManagerImpl doInit
>> INFO: Mahalo started: com.sun.jini.mahalo.TransientMahaloImpl@1c9b9ca
>> mahalo-dl.jar probed from localhost:55443
>> mahalo-dl.jar requested from localhost:55444
>> mercury-dl.jar requested from localhost:55445
>> jsk-dl.jar requested from localhost:55446
>> 12/01/2011 13:45:25 com.sun.jini.mercury.MailboxImpl doInit
>> INFO: Mercury started:
>> com.sun.jini.mercury.TransientMercuryImpl@12c7568
>> mercury-dl.jar probed from localhost:55447
>> mercury-dl.jar requested from localhost:55448
>> norm-dl.jar requested from localhost:55449
>> jsk-dl.jar requested from localhost:55450
>> 12/01/2011 13:45:25 com.sun.jini.norm.NormServerBaseImpl init
>> INFO: Norm service started:
>> TransientNormServerImpl[bd9baf0a-cd81-4387-91ea-db85dba01f20]
>> norm-dl.jar probed from localhost:55451
>> norm-dl.jar requested from localhost:55452
>> outrigger-dl.jar requested from localhost:55453
>> jsk-dl.jar requested from localhost:55454
>> 12/01/2011 13:45:26 com.sun.jini.outrigger.OutriggerServerImpl <init>
>> INFO: Outrigger server started:
>> com.sun.jini.outrigger.OutriggerServerImpl@145f0e3
>> outrigger-dl.jar probed from localhost:55455
>> outrigger-dl.jar requested from localhost:55456
>> reggie-dl.jar requested from localhost:55457
>> jsk-dl.jar requested from localhost:55458
>> 12/01/2011 13:45:26 com.sun.jini.reggie.RegistrarImpl init
>> INFO: started Reggie: 3585a177-03c4-4213-bb55-1b432693fdd9, [public],
>> ConstrainableLookupLocator[[jini://xavante/], [null]]
>> reggie-dl.jar probed from localhost:55459
>> reggie-dl.jar requested from localhost:55460
>> 12/01/2011 13:45:26 net.jini.lookup.JoinManager$ProxyReg fail
>> INFO: JoinManager - failure
>> java.security.AccessControlException: access denied
>> (java.net.SocketPermission 127.17.3.161:48814 connect,resolve)
>>         at
>> java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
>>        at
>> java.security.AccessController.checkPermission(AccessController.java:546)
>>        at
>> java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
>>        at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
>>        at java.net.Socket.connect(Socket.java:524)
>>        at
>> net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connectToSocketAddress(TcpEndpoint.java:678)
>>        at
>> net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connectToHost(TcpEndpoint.java:608)
>>        at
>> net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connect(TcpEndpoint.java:543)
>>        at
>> net.jini.jeri.connection.ConnectionManager.connect(ConnectionManager.java:228)
>>        at
>> net.jini.jeri.connection.ConnectionManager$ReqIterator.next(ConnectionManager.java:629)
>>        at
>> net.jini.jeri.BasicObjectEndpoint$1.next(BasicObjectEndpoint.java:371)
>>        at
>> net.jini.jeri.BasicInvocationHandler.invokeRemoteMethodOnce(BasicInvocationHandler.java:708)
>>        at
>> net.jini.jeri.BasicInvocationHandler.invokeRemoteMethod(BasicInvocationHandler.java:659)
>>        at
>> net.jini.jeri.BasicInvocationHandler.invoke(BasicInvocationHandler.java:528)
>>         at com.sun.jini.reggie.$Proxy11.register(Unknown Source)
>>
>>   I can't see what is wrong. I really don't know where is the error...
>>
>>   Best regards.
>>
>>   Helcio Wagner.
>>
>> 2011/1/12 Dan Creswell <da...@gmail.com>:
>> > Looks like you're policy isn't right on first blush.
>> >
>> > That could be because it's not located on the path you've specified or
>> > because the path in the policy file isn't right.
>> >
>> > It could also be down to where you run the start command from. I'm
>> looking
>> > at this:
>> >
>> > -Djava.security.policy=jsk-all.policy
>> >
>> > And noting that's a relative path so unless your current working
>> directory
>> > is the one in which this file is located, it won't be loaded.
>> >
>> >
>> > On 12 January 2011 15:15, helcio silva <su...@gmail.com>
>> wrote:
>> >
>> >>   Hello to everybody.
>> >>
>> >>   I've used to start reggie to build my client/server applications.
>> >> Now, I need to use the transaction manager, named mahalo, but I can't
>> >> start it. My first trial was try to start it after reggie, but it
>> >> throws an exception. Next, I tried to use the servicestarter utility,
>> >> but it didn't work. Some information will be provided below:
>> >>
>> >> i) the way I start the servicestarter:
>> >>
>> >> java -Djava.security.policy=jsk-all.policy -jar
>> >> /usr/local/apache-river-2.1.1/lib/start.jar
>> >> start-transient-jeri-all.config
>> >>
>> >> ii) the policy file, named jsk-all.policy:
>> >>
>> >> grant codebase "file:/usr/local/apache-river-2.1.1/lib/*" {
>> >>    permission java.security.AllPermission;
>> >> };
>> >>
>> >>
>> >
>>
>

Re: Can't start ServiceStarter utility.

Posted by Dan Creswell <da...@gmail.com>.
Try specifying a full path for that policy file instead of a relative
one....

On 12 January 2011 16:52, helcio silva <su...@gmail.com> wrote:

>   Hi, Dan. The policy file is properly located. See where it is located:
>
> helcio@xavante:~/jini/servicos$ ls
> jsk-all.policy                   start-transient-jeri-all.config~
> transient-jeri-mahalo.config~
> jsk-all.policy~                  start-transient-jeri-mahalo.config
> transient-jeri-mercury.config
> start-jeri-all                   start-transient-jeri-reggie.config
> transient-jeri-norm.config
> start-jeri-mahalo                start-transient-jrmp-reggie.config
> transient-jeri-outrigger.config
> start-jeri-reggie                start-ws
> transient-jeri-reggie.config
> start-jrmp-reggie                transient-jeri-fiddler.config
> transient-jrmp-reggie.config
> start-transient-jeri-all.config  transient-jeri-mahalo.config
> transient-jrmp-reggie.config~
>
>   Now, see how I try to start ServiceStarter and what's happen:
>
> helcio@xavante:~/jini/servicos$ java
> -Djava.security.policy=jsk-all.policy -jar
> /usr/local/apache-river-2.1.1/lib/start.jar
> start-transient-jeri-all.config
> 12/01/2011 13:45:24 com.sun.jini.tool.ClassServer run
> INFO: ClassServer started [[/usr/local/apache-river-2.1.1/lib-dl/],
> port 8080]
> fiddler-dl.jar requested from localhost:55436
> jsk-dl.jar requested from localhost:55437
> 12/01/2011 13:45:24 com.sun.jini.fiddler.FiddlerImpl logInfoStartup
> INFO: Fiddler started: 5c9bdbf4-8622-4847-b3e2-dd82cf955272, [public],
> []
> fiddler-dl.jar probed from localhost:55438
> fiddler-dl.jar requested from localhost:55439
> jsk-dl.jar requested from localhost:55440
> mahalo-dl.jar requested from localhost:55441
> jsk-dl.jar requested from localhost:55442
> 12/01/2011 13:45:25 com.sun.jini.mahalo.TxnManagerImpl doInit
> INFO: Mahalo started: com.sun.jini.mahalo.TransientMahaloImpl@1c9b9ca
> mahalo-dl.jar probed from localhost:55443
> mahalo-dl.jar requested from localhost:55444
> mercury-dl.jar requested from localhost:55445
> jsk-dl.jar requested from localhost:55446
> 12/01/2011 13:45:25 com.sun.jini.mercury.MailboxImpl doInit
> INFO: Mercury started:
> com.sun.jini.mercury.TransientMercuryImpl@12c7568
> mercury-dl.jar probed from localhost:55447
> mercury-dl.jar requested from localhost:55448
> norm-dl.jar requested from localhost:55449
> jsk-dl.jar requested from localhost:55450
> 12/01/2011 13:45:25 com.sun.jini.norm.NormServerBaseImpl init
> INFO: Norm service started:
> TransientNormServerImpl[bd9baf0a-cd81-4387-91ea-db85dba01f20]
> norm-dl.jar probed from localhost:55451
> norm-dl.jar requested from localhost:55452
> outrigger-dl.jar requested from localhost:55453
> jsk-dl.jar requested from localhost:55454
> 12/01/2011 13:45:26 com.sun.jini.outrigger.OutriggerServerImpl <init>
> INFO: Outrigger server started:
> com.sun.jini.outrigger.OutriggerServerImpl@145f0e3
> outrigger-dl.jar probed from localhost:55455
> outrigger-dl.jar requested from localhost:55456
> reggie-dl.jar requested from localhost:55457
> jsk-dl.jar requested from localhost:55458
> 12/01/2011 13:45:26 com.sun.jini.reggie.RegistrarImpl init
> INFO: started Reggie: 3585a177-03c4-4213-bb55-1b432693fdd9, [public],
> ConstrainableLookupLocator[[jini://xavante/], [null]]
> reggie-dl.jar probed from localhost:55459
> reggie-dl.jar requested from localhost:55460
> 12/01/2011 13:45:26 net.jini.lookup.JoinManager$ProxyReg fail
> INFO: JoinManager - failure
> java.security.AccessControlException: access denied
> (java.net.SocketPermission 127.17.3.161:48814 connect,resolve)
>         at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
>        at
> java.security.AccessController.checkPermission(AccessController.java:546)
>        at
> java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
>        at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
>        at java.net.Socket.connect(Socket.java:524)
>        at
> net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connectToSocketAddress(TcpEndpoint.java:678)
>        at
> net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connectToHost(TcpEndpoint.java:608)
>        at
> net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connect(TcpEndpoint.java:543)
>        at
> net.jini.jeri.connection.ConnectionManager.connect(ConnectionManager.java:228)
>        at
> net.jini.jeri.connection.ConnectionManager$ReqIterator.next(ConnectionManager.java:629)
>        at
> net.jini.jeri.BasicObjectEndpoint$1.next(BasicObjectEndpoint.java:371)
>        at
> net.jini.jeri.BasicInvocationHandler.invokeRemoteMethodOnce(BasicInvocationHandler.java:708)
>        at
> net.jini.jeri.BasicInvocationHandler.invokeRemoteMethod(BasicInvocationHandler.java:659)
>        at
> net.jini.jeri.BasicInvocationHandler.invoke(BasicInvocationHandler.java:528)
>         at com.sun.jini.reggie.$Proxy11.register(Unknown Source)
>
>   I can't see what is wrong. I really don't know where is the error...
>
>   Best regards.
>
>   Helcio Wagner.
>
> 2011/1/12 Dan Creswell <da...@gmail.com>:
> > Looks like you're policy isn't right on first blush.
> >
> > That could be because it's not located on the path you've specified or
> > because the path in the policy file isn't right.
> >
> > It could also be down to where you run the start command from. I'm
> looking
> > at this:
> >
> > -Djava.security.policy=jsk-all.policy
> >
> > And noting that's a relative path so unless your current working
> directory
> > is the one in which this file is located, it won't be loaded.
> >
> >
> > On 12 January 2011 15:15, helcio silva <su...@gmail.com>
> wrote:
> >
> >>   Hello to everybody.
> >>
> >>   I've used to start reggie to build my client/server applications.
> >> Now, I need to use the transaction manager, named mahalo, but I can't
> >> start it. My first trial was try to start it after reggie, but it
> >> throws an exception. Next, I tried to use the servicestarter utility,
> >> but it didn't work. Some information will be provided below:
> >>
> >> i) the way I start the servicestarter:
> >>
> >> java -Djava.security.policy=jsk-all.policy -jar
> >> /usr/local/apache-river-2.1.1/lib/start.jar
> >> start-transient-jeri-all.config
> >>
> >> ii) the policy file, named jsk-all.policy:
> >>
> >> grant codebase "file:/usr/local/apache-river-2.1.1/lib/*" {
> >>    permission java.security.AllPermission;
> >> };
> >>
> >>
> >
>

Re: Can't start ServiceStarter utility.

Posted by helcio silva <su...@gmail.com>.
   Hi, Dan. The policy file is properly located. See where it is located:

helcio@xavante:~/jini/servicos$ ls
jsk-all.policy                   start-transient-jeri-all.config~
transient-jeri-mahalo.config~
jsk-all.policy~                  start-transient-jeri-mahalo.config
transient-jeri-mercury.config
start-jeri-all                   start-transient-jeri-reggie.config
transient-jeri-norm.config
start-jeri-mahalo                start-transient-jrmp-reggie.config
transient-jeri-outrigger.config
start-jeri-reggie                start-ws
transient-jeri-reggie.config
start-jrmp-reggie                transient-jeri-fiddler.config
transient-jrmp-reggie.config
start-transient-jeri-all.config  transient-jeri-mahalo.config
transient-jrmp-reggie.config~

   Now, see how I try to start ServiceStarter and what's happen:

helcio@xavante:~/jini/servicos$ java
-Djava.security.policy=jsk-all.policy -jar
/usr/local/apache-river-2.1.1/lib/start.jar
start-transient-jeri-all.config
12/01/2011 13:45:24 com.sun.jini.tool.ClassServer run
INFO: ClassServer started [[/usr/local/apache-river-2.1.1/lib-dl/],
port 8080]
fiddler-dl.jar requested from localhost:55436
jsk-dl.jar requested from localhost:55437
12/01/2011 13:45:24 com.sun.jini.fiddler.FiddlerImpl logInfoStartup
INFO: Fiddler started: 5c9bdbf4-8622-4847-b3e2-dd82cf955272, [public],
[]
fiddler-dl.jar probed from localhost:55438
fiddler-dl.jar requested from localhost:55439
jsk-dl.jar requested from localhost:55440
mahalo-dl.jar requested from localhost:55441
jsk-dl.jar requested from localhost:55442
12/01/2011 13:45:25 com.sun.jini.mahalo.TxnManagerImpl doInit
INFO: Mahalo started: com.sun.jini.mahalo.TransientMahaloImpl@1c9b9ca
mahalo-dl.jar probed from localhost:55443
mahalo-dl.jar requested from localhost:55444
mercury-dl.jar requested from localhost:55445
jsk-dl.jar requested from localhost:55446
12/01/2011 13:45:25 com.sun.jini.mercury.MailboxImpl doInit
INFO: Mercury started:
com.sun.jini.mercury.TransientMercuryImpl@12c7568
mercury-dl.jar probed from localhost:55447
mercury-dl.jar requested from localhost:55448
norm-dl.jar requested from localhost:55449
jsk-dl.jar requested from localhost:55450
12/01/2011 13:45:25 com.sun.jini.norm.NormServerBaseImpl init
INFO: Norm service started:
TransientNormServerImpl[bd9baf0a-cd81-4387-91ea-db85dba01f20]
norm-dl.jar probed from localhost:55451
norm-dl.jar requested from localhost:55452
outrigger-dl.jar requested from localhost:55453
jsk-dl.jar requested from localhost:55454
12/01/2011 13:45:26 com.sun.jini.outrigger.OutriggerServerImpl <init>
INFO: Outrigger server started:
com.sun.jini.outrigger.OutriggerServerImpl@145f0e3
outrigger-dl.jar probed from localhost:55455
outrigger-dl.jar requested from localhost:55456
reggie-dl.jar requested from localhost:55457
jsk-dl.jar requested from localhost:55458
12/01/2011 13:45:26 com.sun.jini.reggie.RegistrarImpl init
INFO: started Reggie: 3585a177-03c4-4213-bb55-1b432693fdd9, [public],
ConstrainableLookupLocator[[jini://xavante/], [null]]
reggie-dl.jar probed from localhost:55459
reggie-dl.jar requested from localhost:55460
12/01/2011 13:45:26 net.jini.lookup.JoinManager$ProxyReg fail
INFO: JoinManager - failure
java.security.AccessControlException: access denied
(java.net.SocketPermission 127.17.3.161:48814 connect,resolve)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
        at java.security.AccessController.checkPermission(AccessController.java:546)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
        at java.net.Socket.connect(Socket.java:524)
        at net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connectToSocketAddress(TcpEndpoint.java:678)
        at net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connectToHost(TcpEndpoint.java:608)
        at net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connect(TcpEndpoint.java:543)
        at net.jini.jeri.connection.ConnectionManager.connect(ConnectionManager.java:228)
        at net.jini.jeri.connection.ConnectionManager$ReqIterator.next(ConnectionManager.java:629)
        at net.jini.jeri.BasicObjectEndpoint$1.next(BasicObjectEndpoint.java:371)
        at net.jini.jeri.BasicInvocationHandler.invokeRemoteMethodOnce(BasicInvocationHandler.java:708)
        at net.jini.jeri.BasicInvocationHandler.invokeRemoteMethod(BasicInvocationHandler.java:659)
        at net.jini.jeri.BasicInvocationHandler.invoke(BasicInvocationHandler.java:528)
        at com.sun.jini.reggie.$Proxy11.register(Unknown Source)

   I can't see what is wrong. I really don't know where is the error...

   Best regards.

   Helcio Wagner.

2011/1/12 Dan Creswell <da...@gmail.com>:
> Looks like you're policy isn't right on first blush.
>
> That could be because it's not located on the path you've specified or
> because the path in the policy file isn't right.
>
> It could also be down to where you run the start command from. I'm looking
> at this:
>
> -Djava.security.policy=jsk-all.policy
>
> And noting that's a relative path so unless your current working directory
> is the one in which this file is located, it won't be loaded.
>
>
> On 12 January 2011 15:15, helcio silva <su...@gmail.com> wrote:
>
>>   Hello to everybody.
>>
>>   I've used to start reggie to build my client/server applications.
>> Now, I need to use the transaction manager, named mahalo, but I can't
>> start it. My first trial was try to start it after reggie, but it
>> throws an exception. Next, I tried to use the servicestarter utility,
>> but it didn't work. Some information will be provided below:
>>
>> i) the way I start the servicestarter:
>>
>> java -Djava.security.policy=jsk-all.policy -jar
>> /usr/local/apache-river-2.1.1/lib/start.jar
>> start-transient-jeri-all.config
>>
>> ii) the policy file, named jsk-all.policy:
>>
>> grant codebase "file:/usr/local/apache-river-2.1.1/lib/*" {
>>    permission java.security.AllPermission;
>> };
>>
>>
>

Re: Can't start ServiceStarter utility.

Posted by Dan Creswell <da...@gmail.com>.
Looks like you're policy isn't right on first blush.

That could be because it's not located on the path you've specified or
because the path in the policy file isn't right.

It could also be down to where you run the start command from. I'm looking
at this:

-Djava.security.policy=jsk-all.policy

And noting that's a relative path so unless your current working directory
is the one in which this file is located, it won't be loaded.


On 12 January 2011 15:15, helcio silva <su...@gmail.com> wrote:

>   Hello to everybody.
>
>   I've used to start reggie to build my client/server applications.
> Now, I need to use the transaction manager, named mahalo, but I can't
> start it. My first trial was try to start it after reggie, but it
> throws an exception. Next, I tried to use the servicestarter utility,
> but it didn't work. Some information will be provided below:
>
> i) the way I start the servicestarter:
>
> java -Djava.security.policy=jsk-all.policy -jar
> /usr/local/apache-river-2.1.1/lib/start.jar
> start-transient-jeri-all.config
>
> ii) the policy file, named jsk-all.policy:
>
> grant codebase "file:/usr/local/apache-river-2.1.1/lib/*" {
>    permission java.security.AllPermission;
> };
>
>

Re: Can't start ServiceStarter utility.

Posted by Tom Hobbs <tv...@googlemail.com>.
I've just created a JIRA for this so it can be tracked and not forgotten.

https://issues.apache.org/jira/browse/RIVER-389


On Thu, Jan 13, 2011 at 2:37 AM, Gregg Wonderly <ge...@cox.net> wrote:
> This is exactly the kind of complication that makes "getting started" pretty painful.  Many people would find this to be so odd that they would not even ask for help believing that the software had been compiled with a private network or that something else was broken in river.
>
> We've answered exactly this question with exactly this solution many times as I recall.  The fact that "security" requires "addresses" to be "correct" is one of the no-start issues that will be very prevalent.
>
> I believe that we should have the TCP endpoint costructor do a lookup of localhost and if it is not 127.0.0.1, log a message, and potentially throw an IOException, demanding it be fixed.
>
> Gregg Wonderly
>
> On Jan 12, 2011, at 12:25 PM, helcio silva wrote:
>
>>   PROBLEM SOLVED.
>>
>>   My apologies to everybody!
>>
>>   The 'hosts' file on my machine did contained an statement making
>> 'localhost' be equivalent to that weird address. I just fixed it, and
>> the exception now disappeared.
>>
>>   My apologies, again. Have a nice day!!!
>>
>>   Helcio Wagner.
>>
>> 2011/1/12 Dennis Reedy <de...@gmail.com>:
>>> Okay, so lets start there :) Do you have a multi-homed machine? Whats your operating system?
>>>
>>> On Jan 12, 2011, at 107PM, helcio silva wrote:
>>>
>>>>   That's weird...
>>>>
>>>>   In fact, my IP address (eth0) is NOT 127.17.3.161. I don't know who
>>>> is that address. I did not specify it anywhere...
>>>>
>>>>   Helcio.
>>>>
>>>> 2011/1/12 Dennis Reedy <de...@gmail.com>:
>>>>>
>>>>> On Jan 12, 2011, at 1015AM, helcio silva wrote:
>>>>>>
>>>>>>    private static fiddler_codebase = "http://127.0.0.1:8080/fiddler-dl.jar  + " http://127.0.0.1:8080/jsk-dl.jar";
>>>>>>
>>>>>>    private static mahalo_codebase = "http://127.0.0.1:8080/mahalo-dl.jar   + " http://127.0.0.1:8080/jsk-dl.jar";
>>>>>>
>>>>>>    private static mercury_codebase = "http://127.0.0.1:8080/mercury-dl.jar + " http://127.0.0.1:8080/jsk-dl.jar";
>>>>>>
>>>>>>    private static norm_codebase = "http://127.0.0.1:8080/norm-dl.jar" + " http://127.0.0.1:8080/jsk-dl.jar";
>>>>>>
>>>>>>    private static outrigger_codebase = "http://127.0.0.1:8080/outrigger-dl.jar" + " http://127.0.0.1:8080/jsk-dl.jar";
>>>>>>
>>>>>>    private static reggie_codebase = "http://127.0.0.1:8080/reggie-dl.jar + " http://127.0.0.1:8080/jsk-dl.jar";
>>>>>>
>>>>>
>>>>> [snip]
>>>>>
>>>>>> x) the exception thown by servicestarter when I try to start it:
>>>>>>
>>>>>> 12/01/2011 11:58:54 net.jini.lookup.JoinManager$ProxyReg fail
>>>>>> INFO: JoinManager - failure
>>>>>> java.security.AccessControlException: access denied
>>>>>> (java.net.SocketPermission 127.17.3.161:39194 connect,resolve)
>>>>>>        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
>>>>>>        at java.security.AccessController.checkPermission(AccessController.java:546)
>>>>>>        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
>>>>>>        at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
>>>>>
>>>>> Humm ... you have the codebase for each of the services set to 127.0.0.1 (localhost), yet the ClassServer is serving on 127.17.3.161. Can you use the same address for all?
>>>>>
>>>>>
>>>
>>>
>
>

Re: Can't start ServiceStarter utility.

Posted by Gregg Wonderly <ge...@cox.net>.
This is exactly the kind of complication that makes "getting started" pretty painful.  Many people would find this to be so odd that they would not even ask for help believing that the software had been compiled with a private network or that something else was broken in river.

We've answered exactly this question with exactly this solution many times as I recall.  The fact that "security" requires "addresses" to be "correct" is one of the no-start issues that will be very prevalent.

I believe that we should have the TCP endpoint costructor do a lookup of localhost and if it is not 127.0.0.1, log a message, and potentially throw an IOException, demanding it be fixed.
 
Gregg Wonderly

On Jan 12, 2011, at 12:25 PM, helcio silva wrote:

>   PROBLEM SOLVED.
> 
>   My apologies to everybody!
> 
>   The 'hosts' file on my machine did contained an statement making
> 'localhost' be equivalent to that weird address. I just fixed it, and
> the exception now disappeared.
> 
>   My apologies, again. Have a nice day!!!
> 
>   Helcio Wagner.
> 
> 2011/1/12 Dennis Reedy <de...@gmail.com>:
>> Okay, so lets start there :) Do you have a multi-homed machine? Whats your operating system?
>> 
>> On Jan 12, 2011, at 107PM, helcio silva wrote:
>> 
>>>   That's weird...
>>> 
>>>   In fact, my IP address (eth0) is NOT 127.17.3.161. I don't know who
>>> is that address. I did not specify it anywhere...
>>> 
>>>   Helcio.
>>> 
>>> 2011/1/12 Dennis Reedy <de...@gmail.com>:
>>>> 
>>>> On Jan 12, 2011, at 1015AM, helcio silva wrote:
>>>>> 
>>>>>    private static fiddler_codebase = "http://127.0.0.1:8080/fiddler-dl.jar  + " http://127.0.0.1:8080/jsk-dl.jar";
>>>>> 
>>>>>    private static mahalo_codebase = "http://127.0.0.1:8080/mahalo-dl.jar   + " http://127.0.0.1:8080/jsk-dl.jar";
>>>>> 
>>>>>    private static mercury_codebase = "http://127.0.0.1:8080/mercury-dl.jar + " http://127.0.0.1:8080/jsk-dl.jar";
>>>>> 
>>>>>    private static norm_codebase = "http://127.0.0.1:8080/norm-dl.jar" + " http://127.0.0.1:8080/jsk-dl.jar";
>>>>> 
>>>>>    private static outrigger_codebase = "http://127.0.0.1:8080/outrigger-dl.jar" + " http://127.0.0.1:8080/jsk-dl.jar";
>>>>> 
>>>>>    private static reggie_codebase = "http://127.0.0.1:8080/reggie-dl.jar + " http://127.0.0.1:8080/jsk-dl.jar";
>>>>> 
>>>> 
>>>> [snip]
>>>> 
>>>>> x) the exception thown by servicestarter when I try to start it:
>>>>> 
>>>>> 12/01/2011 11:58:54 net.jini.lookup.JoinManager$ProxyReg fail
>>>>> INFO: JoinManager - failure
>>>>> java.security.AccessControlException: access denied
>>>>> (java.net.SocketPermission 127.17.3.161:39194 connect,resolve)
>>>>>        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
>>>>>        at java.security.AccessController.checkPermission(AccessController.java:546)
>>>>>        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
>>>>>        at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
>>>> 
>>>> Humm ... you have the codebase for each of the services set to 127.0.0.1 (localhost), yet the ClassServer is serving on 127.17.3.161. Can you use the same address for all?
>>>> 
>>>> 
>> 
>> 


Re: Can't start ServiceStarter utility.

Posted by helcio silva <su...@gmail.com>.
   PROBLEM SOLVED.

   My apologies to everybody!

   The 'hosts' file on my machine did contained an statement making
'localhost' be equivalent to that weird address. I just fixed it, and
the exception now disappeared.

   My apologies, again. Have a nice day!!!

   Helcio Wagner.

2011/1/12 Dennis Reedy <de...@gmail.com>:
> Okay, so lets start there :) Do you have a multi-homed machine? Whats your operating system?
>
> On Jan 12, 2011, at 107PM, helcio silva wrote:
>
>>   That's weird...
>>
>>   In fact, my IP address (eth0) is NOT 127.17.3.161. I don't know who
>> is that address. I did not specify it anywhere...
>>
>>   Helcio.
>>
>> 2011/1/12 Dennis Reedy <de...@gmail.com>:
>>>
>>> On Jan 12, 2011, at 1015AM, helcio silva wrote:
>>>>
>>>>    private static fiddler_codebase = "http://127.0.0.1:8080/fiddler-dl.jar  + " http://127.0.0.1:8080/jsk-dl.jar";
>>>>
>>>>    private static mahalo_codebase = "http://127.0.0.1:8080/mahalo-dl.jar   + " http://127.0.0.1:8080/jsk-dl.jar";
>>>>
>>>>    private static mercury_codebase = "http://127.0.0.1:8080/mercury-dl.jar + " http://127.0.0.1:8080/jsk-dl.jar";
>>>>
>>>>    private static norm_codebase = "http://127.0.0.1:8080/norm-dl.jar" + " http://127.0.0.1:8080/jsk-dl.jar";
>>>>
>>>>    private static outrigger_codebase = "http://127.0.0.1:8080/outrigger-dl.jar" + " http://127.0.0.1:8080/jsk-dl.jar";
>>>>
>>>>    private static reggie_codebase = "http://127.0.0.1:8080/reggie-dl.jar + " http://127.0.0.1:8080/jsk-dl.jar";
>>>>
>>>
>>> [snip]
>>>
>>>> x) the exception thown by servicestarter when I try to start it:
>>>>
>>>> 12/01/2011 11:58:54 net.jini.lookup.JoinManager$ProxyReg fail
>>>> INFO: JoinManager - failure
>>>> java.security.AccessControlException: access denied
>>>> (java.net.SocketPermission 127.17.3.161:39194 connect,resolve)
>>>>        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
>>>>        at java.security.AccessController.checkPermission(AccessController.java:546)
>>>>        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
>>>>        at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
>>>
>>> Humm ... you have the codebase for each of the services set to 127.0.0.1 (localhost), yet the ClassServer is serving on 127.17.3.161. Can you use the same address for all?
>>>
>>>
>
>

Re: Can't start ServiceStarter utility.

Posted by Dennis Reedy <de...@gmail.com>.
Okay, so lets start there :) Do you have a multi-homed machine? Whats your operating system?

On Jan 12, 2011, at 107PM, helcio silva wrote:

>   That's weird...
> 
>   In fact, my IP address (eth0) is NOT 127.17.3.161. I don't know who
> is that address. I did not specify it anywhere...
> 
>   Helcio.
> 
> 2011/1/12 Dennis Reedy <de...@gmail.com>:
>> 
>> On Jan 12, 2011, at 1015AM, helcio silva wrote:
>>> 
>>>    private static fiddler_codebase = "http://127.0.0.1:8080/fiddler-dl.jar  + " http://127.0.0.1:8080/jsk-dl.jar";
>>> 
>>>    private static mahalo_codebase = "http://127.0.0.1:8080/mahalo-dl.jar   + " http://127.0.0.1:8080/jsk-dl.jar";
>>> 
>>>    private static mercury_codebase = "http://127.0.0.1:8080/mercury-dl.jar + " http://127.0.0.1:8080/jsk-dl.jar";
>>> 
>>>    private static norm_codebase = "http://127.0.0.1:8080/norm-dl.jar" + " http://127.0.0.1:8080/jsk-dl.jar";
>>> 
>>>    private static outrigger_codebase = "http://127.0.0.1:8080/outrigger-dl.jar" + " http://127.0.0.1:8080/jsk-dl.jar";
>>> 
>>>    private static reggie_codebase = "http://127.0.0.1:8080/reggie-dl.jar + " http://127.0.0.1:8080/jsk-dl.jar";
>>> 
>> 
>> [snip]
>> 
>>> x) the exception thown by servicestarter when I try to start it:
>>> 
>>> 12/01/2011 11:58:54 net.jini.lookup.JoinManager$ProxyReg fail
>>> INFO: JoinManager - failure
>>> java.security.AccessControlException: access denied
>>> (java.net.SocketPermission 127.17.3.161:39194 connect,resolve)
>>>        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
>>>        at java.security.AccessController.checkPermission(AccessController.java:546)
>>>        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
>>>        at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
>> 
>> Humm ... you have the codebase for each of the services set to 127.0.0.1 (localhost), yet the ClassServer is serving on 127.17.3.161. Can you use the same address for all?
>> 
>> 


Re: Can't start ServiceStarter utility.

Posted by helcio silva <su...@gmail.com>.
   That's weird...

   In fact, my IP address (eth0) is NOT 127.17.3.161. I don't know who
is that address. I did not specify it anywhere...

   Helcio.

2011/1/12 Dennis Reedy <de...@gmail.com>:
>
> On Jan 12, 2011, at 1015AM, helcio silva wrote:
>>
>>    private static fiddler_codebase = "http://127.0.0.1:8080/fiddler-dl.jar  + " http://127.0.0.1:8080/jsk-dl.jar";
>>
>>    private static mahalo_codebase = "http://127.0.0.1:8080/mahalo-dl.jar   + " http://127.0.0.1:8080/jsk-dl.jar";
>>
>>    private static mercury_codebase = "http://127.0.0.1:8080/mercury-dl.jar + " http://127.0.0.1:8080/jsk-dl.jar";
>>
>>    private static norm_codebase = "http://127.0.0.1:8080/norm-dl.jar" + " http://127.0.0.1:8080/jsk-dl.jar";
>>
>>    private static outrigger_codebase = "http://127.0.0.1:8080/outrigger-dl.jar" + " http://127.0.0.1:8080/jsk-dl.jar";
>>
>>    private static reggie_codebase = "http://127.0.0.1:8080/reggie-dl.jar + " http://127.0.0.1:8080/jsk-dl.jar";
>>
>
> [snip]
>
>> x) the exception thown by servicestarter when I try to start it:
>>
>> 12/01/2011 11:58:54 net.jini.lookup.JoinManager$ProxyReg fail
>> INFO: JoinManager - failure
>> java.security.AccessControlException: access denied
>> (java.net.SocketPermission 127.17.3.161:39194 connect,resolve)
>>        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
>>        at java.security.AccessController.checkPermission(AccessController.java:546)
>>        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
>>        at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
>
> Humm ... you have the codebase for each of the services set to 127.0.0.1 (localhost), yet the ClassServer is serving on 127.17.3.161. Can you use the same address for all?
>
>

Re: Can't start ServiceStarter utility.

Posted by Dennis Reedy <de...@gmail.com>.
On Jan 12, 2011, at 1015AM, helcio silva wrote:
> 
>    private static fiddler_codebase = "http://127.0.0.1:8080/fiddler-dl.jar  + " http://127.0.0.1:8080/jsk-dl.jar";
> 
>    private static mahalo_codebase = "http://127.0.0.1:8080/mahalo-dl.jar   + " http://127.0.0.1:8080/jsk-dl.jar";
> 
>    private static mercury_codebase = "http://127.0.0.1:8080/mercury-dl.jar + " http://127.0.0.1:8080/jsk-dl.jar";
> 
>    private static norm_codebase = "http://127.0.0.1:8080/norm-dl.jar" + " http://127.0.0.1:8080/jsk-dl.jar";
> 
>    private static outrigger_codebase = "http://127.0.0.1:8080/outrigger-dl.jar" + " http://127.0.0.1:8080/jsk-dl.jar";
> 
>    private static reggie_codebase = "http://127.0.0.1:8080/reggie-dl.jar + " http://127.0.0.1:8080/jsk-dl.jar";
> 

[snip]

> x) the exception thown by servicestarter when I try to start it:
> 
> 12/01/2011 11:58:54 net.jini.lookup.JoinManager$ProxyReg fail
> INFO: JoinManager - failure
> java.security.AccessControlException: access denied
> (java.net.SocketPermission 127.17.3.161:39194 connect,resolve)
>        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
>        at java.security.AccessController.checkPermission(AccessController.java:546)
>        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
>        at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)

Humm ... you have the codebase for each of the services set to 127.0.0.1 (localhost), yet the ClassServer is serving on 127.17.3.161. Can you use the same address for all?