Hi Markus, You can have a look at the packaged examples [0], the project is based on maven, but it should be enough to get you started. If not, please share your thoughts on how we could improve the example code, so everybody can benefit from the experience.
[0] http://svn.apache.org/repos/asf/jackrabbit/trunk/examples/jackrabbit-firsthops/ best, alex On Thu, Sep 8, 2011 at 11:02 PM, Markus Meixner < [email protected]> wrote: > Hi everybody > > It would be really nice if you could help me out. I am running the first > hops example "FirstHop". First I tried to link all required libs from > the jackrabbit webapp jar, then I did just link the > jackrabbit-standalone-2.2.8.jar as suggested. > > Doesnt matter which one I tried, It is always coming up with the same > error: > > > INFO 2011-09-08 21:54:19 [main] (RepositoryImpl.java:279) - Starting > repository... > INFO 2011-09-08 21:54:19 [main] (LocalFileSystem.java:164) - > LocalFileSystem initialized at path repository/repository > INFO 2011-09-08 21:54:20 [main] (NodeTypeRegistry.java:856) - no custom > node type definitions found > INFO 2011-09-08 21:54:20 [main] (LocalFileSystem.java:164) - > LocalFileSystem initialized at path repository/version > INFO 2011-09-08 21:54:21 [main] (RepositoryImpl.java:1997) - > initializing workspace 'default'... > INFO 2011-09-08 21:54:21 [main] (LocalFileSystem.java:164) - > LocalFileSystem initialized at path repository/workspaces/default > INFO 2011-09-08 21:54:21 [main] (RepositoryImpl.java:1077) - Shutting > down repository... > INFO 2011-09-08 21:54:21 [main] (DerbyConnectionHelper.java:94) - > Database 'repository/version/db' shutdown. > INFO 2011-09-08 21:54:21 [main] (RepositoryImpl.java:1177) - Repository > has been shutdown > Exception in thread "main" java.lang.NoSuchMethodError: > org.apache.commons.collections.ArrayStack: method <init>(I)V not found > at > org.apache.commons.collections.BufferUtils.<clinit>(BufferUtils.java:41) > at > > org.apache.jackrabbit.core.observation.ObservationDispatcher.<init>(ObservationDispatcher.java:87) > at > > org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doInitialize(RepositoryImpl.java:2047) > at > > org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(RepositoryImpl.java:1998) > at > > org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:533) > at > org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:342) > at > org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:605) > at > > org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:232) > at > > org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:280) > at > > org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:376) > at > > org.apache.jackrabbit.commons.AbstractRepository.login(AbstractRepository.java:111) > at ch.optimizeit.qamweb.control.RepoTest.main(RepoTest.java:26) > > > Any help is appreciated. > > Thanks > > Markus >
