LocalHippoRepository

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

LocalHippoRepository

Ruben de Gooijer
This post has NOT been accepted by the mailing list yet.
Hi all,

I'm trying to use a LocalHippoRepository (for testing purposes), by calling the HippoRepositoryFactory.getHippoRepository() method. This gives me the following stack trace:

Caused by: javax.jcr.RepositoryException: org.hippoecm.repository.LocalHippoRepository: org.hippoecm.repository.LocalHippoRepository
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:61)
        at org.hippoecm.hipposponge.adapter.mail.test.RepositoryTest.setUp(RepositoryTest.java:20)
        ... 21 more
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.LocalHippoRepository
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:59)
        ... 22 more
Caused by: javax.jcr.RepositoryException: org.hippoecm.repository.LocalHippoRepository: org.hippoecm.repository.LocalHippoRepository
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:61)
        at org.hippoecm.hipposponge.adapter.mail.test.RepositoryTest.setUp(RepositoryTest.java:20)
        ... 21 more
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.LocalHippoRepository
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:59)
        ... 22 more

In my pom.xml I admitted the following dependencies for the Hippo ECM platform:

<dependency>
                        <groupId>javax.jcr</groupId>
                        <artifactId>jcr</artifactId>
                        <version>1.0</version>
                </dependency>
                <dependency>
                        <groupId>javax.transaction</groupId>
                        <artifactId>jta</artifactId>
                        <version>1.0.1B</version>
                </dependency>
                <dependency>
                        <groupId>org.hippoecm</groupId>
                        <artifactId>hippo-ecm-api</artifactId>
                        <version>2.02.01</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>javax.jdo</groupId>
                                        <artifactId>jdo2-api</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>jpox</groupId>
                                        <artifactId>jpox-core</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>
                <dependency>
                        <groupId>org.hippoecm</groupId>
                        <artifactId>hippo-ecm-repository-connector</artifactId>
                        <version>2.02.01</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>javax.jdo</groupId>
                                        <artifactId>jdo2-api</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>jpox</groupId>
                                        <artifactId>jpox-core</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>xerces</groupId>
                                        <artifactId>xercesImpl</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>

I guess this is a bug, or did I omit something?

Thanks.

Kind regards,
Ruben
Reply | Threaded
Open this post in threaded view
|

Re: LocalHippoRepository

Ruben de Gooijer
This post has NOT been accepted by the mailing list yet.
Thanks to Niels I now got it working. I missed the next dependency:

<dependency>
<groupId>org.hippoecm</groupId>
<artifactId>hippo-ecm-repository-engine</artifactId>
<version>${org.hippoecm.version}</version>
</dependency>

After that the repository complained about a lacking configuration file. The solution for this is to put a repository.xml configuration file onto your classpath at org.hippoecm.repository .

Ruben de Gooijer wrote
Hi all,

I'm trying to use a LocalHippoRepository (for testing purposes), by calling the HippoRepositoryFactory.getHippoRepository() method. This gives me the following stack trace:

Caused by: javax.jcr.RepositoryException: org.hippoecm.repository.LocalHippoRepository: org.hippoecm.repository.LocalHippoRepository
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:61)
        at org.hippoecm.hipposponge.adapter.mail.test.RepositoryTest.setUp(RepositoryTest.java:20)
        ... 21 more
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.LocalHippoRepository
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:59)
        ... 22 more
Caused by: javax.jcr.RepositoryException: org.hippoecm.repository.LocalHippoRepository: org.hippoecm.repository.LocalHippoRepository
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:61)
        at org.hippoecm.hipposponge.adapter.mail.test.RepositoryTest.setUp(RepositoryTest.java:20)
        ... 21 more
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.LocalHippoRepository
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:59)
        ... 22 more

In my pom.xml I admitted the following dependencies for the Hippo ECM platform:

<dependency>
                        <groupId>javax.jcr</groupId>
                        <artifactId>jcr</artifactId>
                        <version>1.0</version>
                </dependency>
                <dependency>
                        <groupId>javax.transaction</groupId>
                        <artifactId>jta</artifactId>
                        <version>1.0.1B</version>
                </dependency>
                <dependency>
                        <groupId>org.hippoecm</groupId>
                        <artifactId>hippo-ecm-api</artifactId>
                        <version>2.02.01</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>javax.jdo</groupId>
                                        <artifactId>jdo2-api</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>jpox</groupId>
                                        <artifactId>jpox-core</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>
                <dependency>
                        <groupId>org.hippoecm</groupId>
                        <artifactId>hippo-ecm-repository-connector</artifactId>
                        <version>2.02.01</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>javax.jdo</groupId>
                                        <artifactId>jdo2-api</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>jpox</groupId>
                                        <artifactId>jpox-core</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>xerces</groupId>
                                        <artifactId>xercesImpl</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>

I guess this is a bug, or did I omit something?

Thanks.

Kind regards,
Ruben
Reply | Threaded
Open this post in threaded view
|

Re: LocalHippoRepository

silke-2-2
This post has NOT been accepted by the mailing list yet.
In reply to this post by Ruben de Gooijer
While trying to do the same operation below, I am getting a ClassNotFound error although the class is in my jar file. The repository.xml is the one hippo has provided as the default one. Any advice on solving this would be greatly appreciated!!

rg.hippoecm.repository.quartz.SchedulerModule
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8Begin
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8Bootstrap
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8End
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8Namespace
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8Process
11.03.2009 23:41:54 INFO  [org.hippoecm.repository.LocalHippoRepository.getRepos
itoryConfigAsStream():235] Using file repository config: file://c:/repository.xm
l
repository configName file/c:/repository.xml
repo.path:null
11.03.2009 23:41:54 INFO  [org.hippoecm.repository.LocalHippoRepository.getRepos
itoryPath():195] Using repository path: C:\test\hippo\apache-tomcat-6.
0.16\apache-tomcat-6.0.16\webapps\repository-init\WEB-INF\storage
repo.path:C:\test\apache-tomcat-6.0.16\apache-tomcat-6.0.16\weba
pps\repository-init\WEB-INF\storage
11.03.2009 23:41:55 ERROR [org.hippoecm.repository.RepositoryServlet.init():173]
 Error while setting up JCR repository:
javax.jcr.RepositoryException: Configured bean implementation class org.hippoecm
.repository.FacetedNavigationEngineThirdImpl was not found.: org.hippoecm.reposi
tory.FacetedNavigationEngineThirdImpl: Configured bean implementation class org.
hippoecm.repository.FacetedNavigationEngineThirdImpl was not found.: org.hippoec
m.repository.FacetedNavigationEngineThirdImpl: Configured bean implementation cl
ass org.hippoecm.repository.FacetedNavigationEngineThirdImpl was not found.: org
.hippoecm.repository.FacetedNavigationEngineThirdImpl: org.hippoecm.repository.F
acetedNavigationEngineThirdImpl
        at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
hManager.java:575)
        at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:25
5)
        at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchMana
ger(RepositoryImpl.java:1600)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl$WorkspaceInfo.getSe
archManager(RepositoryImpl.java:199)
        at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImp
