aspose file tools*
The moose likes Web Services and the fly likes spring-ws - failed to deploy the tutorial example on jboss server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "spring-ws - failed to deploy the tutorial example on jboss server" Watch "spring-ws - failed to deploy the tutorial example on jboss server" New topic
Author

spring-ws - failed to deploy the tutorial example on jboss server

daphna deutsch
Greenhorn

Joined: Nov 17, 2005
Posts: 17
I'm trying to deploy the holidayService example from spring-ws tutorial on an existing web-application working with jboss 5.

I perform the following steps:
1) Add the following lines to my web.xml file:

2) Add the file spring-ws-servlet.xml from the sample code and placed in the same place as my web.xml file. File contain the following lines:

3) Add the files hr.wsdl & hr.xsd to the same location.
4) Add the jar spring-ws-core-2.0.0-RC2.jar to the jboss class path.

After starting the server and trying to get the new wsdl (using http://localhost:8080/jbossws/ or http://localhost:8080/holidayService/holiday.wsdl) I don’t get the wsdl.
Also when trying to access an existing jsp (using http://localhost:8080/index.jsp) I get HTTP Status 405. When removing the additional lines that I add to the web.xml file I can access this jsp.



Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Have you tried to put the required JAR files in the WEB-INF/lib folder of your web application?
I.e. the spring-ws-core-2.0.0-RC2.jar.
Something additional to try if that does not work is to include the spring-ws-2.0.0-RC2-all.jar in the web application, in case there are any dependencies that you are missing.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
daphna deutsch
Greenhorn

Joined: Nov 17, 2005
Posts: 17
yes - i did try to place it under jar under WEB-INF/lib in the war itself, or under jboss/default/lib (both, only one)
but the error is the same.

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
I tried the example and developed it in a dynamic web project in Eclipse. The project was named "JBossWSHoliday".
After quite some attempts, I managed to access the WSDL at: http://localhost:8080/JBossWSHoliday/holidayService/holiday.wsdl
The next step was to try to access the service using soapUI. The only result was an exception that probably is due to me using JRE 6 to run the JBoss 5 AS.
The web application does deploy and, as before, I am able to access the WSDL, so I guess I have had at least partial success.

Oh, yes, I used the following libraries:
aopalliance-1.0.jar
commons-logging-1.1.1.jar
jaxen-1.1.1.jar
jdom-1.1.jar
log4j-1.2.16.jar
spring-aop-3.0.5.RELEASE.jar
spring-asm-3.0.5.RELEASE.jar
spring-beans-3.0.5.RELEASE.jar
spring-context-3.0.5.RELEASE.jar
spring-context-support-3.0.5.RELEASE.jar
spring-core-3.0.5.RELEASE.jar
spring-expression-3.0.5.RELEASE.jar
spring-oxm-3.0.5.RELEASE.jar
spring-web-3.0.5.RELEASE.jar
spring-webmvc-3.0.5.RELEASE.jar
spring-ws-core-2.0.0.RELEASE.jar
spring-ws-core-2.0.0.RELEASE.jar
wsdl4j-1.6.1.jar
Best wishes!
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 984

What is the URL to the tutorial you all are talking about?


Please ignore post, I have no idea what I am talking about.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
I think this is the one (at least it is the one I have looked at): http://static.springsource.org/spring-ws/sites/2.0/reference/html/tutorial.html
Best wishes!
Kevin Eddy
Ranch Hand

Joined: Feb 24, 2010
Posts: 74
If you go through that tutorial you'll likely encounter a problem with the plugin goal. It has been deprecated. You'll have to use generate. I've not went through this yet but plan on trying to struggle with it in a day or so and see what I can get working. Let us know how it works out for you.
Kevin Eddy
Ranch Hand

Joined: Feb 24, 2010
Posts: 74
It does seem to work, but with some effort. Helps to read the tutorial pseudo backwards.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: spring-ws - failed to deploy the tutorial example on jboss server
 
Similar Threads
javax.xml.bind.annotation.XmlSchemaType missing
Spring MVC question
Problem in spring mvc configuration
applicationContext.xml - Can not find definition for element 'beans'
Problem finding index page under WEB-INF / Spring MVC