You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Mark Aufdencamp <ma...@aufdencamp.com> on 2007/10/01 20:31:31 UTC

Geronimo 2.0.1 on Ubuntu

Hi All,

I attended the Ohio Linux Fest (www.ohiolinuxfest.org) this weekend and
decided to get adventurous by installing Geronimo 2 on my clean Ubuntu
workstation.

I was able to install the Sun 1.5 JRE and JDK successfuly and was quite
impressed with the package managements ability to give me java -version
and javac -version responses on the first try.  However, the package
manager did not set the JAVA_HOME environment variable in the bashrc. 
Geronimo's scripts require the environment variable.  Fortunately, I'm
familiar with linux and java environment variables and had an "export
JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/" (update-java-alternatives -l)
without any need to google.

I downloaded and extracted both Eclipse-Europa-JEE5 and Geronimo-2.0.1. 
Eclipse started with a simple double click and I was open for business,
minus an application server of course.  Geronimo decided that it
wouldn't be as easy.

I attempted to start Geronimo a couple times and then dug into the log
files.  I discovered the j2ee-security server GBean did not want to
start with a "Cannot bind to URL [rmi://0.0.0.0:1099/JMXconnector]:"
error message logged.  This also identified the /etc/hostname as the
binding attempt name (UbuntuBox). I reviewed my network hosts
configuration file and discovered that I did not have a host name
without the domain defined on the loopback address.  After chasing a few
things in Ubuntu's Network configuration, I finally named the host
UbuntuBox.domain.tld, which now appears in the /etc/hostname file.  I
was then able to successfully start the server.   For the record,
Ubuntu's Network utility would not place a single host entry without the
domain qualifier on it in the /etc/hosts file.

So now I have a server that was able to start with a valid name up and
running.  I'm able to log into the console manager, etc..  However, the
./geronimo.sh stop command will not shutdown the server.  Any ideas from
anyone else running on Ubuntu?

BTW,  I liked what I saw so far on the 2.0 console!

TIA,

Mark Aufdencamp
Mark@Aufdencamp.com


Re: Geronimo 2.0.1 on Ubuntu

Posted by Jason Warner <ja...@gmail.com>.
Mark,

I just pulled down Geronimo 2.0.1(Jetty, JEE5) and had no issues starting
and stopping using the ./geronimo.sh command.  What behavior do you see when
you try to stop the server?

I know that I didn't have to make any changes to my hosts file to get the
server to work correctly, though I'm not in production so I left all the
settings as default.  Also, I had some issues with java when I started and
recreated the symlink for java on the system to point directly to the jre
that I wanted to use.  I'm not sure if either of those differences could
lead to a solution or a cause.

Jason Warner

On 10/1/07, Jason Warner <ja...@gmail.com> wrote:
>
> Hi Mark,
>
> That's an odd error.  I'm running Ubuntu as we speak and mine works fine.
> I've been running a build of the latest trunk, though.  I'm pulling the
> 2.0.1 release down to try it with that and I'll let you know the results.
>
> Glad you like the changes!
>
> Jason Warner
>
> On 10/1/07, Mark Aufdencamp <ma...@aufdencamp.com> wrote:
> >
> > Hi All,
> >
> > I attended the Ohio Linux Fest ( www.ohiolinuxfest.org) this weekend and
> > decided to get adventurous by installing Geronimo 2 on my clean Ubuntu
> > workstation.
> >
> > I was able to install the Sun 1.5 JRE and JDK successfuly and was quite
> > impressed with the package managements ability to give me java -version
> > and javac -version responses on the first try.  However, the package
> > manager did not set the JAVA_HOME environment variable in the bashrc.
> > Geronimo's scripts require the environment variable.  Fortunately, I'm
> > familiar with linux and java environment variables and had an "export
> > JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/" (update-java-alternatives -l)
> > without any need to google.
> >
> > I downloaded and extracted both Eclipse-Europa-JEE5 and Geronimo-2.0.1.
> > Eclipse started with a simple double click and I was open for business,
> > minus an application server of course.  Geronimo decided that it
> > wouldn't be as easy.
> >
> > I attempted to start Geronimo a couple times and then dug into the log
> > files.  I discovered the j2ee-security server GBean did not want to
> > start with a "Cannot bind to URL [rmi://0.0.0.0:1099/JMXconnector]:"
> > error message logged.  This also identified the /etc/hostname as the
> > binding attempt name (UbuntuBox). I reviewed my network hosts
> > configuration file and discovered that I did not have a host name
> > without the domain defined on the loopback address.  After chasing a few
> > things in Ubuntu's Network configuration, I finally named the host
> > UbuntuBox.domain.tld, which now appears in the /etc/hostname file.  I
> > was then able to successfully start the server.   For the record,
> > Ubuntu's Network utility would not place a single host entry without the
> >
> > domain qualifier on it in the /etc/hosts file.
> >
> > So now I have a server that was able to start with a valid name up and
> > running.  I'm able to log into the console manager, etc..  However, the
> > ./geronimo.sh stop command will not shutdown the server.  Any ideas from
> >
> > anyone else running on Ubuntu?
> >
> > BTW,  I liked what I saw so far on the 2.0 console!
> >
> > TIA,
> >
> > Mark Aufdencamp
> > Mark@Aufdencamp.com
> >
> >
>