l.java:599)
        at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Repos
itoryImpl.java:408)
        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:
304)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl.<init>(RepositoryIm
pl.java:64)
        at org.hippoecm.repository.LocalHippoRepository$LocalRepositoryImpl.<ini
t>(LocalHippoRepository.java:249)
        at org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRep
ository.java:264)
        at org.hippoecm.repository.LocalHippoRepository.<init>(LocalHippoReposit
ory.java:149)
        at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoReposit
ory.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(Hip
poRepositoryFactory.java:175)
        at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java
:147)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1161)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
1)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4058)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
364)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:626)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.apache.jackrabbit.core.config.ConfigurationException: Configured
bean implementation class org.hippoecm.repository.FacetedNavigationEngineThirdIm
pl was not found.: org.hippoecm.repository.FacetedNavigationEngineThirdImpl: org
.hippoecm.repository.FacetedNavigationEngineThirdImpl
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:114)
        at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
hManager.java:569)
        ... 43 more
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.FacetedNavi
gationEngineThirdImpl
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:100)
        ... 44 more
org.apache.jackrabbit.core.config.ConfigurationException: Configured bean implem
entation class org.hippoecm.repository.FacetedNavigationEngineThirdImpl was not
found.: org.hippoecm.repository.FacetedNavigationEngineThirdImpl: org.hippoecm.r
epository.FacetedNavigationEngineThirdImpl
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:114)
        at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
hManager.java:569)
        at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:25
5)
        at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchMana
ger(RepositoryImpl.java:1600)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl$WorkspaceInfo.getSe
archManager(RepositoryImpl.java:199)
        at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImp
l.java:599)
        at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Repos
itoryImpl.java:408)
        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:
304)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl.<init>(RepositoryIm
pl.java:64)
        at org.hippoecm.repository.LocalHippoRepository$LocalRepositoryImpl.<ini
t>(LocalHippoRepository.java:249)
        at org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRep
ository.java:264)
        at org.hippoecm.repository.LocalHippoRepository.<init>(LocalHippoReposit
ory.java:149)
        at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoReposit
ory.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(Hip
poRepositoryFactory.java:175)
        at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java
:147)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1161)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
1)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4058)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
364)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:626)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.FacetedNavi
gationEngineThirdImpl
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:100)
        ... 44 more
java.lang.ClassNotFoundException: org.hippoecm.repository.FacetedNavigationEngin
eThirdImpl
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:100)
        at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
hManager.java:569)
        at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:25
5)
        at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchMana
ger(RepositoryImpl.java:1600)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl$WorkspaceInfo.getSe
archManager(RepositoryImpl.java:199)
        at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImp
l.java:599)
        at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Repos
itoryImpl.java:408)
        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:
304)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl.<init>(RepositoryIm
pl.java:64)
        at org.hippoecm.repository.LocalHippoRepository$LocalRepositoryImpl.<ini
t>(LocalHippoRepository.java:249)
        at org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRep
ository.java:264)
        at org.hippoecm.repository.LocalHippoRepository.<init>(LocalHippoReposit
ory.java:149)
        at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoReposit
ory.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(Hip
poRepositoryFactory.java:175)
        at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java
:147)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1161)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
1)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4058)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
364)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:626)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)



Ruben de Gooijer wrote
Hi all,

I'm trying to use a LocalHippoRepository (for testing purposes), by calling the HippoRepositoryFactory.getHippoRepository() method. This gives me the following stack trace:

Caused by: javax.jcr.RepositoryException: org.hippoecm.repository.LocalHippoRepository: org.hippoecm.repository.LocalHippoRepository
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:61)
        at org.hippoecm.hipposponge.adapter.mail.test.RepositoryTest.setUp(RepositoryTest.java:20)
        ... 21 more
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.LocalHippoRepository
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:59)
        ... 22 more
Caused by: javax.jcr.RepositoryException: org.hippoecm.repository.LocalHippoRepository: org.hippoecm.repository.LocalHippoRepository
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:61)
        at org.hippoecm.hipposponge.adapter.mail.test.RepositoryTest.setUp(RepositoryTest.java:20)
        ... 21 more
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.LocalHippoRepository
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:59)
        ... 22 more

In my pom.xml I admitted the following dependencies for the Hippo ECM platform:

<dependency>
                        <groupId>javax.jcr</groupId>
                        <artifactId>jcr</artifactId>
                        <version>1.0</version>
                </dependency>
                <dependency>
                        <groupId>javax.transaction</groupId>
                        <artifactId>jta</artifactId>
                        <version>1.0.1B</version>
                </dependency>
                <dependency>
                        <groupId>org.hippoecm</groupId>
                        <artifactId>hippo-ecm-api</artifactId>
                        <version>2.02.01</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>javax.jdo</groupId>
                                        <artifactId>jdo2-api</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>jpox</groupId>
                                        <artifactId>jpox-core</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>
                <dependency>
                        <groupId>org.hippoecm</groupId>
                        <artifactId>hippo-ecm-repository-connector</artifactId>
                        <version>2.02.01</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>javax.jdo</groupId>
                                        <artifactId>jdo2-api</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>jpox</groupId>
                                        <artifactId>jpox-core</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>xerces</groupId>
                                        <artifactId>xercesImpl</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>

I guess this is a bug, or did I omit something?

Thanks.

Kind regards,
Ruben
Reply | Threaded
Open this post in threaded view
|

Re: LocalHippoRepository

Jeroen Reijn
Administrator
This post has NOT been accepted by the mailing list yet.
Hi Silke,

Could you elaborate on which version of Hippo ECM you are trying to use?
Did you check out Rubens solution?

Regards,

Jeroen

silke wrote
While trying to do the same operation below, I am getting a ClassNotFound error although the class is in my jar file. The repository.xml is the one hippo has provided as the default one. Any advice on solving this would be greatly appreciated!!

rg.hippoecm.repository.quartz.SchedulerModule
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8Begin
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8Bootstrap
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8End
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8Namespace
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8Process
11.03.2009 23:41:54 INFO  [org.hippoecm.repository.LocalHippoRepository.getRepos
itoryConfigAsStream():235] Using file repository config: file://c:/repository.xm
l
repository configName file/c:/repository.xml
repo.path:null
11.03.2009 23:41:54 INFO  [org.hippoecm.repository.LocalHippoRepository.getRepos
itoryPath():195] Using repository path: C:\test\hippo\apache-tomcat-6.
0.16\apache-tomcat-6.0.16\webapps\repository-init\WEB-INF\storage
repo.path:C:\test\apache-tomcat-6.0.16\apache-tomcat-6.0.16\weba
pps\repository-init\WEB-INF\storage
11.03.2009 23:41:55 ERROR [org.hippoecm.repository.RepositoryServlet.init():173]
 Error while setting up JCR repository:
