Ludovic Champenois schrieb:
> heapifyman wrote:
>> ...
>
> fcs means final official build.
>> As asked before: is there information available somewhere as to how to
>> configure eclipse to debug the plugin?
>>
>> Greetings
>>
> 1/ get the source code of the plugin via glassfishplugins.dev.java.net
> (cvs)
> 2/ Import the plugin source code (Menu "import -Import----Existing
> Project into Workspace..."in Eclipse)
> 3/ Right click on the plugin.xml of the plugin and select menu: Debug
> as---Eclipse Application
> This will launch a new Eclipse IDE in debug more that can be debugged
> from the first Eclipse process.
Okay, thanks. I tried that.
And I could sometimes start the server in the new Eclipse instance.
But not always. It seems to depend on the time I wait in some
breakpoints. But I couldn't figure out at which one.
Also, the problem is not limited to v3; at least for me. A Glassfish
V2UR2 also cannot be started from within Eclipse (same error message)
although it starts fine from the commandline and from within Netbeans.
the "jmxc = JMXConnectorFactory.connect(url, env);" in
getV2ServerStatus() is failing as it seems.
(see attached log file)
Best regards
>
> Ludo
>
>>
>>> Ludo
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-13 13:00:29.552
!MESSAGE GlassFish: in SUN SunAppServerLaunch launch
!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-13 13:00:29.568
!MESSAGE GlassFish: in SUN SunAppServerLaunch Forcing a STOP!!!!
!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-13 13:00:29.568
!MESSAGE GlassFish: service:jmx:rmi:///jndi/rmi://localhost:8686/jmxrmi
!ENTRY com.sun.enterprise.jst.server.sunappsrv 4 1 2008-11-13 13:00:30.771
!MESSAGE GlassFish: V2 not ready yet:
!STACK 0
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: connect]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
at com.sun.enterprise.jst.server.sunappsrv.SunAppServer.getV2ServerStatus(SunAppServer.java:401)
at com.sun.enterprise.jst.server.sunappsrv.SunAppServerLaunch.launch(SunAppServerLaunch.java:104)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:764)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:614)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:607)
at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:2771)
at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:2721)
at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:306)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused: connect]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
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:1817)
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1787)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:259)
... 10 more
Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:93)
... 15 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at java.net.Socket.<init>(Socket.java:367)
at java.net.Socket.<init>(Socket.java:180)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
... 20 more
!ENTRY com.sun.enterprise.jst.server.sunappsrv 4 150 2008-11-13 13:00:30.787
!MESSAGE Port conflict: Please stop the server process using the same port as the one used by the Application Server.
!STACK 0
java.lang.RuntimeException: A server process is already running on this port but we cannot determined if it's a GlassFish process (lack of info or credentials)
at com.sun.enterprise.jst.server.sunappsrv.SunAppServerLaunch.launch(SunAppServerLaunch.java:126)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:764)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:614)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:607)
at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:2771)
at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:2721)
at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:306)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)