users@glassfish.java.net

Re: hopefully someone was able to install GFv3 on Apache2x ?

From: Survivant 00 <survivant00_at_gmail.com>
Date: Wed, 2 Jul 2008 16:25:04 -0400

there is a mailing list that we can subscribe to be inform when I bugfix is
released ?

I'm really interesting about this bug and 2-3 bugs that I posted, but look
like there having to much traffic with this mailing list..

2008/7/1 <Jan.Luehe_at_sun.com>:

> Hi Jeanfrancois,
>
> Jeanfrancois Arcand wrote:
>
> Salut,
>>
>> mod_jk is completely broken with v3 right now :-( As far as I can tell,
>> dropping the tomcat-ajp.jar under ${glassfish.home}/lib doesn't work, hence
>> you are getting all kind of strange behavior.
>>
>
>
> Yes. I believe Sahoo is working on having any JAR files put under the
> domain's lib directory
> OSGi-fied, so that their classes can be shared.
>
>
> Jan
>
>
> I'm cc-ing Amy who might remember the issue # for that issue. As soon as
>> the ${glassfish.home}/lib works, those exceptions should disappear.
>>
>> Still we gonna take a look to reduce those NPE and fail with a better
>> exception messages (at leats on the Grizzly side).
>>
>> A+
>>
>> -- Jeanfrancois
>>
>>
>> Survivant wrote:
>>
>> I look around a lot, but I wasn't able to keep GF works with Apache.
>>> I started by the guide on JF Arcand... but I got few errors.
>>> I'll start by explaining my environnement.
>>> Apache is installed on the port 8282.
>>> GFv3 is installed on the port 8888.
>>> I had install Hudson ion GF.
>>> if I enter : localhost:8888/hudson
>>> I'll obtain the main page of Hudson.. so it's work.
>>> What I need is to have Apache that redirect the URL to the right place.
>>> I want GF, subversion server and few webapps (hopefully remove Tomcat by
>>> GF)
>>> Want I try http://localhost:8282/hudson I obtain a 404.
>>> if I enter http://localhost:8282/hudson/ I see the filelisting in
>>> hudson.. not the main page.
>>> I try to put the apj libs into GF/lib and add the JVM paramater :
>>> ajp13 port 8009
>>> but when I restart GF and go into the admin page.. I obtain lots of
>>> error in server.log of GF. (see below)
>>> I even try to mix up the config (found tips on others blogs.. but still
>>> doesn't work)
>>> here the last config
>>> (httpd.conf)
>>> Include conf/alias/hudson.conf
>>> hudson.conf
>>> Alias /hudson/
>>> "C:/glassfish-v3tp2/glassfish/domains/domain1/applications/hudson/"
>>> <Directory
>>> "C:/glassfish-v3tp2/glassfish/domains/domain1/applications/hudson/">
>>> Options Indexes FollowSymLinks MultiViews
>>> AllowOverride all
>>> Order Deny,Allow
>>> Deny from all
>>> Allow from 127.0.0.1
>>> </Directory>
>>> any suggestion ? how can you send me your config files.. I'll blog
>>> about this when my system will be up.. taking to much time to setup.. I
>>> think it should be easy ? (for people having done apache and tomcat
>>> configuration before)
>>> [#|2008-07-01T10:24:12.469-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;|Using
>>> default-web.xml
>>> C:\glassfish-v3tp2\glassfish\config\..\domains\domain1\config\default-web.xml|#]
>>>
>>> [#|2008-07-01T10:24:12.469-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;|Created
>>> HTTP listener http-listener-1|#]
>>> [#|2008-07-01T10:24:12.469-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;|Created
>>> HTTP listener http-listener-2|#]
>>> [#|2008-07-01T10:24:12.469-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;|Apache
>>> mod_jk/jk2 attached to virtual-server server listening on port: 8009|#]
>>> [#|2008-07-01T10:24:12.469-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;server;|webcontainer.ssodisabled|#]
>>>
>>> [#|2008-07-01T10:24:12.485-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;|Virtual
>>> Server server set port 8888|#]
>>> [#|2008-07-01T10:24:12.485-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;|Virtual
>>> Server server set port 8181|#]
>>> [#|2008-07-01T10:24:12.485-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;|Virtual
>>> Server server set jk port 8009|#]
>>> [#|2008-07-01T10:24:12.485-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;|Created
>>> virtual server server|#]
>>> [#|2008-07-01T10:24:12.485-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;__asadmin;|webcontainer.ssodisabled|#]
>>>
>>> [#|2008-07-01T10:24:12.485-0400|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=Thread-4;|Created
>>> virtual server __asadmin|#]
>>> [#|2008-07-01T10:24:12.501-0400|INFO|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=11;_ThreadName=Thread-4;|Cannot
>>> release container web
>>> java.lang.NullPointerException
>>> at
>>> com.sun.enterprise.v3.services.impl.GrizzlyProxy.registerEndpoint(GrizzlyProxy.java:163)
>>>
>>> at
>>> com.sun.enterprise.v3.services.impl.GrizzlyProxy.registerEndpoint(GrizzlyProxy.java:50)
>>>
>>> at
>>> com.sun.enterprise.v3.services.impl.GrizzlyService.registerEndpoint(GrizzlyService.java:170)
>>>
>>> at
>>> com.sun.enterprise.v3.services.impl.GrizzlyService.registerEndpoint(GrizzlyService.java:156)
>>>
>>> at
>>> com.sun.enterprise.web.WebContainer.loadDefaultWebModules(WebContainer.java:2476)
>>>
>>> at
>>> com.sun.enterprise.web.WebContainer.postConstruct(WebContainer.java:609)
>>> at
>>> com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150)
>>> at
>>> com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86)
>>> at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
>>> at
>>> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
>>> at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
>>> at
>>> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
>>>
>>> at
>>> com.sun.enterprise.v3.data.ContainerInfo.getContainer(ContainerInfo.java:77)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLifecycle.stopContainer(ApplicationLifecycle.java:802)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLifecycle.stopContainers(ApplicationLifecycle.java:789)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLifecycle$1.actOn(ApplicationLifecycle.java:270)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:306)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:231)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:108)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLoaderInjector.postConstruct(ApplicationLoaderInjector.java:55)
>>>
>>> at
>>> com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150)
>>> at
>>> com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86)
>>> at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
>>> at
>>> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
>>> at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
>>> at
>>> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
>>>
>>> at
>>> com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:107)
>>>
>>> at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:437)
>>> at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:400)
>>> at com.sun.enterprise.module.bootstrap.Main.start(Main.java:189)
>>> at com.sun.enterprise.module.bootstrap.Main$1.run(Main.java:104)
>>> |#]
>>> [#|2008-07-01T10:24:12.501-0400|INFO|GlassFish10.0|javax.enterprise.system.core.security|_ThreadID=11;_ThreadName=Thread-4;com.sun.enterprise.security.provider.PolicyWrapper;|policy.loading|#]
>>>
>>> [#|2008-07-01T10:24:12.563-0400|INFO|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=11;_ThreadName=Thread-4;|Cannot
>>> release container security
>>> java.lang.RuntimeException: javax.security.jacc.PolicyContextException:
>>> java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory :
>>> cannot find class :
>>> com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl
>>> at
>>> com.sun.enterprise.security.web.integration.WebSecurityManagerFactory.newWebSecurityManager(WebSecurityManagerFactory.java:150)
>>>
>>> at
>>> com.sun.enterprise.security.SecurityContainer.generatePolicy(SecurityContainer.java:89)
>>>
>>> at
>>> com.sun.enterprise.security.SecurityContainer.postConstruct(SecurityContainer.java:79)
>>>
>>> at
>>> com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150)
>>> at
>>> com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86)
>>> at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
>>> at
>>> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
>>> at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
>>> at
>>> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
>>>
>>> at
>>> com.sun.enterprise.v3.data.ContainerInfo.getContainer(ContainerInfo.java:77)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLifecycle.stopContainer(ApplicationLifecycle.java:802)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLifecycle.stopContainers(ApplicationLifecycle.java:789)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLifecycle$1.actOn(ApplicationLifecycle.java:270)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:306)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:231)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:108)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLoaderInjector.postConstruct(ApplicationLoaderInjector.java:55)
>>>
>>> at
>>> com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150)
>>> at
>>> com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86)
>>> at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
>>> at
>>> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
>>> at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
>>> at
>>> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
>>>
>>> at
>>> com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:107)
>>>
>>> at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:437)
>>> at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:400)
>>> at com.sun.enterprise.module.bootstrap.Main.start(Main.java:189)
>>> at com.sun.enterprise.module.bootstrap.Main$1.run(Main.java:104)
>>> Caused by: javax.security.jacc.PolicyContextException:
>>> java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory :
>>> cannot find class :
>>> com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl
>>> at
>>> com.sun.enterprise.security.web.integration.WebSecurityManager.getFactory(WebSecurityManager.java:395)
>>>
>>> at
>>> com.sun.enterprise.security.web.integration.WebSecurityManager.initialise(WebSecurityManager.java:261)
>>>
>>> at
>>> com.sun.enterprise.security.web.integration.WebSecurityManager.<init>(WebSecurityManager.java:186)
>>>
>>> at
>>> com.sun.enterprise.security.web.integration.WebSecurityManagerFactory.newWebSecurityManager(WebSecurityManagerFactory.java:147)
>>>
>>> ... 27 more
>>> Caused by: java.lang.ClassNotFoundException: JACC:Error
>>> PolicyConfigurationFactory : cannot find class :
>>> com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl
>>> at
>>> javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfigurationFactory.java:172)
>>>
>>> at
>>> com.sun.enterprise.security.web.integration.WebSecurityManager.getFactory(WebSecurityManager.java:392)
>>>
>>> ... 30 more
>>> Caused by: java.lang.ClassNotFoundException:
>>> com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl
>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:220)
>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:209)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:208)
>>> at
>>> com.sun.enterprise.module.impl.ClassLoaderProxy.findClassDirect(ClassLoaderProxy.java:142)
>>>
>>> at
>>> com.sun.enterprise.module.impl.ClassLoaderProxy.findClass(ClassLoaderProxy.java:106)
>>>
>>> at
>>> com.sun.enterprise.module.impl.ClassLoaderProxy.findClass(ClassLoaderProxy.java:94)
>>>
>>> at
>>> com.sun.enterprise.module.impl.ModuleClassLoader.findClass(ModuleClassLoader.java:86)
>>>
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:325)
>>> at
>>> com.sun.enterprise.module.impl.ModuleClassLoader.loadClass(ModuleClassLoader.java:81)
>>>
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:270)
>>> at
>>> com.sun.enterprise.module.impl.ClassLoaderFacade.findClass(ClassLoaderFacade.java:123)
>>>
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:325)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:270)
>>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:338)
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Class.java:264)
>>> at
>>> javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfigurationFactory.java:160)
>>>
>>> ... 31 more
>>> |#]
>>> [#|2008-07-01T10:24:12.563-0400|SEVERE|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=11;_ThreadName=Thread-4;|Exception
>>> while deploying the app : java.lang.Exception: Failed to start containers|#]
>>> [#|2008-07-01T10:24:12.563-0400|INFO|GlassFish10.0|javax.enterprise.system.core|_ThreadID=11;_ThreadName=Thread-4;|Glassfish
>>> v3 started in 1953 ms|#]
>>> [#|2008-07-01T10:24:17.532-0400|INFO|GlassFish10.0|global|_ThreadID=12;_ThreadName=Thread-4;|AdminConsoleAdapter's
>>> STATE IS: Application is already installed, but not yet loaded. ...|#]
>>> [#|2008-07-01T10:24:17.547-0400|SEVERE|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=12;_ThreadName=Thread-4;|Exception
>>> while deploying the app
>>> java.lang.NullPointerException
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLoaderService$1.getMetaData(ApplicationLoaderService.java:323)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:450)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:275)
>>>
>>> at
>>> com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:231)
>>>
>>> at
>>> com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter.handleInstalledButNotLoadedState(AdminConsoleAdapter.java:424)
>>>
>>> at
>>> com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter.service(AdminConsoleAdapter.java:170)
>>>
>>> at
>>> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:146)
>>> at
>>> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
>>> at
>>> com.sun.enterprise.v3.services.impl.VsAdapter.service(VsAdapter.java:136)
>>> at
>>> com.sun.enterprise.v3.services.impl.VirtualHostMapper.service(VirtualHostMapper.java:121)
>>>
>>> at
>>> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:605)
>>>
>>> at
>>> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:536)
>>>
>>> at
>>> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:785)
>>>
>>> at
>>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:137)
>>>
>>> at
>>> com.sun.enterprise.v3.services.impl.HttpProtocolFilter.execute(HttpProtocolFilter.java:129)
>>>
>>> at
>>> com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:61)
>>>
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:75)
>>> at
>>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:52)
>>>
>>> at
>>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:54)
>>>
>>> at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:154)
>>> |#]
>>> [#|2008-07-01T10:24:17.547-0400|SEVERE|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=12;_ThreadName=Thread-4;|Exception
>>> while deploying the app : java.lang.NullPointerException|#]
>>> [#|2008-07-01T10:24:25.110-0400|INFO|GlassFish10.0|global|_ThreadID=13;_ThreadName=Thread-4;|AdminConsoleAdapter's
>>> STATE IS: Application is already loaded ...|#]
>>> [#|2008-07-01T10:24:33.719-0400|INFO|GlassFish10.0|global|_ThreadID=12;_ThreadName=Thread-4;|AdminConsoleAdapter's
>>> STATE IS: Application is already loaded ...|#]
>>> [#|2008-07-01T10:25:01.797-0400|INFO|GlassFish10.0|global|_ThreadID=13;_ThreadName=Thread-4;|AdminConsoleAdapter's
>>> STATE IS: Application is already loaded ...|#]
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>