javax.jcr.RepositoryException: Configured bean implementation class org.hippoecm
.repository.FacetedNavigationEngineThirdImpl was not found.: org.hippoecm.reposi
tory.FacetedNavigationEngineThirdImpl: Configured bean implementation class org.
hippoecm.repository.FacetedNavigationEngineThirdImpl was not found.: org.hippoec
m.repository.FacetedNavigationEngineThirdImpl: Configured bean implementation cl
ass org.hippoecm.repository.FacetedNavigationEngineThirdImpl was not found.: org
.hippoecm.repository.FacetedNavigationEngineThirdImpl: org.hippoecm.repository.F
acetedNavigationEngineThirdImpl
        at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
hManager.java:575)
        at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:25
5)
        at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchMana
ger(RepositoryImpl.java:1600)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl$WorkspaceInfo.getSe
archManager(RepositoryImpl.java:199)
        at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImp
l.java:599)
        at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Repos
itoryImpl.java:408)
        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:
304)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl.<init>(RepositoryIm
pl.java:64)
        at org.hippoecm.repository.LocalHippoRepository$LocalRepositoryImpl.<ini
t>(LocalHippoRepository.java:249)
        at org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRep
ository.java:264)
        at org.hippoecm.repository.LocalHippoRepository.<init>(LocalHippoReposit
ory.java:149)
        at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoReposit
ory.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(Hip
poRepositoryFactory.java:175)
        at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java
:147)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1161)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
1)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4058)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
364)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:626)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.apache.jackrabbit.core.config.ConfigurationException: Configured
bean implementation class org.hippoecm.repository.FacetedNavigationEngineThirdIm
pl was not found.: org.hippoecm.repository.FacetedNavigationEngineThirdImpl: org
.hippoecm.repository.FacetedNavigationEngineThirdImpl
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:114)
        at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
hManager.java:569)
        ... 43 more
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.FacetedNavi
gationEngineThirdImpl
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:100)
        ... 44 more
org.apache.jackrabbit.core.config.ConfigurationException: Configured bean implem
entation class org.hippoecm.repository.FacetedNavigationEngineThirdImpl was not
found.: org.hippoecm.repository.FacetedNavigationEngineThirdImpl: org.hippoecm.r
epository.FacetedNavigationEngineThirdImpl
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:114)
        at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
hManager.java:569)
        at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:25
5)
        at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchMana
ger(RepositoryImpl.java:1600)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl$WorkspaceInfo.getSe
archManager(RepositoryImpl.java:199)
        at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImp
l.java:599)
        at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Repos
itoryImpl.java:408)
        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:
304)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl.<init>(RepositoryIm
pl.java:64)
        at org.hippoecm.repository.LocalHippoRepository$LocalRepositoryImpl.<ini
t>(LocalHippoRepository.java:249)
        at org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRep
ository.java:264)
        at org.hippoecm.repository.LocalHippoRepository.<init>(LocalHippoReposit
ory.java:149)
        at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoReposit
ory.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(Hip
poRepositoryFactory.java:175)
        at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java
:147)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1161)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
1)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4058)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
364)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:626)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.FacetedNavi
gationEngineThirdImpl
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:100)
        ... 44 more
java.lang.ClassNotFoundException: org.hippoecm.repository.FacetedNavigationEngin
eThirdImpl
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:100)
        at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
hManager.java:569)
        at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:25
5)
        at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchMana
ger(RepositoryImpl.java:1600)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl$WorkspaceInfo.getSe
archManager(RepositoryImpl.java:199)
        at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImp
l.java:599)
        at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Repos
itoryImpl.java:408)
        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:
304)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl.<init>(RepositoryIm
pl.java:64)
        at org.hippoecm.repository.LocalHippoRepository$LocalRepositoryImpl.<ini
t>(LocalHippoRepository.java:249)
        at org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRep
ository.java:264)
        at org.hippoecm.repository.LocalHippoRepository.<init>(LocalHippoReposit
ory.java:149)
        at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoReposit
ory.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(Hip
poRepositoryFactory.java:175)
        at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java
:147)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1161)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
1)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4058)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
364)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:626)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)



Ruben de Gooijer wrote
Hi all,

I'm trying to use a LocalHippoRepository (for testing purposes), by calling the HippoRepositoryFactory.getHippoRepository() method. This gives me the following stack trace:

Caused by: javax.jcr.RepositoryException: org.hippoecm.repository.LocalHippoRepository: org.hippoecm.repository.LocalHippoRepository
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:61)
        at org.hippoecm.hipposponge.adapter.mail.test.RepositoryTest.setUp(RepositoryTest.java:20)
        ... 21 more
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.LocalHippoRepository
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:59)
        ... 22 more
Caused by: javax.jcr.RepositoryException: org.hippoecm.repository.LocalHippoRepository: org.hippoecm.repository.LocalHippoRepository
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:61)
        at org.hippoecm.hipposponge.adapter.mail.test.RepositoryTest.setUp(RepositoryTest.java:20)
        ... 21 more
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.LocalHippoRepository
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:59)
        ... 22 more

In my pom.xml I admitted the following dependencies for the Hippo ECM platform:

<dependency>
                        <groupId>javax.jcr</groupId>
                        <artifactId>jcr</artifactId>
                        <version>1.0</version>
                </dependency>
                <dependency>
                        <groupId>javax.transaction</groupId>
                        <artifactId>jta</artifactId>
                        <version>1.0.1B</version>
                </dependency>
                <dependency>
                        <groupId>org.hippoecm</groupId>
                        <artifactId>hippo-ecm-api</artifactId>
                        <version>2.02.01</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>javax.jdo</groupId>
                                        <artifactId>jdo2-api</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>jpox</groupId>
                                        <artifactId>jpox-core</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>
                <dependency>
                        <groupId>org.hippoecm</groupId>
                        <artifactId>hippo-ecm-repository-connector</artifactId>
                        <version>2.02.01</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>javax.jdo</groupId>
                                        <artifactId>jdo2-api</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>jpox</groupId>
                                        <artifactId>jpox-core</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>xerces</groupId>
                                        <artifactId>xercesImpl</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>

I guess this is a bug, or did I omit something?

Thanks.

Kind regards,
Ruben
Reply | Threaded
Open this post in threaded view
|

Re: LocalHippoRepository

silke-2-2
This post has NOT been accepted by the mailing list yet.
Jeroen

 I am using the Release-HREPTWO-v2_03_00 build. I took the hippo-ecm-repository-engine-2.03.00.jar from that and the other dependencies for the repository and am just testing creating a HippoRepository.
It loads up the modules etc fine but it fails on loading/intiializing jcr after  reading repository.xml.
When it comes to the point where it is trying to load the SearchIndex class  org.hippoecm.repository.FacetedNavigationEngienThirdImpl from the repository.xml, it fails with a class not found error.

Danke schön

Silke


Jeroen Reijn wrote
Hi Silke,

Could you elaborate on which version of Hippo ECM you are trying to use?
Did you check out Rubens solution?

Regards,

Jeroen

silke wrote
While trying to do the same operation below, I am getting a ClassNotFound error although the class is in my jar file. The repository.xml is the one hippo has provided as the default one. Any advice on solving this would be greatly appreciated!!

