geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Behrooz Nobakht <nob...@gmail.com>
Subject Re: Geronimo 3.0-beta-1 Maven Plugin
Date Thu, 22 Dec 2011 15:40:06 GMT
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
>
>

Mime
View raw message