Please make sure that jackrabbit snd its dependencies are on the classpath
too.

  Bernd
On Aug 14, 2014 9:28 AM, <[email protected]> wrote:

>
> Hi all,
>
> I am trying to get a test XMPP server up using Vysper, I followed the
> instructions here "http://mina.apache.org/vysper-project/embed.html"; to
> write the following code:
>
>
> XMPPServer server = new XMPPServer("myembeddedjabber.com");
> server.addEndpoint(new TCPEndpoint());
>
> // choose the storage you want to use
> StorageProviderRegistry providerRegistry = new
> JcrStorageProviderRegistry();
> //StorageProviderRegistry providerRegistry = new
> MemoryStorageProviderRegistry();
>
> final AccountManagement accountManagement = (AccountManagement)
> providerRegistry.retrieve(AccountManagement.class);
>
> if(!accountManagement.verifyAccountExists(EntityImpl.parse("user1@
> myembeddedjabber.com"))) {
>     accountManagement.addUser(EntityImpl.parse("[email protected]"),
> "password1");
> }
>
> server.setStorageProviderRegistry(providerRegistry);
>
> try {
>     server.start();
>     System.out.println("server is running...");
> } catch (Exception e) {
>     e.printStackTrace();
> }
>
> and I get the following exception when I run it in debug mode in Eclipse:
>
>
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/D:/data/workspaces/
> fintex/FinPlatform/server/core/lib/logback-classic-1.1.
> 2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/D:/data/workspaces/
> fintex/FinPlatform/common/trading/lib/logback-classic-1.
> 1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/D:/data/workspaces/
> fintex/FinPlatform/common/core/lib/logback-classic-1.1.
> 2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> explanation.
> SLF4J: Actual binding is of type [ch.qos.logback.classic.util.
> ContextSelectorStaticBinder]
> Exception in thread "main" java.lang.NoClassDefFoundError:
> javax/jcr/RepositoryException
>         at org.apache.vysper.storage.jcr.JcrStorageProviderRegistry.<
> init>(JcrStorageProviderRegistry.java:35)
>         at ch.fintex.trading.server.core.TestXmppServer.main(
> TestXmppServer.java:26)
> Caused by: java.lang.ClassNotFoundException: javax.jcr.RepositoryException
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>         ... 2 more
>
> The Vysper jar is in the classpath. I searched the interne but I didn't
> find much info on this.
>
> Thank you,
> Gabriel
>
>
>

Reply via email to