I appreciate your kindness.

I did as you'v recommended. but, the result was same.

When I explained my problem, I had one thing that I missed.
Bundle B is http servlet bundle ( imported packages are javax.servlet,
javax.servlet.http, org.osgi.service.http).
If I add Bundle A's method at BundleActivator/start() of Bundle B, it works
well.
The abnormal case is when called as http get/post service.
That is, if I add Bundle A's method at HttpServlet/doPost() of Bundle, it
doesn't work.

Thanks,
chlee



Srijith Kochunni wrote:
> 
> 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 <le...@etri.re.kr> 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 <le...@etri.re.kr> 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: user-unsubscr...@xmlbeans.apache.org
> For additional commands, e-mail: user-h...@xmlbeans.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/org.apache.xmlbeans.impl.values.XmlAnyTypeImpl-problem-in-Equinox-tp29415479p29446770.html
Sent from the Xml Beans - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@xmlbeans.apache.org
For additional commands, e-mail: user-h...@xmlbeans.apache.org

Reply via email to