I'm too am having problems deploying it onto Jonas.
I am running the following mvn command: 
mvn -e install jbi:projectDeploy -DjndiPath=jrmpconnector_jonas
-Dhost=localhost

I am getting the following errors.  It looks like it is still searching for
jmxrmi.
---> Caused by: java.io.IOException: Failed to retrieve RMIServer stub:
javax.naming.NameNotFoundException: jmxrmi

Has anyone done a mvn deploy onto Jonas before?

Thanks for the help!
Khanh


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to deploy
project, Error accessing
ServiceMix administration
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecut
or.java:559)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecy
cleExecutor.java:488)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecuto
r.java:458)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(Defaul
tLifecycleExecutor.java:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycl
eExecutor.java:273)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.ja
va:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to deploy
project, Error accessi
ng ServiceMix administration
        at
org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo.deployProject(JbiProjectD
eployerMojo.java:162)
        at
org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo.execute(JbiProjectDeploye
rMojo.java:90)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecut
or.java:534)
        ... 16 more
Caused by: Error accessing ServiceMix administration
        at
org.apache.servicemix.jbi.management.task.JbiTask.execute(JbiTask.java:257)
        at
org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo.isDeployed(JbiProjectDepl
oyerMojo.java:210)
        at
org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo.deployProject(JbiProjectD
eployerMojo.java:143)
        ... 19 more
Caused by: java.io.IOException: Failed to retrieve RMIServer stub:
javax.naming.NameNotFoundExcept
ion: jmxrmi
        at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317)
        at
javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
        at
org.apache.servicemix.jbi.management.task.JbiTask.getJMXConnector(JbiTask.java:77)
        at
org.apache.servicemix.jbi.management.task.JbiTask.connect(JbiTask.java:85)
        at
org.apache.servicemix.jbi.management.task.JbiTask.execute(JbiTask.java:252)
        ... 21 more
Caused by: javax.naming.NameNotFoundException: jmxrmi
        at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:95)
        at
com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at
javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1807)
        at
javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1777)
        at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:259)
        ... 25 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 32 seconds
[INFO] Finished at: Mon Apr 23 16:59:32 PDT 2007
[INFO] Final Memory: 23M/44M



Shanna7463 wrote:
> 
> Where am I suppose to set these parameters? I tried typing mvn
> jbi:projectDeploy -DjndiPath=/jr
> mpconnector_jonas, but it didn't seem to pick up the parameter.  Do I need
> to create a jmx.xml file within my jbi? or can I add the parameters in the
> pom.xml file?
> 
> Thanks,
> Shanna
> 
> 
> gnodet wrote:
>> 
>> Did you deploy the apache-servicemix-web application ?
>> It should reuse the JMX server started by Jonas, so you would
>> have to change the jmx parameters of the jbi:projectDeploy
>> to match the parameters of Jonas (host, port, user, passwd), etc..
>> See
>> http://incubator.apache.org/servicemix/dist/servicemix-3.1-incubating/site/tooling/jbi-maven-plugin/projectDeploy-mojo.html
>> for all the parameters.
>> 
>> On 4/23/07, Shanna7463 <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>> I noticed I am also getting an error saying:
>>>
>>> Caused by: javax.naming.NameNotFoundException: jmxrmi
>>>
>>> Is there some kinda of default setting I need to change? Jonas is
>>> running
>>> on
>>> port 9000.
>>>
>>> Thanks,
>>> Shanna
>>>
>>>
>>> Shanna7463 wrote:
>>> >
>>> > I was wondering if it is possible to deploy the wsdl-first jbi to
>>> Jonas
>>> > from command line.  I want to be able to type "jbi:projectDeploy" from
>>> the
>>> > wsdl-first directory and have it deploy on to Jonas (which has the
>>> > servicemix-webapp running on it).  Is this possible?
>>> >
>>> > Currently when I do this I get:
>>> >
>>> > "Unable to deploy project, Error accessing ServiceMix administration"
>>> >
>>> > And I believe this is because it thinks ServiceMix isn't running,
>>> although
>>> > it is, just not as a standalone.
>>> >
>>> > Thanks for any suggestions!!!
>>> >
>>> > -- Shanna --
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/projectDeploy-and-Jonas-tf3608831s12049.html#a10145697
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>>
>> 
>> 
>> -- 
>> Cheers,
>> Guillaume Nodet
>> ------------------------
>> Principal Engineer, IONA
>> Blog: http://gnodet.blogspot.com/
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/projectDeploy-and-Jonas-tf3608831s12049.html#a10151130
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to