I am new to JSPServlet and building an application in JSP servlet. I created an application and it was working fine. I am using Eclipse IDE for Web development and I am getting following error from few minutes ago. What should be problem. I configured Tomcat server 7.0 in my eclipse for this purpose and using servlet 3.0. What can be my problem?
Thanks for reply..
DiscoverIT System Integrators Pvt. Ltd.
These are error messages coming from the code generated from your JSP?
These are errors in Eclipse, or errors in your log when you access the page?
The type ____ is not generic - these types are standard Java, and should be generic from Java1.5+
The method valueOf(String) in the type Long is not applicable for the arguments (long) - valueOf(long) was added in Java 1.5
The type index_jsp must implement the inherited abstract method JspSourceDependent.getDependants() - enforcing inheritance from interfaces is also a relatively new concept - Java 1.6
It looks to me like an inconsistency between versions of java somehow.
You have some compiled code from an earlier version of java 1.4??? which doesn't understand generics, or doesn't have the methods being used, and are trying to compile it with Java7.
I'm not entirely certain what is happening, but hopefully this might point you in the right direction.
- check to see what version of java you are running Tomcat with.
- what version is configured in Eclipse
- are the compiler settings appropriate for your use case