You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by anand <si...@gmail.com> on 2009/12/01 07:47:47 UTC

UserManager Bean confi Doesn't exits in repository.xml

Hello Users,

                  I was implementing UserManagerImpl class that implements
the UserManager Interface. And then edited repository.xml in order to
include the UserManager implementing class. 
as
<Security appName="Jackrabbit">
        
<SecurityManager
class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager"
workspaceName="security">
        </SecurityManager>

	<AccessManager class="auth.SimpleAccessManager">
          </AccessManager>

	<LoginModule class="sample.module.SampleLoginModule">     
	</LoginModule> 

	<!-- UserManager used to create new users -->
	<UserManager
class="org.apache.jackrabbit.core.security.user.UserManagerImpl">
        </UserManager>

    </Security>

But when i executed the program then error comes like this

594 [AWT-EventQueue-0] WARN
org.apache.jackrabbit.core.config.ConfigurationErrorHandler - Warning
parsing the configuration at line 64 using system id
file:/home/sda_tr1/NetBeansProject/JLogin/repository.xml:
org.xml.sax.SAXParseException: Element type "UserManager" must be declared.

637 [AWT-EventQueue-0] WARN
org.apache.jackrabbit.core.config.ConfigurationErrorHandler - Warning
parsing the configuration at line 66 using system id
file:/home/sda_tr1/NetBeansProject/JLogin/repository.xml:
org.xml.sax.SAXParseException: The content of element type "Security" must
match "(SecurityManager?,AccessManager?,LoginModule?)".

Dec 1, 2009 11:49:57 AM org.apache.jackrabbit.core.FirstHop sim
SEVERE: null
org.apache.jackrabbit.core.config.ConfigurationException: Configuration
element PersistenceManager not found in Repository.
        

Why this persistence Manager bug is coming as repository is working fine
when i load it on browser?

Thanks,
simer
-- 
View this message in context: http://n4.nabble.com/UserManager-Bean-confi-Doesn-t-exits-in-repository-xml-tp931945p931945.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Re: UserManager Bean confi Doesn't exits in repository.xml

Posted by simer anand <si...@gmail.com>.
Hello Marcel,

On Tue, Dec 1, 2009 at 7:26 PM, Marcel Reutegger
<ma...@gmx.net>wrote:

> Hi,
>
> the user manager implementation in jackrabbit 1.5.x is not pluggable.
> a configuration option will be available in 2.0 but as a child element
> of the SecurityManager. see preliminary 2.0 dtd:
>
> http://svn.eu.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-core/src/main/resources/org/apache/jackrabbit/core/config/repository-2.0.dtd
>
> regards
>  marcel
>

So i should proceed to apache's jackrabbit 2.0 to implement UserManager in
order to add new users.

Thanks for support
simer

Re: UserManager Bean confi Doesn't exits in repository.xml

Posted by Marcel Reutegger <ma...@gmx.net>.
Hi,

the user manager implementation in jackrabbit 1.5.x is not pluggable.
a configuration option will be available in 2.0 but as a child element
of the SecurityManager. see preliminary 2.0 dtd:
http://svn.eu.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-core/src/main/resources/org/apache/jackrabbit/core/config/repository-2.0.dtd

regards
 marcel

