A
A
arturgspb2013-08-12 23:05:53
Java
arturgspb, 2013-08-12 23:05:53

Problem with Spring WS application configuration?

upd : Added screenshots of settings
Hello!
I'm getting started with spring-ws. For the test, I decided to make a small program - a web service for working with mongoDb.
I started with a simple one - just a WebService following the example of www.mkyong.com/webservices/jax-ws/jax-ws-spring-in...
everything worked, good. I tried separately mongo www.mkyong.com/mongodb/spring-data-mongodb-hello-w... , everything is ok too.
Tried to combine everything together, got the problem:

??? 12, 2013 11:55:46 PM org.apache.catalina.core.ApplicationContext log
INFO: Loading Spring root WebApplicationContext
??? 12, 2013 11:55:46 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate NamespaceHandler for namespace [http://www.springframework.org/schema/data/mongo]
Offending resource: ServletContext resource [/WEB-INF/applicationContext.xml]

I spent three days studying the problem, but I still did not understand anything. Please, prompt in what party to dig.
I launch through Intellij, if that.
Sources: github.com/arturgspb/mongo-ws-test
Screenshots424117266ccbff5706142264a216c8f9.png
4139ae8818fcd309a8c9b48bbe23967a.png
2cc57dad5bf123556f6d8207e751fa88.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Encircled, 2013-08-14
@Encircled

And check if all the libs are in "WEB-INF/lib" and if they are added to the artifact

V
Victor Potapov, 2014-09-08
@midikko

The problem seems to be the lack of a schema in the application context headers, in particular for www.springframework.org/schema/data/mongo.
listing app would help to figure it out. context.
maybe I didn’t quite understand the essence of your problem, but if I were you, I wouldn’t suffer with various things with spring and used the wonderful hibernate library as an intermediary between you and the database, which offers us the necessary functionality for communicating with any data source. combined with JPA annotations, you will get a wonderful tool for communicating with the database in a few minutes.
I can say for sure that the problem with the import is in the header application context. dig for information on this topic.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question