Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] renaming bundle

Hi Pierre,

I think I understand what was wrong.  In your in the org.eclipse.ecf.provider.jxta plugin you had this:

Bundle-ClassPath: lib/bcprov-jdk14.jar,

But your classes in this plugin were being compiled to <project>/bin, and the classpath also needed to include the jxta libs (and aren't listed above).  So changing the above to this:

Bundle-ClassPath: lib/bcprov-jdk14.jar,

Seems to get things going in terms of classloading.  Notice the ./bin at the bottom.  That does the trick for the classes defined in org.eclipse.ecf.provider.jxta.

Also, the has to be updated, and once I ran with the above changes there was a NPE in the JxtaSOContainer class because a line had been commented out, so I removed the comment.

See attached for a patch for these three files in provider.jxta:,,

You can apply it as appropriate.  Please let everyone know via this list when ready...I (for one) want to play with it some more :).



Pierre Henry Perret wrote:
Salutations to the ecf team,

Changing the name of an ecf container class doesn't seem to be equivalent to just  renaming the class. I have renamed the JXTASOContainer class to JxtaContainer class and when the ecf.jxta.jp2p container is launched, it tries to load a bundle...which leads to an error.

Any help or suggestion would be appreciated on how to get this solved.

p.s: to see the run, just launch the jxta.rcpexample bundle and see how the initialize method is run.

Pierre-Henry Perret
Eclipse ECF committer

_______________________________________________ ecf-dev mailing list ecf-dev@xxxxxxxxxxx

### Eclipse Workspace Patch 1.0
#P org.eclipse.ecf.provider.jxta
RCS file: /home/cvs/ecf/org.eclipse.ecf.provider.jxta/,v
retrieving revision 1.1
diff -u -r1.1
---	24 Jan 2007 22:09:31 -0000	1.1
+++	21 Feb 2007 18:57:46 -0000
@@ -6,4 +6,7 @@
-bin.includes = src/org/
+bin.includes = src/org/,\
+               lib/jxta.jar,\
+               lib/jxtacms.jar,\
+               lib/jxtacmsshell.jar
Index: src/org/eclipse/ecf/provider/jxta/container/
RCS file: /home/cvs/ecf/org.eclipse.ecf.provider.jxta/src/org/eclipse/ecf/provider/jxta/container/,v
retrieving revision 1.3
diff -u -r1.3
--- src/org/eclipse/ecf/provider/jxta/container/	15 Feb 2007 06:02:03 -0000	1.3
+++ src/org/eclipse/ecf/provider/jxta/container/	21 Feb 2007 18:57:46 -0000
@@ -104,7 +104,7 @@
 	public JXTASOContainer(  ) {
-		//soMGR= new JXTASOManager( this, netPG );
+		soMGR= new JXTASOManager( this, netPG );
 		try {
 			localID= IDFactory.getDefault().createStringID( JXTA_CONTAINER );
RCS file: /home/cvs/ecf/org.eclipse.ecf.provider.jxta/META-INF/MANIFEST.MF,v
retrieving revision 1.5
diff -u -r1.5 MANIFEST.MF
--- META-INF/MANIFEST.MF	15 Feb 2007 06:06:14 -0000	1.5
+++ META-INF/MANIFEST.MF	21 Feb 2007 18:57:46 -0000
@@ -217,5 +217,8 @@
- src/org/
+ lib/jxta.jar,
+ lib/jxtacms.jar,
+ lib/jxtacmsshell.jar,
+ ./bin
 Bundle-RequiredExecutionEnvironment: J2SE-1.5

Back to the top