On Tue, Dec 1, 2009 at 07:47, anand <si...@gmail.com> wrote:
>
> Hello Users,
>
>                  I was implementing UserManagerImpl class that implements
> the UserManager Interface. And then edited repository.xml in order to
> include the UserManager implementing class.
> as
> <Security appName="Jackrabbit">
>
> <SecurityManager
> class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager"
> workspaceName="security">
>        </SecurityManager>
>
>        <AccessManager class="auth.SimpleAccessManager">
>          </AccessManager>
>
>        <LoginModule class="sample.module.SampleLoginModule">
>        </LoginModule>
>
>        <!-- UserManager used to create new users -->
>        <UserManager
> class="org.apache.jackrabbit.core.security.user.UserManagerImpl">
>        </UserManager>
>
>    </Security>
>
> But when i executed the program then error comes like this
>
> 594 [AWT-EventQueue-0] WARN
> org.apache.jackrabbit.core.config.ConfigurationErrorHandler - Warning
> parsing the configuration at line 64 using system id
> file:/home/sda_tr1/NetBeansProject/JLogin/repository.xml:
> org.xml.sax.SAXParseException: Element type "UserManager" must be declared.
>
> 637 [AWT-EventQueue-0] WARN
> org.apache.jackrabbit.core.config.ConfigurationErrorHandler - Warning
> parsing the configuration at line 66 using system id
> file:/home/sda_tr1/NetBeansProject/JLogin/repository.xml:
> org.xml.sax.SAXParseException: The content of element type "Security" must
> match "(SecurityManager?,AccessManager?,LoginModule?)".
>
> Dec 1, 2009 11:49:57 AM org.apache.jackrabbit.core.FirstHop sim
> SEVERE: null
> org.apache.jackrabbit.core.config.ConfigurationException: Configuration
> element PersistenceManager not found in Repository.
>
>
> Why this persistence Manager bug is coming as repository is working fine
> when i load it on browser?
>
> Thanks,
> simer
> --
> View this message in context: http://n4.nabble.com/UserManager-Bean-confi-Doesn-t-exits-in-repository-xml-tp931945p931945.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>

Re: UserManager Bean confi Doesn't exits in repository.xml

Posted by simer anand <si...@gmail.com>.
On Tue, Dec 1, 2009 at 2:46 PM, Thomas Müller <th...@day.com>wrote:

> Hi,
>
> Sorry, why did you add this to the repository.xml?
>
>       <UserManager
> class="org.apache.jackrabbit.core.security.user.UserManagerImpl">
>       </UserManager>
>
> Did somebody tell you to? Do you have a link?
>
> Actually "org.apache.jackrabbit.core.security.user.UserManagerImpl" is to
be replaced with class path that implements UserManager

Thanks,
simer

Re: UserManager Bean confi Doesn't exits in repository.xml

Posted by Thomas Müller <th...@day.com>.
Hi,

> Yeah i was told to configure the UserManager under SecurityManager in
> configuration file in order to create new users.

Adding the UserManager in the repository.xml (like you did) is wrong.
Unfortunately I can't help you. I don't know much about security in Jackrabbit.
The only thing I found is this link:

http://jackrabbit.apache.org/jackrabbit-configuration.html#JackrabbitConfiguration-Securityconfiguration

I'm not sure if it's outdated however.

Regards,
Thomas

Re: UserManager Bean confi Doesn't exits in repository.xml

Posted by simer anand <si...@gmail.com>.
On Tue, Dec 1, 2009 at 2:46 PM, Thomas Müller <th...@day.com>wrote:

> Hi,
>
> Sorry, why did you add this to the repository.xml?
>
>       <UserManager
> class="org.apache.jackrabbit.core.security.user.UserManagerImpl">
>       </UserManager>
>
> Did somebody tell you to? Do you have a link?
>
> Regards,
> Thomas
>
> On Tue, Dec 1, 2009 at 10:22 AM, simer anand <si...@gmail.com>
> wrote:
> > On Tue, Dec 1, 2009 at 2:13 PM, Thomas Müller <thomas.mueller@day.com
> >wrote:
> >
> >> Hi,
> >>
> >> Could you post the complete repository.xml file?
> >>
> >> Regards,
> >> Thomas
> >>
> >>
> > Hello Thomas,
> >
> >  *<?xml* version="1.0"*?>*
> > **
> > *   *
> > *<!DOCTYPE *Repository PUBLIC "-//The Apache Software Foundation//DTD
> > Jackrabbit 1.5//EN"
> >
> > "http://jackrabbit.apache.org/dtd/repository-1.5.dtd"*>*
> > **
> > *<Repository>*
> >
> >    *<FileSystem*
> class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"*>*
> >        *<param* name="path" value="${rep.home}/repository"*/>*
> >    *</FileSystem>*
> >
> >    *<Security* appName="Jackrabbit"*>*
> >
> >        *<SecurityManager*
> > class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager"
> > workspaceName="security"*>*
> >
> >        *</SecurityManager>*
> >
> >
> >        *<AccessManager* class="auth.SimpleAccessManager"*>*
> >
> >        *</AccessManager>*
> >
> >        *<LoginModule* class="sample.module.SampleLoginModule"*>*
> >        *</LoginModule>*
> >
> >
> >        *<UserManager*
> > class="org.apache.jackrabbit.core.security.user.UserManagerImpl"*>*
> >        *</UserManager>*
> >    *</Security>*
> >
> >
> >    *<Workspaces* rootPath="${rep.home}/workspaces"
> > defaultWorkspace="default"*/>*
> >    *<Workspace* name="${wsp.name}"*>*
> >
> >        *<FileSystem*
> > class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"*>*
> >            *<param* name="path" value="${wsp.home}"*/>*
> >        *</FileSystem>*
> >
> >        *<PersistenceManager*
> >
> class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager"*>*
> >          *<param* name="url"
> value="jdbc:derby:${wsp.home}/db;create=true"*/>*
> >          *<param* name="schemaObjectPrefix" value="${wsp.name}_"*/>*
> >        *</PersistenceManager>*
> >
> >        *<SearchIndex*
> > class="org.apache.jackrabbit.core.query.lucene.SearchIndex"*>*
> >            *<param* name="path" value="${wsp.home}/index"*/>*
> >            *<param* name="textFilterClasses"
> >
> value="org.apache.jackrabbit.extractor.PlainTextExtractor,org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackrabbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerPointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apache.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extractor.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.apache.jackrabbit.extractor.XMLTextExtractor"*/>*
> >            *<param* name="extractorPoolSize" value="2"*/>*
> >            *<param* name="supportHighlighting" value="true"*/>*
> >        *</SearchIndex>*
> >    *</Workspace>*
> >
> >
> >    *<Versioning* rootPath="${rep.home}/version"*>*
> >
> >        *<FileSystem*
> > class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"*>*
> >            *<param* name="path" value="${rep.home}/version" */>*
> >        *</FileSystem>*
> >
> >        *<PersistenceManager*
> >
> class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager"*>*
> >          *<param* name="url"
> > value="jdbc:derby:${rep.home}/version/db;create=true"*/>*
> >          *<param* name="schemaObjectPrefix" value="version_"*/>*
> >        *</PersistenceManager>*
> >    *</Versioning>*
> >
> >
> >    *<SearchIndex*
> > class="org.apache.jackrabbit.core.query.lucene.SearchIndex"*>*
> >        *<param* name="path" value="${rep.home}/repository/index"*/>*
> >        *<param* name="textFilterClasses"
> >
> value="org.apache.jackrabbit.extractor.PlainTextExtractor,org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackrabbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerPointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apache.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extractor.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.apache.jackrabbit.extractor.XMLTextExtractor"*/>*
> >        *<param* name="extractorPoolSize" value="2"*/>*
> >        *<param* name="supportHighlighting" value="true"*/>*
> >    *</SearchIndex>*
> > *</Repository>*
> >
>

Hello Thomas,

Yeah i was told to configure the UserManager under SecurityManager in
configuration file in order to create new users.
I have classes that connects to repository using RMI and also passing
session to SessionImpl class in order to use createUser() method to add new
Users.

Correct me.

Thanks,
simer

Re: UserManager Bean confi Doesn't exits in repository.xml

Posted by Thomas Müller <th...@day.com>.
Hi,

Sorry, why did you add this to the repository.xml?

       <UserManager
class="org.apache.jackrabbit.core.security.user.UserManagerImpl">
       </UserManager>

Did somebody tell you to? Do you have a link?

Regards,
Thomas