rg.hippoecm.repository.quartz.SchedulerModule
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8Begin
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8Bootstrap
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8End
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8Namespace
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8Process
11.03.2009 23:41:54 INFO  [org.hippoecm.repository.LocalHippoRepository.getRepos
itoryConfigAsStream():235] Using file repository config: file://c:/repository.xm
l
repository configName file/c:/repository.xml
repo.path:null
11.03.2009 23:41:54 INFO  [org.hippoecm.repository.LocalHippoRepository.getRepos
itoryPath():195] Using repository path: C:\test\hippo\apache-tomcat-6.
0.16\apache-tomcat-6.0.16\webapps\repository-init\WEB-INF\storage
repo.path:C:\test\apache-tomcat-6.0.16\apache-tomcat-6.0.16\weba
pps\repository-init\WEB-INF\storage
11.03.2009 23:41:55 ERROR [org.hippoecm.repository.RepositoryServlet.init():173]
 Error while setting up JCR repository:
javax.jcr.RepositoryException: Configured bean implementation class org.hippoecm
.repository.FacetedNavigationEngineThirdImpl was not found.: org.hippoecm.reposi
tory.FacetedNavigationEngineThirdImpl: Configured bean implementation class org.
hippoecm.repository.FacetedNavigationEngineThirdImpl was not found.: org.hippoec
m.repository.FacetedNavigationEngineThirdImpl: Configured bean implementation cl
ass org.hippoecm.repository.FacetedNavigationEngineThirdImpl was not found.: org
.hippoecm.repository.FacetedNavigationEngineThirdImpl: org.hippoecm.repository.F
acetedNavigationEngineThirdImpl
        at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
hManager.java:575)
        at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:25
5)
        at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchMana
ger(RepositoryImpl.java:1600)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl$WorkspaceInfo.getSe
archManager(RepositoryImpl.java:199)
        at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImp
l.java:599)
        at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Repos
itoryImpl.java:408)
        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:
304)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl.<init>(RepositoryIm
pl.java:64)
        at org.hippoecm.repository.LocalHippoRepository$LocalRepositoryImpl.<ini
t>(LocalHippoRepository.java:249)
        at org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRep
ository.java:264)
        at org.hippoecm.repository.LocalHippoRepository.<init>(LocalHippoReposit
ory.java:149)
        at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoReposit
ory.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(Hip
poRepositoryFactory.java:175)
        at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java
:147)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1161)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
1)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4058)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
364)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:626)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.apache.jackrabbit.core.config.ConfigurationException: Configured
bean implementation class org.hippoecm.repository.FacetedNavigationEngineThirdIm
pl was not found.: org.hippoecm.repository.FacetedNavigationEngineThirdImpl: org
.hippoecm.repository.FacetedNavigationEngineThirdImpl
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:114)
        at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
hManager.java:569)
        ... 43 more
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.FacetedNavi
gationEngineThirdImpl
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:100)
        ... 44 more
org.apache.jackrabbit.core.config.ConfigurationException: Configured bean implem
entation class org.hippoecm.repository.FacetedNavigationEngineThirdImpl was not
found.: org.hippoecm.repository.FacetedNavigationEngineThirdImpl: org.hippoecm.r
epository.FacetedNavigationEngineThirdImpl
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:114)
        at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
hManager.java:569)
        at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:25
5)
        at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchMana
ger(RepositoryImpl.java:1600)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl$WorkspaceInfo.getSe
archManager(RepositoryImpl.java:199)
        at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImp
l.java:599)
        at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Repos
itoryImpl.java:408)
        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:
304)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl.<init>(RepositoryIm
pl.java:64)
        at org.hippoecm.repository.LocalHippoRepository$LocalRepositoryImpl.<ini
t>(LocalHippoRepository.java:249)
        at org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRep
ository.java:264)
        at org.hippoecm.repository.LocalHippoRepository.<init>(LocalHippoReposit
ory.java:149)
        at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoReposit
ory.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(Hip
poRepositoryFactory.java:175)
        at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java
:147)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1161)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
1)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4058)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
364)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:626)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.FacetedNavi
gationEngineThirdImpl
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:100)
        ... 44 more
java.lang.ClassNotFoundException: org.hippoecm.repository.FacetedNavigationEngin
eThirdImpl
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:100)
        at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
hManager.java:569)
        at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:25
5)
        at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchMana
ger(RepositoryImpl.java:1600)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl$WorkspaceInfo.getSe
archManager(RepositoryImpl.java:199)
        at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImp
l.java:599)
        at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Repos
itoryImpl.java:408)
        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:
304)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl.<init>(RepositoryIm
pl.java:64)
        at org.hippoecm.repository.LocalHippoRepository$LocalRepositoryImpl.<ini
t>(LocalHippoRepository.java:249)
        at org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRep
ository.java:264)
        at org.hippoecm.repository.LocalHippoRepository.<init>(LocalHippoReposit
ory.java:149)
        at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoReposit
ory.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(Hip
poRepositoryFactory.java:175)
        at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java
:147)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1161)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
1)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4058)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
364)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:626)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)



Ruben de Gooijer wrote
Hi all,

I'm trying to use a LocalHippoRepository (for testing purposes), by calling the HippoRepositoryFactory.getHippoRepository() method. This gives me the following stack trace:

Caused by: javax.jcr.RepositoryException: org.hippoecm.repository.LocalHippoRepository: org.hippoecm.repository.LocalHippoRepository
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:61)
        at org.hippoecm.hipposponge.adapter.mail.test.RepositoryTest.setUp(RepositoryTest.java:20)
        ... 21 more
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.LocalHippoRepository
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:59)
        ... 22 more
Caused by: javax.jcr.RepositoryException: org.hippoecm.repository.LocalHippoRepository: org.hippoecm.repository.LocalHippoRepository
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:61)
        at org.hippoecm.hipposponge.adapter.mail.test.RepositoryTest.setUp(RepositoryTest.java:20)
        ... 21 more
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.LocalHippoRepository
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:59)
        ... 22 more

In my pom.xml I admitted the following dependencies for the Hippo ECM platform:

<dependency>
                        <groupId>javax.jcr</groupId>
                        <artifactId>jcr</artifactId>
                        <version>1.0</version>
                </dependency>
                <dependency>
                        <groupId>javax.transaction</groupId>
                        <artifactId>jta</artifactId>
                        <version>1.0.1B</version>
                </dependency>
                <dependency>
                        <groupId>org.hippoecm</groupId>
                        <artifactId>hippo-ecm-api</artifactId>
                        <version>2.02.01</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>javax.jdo</groupId>
                                        <artifactId>jdo2-api</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>jpox</groupId>
                                        <artifactId>jpox-core</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>
                <dependency>
                        <groupId>org.hippoecm</groupId>
                        <artifactId>hippo-ecm-repository-connector</artifactId>
                        <version>2.02.01</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>javax.jdo</groupId>
                                        <artifactId>jdo2-api</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>jpox</groupId>
                                        <artifactId>jpox-core</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>xerces</groupId>
                                        <artifactId>xercesImpl</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>

I guess this is a bug, or did I omit something?

