You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Anwaruddin Syed <x_...@yahoo.com> on 2007/02/19 13:23:50 UTC
How to use ObjectFactory (javax.xml.bind.JAXBContext) from the Eclipse Plug-in
Hi All,
I would like to use ObjectFactory in my plugin. Below is my code snippet
TestServiceLocator SrvcLocator = new TestServiceLocator();
try {
Invoke svc = SrvcLocator.getinvoke(new URL(http://localhost:8080));
ObjectFactory factory = new ObjectFactory();
LogRequest data = factory.createLogRequest().
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
I am unable to call ObjectFactory class. It throws "unresolved sumbol error". Do I neeed to add any Plug-in containing this as a dependent in my plug-in?
Any help in fixing this is greatly appreciated.
Thanks and Regards,
Syed
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
Re: How to use ObjectFactory (javax.xml.bind.JAXBContext) from the Eclipse Plug-in
Posted by Lahiru Sandakith <sa...@gmail.com>.
Hi Syed,
Unresolved symbol error basically means that the resource is not available
in the plugin scope at the compilation time.
Its not very clear to me how you made the calling resources available in to
this plugin access scope. If you have already included it through the plugin
MENIFIST, guess is that access restrictions rules are not set. Maybe
setting the access rules to available on your dependency, by going through
project properties -> Java build path -> Libraries and setting the Access
Rules will resolve the issue.
Thanks
Lahiru Sandakith.
On 2/19/07, Anwaruddin Syed <x_...@yahoo.com> wrote:
>
> Hi All,
>
> I would like to use *ObjectFactory* in my plugin. Below is my code snippet
>
> TestServiceLocator SrvcLocator =
> *new* TestServiceLocator();
>
> *try* {
>
> Invoke svc = SrvcLocator.getinvoke(
> *new* URL(http://localhost:8080));
>
> *ObjectFactory factory = new ObjectFactory();*
>
> *LogRequest data = factory.createLogRequest().*
>
> } *catch* (Exception e) {
>
> // *TODO* Auto-generated catch block
>
> e.printStackTrace();
>
> }
>
>
>
> I am unable to call ObjectFactory class. It throws "unresolved sumbol
> error". Do I neeed to add any Plug-in containing this as a dependent in my
> plug-in?
>
> Any help in fixing this is greatly appreciated.
>
>
>
> Thanks and Regards,
>
> Syed
>
>
>
>
>
> ------------------------------
> Never Miss an Email
> Stay connected with Yahoo! Mail on your mobile. Get started!<http://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/services?promote=mail>
>
--
Regards
Lahiru Sandakith