Hi Fabien,

I think you developed your web application with jdk5 and now you are tried to run that application with jdk6.
So that you got below error.

java.lang.UnsupportedClassVersionError: Bad version number in .class file

Beter to develope your web application again with jdk6 and tried to deploy in tomcat 6.0.16 .


Thanks
Dorababu

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hi,

I'm developing a web application with wicket framework, under tomcat 6.0.16
and jdk 6 update 4.

I'm trying to deploy my web application into a server debian :
My first try is with tomcat 5.5 and jdk5, and i have a problem to write in
the log file.

Now I'm trying to use tomcat 6.0.16 and jdk update 6.
I have updated the JAVA_HOME et PATH variables environnement. And when i
deploy and start the sever, i have this exception :
In catalina log :
GRAVE: Error filterStart
18 avr. 2008 14:46:38 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de démarrage du contexte [/appWicket-1.0] suite aux erreurs
précédentes
18 avr. 2008 14:46:38 org.apache.catalina.core.StandardContext
addApplicationListener



In localhost log :
GRAVE: Exception au démarrage du filtre appWicket
java.lang.UnsupportedClassVersionError: Bad version number in .class file
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
       at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
       at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1819)
       at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
       at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327)
       at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
       at
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:68)
       at
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:49)
       at
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:508)
       at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
       at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
       at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
       at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
       at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)
       at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
       at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
       at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
       at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
       at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
       at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
       at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
       at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
       at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
       at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
       at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
       at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
       at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
       at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
       at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

My research on internet, shows that this problem may due to :
"Base on your error log, your exception
"java.lang.UnsupportedClassVersionError: Bad version number in .class
file" indicates that you are trying to run a class compiled with newer
version of JDK.For example, you have compiled the class with JDK 5.0
and try to run on JDK 1.4.2."

But my i'm trying to run with jdk 6 update 6 classes compiled with jdk 6
update 4.

I don't understand! Thank you for your help.
--
View this message in context: http://www.nabble.com/Problem-to-deploy-my-webbapps-tp16763460p16763460.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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