java.lang.IllegalArgumentException: Unknown AOP tag: import - Deploying SAR file
mj000 Oct 10, 2011 4:30 AMHi All,
I'm trying to deploy a sar package but it is failing with the exception below.
The sar file has many jar file dependencies in the lib directory. I'm guessing jBoss parses all jar files in lib to see if there are any other packages to deploy... I'm saying this because of the messages "create step for deployment file".
Jboss is picking up one of these jar files and throwing and exception Unknown AOP tag: import.
The jar file it is complaining about does not contain any services to be deployed. In fact, there is only one service of interest being deployed.
Any idea as to how I can fix this will be much appreciated.
This is jBoss 4.2.3.GA.
2011-10-10 18:22:48,641 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/tools/jboss/jboss-4.2.3.GA/server/cluster1/tmp/deploy/tmp4813575281619562581equitystatusupdate-1.0-SNAPSHOT.sar-contents/lib/commons-digester-1.8.jar
2011-10-10 18:22:48,641 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying commons-digester-1.8.jar
2011-10-10 18:22:48,641 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/tools/jboss/jboss-4.2.3.GA/server/cluster1/tmp/deploy/tmp4813575281619562581equitystatusupdate-1.0-SNAPSHOT.sar-contents/lib/commons-io-2.0.1.jar
2011-10-10 18:22:48,641 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying commons-io-2.0.1.jar
2011-10-10 18:22:48,641 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/tools/jboss/jboss-4.2.3.GA/server/cluster1/tmp/deploy/tmp4813575281619562581equitystatusupdate-1.0-SNAPSHOT.sar-contents/lib/commons-lang-2.6.jar
2011-10-10 18:22:48,641 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying commons-lang-2.6.jar
2011-10-10 18:22:48,641 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/tools/jboss/jboss-4.2.3.GA/server/cluster1/tmp/deploy/tmp4813575281619562581equitystatusupdate-1.0-SNAPSHOT.sar-contents/lib/commons-logging-1.1.1.jar
2011-10-10 18:22:48,641 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying commons-logging-1.1.1.jar
2011-10-10 18:22:48,641 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/tools/jboss/jboss-4.2.3.GA/server/cluster1/tmp/deploy/tmp4813575281619562581equitystatusupdate-1.0-SNAPSHOT.sar-contents/lib/ehcache-1.5.0.jar
2011-10-10 18:22:48,641 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying ehcache-1.5.0.jar
2011-10-10 18:22:48,641 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/tools/jboss/jboss-4.2.3.GA/server/cluster1/tmp/deploy/tmp4813575281619562581equitystatusupdate-1.0-SNAPSHOT.sar-contents/lib/emailserviceclient-0.0.1-SNAPSHOT.jar
2011-10-10 18:22:48,641 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying emailserviceclient-0.0.1-SNAPSHOT.jar
2011-10-10 18:22:48,641 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/tools/jboss/jboss-4.2.3.GA/server/cluster1/tmp/deploy/tmp4813575281619562581equitystatusupdate-1.0-SNAPSHOT.sar-contents/lib/fix-api-1.0.2-20111007.041016-19.jar
2011-10-10 18:22:48,641 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying fix-api-1.0.2-20111007.041016-19.jar
2011-10-10 18:22:48,641 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/tools/jboss/jboss-4.2.3.GA/server/cluster1/tmp/deploy/tmp4813575281619562581equitystatusupdate-1.0-SNAPSHOT.sar-contents/lib/fix-jms-impl-1.0.2-20111007.041059-15.jar
2011-10-10 18:22:48,641 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/tools/jboss/jboss-4.2.3.GA/server/cluster1/tmp/deploy/tmp4813575281619562581equitystatusupdate-1.0-SNAPSHOT.sar-contents/lib/fix-jms-impl-1.0.2-20111007.041059-15.jar-contents/mts-fix-impl-spring-aop.xml
2011-10-10 18:22:48,641 ERROR [STDERR] [error] Unknown AOP tag: import file:/C:/tools/jboss/jboss-4.2.3.GA/server/cluster1/tmp/deploy/tmp4813575281619562581equitystatusupdate-1.0-SNAPSHOT.sar-contents/lib/fix-jms-impl-1.0.2-20111007.041059-15.jar-contents/mts-fix-impl-spring-aop.xml
2011-10-10 18:22:48,641 ERROR [STDERR] java.lang.RuntimeException: java.lang.IllegalArgumentException: Unknown AOP tag: import
2011-10-10 18:22:48,641 ERROR [STDERR] at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:892)
2011-10-10 18:22:48,641 ERROR [STDERR] at org.jboss.aop.AspectXmlLoader.deploy(AspectXmlLoader.java:1210)
2011-10-10 18:22:48,641 ERROR [STDERR] at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:1236)
2011-10-10 18:22:48,641 ERROR [STDERR] at org.jboss.aop.deployment.AspectDeployer.create(AspectDeployer.java:177)
2011-10-10 18:22:48,641 ERROR [STDERR] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
2011-10-10 18:22:48,641 ERROR [STDERR] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
2011-10-10 18:22:48,641 ERROR [STDERR] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
2011-10-10 18:22:48,641 ERROR [STDERR] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
2011-10-10 18:22:48,641 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
2011-10-10 18:22:48,641 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
2011-10-10 18:22:48,641 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
2011-10-10 18:22:48,641 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2011-10-10 18:22:48,641 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2011-10-10 18:22:48,641 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-10-10 18:22:48,641 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
2011-10-10 18:22:48,641 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2011-10-10 18:22:48,641 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2011-10-10 18:22:48,641 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
2011-10-10 18:22:48,641 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
2011-10-10 18:22:48,641 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
2011-10-10 18:22:48,641 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
2011-10-10 18:22:48,641 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)