facebook

[Closed] Problem with hello web service & jdk 1.4

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #261034 Reply

    ivost
    Member

    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

    #261084 Reply

    Riyad Kalla
    Member

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: [Closed] Problem with hello web service & jdk 1.4

You must be logged in to post in the forum log in