Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » How to make my HttpSender visible?
How to make my HttpSender visible? [message #55208] Tue, 05 August 2008 14:17 Go to next message
Eclipse UserFriend
Originally posted by: divis1969.mail.ru

Hi,

I'm developing a Mylyn connector for my bug tracking system. It is using
SOAP, so I decided to use a Jira connector as an example.

I've added 2 plugins (core and ui) and can create a repository. Now I'm
trying to retrieve some data from the server.

The problem is MyHttpSender class that is not visible to an Axis when I
debug my plugins. This class is based on CommonsHttpSender (the copy from
Jira's one) and is declared in client-config.wsdd:
<transport name="http" pivot="java:com.myconnector.core.MyHttpSender" />

For some reason it is not known for Axis:

org.apache.axis.ConfigurationException: java.lang.ClassNotFoundException:
com.myconnector.core.MyHttpSender
java.lang.ClassNotFoundException: com.myconnector.core.MyHttpSender
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:481)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:397)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:385)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:1 60)
at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100 )
at
org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewIns tance(WSDDTargetedChain.java:157)

I did not find any specific configuration in Jira plugin, so I suppose
this can be fixed with debug configuration. I've tried to add a path to my
class to CLASSPATH variable, but it does not work.

So, I would appreciate any advice how to fix this.

