MyEclipse: [Closed] Problem with hello web service & jdk 1.4

ivost - Oct 28, 2006 - 03:24 AM
Post subject: [Closed] Problem with hello web service & jdk 1.4
I am trying to create hello web service - following the tutorial. I'm using Eclipse 3.2 and JDK 1.4.
When trying to get WSDL I see following error:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.xfire.spring.ServiceBean' defined in class path resource [META-INF/xfire/services.xml]: Initialization of bean failed; nested exception is java.lang.UnsupportedClassVersionError: com/test/IHelloWs (Unsupported major.minor version 49.0)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:370)
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320)
org.codehaus.xfire.spring.XFireConfigLoader.getXFireApplicationContext(XFireConfigLoader.java:103)

...

Looks like xfire problem - I found something on their forums about similar errors due to "xfire ... precompiled with 1.5"...
Unfortunately I cannot upgrade to 1.5
What should I try?
Thanks
support-rkalla - Oct 30, 2006 - 06:46 PM
Post subject:
It looks like you have your project in MyEclipse set to compile with Java 5 (default in 3.2) and you are trying to run it under Java 1.4. Go to your project properties, go to Compiler settings, override the workspace default and set it to 1.4 compliance. Then redeploy (after stopping your app server) and try that.
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits