Solved

spring web services

Posted on 2011-03-09
7
18 Views
Last Modified: 2016-09-22
Hi,
I am developing a SOAP web service using Spring 3.0, Spring-WS, SpringSource toolsuite
 running tc server v6.   When I run the application on the server, I get the following
exception in SpringSource toolsuite.

"type Exception report message description
 The server encountered an internal error () that prevented it from fulfilling this request.
 exception javax.servlet.ServletException: Wrapper cannot find
 servlet class org.springframework.ws.transport.http.MessageDispatcherServlet
 or a class it depends on
 com.springsource.insight.collection.tcserver.requ est.
HttpRequestOperationCollectionValve.invoke(HttpRequestOperationCollectionValve.java:60)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)      
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)    
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)      
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)  
  org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:379)    
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)    
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)    
 java.lang.Thread.run(Thread.java:619)"

The org.springframework.ws.transport.http.MessageDispatcherServlet  class is contained within
the spring-ws-core-2.0.0.RELEASE.jar which is on my classpath.
 I have verified that the .JAR is contained within the WAR file but still getting the above exception.
any help is appreciated.
Thanks, George
0
Comment
Question by:gcdbrown2011
  • 4
  • 2
7 Comments
 
LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 35083979
0
 

Accepted Solution

by:
gcdbrown2011 earned 0 total points
ID: 35146516
The following configuration worked:

Maven2 dependicies-  

        <dependency>
            <groupId>org.springframework.ws</groupId>
            <artifactId>spring-ws-core</artifactId>
            <version>2.0.0.RELEASE</version>
        </dependency>
 
        <dependency>
            <groupId>org.springframework.ws</groupId>
            <artifactId>spring-ws-security</artifactId>
            <version>2.0.0.RELEASE</version>
         </dependency>

I also had to :
1. download xws-security 3.0, as this was not in Maven2 (its actually in Maven1).
2. include saaj-api-1.3 & saaj-impl-1.3 on my classpath.

Note the correct version of wss4j is wss4j-1.5.8.

Regards,
George
0
 
LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 35147126
In the above link mention that u need include saaj-api-1.3 & saaj-impl-1.3 on my classpath.

 and security jar deatils .


>>in adsense of relevent expert reply I worked on this until I came to above solution myself.

Dear gcdbrown2011: All are give idea only no one going to work for you !!
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 35147140
Thats why in pointing they are giving (grading a- fully help and b-particalue help)
0
 
LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 35147561
I Have some link he accept that link info is helped him but he didnt accept my solution
0
 

Author Comment

by:gcdbrown2011
ID: 35148046
The link does not work for Spring 3.0, which the question related to. The link listed 8 jars:
    * jaxen
    * jdom
    * saaj-api
    * saaj-impl
    * spring
    * spring-ws-core
    * spring-ws-core-tiger
    * spring-xml

The solution required 29 jars. Of the 8 listed, in the link, only 4 were relevant. When I tried the solution in the link, and it did not work, I then went back to Maven rather than guessing which JARs to include.  
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
use of cookies and regulations 1 86
mapShare challenge 13 103
Setting strict transport security header in header not working 1 96
windows explorer path to command prompt 5 43
Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question