Alfred’s Computing Weblog

Alfred Java-cored Computing Weblog

Archive for the ‘maven’ Category

java.lang.NoClassDefFoundError: org/aspectj/lang/annotation/Aspect

leave a comment »

Hits the error java.lang.NoClassDefFoundError: org/aspectj/lang/annotation/Aspect when I try to start a webapp in tomcat.

I was trying to add AOP to an existing web application. The AOP configuration I added is:

<aop:aspectj-autoproxy />

Add the AspectJ library to the classpath. The required AspectJ library are:
1. aspectjrt
2. aspectjweaver

My webapps is using Maven, so I added the dependencies to pom.xml as below:

<!-- AspectJ -->

Written by Alfred

September 14, 2011 at 10:41

The absolute uri: cannot be resolved

with 3 comments

Hit this error while deploying webapps in Tomcat. “The absolute uri: cannot be resolved …”

I’m trying to include JSTL in JSP pages. I get the above error while starting up the webapp in Tomcat.

The jstl.jar is missing from the web deployment package (.war) file. Add in jstl.jar in /WEB-INF/lib/ is the most directive way to solve this problem. If maven is used in the project, we can include the xml code below and let maven do the JAR file searching and packing for us.


Thanks for godbiest’s update 🙂

Written by Alfred

December 22, 2008 at 17:04

Posted in Java, maven

Tagged with ,