Want to set up GF3 on server machines and have students create, start and stop their own domains. Am giving up on allowing them to create domains, but could I at least allow them to start and stop themselves. At this point I am giving up for this semester, but it would be real nice if this could be working in the final release of GF. Logs BTW don't tell me anything.
First problem: permissions broken in glassfish/modules, also in glassfish/lib/templates.
Next problem: Well see here. When things didn't work by having a non-root user (user29) create the domain, I created the domain in user29's file space and chown-ed it to user29. I can start the domain as root, but as user29 it fails to start.
[i]root_at_glassfish1<2> asadmin create-domain --domaindir ~user29/domains --adminport 5029 --instanceport 8029 domain29x
Using port 5029 for Admin.
Using port 8029 for HTTP Instance.
Using default port 7676 for JMS.
Using default port 3700 for IIOP.
Using default port 8181 for HTTP_SSL.
Using default port 3820 for IIOP_SSL.
Using default port 3920 for IIOP_MUTUALAUTH.
Default port 8686 for JMX_ADMIN is in use. Using 54038
Distinguished Name of the self-signed X.509 Server Certificate is:
[CN=glassfish1.cs.stevens-tech.edu,OU=GlassFish,O=Sun Microsystems,L=Santa Clara,ST=California,C=US]
Domain domain29x created.
Command create-domain executed successfully.
root_at_glassfish1<4> asadmin start-domain --domaindir ~user29/domains domain29x
Waiting for DAS to start.
Name of the domain started: [domain29x] and
its location: [/home/user29/domains/domain29x].
Admin port for the domain: [5029].
Command start-domain executed successfully.
root_at_glassfish1<5> asadmin stop-domain --domaindir ~user29/domains domain29x
Waiting for the domain to stop ..
Command stop-domain executed successfully.
root_at_glassfish1<6> chown -R user29 ~user29/domains
root_at_glassfish1<7> su -l user29
glassfish1<1> cd
/home/user29
glassfish1<2> asadmin start-domain --domaindir ~user29/domains domain29x
Waiting for DAS to start.
Domain (domain29x) did not respond in 90 seconds. It means it is still coming up
or it has failed to come up. Check server.log for details.
Command start-domain failed.[/i]
Things get even more bizarre when I try using --verbose=true. As user29, it stackdumps claiming it can't find the classes for Felix. As root, it appears to start the domain but hangs as though waiting for input. When I control-C, the domain stops. Here's the output:
[i]root_at_glassfish1<10> asadmin start-domain --domaindir ~user29/domains --verbose=true domain29x
Dec 7, 2009 6:13:26 PM com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: JVM invocation command line:
/usr/local/java/java6/bin/java
-cp
/usr/local/glassfish-v3-preview/glassfish/modules/glassfish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-XX:NewRatio=2
-XX:+LogVMOutput
-XX:LogFile=/home/user29/domains/domain29x/logs/jvm.log
-Xmx512m
-client
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djavax.net.ssl.trustStore=/home/user29/domains/domain29x/config/cacerts.jks
-Djavax.net.ssl.keyStore=/home/user29/domains/domain29x/config/keystore.jks
-Djava.security.policy=/home/user29/domains/domain29x/config/server.policy
-Dcom.sun.aas.instanceRoot=/home/user29/domains/domain29x
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Djava.security.auth.login.config=/home/user29/domains/domain29x/config/login.conf
-Djava.endorsed.dirs=/usr/local/glassfish-v3-preview/glassfish/lib/endorsed
-Dcom.sun.aas.installRoot=/usr/local/glassfish-v3-preview/glassfish
-Djava.ext.dirs=/usr/local/java/java6/lib/ext:/usr/local/java/java6/jre/lib/ext:/home/user29/domains/domain29x/lib/ext:/usr/local/glassfish-v3-preview/javadb/lib
-Djava.library.path=/usr/local/glassfish-v3-preview/glassfish/lib:/usr/local/java/jdk1.6.0_14/jre/lib/i386/server:/usr/local/java/jdk1.6.0_14/jre/lib/i386:/usr/local/java/jdk1.6.0_14/lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
com.sun.enterprise.glassfish.bootstrap.ASMain
-domainname
domain29x
-asadmin-args
start-domain,,,--domaindir,,,/home/user29/domains,,,--verbose=true,,,domain29x
-instancename
server
-verbose
true
-debug
false
-asadmin-classpath
/usr/local/glassfish-v3-preview/glassfish/modules/admin-cli.jar
-asadmin-classname
com.sun.enterprise.admin.cli.AsadminMain
-upgrade
false
-domaindir
/home/user29/domains/domain29x
-read-stdin
true
Dec 7, 2009 6:13:27 PM com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: Successfully launched in 40 msec.
Dec 7, 2009 6:13:27 PM com.sun.enterprise.glassfish.bootstrap.ASMain main
INFO: Launching GlassFish on Felix platform
Welcome to Felix.
=================
Apache Felix Remote Shell [113] Listener.Acceptor::activate()
java.net.BindException: Address already in use
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)
Dec 7, 2009 6:13:33 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.core.kernel [141]
Dec 7, 2009 6:13:33 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.common.glassfish-mbeanserver [166]
Dec 7, 2009 6:13:33 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.common.util [100]
Dec 7, 2009 6:13:33 PM OSGiModuleImpl start
INFO: Started bundle com.sun.enterprise.config [62]
Dec 7, 2009 6:13:33 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.admin.config-api [30]
Dec 7, 2009 6:13:34 PM org.hibernate.validation.util.Version <clinit>
INFO: Hibernate Validator null
Dec 7, 2009 6:13:34 PM org.hibernate.validation.engine.resolver.DefaultTraversableResolver detectJPA
INFO: Instantiated an instance of org.hibernate.validation.engine.resolver.JPATraversableResolver.
Dec 7, 2009 6:13:34 PM org.hibernate.validation.engine.xml.ValidationXmlParser getValidationConfig
INFO: No META-INF/validation.xml found. Using annotation based configuration only!
Dec 7, 2009 6:13:34 PM OSGiModuleImpl start
INFO: Started bundle com.sun.grizzly.grizzly-config [139]
Dec 7, 2009 6:13:35 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.branding [103]
Dec 7, 2009 6:13:35 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.common.internal-api [6]
Dec 7, 2009 6:13:35 PM com.sun.enterprise.v3.admin.IdmService setFromStdin
INFO: Reading the master password from stdin>
Dec 7, 2009 6:13:35 PM com.sun.enterprise.v3.admin.IdmService postConstruct
INFO: OK, finally using a master passsword: changeit REMOVE -- debug statement ....
Dec 7, 2009 6:13:35 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.ejb.ejb-container [156]
Dec 7, 2009 6:13:35 PM
INFO: com.sun.enterprise.naming.util.NamingActivator_at_1080876 called
Dec 7, 2009 6:13:35 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.common.glassfish-naming [22]
Dec 7, 2009 6:13:35 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.transaction.jta [91]
Dec 7, 2009 6:13:35 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.common.glassfish-api [106]
Dec 7, 2009 6:13:35 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.registration.glassfish-registration [191]
Dec 7, 2009 6:13:35 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.flashlight.framework [204]
Dec 7, 2009 6:13:36 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy start
INFO: Listening on port 8029
Dec 7, 2009 6:13:36 PM com.sun.enterprise.v3.services.impl.GrizzlyService createNetworkProxy
INFO: Network listener http-listener-2 on port 8181 disabled per domain.xml
Dec 7, 2009 6:13:36 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy start
INFO: Listening on port 5029
Dec 7, 2009 6:13:36 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.deployment.autodeploy [198]
Dec 7, 2009 6:13:36 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.common.container-common [186]
Dec 7, 2009 6:13:36 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.orb.connector [147]
Dec 7, 2009 6:13:36 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.transaction.jts [76]
Dec 7, 2009 6:13:37 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.admin.rest-service [161]
Dec 7, 2009 6:13:37 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.jms.core [60]
Dec 7, 2009 6:13:37 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.deployment.common [107]
Dec 7, 2009 6:13:37 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.admin.monitoring-core [173]
Dec 7, 2009 6:13:38 PM com.sun.grizzly.Controller start
INFO: Starting Grizzly Framework 1.9.17-RC2 - Mon Dec 07 18:13:38 EST 2009
Dec 7, 2009 6:13:38 PM com.sun.grizzly.Controller start
INFO: Starting Grizzly Framework 1.9.17-RC2 - Mon Dec 07 18:13:38 EST 2009
Dec 7, 2009 6:13:38 PM org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread startConnector
INFO: Started JMXConnector, JMXService URL = service:jmx:rmi:///jndi/rmi://glassfish1.cs.stevens-tech.edu:54038/jmxrmi
Dec 7, 2009 6:13:38 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: GlassFish v3 startup time : Felix(7812ms) startup services(3863ms) total(11675ms)
Dec 7, 2009 6:13:38 PM AppServerStartup run
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
Dec 7, 2009 6:13:39 PM
INFO: felix.fileinstall.poll (ms) 5000
Dec 7, 2009 6:13:39 PM
INFO: felix.fileinstall.dir /home/user29/domains/domain29x/autodeploy-bundles
Dec 7, 2009 6:13:39 PM
INFO: felix.fileinstall.debug 1
Dec 7, 2009 6:13:39 PM
INFO: felix.fileinstall.bundles.new.start true
The domain was stopped.[/i]
[Message sent by forum member 'dduggan26' ]
http://forums.java.net/jive/thread.jspa?messageID=375258