aspose file tools*
The moose likes Struts and the fly likes error while starting Tomcat5.5.9 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "error while starting Tomcat5.5.9" Watch "error while starting Tomcat5.5.9" New topic
Author

error while starting Tomcat5.5.9

Vallaru smitha
Ranch Hand

Joined: Aug 19, 2008
Posts: 87

Hi,

my application working good in my local evn eclipse but after uploading it to server i am seeing following error:

I have added log4jproperties and now i am getting this, can you please take a look...

DEBUG [main] (CommonsLogger.java:57) = Loaded /hibernateManager/* in 'hibernateManager' package:{ActionConfig * (.{1}()) - ac
tion - jar:file:/var/ftp/vytek/home/lhuang/DEPLOYMENT/csr/WEB-INF/lib/struts2-fullhibernatecore-plugin-1.4-GA.jar!/struts-plu
gin.xml:74:36}
DEBUG [main] (CommonsLogger.java:57) = Loaded [BUILDER] {PackageConfig Name:default namespace: parents:[{PackageConfig Name:h
ibernate-default namespace: parents:[{PackageConfig Name:struts-default namespace: parents:[]}]}]}
ERROR [main] (StandardContext.java:3544) = Exception starting filter struts2
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:1629)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:138)
at com.opensymphony.xwork2.ObjectFactory.getClassInstance(ObjectFactory.java:96)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:398)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:355)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:460)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:265)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:189)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:48)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:79)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3540)

Could anyone please help

Thanks
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8971
    
    9

It looks like you are compiling your app with one version of Java and running Tomcat with another. It usually works if one compiles with a lower version of Java and runs with a higher version, but not the other way around.


[How To Ask Questions On JavaRanch]
 
jQuery in Action, 2nd edition
 
subject: error while starting Tomcat5.5.9