Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Services and the fly likes Spring Web Services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Spring Web Services" Watch "Spring Web Services" New topic
Author

Spring Web Services

Dineshram Pandi
Greenhorn

Joined: Aug 04, 2011
Posts: 1
Hi All,

I am doing "spring web service " example from this link (http://justcompiled.blogspot.in/2010/09/building-web-service-with-spring-ws.html).

Please give the solution for that.

Project Setup:>>>>>>>>

Tool : Eclilpse Indigo,
Server : Tomcat 7.
Java : JDK, JRE 1.6
Deploy: Weapps (Inside my project )

My error is :>>>>>>>

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet spring-ws threw exception
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:269)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:300)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
root cause

java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:431)
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:459)
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:340)
org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:307)
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Check your classpath. I suspect you are mixing different spring versions and/or jars from different spring versions.


"java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX"


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
Don't get me started about those stupid light bulbs.
 
subject: Spring Web Services
 
Similar Threads
Dialect class not found: org.hibernate.dialect.MySQLDialect
Spring Tiles Integration
Spring w/ Hibernate
The matching wildcard is strict, but no declaration can be found for element 'flow:registry'
Error when trying port code from Spring based project to Struts based project