Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » SEVERE: java.lang.ClassNotFoundException: com.sun.jersey.core.util.FeaturesAndProperties(Exception when using TomEE server in Eclipse)
SEVERE: java.lang.ClassNotFoundException: com.sun.jersey.core.util.FeaturesAndProperties [message #1706197] Mon, 24 August 2015 16:45 Go to next message
sujata ghorpade is currently offline sujata ghorpadeFriend
Messages: 3
Registered: August 2015
Junior Member
Hi All,

I am a newbie.

I have a ClassNotFoundException when deploying the RESTful Dynamic Web Project.

I have the message as mentioned in my log.
"validateJarFile TomEE/WEB-INF\lib\com.sun.jersey.jersey-core-1.4.0.jar' contains offending class: javax.ws.rs.Path. It will be ignored"

I am using Eclipse Indigo, TomEE 1.7.2 and JDK/JRE 1.7

After referencing various forums I have learnt that the tomcat server ignores the class. As per suggestions I have tried the following options but to no avail.

a.) I have included the com.sun.jersey.jersey-core-1.4.0.jar(containing the com.sun.jersey.core.util.FeaturesAndProperties class) in WEB-INF/lib and added to the java build path

b.) Made changes in system.properties as mentioned tip-jersey-client

c.) I have configured the Web Modules section for the server to include DocumentBase to point to D:\TomEE\apache-tomee-plus-1.7.2\webapps\tomee location and path as /tomee as mentioned at the link tomee-and-eclipse (Advanced installation).

The tomee folder was missing from the TomEE1.7.2 version so have copied it from TomEE1.7.1 and placed it appropriately.


Kindly guide me and help to resolve the error.
Thanks in advance.

[Updated on: Tue, 25 August 2015 06:36]

Report message to a moderator

Re: SEVERE: java.lang.ClassNotFoundException: com.sun.jersey.core.util.FeaturesAndProperties [message #1706203 is a reply to message #1706197] Mon, 24 August 2015 18:44 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 08/24/2015 11:16 AM, sujata ghorpade wrote:
> Hi All,
>
> I am a newbie.
>
> I have a ClassNotFoundException when deploying the RESTful Dynamic Web
> Project.
>
> I have the message as mentioned in my log.
> "validateJarFile TomEE/WEB-INF\lib\com.sun.jersey.jersey-core-1.4.0.jar'
> contains offending class: javax.ws.rs.Path. It will be ignored"
>
> I am using Eclipse Indigo, TomEE 1.7.2 and JDK/JRE 1.7
>
> After referencing various forums I have learnt that the tomcat server
> ignores the class. As per suggestions I have tried the following options
> but to no avail.
>
> a.) I have included the com.sun.jersey.jersey-core-1.4.0.jar(containing
> the com.sun.jersey.core.util.FeaturesAndProperties class) in WEB-INF/lib
> and added to the java build path
> b.) Made changes in system.properties as mentioned tip-jersey-client
>
> c.) I have configured the Web Modules section for the server to include
> DocumentBase to point to D:\TomEE\apache-tomee-plus-1.7.2\webapps\tomee
> location and path as /tomee as mentioned at the link tomee-and-eclipse
> (Advanced installation).
>
> The tomee folder was missing from the TomEE1.7.2 version so have copied
> it from TomEE1.7.1 and placed it appropriately.
>
>
> Kindly guide me and help to resolve the error.
> Thanks in advance.

Your post would be more appropriate in the Eclipse WTP (web tools) forum.
Re: SEVERE: java.lang.ClassNotFoundException: com.sun.jersey.core.util.FeaturesAndProperties [message #1706220 is a reply to message #1706203] Tue, 25 August 2015 06:42 Go to previous message
sujata ghorpade is currently offline sujata ghorpadeFriend
Messages: 3
Registered: August 2015
Junior Member
Thank you Russell Bateman
Previous Topic:Run Eclipse Win on Mac
Next Topic:problems with Java on OS X 10.10
Goto Forum:
  


Current Time: Wed Nov 25 00:27:37 GMT 2020

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

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

Back to the top