Re: Geronimo 2.0.1 on Ubuntu

Posted by Jason Warner <ja...@gmail.com>.
Hi Mark,

That's an odd error.  I'm running Ubuntu as we speak and mine works fine.
I've been running a build of the latest trunk, though.  I'm pulling the
2.0.1 release down to try it with that and I'll let you know the results.

Glad you like the changes!

Jason Warner

On 10/1/07, Mark Aufdencamp <ma...@aufdencamp.com> wrote:
>
> Hi All,
>
> I attended the Ohio Linux Fest (www.ohiolinuxfest.org) this weekend and
> decided to get adventurous by installing Geronimo 2 on my clean Ubuntu
> workstation.
>
> I was able to install the Sun 1.5 JRE and JDK successfuly and was quite
> impressed with the package managements ability to give me java -version
> and javac -version responses on the first try.  However, the package
> manager did not set the JAVA_HOME environment variable in the bashrc.
> Geronimo's scripts require the environment variable.  Fortunately, I'm
> familiar with linux and java environment variables and had an "export
> JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/" (update-java-alternatives -l)
> without any need to google.
>
> I downloaded and extracted both Eclipse-Europa-JEE5 and Geronimo-2.0.1.
> Eclipse started with a simple double click and I was open for business,
> minus an application server of course.  Geronimo decided that it
> wouldn't be as easy.
>
> I attempted to start Geronimo a couple times and then dug into the log
> files.  I discovered the j2ee-security server GBean did not want to
> start with a "Cannot bind to URL [rmi://0.0.0.0:1099/JMXconnector]:"
> error message logged.  This also identified the /etc/hostname as the
> binding attempt name (UbuntuBox). I reviewed my network hosts
> configuration file and discovered that I did not have a host name
> without the domain defined on the loopback address.  After chasing a few
> things in Ubuntu's Network configuration, I finally named the host
> UbuntuBox.domain.tld, which now appears in the /etc/hostname file.  I
> was then able to successfully start the server.   For the record,
> Ubuntu's Network utility would not place a single host entry without the
> domain qualifier on it in the /etc/hosts file.
>
> So now I have a server that was able to start with a valid name up and
> running.  I'm able to log into the console manager, etc..  However, the
> ./geronimo.sh stop command will not shutdown the server.  Any ideas from
> anyone else running on Ubuntu?
>
> BTW,  I liked what I saw so far on the 2.0 console!
>
> TIA,
>
> Mark Aufdencamp
> Mark@Aufdencamp.com
>
>

Re: Geronimo 2.0.1 on Ubuntu

Posted by Jason Warner <ja...@gmail.com>.
And by config.xml, I of course mean your config-substitutions.properties.
;)

