Summary: | cannot register non aspect: | ||
---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | krishna jasty <krishna.jasty> |
Component: | Runtime | Assignee: | aspectj inbox <aspectj-inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | blocker | ||
Priority: | P3 | CC: | aclement |
Version: | 1.7.3 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Whiteboard: |
Description
krishna jasty
2013-06-18 06:39:12 EDT
That message indicates the class cannot be found. Are you sure the class file is on the same classpath as the aop XML file that defines the aspect? Perhaps run the weaver in debug mode to get more diagnostics Merge <weaver options="-debug"/> into your aop.xml The issue is aspectwerkz dtd file. In the lib folder one aspectwerks specific dtd file is specified because of that the issue is coming. After removing it, It identified the aspect and registered but nothing i can see in the browser. My program is basically about adding htmlheader and footer to a webpage. But, when i access the page i am not able to see the html header created by aspect. I will open a seperate thread on how to configure aspectj into tomcat as a war file.Then it can be used for reference for everybody. Jun 18, 2013 6:26:31 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive D:\KrishnaJasty\apache-tomcat-7.0.39\web apps\AspectjOnTomcatExample.war [WebappClassLoader@1a7b0bf] info AspectJ Weaver Version 1.7.3 built on Thursday Jun 13, 2013 at 19:41:31 GMT [WebappClassLoader@1a7b0bf] info register classloader org.apache.catalina.loader .WebappClassLoader@1a7b0bf [WebappClassLoader@1a7b0bf] info using configuration file:/D:/KrishnaJasty/apach e-tomcat-7.0.39/webapps/AspectjOnTomcatExample/WEB-INF/lib/aspect.jar!/META-INF/ aop.xml [WebappClassLoader@1a7b0bf] info register aspect com.tcs.AddHTMLHeaderAndFooter |