[jboss-user] [JBoss AOP] - Error in deploying .aop file
maze A
do-not-reply at jboss.com
Thu Jan 27 21:46:27 EST 2011
maze A [http://community.jboss.org/people/maazzzeeee] created the discussion
"Error in deploying .aop file"
To view the discussion, visit: http://community.jboss.org/message/583774#583774
--------------------------------------------------------------
*I have installed the "jbossesb-4.9" in jboss-5.1.0.GA application server. whenever I try to deploy my aop file (LoggingAspect.aop) in "jboss-5.1.0.GA/server/all/deploy" folder, this error pops up:*
DEPLOYMENTS IN ERROR:
Deployment "vfszip:/home/maazzzeeee/Desktop/jboss-5.1.0.GA/server/all/deploy/LoggingAspect.aop/" is in error due to the following reason(s): org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve schema nsURI= location=aop
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
*Do you have any idea?*
*I am dealing with this problem for more that a week. I really appreciate any suggestion.*
*
*
*Actually, I want to intercept "service actions" in the jbossesb services. before combining AS 5.1.0 and JbossESB-4.9, I tested it on the jboss-esb-server. But, in that configuration, I couldn't see any intereption.*
*This is my jboss-aop.xml file:*
<?xml version="1.0" encoding="UTF-8"?>
<!-- -->
<aop xmlns="urn:jboss:aop-beans:1.0">
<interceptor name="LoggingAspect" class="org.jboss.soa.esb.samples.quickstart.helloworld.LoggingAspect"/>
<bind pointcut="execution(* org.jboss.soa.esb.samples.quickstart.helloworld.MyJMSListenerAction->*(..))">
<interceptor-ref name="LoggingAspect"/>
</bind >
</aop>
*And this is my /interceptor java code:*
package org.jboss.soa.esb.samples.quickstart.helloworld;
import org.jboss.aop.advice.Interceptor;
import org.jboss.aop.joinpoint.Invocation;
import org.jboss.aop.joinpoint.ConstructorInvocation;
import org.jboss.aop.joinpoint.FieldWriteInvocation;
import org.jboss.aop.joinpoint.MethodInvocation;
public class LoggingAspect implements Interceptor
{
@Override
public String getName() {
return "LogInterceptor";
}
@Override
public Object invoke(Invocation invocation) throws Throwable {
long time=System.currentTimeMillis();
try {
return invocation.invokeNext();
} finally
{
time=System.currentTimeMillis()-time;
if (invocation instanceof MethodInvocation) {
MethodInvocation mi = (MethodInvocation) invocation;
String clazz="";
try
{
clazz=mi.getTargetObject().getClass().toString();
}
catch (Throwable e)
{
// TODO
}
}
}
}
}
*I also attached my aop file
*
*Thanks!
*
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/583774#583774]
Start a new discussion in JBoss AOP at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2027]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110127/851e70db/attachment-0001.html
More information about the jboss-user
mailing list