On 10/1/07, Jason Warner <ja...@gmail.com> wrote:
>
> Mark,
>
> One last thing.  Erik and I have been exchanging thoughts outside of this
> email and the general consensus is that it might be related to your host
> changes.  Could you paste the pertinent part of your config.xml here
> (Connectors for either Jetty or Tomcat)?
>
> Thanks!
>
> Jason Warner
>
> On 10/1/07, Erik B. Craig <ginemesis@gmail.com > wrote:
> >
> > Mark,
> >
> > Curious...
> >
> > What is your output when you attempt to stop the server with
> > /bin/geronimo.sh stop?
> > Is it something like this?
> > -----------------------
> > Locating server on port 1099...
> > Could not communicate with the server.  The server may not be running or
> > the port number may be incorrect.
> > -----------------------
> >
> >
> > On 10/1/07, Mark Aufdencamp < mark@aufdencamp.com> wrote:
> > >
> > > Hi All,
> > >
> > > I attended the Ohio Linux Fest (www.ohiolinuxfest.org) this weekend
> > > and
> > > decided to get adventurous by installing Geronimo 2 on my clean Ubuntu
> > >
> > > workstation.
> > >
> > > I was able to install the Sun 1.5 JRE and JDK successfuly and was
> > > quite
> > > impressed with the package managements ability to give me java
> > > -version
> > > and javac -version responses on the first try.  However, the package
> > > manager did not set the JAVA_HOME environment variable in the bashrc.
> > > Geronimo's scripts require the environment variable.  Fortunately, I'm
> > > familiar with linux and java environment variables and had an "export
> > > JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/" (update-java-alternatives -l)
> > > without any need to google.
> > >
> > > I downloaded and extracted both Eclipse-Europa-JEE5 and Geronimo-2.0.1
> > > .
> > > Eclipse started with a simple double click and I was open for
> > > business,
> > > minus an application server of course.  Geronimo decided that it
> > > wouldn't be as easy.
> > >
> > > I attempted to start Geronimo a couple times and then dug into the log
> > > files.  I discovered the j2ee-security server GBean did not want to
> > > start with a "Cannot bind to URL [rmi://0.0.0.0:1099/JMXconnector]:"
> > > error message logged.  This also identified the /etc/hostname as the
> > > binding attempt name (UbuntuBox). I reviewed my network hosts
> > > configuration file and discovered that I did not have a host name
> > > without the domain defined on the loopback address.  After chasing a
> > > few
> > > things in Ubuntu's Network configuration, I finally named the host
> > > UbuntuBox.domain.tld , which now appears in the /etc/hostname file.  I
> > > was then able to successfully start the server.   For the record,
> > > Ubuntu's Network utility would not place a single host entry without
> > > the
> > > domain qualifier on it in the /etc/hosts file.
> > >
> > > So now I have a server that was able to start with a valid name up and
> > > running.  I'm able to log into the console manager, etc..  However,
> > > the
> > > ./geronimo.sh stop command will not shutdown the server.  Any ideas
> > > from
> > > anyone else running on Ubuntu?
> > >
> > > BTW,  I liked what I saw so far on the 2.0 console!
> > >
> > > TIA,
> > >
> > > Mark Aufdencamp
> > > Mark@Aufdencamp.com
> > >
> > >
> >
> >
> > --
> > Erik B. Craig
>
>
>

Re: Geronimo 2.0.1 on Ubuntu

Posted by Jason Warner <ja...@gmail.com>.
Mark,

One last thing.  Erik and I have been exchanging thoughts outside of this
email and the general consensus is that it might be related to your host
changes.  Could you paste the pertinent part of your config.xml here
(Connectors for either Jetty or Tomcat)?

Thanks!

Jason Warner

