Update:

Bundling Jackrabbit-core jar did not help:

java.lang.ClassCastException: org.apache.jackrabbit.core.observation.EventImpl cannot be cast to org.apache.jackrabbit.core.observation.EventImpl

Strange?

> java -version
java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

--
==================

Erik Buene
Senior Developer
Idium AS

--- Begin Message ---
Hi,

We've now set up sling/jackrabbit with x instances in a cluster talking to the same mysql database (which will also be clustered later on). This seem to work ok in general.

However our application requires some processing of events when nodes in the repository changes - this processing will in turn perform other changes in the repository. This should just be done by one node (the "local" node that triggered the event).

Sadly, the jcr Event interface does not have any method to determine if an event is local or external - but it seems the Jackrabbit implementation (org.apache.jackrabbit.core.observation.EventImpl) does.

Checking the instance of Event captured by our EventListener confirms that it is of this implementation. But performing a cast to EventImpl fails with a ClassCastException "no class def found". This is probably due to the ClassLoader of our bundle not having access to the org.apache.jackrabbit.core.observation package and no other bundles exporting this package.

Is my understanding of the problem correct? And if so, is there any other way than to include the jackrabbit jar file to our bundle to get the system to cast Event to EventImpl?


--
==================

Erik Buene
Senior Developer
Idium AS


--- End Message ---

Reply via email to