Dmitry
Re: How to make my HttpSender visible? [message #55264 is a reply to message #55208] Tue, 05 August 2008 20:37 Go to previous messageGo to next message
Steffen Pingel is currently offline Steffen PingelFriend
Messages: 706
Registered: July 2009
Senior Member
The classloader of the Axis bundle can not see your class. Add this line to
the MANIFEST.MF plug-in of your connector:

Eclipse-RegisterBuddy: org.apache.axis

This will enable the org.apache.axis bundle to load your class.

Steffen


Dmitry Smirnov wrote:

> Hi,
>
> I'm developing a Mylyn connector for my bug tracking system. It is using
> SOAP, so I decided to use a Jira connector as an example.
>
> I've added 2 plugins (core and ui) and can create a repository. Now I'm
> trying to retrieve some data from the server.
>
> The problem is MyHttpSender class that is not visible to an Axis when I
> debug my plugins. This class is based on CommonsHttpSender (the copy from
> Jira's one) and is declared in client-config.wsdd:
> <transport name="http" pivot="java:com.myconnector.core.MyHttpSender" />
>
> For some reason it is not known for Axis:
>
> org.apache.axis.ConfigurationException: java.lang.ClassNotFoundException:
> com.myconnector.core.MyHttpSender
> java.lang.ClassNotFoundException: com.myconnector.core.MyHttpSender
> at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:481)
> at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:397)
> at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:385)
> at
>
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:1 60)
> at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100 )
> at
>
org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewIns tance(WSDDTargetedChain.java:157)
>
> I did not find any specific configuration in Jira plugin, so I suppose
> this can be fixed with debug configuration. I've tried to add a path to my
> class to CLASSPATH variable, but it does not work.
>
> So, I would appreciate any advice how to fix this.
>
> Dmitry
Re: How to make my HttpSender visible? [message #55291 is a reply to message #55264] Wed, 06 August 2008 12:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: divis1969.mail.ru

Thank you! This works fine.

Dmitry
Re: How to make my HttpSender visible? [message #55345 is a reply to message #55264] Wed, 06 August 2008 18:52 Go to previous messageGo to next message
Andreas Goetz is currently offline Andreas GoetzFriend
Messages: 110
Registered: July 2009
Senior Member
And check here which explains the whole procedure:

Cheers,
Andi

Steffen Pingel wrote:
> The classloader of the Axis bundle can not see your class. Add this line to
> the MANIFEST.MF plug-in of your connector:
>
> Eclipse-RegisterBuddy: org.apache.axis
>
> This will enable the org.apache.axis bundle to load your class.
>
> Steffen
Re: How to make my HttpSender visible? [message #55372 is a reply to message #55264] Wed, 06 August 2008 18:52 Go to previous message
Andreas Goetz is currently offline Andreas GoetzFriend
Messages: 110
Registered: July 2009
Senior Member
And check here which explains the whole procedure:

http://www.eclipsezone.com/articles/eclipse-vms/

Cheers,
Andi

Steffen Pingel wrote:
> The classloader of the Axis bundle can not see your class. Add this line to
> the MANIFEST.MF plug-in of your connector:
>
> Eclipse-RegisterBuddy: org.apache.axis
>
> This will enable the org.apache.axis bundle to load your class.
>
> Steffen
Re: How to make my HttpSender visible? [message #592173 is a reply to message #55208] Tue, 05 August 2008 20:37 Go to previous message
Steffen Pingel is currently offline Steffen PingelFriend
Messages: 706
Registered: July 2009
Senior Member
The classloader of the Axis bundle can not see your class. Add this line to
the MANIFEST.MF plug-in of your connector:

Eclipse-RegisterBuddy: org.apache.axis

This will enable the org.apache.axis bundle to load your class.

Steffen


Dmitry Smirnov wrote:

> Hi,
>
> I'm developing a Mylyn connector for my bug tracking system. It is using
> SOAP, so I decided to use a Jira connector as an example.
>
> I've added 2 plugins (core and ui) and can create a repository. Now I'm
> trying to retrieve some data from the server.
>
> The problem is MyHttpSender class that is not visible to an Axis when I
> debug my plugins. This class is based on CommonsHttpSender (the copy from
> Jira's one) and is declared in client-config.wsdd:
> <transport name="http" pivot="java:com.myconnector.core.MyHttpSender" />
>
> For some reason it is not known for Axis:
>
> org.apache.axis.ConfigurationException: java.lang.ClassNotFoundException:
> com.myconnector.core.MyHttpSender
> java.lang.ClassNotFoundException: com.myconnector.core.MyHttpSender
> at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:481)
> at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:397)
> at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:385)
> at
>
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:1 60)
> at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100 )
> at
>
org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewIns tance(WSDDTargetedChain.java:157)
>
> I did not find any specific configuration in Jira plugin, so I suppose
> this can be fixed with debug configuration. I've tried to add a path to my
> class to CLASSPATH variable, but it does not work.
>
> So, I would appreciate any advice how to fix this.
>
> Dmitry
Re: How to make my HttpSender visible? [message #592193 is a reply to message #55264] Wed, 06 August 2008 12:44 Go to previous message
Dmitry Smirnov is currently offline Dmitry SmirnovFriend
Messages: 2
Registered: July 2009
Junior Member
Thank you! This works fine.

Dmitry
Re: How to make my HttpSender visible? [message #592219 is a reply to message #55264] Wed, 06 August 2008 18:52 Go to previous message
Andreas Goetz is currently offline Andreas GoetzFriend
Messages: 110
Registered: July 2009
Senior Member
And check here which explains the whole procedure:

Cheers,
Andi

Steffen Pingel wrote:
> The classloader of the Axis bundle can not see your class. Add this line to
> the MANIFEST.MF plug-in of your connector:
>
> Eclipse-RegisterBuddy: org.apache.axis
>
> This will enable the org.apache.axis bundle to load your class.
>
> Steffen
Re: How to make my HttpSender visible? [message #592223 is a reply to message #55264] Wed, 06 August 2008 18:52 Go to previous message
Andreas Goetz is currently offline Andreas GoetzFriend
Messages: 110
Registered: July 2009
Senior Member
And check here which explains the whole procedure:

http://www.eclipsezone.com/articles/eclipse-vms/

Cheers,
Andi

Steffen Pingel wrote:
> The classloader of the Axis bundle can not see your class. Add this line to
> the MANIFEST.MF plug-in of your connector:
>
> Eclipse-RegisterBuddy: org.apache.axis
>
> This will enable the org.apache.axis bundle to load your class.
>
> Steffen
Previous Topic:Include Web connector into the update side?
Next Topic:Database Table as Context
Goto Forum:
  


Current Time: Fri Apr 26 21:09:19 GMT 2024

Powered by FUDForum. Page generated in 0.03292 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top