ChadDavis | 1 Dec 02:24 2009
Picon

RMI Shutdown

I'm creating my own server wrapper around a RMI exposed repository.
I'm trying to figure out how to properly write the shutdown method.

In my start up method, I do the following:

 RemoteRepository remote = factory.getRemoteRepository(repository);
 Registry reg = LocateRegistry.createRegistry(1100);
 reg.rebind("jackrabbit", remote);

In my shutdown method, I would like to follow RMI recommendations for
clean up.  This includes two steps:

1) UnicastRemoteObject.unexport ()
2) reg.unbind()

Since, the ServerRepository object itself extends UnicastRemoteObject,
I wonder if it takes care of step one itself.  Or perhaps there's some
higher level method for shutdown of the RMI'ness of the repository.

And, should I also call the JackrabbitRepository's shutdown method?  I
think not, since I'm using the TransientRepository.  Is this accurate?

anand | 1 Dec 07:47 2009
Picon

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
(Continue reading)

Felix Meschberger | 1 Dec 08:12 2009
Picon

Re: RMI Shutdown

Hi,

ChadDavis schrieb:
> I'm creating my own server wrapper around a RMI exposed repository.
> I'm trying to figure out how to properly write the shutdown method.
> 
> In my start up method, I do the following:
> 
>  RemoteRepository remote = factory.getRemoteRepository(repository);
>  Registry reg = LocateRegistry.createRegistry(1100);
>  reg.rebind("jackrabbit", remote);
> 
> 
> In my shutdown method, I would like to follow RMI recommendations for
> clean up.  This includes two steps:
> 
> 1) UnicastRemoteObject.unexport ()
> 2) reg.unbind()
> 
> Since, the ServerRepository object itself extends UnicastRemoteObject,
> I wonder if it takes care of step one itself.  Or perhaps there's some
> higher level method for shutdown of the RMI'ness of the repository.

No, the AFAICT the ServerRespository does not implement these steps, you
would have to do it expressly in your application (and don't forget to
remove the RMI registry if you created it yourself).

The ServerRepository does not implement the JackrabbitRepository
interface, in fact the jcr-rmi libray does not contain an implementation
of that, thus there is no "official" shutdown method in this context
(Continue reading)

anand | 1 Dec 08:27 2009
Picon

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


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.

Thomas Müller | 1 Dec 10:13 2009

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

Hi,

Could you post the complete repository.xml file?

Regards,
Thomas

On Tue, Dec 1, 2009 at 8:27 AM, anand <simer.anand88 <at> 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.
>

simer anand | 1 Dec 10:22 2009
Picon

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

On Tue, Dec 1, 2009 at 2:13 PM, Thomas Müller <thomas.mueller <at> 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"
(Continue reading)

Sunil Dhage | 1 Dec 10:32 2009

RE: Error Updating a node

Hi Cesar,

It may be because the node, which you are trying to checkout is not versionable. or the former version does
not have a primary property associated with that.

From javadocs:  Node will throw ItemNotFoundException  if this node does not have a primary child item,
either because none is declared in the node type or because a declared primary item is not present on this
node instance. 

please double check whether the node actually have a primary property.
if yes, then did you set the property at the time of node addition.  i.e. before update.

/Sunil Dhage
________________________________________
From: CesarX [cingaruca <at> gmail.com]
Sent: Monday, November 30, 2009 10:08 PM
To: users <at> jackrabbit.apache.org
Subject: Error Updating a node

Hi everybody,

i'm using jackrabbit with liferay 5.1, it was very good but 3 weeks ago when
i want to do an update of anyfile, my console show the next error:

this error appear in any cases and other files are normal.
 com.liferay.portal.SystemException: javax.jcr.ItemNotFoundException:
38dfef6e-ecd2-470e-bd47-bb459f57d683

        at
com.liferay.documentlibrary.util.JCRHook.updateFile(JCRHook.java:626)
(Continue reading)

Thomas Müller | 1 Dec 10:46 2009

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

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 <simer.anand88 <at> gmail.com> wrote:
> On Tue, Dec 1, 2009 at 2:13 PM, Thomas Müller <thomas.mueller <at> 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
(Continue reading)

simer anand | 1 Dec 11:24 2009
Picon

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

On Tue, Dec 1, 2009 at 2:46 PM, Thomas Müller <thomas.mueller <at> 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 <simer.anand88 <at> gmail.com>
> wrote:
> > On Tue, Dec 1, 2009 at 2:13 PM, Thomas Müller <thomas.mueller <at> day.com
> >wrote:
> >
> >> Hi,
> >>
> >> Could you post the complete repository.xml file?
> >>
> >> Regards,
> >> Thomas
> >>
> >>
> > Hello Thomas,
> >
(Continue reading)

simer anand | 1 Dec 11:26 2009
Picon

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

On Tue, Dec 1, 2009 at 2:46 PM, Thomas Müller <thomas.mueller <at> 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

Gmane