Thanks.

Kind regards,
Ruben
Reply | Threaded
Open this post in threaded view
|

Re: LocalHippoRepository

silke-2-2
This post has NOT been accepted by the mailing list yet.
The strange thing is I did build it with the right dependency - hippo-ecm-repository-engine-2.03.00.jar and also tried exploding the whole jar file in the classes directory so the FacetedNAvigationImpl class is right there but it seems the jackrabbit BeanConfig at runtime is unable to load up this class.

Danke schön

Silke



silke wrote
Jeroen

 I am using the Release-HREPTWO-v2_03_00 build. I took the hippo-ecm-repository-engine-2.03.00.jar from that and the other dependencies for the repository and am just testing creating a HippoRepository.
It loads up the modules etc fine but it fails on loading/intiializing jcr after  reading repository.xml.
When it comes to the point where it is trying to load the SearchIndex class  org.hippoecm.repository.FacetedNavigationEngienThirdImpl from the repository.xml, it fails with a class not found error.

Danke schön

Silke


Jeroen Reijn wrote
Hi Silke,

Could you elaborate on which version of Hippo ECM you are trying to use?
Did you check out Rubens solution?

Regards,

Jeroen

silke wrote
While trying to do the same operation below, I am getting a ClassNotFound error although the class is in my jar file. The repository.xml is the one hippo has provided as the default one. Any advice on solving this would be greatly appreciated!!

rg.hippoecm.repository.quartz.SchedulerModule
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8Begin
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8Bootstrap
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8End
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8Namespace
11.03.2009 23:41:54 DEBUG [org.hippoecm.repository.Modules.setModules():119]   o
rg.hippoecm.repository.upgrade.M8Process
11.03.2009 23:41:54 INFO  [org.hippoecm.repository.LocalHippoRepository.getRepos
itoryConfigAsStream():235] Using file repository config: file://c:/repository.xm
l
repository configName file/c:/repository.xml
repo.path:null
11.03.2009 23:41:54 INFO  [org.hippoecm.repository.LocalHippoRepository.getRepos
itoryPath():195] Using repository path: C:\test\hippo\apache-tomcat-6.
0.16\apache-tomcat-6.0.16\webapps\repository-init\WEB-INF\storage
repo.path:C:\test\apache-tomcat-6.0.16\apache-tomcat-6.0.16\weba
pps\repository-init\WEB-INF\storage
11.03.2009 23:41:55 ERROR [org.hippoecm.repository.RepositoryServlet.init():173]
 Error while setting up JCR repository:
javax.jcr.RepositoryException: Configured bean implementation class org.hippoecm
.repository.FacetedNavigationEngineThirdImpl was not found.: org.hippoecm.reposi
tory.FacetedNavigationEngineThirdImpl: Configured bean implementation class org.
hippoecm.repository.FacetedNavigationEngineThirdImpl was not found.: org.hippoec
m.repository.FacetedNavigationEngineThirdImpl: Configured bean implementation cl
ass org.hippoecm.repository.FacetedNavigationEngineThirdImpl was not found.: org
.hippoecm.repository.FacetedNavigationEngineThirdImpl: org.hippoecm.repository.F
acetedNavigationEngineThirdImpl
        at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
hManager.java:575)
        at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:25
5)
        at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchMana
ger(RepositoryImpl.java:1600)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl$WorkspaceInfo.getSe
archManager(RepositoryImpl.java:199)
        at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImp
l.java:599)
        at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Repos
itoryImpl.java:408)
        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:
304)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl.<init>(RepositoryIm
pl.java:64)
        at org.hippoecm.repository.LocalHippoRepository$LocalRepositoryImpl.<ini
t>(LocalHippoRepository.java:249)
        at org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRep
ository.java:264)
        at org.hippoecm.repository.LocalHippoRepository.<init>(LocalHippoReposit
ory.java:149)
        at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoReposit
ory.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(Hip
poRepositoryFactory.java:175)
        at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java
:147)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1161)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
1)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4058)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
364)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:626)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.apache.jackrabbit.core.config.ConfigurationException: Configured
bean implementation class org.hippoecm.repository.FacetedNavigationEngineThirdIm
pl was not found.: org.hippoecm.repository.FacetedNavigationEngineThirdImpl: org
.hippoecm.repository.FacetedNavigationEngineThirdImpl
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:114)
        at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
hManager.java:569)
        ... 43 more
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.FacetedNavi
gationEngineThirdImpl
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:100)
        ... 44 more
org.apache.jackrabbit.core.config.ConfigurationException: Configured bean implem
entation class org.hippoecm.repository.FacetedNavigationEngineThirdImpl was not
found.: org.hippoecm.repository.FacetedNavigationEngineThirdImpl: org.hippoecm.r
epository.FacetedNavigationEngineThirdImpl
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:114)
        at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
hManager.java:569)
        at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:25
5)
        at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchMana
ger(RepositoryImpl.java:1600)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl$WorkspaceInfo.getSe
archManager(RepositoryImpl.java:199)
        at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImp
l.java:599)
        at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Repos
itoryImpl.java:408)
        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:
304)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl.<init>(RepositoryIm
pl.java:64)
        at org.hippoecm.repository.LocalHippoRepository$LocalRepositoryImpl.<ini
t>(LocalHippoRepository.java:249)
        at org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRep
ository.java:264)
        at org.hippoecm.repository.LocalHippoRepository.<init>(LocalHippoReposit
ory.java:149)
        at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoReposit
ory.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(Hip
poRepositoryFactory.java:175)
        at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java
:147)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1161)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
1)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4058)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
364)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:626)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.FacetedNavi
gationEngineThirdImpl
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:100)
        ... 44 more
java.lang.ClassNotFoundException: org.hippoecm.repository.FacetedNavigationEngin
eThirdImpl
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
ava:100)
        at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
hManager.java:569)
        at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:25
5)
        at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchMana
ger(RepositoryImpl.java:1600)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl$WorkspaceInfo.getSe
archManager(RepositoryImpl.java:199)
        at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImp
l.java:599)
        at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Repos
itoryImpl.java:408)
        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:
304)
        at org.hippoecm.repository.jackrabbit.RepositoryImpl.<init>(RepositoryIm
pl.java:64)
        at org.hippoecm.repository.LocalHippoRepository$LocalRepositoryImpl.<ini
t>(LocalHippoRepository.java:249)
        at org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRep
ository.java:264)
        at org.hippoecm.repository.LocalHippoRepository.<init>(LocalHippoReposit
ory.java:149)
        at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoReposit
ory.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(Hip
poRepositoryFactory.java:175)
        at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java
:147)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1161)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
1)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4058)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
364)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:626)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)



Ruben de Gooijer wrote
Hi all,

I'm trying to use a LocalHippoRepository (for testing purposes), by calling the HippoRepositoryFactory.getHippoRepository() method. This gives me the following stack trace:

