You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Shanmugam Gopal <ha...@hotmail.com> on 2006/07/25 20:14:45 UTC

Jackrabbit Model 2 Deployment in Tomcat 5.5.17

Hi,

I am trying for Model 2  deployment of Jackrabbit repository in Tomcat 
5.5.17
I am getting java.lang.ClassCastException:
org.apache.jackrabbit.core.jndi.BindableRepository
exception  when I try to cast the looked up repository to
javax.jcr.Repository.

The object returned is a BindableRepository which is configured in the 
server.xml as per model 2 deployment.

I have all the jars in WEB-INF/LIB folder and common/LIB folder as well.

Even I tried with the following tag in server.xml

<host ...>
    <context crossContext="true" docBase="..." path="..."/>
</host>

It doesn't work at the same time this works fine in Tomcat 5.0.

Is there any problem with Tomcat 5.5.17 or any fix available for this ?

Regards,
Shanmugam G

_________________________________________________________________
Who will win Bollywood’s most coveted IIFA awards? You decide! Cast your 
vote! http://server1.msn.co.in/sp06/IIFA2006/static/weekend.asp


Re: Jackrabbit Model 2 Deployment in Tomcat 5.5.17

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On 7/25/06, Shanmugam Gopal <ha...@hotmail.com> wrote:
> I am trying for Model 2  deployment of Jackrabbit repository in Tomcat
> 5.5.17 I am getting java.lang.ClassCastException:
> org.apache.jackrabbit.core.jndi.BindableRepository
> exception  when I try to cast the looked up repository to
> javax.jcr.Repository.

It's most likely caused by the Repository class not being shared
between the web applications. If each of them loads the class locally
from WEB-INF/lib/jcr-1.0.jar and not from shared/lib/jcr-1.0.jar or
some other shared location, then they won't be able to share a
Repository.

BR,

Jukka Zitting

-- 
Yukatan - http://yukatan.fi/ - info@yukatan.fi
Software craftsmanship, JCR consulting, and Java development