You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Robert McKinnon <ro...@clubpcc.com> on 2006/10/06 20:43:21 UTC
Remote authorization
To Whom It May Concern:
I am receiving a Host authorization error when trying to access a
session bean remotely.
22:10:50,415 ERROR [EJB] Host 71.207.20.158 is not authorized to access
this service.
java.lang.SecurityException: Host 71.207.20.158 is not authorized to
access this service.
at
org.activeio.xnet.hba.ServiceAccessController.checkHostsAuthorization(ServiceAccessController.java:78)
at
org.activeio.xnet.hba.ServiceAccessController.service(ServiceAccessController.java:51)
at org.activeio.xnet.ServiceLogger.service(ServiceLogger.java:74)
at
org.activeio.xnet.ServiceDaemon$SocketListener.run(ServiceDaemon.java:151)
at java.lang.Thread.run(Thread.java:595)
I found reference on line to edit the config.xml file and add the
"allowHosts" attribute to the EJBNetworkService gbean. I did this but
after restarting the server, the allowHosts attribute entry is removed.
Is there a better way to configure what host are allowed to access EJBs
remotely and/or is there a way to edit the config.xml file without it
being rewritten.
Any help would be appreciated.
Thanks
Re: Remote authorization
Posted by Robert McKinnon <ro...@clubpcc.com>.
That was the problem. Thanks.
Rob
Aaron Mulder wrote:
> It sounds like you edited config.xml and then stopped and started
> Geroinmo. Geronimo rewrites config.xml while it's running, so you
> should stop Geronimo, edit the file, and then start Geronimo again.
>
> Thanks,
> Aaron
>
> On 10/6/06, Robert McKinnon <ro...@clubpcc.com> wrote:
>> To Whom It May Concern:
>>
>> I am receiving a Host authorization error when trying to access a
>> session bean remotely.
>>
>> 22:10:50,415 ERROR [EJB] Host 71.207.20.158 is not authorized to access
>> this service.
>> java.lang.SecurityException: Host 71.207.20.158 is not authorized to
>> access this service.
>> at
>> org.activeio.xnet.hba.ServiceAccessController.checkHostsAuthorization(ServiceAccessController.java:78)
>>
>> at
>> org.activeio.xnet.hba.ServiceAccessController.service(ServiceAccessController.java:51)
>>
>> at
>> org.activeio.xnet.ServiceLogger.service(ServiceLogger.java:74)
>> at
>> org.activeio.xnet.ServiceDaemon$SocketListener.run(ServiceDaemon.java:151)
>>
>> at java.lang.Thread.run(Thread.java:595)
>>
>> I found reference on line to edit the config.xml file and add the
>> "allowHosts" attribute to the EJBNetworkService gbean. I did this but
>> after restarting the server, the allowHosts attribute entry is removed.
>> Is there a better way to configure what host are allowed to access EJBs
>> remotely and/or is there a way to edit the config.xml file without it
>> being rewritten.
>>
>> Any help would be appreciated.
>>
>> Thanks
>>
>>
>>
>
>
Re: Remote authorization
Posted by Aaron Mulder <am...@alumni.princeton.edu>.
It sounds like you edited config.xml and then stopped and started
Geroinmo. Geronimo rewrites config.xml while it's running, so you
should stop Geronimo, edit the file, and then start Geronimo again.
Thanks,
Aaron
On 10/6/06, Robert McKinnon <ro...@clubpcc.com> wrote:
> To Whom It May Concern:
>
> I am receiving a Host authorization error when trying to access a
> session bean remotely.
>
> 22:10:50,415 ERROR [EJB] Host 71.207.20.158 is not authorized to access
> this service.
> java.lang.SecurityException: Host 71.207.20.158 is not authorized to
> access this service.
> at
> org.activeio.xnet.hba.ServiceAccessController.checkHostsAuthorization(ServiceAccessController.java:78)
> at
> org.activeio.xnet.hba.ServiceAccessController.service(ServiceAccessController.java:51)
> at org.activeio.xnet.ServiceLogger.service(ServiceLogger.java:74)
> at
> org.activeio.xnet.ServiceDaemon$SocketListener.run(ServiceDaemon.java:151)
> at java.lang.Thread.run(Thread.java:595)
>
> I found reference on line to edit the config.xml file and add the
> "allowHosts" attribute to the EJBNetworkService gbean. I did this but
> after restarting the server, the allowHosts attribute entry is removed.
> Is there a better way to configure what host are allowed to access EJBs
> remotely and/or is there a way to edit the config.xml file without it
> being rewritten.
>
> Any help would be appreciated.
>
> Thanks
>
>
>