[prev in list] [next in list] [prev in thread] [next in thread] 

List:       geronimo-user
Subject:    Re: Geronimo 3.0-beta-1 Maven Plugin
From:       Behrooz Nobakht <nobeh5 () gmail ! com>
Date:       2011-12-22 15:40:06
Message-ID: CAEEKBgUY0AH9ccYTW+uOajG--sXgPkXvUWXsrq0mRf08xiR=wQ () mail ! gmail ! com
[Download RAW message or body]

Hi,

Thanks Forrest for the instructions. It helped me to get it started. I was
wondering if there is a goal to do a geronimo:deploy before doing the
geronimo:start.
Now, I start the Geronimo server using geronimo:start and then using
another shell I deploy a module using geronimo:deploy.
So, does what I'm expecting make sense to have in the plugin?

Thanks,
Behrooz




On Thu, Dec 22, 2011 at 2:20 PM, Forrest Xia <forrestxm@gmail.com> wrote:

> forget to attach the pom
> 
> 
> On Thu, Dec 22, 2011 at 8:19 AM, Forrest Xia <forrestxm@gmail.com> wrote:
> 
> > Here is an instruction for your reference:
> > 1. put the attached pom in a folder
> > 2. then go to that folder with a terminal or dos window open, execute
> > this command
> > mvn -DgeronimoHome=path2geronimoHome
> > org.apache.geronimo.buildsupport:geronimo-maven-plugin:3.0-beta-1:start-server
> > 
> > 
> > On Thu, Dec 22, 2011 at 7:53 PM, Behrooz Nobakht <nobeh5@gmail.com>wrote:
> > 
> > > Hello,
> > > 
> > > I've been trying to use the Geronimo Maven Plugin:
> > > 
> > > <plugin>
> > > <groupId>org.apache.geronimo.buildsupport</groupId>
> > > <artifactId>geronimo-maven-plugin</artifactId>
> > > <configuration>
> > > 
> > > <geronimoHome>/my/path/to/geronimo-jetty8-javaee6-3.0-beta-1</geronimoHome>
> > > <logOutput>true</logOutput>
> > > 
> > > <assemblyArchive>${project.build.directory}/${project.build.finalName}-geronimo.zip</assemblyArchive>
> > >  </configuration>
> > > </plugin>
> > > 
> > > When I start the Geronimo server before running the goal
> > > "geronimo:start", I get the following output:
> > > 
> > > [INFO] --- geronimo-maven-plugin:3.0-M1:start (default-cli) @
> > > deployment-control ---
> > > [org.codehaus.mojo.pluginsupport.logging.Logging] : Initialized
> > > [INFO] Using pre-installed assembly:
> > > /fh/osgi/geronimo-jetty8-javaee6-3.0-beta-1
> > > [INFO] Installation type is pre-existing; skipping installation
> > > [INFO] Starting Geronimo server...
> > > [INFO] Redirecting output to:
> > > /fh/workspaces/controller/controller/target/geronimo-logs/org.apache.geronimo.mavenplugins.geronimo.server.StartMojo.log
> > >  [INFO] Waiting for Geronimo server...
> > > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Initialized
> > > with URL:
> > > service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector,
> > > environment: {jmx.remote.credentials=[Ljava.lang.String;@7947016c}
> > > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connecting to:
> > > service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector
> > > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connected
> > > [INFO] Geronimo server started in 0:00:00.109
> > > [INFO] Waiting for Geronimo server to shutdown...
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] BUILD SUCCESS
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] Total time: 4.794s
> > > [INFO] Finished at: Thu Dec 22 12:17:23 CET 2011
> > > [INFO] Final Memory: 14M/212M
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > 
> > > Which actually seems to do nothing! And, I also see nothing as logs on
> > > the server log output. And, when I *do not* start the server before running
> > > the Maven goal, the log will be like:
> > > 
> > > [INFO] --- geronimo-maven-plugin:3.0-M1:start (default-cli) @
> > > deployment-control ---
> > > [org.codehaus.mojo.pluginsupport.logging.Logging] : Initialized
> > > [INFO] Using pre-installed assembly:
> > > /fh/osgi/geronimo-jetty8-javaee6-3.0-beta-1
> > > [INFO] Installation type is pre-existing; skipping installation
> > > [INFO] Starting Geronimo server...
> > > [INFO] Redirecting output to:
> > > /fh/workspaces/controller/controller/target/geronimo-logs/org.apache.geronimo.mavenplugins.geronimo.server.StartMojo.log
> > >  [INFO] Waiting for Geronimo server...
> > > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Initialized
> > > with URL:
> > > service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector,
> > > environment: {jmx.remote.credentials=[Ljava.lang.String;@3370ec9d}
> > > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connecting to:
> > > service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector
> > > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connection
> > > failure; ignoring: java.io.IOException: Failed to retrieve RMIServer stub:
> > > javax.naming.ServiceUnavailableException [Root exception is
> > > java.rmi.ConnectException: Connection refused to host: localhost; nested
> > > exception is:
> > > java.net.ConnectException: Connection refused]
> > > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connecting to:
> > > service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector
> > > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connected
> > > [INFO] Geronimo server started in 0:00:15.123
> > > [INFO] Waiting for Geronimo server to shutdown...
> > > .......................................................................................................................................
> > >  AFTER A LONG TIME
> > > 
> > > Nothing happens!
> > > 
> > > Is there anything reference documentation for this plugin? What am I
> > > doing wrong?
> > > Maybe it is good to mention that the assembly required is properly
> > > prepared for the plugin.
> > > 
> > > Thanks in advance,
> > > Behrooz
> > > 
> > 
> > 
> > 
> > --
> > Thanks!
> > 
> > Regards, Forrest
> > 
> > 
> 
> 
> --
> Thanks!
> 
> Regards, Forrest
> 
> 


[Attachment #3 (text/html)]

Hi,<br><br>Thanks Forrest for the instructions. It helped me to get it started. I was \
wondering if there is a goal to do a geronimo:deploy before doing the \
geronimo:start.<br>Now, I start the Geronimo server using geronimo:start and then \
using another shell I deploy a module using geronimo:deploy.<br> So, does what \
I&#39;m expecting make sense to have in the \
plugin?<br><br>Thanks,<br>Behrooz<br><br><br><br><br><div class="gmail_quote">On Thu, \
Dec 22, 2011 at 2:20 PM, Forrest Xia <span dir="ltr">&lt;<a \
href="mailto:forrestxm@gmail.com">forrestxm@gmail.com</a>&gt;</span> wrote:<br> \
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">forget to attach the pom<div class="HOEnZb"><div \
class="h5"><br><br><div class="gmail_quote">On Thu, Dec 22, 2011 at 8:19 AM, Forrest \
Xia <span dir="ltr">&lt;<a href="mailto:forrestxm@gmail.com" \
target="_blank">forrestxm@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"> Here is an instruction for your reference:<br>1. \
put the attached pom in a folder<br>2. then go to that folder with a terminal or dos \
window open, execute this command<br>mvn -DgeronimoHome=path2geronimoHome \
org.apache.geronimo.buildsupport:geronimo-maven-plugin:3.0-beta-1:start-server<div>

<div><br>
<br><div class="gmail_quote">On Thu, Dec 22, 2011 at 7:53 PM, Behrooz Nobakht <span \
dir="ltr">&lt;<a href="mailto:nobeh5@gmail.com" \
target="_blank">nobeh5@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">Hello,<br><br>I&#39;ve been trying to use the \
Geronimo Maven Plugin:<br><br>            &lt;plugin&gt;<br>



                &lt;groupId&gt;org.apache.geronimo.buildsupport&lt;/groupId&gt;<br>   \
&lt;artifactId&gt;geronimo-maven-plugin&lt;/artifactId&gt;<br>  \
&lt;configuration&gt;<br>                    \
&lt;geronimoHome&gt;/my/path/to/geronimo-jetty8-javaee6-3.0-beta-1&lt;/geronimoHome&gt;<br> \
&lt;logOutput&gt;true&lt;/logOutput&gt;<br>                    \
&lt;assemblyArchive&gt;${project.build.directory}/${project.build.finalName}-geronimo.zip&lt;/assemblyArchive&gt;<br>





                &lt;/configuration&gt;<br>            &lt;/plugin&gt;<br><br>When I \
start the Geronimo server before running the goal &quot;geronimo:start&quot;, I get \
the following output:<br><br>[INFO] --- geronimo-maven-plugin:3.0-M1:start \
(default-cli) @ deployment-control ---<br>




[org.codehaus.mojo.pluginsupport.logging.Logging] : Initialized<br>[INFO] Using \
pre-installed assembly: /fh/osgi/geronimo-jetty8-javaee6-3.0-beta-1<br>[INFO] \
Installation type is pre-existing; skipping installation<br>[INFO] Starting Geronimo \
server...<br>




[INFO] Redirecting output to: \
/fh/workspaces/controller/controller/target/geronimo-logs/org.apache.geronimo.mavenplugins.geronimo.server.StartMojo.log<br>[INFO] \
Waiting for Geronimo \
server...<br>[org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Initialized \
with URL: service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector, \
environment: {jmx.remote.credentials=[Ljava.lang.String;@7947016c}<br>




[org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connecting to: \
service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector<br>[org.apache.geronimo.mavenplugins.geronimo.ServerProxy] \
: Connected<br>[INFO] Geronimo server started in 0:00:00.109<br>




[INFO] Waiting for Geronimo server to shutdown...<br>[INFO] \
------------------------------------------------------------------------<br>[INFO] \
BUILD SUCCESS<br>[INFO] \
------------------------------------------------------------------------<br>




[INFO] Total time: 4.794s<br>[INFO] Finished at: Thu Dec 22 12:17:23 CET \
2011<br>[INFO] Final Memory: 14M/212M<br>[INFO] \
------------------------------------------------------------------------<br><br>Which \
actually seems to do nothing! And, I also see nothing as logs on the server log \
output. And, when I *do not* start the server before running the Maven goal, the log \
will be like:<br>




<br>[INFO] --- geronimo-maven-plugin:3.0-M1:start (default-cli) @ deployment-control \
---<br>[org.codehaus.mojo.pluginsupport.logging.Logging] : Initialized<br>[INFO] \
Using pre-installed assembly: /fh/osgi/geronimo-jetty8-javaee6-3.0-beta-1<br>




[INFO] Installation type is pre-existing; skipping installation<br>[INFO] Starting \
Geronimo server...<br>[INFO] Redirecting output to: \
/fh/workspaces/controller/controller/target/geronimo-logs/org.apache.geronimo.mavenplugins.geronimo.server.StartMojo.log<br>





[INFO] Waiting for Geronimo \
server...<br>[org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Initialized \
with URL: service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector, \
environment: {jmx.remote.credentials=[Ljava.lang.String;@3370ec9d}<br>




[org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connecting to: \
service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector<br>[org.apache.geronimo.mavenplugins.geronimo.ServerProxy] \
: Connection failure; ignoring: java.io.IOException: Failed to retrieve RMIServer \
stub: javax.naming.ServiceUnavailableException [Root exception is \
java.rmi.ConnectException: Connection refused to host: localhost; nested exception \
is:<br>




    java.net.ConnectException: Connection \
refused]<br>[org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connecting to: \
service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector<br>[org.apache.geronimo.mavenplugins.geronimo.ServerProxy] \
: Connected<br>




[INFO] Geronimo server started in 0:00:15.123<br>[INFO] Waiting for Geronimo server \
to shutdown...<br>....................................................................................................................................... \
AFTER A LONG TIME<br>




<br>Nothing happens!<br><br>Is there anything reference documentation for this \
plugin? What am I doing wrong?<br>Maybe it is good to mention that the assembly \
required is properly prepared for the plugin.<br><br>Thanks in advance,<br>




Behrooz<br>
</blockquote></div><br><br clear="all"><br></div></div><span><font color="#888888">-- \
<br>Thanks!<br><br>Regards, Forrest<br><br> </font></span></blockquote></div><br><br \
clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- \
<br>Thanks!<br><br>Regards, Forrest<br><br> </font></span></blockquote></div><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic