Hi,
I'm testing the latest GlassFish v3.1 b01 from
http://download.java.net/glassfish/v3.1/nightly/glassfish-v3_1-b01-05_17_2010.zip, and trying to integrate it within my IDEs :
In Netbeans :
Choose Server > Glassfish v3
Path > D:\gfv31b01\glassfish --> warning : D:\gfv31b01\glassfish does not have a usable default domain.
Next > error : Unsupported domain at domain1 : Admin-listener is disabled or no enabled http-listener.
In Eclipse :
Add New server D:\gfv31b01\glassfish
Start
Here is the stack trace :
-------------
18 mai 2010 16:55:19 com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: JVM invocation command line:
C:\Program Files\Java\jdk1.6.0_20\bin\java.exe
-cp
D:/GTB1.2-1/glassfishv3/glassfish/modules/glassfish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-XX:NewRatio=2
-XX:+LogVMOutput
-XX:LogFile=D:\gfv31b01\glassfish\domains\domain1/logs/jvm.log
-Xmx512m
-client
-javaagent:D:/GTB1.2-1/glassfishv3/glassfish/lib/monitor/btrace-agent.jar=unsafe=true,noServer=true
-Dosgi.shell.telnet.maxconn=1
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Dfelix.fileinstall.dir=D:\GTB1.2-1\glassfishv3\glassfish/modules/autostart/
-Djavax.net.ssl.keyStore=D:\gfv31b01\glassfish\domains\domain1/config/keystore.jks
-Dosgi.shell.telnet.port=6666
-Djava.security.policy=D:\gfv31b01\glassfish\domains\domain1/config/server.policy
-Dfelix.fileinstall.log.level=3
-Dfelix.fileinstall.poll=5000
-Dcom.sun.aas.instanceRoot=D:\gfv31b01\glassfish\domains\domain1
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dosgi.shell.telnet.ip=127.0.0.1
-Djava.endorsed.dirs=D:\GTB1.2-1\glassfishv3\glassfish/modules/endorsed;D:\GTB1.2-1\glassfishv3\glassfish/lib/endorsed
-Dcom.sun.aas.installRoot=D:\GTB1.2-1\glassfishv3\glassfish
-Djava.ext.dirs=C:\Program Files\Java\jdk1.6.0_20/lib/ext;C:\Program Files\Java\jdk1.6.0_20/jre/lib/ext;D:\gfv31b01\glassfish\domains\domain1/lib/ext
-Dfelix.fileinstall.bundles.new.start=true
-Djavax.net.ssl.trustStore=D:\gfv31b01\glassfish\domains\domain1/config/cacerts.jks
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Djava.security.auth.login.config=D:\gfv31b01\glassfish\domains\domain1/config/login.conf
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Dorg.glassfish.web.rfc2109_cookie_names_enforced=false
-Djava.library.path=D:/GTB1.2-1/glassfishv3/glassfish/lib;C:/Program Files/Java/jdk1.6.0_20/bin;D:/GTB1.2-1/glassfishv3/glassfish;C:/WINDOWS/Sun/Java/bin;C:/WINDOWS/system32;C:/WINDOWS;C:/Program Files/Java/jdk1.6.0_16/jre/bin/client;C:/Program Files/Java/jdk1.6.0_16/jre/bin;C:/Program Files/JavaFX/javafx-sdk1.2/bin;C:/Program Files/JavaFX/javafx-sdk1.2/emulator/bin;C:/PHP;C:/pecl;C:/GTK/bin;C:/WINDOWS/system32/wbem;C:/Program Files/Fichiers communs/Roxio Shared/DLLShared;C:/Program Files/OpenOffice.org 2.3/program;C:/Program Files/MySQL/MySQL Server 5.1/bin
com.sun.enterprise.glassfish.bootstrap.ASMain
-domainname
domain1
-asadmin-args
start-domain,,,--domaindir,,,D:/gfv31b01/glassfish/domains,,,--debug=false,,,--verbose=true,,,domain1
-instancename
server
-verbose
true
-debug
false
-asadmin-classpath
D:/GTB1.2-1/glassfishv3/glassfish/modules/admin-cli.jar
-asadmin-classname
com.sun.enterprise.admin.cli.AsadminMain
-upgrade
false
-domaindir
D:/gfv31b01/glassfish/domains/domain1
-read-stdin
true
18 mai 2010 16:55:19 com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: Successfully launched in 16 msec.
18 mai 2010 16:55:19 com.sun.enterprise.glassfish.bootstrap.ASMain main
INFO: Launching GlassFish on Felix platform
Welcome to Felix
================
18 mai 2010 16:55:22 Main start
ATTENTION: Exception while starting bundle com.sun.enterprise.osgi-adapter [197]
org.osgi.framework.BundleException: Activator start error in bundle com.sun.enterprise.osgi-adapter [197].
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1751)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)
at org.jvnet.hk2.osgimain.Main.start(Main.java:140)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: Failed to parse file:/D:/gfv31b01/glassfish/domains/domain1/config/domain.xml
at org.glassfish.config.support.DomainXml.parseDomainXml(DomainXml.java:159)
at org.glassfish.config.support.DomainXml.run(DomainXml.java:100)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.populateConfig(AbstractModulesRegistryImpl.java:159)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createHabitat(AbstractModulesRegistryImpl.java:144)
at com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:418)
at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:122)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
... 9 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[300,49]
Message: found: CHARACTERS, expected START_ELEMENT or END_ELEMENT
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.nextTag(XMLStreamReaderImpl.java:1240)
at javax.xml.stream.util.StreamReaderDelegate.nextTag(StreamReaderDelegate.java:66)
at org.glassfish.config.support.XMLStreamReaderFilter.skipTree(XMLStreamReaderFilter.java:142)
at org.glassfish.config.support.XMLStreamReaderFilter.nextTag(XMLStreamReaderFilter.java:73)
at org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:193)
at org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:209)
at org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:161)
at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:92)
at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:87)
at org.glassfish.config.support.DomainXml.parseDomainXml(DomainXml.java:153)
... 16 more
Apache Felix Remote Shell [65] Listener.Acceptor::activate()
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.apache.felix.shell.remote.Listener$Acceptor.run(Listener.java:131)
at java.lang.Thread.run(Thread.java:619)
{felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = D:\GTB1.2-1\glassfishv3\glassfish\modules\autostart, felix.fileinstall.debug = -1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\DOCUME~1\Olivier\LOCALS~1\Temp\fileinstall-6380422023732292237, felix.fileinstall.filter = null}
{felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = D:\gfv31b01\glassfish\domains\domain1\autodeploy\bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\DOCUME~1\Olivier\LOCALS~1\Temp\fileinstall-885521479405838374, felix.fileinstall.filter = null}
Started bundle: file:/D:/GTB1.2-1/glassfishv3/glassfish/modules/autostart/org.apache.felix.scr.jar
Started bundle: file:/D:/GTB1.2-1/glassfishv3/glassfish/modules/autostart/osgi-web-container.jar
Updating configuration from org.apache.felix.fileinstall-autodeploy-bundles.cfg
Installed D:\GTB1.2-1\glassfishv3\glassfish\modules\autostart\org.apache.felix.fileinstall-autodeploy-bundles.cfg
{felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = D:\gfv31b01\glassfish\domains\domain1\autodeploy\bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\DOCUME~1\Olivier\LOCALS~1\Temp\fileinstall--9015578129373855721, felix.fileinstall.filter = null}
-------------
Is there something new to do with this version 3.1 ?
[Message sent by forum member 'laps']
http://forums.java.net/jive/thread.jspa?messageID=470303