New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JGRP-2399] Problem with loading resources from the bundle root (/) in OSGI environment #446
Conversation
I'll try this out tomorrow, thanks. |
OK, so this fails as META-INF/resources is not found. This is not a known location; who creates this? |
@belaban Are you experiencing build or runtime error ? Can you share some more details ? <resources>
<resource>
<directory>conf</directory>
<targetPath>META-INF/resources</targetPath>
<includes>
<include>*.xml</include>
<include>*.properties</include>
</includes> I was using maven 3.3.9 to build it - the usual |
I don't use maven to build artifacts, but ant&ivy. |
I also don't like having to specify META-INF/resources explicitly; this should be on the classpath (or modulepath)! |
Hi @belaban ,I see your point ... and my problem is that I need to integrate jgroups 3.6.x as part of a legacy osgi project ... and I am really not sure what are my other options beside moving resources out of the jar root ... I will appreciate if you have any suggestions on this ? |
31f6c46
to
1fbd9a2
Compare
…n OSGI environment +moved resources to /resources +pushed version to 3.6.20.Final
1fbd9a2
to
fca4ed3
Compare
I don't see what this changes: instead of |
@belaban , ok, I will move resource directory creation and file copy in |
Wait! I don't want to load resources from a special directory within the JAR. If those resources are not on the classpath, then that's an issue with configuration, IMO. |
[JGRP-2399] Problem with loading resources from the bundle root (/) in OSGI environment
+moved resources to META-INF/resources
+pushed version to 3.6.20.Final