用eclipse mars 跑项目遇到了些问题,还好最后顺利运行了.
其间遇到些问题,我把错误提示和解决的方法记录下.
eclipse mars.1 最低支持1.7的jdk版本,但是公司项目jdk要用1.6的. 修改eclipse.ini 中的-Dosgi.requiredJavaVersion=1.7,但是没用还会报错.
后来同时装了1.7和1.6的jdk,在环境配置中java_home 用的是1.7,可以顺利打开eclipse.进去后在run jetty 的时候设置为jdk1.6的jdk, 顺利运行了.
下面是今天遇到的一个问题,用jetty(不是run-jetty-run),jetty是一个橙色的jetty插件,run-jetty-run是蓝色的.然后 报了下面的错误.
网上找了很久,没有解决,后来发现搜到AbstractLifeCycle是jetty有关的东西. 感觉是jetty出问题了.
所以下了个run-jetty-run就解决了.
2016-08-24 15:12:15.575:WARN:oejuc.AbstractLifeCycle:FAILED UrlSecurityFilter: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "
org.omg.CORBA.portable.ObjectImpl._is_equivalent(Lorg/omg/CORBA/Object;)Z" the class loader (instance of ) of the current class, com/inprise/vbroker/rmi/CORBA/Stub, and the class
loader (instance of org/eclipse/jetty/webapp/WebAppClassLoader) for interface org/omg/CORBA/Object have different Class objects for the type org/omg/CORBA/Object used in the signature
java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.omg.CORBA.portable.ObjectImpl._is_equivalent(Lorg/omg/CORBA/Object;)Z" the
class loader (instance of ) of the current class, com/inprise/vbroker/rmi/CORBA/Stub, and the class loader (instance of org/eclipse/jetty/webapp/WebAppClassLoader) for interface
org/omg/CORBA/Object have different Class objects for the type org/omg/CORBA/Object used in the signature
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:171)
at com.inprise.vbroker.orb.CDRInputStream.(CDRInputStream.java:176)
at com.inprise.vbroker.orb.ORBSingleton.create_input_stream(ORBSingleton.java:11)
at com.inprise.vbroker.orb.ORB.parseIOR(ORB.java:463)
at com.inprise.vbroker.orb.ORB.string_to_ior(ORB.java:391)
at com.inprise.vbroker.ds.DSUser.doGetIOR(DSUser.java:1216)
at com.inprise.vbroker.ds.DSUser.getIOR(DSUser.java:1158)
at com.inprise.vbroker.ds.DSUser.bind(DSUser.java:1364)
at com.inprise.vbroker.interceptor.ChainBindInterceptorImpl.bind(ChainBindInterceptorImpl.java:38)
at com.inprise.vbroker.orb.DelegateImpl._bind(DelegateImpl.java:281)
at com.inprise.vbroker.orb.DelegateImpl.bind(DelegateImpl.java:260)
at com.inprise.vbroker.CORBA.portable.ObjectImpl._bind(ObjectImpl.java:62)
at com.inprise.vbroker.orb.ORB.bind(ORB.java:1878)
at com.asiainfo.openboss.obsystem.openbroker.visibroker_corba.VBrokerClient.callServer(Unknown Source)
at com.asiainfo.openboss.obsystem.obdclient.CobdClientObject.call_server(Unknown Source)
at com.asiainfo.openboss.cboss.homesvr.MCbossIdentify.ICbossIdentifyInt.query_menuControlInfo(ICbossIdentifyInt.java:264)
at com.asiainfo.cboss.openboss.homesvr.intf.mcbossidentify.impl.obd.ICbossIdentifyObdImpl.query_menuControlInfo(ICbossIdentifyObdImpl.java:117)
at com.asiainfo.cboss.openboss.homesvr.CbossRegauthInvoker.query_menuControlInfo(CbossRegauthInvoker.java:310)
at com.asiainfo.cboss.web.common.filter.UrlSecurityFilter.loadMenuControlInfoList(UrlSecurityFilter.java:78)
at com.asiainfo.cboss.web.common.filter.UrlSecurityFilter.init(UrlSecurityFilter.java:278)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at org.eclipse.jetty.server.Server.doStart(Server.java:282)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedAdapter.start(JettyEmbeddedAdapter.java:67)
at net.sourceforge.eclipsejetty.starter.common.AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:84)
at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)
2016-08-24 15:12:15.576:WARN:oejuc.AbstractLifeCycle:FAILED o.e.j.w.WebAppContext{/cboss,file:/C:/workspace/javaprj/webapp/src/main/webapp/},C:\workspace\javaprj\webapp\src\main\webapp: java
.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.omg.CORBA.portable.ObjectImpl._is_equivalent(Lorg/omg/CORBA/Object;)Z" the clas
s loader (instance of ) of the current class, com/inprise/vbroker/rmi/CORBA/Stub, and the class loader (instance of org/eclipse/jetty/webapp/WebAppClassLoader) for interface org/
omg/CORBA/Object have different Class objects for the type org/omg/CORBA/Object used in the signature
java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.omg.CORBA.portable.ObjectImpl._is_equivalent(Lorg/omg/CORBA/Object;)Z" the
class loader (instance of ) of the current class, com/inprise/vbroker/rmi/CORBA/Stub, and the class loader (instance of org/eclipse/jetty/webapp/WebAppClassLoader) for interface
org/omg/CORBA/Object have different Class objects for the type org/omg/CORBA/Object used in the signature
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:171)
at com.inprise.vbroker.orb.CDRInputStream.(CDRInputStream.java:176)
at com.inprise.vbroker.orb.ORBSingleton.create_input_stream(ORBSingleton.java:11)
at com.inprise.vbroker.orb.ORB.parseIOR(ORB.java:463)
at com.inprise.vbroker.orb.ORB.string_to_ior(ORB.java:391)
at com.inprise.vbroker.ds.DSUser.doGetIOR(DSUser.java:1216)
at com.inprise.vbroker.ds.DSUser.getIOR(DSUser.java:1158)
at com.inprise.vbroker.ds.DSUser.bind(DSUser.java:1364)
at com.inprise.vbroker.interceptor.ChainBindInterceptorImpl.bind(ChainBindInterceptorImpl.java:38)
at com.inprise.vbroker.orb.DelegateImpl._bind(DelegateImpl.java:281)
at com.inprise.vbroker.orb.DelegateImpl.bind(DelegateImpl.java:260)
at com.inprise.vbroker.CORBA.portable.ObjectImpl._bind(ObjectImpl.java:62)
at com.inprise.vbroker.orb.ORB.bind(ORB.java:1878)
at com.asiainfo.openboss.obsystem.openbroker.visibroker_corba.VBrokerClient.callServer(Unknown Source)
at com.asiainfo.openboss.obsystem.obdclient.CobdClientObject.call_server(Unknown Source)
at com.asiainfo.openboss.cboss.homesvr.MCbossIdentify.ICbossIdentifyInt.query_menuControlInfo(ICbossIdentifyInt.java:264)
at com.asiainfo.cboss.openboss.homesvr.intf.mcbossidentify.impl.obd.ICbossIdentifyObdImpl.query_menuControlInfo(ICbossIdentifyObdImpl.java:117)
at com.asiainfo.cboss.openboss.homesvr.CbossRegauthInvoker.query_menuControlInfo(CbossRegauthInvoker.java:310)
at com.asiainfo.cboss.web.common.filter.UrlSecurityFilter.loadMenuControlInfoList(UrlSecurityFilter.java:78)
at com.asiainfo.cboss.web.common.filter.UrlSecurityFilter.init(UrlSecurityFilter.java:278)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at org.eclipse.jetty.server.Server.doStart(Server.java:282)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedAdapter.start(JettyEmbeddedAdapter.java:67)
at net.sourceforge.eclipsejetty.starter.common.AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:84)
at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)
2016-08-24 15:12:15.576:WARN:oejuc.AbstractLifeCycle:FAILED org.eclipse.jetty.server.Server@58a1a199: java.lang.LinkageError: loader constraint violation in interface itable initialization:
when resolving method "org.omg.CORBA.portable.ObjectImpl._is_equivalent(Lorg/omg/CORBA/Object;)Z" the class loader (instance of ) of the current class, com/inprise/vbroker/rmi/CO
RBA/Stub, and the class loader (instance of org/eclipse/jetty/webapp/WebAppClassLoader) for interface org/omg/CORBA/Object have different Class objects for the type org/omg/CORBA/Object used
in the signature
java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.omg.CORBA.portable.ObjectImpl._is_equivalent(Lorg/omg/CORBA/Object;)Z" the
class loader (instance of ) of the current class, com/inprise/vbroker/rmi/CORBA/Stub, and the class loader (instance of org/eclipse/jetty/webapp/WebAppClassLoader) for interface
org/omg/CORBA/Object have different Class objects for the type org/omg/CORBA/Object used in the signature
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:171)
at com.inprise.vbroker.orb.CDRInputStream.(CDRInputStream.java:176)
at com.inprise.vbroker.orb.ORBSingleton.create_input_stream(ORBSingleton.java:11)
at com.inprise.vbroker.orb.ORB.parseIOR(ORB.java:463)
at com.inprise.vbroker.orb.ORB.string_to_ior(ORB.java:391)
at com.inprise.vbroker.ds.DSUser.doGetIOR(DSUser.java:1216)
at com.inprise.vbroker.ds.DSUser.getIOR(DSUser.java:1158)
at com.inprise.vbroker.ds.DSUser.bind(DSUser.java:1364)
at com.inprise.vbroker.interceptor.ChainBindInterceptorImpl.bind(ChainBindInterceptorImpl.java:38)
at com.inprise.vbroker.orb.DelegateImpl._bind(DelegateImpl.java:281)
at com.inprise.vbroker.orb.DelegateImpl.bind(DelegateImpl.java:260)
at com.inprise.vbroker.CORBA.portable.ObjectImpl._bind(ObjectImpl.java:62)
at com.inprise.vbroker.orb.ORB.bind(ORB.java:1878)
at com.asiainfo.openboss.obsystem.openbroker.visibroker_corba.VBrokerClient.callServer(Unknown Source)
at com.asiainfo.openboss.obsystem.obdclient.CobdClientObject.call_server(Unknown Source)
at com.asiainfo.openboss.cboss.homesvr.MCbossIdentify.ICbossIdentifyInt.query_menuControlInfo(ICbossIdentifyInt.java:264)
at com.asiainfo.cboss.openboss.homesvr.intf.mcbossidentify.impl.obd.ICbossIdentifyObdImpl.query_menuControlInfo(ICbossIdentifyObdImpl.java:117)
at com.asiainfo.cboss.openboss.homesvr.CbossRegauthInvoker.query_menuControlInfo(CbossRegauthInvoker.java:310)
at com.asiainfo.cboss.web.common.filter.UrlSecurityFilter.loadMenuControlInfoList(UrlSecurityFilter.java:78)
at com.asiainfo.cboss.web.common.filter.UrlSecurityFilter.init(UrlSecurityFilter.java:278)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at org.eclipse.jetty.server.Server.doStart(Server.java:282)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedAdapter.start(JettyEmbeddedAdapter.java:67)
at net.sourceforge.eclipsejetty.starter.common.AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:84)
at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)
Exception in thread "main" java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.omg.CORBA.portable.ObjectImpl._is_equivalent(Lor
g/omg/CORBA/Object;)Z" the class loader (instance of ) of the current class, com/inprise/vbroker/rmi/CORBA/Stub, and the class loader (instance of org/eclipse/jetty/webapp/WebApp
ClassLoader) for interface org/omg/CORBA/Object have different Class objects for the type org/omg/CORBA/Object used in the signature
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:171)
at com.inprise.vbroker.orb.CDRInputStream.(CDRInputStream.java:176)
at com.inprise.vbroker.orb.ORBSingleton.create_input_stream(ORBSingleton.java:11)
at com.inprise.vbroker.orb.ORB.parseIOR(ORB.java:463)
at com.inprise.vbroker.orb.ORB.string_to_ior(ORB.java:391)
at com.inprise.vbroker.ds.DSUser.doGetIOR(DSUser.java:1216)
at com.inprise.vbroker.ds.DSUser.getIOR(DSUser.java:1158)
at com.inprise.vbroker.ds.DSUser.bind(DSUser.java:1364)
at com.inprise.vbroker.interceptor.ChainBindInterceptorImpl.bind(ChainBindInterceptorImpl.java:38)
at com.inprise.vbroker.orb.DelegateImpl._bind(DelegateImpl.java:281)
at com.inprise.vbroker.orb.DelegateImpl.bind(DelegateImpl.java:260)
at com.inprise.vbroker.CORBA.portable.ObjectImpl._bind(ObjectImpl.java:62)
at com.inprise.vbroker.orb.ORB.bind(ORB.java:1878)
at com.asiainfo.openboss.obsystem.openbroker.visibroker_corba.VBrokerClient.callServer(Unknown Source)
at com.asiainfo.openboss.obsystem.obdclient.CobdClientObject.call_server(Unknown Source)
at com.asiainfo.openboss.cboss.homesvr.MCbossIdentify.ICbossIdentifyInt.query_menuControlInfo(ICbossIdentifyInt.java:264)
at com.asiainfo.cboss.openboss.homesvr.intf.mcbossidentify.impl.obd.ICbossIdentifyObdImpl.query_menuControlInfo(ICbossIdentifyObdImpl.java:117)
at com.asiainfo.cboss.openboss.homesvr.CbossRegauthInvoker.query_menuControlInfo(CbossRegauthInvoker.java:310)
at com.asiainfo.cboss.web.common.filter.UrlSecurityFilter.loadMenuControlInfoList(UrlSecurityFilter.java:78)
at com.asiainfo.cboss.web.common.filter.UrlSecurityFilter.init(UrlSecurityFilter.java:278)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at org.eclipse.jetty.server.Server.doStart(Server.java:282)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedAdapter.start(JettyEmbeddedAdapter.java:67)
at net.sourceforge.eclipsejetty.starter.common.AbstractJettyLauncherMain.launch(AbstractJettyLauncherMain.java:84)
at net.sourceforge.eclipsejetty.starter.embedded.JettyEmbeddedLauncherMain.main(JettyEmbeddedLauncherMain.java:42)