--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage.
Please support jPOS, contact: sa...@jpos.org
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Victor,No luck yet, the class loaders are the same and the jars look correct(Q2 is my class loader):CLASS = org.hibernate.ejb.HibernatePersistenceloader = org.jpos.q2.QClassLoader@bfd472CLASS = javax.persistence.spi.PersistenceProviderloader = org.jpos.q2.QClassLoader@bfd472Pieter
Op maandag 30 september 2013 10:30:04 UTC+2 schreef Victor Salaman:
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage.
Please support jPOS, contact: sa...@jpos.org
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Victor,One thing I noticed is that during unit testing, it all works perfectly, but then it is a sun.misc.Launcher class loader. Thus, there must obviously be a difference between the unit-test and run/q2 environments. If so, how do I determine the difference?CLASS = org.hibernate.ejb.HibernatePersistenceloader = sun.misc.Launcher$AppClassLoader@13dc4d5CLASS = javax.persistence.spi.PersistenceProviderloader = sun.misc.Launcher$AppClassLoader@13dc4d5Pieter
Op maandag 30 september 2013 11:08:22 UTC+2 schreef Pieter Botha:
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage.
Please support jPOS, contact: sa...@jpos.org
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage.
Please support jPOS, contact: sa...@jpos.org
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Pieter, Victor's suggestion will probably solve your problem. The hot-deployment provided by the URLClassLoader that monitors the deploy/lib directory was intended for quick hacks, usually involving adding a filter to a running class to fix an issue on the spot until we have a chance to restart the system, but it creates a new class loader every time you touch the deploy/lib directory last modified timestamp.
This has of course negative side-effects, specially if you use singletons or situations like the one you're experiencing.
The move to OSGi will probably solve all this issues, actually, you could attempt to run 1.9.3-SNAPSHOT in an OSGi container right away.
Good luck!
Pieter, -cp and -jar doesn't mix.
If you use -cp you just need to add org.jpos.q2.Q2 as the main class, and remove the -jar switch.