Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

when I deploy a project in Apache Tomcat 6.0 it's working fine. When I deploy the same project in weblogic server 10.3 it's showing an error like below:

Error 500--Internal Server Error

javax.servlet.ServletException: [HTTP:101249][weblogic.servlet.internal.WebAppServletContext@ae43b8 - appName: '_appsdir_ab_dir', name: 'ab', context-path: '/ab', spec-version: 'null']: Servlet class FirstServlet for servlet FirstServlet could not be loaded because the requested class was not found in the classpath . java.lang.UnsupportedClassVersionError: FirstServlet : Unsupported major.minor version 51.0.
share|improve this question
up vote 1 down vote accepted

Your project has been built with a JDK whose version is higher than WebLogic supports. 51.0 designates JDK 7, but Weblogic 10.3.1 (for example, insert your version here) supports JDK 5 at most.

You must either update Weblogic or make your project compatible to a earlier Java Version.

You'll find more information about WebLogic 10.3's compatibility on Oracle's homepage:

share|improve this answer

Probably you are using older version of Weblogic eg. (10.3.x)and higher version of java eg (jdk1.7.x). The solutions are 1.If possible update your Weblogic by higher version (OR) 2.compile your project with jdk 1.6 Go to IDE (eg.Eclipse) > right click on project>Properties>select java compiler > change compiler compliance 1.7 to 1.6>Apply OK >Go to project>clean and build > now deploy it .It will work definitely. :)

share|improve this answer
You will do much better if you do not choose three-year-old questions with existing satisfactory answers that are pretty much repeated by your post. You can visit the Unanswered pane to have a look at fresher and more important questions. – Deer Hunter Apr 18 '15 at 18:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.