To expand on Chris's comment,
With Eclipse it is possible to compile for a newer version of Java and
run with an older JRE, which will fail. Make sure it's both compiling
and running the version of Java you want to use.

I always have a hard time finding anything in the maze of Eclipse
settings, so here's how to check this:
To see which JRE you're running with, open the server from the Servers
view, find the Runtime item and click Edit next to it. (This is in
Eclipse 3.2 with WST 1.5, hopefully it's the same in your version.)
To see which version of Java it's compiling for, look in Project >
Properties > Java Compiler; if it's not there, try Preferences > Java
> Compiler.
-- 
Len


On 7/27/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Koshy,
>
> Geevarghese, Koshy wrote:
> > I'm trying to run a web application on Eclipse 3.3 with Tomcat 5.5.
> >
> > I configured the Tomcat 5.5 server in  the eclipse server view and
> > added my project to the server.
> >
> > I'm starting tomcat through the eclipse server view and get the
> > following error -
>
> [snip]
>
> > java.lang.reflect.InvocationTargetException
>
> [snip]
>
> > Caused by: java.lang.NoSuchMethodError:
> > org.apache.naming.NamingContextBindingsEnumeration.<init>(Ljava/util/Enu
> > meration;)V
>
> It looks like you are compiling your application with one Java API and
> running it on another. Is that possible? It's one of the only reasons
> you might get a NSME like this.
>
> - -chris
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGqj0s9CaO5/Lv0PARAjF/AJ47QiK4tRLPEHk+DHJC5fhobVvDEgCdEDjh
> WH/CgxN+CUw5u4uR2RcWRcg=
> =tYDg
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to