Have you given a dependency on the security realm configuration? The
dependencies tag should look something like the following:
<sys:dependencies>
<sys:dependency>
<sys:groupId>console.realm</sys:groupId>
<sys:artifactId>NaviSecurity</sys:artifactId>
<sys:version>1.0</sys:version>
<sys:type>car</sys:type>
</sys:dependency>
</sys:dependencies>
Also, post the complete stackTrace if the error still remains.
++Vamsi
On Jan 27, 2008 12:53 AM, MarcoLaponder <[EMAIL PROTECTED]> wrote:
>
> Geronimo 2.0.2, I added the realm from the console
>
> Kind regards
> Marco Laponder
>
>
> Vamsavardhana Reddy-2 wrote:
> >
> > Which version of Geronimo are you using? How is the security-realm
> > deployed?
> >
> > ++Vamsi
> >
> > On Jan 27, 2008 12:36 AM, MarcoLaponder <[EMAIL PROTECTED]>
> wrote:
> >
> >>
> >> Hi All,
> >>
> >> I have been struggling to deploy a ear containing a war with a security
> >> realm. The deploy doesnot give any errors but the ear cannot be
> started.
> >> A
> >> error appear in the log files:
> >>
> >> ERROR [GBeanInstanceState] Error while starting; GBean is now in the
> >> FAILED
> >> state:
> >> abstractName="com.kewill.interchain
> >> /javagator-ear_javagator-ear/1-default/car?configurationName=
> >> com.kewill.interchain/javagator-ear_javagator-ear/1-default/car"
> >> org.apache.geronimo.kernel.config.InvalidConfigException: Class not
> >> loadable
> >> in classloader: [
> org.apache.geronimo.kernel.config.MultiParentClassLoader
> >> id=com.kewill.interchain/javagator-ear_javagator-ear/1-default/car]
> >>
> >>
> >> Ik have the following web.xml:
> >>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >> <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> >> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
> >> version="2.4">
> >>
> >> <welcome-file-list>
> >> <welcome-file>index.jsp</welcome-file>
> >> </welcome-file-list>
> >> <security-constraint>
> >> <web-resource-collection>
> >> <web-resource-name>manager</web-resource-name>
> >> <url-pattern>/*</url-pattern>
> >> </web-resource-collection>
> >> <auth-constraint>
> >> <role-name>manager</role-name>
> >> </auth-constraint>
> >> </security-constraint>
> >>
> >> <login-config>
> >> <auth-method>BASIC</auth-method>
> >> <realm-name>NaviSecurity</realm-name>
> >> </login-config>
> >>
> >> <security-role>
> >> <role-name>manager</role-name>
> >> </security-role>
> >> </web-app>
> >>
> >> my geronimo-application.xml is the following:
> >>
> >> <application application-name="HelloWorldEar"
> >>
> >> xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.1
> >> "
> >> xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"
> >>
> >> xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1">
> >> <sys:environment>
> >> <sys:moduleId>
> >> <sys:groupId>com.kewill.interchain</sys:groupId>
> >> <sys:artifactId>javagator-ear_javagator-ear</sys:artifactId>
> >> <sys:version>1-default</sys:version>
> >> <sys:type>car</sys:type>
> >> </sys:moduleId>
> >> <sys:dependencies/>
> >> <sys:hidden-classes/>
> >> <sys:non-overridable-classes/>
> >> </sys:environment>
> >>
> >> <module>
> >> <web>javagator-war-1.0-SNAPSHOT.war</web>
> >>
> >> <web-app xmlns="http://geronimo.apache.org/xml/ns/web" >
> >>
> >> <security-realm-name>NaviSecurity</security-realm-name>
> >> </web-app>
> >> </module>
> >>
> >>
> >> <sec:security>
> >> <sec:role-mappings>
> >> <sec:role role-name="manager">
> >> <sec:realm realm-name="NaviSecurity">
> >> <sec:principal name="manager"
> >>
> >> class="
> org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal
> >> "
> >> />
> >> </sec:realm>
> >> </sec:role>
> >> </sec:role-mappings>
> >> </sec:security>
> >> </application>
> >>
> >> Does anyone have any tips on what I am doing wrong and how to solve
> this
> >> ?
> >>
> >> Kind regards,
> >> Marco Laponder
> >>
> >>
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/EAR-and-war-security-tp15111204s134p15111204.html
> >> Sent from the Apache Geronimo - Users mailing list archive at
> Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/EAR-and-war-security-tp15111204s134p15111587.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>