Hi all,
I am using ECM, and I have a class that needs to get an instance of the ComponentManager.. So, I added the class to my config file as a component, and have it implementing Composable. However, it never seems to be called by the container..
1st question: is your component being created in the first place?
If not, then you need to make sure that happens. Either look it up directly, or put a configuration for it in the xconf file.
If so, then there is something wrong. It might be that the Composable that the ECM is using to determine whether to pass the ComponentManager is in a different classloader than the one that is used for the component you created. Remember that two classes with the exact same bytecode will be interpreted at run time as different classes if they don't come from the same base classloader.
My roles file looks like this:
<component role="org.apache.fulcrum.security.adapter.osuser.BaseFulcrumProvider" class="org.apache.fulcrum.security.adapter.osuser.BaseFulcrumProvider"> </component>
I committed a copy with these changes here: http://cvs.apache.org/viewcvs/jakarta-turbine-fulcrum/security/src/java/org/ apache/fulcrum/security/adapter/osuser/BaseFulcrumProvider.java
Is this a limitation of using ECM?
Eric
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
"They that give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
- Benjamin Franklin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
