Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » bundle javax.annotation not updated
bundle javax.annotation not updated [message #1172033] Tue, 05 November 2013 17:00 Go to next message
Domenico Briganti is currently offline Domenico BrigantiFriend
Messages: 2
Registered: November 2013
Junior Member
I all,
I'm developing an e4 RCP application and I'm going to use RestEasy 3 to make REST http call.
Now, RestEasy uses the annotation javax.annotation.Priority and when the ClassLoader try to load the RestEasy class that use this annotation, it complains with:


java.lang.NoClassDefFoundError: javax/annotation/Priority
	at org.jboss.resteasy.spi.ResteasyProviderFactory.getPriority(ResteasyProviderFactory.java:1337)
	at org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider(ResteasyProviderFactory.java:1367)
	at org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider(ResteasyProviderFactory.java:1310)
	at org.jboss.resteasy.plugins.providers.RegisterBuiltin.registerProviders(RegisterBuiltin.java:70)
	at org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBuiltin.java:31)
	at org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder.getProviderFactory(ResteasyClientBuilder.java:294)
	at org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder.build(ResteasyClientBuilder.java:302)
	at org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder.build(ResteasyClientBuilder.java:49)
	at javax.ws.rs.client.ClientBuilder.newClient(ClientBuilder.java:114)
	at it.osys.reservation.bo.backend.ServerConnection.connect(ServerConnection.java:56)
	at it.osys.reservation.bo.dialog.LoginDialog.okPressed(LoginDialog.java:172)
	at it.osys.reservation.bo.dialog.LoginDialog$1.run(LoginDialog.java:151)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3717)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3366)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
	at org.eclipse.jface.window.Window.open(Window.java:802)
	at it.osys.reservation.bo.handlers.StartupLifeCycleHandler.login(StartupLifeCycleHandler.java:36)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:220)
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:107)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:233)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:144)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Caused by: java.lang.ClassNotFoundException: javax.annotation.Priority cannot be found by backoffice-rcp.bundle_1.0.0.qualifier
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
	... 42 more



This because the e4 bundle import the bundle javax.annotation v-1.1.0 from eclipse repository.
I think than I need a new version javax.annotation updated with the new Priority annotation.

Do you think that there is another way to resolve the problem?

Domenico

Re: bundle javax.annotation not updated [message #1180198 is a reply to message #1172033] Sun, 10 November 2013 21:15 Go to previous messageGo to next message
Eclipse UserFriend
Do you have any plugin in your runtime which can export the javax.annotation > 1.1.0 ?
Re: bundle javax.annotation not updated [message #1181577 is a reply to message #1180198] Mon, 11 November 2013 17:48 Go to previous message
Domenico Briganti is currently offline Domenico BrigantiFriend
Messages: 2
Registered: November 2013
Junior Member
No, I resolved hacking RestEasy and modify the Priority annotation.
The last javax.annotation that I can found in eclipse repo is javax.annotation_1.1.0.

Domenico

Previous Topic:them selection is empty in the appearance preferences
Next Topic:How to implement Save As for our Part.
Goto Forum:
  


Current Time: Fri Mar 29 09:49:45 GMT 2024

Powered by FUDForum. Page generated in 0.03252 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top