Issue Type: Bug Bug
Affects Versions: PLINK_2.1.7
Assignee: Anil Saldhana
Components: SAML
Created: 12/Jul/13 10:30 AM
Description:

When using JpaBasedTokenRegistry, an exception about the missing dependency on the "javax.persistence.api" module in the module.xml file of the "org.picketlink" module is thrown:

[Server:server-one] Caused by: java.lang.ClassNotFoundException: javax.persistence.Persistence from [Module "org.picketlink:main" from local module loader @509f5011 (roots: /opt/jboss-eap-6.0/modules)]
[Server:server-one] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
[Server:server-one] at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
[Server:server-one] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
[Server:server-one] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
[Server:server-one] at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
[Server:server-one] at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
[Server:server-one] ... 24 more

When Hibernate is used, two other exceptions about missing dependencies on the "org.hibernate" and "org.javassist" dependencies are also thrown:

[Server:server-one] Caused by: java.lang.ClassNotFoundException: org.hibernate.proxy.HibernateProxy from [Module "org.picketlink:main" from local module loader @3b835282 (roots: /opt/jboss-eap-6.0/modules)]
[Server:server-one] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
[Server:server-one] at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
[Server:server-one] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
[Server:server-one] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
[Server:server-one] at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
[Server:server-one] at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
[Server:server-one] ... 64 more

[Server:server-one] Caused by: java.lang.ClassNotFoundException: javassist.util.proxy.ProxyObject from [Module "org.picketlink:main" from local module loader @67d225a7 (roots: /opt/jboss-eap-6.0/modules)]
[Server:server-one] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
[Server:server-one] at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
[Server:server-one] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
[Server:server-one] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
[Server:server-one] at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
[Server:server-one] at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
[Server:server-one] ... 64 more

I can work around these exceptions by manually changing the module.xml file, but wanted you to take a look before submitting a pull request with that change.

Environment: All supported environments.
Project: PicketLink v2
Priority: Major Major
Reporter: Fernando Ribeiro
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira