Alright then. Basically, inside a war file, dependent jars go in
"WEB-INF/lib" - jars inside WEB-INF/classes will be completely ignored.
However, you should let maven handle jars for you. In general, you
shouldn't put ANYTHING in WEB-INF/classes or WEB-INF/lib.
So, when I delete src/main/webapp/WEB-INF/classes and
src/main/webapp/WEB-INF/lib your problem goes away. However, I also
had to add a commons-logging dependency. This:
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>1.6.4</version>
</dependency>
And the server starts up w/o errors.
-Jared
On Wed 01 Feb 2012 08:36:34 AM CST, kintomaniac wrote:
> hey ur right my WEB-INF\lib contains shiro core 1.1.0 and 1.1.2 and same for
> shiro core.
> the classes directory contains only the 1.1.0 version of both the jars.
>
> i tried replacing the 1.1.0 jar with 1.2.0 in the classes directory and
> deleting 1.1.0 jars from the lib. but still no luck
> my pom.xml contains dependencies for shiro core 1.2.0 and shiro web 1.2.0
>
>
> heres the whole project.
> http://www.2shared.com/file/1pBZNCKj/kiran.html
>
> if ive done something wrong plz forgive me because im a real noob at java
> and maven
>
> --
> View this message in context:
> http://shiro-user.582556.n2.nabble.com/IllegalAccessException-while-executing-simple-web-app-tp7242126p7243198.html
> Sent from the Shiro User mailing list archive at Nabble.com.