Hi chlee,
I recommend you try creating an object of myclass in the Bundle 'B'.
Verify that you dont hit across a 'ClassNotFound Error'. Also check whether
Bundle A has myclass in the 'Export-Package' header.
To verify that the wiring has happened correctly, run command packages
'myclass' (full class name) in the osgi prompt to check the wiring.
Hope this helps.
Thanks,
Srijith.
>>> chlee <[email protected]> 13/08/2010 07:16 >>>
Thanks for your reply.
I did what you said.
but, unfortunately the result was same.
do you have other solution?
Srijith Kochunni wrote:
>
> myclass should be visible to bundle 'B'. Verify, if you have added it in
> the Import-Package header.
>
> Thanks,
> Srijith.
>
>>>> chlee <[email protected]> 12/08/2010 12:59 >>>
> Hello, I'm having a strange problem during developing my osgi bundles in
> equinox. When I run the below code within a A bundle, XmlObject docXml =
> (XmlObject)XmlObject.Factory.parse(new File ("test.xml"));
> System.out.print("Type of docXml: " + docXml.getClass()); the result is
> "Type of docXml: class myclass". (normal case) but when I made another B
> bundle calling A bundle(exactly A bundle's registered service) and then
> run the same code, the result is "Type of docXML: class
> org.apache.xmlbeans.impl.values.XmlAnyTypeImpl" (abnormal case) I verified
> that the passed document("test.xml") is correct. I don't know why the
> result of same module are different?
> View this message in context:
> org.apache.xmlbeans.impl.values.XmlAnyTypeImpl problem in Equinox (
> http://old.nabble.com/org.apache.xmlbeans.impl.values.XmlAnyTypeImpl-problem-in-Equinox-tp29415479p29415479.html
> )
> Sent from the Xml Beans - User mailing list archive (
> http://old.nabble.com/Xml-Beans---User-f349.html ) at Nabble.com.
>
>
--
View this message in context:
http://old.nabble.com/org.apache.xmlbeans.impl.values.XmlAnyTypeImpl-problem-in-Equinox-tp29415479p29424917.html
Sent from the Xml Beans - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]