Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » NoClassDefFoundError: javax.ws.rs.core.MediaType
NoClassDefFoundError: javax.ws.rs.core.MediaType [message #670396] Fri, 13 May 2011 20:41
rshelley  is currently offline rshelley Friend
Messages: 59
Registered: April 2010
Member
I'm importing the bundle "com.springsource.javax.ws.rs" (version 1.0.0), the bundle is active in Virgo (http://screencast.com/t/ghUDlZcwBVI) but my app is getting a NoClassDefFoundError exception when starting:

[2011-05-13 13:19:36.071] start-signalling-2           System.err       SEVERE: Exception sending context initialized event to listener instance of class org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap 
[2011-05-13 13:19:36.071] start-signalling-2           System.err       java.lang.NoClassDefFoundError: Could not initialize class javax.ws.rs.core.MediaType 
[2011-05-13 13:1


Here's my manifest:
Manifest-Version: 1.0
Export-Package: testapp.webshell;version="0.1";uses:="javax.ser
 vlet.http,javax.ws.rs,javax.ws.rs.core,org.springframework.stereotype
 ,org.springframework.web.bind.annotation,org.springframework.web.serv
 let"
Import-Bundle: com.springsource.javax.ws.rs;version="[1.0.0,1.0.0]"
Unversioned-Imports: *
Bundle-ClassPath: .,WEB-INF/classes,WEB-INF/lib
Bundle-Version: 0.1
Tool: Bundlor 1.0.0.RELEASE
Import-Library: org.springframework.spring;version="[3.0.0.RELEASE,3.0
 .0.RELEASE]"
Bundle-ManifestVersion: 2
Bundle-SymbolicName: testapp.webshell
Web-ContextPath: /webshell
Import-Package: javax.servlet.http;version="[2.5.0,2.5.0]",javax.ws.rs
 ,javax.ws.rs.core,org.springframework.stereotype;version="[2.5.6,3.0.
 0.RELEASE]",org.springframework.web.bind.annotation;version="[2.5.6,3
 .0.0.RELEASE]",org.springframework.web.servlet;version="[2.5.6,3.0.0.
 RELEASE]"


What might I be doing wrong? Thanks!
Previous Topic:unchecked exceptions in console
Next Topic:Error building sample application virgo snap
Goto Forum:
  


Current Time: Sun Dec 08 00:17:55 GMT 2024

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

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

Back to the top