On Tue, Dec 1, 2009 at 10:22 AM, simer anand <si...@gmail.com> wrote:
> On Tue, Dec 1, 2009 at 2:13 PM, Thomas Müller <th...@day.com>wrote:
>
>> Hi,
>>
>> Could you post the complete repository.xml file?
>>
>> Regards,
>> Thomas
>>
>>
> Hello Thomas,
>
>  *<?xml* version="1.0"*?>*
> **
> *   *
> *<!DOCTYPE *Repository PUBLIC "-//The Apache Software Foundation//DTD
> Jackrabbit 1.5//EN"
>
> "http://jackrabbit.apache.org/dtd/repository-1.5.dtd"*>*
> **
> *<Repository>*
>
>    *<FileSystem* class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"*>*
>        *<param* name="path" value="${rep.home}/repository"*/>*
>    *</FileSystem>*
>
>    *<Security* appName="Jackrabbit"*>*
>
>        *<SecurityManager*
> class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager"
> workspaceName="security"*>*
>
>        *</SecurityManager>*
>
>
>        *<AccessManager* class="auth.SimpleAccessManager"*>*
>
>        *</AccessManager>*
>
>        *<LoginModule* class="sample.module.SampleLoginModule"*>*
>        *</LoginModule>*
>
>
>        *<UserManager*
> class="org.apache.jackrabbit.core.security.user.UserManagerImpl"*>*
>        *</UserManager>*
>    *</Security>*
>
>
>    *<Workspaces* rootPath="${rep.home}/workspaces"
> defaultWorkspace="default"*/>*
>    *<Workspace* name="${wsp.name}"*>*
>
>        *<FileSystem*
> class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"*>*
>            *<param* name="path" value="${wsp.home}"*/>*
>        *</FileSystem>*
>
>        *<PersistenceManager*
> class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager"*>*
>          *<param* name="url" value="jdbc:derby:${wsp.home}/db;create=true"*/>*
>          *<param* name="schemaObjectPrefix" value="${wsp.name}_"*/>*
>        *</PersistenceManager>*
>
>        *<SearchIndex*
> class="org.apache.jackrabbit.core.query.lucene.SearchIndex"*>*
>            *<param* name="path" value="${wsp.home}/index"*/>*
>            *<param* name="textFilterClasses"
> value="org.apache.jackrabbit.extractor.PlainTextExtractor,org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackrabbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerPointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apache.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extractor.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.apache.jackrabbit.extractor.XMLTextExtractor"*/>*
>            *<param* name="extractorPoolSize" value="2"*/>*
>            *<param* name="supportHighlighting" value="true"*/>*
>        *</SearchIndex>*
>    *</Workspace>*
>
>
>    *<Versioning* rootPath="${rep.home}/version"*>*
>
>        *<FileSystem*
> class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"*>*
>            *<param* name="path" value="${rep.home}/version" */>*
>        *</FileSystem>*
>
>        *<PersistenceManager*
> class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager"*>*
>          *<param* name="url"
> value="jdbc:derby:${rep.home}/version/db;create=true"*/>*
>          *<param* name="schemaObjectPrefix" value="version_"*/>*
>        *</PersistenceManager>*
>    *</Versioning>*
>
>
>    *<SearchIndex*
> class="org.apache.jackrabbit.core.query.lucene.SearchIndex"*>*
>        *<param* name="path" value="${rep.home}/repository/index"*/>*
>        *<param* name="textFilterClasses"
> value="org.apache.jackrabbit.extractor.PlainTextExtractor,org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackrabbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerPointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apache.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extractor.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.apache.jackrabbit.extractor.XMLTextExtractor"*/>*
>        *<param* name="extractorPoolSize" value="2"*/>*
>        *<param* name="supportHighlighting" value="true"*/>*
>    *</SearchIndex>*
> *</Repository>*
>

Re: UserManager Bean confi Doesn't exits in repository.xml

Posted by simer anand <si...@gmail.com>.
On Tue, Dec 1, 2009 at 2:13 PM, Thomas Müller <th...@day.com>wrote:

> Hi,
>
> Could you post the complete repository.xml file?
>
> Regards,
> Thomas
>
>
Hello Thomas,

 *<?xml* version="1.0"*?>*
