[jboss-user] [JBoss AOP] - Re: Problem with prepackaged security aspect on a POJO using

gmdr do-not-reply at jboss.com
Fri Jan 12 14:51:51 EST 2007


Thanks for the prompt reply. I changed the "UseJBossClassLoader" parameter to "true", copied the learning-aop.xml and learning-aop.war to the deploy dir and nothing happened. The logfile from the ejecution is:

16:25:43,750 INFO  [Server] Starting JBoss (MX MicroKernel)...
  | 16:25:43,750 INFO  [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
  | 16:25:43,765 INFO  [Server] Home Dir: C:\JavaDev\jboss-4.0.5.GA
  | 16:25:43,765 INFO  [Server] Home URL: file:/C:/JavaDev/jboss-4.0.5.GA/
  | 16:25:43,781 INFO  [Server] Patch URL: null
  | 16:25:43,781 INFO  [Server] Server Name: default
  | 16:25:43,781 INFO  [Server] Server Home Dir: C:\JavaDev\jboss-4.0.5.GA\server\default
  | 16:25:43,781 INFO  [Server] Server Home URL: file:/C:/JavaDev/jboss-4.0.5.GA/server/default/
  | 16:25:43,781 INFO  [Server] Server Log Dir: C:\JavaDev\jboss-4.0.5.GA\server\default\log
  | 16:25:43,781 INFO  [Server] Server Temp Dir: C:\JavaDev\jboss-4.0.5.GA\server\default\tmp
  | 16:25:43,781 INFO  [Server] Root Deployment Filename: jboss-service.xml
  | 16:25:44,453 INFO  [ServerInfo] Java version: 1.5.0_09,Sun Microsystems Inc.
  | 16:25:44,468 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_09-b03,Sun Microsystems Inc.
  | 16:25:44,468 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
  | 16:25:45,578 INFO  [Server] Core system initialized
  | 16:25:48,968 INFO  [WebService] Using RMI server codebase: http://stesidefaprog85:8083/
  | 16:25:49,031 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
  | 16:25:54,624 INFO  [AspectDeployer] Deployed AOP: file:/C:/JavaDev/jboss-4.0.5.GA/server/default/deploy/learning-aop.xml
  | 16:26:00,577 INFO  [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
  | 16:26:05,765 INFO  [Embedded] Catalina naming disabled
  | 16:26:06,030 INFO  [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
  | 16:26:06,030 INFO  [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
  | 16:26:07,265 INFO  [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
  | 16:26:07,280 INFO  [Catalina] Initialization processed in 1250 ms
  | 16:26:07,280 INFO  [StandardService] Starting service jboss.web
  | 16:26:07,296 INFO  [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
  | 16:26:10,030 INFO  [StandardHost] XML validation disabled
  | 16:26:10,171 INFO  [Catalina] Server startup in 2891 ms
  | 16:26:10,890 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
  | 16:26:13,374 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
  | 16:26:13,843 INFO  [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp28479jbossws-context-exp.war/
  | 16:26:14,374 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
  | 16:26:18,296 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
  | 16:26:22,358 INFO  [MailService] Mail Service bound to java:/Mail
  | 16:26:23,218 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
  | 16:26:23,436 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
  | 16:26:23,561 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
  | 16:26:23,686 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
  | 16:26:23,843 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
  | 16:26:24,014 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
  | 16:26:31,577 INFO  [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
  | 16:26:34,217 INFO  [A] Bound to JNDI name: queue/A
  | 16:26:34,233 INFO  [B] Bound to JNDI name: queue/B
  | 16:26:34,233 INFO  [C] Bound to JNDI name: queue/C
  | 16:26:34,233 INFO  [D] Bound to JNDI name: queue/D
  | 16:26:34,233 INFO  [ex] Bound to JNDI name: queue/ex
  | 16:26:34,436 INFO  [testTopic] Bound to JNDI name: topic/testTopic
  | 16:26:34,436 INFO  [securedTopic] Bound to JNDI name: topic/securedTopic
  | 16:26:34,436 INFO  [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
  | 16:26:34,452 INFO  [testQueue] Bound to JNDI name: queue/testQueue
  | 16:26:36,811 INFO  [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
  | 16:26:37,139 INFO  [DLQ] Bound to JNDI name: queue/DLQ
  | 16:26:38,217 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
  | 16:26:38,420 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
  | 16:26:39,092 INFO  [TomcatDeployer] deploy, ctxPath=/learning-jaas, warUrl=.../tmp/deploy/tmp28515learning-jaas-exp.war/
  | 16:26:39,686 INFO  [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
  | 16:26:40,327 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
  | 16:26:40,483 INFO  [JkMain] Jk running ID=0 time=0/360  config=null
  | 16:26:40,530 INFO  [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 56s:749ms
  | 16:27:00,217 INFO  [STDOUT] inside deposit...:1000
  | 16:27:00,217 INFO  [STDOUT] inside withdrawAll...:1000

from what I see, the xml is picked up before the application deploy. If i'm not wrong, the injboss example calls this as "Standard WAR with stand-alone jboss-aop.xml file". Note: in fact, there are two *-aop.xml files, the one I wrote (learning-aop.xml), and the base-aop.xml (from the aop-deployer, I didn't touch this one).

Also, i've tried to package the two files (.aop and .war) as jar following the instructions, but got the same result.

Maybe the error comes with my learning-aop.xml content. It's very different to the content showed in the injboss examples.

Any suggestion would be precious :)
.-

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001088#4001088

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4001088



More information about the jboss-user mailing list