Joseph Idol

Greenhorn
+ Follow
since Nov 07, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Joseph Idol


i'm using apache tomcat 7 with jdk 1.7. i have so far been unsuccessful with running even one servlet.

i created my web application hierarchy as:

or
web application hierarchy

the java code is:


and the web.xml code is:


but i always get a 404 error message every time i run: http://localhost:8080/hello/sayhello

i then checked the stderr log and found that

Nov 7, 2011 4:11:42 PM org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/hello]]
.
.
.
Caused by: java.lang.UnsupportedClassVersionError: com/training/HelloServlet : Unsupported major.minor version 51.0 (unable to load class com.training.HelloServlet)



any thoughts as to how i may resolve this so that i can run my java servlets?
7 years ago