java - setting up spring security with mongoDb -


i quite new in spring , trying set spring project mongodb , spring security.

i think quite close getting error

java.lang.nosuchmethoderror: org.springframework.core.convert.converter.converterregistry.addconverter(ljava/lang/class;ljava/lang/class;lorg/springframework/core/convert/converter/converter;)v 

i trying search information , find out have problem in pom.xml

pom.xml

<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"          xsi:schemalocation="http://maven.apache.org/pom/4.0.0      http://maven.apache.org/maven-v4_0_0.xsd">     <modelversion>4.0.0</modelversion>     <groupid>com.helpweb</groupid>     <artifactid>helpweb</artifactid>     <packaging>war</packaging>     <version>1.0-snapshot</version>     <name>help web</name>     <url>http://maven.apache.org</url>     <dependencies>         <dependency>             <groupid>cglib</groupid>             <artifactid>cglib</artifactid>             <version>2.2</version>         </dependency>          <!-- spring security -->         <dependency>             <groupid>org.springframework.security</groupid>             <artifactid>spring-security-core</artifactid>             <version>3.1.4.release</version>         </dependency>          <dependency>             <groupid>org.springframework.security</groupid>             <artifactid>spring-security-web</artifactid>             <version>3.1.4.release</version>         </dependency>          <dependency>             <groupid>org.springframework.security</groupid>             <artifactid>spring-security-config</artifactid>             <version>3.1.4.release</version>         </dependency>          <!-- spring framework -->         <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-orm</artifactid>             <version>3.2.0.release</version>         </dependency>         <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-webmvc</artifactid>             <version>3.2.0.release</version>         </dependency>         <dependency>             <groupid>org.springframework.data</groupid>             <artifactid>spring-data-mongodb</artifactid>             <version>1.2.0.release</version>         </dependency>           <dependency>             <groupid>jstl</groupid>             <artifactid>jstl</artifactid>             <version>1.2</version>         </dependency>          <dependency>             <groupid>junit</groupid>             <artifactid>junit</artifactid>             <version>3.8.1</version>             <scope>test</scope>         </dependency>     </dependencies>     <build>         <plugins>             <plugin>                 <artifactid>maven-compiler-plugin</artifactid>                 <version>2.3.2</version>                 <configuration>                     <source>1.6</source>                     <target>1.6</target>                 </configuration>             </plugin>         </plugins>         <finalname>helpweb</finalname>     </build> </project> 

does knows can problem?

thanks help

michal

you may have incorrect version of spring-core pulled in via transitive dependencies. try forcing concrete version adding:

<dependency>     <groupid>org.springframework</groupid>     <artifactid>spring-core</artifactid>     <version>3.2.0.release</version> </dependency> 

and don't need spring-orm mongodb. orm stands object-relational mapping, , mongodb not relational.

also use junit 4!


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -