-
Oct 29th, 2007, 04:53 PM
#1
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,
-
Oct 29th, 2007, 05:27 PM
#2
The wsdl is created at runtime, using the XSD as a basis.
-
Oct 29th, 2007, 05:36 PM
#3
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.
-
Oct 29th, 2007, 05:40 PM
#4
Probably due to the fact that you're compiling with JDK 1.5, and running tomcat under another JDK version, like 1.4.2.
-
Oct 30th, 2007, 09:25 AM
#5
oh, really? Thank you Arjen!!
Last edited by choesh; Oct 30th, 2007 at 09:30 AM.
-
Oct 30th, 2007, 11:58 AM
#6
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
-
Forum Rules