Community
Participate
Working Groups
Build I20090427-0800 Create a service component Give the component a Factory ID Exit the editor Double-click the component.xml file The Overview and Services tabs will be empty.
I've also seen cases where the text editor comes up instead of the component definition editor
post your xml file here?
<?xml version="1.0" encoding="UTF-8"?> <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" factory="hello.factory" name="hello" xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0"> <implementation class="test.Hello"/> <service> <provide interface="test.IHello"/> </service> </scr:component>
well that's interesting, there's too scr namepsaces, remove one and you should be good. How did that happen? <?xml version="1.0" encoding="UTF-8"?> <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" factory="hello.factory" name="hello"> <implementation class="test.Hello"/> <service> <provide interface="test.IHello"/> </service> </scr:component>
The second namespace gets added when you set the factory id
weird, I can't reproduce. *boggles the mind* will keep trying
Hate it when that happens ... just to verify, you are using the Cocoa I-build from this morning?
I am. Although from the looks of it, it could be a low-level bug in PDE's text editing framework :/
I was able to repo with a fresh workspace and a brand new project.
Hmmm, maybe this makes a difference ... I have the Equinox N20090426-1232 build in my dropins folder
I can easily reproduce I'm investigating
ok, got it! incoming patch!
Created attachment 133447 [details] patch The "xmlns..." is actually parsed as an attribute... This is not totally incorrect, I believe, but it should just not be saved when serializing the document! Note the support for namespaces is very crappy right now; see 264083.
go Chris!
hack but works :) Where's my EMF when I need it...
done. > 20090427 We will live with this hack for now.