- This topic has 1 reply, 2 voices, and was last updated 18 years ago by Riyad Kalla.
-
AuthorPosts
-
ivostMemberI 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
Riyad KallaMemberIt 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.
-
AuthorPosts