-
1. Re: Seam with Reflection!
allforjava.allforjava.aol.in Feb 8, 2010 4:11 AM (in response to allforjava.allforjava.aol.in)Further if I modified the reflect part as:
Thread t = Thread.currentThread(); ClassLoader cl = t.getContextClassLoader(); Class<?> toRun = cl.loadClass("org.test.ClassName"); MyInterface i = (MyInterface) toRun.newInstance();
For:
package org.test; class ClassName implements MyInterface{ public void test(); }
The ClassName.class is jared 'test.jar' and added to
WebContent\WEB-INF\lib
And now it throws
java.lang.reflect.InvocationTargetException
at seam debug page. How to proceed further?
-
2. Re: Seam with Reflection!
idyoshin Feb 8, 2010 10:48 AM (in response to allforjava.allforjava.aol.in)Attach debugger to your application server.
-
3. Re: Seam with Reflection!
allforjava.allforjava.aol.in Feb 10, 2010 11:10 AM (in response to allforjava.allforjava.aol.in)
Ilya Dyoshin wrote on Feb 08, 2010 10:48:
Attach debugger to your application server.Thank you, Ilya. Does it mean to start server in debug mode/ debugger in eclipse?
However can I add and refer jars dynamically either in either deployed space or location on server? Does seam provide any utility?
-
4. Re: Seam with Reflection!
idyoshin Feb 10, 2010 3:12 PM (in response to allforjava.allforjava.aol.in)Yes simply follow this instructions
that's all
as far as I know - working with dynamic jars is out of scope of seam project.
Regards,
Ilya Dyoshin
-
5. Re: Seam with Reflection!
allforjava.allforjava.aol.in Feb 21, 2010 10:41 AM (in response to allforjava.allforjava.aol.in)
Ilya Dyoshin wrote on Feb 10, 2010 15:12:
as far as I know - working with dynamic jars is out of scope of seam project.
Regards,
Ilya DyoshinAny alternates, towards dynamic jars?
-
6. Re: Seam with Reflection!
idyoshin Feb 21, 2010 2:47 PM (in response to allforjava.allforjava.aol.in)well you could actually start your JSF container with SEAM inside of some-kind apache-equinox... But I haven't seen successfull installation of SEAM inside of OSGI environment.
Well there is another possibility try digg into JPF
Regards,
Ilya Dyoshin