Announcement Announcement Module
No announcement yet.
Realm/Tomcat/Acegi Configuration Problem Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Realm/Tomcat/Acegi Configuration Problem

    hello guys

    i have already resolved how work with acegi (studying) the examples in the forum and the 2 war files in the acegi distribution
    , well i am trying to work now with Realm and i am following the simple steps to do that.

    well i had the same obvious question that i saw in other post , where is the famous acegisecurity.xml ???

    so found this post that had the same question

    and 2 possible answer here

    well how should be this acegisecurity.xml ???? , i make a copy of the second link and place the mentionated file into the
    /conf folder (is just almost how the sample-tutorial - users roles and passwords) (i am using almost the same example)

    the same with the jars , and of course i changed the server.xml

    but when i start up the tomcat i saw this message

    21-sep-2006 20:24:20 org.apache.tomcat.util.digester.Digester startElement
    GRAVE: Begin event threw error
    java.lang.NoClassDefFoundError: org/acegisecurity/AuthenticationException
    	at java.lang.Class.getDeclaredConstructors0(Native Method)
    	at java.lang.Class.privateGetDeclaredConstructors(
    	at java.lang.Class.getConstructor0(
    	at java.lang.Class.newInstance0(
    	at java.lang.Class.newInstance(
    	at org.apache.tomcat.util.digester.ObjectCreateRule.begin(
    	at org.apache.tomcat.util.digester.Rule.begin(
    	at org.apache.tomcat.util.digester.Digester.startElement(
    	at org.apache.tomcat.util.digester.Digester.parse(
    	at org.apache.catalina.startup.Catalina.load(
    	at org.apache.catalina.startup.Catalina.load(
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    	at java.lang.reflect.Method.invoke(
    	at org.apache.catalina.startup.Bootstrap.load(
    	at org.apache.catalina.startup.Bootstrap.main(
    how i can resolve this??? , i am following the instructions

    i am working with tomcat 5.5.9 , acegi 1.0.1 and spring 2.0 RC2
    why i want to work with Realm?? , well i am making an integration with struts and i am using "role" in the action's definition
    in the struts-config, i know how to work with realm with struts , but now i want make this integration

    second question:

    <Realm className="org.acegisecurity.adapters.catalina.CatalinaAcegiUserRealm"
                 key="my_password" />
    sorry for my ignorance, but the key and the password, for what reason is??? , in what moment is used this???
    i am rookie with realm-acegi

    i saw this

    Adapters create Authentication objects which are immutable and implement the AuthByAdapter  interface. These objects store the hash of a key that is defined by the adapter. This allows the Authentication object to be validated by the AuthByAdapterProvider. This authentication provider is defined as follows:
    <bean id="authByAdapterProvider" class="org.acegisecurity.adapters.AuthByAdapterProvider">
      <property name="key"><value>my_password</value></property>
    i am confuse in this little point, i hope that some good guy can share his knowledge

    thanks so much for advanced