Irfan Basha [
https://community.jboss.org/people/irbash] created the discussion
"Re: Encrypted class loading with jboss 5.1"
To view the discussion, visit:
https://community.jboss.org/message/796978#796978
--------------------------------------------------------------
Hi Ales,
Thanks for the reply.
*What I mean by not able to make it work is:*
I downloaded the complete demo from the svn, and I build it (only the classloader since I
need only that) with ant script (not the pom maven), and after this I have a jar
*(*jboss-demo-classloader.jar: with . crypt-beans.xml, regexp-beans.xml,
bootstrap-beans.xml and cl-describe.xml in META-INF folder. I also took care of Main.java
which is reference from ClassLoaderMain.java*)*
After this I don't know how to use this jar... I placed it in deploy folder hoping
that it will be loaded but it dint. I tried placing it in /lib folder of jboss along with
the jboss-classloader.jar and that dint work as well. I probably might be doing some
simple mistake (or rather might be completely wrong) and I am stuck here.
If I understand it right (Please correct me if I am wrong), after I build this jar from
the demo source the jboss has to use the two new classloaderpolicy's (depending on
which one we mention in Main.setSystemProperty of ClassLoaderMain:
+public class ClassLoaderMain+
+{+
+ public static void main(String[] args)+
+ {+
+ Main.setSystemProperty("demos.cl.policy", "regexp", false); //
default CL policy+
+ Map<String, String> map = Collections.singletonMap(Main.CL_DESCRIBE,
"C:/Users/irfan/workspace/jboss-classloader/META-INF/${demos.cl.policy}-beans.xml");+
+ Main.main(args, map);+
+ }+
+}+
Please let me know what I am doing wrong. Am I doing something wrong in creating jar ? Or
am I doing something wrong in placing the four xml's in META-INF ? or is there
something else which I should do ?
Thanks,
Irfan
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/796978#796978]
Start a new discussion in JBoss Microcontainer at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]