Caused by: javax.jcr.RepositoryException: org.hippoecm.repository.LocalHippoRepository: org.hippoecm.repository.LocalHippoRepository
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:61)
        at org.hippoecm.hipposponge.adapter.mail.test.RepositoryTest.setUp(RepositoryTest.java:20)
        ... 21 more
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.LocalHippoRepository
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:59)
        ... 22 more
Caused by: javax.jcr.RepositoryException: org.hippoecm.repository.LocalHippoRepository: org.hippoecm.repository.LocalHippoRepository
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:61)
        at org.hippoecm.hipposponge.adapter.mail.test.RepositoryTest.setUp(RepositoryTest.java:20)
        ... 21 more
Caused by: java.lang.ClassNotFoundException: org.hippoecm.repository.LocalHippoRepository
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:59)
        ... 22 more

In my pom.xml I admitted the following dependencies for the Hippo ECM platform:

<dependency>
                        <groupId>javax.jcr</groupId>
                        <artifactId>jcr</artifactId>
                        <version>1.0</version>
                </dependency>
                <dependency>
                        <groupId>javax.transaction</groupId>
                        <artifactId>jta</artifactId>
                        <version>1.0.1B</version>
                </dependency>
                <dependency>
                        <groupId>org.hippoecm</groupId>
                        <artifactId>hippo-ecm-api</artifactId>
                        <version>2.02.01</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>javax.jdo</groupId>
                                        <artifactId>jdo2-api</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>jpox</groupId>
                                        <artifactId>jpox-core</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>
                <dependency>
                        <groupId>org.hippoecm</groupId>
                        <artifactId>hippo-ecm-repository-connector</artifactId>
                        <version>2.02.01</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>javax.jdo</groupId>
                                        <artifactId>jdo2-api</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>jpox</groupId>
                                        <artifactId>jpox-core</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>xerces</groupId>
                                        <artifactId>xercesImpl</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>

I guess this is a bug, or did I omit something?

Thanks.

Kind regards,
Ruben
Reply | Threaded
Open this post in threaded view
|

Re: LocalHippoRepository

Jeroen Reijn
Administrator
What i'm missing is where you are trying to create the
LocalHippoRepositiry from. Is it a test case, or are you creating a webapp?

If you are creating a webapp, you might want to try to use the
package.war from the maven repository[1].

Jeroen

[1]http://repository.hippocms.org/maven2/org/hippoecm/hippo-ecm-package-war/2.03.00/

silke wrote:

