From: JW B. <jw...@jw...> - 2012-11-19 11:45:19
|
Hi, That's because netty isn't bundled with xins. You have to obtain the netty jar file first and then copy it to XINS_HOME/lib. You can get netty from the following location: http://www.java2s.com/Code/Jar/n/Downloadnettyjar.htm HTH; JW Op 19 nov. 2012 om 11:15 heeft fazakas peter <faz...@ya...> het volgende geschreven: > Hi, > I am new in Xins and I don't know if this is the right place to write questions but anyway, I am desperate, because I can't get it to work. > Until now I managed to install the given installer and Ant too, and after that I begin to follow the Primer example. > Everything was OK until:" xins -Dorg.xins.server.config=xins.properties run-myapi " > > afert Building the api gives a Java Exception "NoClassDefFoundError". I tried to set and to change the path CLASSPATH..nothing. So here is the Exceprion stack: > > > -run: > [echo] Running myapi XINS API on port 8080 and JMX port 1090 with config xins.properties > [java] Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/netty/channel/SimpleChannelUpstreamHandler > [java] at java.lang.ClassLoader.defineClass1(Native Method) > [java] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) > [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:616) > [java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) > [java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) > [java] at java.net.URLClassLoader.access$000(URLClassLoader.java:58) > [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:197) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > [java] at org.xins.common.servlet.container.ServletClassLoader$ChildFirstClassLoader.loadClass(ServletClassLoader.java:23 > 1) > [java] at org.xins.common.servlet.container.ServletClassLoader$ChildFirstClassLoader.loadClass(ServletClassLoader.java:20 > 1) > [java] at org.xins.common.servlet.container.HTTPServletStarter.startNettyHTTPServer(HTTPServletStarter.java:177) > [java] at org.xins.common.servlet.container.HTTPServletStarter.startHTTPServer(HTTPServletStarter.java:168) > [java] at org.xins.common.servlet.container.HTTPServletStarter.<init>(HTTPServletStarter.java:135) > [java] at org.xins.common.servlet.container.HTTPServletStarter.main(HTTPServletStarter.java:233) > [java] Caused by: java.lang.ClassNotFoundException: org.jboss.netty.channel.SimpleChannelUpstreamHandler > [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > [java] at org.xins.common.servlet.container.ServletClassLoader$ChildFirstClassLoader.loadClass(ServletClassLoader.java:24 > 1) > [java] at org.xins.common.servlet.container.ServletClassLoader$ChildFirstClassLoader.loadClass(ServletClassLoader.java:20 > 1) > [java] ... 15 more > [java] Java Result: 1 > > > > Help please!! > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > Xins-users mailing list > Xin...@li... > https://lists.sourceforge.net/lists/listinfo/xins-users |