**
*   *
*<!DOCTYPE *Repository PUBLIC "-//The Apache Software Foundation//DTD
Jackrabbit 1.5//EN"

"http://jackrabbit.apache.org/dtd/repository-1.5.dtd"*>*
**
*<Repository>*

    *<FileSystem* class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"*>*
        *<param* name="path" value="${rep.home}/repository"*/>*
    *</FileSystem>*

    *<Security* appName="Jackrabbit"*>*

        *<SecurityManager*
class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager"
workspaceName="security"*>*

        *</SecurityManager>*


	*<AccessManager* class="auth.SimpleAccessManager"*>*

        *</AccessManager>*

	*<LoginModule* class="sample.module.SampleLoginModule"*>*
	*</LoginModule>*

	
	*<UserManager*
class="org.apache.jackrabbit.core.security.user.UserManagerImpl"*>*
        *</UserManager>*
    *</Security>*


    *<Workspaces* rootPath="${rep.home}/workspaces"
defaultWorkspace="default"*/>*
    *<Workspace* name="${wsp.name}"*>*

        *<FileSystem*
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"*>*
            *<param* name="path" value="${wsp.home}"*/>*
        *</FileSystem>*

        *<PersistenceManager*
class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager"*>*
          *<param* name="url" value="jdbc:derby:${wsp.home}/db;create=true"*/>*
          *<param* name="schemaObjectPrefix" value="${wsp.name}_"*/>*
        *</PersistenceManager>*

        *<SearchIndex*
class="org.apache.jackrabbit.core.query.lucene.SearchIndex"*>*
            *<param* name="path" value="${wsp.home}/index"*/>*
            *<param* name="textFilterClasses"
value="org.apache.jackrabbit.extractor.PlainTextExtractor,org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackrabbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerPointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apache.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extractor.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.apache.jackrabbit.extractor.XMLTextExtractor"*/>*
            *<param* name="extractorPoolSize" value="2"*/>*
            *<param* name="supportHighlighting" value="true"*/>*
        *</SearchIndex>*
    *</Workspace>*


    *<Versioning* rootPath="${rep.home}/version"*>*

        *<FileSystem*
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"*>*
            *<param* name="path" value="${rep.home}/version" */>*
        *</FileSystem>*

        *<PersistenceManager*
class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager"*>*
          *<param* name="url"
value="jdbc:derby:${rep.home}/version/db;create=true"*/>*
          *<param* name="schemaObjectPrefix" value="version_"*/>*
        *</PersistenceManager>*
    *</Versioning>*


    *<SearchIndex*
class="org.apache.jackrabbit.core.query.lucene.SearchIndex"*>*
        *<param* name="path" value="${rep.home}/repository/index"*/>*
        *<param* name="textFilterClasses"
value="org.apache.jackrabbit.extractor.PlainTextExtractor,org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackrabbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerPointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apache.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extractor.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.apache.jackrabbit.extractor.XMLTextExtractor"*/>*
        *<param* name="extractorPoolSize" value="2"*/>*
        *<param* name="supportHighlighting" value="true"*/>*
    *</SearchIndex>*
*</Repository>*

Re: UserManager Bean confi Doesn't exits in repository.xml

Posted by Thomas Müller <th...@day.com>.
Hi,

Could you post the complete repository.xml file?

Regards,
Thomas

On Tue, Dec 1, 2009 at 8:27 AM, anand <si...@gmail.com> wrote:
>
> Hello Users,
>
> I' m using Jackrabbit1.5.6. version
>
>
> Thanks,
> simer
> --
> View this message in context: http://n4.nabble.com/UserManager-Bean-confi-Doesn-t-exits-in-repository-xml-tp931945p931966.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>

Re: UserManager Bean confi Doesn't exits in repository.xml

Posted by anand <si...@gmail.com>.
Hello Users, 

I' m using Jackrabbit1.5.6. version


Thanks,
simer
-- 
View this message in context: http://n4.nabble.com/UserManager-Bean-confi-Doesn-t-exits-in-repository-xml-tp931945p931966.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.