Results 1 to 6 of 6

Thread: WSDL file is not generated

  1. #1
    Join Date
    Oct 2007
    Posts
    7

    Default WSDL file is not generated

    HI, I am following the tutorial http://static.springframework.org/sp.../tutorial.html Chapter 3.

    I followed the instruction, and the com.mycompany.hr.service.HumanResourceService; was not in the instruction so I even downloaded the tutorial source code and placed the class files in appropriate places. I went to the folder level where pom.xml exisst and I ran the mvn install. the WAR file is placed in the repository folder and target folder. When I opened the war files, there isn't the wsdl file like the tutorial source code. If the wsdl file is not generated by default(mvn install), what do I have to check?

    Please let me know and thanks in advance.

    Song,

  2. #2
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    The wsdl is created at runtime, using the XSD as a basis.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  3. #3
    Join Date
    Oct 2007
    Posts
    7

    Default

    Thank you for the fast response Arjen. I copied and pasted the dependency, but I still get the following error. Please help.

    javax.servlet.ServletException: Servlet.init() for servlet spring-ws threw exception
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:151)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:870)
    org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
    org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
    org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:685)
    java.lang.Thread.run(Thread.java:595)


    root cause

    org.springframework.beans.factory.CannotLoadBeanCl assException: Error loading class [com.mycompany.hr.ws.HolidayEndpoint] for bean with name 'holidayEndpoint' defined in ServletContext resource [/WEB-INF/spring-ws-servlet.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file
    org.springframework.beans.factory.support.Abstract BeanFactory.resolveBeanClass(AbstractBeanFactory.j ava:1081)
    org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:282)
    org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:352)
    org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:3 31)
    org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:265 )
    org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:235)
    org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:126)
    javax.servlet.GenericServlet.init(GenericServlet.j ava:212)
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:151)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:870)
    org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
    org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
    org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:685)
    java.lang.Thread.run(Thread.java:595)


    root cause

    java.lang.UnsupportedClassVersionError: Bad version number in .class file
    java.lang.ClassLoader.defineClass1(Native Method)
    java.lang.ClassLoader.defineClass(ClassLoader.java :620)
    java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:124)
    org.apache.catalina.loader.WebappClassLoader.findC lassInternal(WebappClassLoader.java:1847)
    org.apache.catalina.loader.WebappClassLoader.findC lass(WebappClassLoader.java:873)
    org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1326)
    org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1205)
    org.springframework.util.ClassUtils.forName(ClassU tils.java:201)
    org.springframework.beans.factory.support.Abstract BeanDefinition.resolveBeanClass(AbstractBeanDefini tion.java:327)
    org.springframework.beans.factory.support.Abstract BeanFactory.resolveBeanClass(AbstractBeanFactory.j ava:1075)
    org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:282)
    org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:352)
    org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:3 31)
    org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:265 )
    org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:235)
    org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:126)
    javax.servlet.GenericServlet.init(GenericServlet.j ava:212)
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:151)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:870)
    org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
    org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
    org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:685)
    java.lang.Thread.run(Thread.java:595)


    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.

  4. #4
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Probably due to the fact that you're compiling with JDK 1.5, and running tomcat under another JDK version, like 1.4.2.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  5. #5
    Join Date
    Oct 2007
    Posts
    7

    Default

    oh, really? Thank you Arjen!!
    Last edited by choesh; Oct 30th, 2007 at 09:30 AM.

  6. #6
    Join Date
    Oct 2007
    Posts
    7

    Default

    It works!!! I recompiled the class files with 1.5 and it works!! Eclipse were using 1.6 somehow~~ Thank you Arjen~~~

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •