Access WEB-INF/classes from within OSGi/Bundle Activator [message #637396] |
Fri, 05 November 2010 11:26 |
Dirk Bernsau Messages: 4 Registered: July 2009 Location: Munich, Germany |
Junior Member |
|
|
Hello,
I'm looking for a convenient way to access the WEB-INF/classes directory of my deployed RAP web-app from within the application (ideally from the bundle activator of my RAP-UI plugin).
Since in a deployment env the bundles are copied to the work location (e.g. work\Catalina\localhost\<web-app>\...) just usign the classloader of my plugin seems not to work.
Is there a method on the RWT class or anything similar?
Getting the actual location of the WEB-INF/classes dir would be OK, also having a classloader that can load resources from there would fork for me.
[Updated on: Fri, 05 November 2010 11:32] Report message to a moderator
|
|
|
Re: Access WEB-INF/classes from within OSGi/Bundle Activator [message #894695 is a reply to message #637396] |
Tue, 10 July 2012 07:40 |
Eclipse User |
|
|
|
Hi,
we have the same problem now. We use spring osgi in our RAP plugins. Now
we want to provide a properties file that can be loaded from classpath.
Normally we would place it in WEB-INF/classes and spring reads the
property file with "classpath:custom.properties". This way
a customer can either put the properties file in WEB-INF/classes, or
extend the web applications classpath to an external folde in the
settings of the webapplication (i.e. WebSphere can do this per application).
Is there any solution how we can access the web applications classpath
from within a bundle?
Regards,
Markus
Am 05.11.2010 12:26, schrieb Dirk Bernsau:
> Hello,
>
> I'm looking for a convenient way to access the WEB-INF/classes directory
> of my deployed RAP web-app from within the application (ideally from the
> bundle activator of my RAP-UI plugin).
>
> Since in a deployment env the bundles are copied to the work location
> (e.g. work\Catalina\localhost\<web-app>\...) just usign the classloader
> of my plugin seems not to work.
>
> Is there a method on the RWT class or anything similar?
>
> Getting the actual location of the WEB-INF/classes dir would be OK.
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02790 seconds