Skip to main content

Using Metro inside an Eclipse plugin implementation

2 replies [Last post]
Anonymous

Hi,

I'm trying to use a JAX-WS client inside the implementation of my Eclipse
plugin.
Overall, it seems to work.

But I'd like to make use of jax-ws-catalog.xml catalog file in my plugin,
because I'd like to provide all the WSDLs locally and make this catalog file
map WSDL URIs to the local copies of those files. All JAX-WS client stubs
and META-INF/jax-ws-catalog.xml are inside a special JAR archive that I
distribute to clients.
I use this jar in my plugin and include it into my plugin packaging. The
problem is that at run-time JAX-WS cannot find my jax-ws-catalog.xml inside
this JAR file, even though Eclipse runtime can easily find classes provided
by this JAR.

I guess it is related to the way how Eclipse manages/extends class-loading
by using its own mechanisms.

Does anyone have any experiences with similar problems? How this can be
solved?

Thanks,
Leo
--
View this message in context: http://old.nabble.com/Using-Metro-inside-an-Eclipse-plugin-implementatio...
Sent from the Metro - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
girilang
Offline
Joined: 2012-02-11
Points: 0

You created your own plugin? Can you share how you did this.

Jitendra Kotamraju

On 07/01/2010 03:50 AM, Leo Romanoff wrote:
> Hi,
>
> I'm trying to use a JAX-WS client inside the implementation of my Eclipse
> plugin.
> Overall, it seems to work.
>
> But I'd like to make use of jax-ws-catalog.xml catalog file in my plugin,
> because I'd like to provide all the WSDLs locally and make this catalog file
> map WSDL URIs to the local copies of those files. All JAX-WS client stubs
> and META-INF/jax-ws-catalog.xml are inside a special JAR archive that I
> distribute to clients.
> I use this jar in my plugin and include it into my plugin packaging. The
> problem is that at run-time JAX-WS cannot find my jax-ws-catalog.xml inside
> this JAR file, even though Eclipse runtime can easily find classes provided
> by this JAR.
>
> I guess it is related to the way how Eclipse manages/extends class-loading
> by using its own mechanisms.
>
Seems like that. See the method createDefaultCatalogResolver() in the
following file to see how it is loaded.

http://fisheye5.cenqua.com/browse/jax-ws-sources/jaxws-ri/rt/src/com/sun...

Jitu
> Does anyone have any experiences with similar problems? How this can be
> solved?
>
> Thanks,
> Leo
>

[att1.html]