Eclipse Luna und Glassfish 4.1 - Fehler

Ich arbeite mit Eclipse Luna Service Release 2 (4.4.2) und Glashfish 4.1. Installation nach Oracle Beschreibung für Glassfish im Zusammenspiel mit Eclipse Luna hat soweit auch funktioniert.

Starte ich den Server über Eclipse

2015-03-09T23:40:36.102+0100|Information: Running GlassFish Version: GlassFish Server Open Source Edition 4.1 (build 13)
2015-03-09T23:40:36.107+0100|Information: Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
2015-03-09T23:40:36.394+0100|Information: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
2015-03-09T23:40:36.403+0100|Information: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
2015-03-09T23:40:36.414+0100|Information: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
2015-03-09T23:40:37.029+0100|Information: Authorization Service has successfully initialized.
2015-03-09T23:40:37.163+0100|Information: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
2015-03-09T23:40:38.490+0100|Information: visiting unvisited references
2015-03-09T23:40:38.578+0100|Information: Grizzly Framework 2.3.15 started in: 612ms - bound to [/127.0.0.1:8080]
2015-03-09T23:40:38.725+0100|Information: Grizzly Framework 2.3.15 started in: 75ms - bound to [/127.0.0.1:8181]
2015-03-09T23:40:38.836+0100|Information: Grizzly Framework 2.3.15 started in: 87ms - bound to [/127.0.0.1:4848]
2015-03-09T23:40:39.102+0100|Information: Grizzly Framework 2.3.15 started in: 70ms - bound to [/127.0.0.1:3700]
2015-03-09T23:40:39.903+0100|Information: visiting unvisited references
2015-03-09T23:40:40.015+0100|Information: visiting unvisited references
2015-03-09T23:40:40.892+0100|Information: Java security manager is disabled.
2015-03-09T23:40:40.893+0100|Information: Entering Security Startup Service.
2015-03-09T23:40:40.910+0100|Information: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
2015-03-09T23:40:41.003+0100|Information: Security Service(s) started successfully.
2015-03-09T23:40:41.428+0100|Information: Created HTTP listener http-listener-1 on host/port 127.0.0.1:8080
2015-03-09T23:40:41.474+0100|Information: Created HTTP listener http-listener-2 on host/port 127.0.0.1:8181
2015-03-09T23:40:41.488+0100|Information: Created HTTP listener admin-listener on host/port 127.0.0.1:4848
2015-03-09T23:40:41.613+0100|Information: Created virtual server server
2015-03-09T23:40:41.637+0100|Information: Created virtual server __asadmin
2015-03-09T23:40:41.953+0100|Information: Setting JAAS app name glassfish-web
2015-03-09T23:40:41.955+0100|Information: Virtual server server loaded default web module
2015-03-09T23:40:43.651+0100|Information: Loading application [onlineshop#onlineshop-war.war] at [onlineshop-war]
2015-03-09T23:40:43.659+0100|Information: Loading application onlineshop done in 6.379 ms
2015-03-09T23:40:43.669+0100|Information: GlassFish Server Open Source Edition 4.1 (13) startup time : Felix (6.316ms), startup services(7.987ms), total(14.303ms)
2015-03-09T23:40:43.976+0100|Information: Grizzly Framework 2.3.15 started in: 60ms - bound to [/0.0.0.0:7676]
2015-03-09T23:40:44.020+0100|Information: HV000001: Hibernate Validator 5.0.0.Final
2015-03-09T23:40:44.376+0100|Information: Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@b967222 as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@127f9161.
2015-03-09T23:40:44.403+0100|Information: Binding RMI port to single IP address = 127.0.0.1, port 8.686
2015-03-09T23:40:46.342+0100|Information: JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://127.0.0.1:8686/jndi/rmi://127.0.0.1:8686/jmxrmi

scheint auch alles korrekt zu funktionieren. Wenn ich den Glassfish über Eclipse stoppe erhalte ich eine Fehlermeldung

2015-03-09T23:48:46.891+0100|Information: Server shutdown initiated
2015-03-09T23:48:46.912+0100|Information: Unregistered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@b967222 from service registry.
2015-03-09T23:48:46.918+0100|Information: FileMonitoring shutdown
2015-03-09T23:48:46.933+0100|Schwerwiegend: Error stopping RMIConnector
java.rmi.NotBoundException: 127.0.0.1
at sun.rmi.registry.RegistryImpl.unbind(RegistryImpl.java:200)
at org.glassfish.admin.mbeanserver.RMIConnectorStarter.stopAndUnexport(RMIConnectorStarter.java:332)
at org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread.shutdown(JMXStartupService.java:258)
at org.glassfish.admin.mbeanserver.JMXStartupService.shutdown(JMXStartupService.java:203)
at org.glassfish.admin.mbeanserver.JMXStartupService.access$000(JMXStartupService.java:96)
at org.glassfish.admin.mbeanserver.JMXStartupService$ShutdownListener.event(JMXStartupService.java:163)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
at com.sun.enterprise.v3.server.AppServerStartup.stop(AppServerStartup.java:480)
at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.stop(GlassFishImpl.java:88)
at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.stop(GlassFishDecorator.java:68)
at com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl.stop(EmbeddedOSGiGlassFishImpl.java:82)
at com.sun.enterprise.v3.admin.StopServer.doExecute(StopServer.java:78)
at com.sun.enterprise.v3.admin.StopDomainCommand.execute(StopDomainCommand.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534)
at org.glassfish.api.AsyncImpl$1$1.run(AsyncImpl.java:76)

2015-03-09T23:48:46.936+0100|Information: JMXStartupService: Stopped JMXConnectorServer: null
2015-03-09T23:48:46.938+0100|Information: JMXStartupService and JMXConnectors have been shut down.
2015-03-09T23:48:47.214+0100|Information: JdbcRuntimeExtension, getAllSystemRAResourcesAndPools = [GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool]

Hi :slight_smile:

Wahrscheinlich hast du schon eine Lösung gefunden aber ich schreib es trotzdem mal hier hin:
Unter http://localhost:4848/common/index.jsf → Konfigurationen → Admin Service → 127.0.0.1 als Adresse eingeben. Bei mir ist der Fehler mit Eclipse Luna unter Debian Wheezy auch aufgetreten nur das sich der Server nicht mehr stoppen lies und sich komplett aufgehängt hat. Die Lösung bei mir war den Server löschen, die Domain über asadmin stoppen und unter /etc/hosts die Zeile 127.0.1.1 auszukommentieren weil die RMI-Registry sich für die falsche Ip entscheidet. Scheinbar wird sonst diese verwendet statt 127.0.0.1. Eine sehr gute Erklärung dazu auch auf: https://blogs.oracle.com/reichart/entry/jmx_unter_debian.

Mfg