:(, tried several times, but is not working. Below is the list of steps i think
are correct and that i've already done:
1) downloaded: jboss-4.0.5.GA.zip
2) downloaded: jboss-aop_1.5.0.GA.zip
3) copied jboss-aop_1.5.0.GA\jboss-40-install\jboss-aop-jdk50.deployer to
jboss-4.0.5.GA\server\default\deploy\
4) edited
jboss-4.0.5.GA\server\default\deploy\jboss-aop-jdk50.deployer\META-INF\jboss-service.xml:
-) EnableLoadtimeWeaving: true
-) mbean: "org.jboss.aop.deployment.AspectManagerServiceJDK5"
-) include: "security., org.jboss.injbossaop"
-) exclude: "org.jboss.,org.apache."
5) copied jboss-aop_1.5.0.GA\lib-50\pluggable-instrumentor.jar to
jboss-4.0.5.GA\bin\
6) changed jboss-4.0.5.GA\bin\run.bat to "set JAVA_OPTS=%JAVA_OPTS%
-Dprogram.name=%PROGNAME% -javaagent:pluggable-instrumentor.jar" at line 73
7) changed the "other" definition in
jboss-4.0.5.GA\server\default\conf\login-config.xml as
<application-policy name = "other">
| <authentication>
| <login-module code =
"org.jboss.security.auth.spi.UsersRolesLoginModule"
| flag = "required">
| <module-option
name="usersProperties">props/users.properties</module-option>
| <module-option
name="rolesProperties">props/roles.properties</module-option>
| <module-option
name="unauthenticatedIdentity">nobody</module-option>
| </login-module>
| </authentication>
| </application-policy>
8) generated the two files with content:
| # roles.properties
| userA=rolA
| userB=rolB,rolC
|
| # users.properties
| userA=passA
| userB=passB
9) changed
jboss-4.0.5.GA\server\default\deploy\jbossweb-tomcat55.sar\META-INF\jboss-service.xml
at line 58 to:
true
10) packaged the application as a .sar deployment with the war and aop inside
(i could send it if you want to, the sar it's about 4k)
Don't know what else to do. There's no error in the output or anything, it
seems like is working correctly but is not applying the aspect as defined in
the XML.
In the same configuration, if i uncomment the security annotations it works
perfect.
tks.-
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003836#4003836
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003836
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user