On 10/1/07, Erik B. Craig <gi...@gmail.com> wrote:
>
> Mark,
>
> Curious...
>
> What is your output when you attempt to stop the server with
> /bin/geronimo.sh stop?
> Is it something like this?
> -----------------------
> Locating server on port 1099...
> Could not communicate with the server.  The server may not be running or
> the port number may be incorrect.
> -----------------------
>
>
> On 10/1/07, Mark Aufdencamp <ma...@aufdencamp.com> wrote:
> >
> > Hi All,
> >
> > I attended the Ohio Linux Fest (www.ohiolinuxfest.org) this weekend and
> > decided to get adventurous by installing Geronimo 2 on my clean Ubuntu
> > workstation.
> >
> > I was able to install the Sun 1.5 JRE and JDK successfuly and was quite
> > impressed with the package managements ability to give me java -version
> > and javac -version responses on the first try.  However, the package
> > manager did not set the JAVA_HOME environment variable in the bashrc.
> > Geronimo's scripts require the environment variable.  Fortunately, I'm
> > familiar with linux and java environment variables and had an "export
> > JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/" (update-java-alternatives -l)
> > without any need to google.
> >
> > I downloaded and extracted both Eclipse-Europa-JEE5 and Geronimo-2.0.1.
> > Eclipse started with a simple double click and I was open for business,
> > minus an application server of course.  Geronimo decided that it
> > wouldn't be as easy.
> >
> > I attempted to start Geronimo a couple times and then dug into the log
> > files.  I discovered the j2ee-security server GBean did not want to
> > start with a "Cannot bind to URL [rmi://0.0.0.0:1099/JMXconnector]:"
> > error message logged.  This also identified the /etc/hostname as the
> > binding attempt name (UbuntuBox). I reviewed my network hosts
> > configuration file and discovered that I did not have a host name
> > without the domain defined on the loopback address.  After chasing a few
> > things in Ubuntu's Network configuration, I finally named the host
> > UbuntuBox.domain.tld , which now appears in the /etc/hostname file.  I
> > was then able to successfully start the server.   For the record,
> > Ubuntu's Network utility would not place a single host entry without the
> > domain qualifier on it in the /etc/hosts file.
> >
> > So now I have a server that was able to start with a valid name up and
> > running.  I'm able to log into the console manager, etc..  However, the
> > ./geronimo.sh stop command will not shutdown the server.  Any ideas from
> >
> > anyone else running on Ubuntu?
> >
> > BTW,  I liked what I saw so far on the 2.0 console!
> >
> > TIA,
> >
> > Mark Aufdencamp
> > Mark@Aufdencamp.com
> >
> >
>
>
> --
> Erik B. Craig

Re: Geronimo 2.0.1 on Ubuntu

Posted by "Erik B. Craig" <gi...@gmail.com>.
Mark,

Curious...

What is your output when you attempt to stop the server with
/bin/geronimo.sh stop?
Is it something like this?
-----------------------
Locating server on port 1099...
Could not communicate with the server.  The server may not be running or the
port number may be incorrect.
-----------------------


On 10/1/07, Mark Aufdencamp <ma...@aufdencamp.com> wrote:
>
> Hi All,
>
> I attended the Ohio Linux Fest (www.ohiolinuxfest.org) this weekend and
> decided to get adventurous by installing Geronimo 2 on my clean Ubuntu
> workstation.
>
> I was able to install the Sun 1.5 JRE and JDK successfuly and was quite
> impressed with the package managements ability to give me java -version
> and javac -version responses on the first try.  However, the package
> manager did not set the JAVA_HOME environment variable in the bashrc.
> Geronimo's scripts require the environment variable.  Fortunately, I'm
> familiar with linux and java environment variables and had an "export
> JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/" (update-java-alternatives -l)
> without any need to google.
>
> I downloaded and extracted both Eclipse-Europa-JEE5 and Geronimo-2.0.1.
> Eclipse started with a simple double click and I was open for business,
> minus an application server of course.  Geronimo decided that it
> wouldn't be as easy.
>
> I attempted to start Geronimo a couple times and then dug into the log
> files.  I discovered the j2ee-security server GBean did not want to
> start with a "Cannot bind to URL [rmi://0.0.0.0:1099/JMXconnector]:"
> error message logged.  This also identified the /etc/hostname as the
> binding attempt name (UbuntuBox). I reviewed my network hosts
> configuration file and discovered that I did not have a host name
> without the domain defined on the loopback address.  After chasing a few
> things in Ubuntu's Network configuration, I finally named the host
> UbuntuBox.domain.tld, which now appears in the /etc/hostname file.  I
> was then able to successfully start the server.   For the record,
> Ubuntu's Network utility would not place a single host entry without the
> domain qualifier on it in the /etc/hosts file.
>
> So now I have a server that was able to start with a valid name up and
> running.  I'm able to log into the console manager, etc..  However, the
> ./geronimo.sh stop command will not shutdown the server.  Any ideas from
> anyone else running on Ubuntu?
>
> BTW,  I liked what I saw so far on the 2.0 console!
>
> TIA,
>
> Mark Aufdencamp
> Mark@Aufdencamp.com
>
>


-- 
Erik B. Craig