> The strange thing is I did build it with the right dependency -
> hippo-ecm-repository-engine-2.03.00.jar and also tried exploding the whole
> jar file in the classes directory so the FacetedNAvigationImpl class is
> right there but it seems the jackrabbit BeanConfig at runtime is unable to
> load up this class.
>
> Danke schön
>
> Silke
>
>
>
>
> silke wrote:
>> Jeroen
>>
>>  I am using the Release-HREPTWO-v2_03_00 build. I took the
>> hippo-ecm-repository-engine-2.03.00.jar from that and the other
>> dependencies for the repository and am just testing creating a
>> HippoRepository.
>> It loads up the modules etc fine but it fails on loading/intiializing jcr
>> after  reading repository.xml.
>> When it comes to the point where it is trying to load the SearchIndex
>> class  org.hippoecm.repository.FacetedNavigationEngienThirdImpl from the
>> repository.xml, it fails with a class not found error.
>>
>> Danke schön
>>
>> Silke
>>
>>
>>
>> Jeroen Reijn wrote:
>>> Hi Silke,
>>>
>>> Could you elaborate on which version of Hippo ECM you are trying to use?
>>> Did you check out Rubens solution?
>>>
>>> Regards,
>>>
>>> Jeroen
>>>
>>>
>>> silke wrote:
>>>> While trying to do the same operation below, I am getting a
>>>> ClassNotFound error although the class is in my jar file. The
>>>> repository.xml is the one hippo has provided as the default one. Any
>>>> advice on solving this would be greatly appreciated!!
>>>>
>>>> rg.hippoecm.repository.quartz.SchedulerModule
>>>> 11.03.2009 23:41:54 DEBUG
>>>> [org.hippoecm.repository.Modules.setModules():119]   o
>>>> rg.hippoecm.repository.upgrade.M8Begin
>>>> 11.03.2009 23:41:54 DEBUG
>>>> [org.hippoecm.repository.Modules.setModules():119]   o
>>>> rg.hippoecm.repository.upgrade.M8Bootstrap
>>>> 11.03.2009 23:41:54 DEBUG
>>>> [org.hippoecm.repository.Modules.setModules():119]   o
>>>> rg.hippoecm.repository.upgrade.M8End
>>>> 11.03.2009 23:41:54 DEBUG
>>>> [org.hippoecm.repository.Modules.setModules():119]   o
>>>> rg.hippoecm.repository.upgrade.M8Namespace
>>>> 11.03.2009 23:41:54 DEBUG
>>>> [org.hippoecm.repository.Modules.setModules():119]   o
>>>> rg.hippoecm.repository.upgrade.M8Process
>>>> 11.03.2009 23:41:54 INFO
>>>> [org.hippoecm.repository.LocalHippoRepository.getRepos
>>>> itoryConfigAsStream():235] Using file repository config:
>>>> file://c:/repository.xm
>>>> l
>>>> repository configName file/c:/repository.xml
>>>> repo.path:null
>>>> 11.03.2009 23:41:54 INFO
>>>> [org.hippoecm.repository.LocalHippoRepository.getRepos
>>>> itoryPath():195] Using repository path: C:\test\hippo\apache-tomcat-6.
>>>> 0.16\apache-tomcat-6.0.16\webapps\repository-init\WEB-INF\storage
>>>> repo.path:C:\test\apache-tomcat-6.0.16\apache-tomcat-6.0.16\weba
>>>> pps\repository-init\WEB-INF\storage
>>>> 11.03.2009 23:41:55 ERROR
>>>> [org.hippoecm.repository.RepositoryServlet.init():173]
>>>>  Error while setting up JCR repository:
>>>> javax.jcr.RepositoryException: Configured bean implementation class
>>>> org.hippoecm
>>>> .repository.FacetedNavigationEngineThirdImpl was not found.:
>>>> org.hippoecm.reposi
>>>> tory.FacetedNavigationEngineThirdImpl: Configured bean implementation
>>>> class org.
>>>> hippoecm.repository.FacetedNavigationEngineThirdImpl was not found.:
>>>> org.hippoec
>>>> m.repository.FacetedNavigationEngineThirdImpl: Configured bean
>>>> implementation cl
>>>> ass org.hippoecm.repository.FacetedNavigationEngineThirdImpl was not
>>>> found.: org
>>>> .hippoecm.repository.FacetedNavigationEngineThirdImpl:
>>>> org.hippoecm.repository.F
>>>> acetedNavigationEngineThirdImpl
>>>>         at
>>>> org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
>>>> hManager.java:575)
>>>>         at
>>>> org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:25
>>>> 5)
>>>>         at
>>>> org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchMana
>>>> ger(RepositoryImpl.java:1600)
>>>>         at
>>>> org.hippoecm.repository.jackrabbit.RepositoryImpl$WorkspaceInfo.getSe
>>>> archManager(RepositoryImpl.java:199)
>>>>         at
>>>> org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImp
>>>> l.java:599)
>>>>         at
>>>> org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Repos
>>>> itoryImpl.java:408)
>>>>         at
>>>> org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:
>>>> 304)
>>>>         at
>>>> org.hippoecm.repository.jackrabbit.RepositoryImpl.<init>(RepositoryIm
>>>> pl.java:64)
>>>>         at
>>>> org.hippoecm.repository.LocalHippoRepository$LocalRepositoryImpl.<ini
>>>> t>(LocalHippoRepository.java:249)
>>>>         at
>>>> org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRep
>>>> ository.java:264)
>>>>         at
>>>> org.hippoecm.repository.LocalHippoRepository.<init>(LocalHippoReposit
>>>> ory.java:149)
>>>>         at
>>>> org.hippoecm.repository.LocalHippoRepository.create(LocalHippoReposit
>>>> ory.java:157)
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>         at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>> java:39)
>>>>         at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>>> sorImpl.java:25)
>>>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>>>         at
>>>> org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(Hip
>>>> poRepositoryFactory.java:175)
>>>>         at
>>>> org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java
>>>> :147)
>>>>         at
>>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
>>>> java:1161)
>>>>         at
>>>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
>>>> 1)
>>>>         at
>>>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
>>>> t.java:4058)
>>>>         at
>>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4
>>>> 364)
>>>>         at
>>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
>>>> .java:791)
>>>>         at
>>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
>>>> 1)
>>>>         at
>>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>>>>
>>>>         at
>>>> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
>>>> va:626)
>>>>         at
>>>> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
>>>> ava:553)
>>>>         at
>>>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488
>>>> )
>>>>         at
>>>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
>>>>         at
>>>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
>>>> :311)
>>>>         at
>>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
>>>> eSupport.java:117)
>>>>         at
>>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>>>>
>>>>         at
>>>> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>>>>         at
>>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>>>>
>>>>         at
>>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
>>>> )
>>>>         at
>>>> org.apache.catalina.core.StandardService.start(StandardService.java:5
>>>> 16)
>>>>         at
>>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710
>>>> )
>>>>         at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>         at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>> java:39)
>>>>         at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>>> sorImpl.java:25)
>>>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>>>         at
>>>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>>>>         at
>>>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>>> Caused by: org.apache.jackrabbit.core.config.ConfigurationException:
>>>> Configured
>>>> bean implementation class
>>>> org.hippoecm.repository.FacetedNavigationEngineThirdIm
>>>> pl was not found.:
>>>> org.hippoecm.repository.FacetedNavigationEngineThirdImpl: org
>>>> .hippoecm.repository.FacetedNavigationEngineThirdImpl
>>>>         at
>>>> org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
>>>> ava:114)
>>>>         at
>>>> org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
>>>> hManager.java:569)
>>>>         ... 43 more
>>>> Caused by: java.lang.ClassNotFoundException:
>>>> org.hippoecm.repository.FacetedNavi
>>>> gationEngineThirdImpl
>>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>>>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>>>         at java.lang.Class.forName0(Native Method)
>>>>         at java.lang.Class.forName(Class.java:242)
>>>>         at
>>>> org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
>>>> ava:100)
>>>>         ... 44 more
>>>> org.apache.jackrabbit.core.config.ConfigurationException: Configured
>>>> bean implem
>>>> entation class org.hippoecm.repository.FacetedNavigationEngineThirdImpl
>>>> was not
>>>> found.: org.hippoecm.repository.FacetedNavigationEngineThirdImpl:
>>>> org.hippoecm.r
>>>> epository.FacetedNavigationEngineThirdImpl
>>>>         at
>>>> org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
>>>> ava:114)
>>>>         at
>>>> org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
>>>> hManager.java:569)
>>>>         at
>>>> org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:25
>>>> 5)
>>>>         at
>>>> org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchMana
>>>> ger(RepositoryImpl.java:1600)
>>>>         at
>>>> org.hippoecm.repository.jackrabbit.RepositoryImpl$WorkspaceInfo.getSe
>>>> archManager(RepositoryImpl.java:199)
>>>>         at
>>>> org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImp
>>>> l.java:599)
>>>>         at
>>>> org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Repos
>>>> itoryImpl.java:408)
>>>>         at
>>>> org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:
>>>> 304)
>>>>         at
>>>> org.hippoecm.repository.jackrabbit.RepositoryImpl.<init>(RepositoryIm
>>>> pl.java:64)
>>>>         at
>>>> org.hippoecm.repository.LocalHippoRepository$LocalRepositoryImpl.<ini
>>>> t>(LocalHippoRepository.java:249)
>>>>         at
>>>> org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRep
>>>> ository.java:264)
>>>>         at
>>>> org.hippoecm.repository.LocalHippoRepository.<init>(LocalHippoReposit
>>>> ory.java:149)
>>>>         at
>>>> org.hippoecm.repository.LocalHippoRepository.create(LocalHippoReposit
>>>> ory.java:157)
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>         at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>> java:39)
>>>>         at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>>> sorImpl.java:25)
>>>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>>>         at
>>>> org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(Hip
>>>> poRepositoryFactory.java:175)
>>>>         at
>>>> org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java
>>>> :147)
>>>>         at
>>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
>>>> java:1161)
>>>>         at
>>>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
>>>> 1)
>>>>         at
>>>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
>>>> t.java:4058)
>>>>         at
>>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4
>>>> 364)
>>>>         at
>>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
>>>> .java:791)
>>>>         at
>>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
>>>> 1)
>>>>         at
>>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>>>>
>>>>         at
>>>> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
>>>> va:626)
>>>>         at
>>>> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
>>>> ava:553)
>>>>         at
>>>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488
>>>> )
>>>>         at
>>>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
>>>>         at
>>>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
>>>> :311)
>>>>         at
>>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
>>>> eSupport.java:117)
>>>>         at
>>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>>>>
>>>>         at
>>>> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>>>>         at
>>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>>>>
>>>>         at
>>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
>>>> )
>>>>         at
>>>> org.apache.catalina.core.StandardService.start(StandardService.java:5
>>>> 16)
>>>>         at
>>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710
>>>> )
>>>>         at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>         at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>> java:39)
>>>>         at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>>> sorImpl.java:25)
>>>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>>>         at
>>>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>>>>         at
>>>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>>> Caused by: java.lang.ClassNotFoundException:
>>>> org.hippoecm.repository.FacetedNavi
>>>> gationEngineThirdImpl
>>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>>>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>>>         at java.lang.Class.forName0(Native Method)
>>>>         at java.lang.Class.forName(Class.java:242)
>>>>         at
>>>> org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
>>>> ava:100)
>>>>         ... 44 more
>>>> java.lang.ClassNotFoundException:
>>>> org.hippoecm.repository.FacetedNavigationEngin
>>>> eThirdImpl
>>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>>>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>>>         at java.lang.Class.forName0(Native Method)
>>>>         at java.lang.Class.forName(Class.java:242)
>>>>         at
>>>> org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.j
>>>> ava:100)
>>>>         at
>>>> org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(Searc
>>>> hManager.java:569)
>>>>         at
>>>> org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:25
>>>> 5)
>>>>         at
>>>> org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchMana
>>>> ger(RepositoryImpl.java:1600)
>>>>         at
>>>> org.hippoecm.repository.jackrabbit.RepositoryImpl$WorkspaceInfo.getSe
>>>> archManager(RepositoryImpl.java:199)
>>>>         at
>>>> org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImp
>>>> l.java:599)
>>>>         at
>>>> org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(Repos
>>>> itoryImpl.java:408)
>>>>         at
>>>> org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:
>>>> 304)
>>>>         at
>>>> org.hippoecm.repository.jackrabbit.RepositoryImpl.<init>(RepositoryIm
>>>> pl.java:64)
>>>>         at
>>>> org.hippoecm.repository.LocalHippoRepository$LocalRepositoryImpl.<ini
>>>> t>(LocalHippoRepository.java:249)
>>>>         at
>>>> org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRep
>>>> ository.java:264)
>>>>         at
>>>> org.hippoecm.repository.LocalHippoRepository.<init>(LocalHippoReposit
>>>> ory.java:149)
>>>>         at
>>>> org.hippoecm.repository.LocalHippoRepository.create(LocalHippoReposit
>>>> ory.java:157)
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>         at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>> java:39)
>>>>         at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>>> sorImpl.java:25)
>>>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>>>         at
>>>> org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(Hip
>>>> poRepositoryFactory.java:175)
>>>>         at
>>>> org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java
>>>> :147)
>>>>         at
>>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
>>>> java:1161)
>>>>         at
>>>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
>>>> 1)
>>>>         at
>>>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
>>>> t.java:4058)
>>>>         at
>>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4
>>>> 364)
>>>>         at
>>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
>>>> .java:791)
>>>>         at
>>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
>>>> 1)
>>>>         at
>>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>>>>
>>>>         at
>>>> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
>>>> va:626)
>>>>         at
>>>> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
>>>> ava:553)
>>>>         at
>>>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488
>>>> )
>>>>         at
>>>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
>>>>         at
>>>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
>>>> :311)
>>>>         at
>>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
>>>> eSupport.java:117)
>>>>         at
>>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>>>>
>>>>         at
>>>> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>>>>         at
>>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>>>>
>>>>         at
>>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
>>>> )
>>>>         at
>>>> org.apache.catalina.core.StandardService.start(StandardService.java:5
>>>> 16)
>>>>         at
>>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710
>>>> )
>>>>         at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>         at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>> java:39)
>>>>         at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>>> sorImpl.java:25)
>>>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>>>         at
>>>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>>>>         at
>>>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>>>
>>>>
>>>>
>>>>
>>>> Ruben de Gooijer wrote:
>>>>> Hi all,
>>>>>
>>>>> I'm trying to use a LocalHippoRepository (for testing purposes), by
>>>>> calling the HippoRepositoryFactory.getHippoRepository() method. This
>>>>> gives me the following stack trace:
>>>>>
>>>>> Caused by: javax.jcr.RepositoryException:
>>>>> org.hippoecm.repository.LocalHippoRepository:
>>>>> org.hippoecm.repository.LocalHippoRepository
>>>>>         at
>>>>> org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:61)
>>>>>         at
>>>>> org.hippoecm.hipposponge.adapter.mail.test.RepositoryTest.setUp(RepositoryTest.java:20)
>>>>>         ... 21 more
>>>>> Caused by: java.lang.ClassNotFoundException:
>>>>> org.hippoecm.repository.LocalHippoRepository
>>>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>>>         at
>>>>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>>>>         at
>>>>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>>>>         at java.lang.Class.forName0(Native Method)
>>>>>         at java.lang.Class.forName(Class.java:164)
>>>>>         at
>>>>> org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:59)
>>>>>         ... 22 more
>>>>> Caused by: javax.jcr.RepositoryException:
>>>>> org.hippoecm.repository.LocalHippoRepository:
>>>>> org.hippoecm.repository.LocalHippoRepository
>>>>>         at
>>>>> org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:61)
>>>>>         at
>>>>> org.hippoecm.hipposponge.adapter.mail.test.RepositoryTest.setUp(RepositoryTest.java:20)
>>>>>         ... 21 more
>>>>> Caused by: java.lang.ClassNotFoundException:
>>>>> org.hippoecm.repository.LocalHippoRepository
>>>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>>>         at
>>>>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>>>>         at
>>>>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>>>>         at java.lang.Class.forName0(Native Method)
>>>>>         at java.lang.Class.forName(Class.java:164)
>>>>>         at
>>>>> org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:59)
>>>>>         ... 22 more
>>>>>
>>>>> In my pom.xml I admitted the following dependencies for the Hippo ECM
>>>>> platform:
>>>>>
>>>>> <dependency>
>>>>> <groupId>javax.jcr</groupId>
>>>>> <artifactId>jcr</artifactId>
>>>>> <version>1.0</version>
>>>>> </dependency>
>>>>> <dependency>
>>>>> <groupId>javax.transaction</groupId>
>>>>> <artifactId>jta</artifactId>
>>>>> <version>1.0.1B</version>
>>>>> </dependency>
>>>>> <dependency>
>>>>> <groupId>org.hippoecm</groupId>
>>>>> <artifactId>hippo-ecm-api</artifactId>
>>>>> <version>2.02.01</version>
>>>>> <exclusions>
>>>>> <exclusion>
>>>>> <groupId>javax.jdo</groupId>
>>>>> <artifactId>jdo2-api</artifactId>
>>>>> </exclusion>
>>>>> <exclusion>
>>>>> <groupId>jpox</groupId>
>>>>> <artifactId>jpox-core</artifactId>
>>>>> </exclusion>
>>>>> </exclusions>
>>>>> </dependency>
>>>>> <dependency>
>>>>> <groupId>org.hippoecm</groupId>
>>>>> <artifactId>hippo-ecm-repository-connector</artifactId>
>>>>> <version>2.02.01</version>
>>>>> <exclusions>
>>>>> <exclusion>
>>>>> <groupId>javax.jdo</groupId>
>>>>> <artifactId>jdo2-api</artifactId>
>>>>> </exclusion>
>>>>> <exclusion>
>>>>> <groupId>jpox</groupId>
>>>>> <artifactId>jpox-core</artifactId>
>>>>> </exclusion>
>>>>> <exclusion>
>>>>> <groupId>xerces</groupId>
>>>>> <artifactId>xercesImpl</artifactId>
>>>>> </exclusion>
>>>>> </exclusions>
>>>>> </dependency>
>>>>>
>>>>> I guess this is a bug, or did I omit something?
>>>>>
>>>>> Thanks.
>>>>>
>>>>> Kind regards,
>>>>> Ruben
>>>>>
>>>>>
>>>>
>>>
>>
>
_______________________________________________
Hippo-cms7-user mailing list and forums
http://www.onehippo.org/cms7/support/community.html