从Project Wonder wiki运行REST示例的问题

时间:2015-08-11 12:36:41

标签: eclipse rest webobjects

我是Project Wonder的新手,我正在尝试使用REST运行教程中的第二个示例。即使在将简单代码添加到Author和BlogEntry类之后,我也遇到了问题:

  

ERChangeNotification:初始化ERChangeNotification框架   [2015-8-11 14:23:30 CEST]发生致命异常:   java.lang.NoClassDefFoundError:   org / exolab / core / util / URI $ MalformedURIException [2015-8-11 14:23:30   CEST] com.webobjects.foundation.NSForwardException   [java.lang.NoClassDefFoundError]   组织/ exolab /核心/ UTIL / URI $ MalformedURIException:java.lang.NoClassDefFoundError:   org / exolab / core / util / URI $ MalformedURIException at   com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:43)     在   com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:124)     在   com.webobjects.foundation.NSNotificationCenter $ _Entry.invokeMethod(NSNotificationCenter.java:588)     在   com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)     在   com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:546)     在   com.webobjects.appserver.WOApplication.run(WOApplication.java:1239)     在   com.webobjects.appserver.WOApplication.main(WOApplication.java:548)     在your.app.Application.main(Application.java:10)引起:   java.lang.NoClassDefFoundError:   org / exolab / core / util / URI $ MalformedURIException at   java.lang.Class.forName0(Native Method)at   java.lang.Class.forName(Class.java:274)at   com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:72)     在   com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:61)     在   javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)     在   javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)     在javax.naming.InitialContext.init(InitialContext.java:242)at   javax.naming.InitialContext。(InitialContext.java:216)at   er.changenotification.ERCNConnectionKeeper.openConnection(ERCNConnectionKeeper.java:60)     在   er.changenotification.ERCNNotificationCoordinator.initialize(ERCNNotificationCoordinator.java:143)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)     在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:606)at   com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)     ... 6更多引起:java.lang.ClassNotFoundException:   org.exolab.core.util.URI $ MalformedURIException 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 at   java.lang.ClassLoader.loadClass(ClassLoader.java:358)... 21更多

我按照wiki中的说明导入了PW源,并将其放入构建路径中。如果有构建问题我删除了所有框架并重新开始,但我遇到了同样的问题。

1 个答案:

答案 0 :(得分:0)

解决了它。似乎与图书馆存在一些冲突。我淘汰了大部分,并开始工作。感谢。