I can't comment about the specifics of your problem because I don't know enough about how your application is structured.
However, the Webframeworks sample includes an example which uses Wicket, and injects an class loaded from Impala using
the wicket-spring library.
See http://impala.googlecode.com/svn/trunk/webframeworks-sample
and http://code.google.com/p/impala/wiki/SamplesWebframework
Try comparing the structuring of your project with the sample and see if you can identify any obvious differences.
Good luck.
Phil
You will need to make the interface visible to the web module, either in two ways:
a) by moving it up into a module which is visible to both the web and the database module
b) making the web module depend on the database module directly, through in the module.properties file of the web module
depends-on=database-module
(and also making the database module a required project in Eclipse for the web module).
I'd normally do a), but there are some situations where b) might be a good idea too.
Phil
--
Phil Zoio
Director and CTO
Realtime Despatch Software Limited
Web: http://www.realtimedespatch.co.uk
Email: ph...@realtimedespatch.co.uk
Mobile: 07595 524200
Office: 01394 384181
What code or configuration are you using to create the proxy?
Phil
It looks like java.lang.reflect.Proxy.newProxyInstance that you are calling is probably taking the LazyInitProxyFactory.class.getClassLoader() as the class loader. The ISellableDao interface will not be visible to this class loader. Only to the Impala class loader, which is also the class loader returned from Thread.currentThread().getContextClassLoader() (see line 137 in that class) So I would recommend you do the following: - set a breakpoint at line 137 - check that the context class loader is indeed the Impala class loader (specifically, it should be the one which loaded your web module) - make sure it is not throwing an IllegalArgumentException on line 137, causing it to fall back into the code on line 149. If that is the case, the solution will be figuring out why this is happening. It certainly won't be possible to make it work with LazyInitProxyFactory.class.getClassLoader() as the class loader attempting to locate the ISellableDAO interface. Regarding your other question, yes it is possible to serve static images. In your web module application context XML, you would set up a servlet such as this: <web:servlet id = "rtd2-web-resources" servletClass = "org.impalaframework.web.servlet.ResourceServlet" initParameters = "cacheTimeout=300"/> and then add mapping entries such as <web:mapping> <web:to-module prefix = "/despatch" setServletPath="true"/> <web:to-handler extension="css" servletName="rtd2-web-resources"/> <web:to-handler extension="png" servletName="rtd2-web-resources"/> web:to-handler extension="js" servletName="rtd2-web-resources"/> </web:mapping> Hope this helps. Phil
Phil Zoio
Director and CTO
Realtime Despatch Software Limited
Web: http://www.realtimedespatch.co.uk
Email: ph...@realtimedespatch.co.uk
Here you can see where Impala is calling Thread.currentThread().setContextClassLoader().
Ideally, at this point the class loader passed in should be the Impala web module class loader, although in your case it
might not be.
This should help narrow down the cause of the problem ...
Phil
>> read more �
>> read more �