Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP code is have problem

 
Milind Wakale
Greenhorn
Posts: 1
Android Tomcat Server Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everybody,

I am new to JSP Servlet 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..
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch, Milind!

I'm moving your post to our JSP forum, it looks better suited for your question.
 
Rakesh Keerthi
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Milind ,

can you please provide your source code. so that we can figure where it is going wrong.

Thanks
 
Stefan Evans
Bartender
Posts: 1746
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
I would
- 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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic