• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.



 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
daphna deutsch
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 1067
2
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the URL to the tutorial you all are talking about?
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It does seem to work, but with some effort. Helps to read the tutorial pseudo backwards.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!