users@glassfish.java.net

Sharing and Versioning Glassfish Domains

From: <glassfish_at_javadesktop.org>
Date: Mon, 10 Nov 2008 12:24:26 PST

I'm wondering if anybody is sharing glassfish development domains. i'm hoping to be able to check a development domain into version control (svn in our case) and then have developers check that domain out and configure a "server" in Eclipse. that way, changes to domain.xml, changes to required lib/jars and other configuration changes can be easily synchronized between developers. I tried importing a domain into SVN and then checking it out and starting it up but I ran into a bunch of problems which I wonder if they're related to file changes due to SVN.

Is anybody else sharing glassfish domains between developers or using source control to version control production domain roll-outs?

here are examples of the two errors i get when attempting to start a domain checked out of svn:

EXAMPLE 1:

[#|2008-11-10T15:18:41.770-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;_RequestID=a3b412da-d13b-4b92-9802-5b43d5e997b6;|WEB0123: WebModule [WSTXServices] failed to deploy and has been disabled
java.lang.RuntimeException: java.lang.RuntimeException: JACC Policy provider: repository not initialized
        at com.sun.enterprise.web.WebContainer.configureSecurity(WebContainer.java:1663)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1549)
        at com.sun.enterprise.web.WebContainer.loadStandaloneWebModule(WebContainer.java:1052)
        at com.sun.enterprise.web.WebContainer.loadWebModules(WebContainer.java:991)
        at com.sun.enterprise.web.WebContainer.start(WebContainer.java:861)
        at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:790)
        at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:84)
        at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:442)
        at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:120)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:411)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
Caused by: java.lang.RuntimeException: JACC Policy provider: repository not initialized
        at com.sun.enterprise.security.provider.PolicyConfigurationImpl.getContextDirectoryName(PolicyConfigurationImpl.java:865)
        at com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl.getPolicyConfigurationImplFromDirectory(PolicyConfigurationFactoryImpl.java:190)
        at com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl.inService(PolicyConfigurationFactoryImpl.java:178)
        at com.sun.web.security.WebSecurityManager.initialise(WebSecurityManager.java:245)
        at com.sun.web.security.WebSecurityManager.<init>(WebSecurityManager.java:171)
        at com.sun.web.security.WebSecurityManagerFactory.newWebSecurityManager(WebSecurityManagerFactory.java:96)
        at com.sun.enterprise.web.WebContainer.configureSecurity(WebContainer.java:1658)
        ... 15 more
|#]

EXAMPLE 2:

[#|2008-11-10T15:18:42.020-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=15;_ThreadName=pool-1-thread-8;_RequestID=bf16bca1-86b3-4845-9dcf-579e80667516;|WEB0123: WebModule [/__wstx-services] failed to deploy and has been disabled
javax.naming.InvalidNameException: Real JNDI name cannot be empty for com.sun.xml.ws.tx.webservice.member.coord.RegistrationRequesterPortTypeImpl/wsContext
        at com.sun.enterprise.naming.NamingManagerImpl.bindObjects(NamingManagerImpl.java:544)
        at com.sun.enterprise.web.WebModuleContextConfig.configureResource(WebModuleContextConfig.java:220)
        at com.sun.enterprise.web.WebModuleContextConfig.lifecycleEvent(WebModuleContextConfig.java:161)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:143)
        at org.apache.catalina.core.StandardContext.init(StandardContext.java:6350)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4848)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
        at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
        at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
        at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
|#]

thanks,

-zach
[Message sent by forum member 'euqaz' (euqaz)]

http://forums.java.net/jive/thread.jspa?messageID=315888