geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <djen...@gluecode.com>
Subject Re: trouble starting geronimo from Maven
Date Mon, 25 Oct 2004 17:28:59 GMT
you need to declare the namespace up at the top of maven.xml with a  
line like this:

     xmlns:deploy="geronimo:deploy"

david jencks
On Oct 25, 2004, at 9:56 AM, Bruce Snyder wrote:

> I'm trying to start Geronimo from Maven and not having much success.  
> My goal is to start, deploy the magicGBall, undeploy the magicGBall  
> and stop. I can start and stop from the command line just fine. But it  
> is my understanding that hot deploy can only be done from the Maven  
> plugin currently. This led me to try to start/stop Geronimo from Maven  
> just like it is done in the itest module. Unfortunatley I'm receiving  
> the following error upon starting:
>
> Fatal Error [line 108, row 60]: The prefix "deploy" for element  
> "deploy:startRemoteServer" is not bound.
> org.apache.maven.MavenException: Error parsing plugin script
>         at  
> org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.jav 
> a:165)
>         at  
> org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.jav 
> a:177)
>         at  
> org.apache.maven.plugin.PluginManager.readMavenXml(PluginManager.java: 
> 479)
>         at  
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java: 
> 551)
>         at  
> org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
>         at org.apache.maven.cli.App.doMain(App.java:486)
>         at org.apache.maven.cli.App.main(App.java:1215)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
> va:39)
>         at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
>
> This is coming from the following goal I stuffed into the magicGBall  
> maven descriptor:
>
>         <goal name="demo">
>             <deploy:startRemoteServer
>                 geronimoTarget="${maven.build.dir}/geronimo"
> vmArgs="- 
> Djava.rmi.server.RMIClassLoaderSpi=org.apache.geronimo.rmi.RMIClassLoad 
> erSpiImpl"
>                 configs="org/apache/geronimo/DefaultDatabase"/>
>             <deploy:waitForStarted
> uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
>                 username="system"
>                 password="manager"
>                 id="org/apache/geronimo/DefaultDatabase"/>
>             <echo message="server has started"/>
>             <deploy:distribute
> uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
>                 username="system"
>                 password="manager"
>                 module="${maven.dest.dir}/magicGball.ear"
>                 />
>             <echo message="distributed ejbs"/>
>             <deploy:start
> uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
>                 username="system"
>                 password="manager"
>                 id="org/acme/MagicGBallBean"/>
>         </goal>
>
> What does the 'not bound' error mean and how do I get past it?
>
> Bruce
> -- 
> perl -e 'print  
> unpack("u30","<0G)U8V4\\@4VYY9&5R\\"F9E<G)E=\\$\\!F<FEI+F-O; 
> 0\\`\\`");'
>
> The Castor Project
> http://www.castor.org/
>
> Apache Geronimo
> http://geronimo.apache.org/
>


Mime
View raw message