Try changing Java version of your tomcat bundled with eclipse.
Your tomcat java version must be higher than compiled version.

On Thu, Jun 18, 2009 at 7:21 PM, Nelson Rodrigo - LHQ <
nelson.rodr...@loadstarlk.com> wrote:

>  But problem is its come only with eclips
>
>             Otherwise its work properly
>
>
>
>
>
> Nelson Rodrigo
>
> Staff Officer – Software Development
> *LOADSTAR (PRIVATE) LIMITED**
> *Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
> 311 6556
>
> P *SAVE PAPER*  - *Please consider our environment before printing *ü
>   ------------------------------
>
> *From:* Batbayar Bazarragchaa [mailto:digz6...@gmail.com]
> *Sent:* Thursday, June 18, 2009 4:26 PM
> *To:* nelson.rodr...@loadstarlk.com
> *Cc:* java-ee-j2ee-programming-with-passion@googlegroups.com
> *Subject:* Re: [java ee programming] Servet Error
>
>
>
> Your tomcat java version is lower than compiled java version.
>
>
> Example: You've compiled your source files in java 1.6 and your tomcat is
> running on java 1.5.
>
> On Thu, Jun 18, 2009 at 6:27 PM, Nelson Rodrigo - LHQ <
> nelson.rodr...@loadstarlk.com> wrote:
>  *Dear Friends * *            If I run my servlet through eclips its
> coming following error, can you any one help me to solve this. Am I dong any
> mistakes.* * * *HTTP Status 500 - *
> ------------------------------
>
> *type* Exception report
>
> *message*
>
> *description* *The server encountered an internal error () that prevented
> it from fulfilling this request.*
>
> *exception*
>
> javax.servlet.ServletException: Error allocating a servlet instance
>
>         
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>
>         
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>
>         
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>
>         
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>
>         
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>
>         
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>
>         
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>
>         java.lang.Thread.run(Thread.java:595)
>
> *root cause*
>
> java.lang.UnsupportedClassVersionError: Bad version number in .class file
>
>         java.lang.ClassLoader.defineClass1(Native Method)
>
>         java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>
>         
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>
>         
> org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1815)
>
>         
> org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:869)
>
>         
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1322)
>
>         
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
>
>         
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>
>         
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>
>         
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>
>         
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>
>         
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>
>         
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>
>         
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>
>         java.lang.Thread.run(Thread.java:595)
>
> *note* *The full stack trace of the root cause is available in the Apache
> Tomcat/5.5.20 logs.*
>  ------------------------------
>  *Apache Tomcat/5.5.20*
>
>
>
>
>
> Nelson Rodrigo
> Staff Officer – Software Development
> *LOADSTAR (PRIVATE) LIMITED
> *Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
> 311 6556
>
> P *SAVE PAPER*  - *Please consider our environment before printing *ü
>
>
>
>
>
>
>
>
>
> --
> Let's care our nature!!!
>
> >
>


-- 
Let's care our nature!!!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to