I've been using the information at [1] and trying to get the aspectj tracing/logging working. I tweaked the launcher.bat file in my source tree to fix some issues and make it work in my environment, but alas I see no trace output. Any thoughts? (FYI, I can get it to work OK in eclipse, with aspectj nature added to the project). Below is the contents of the amended launcher bat file.
set TUSCANY_HOME=C:\Dev3\SCA set ASPECTJ_WEAVER=%HOMEDRIVE%%HOMEPATH%\.m2\repository\org\aspectj\aspectjweaver\1.6.2\aspectjweaver-1.6.2.jar set CP=%ASPECTJ_WEAVER%;%TUSCANY_HOME%\distribution\all\target\apache-tuscany-sca-all-2.0-SNAPSHOT.dir\tuscany-sca-2.0-SNAPSHOT\features\tuscany-sca- manifest.jar cd %TUSCANY_HOME%\samples\calculator java -javaagent:"%ASPECTJ_WEAVER%" -cp "%CP%;target\classes" calculator.CalculatorClient and the output i see is identical to what I see when the thing is run without any of the aspectj invocation incantations ... C:\Dev3\SCA\samples\calculator>..\..\modules\tracing-aspectj\launcher.bat 25-Mar-2010 14:13:16 org.apache.tuscany.sca.node.impl.NodeImpl start INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0 domain: default 25-Mar-2010 14:13:16 org.apache.tuscany.sca.node.impl.NodeFactoryImpl loadContributions INFO: Loading contribution: file:/C:/Dev3/SCA/samples/calculator/target/classes/ Deploying module: rampart-1.4 - jar:file:/C:/Dev3/SCA/distribution/all/target/apache-tuscany-sca-all-2.0-SNAPSHOT.dir/tuscany-sca-2.0-SNAPSH OT/modules/tuscany-binding-ws-runtime-axis2-2.0-SNAPSHOT.jar!/org/apache/tuscany/sca/binding/ws/axis2/engine/repository/modules/rampart-1.4. mar 25-Mar-2010 14:13:18 org.mortbay.log.Slf4jLog info INFO: Logging to org.slf4j.impl.JDK14LoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog 25-Mar-2010 14:13:18 org.apache.tuscany.sca.http.jetty.JettyLogger info INFO: jetty-6.1.19 25-Mar-2010 14:13:18 org.apache.tuscany.sca.http.jetty.JettyLogger info INFO: Started [email protected]:8080 25-Mar-2010 14:13:18 org.apache.tuscany.sca.http.jetty.JettyServer addServletMapping INFO: Added Servlet mapping: http://9.146.211.65:8080/CalculatorServiceComponent/CalculatorService 25-Mar-2010 14:13:18 org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryImpl addEndpoint INFO: Add endpoint - (@17479562)Endpoint: URI = CalculatorServiceComponent#service-binding(CalculatorService/CalculatorService) 25-Mar-2010 14:13:18 org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryImpl addEndpoint INFO: Add endpoint - (@9963055)Endpoint: URI = AddServiceComponent#service-binding(AddService/AddService) 25-Mar-2010 14:13:18 org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryImpl addEndpoint INFO: Add endpoint - (@12452934)Endpoint: URI = SubtractServiceComponent#service-binding(SubtractService/SubtractService) 25-Mar-2010 14:13:18 org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryImpl addEndpoint INFO: Add endpoint - (@17474178)Endpoint: URI = MultiplyServiceComponent#service-binding(MultiplyService/MultiplyService) 25-Mar-2010 14:13:18 org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryImpl addEndpoint INFO: Add endpoint - (@20128009)Endpoint: URI = DivideServiceComponent#service-binding(DivideService/DivideService) 3 + 2=5.0 3 - 2=1.0 3 * 2=6.0 3 / 2=1.5 25-Mar-2010 14:13:18 org.apache.tuscany.sca.node.impl.NodeImpl stop INFO: Stopping node: http://tuscany.apache.org/sca/1.1/nodes/default0 25-Mar-2010 14:13:18 org.apache.tuscany.sca.http.jetty.JettyServer removeServletMapping INFO: Removed Servlet mapping: /CalculatorServiceComponent/CalculatorService Kelvin. [1] http://cwiki.apache.org/confluence/display/TUSCANY/Logging,+Tracing,+and+Timing+in+Tuscany
