geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan <xhh...@gmail.com>
Subject Re: issue deploying webapp with security realm
Date Wed, 26 May 2010 02:12:55 GMT
Hi,
   I checked your application, a little change to your
geronimo-application.xml file :
   --->
   <dep:gbean name="MySecurityRealmGBean"  -> <dep:gbean
name="MySecurityRealm"
        class="org.apache.geronimo.security.realm.GenericSecurityRealm"
        xsi:type="dep:gbeanType"
        xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <dep:attribute name="realmName">MySecurityRealm</dep:attribute>
<---
while Geronimo searches the reference, it uses the name of GBean ......

2010/5/25 Łukasz Budnik <lukasz.budnik@gmail.com>

> Hi,
>
> In general something is wrong with security in G 2.2. I have created
> two JIRAs (GERONIMO-5010, GERONIMO-5011) for security related bugs
> (and as in your case, both things were working in G 2.1.x).
>
> All is left is to wait for a new 2.2.x release.
>
> Hope we get it soon.
>
> Łukasz
>
> On 25 May 2010 13:40, ttiurani <timo.tiuraniemi@iki.fi> wrote:
> >
> >
> > Hi,
> >
> > thanks for the quick reply! Putting the security realm geronimo-web.xml
> > doesn't help.
> >
> > Please find attached a sample test application. Run "mvn verify" to see
> > deployment on Geronimo running on localhost. I have tested it with java
> > 1.5.0_17 and 1.6.0_18 with Geronimo versions 2.1.3, 2.1.4 and 2.1.5 and
> they
> > all work. Version 2.2 fails with both java versions.
> >
> > Is there a way to get this to work with all versions or is this a bug in
> > 2.2?
> >
> > Below is the stack trace I get:
> >
> > Deployer operation failed: Unable to resolve reference
> > "ConfigurationFactory"
> >    in gbean
> >
> org.test/testear/1/car?J2EEApplication=org.test/testear/1/car,j2eeType=WebModule,name=lib/testwar-1.war
> >    to a gbean matching the pattern
> >
> [?name=MySecurityRealm#org.apache.geronimo.security.jaas.ConfigurationFactory]
> >    due to: No matches for referencePatterns:
> >
> [?name=MySecurityRealm#org.apache.geronimo.security.jaas.ConfigurationFactory]
> > org.apache.geronimo.common.DeploymentException: Unable to resolve
> reference
> > "ConfigurationFactory"
> >    in gbean
> >
> org.test/testear/1/car?J2EEApplication=org.test/testear/1/car,j2eeType=WebModule,name=lib/testwar-1.war
> >    to a gbean matching the pattern
> >
> [?name=MySecurityRealm#org.apache.geronimo.security.jaas.ConfigurationFactory]
> >    due to: No matches for referencePatterns:
> >
> [?name=MySecurityRealm#org.apache.geronimo.security.jaas.ConfigurationFactory]
> >        at
> >
> org.apache.geronimo.deployment.DeploymentContext.getConfigurationData(DeploymentContext.java:656)
> >        at
> >
> org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:584)
> >        at
> >
> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:165)
> >        at
> >
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:652)
> >        at
> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:257)
> >        at
> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:136)
> >        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:585)
> >        at
> >
> org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> >        at
> >
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
> >        at
> >
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:851)
> >        at
> > org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:237)
> >        at
> > org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342)
> >        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:585)
> >        at
> >
> org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> >        at
> >
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
> >        at
> >
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:851)
> >        at
> > org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:237)
> >        at
> >
> org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:172)
> >        at
> >
> com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
> >        at
> > com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
> >        at
> >
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
> >        at
> > com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
> >        at
> >
> javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1410)
> >        at
> >
> javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
> >        at
> >
> javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1247)
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at
> >
> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1350)
> >        at
> >
> javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:784)
> >        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:585)
> >        at
> > sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> >        at sun.rmi.transport.Transport$1.run(Transport.java:153)
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> >        at
> > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
> >        at
> >
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
> >        at java.lang.Thread.run(Thread.java:595)
> >
> > Best regards,
> > Timo
> >
> > http://apache-geronimo.328035.n3.nabble.com/file/n841923/g22earbug.zip
> > g22earbug.zip
> > --
> > View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/issue-deploying-webapp-with-security-realm-tp334180p841923.html
> > Sent from the Users mailing list archive at Nabble.com.
> >
>



-- 
Ivan

Mime
View raw message