|
Re: Installation and Using of Virgo Maven Plugin [message #1005271 is a reply to message #1005250] |
Thu, 24 January 2013 18:52 |
Albert Attard Messages: 3 Registered: January 2013 |
Junior Member |
|
|
Hi,
Found the first problem. It was the version. In the examples it shows version 1.0.0 while the virgo-maven-plugin has a version of 1.0.1-SNAPSHOT.
Now I have a new error.
C:\exp\test2>mvn virgo:deploy
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building test2 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- virgo-maven-plugin:1.0.1-SNAPSHOT:deploy (default-cli) @test2 ---
[info] Start deploying the artefact to Eclipse Virgo
[info] Create new service URL: service:jmx:rmi://localhost:9875/jndi/rmi://localhost:9875/jmxrmi
[info] Create a new JMX connector (user = 'admin')
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.983s
[INFO] Finished at: Thu Jan 24 19:49:59 CET 2013
[INFO] Final Memory: 7M/184M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.flybyte.virgo:virgo-maven-plugin:1.0.1-SNAPSHOT:deploy (default-cli) on project test2: 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:
[ERROR] java.net.ConnectException: Connection refused: connect]
[ERROR] at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:357)
[ERROR] at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267)
[ERROR] at net.flybyte.virgo.maven.BaseMojo.getConnection(BaseMojo.java:200)
[ERROR] at net.flybyte.virgo.maven.deployer.Deploy.execute(Deploy.java:29)
[ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
[ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
[ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
[ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
[ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:601)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[ERROR] Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
[ERROR] java.net.ConnectException: Connection refused: connect]
[ERROR] at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:118)
[ERROR] at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:203)
[ERROR] at javax.naming.InitialContext.lookup(InitialContext.java:411)
[ERROR] at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1924)
[ERROR] at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1891)
[ERROR] at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:274)
[ERROR] ... 24 more
[ERROR] Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
[ERROR] java.net.ConnectException: Connection refused: connect
[ERROR] at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
[ERROR] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
[ERROR] at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
[ERROR] at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:340)
[ERROR] at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
[ERROR] at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:114)
[ERROR] ... 29 more
[ERROR] Caused by: java.net.ConnectException: Connection refused: connect
[ERROR] at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
[ERROR] at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
[ERROR] at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
[ERROR] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
[ERROR] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)
[ERROR] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
[ERROR] at java.net.Socket.connect(Socket.java:579)
[ERROR] at java.net.Socket.connect(Socket.java:528)
[ERROR] at java.net.Socket.<init>(Socket.java:425)
[ERROR] at java.net.Socket.<init>(Socket.java:208)
[ERROR] at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
[ERROR] at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:146)
[ERROR] at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
[ERROR] ... 34 more
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] MojoFailureException
[Updated on: Thu, 24 January 2013 18:55] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.04941 seconds