You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Francisco Borges <fr...@x-hive.com> on 2007/07/12 12:06:18 UTC

Geronimo2: "port out of range:-1"

Hello,

I'm now trying to run my sample application on Geronimo2.0, the same 
sample runs fine on JBoss4.2 and Geronimo1.2.

But on Geronimo2.0 I get:

java.io.IOException: Cannot access server: null:-1 due to an unkown 
exception in the OpenEJB client: java.lang.IllegalArgumentException : 
port out of range:-1

All I need to do is try to get hold of the :

    Properties p = System.getProperties();
    InitialContext jndiCntx = new InitialContext(p);

So I assume I am missing something very obvious in the "java." properties 
I'm passing down?

java.naming.factory.initial=org.apache.openejb.client.RemoteInitialContextFactory
java.naming.provider.url = localhost:4201
java.naming.security.principal = system
java.naming.security.credentials = manager

Any ideas?

Cheers,
-- 
Francisco Borges

Re: AW: Geronimo2: "port out of range:-1"

Posted by donH <ju...@gmail.com>.


Jacek Laskowski-4 wrote:
> 
> On 7/12/07, Jacek Laskowski <ja...@laskowski.net.pl> wrote:
> 
>> What? Can't be! I'll rise an issue if it's true. It looks like a url
>> parsing issue. Thanks for reporting!
> 
> Unbelievable. Unless there's a reason for it, I must admit it's a bug.
> Reported as OPENEJB-607 [1]. I'll see what I can do to fix it later
> tonight.
> 
> [1] http://issues.apache.org/jira/browse/OPENEJB-607
> 
> Jacek
> 
> -- 
> Jacek Laskowski
> http://www.JacekLaskowski.pl
> 
> 


donh wrote:
> 
> 
> I have seen this issue on linux and it was related to IPV6 entry for
> localhost in the /etc/hosts file, commenting it out resolved the issue. I
> am not sure if this is related, just sharing.
> 
> 
-- 
View this message in context: http://www.nabble.com/Geronimo2%3A-%22port-out-of-range%3A-1%22-tf4067141s134.html#a11560368
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: AW: Geronimo2: "port out of range:-1"

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On 7/12/07, Jacek Laskowski <ja...@laskowski.net.pl> wrote:

> What? Can't be! I'll rise an issue if it's true. It looks like a url
> parsing issue. Thanks for reporting!

Unbelievable. Unless there's a reason for it, I must admit it's a bug.
Reported as OPENEJB-607 [1]. I'll see what I can do to fix it later
tonight.

[1] http://issues.apache.org/jira/browse/OPENEJB-607

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Re: AW: Geronimo2: "port out of range:-1"

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On 7/12/07, Francisco Borges <fr...@x-hive.com> wrote:

> Indeed changing the provider from localhost to 127.0.0.1
>
> Solved the issue.

What? Can't be! I'll rise an issue if it's true. It looks like a url
parsing issue. Thanks for reporting!

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Re: AW: Geronimo2: "port out of range:-1"

Posted by Francisco Borges <fr...@x-hive.com>.
On Thursday 12 July 2007, Ueberbach, Michael wrote:
> Did you really use "localhost" with success calling geronimo 1.2 ?
> To my experience "localhost" doesn't work. Maybe 127.0.0.1 is better.

Indeed changing the provider from localhost to 127.0.0.1

Solved the issue.

Thanks a lot!

Cheers!
-- 
Francisco Borges

AW: Geronimo2: "port out of range:-1"

Posted by "Ueberbach, Michael" <mi...@dbh.de>.
Did you really use "localhost" with success calling geronimo 1.2 ?
To my experience "localhost" doesn't work. Maybe 127.0.0.1 is better.

Michael
  

-----Ursprüngliche Nachricht-----
Von: eljotpl@gmail.com [mailto:eljotpl@gmail.com] Im Auftrag von Jacek Laskowski
Gesendet: Donnerstag, 12. Juli 2007 12:14
An: user@geronimo.apache.org
Betreff: Re: Geronimo2: "port out of range:-1"

On 7/12/07, Francisco Borges <fr...@x-hive.com> wrote:

> I'm now trying to run my sample application on Geronimo2.0, the same 
> sample runs fine on JBoss4.2 and Geronimo1.2.
>
> But on Geronimo2.0 I get:
>
> java.io.IOException: Cannot access server: null:-1 due to an unkown 
> exception in the OpenEJB client: java.lang.IllegalArgumentException :
> port out of range:-1
>
> All I need to do is try to get hold of the :
>
>     Properties p = System.getProperties();
>     InitialContext jndiCntx = new InitialContext(p);
>
> So I assume I am missing something very obvious in the "java." 
> properties I'm passing down?
>
> java.naming.factory.initial=org.apache.openejb.client.RemoteInitialCon
> textFactory java.naming.provider.url = localhost:4201 
> java.naming.security.principal = system 
> java.naming.security.credentials = manager

Hi,

How are the properties passed on to the client? Can you show the command line you use to run the client?

Jacek

--
Jacek Laskowski
http://www.JacekLaskowski.pl

Re: Geronimo2: "port out of range:-1"

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On 7/12/07, Francisco Borges <fr...@x-hive.com> wrote:

> I'm now trying to run my sample application on Geronimo2.0, the same
> sample runs fine on JBoss4.2 and Geronimo1.2.
>
> But on Geronimo2.0 I get:
>
> java.io.IOException: Cannot access server: null:-1 due to an unkown
> exception in the OpenEJB client: java.lang.IllegalArgumentException :
> port out of range:-1
>
> All I need to do is try to get hold of the :
>
>     Properties p = System.getProperties();
>     InitialContext jndiCntx = new InitialContext(p);
>
> So I assume I am missing something very obvious in the "java." properties
> I'm passing down?
>
> java.naming.factory.initial=org.apache.openejb.client.RemoteInitialContextFactory
> java.naming.provider.url = localhost:4201
> java.naming.security.principal = system
> java.naming.security.credentials = manager

Hi,

How are the properties passed on to the client? Can you show the
command line you use to run the client?

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl