geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodger <eternalj...@gmail.com>
Subject Re: Error when deploying a realm with a login module:org.apache.geronimo.openejb.OpenejbRemoteLoginModule
Date Wed, 10 Jun 2009 03:30:26 GMT
Yes,that's the trick.Thanks.

2009/6/10, viola.lu <viola.lu@gmail.com>:
>
> pls add openejb dependency as below:
> <dependency>
>                 <groupId> org.apache.geronimo.configs</groupId>
>                 <artifactId>openejb</artifactId>
>                 <type>car</type>
>             </dependency>
>
> Then it will find OpenEjbremoteloginmodule class.
>
>
>
> Rodger-10 wrote:
>>
>> My geronimo version is 2.1.4
>> And in repository,there is no client-security.
>>
>> Thanks.
>>
>> 2009/6/9, David Jencks <david_jencks@yahoo.com>:
>>> I don't see anything obviously wrong.
>>>
>>> It _really_ shouldn't make a difference but could you try using client-
>>> security instead of j2ee-security in your plan and also include the
>>> geronimo version in the dependency?
>>>
>>> Also, what is the geronimo version?
>>>
>>> thanks
>>> david jencks
>>>
>>> On Jun 9, 2009, at 6:16 AM, Rodger wrote:
>>>
>>>> My realm deploy plan named security_realm.xml is as follow:
>>>> =====================================================================
>>>> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>>>>     <environment>
>>>>         <moduleId>
>>>>             <groupId>console.realm</groupId>
>>>>             <artifactId>remote-openejb-realm</artifactId>
>>>>             <version>1.0</version>
>>>>             <type>car</type>
>>>>         </moduleId>
>>>>         <dependencies>
>>>>             <dependency>
>>>>                 <groupId>org.apache.geronimo.framework</groupId>
>>>>                 <artifactId>j2ee-security</artifactId>
>>>>                 <type>car</type>
>>>>             </dependency>
>>>>         </dependencies>
>>>>     </environment>
>>>>     <gbean name="remote-openejb-realm"
>>>> 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">
>>>>         <attribute name="realmName">remote-openejb-realm</attribute>
>>>>         <reference name="ServerInfo">
>>>>             <name>ServerInfo</name>
>>>>         </reference>
>>>>         <xml-reference name="LoginModuleConfiguration">
>>>>             <log:login-config
>>>> xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-2.0
>>>> ">
>>>>                 <log:login-module control-flag="REQUIRED" wrap-
>>>> principals="false">
>>>>                     <log:login-domain-name>remote-openejb-realm</
>>>> log:login-domain-name>
>>>>                     <log:login-module-
>>>> class>org.apache.geronimo.openejb.OpenejbRemoteLoginModule</
>>>> log:login-module-class>
>>>>                     <log:option name="RemoteSecurityRealm">test-
>>>> realm</log:option>
>>>>                     <log:option name="ServerURI">ejbd://localhost:
>>>> 4201</log:option>
>>>>                 </log:login-module>
>>>>             </log:login-config>
>>>>         </xml-reference>
>>>>     </gbean>
>>>> </module>
>>>> =
>>>> =
>>>> =
>>>> ======================================================================
>>>> When
>>>> bin>java -jar deployer.jar deploy d:\security_realm.xml
>>>> The error is as follows:
>>>>     Error: Operation failed: start of
>>>>     console.realm/remote-openejb-realm/1.0/car failed
>>>>
>>>>         Unknown start exception
>>>>
>>>>         Configuration console.realm/remote-openejb-realm/1.0/car
>>>> failed to
>>>>     start due to the following reasons:
>>>>
>>>>       The service
>>>>     ServiceModule=console.realm/remote-openejb-realm/1.0/
>>>> car,j2eeType=SecurityRe
>>>> alm,name=remote-openejb-realm
>>>>     did not start because
>>>>     org.apache.geronimo.openejb.OpenejbRemoteLoginModule in
>>>> classloader
>>>>     console.realm/remote-openejb-realm/1.0/car
>>>>
>>>> It seems that the system can not find the class
>>>> org.apache.geronimo.openejb.OpenejbRemoteLoginModule.
>>>> I get the reference from
>>>> http://cwiki.apache.org/GMOxDOC22/configuring-javaee-app-client-security.html
>>>> --
>>>> Best Regards,
>>>> Rodger.
>>>
>>>
>>
>>
>> --
>> Best Regards,
>> Rodger.
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Error-when-deploying-a-realm-with-a-login-module%3Aorg.apache.geronimo.openejb.OpenejbRemoteLoginModule-tp23942630s134p23955030.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


-- 
Best Regards,
Rodger.

Mime
View raw message