[aspectwerkz-dev] [jira] Deleted: (AW-101) Can't find UUID at runtime
| Newsgroups | gmane.comp.java.aspectwerkz.devel |
|---|---|
| Message-ID | <[email protected]> |
[ http://jira.codehaus.org/browse/AW-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
[email protected] deleted AW-101:
---------------------------------
> Can't find UUID at runtime
> --------------------------
>
> Key: AW-101
> URL: http://jira.codehaus.org/browse/AW-101
> Project: AspectWerkz
> Issue Type: Bug
> Environment: 0.81 running under WSAD 5.1 (Eclipse 2.11 plus IBM plugins) using IBM JVM 1.3.1 under WindowsXP SP1 (Danish version)
> Reporter: Jeppe Cramon
>
> I have this definition in the file aspectwerkz.xml
> <!DOCTYPE aspectwerkz PUBLIC
> "-//AspectWerkz//DTD 0.8.1//EN"
> "http://aspectwerkz.codehaus.org/dtd/aspectwerkz_0_8_1.dtd">
> <aspectwerkz id="solaisecore">
> <advice-def name="LogAdvice"
> class="com.test.solaise.advices.LoggingAdvice"
> deployment-model="perJVM"/>
> <aspect name="Logging">
> <pointcut-def name="target"
> type="method"
> pattern="void com.test.solaise.startup.StartupServlet.initializeServiceManager()"/>
> <bind-advice pointcut="target">
> <advice-ref name="LogAdvice"/>
> </bind-advice>
> </aspect>
> I use the offline transformer to transform the project. Here's the commando I issue, with the various cp elements deleted for brevity:
> c:\java\aspectwerkz\bin\aspectwerkz -offline "C:\Documents and Settings\jcn\Dokumenter\IBM\wsappdev51\workspace\SolaiseCore\aspectswerkz.xml" -verbose -cp "..." "C:\Documents and Settings\jcn\Dokumenter\IBM\wsappdev51\workspace\SolaiseCore\bin"
> </aspectwerkz>
> When I run the application (using no -D....) I get the following error:
> java.lang.RuntimeException: could not find definition with UUID <solaisecore> (found definition with UUID <samples>)
> at org.codehaus.aspectwerkz.definition.AspectWerkzDefinition.getDefinition(AspectWerkzDefinition.java:186)
> at org.codehaus.aspectwerkz.AspectWerkz.<init>(AspectWerkz.java:251)
> at org.codehaus.aspectwerkz.AspectWerkz.getSystem(AspectWerkz.java:185)
> at org.codehaus.aspectwerkz.joinpoint.MethodJoinPoint.<init>(MethodJoinPoint.java:129)
> at org.codehaus.aspectwerkz.joinpoint.MemberMethodJoinPoint.<init>(MemberMethodJoinPoint.java:56)
> at com.brf.solaise.startup.StartupServlet.initializeServiceManager(StartupServlet.java)
> at com.test.solaise.startup.StartupServlet.init(StartupServlet.java:88)
> at com.test.solaise.startup.StartupServlet.main(StartupServlet.java:58)
> Exception in thread "main"
> If I on the other hand start the process with "-Daspectwerkz.definition.file=aspectwerkz.xml" it runs as it should.
> However as I read the documentation, the -Daspectwerkz.definition.file=aspectwerkz.xml shouldn't be necessary as the default file is called aspectwerkz.xml, so somehow it doesn't find the file or?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email