geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Becker (JIRA)" <>
Subject [jira] Commented: (GERONIMO-4037) Geronimo 2.0.3 (and I guess at least 2.0.2) can't run with a security manager settled from the command line using
Date Fri, 23 May 2008 18:51:56 GMT


Dan Becker commented on GERONIMO-4037:

Hi Jacques,

This is just a theory, but there are three threads there waiting on GeronimoPolicyConfigurationFactory
which is a singleton and has a sync block in the constructor wrapping a log statement and
an exception throw - this could be a constructor log jam.

That check for multiple copies and exception in GeronimoPolicyConfigurationFactory constructor
is not really the best pattern to ensure that the policy config is a singleton. One of the
the derived class of java.lang.LinkageError is ExceptionInInitializerError, and perhaps that
is what is being thrown here. Maybe comment out that constructor checking for now as a work
around, and we will figure out a better rewrite of that constructor.

> Geronimo 2.0.3 (and I guess at least 2.0.2) can't run  with a security manager settled
from the command line using
> ------------------------------------------------------------------------------------------------------------------------------------------
>                 Key: GERONIMO-4037
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: kernel, security
>    Affects Versions: 2.0.2
>         Environment: Windows Xp Sp2
>            Reporter: Jacques Le Roux
>            Priority: Blocker
> I'm facing an issue on Windows XPsp2: I can't run WASCE with a security manager settled
from the command line using options.
I get the error below. Note that this is working properly under Linux (Ubuntu and Suze as
> C:\geronimo-tomcat6-jee5-2.0.3\bin>geronimo run
> Using GERONIMO_BASE:   C:\geronimo-tomcat6-jee5-2.0.3
> Using GERONIMO_HOME:   C:\geronimo-tomcat6-jee5-2.0.3
> Using GERONIMO_TMPDIR: var\temp
> Using JRE_HOME:        C:\Program Files\Java\jre1.5.0_11
> Listening for transport dt_socket at address: 5005
> Booting Geronimo Kernel (in Java 1.5.0_11)...
> Starting Geronimo Application Server v2.0.3-SNAPSHOT
> [***>                                  ] 11%  27s Starting org.apac...15:57:28,625
ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.configs/
> j2ee-security/2.0.3-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/j2ee-security/2.0.3-SNAPSHOT/car,j2eeType=GBean,name=SecurityService"
> java.lang.LinkageError: org/apache/geronimo/security/jacc/GeronimoPolicyConfigurationFactory
>         at
>         at Source)
>         at Source)
>         at Source)
>         at java.lang.SecurityManager.checkPermission(Unknown Source)
>         at java.lang.Thread.setContextClassLoader(Unknown Source)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(
>         at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(
>         at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(
>         at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(
>         at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(
>         at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
>         at net.sf.cglib.reflect.FastMethod.invoke(
>         at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
>         at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
>         at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(
>         at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
>         at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
>         at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$7e14cd11.startConfiguration(<generated>)
>         at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(
>         at org.apache.geronimo.system.main.EmbeddedDaemon.execute(
>         at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(
>         at org.apache.geronimo.cli.AbstractCLI.executeMain(
>         at org.apache.geronimo.cli.daemon.DaemonCLI.main(
> 15:57:28,640 WARN  [BasicLifecycleMonitor] Exception occured while notifying listener
> [...]
> This is needed in order to launch the OFBiz RMIDispatcher (in other words to allow using
RMI inside Apache OFBiz). That's why I put this issue as a blocker.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message