Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Webtools incubator » WSDL Model Listener
WSDL Model Listener [message #435142] Wed, 17 June 2009 08:58 Go to next message
lancel lau is currently offline lancel lau
Messages: 31
Registered: July 2009
Member
Hi,

is there a wsdl model listener available? just like the extension point
"model listener" in the bpel project.

regards
Re: WSDL Model Listener [message #435143 is a reply to message #435142] Wed, 17 June 2009 17:31 Go to previous messageGo to next message
Shane Clarke is currently offline Shane Clarke
Messages: 67
Registered: July 2009
Member
Hi Lancel,

Best place to get an answer to that question would be on the main
eclipse.webtools newsgroup
http://www.eclipse.org/newsportal/thread.php?group=eclipse.w ebtools

I'm not familiar with that extension point in the BPEL project.

Have a look at what's done in the org.eclipse.wst.wsdl.ui plug-in. See if
the org.eclipse.wst.wsdl.ui.internal.text.WSDLModelAdapter is of any help.

Thanks,
Shane

lancel lau wrote:

> Hi,

> is there a wsdl model listener available? just like the extension point
> "model listener" in the bpel project.

> regards
Re: WSDL Model Listener [message #435144 is a reply to message #435143] Sun, 28 June 2009 07:48 Go to previous messageGo to next message
lancel lau is currently offline lancel lau
Messages: 31
Registered: July 2009
Member
Hi Shane,

thanks for your reply. i have posted my question in webtools newsgroup.
but i get no answer. so i post it here and your reply seems to be very
helpful. i find out that when i checkout the org.eclipse.wst.wsdl.ui from
eclips cvs webtools repository, the "src" folder is always missing. i did
not mention that before and i can not get get the source code. i do not
know how to handle this. can you help me?

regards
Re: WSDL Model Listener [message #435145 is a reply to message #435144] Sun, 28 June 2009 17:23 Go to previous messageGo to next message
Shane Clarke is currently offline Shane Clarke
Messages: 67
Registered: July 2009
Member
Hi Lancel,

That plug-in when checked out from cvs has 5 different source folders.

If you're having problems accessing the code that way you could try
downloading the WST SDK or the WTP SDK from here
http://download.eclipse.org/webtools/downloads/drops/R3.1/R- 3.1-20090616035105/

Older builds can be found at
http://archive.eclipse.org/webtools/downloads/index.php

Once installed you can use the Import Wizard found at

File > Import > Plug-in Development > Plug-ins and Fragments

to import the org.eclipse.wst.wsdl.ui plug-in into your workspace.

Just to note as well that all the code in that plug-in is *internal* and
not API.

Thanks,
Shane
Re: WSDL Model Listener [message #435146 is a reply to message #435145] Mon, 29 June 2009 08:29 Go to previous messageGo to next message
lancel lau is currently offline lancel lau
Messages: 31
Registered: July 2009
Member
Hi Shane,

i have imported the org.eclipse.wst.wsdl.ui plug-in into my workspace and
i change the source folder to org.eclipse.wst.wsdl.ui_*.*.***.v*********.
then i get some similar errors in the lines "import
javax.xml.namespace.QName;". one error information is:

Access restriction: The constructor QName(String, String) is not
accessible due to restriction on required library C:\Program
Files\Java\jre6\lib\rt.jar

javax.xml.namespace is in rt.jar of my JRE System Library. so i do not
know how to change the restriction. can you help me? thanks

regards
Re: WSDL Model Listener [message #435147 is a reply to message #435146] Mon, 29 June 2009 15:08 Go to previous messageGo to next message
Shane Clarke is currently offline Shane Clarke
Messages: 67
Registered: July 2009
Member
Hi Lancel,

Why are you making changes to the source folder?

For the access restriction problem.

Right click on the org.eclipse.wst.wsdl.ui plug-in and select properties
from the context menu. Go to the 'Java Build Path' page and select the
'Order and Export' tab. Select 'Plug-in Dependencies' and then move it to
the top of the list by using the 'Up' button. Hit Ok.

Thanks,
Shane
Re: WSDL Model Listener [message #435148 is a reply to message #435147] Tue, 30 June 2009 05:07 Go to previous messageGo to next message
lancel lau is currently offline lancel lau
Messages: 31
Registered: July 2009
Member
Hi Shane,

i change the source folder because when i add a class or interface in the
source package it always says: it is not a java project. there is no src
folder after importing the plugin.
i do what you told me. it works well. thanks.
but in the package org.eclipse.wst.wsdl.ui another restriction problem
appears in the line "import
org.eclipse.wst.ws.internal.service.policy.ui.properties.Ser vicePoliciesPropertyPage; "

Access restriction: The type ServicePoliciesPropertyPage is not accessible
due to restriction on required library E:\Texoclipse\eclipse\plugins
\org.eclipse.wst.ws.service.policy.ui_1.0.2.v200809031518.ja r

it seems that i put Plugin-dependency on the top of "order and export"this
will appear and when i put JRE System library on the top the old problem
will appear.

regards
Re: WSDL Model Listener [message #435149 is a reply to message #435148] Tue, 30 June 2009 16:41 Go to previous messageGo to next message
Shane Clarke is currently offline Shane Clarke
Messages: 67
Registered: July 2009
Member
Hi Lancel,

> i change the source folder because when i add a class or interface in the
> source package it always says: it is not a java project. there is no src
> folder after importing the plugin.

Something has gone wrong somewhere if your getting that error and there's
no source folder.

You seem to be having problems with source folders with both CVS checkouts
and plug-in imports. Not sure what the problem is. You should try
launching Eclipse with a fresh workspace and checking out the plug-in(s)
again to see if it makes any difference. You shouldn't be getting that
problem in either case.

> Access restriction: The type ServicePoliciesPropertyPage is not accessible
> due to restriction on required library E:Texoclipseeclipseplugins
> org.eclipse.wst.ws.service.policy.ui_1.0.2.v200809031518.jar

For testing purposes you can lower the access restriction severity from
error to warning.

Right-Click on the org.eclipse.wst.wsdl.ui plug-in and select properties.

Java Compiler > Error/Warnings > Enable project specific settings >
Deprecated and restricted API > Forbidden reference (access rules) >
Change Error to Warning

Thanks,
Shane
Re: WSDL Model Listener [message #435150 is a reply to message #435149] Sun, 05 July 2009 07:54 Go to previous messageGo to next message
lancel lau is currently offline lancel lau
Messages: 31
Registered: July 2009
Member
Hi Shane,

thanks for your help. now i want to write an extension point of "model
listener" for wsdl project. after the definition of my extension point i
have to stop. because i do not know how the wsdl project manages its
extension points. where should i write my codes? this seems to be
complexer than those examples in books or Internet.
can you give any advices or tell me where i should ask this question?

regards
Re: WSDL Model Listener [message #435151 is a reply to message #435150] Mon, 06 July 2009 16:25 Go to previous messageGo to next message
Shane Clarke is currently offline Shane Clarke
Messages: 67
Registered: July 2009
Member
Hi Lancel,

I'm assuming that you mean a WTP Dynamic Web Project when you say "WSDL
Project".

In that case you can create a project facet which would allow an end user
to add or remove the functionality that you are developing.

You can find out more about facets here:
http://www.eclipse.org/articles/Article-BuildingProjectFacet s/tutorial.html

The best place for WTP specific questions would be the eclipse.webtools
newsgroup:
http://www.eclipse.org/newsportal/thread.php?group=eclipse.w ebtools

It gets more traffic than the incubator newsgroup. More people will see
your question.

Thanks,
Shane
Re: WSDL Model Listener [message #512951 is a reply to message #435147] Mon, 08 February 2010 07:36 Go to previous messageGo to next message
Pedro Martins is currently offline Pedro Martins
Messages: 2
Registered: February 2010
Junior Member
Shane Clarke wrote on Mon, 29 June 2009 15:08
Hi Lancel,

Why are you making changes to the source folder?

For the access restriction problem.

Right click on the org.eclipse.wst.wsdl.ui plug-in and select properties
from the context menu. Go to the 'Java Build Path' page and select the
'Order and Export' tab. Select 'Plug-in Dependencies' and then move it to
the top of the list by using the 'Up' button. Hit Ok.

Thanks,
Shane


I'm starting to use eclipse and AJDT to learn some AspectJ, as my masters is based in Aspects Oriented Programming. I'm trying to run the examples from the AspectJ eclipse page in eclipse, but i have an error similar to this one. I guess the solution is also similar to this one, but i can't find the eclipse plugins to apply this solution. Can someone help me please.

Thanks: Pedro
Re: WSDL Model Listener [message #570247 is a reply to message #435142] Wed, 17 June 2009 17:31 Go to previous messageGo to next message
Shane Clarke is currently offline Shane Clarke
Messages: 67
Registered: July 2009
Member
Hi Lancel,

Best place to get an answer to that question would be on the main
eclipse.webtools newsgroup
http://www.eclipse.org/newsportal/thread.php?group=eclipse.w ebtools

I'm not familiar with that extension point in the BPEL project.

Have a look at what's done in the org.eclipse.wst.wsdl.ui plug-in. See if
the org.eclipse.wst.wsdl.ui.internal.text.WSDLModelAdapter is of any help.

Thanks,
Shane

lancel lau wrote:

> Hi,

> is there a wsdl model listener available? just like the extension point
> "model listener" in the bpel project.

> regards
Re: WSDL Model Listener [message #570263 is a reply to message #435143] Sun, 28 June 2009 07:48 Go to previous messageGo to next message
lancel lau is currently offline lancel lau
Messages: 31
Registered: July 2009
Member
Hi Shane,

thanks for your reply. i have posted my question in webtools newsgroup.
but i get no answer. so i post it here and your reply seems to be very
helpful. i find out that when i checkout the org.eclipse.wst.wsdl.ui from
eclips cvs webtools repository, the "src" folder is always missing. i did
not mention that before and i can not get get the source code. i do not
know how to handle this. can you help me?

regards
Re: WSDL Model Listener [message #570276 is a reply to message #435144] Sun, 28 June 2009 17:23 Go to previous messageGo to next message
Shane Clarke is currently offline Shane Clarke
Messages: 67
Registered: July 2009
Member
Hi Lancel,

That plug-in when checked out from cvs has 5 different source folders.

If you're having problems accessing the code that way you could try
downloading the WST SDK or the WTP SDK from here
http://download.eclipse.org/webtools/downloads/drops/R3.1/R- 3.1-20090616035105/

Older builds can be found at
http://archive.eclipse.org/webtools/downloads/index.php

Once installed you can use the Import Wizard found at

File > Import > Plug-in Development > Plug-ins and Fragments

to import the org.eclipse.wst.wsdl.ui plug-in into your workspace.

Just to note as well that all the code in that plug-in is *internal* and
not API.

Thanks,
Shane
Re: WSDL Model Listener [message #570289 is a reply to message #435145] Mon, 29 June 2009 08:29 Go to previous messageGo to next message
lancel lau is currently offline lancel lau
Messages: 31
Registered: July 2009
Member
Hi Shane,

i have imported the org.eclipse.wst.wsdl.ui plug-in into my workspace and
i change the source folder to org.eclipse.wst.wsdl.ui_*.*.***.v*********.
then i get some similar errors in the lines "import
javax.xml.namespace.QName;". one error information is:

Access restriction: The constructor QName(String, String) is not
accessible due to restriction on required library C:\Program
Files\Java\jre6\lib\rt.jar

javax.xml.namespace is in rt.jar of my JRE System Library. so i do not
know how to change the restriction. can you help me? thanks

regards
Re: WSDL Model Listener [message #570307 is a reply to message #435146] Mon, 29 June 2009 15:08 Go to previous messageGo to next message
Shane Clarke is currently offline Shane Clarke
Messages: 67
Registered: July 2009
Member
Hi Lancel,

Why are you making changes to the source folder?

For the access restriction problem.

Right click on the org.eclipse.wst.wsdl.ui plug-in and select properties
from the context menu. Go to the 'Java Build Path' page and select the
'Order and Export' tab. Select 'Plug-in Dependencies' and then move it to
the top of the list by using the 'Up' button. Hit Ok.

Thanks,
Shane
Re: WSDL Model Listener [message #570320 is a reply to message #435147] Tue, 30 June 2009 05:07 Go to previous messageGo to next message
lancel lau is currently offline lancel lau
Messages: 31
Registered: July 2009
Member
Hi Shane,

i change the source folder because when i add a class or interface in the
source package it always says: it is not a java project. there is no src
folder after importing the plugin.
i do what you told me. it works well. thanks.
but in the package org.eclipse.wst.wsdl.ui another restriction problem
appears in the line "import
org.eclipse.wst.ws.internal.service.policy.ui.properties.Ser vicePoliciesPropertyPage; "

Access restriction: The type ServicePoliciesPropertyPage is not accessible
due to restriction on required library E:\Texoclipse\eclipse\plugins
\org.eclipse.wst.ws.service.policy.ui_1.0.2.v200809031518.ja r

it seems that i put Plugin-dependency on the top of "order and export"this
will appear and when i put JRE System library on the top the old problem
will appear.

regards
Re: WSDL Model Listener [message #570335 is a reply to message #435148] Tue, 30 June 2009 16:41 Go to previous messageGo to next message
Shane Clarke is currently offline Shane Clarke
Messages: 67
Registered: July 2009
Member
Hi Lancel,

> i change the source folder because when i add a class or interface in the
> source package it always says: it is not a java project. there is no src
> folder after importing the plugin.

Something has gone wrong somewhere if your getting that error and there's
no source folder.

You seem to be having problems with source folders with both CVS checkouts
and plug-in imports. Not sure what the problem is. You should try
launching Eclipse with a fresh workspace and checking out the plug-in(s)
again to see if it makes any difference. You shouldn't be getting that
problem in either case.

> Access restriction: The type ServicePoliciesPropertyPage is not accessible
> due to restriction on required library E:Texoclipseeclipseplugins
> org.eclipse.wst.ws.service.policy.ui_1.0.2.v200809031518.jar

For testing purposes you can lower the access restriction severity from
error to warning.

Right-Click on the org.eclipse.wst.wsdl.ui plug-in and select properties.

Java Compiler > Error/Warnings > Enable project specific settings >
Deprecated and restricted API > Forbidden reference (access rules) >
Change Error to Warning

Thanks,
Shane
Re: WSDL Model Listener [message #570347 is a reply to message #435149] Sun, 05 July 2009 07:54 Go to previous messageGo to next message
lancel lau is currently offline lancel lau
Messages: 31
Registered: July 2009
Member
Hi Shane,

thanks for your help. now i want to write an extension point of "model
listener" for wsdl project. after the definition of my extension point i
have to stop. because i do not know how the wsdl project manages its
extension points. where should i write my codes? this seems to be
complexer than those examples in books or Internet.
can you give any advices or tell me where i should ask this question?

regards
Re: WSDL Model Listener [message #570353 is a reply to message #435150] Mon, 06 July 2009 16:25 Go to previous messageGo to next message
Shane Clarke is currently offline Shane Clarke
Messages: 67
Registered: July 2009
Member
Hi Lancel,

I'm assuming that you mean a WTP Dynamic Web Project when you say "WSDL
Project".

In that case you can create a project facet which would allow an end user
to add or remove the functionality that you are developing.

You can find out more about facets here:
http://www.eclipse.org/articles/Article-BuildingProjectFacet s/tutorial.html

The best place for WTP specific questions would be the eclipse.webtools
newsgroup:
http://www.eclipse.org/newsportal/thread.php?group=eclipse.w ebtools

It gets more traffic than the incubator newsgroup. More people will see
your question.

Thanks,
Shane
Re: WSDL Model Listener [message #570741 is a reply to message #435147] Mon, 08 February 2010 07:36 Go to previous message
Pedro Martins is currently offline Pedro Martins
Messages: 2
Registered: February 2010
Junior Member
Shane Clarke wrote on Mon, 29 June 2009 15:08
> Hi Lancel,
>
> Why are you making changes to the source folder?
>
> For the access restriction problem.
>
> Right click on the org.eclipse.wst.wsdl.ui plug-in and select properties
> from the context menu. Go to the 'Java Build Path' page and select the
> 'Order and Export' tab. Select 'Plug-in Dependencies' and then move it to
> the top of the list by using the 'Up' button. Hit Ok.
>
> Thanks,
> Shane


I'm starting to use eclipse and AJDT to learn some AspectJ, as my masters is based in Aspects Oriented Programming. I'm trying to run the examples from the AspectJ eclipse page in eclipse, but i have an error similar to this one. I guess the solution is also similar to this one, but i can't find the eclipse plugins to apply this solution. Can someone help me please.

Thanks: Pedro
Previous Topic:Is it possible to disable the EAR Project generation for the Web Service?
Next Topic:[JAX-WS] Unable to generate code from JAX-WS annotations
Goto Forum:
  


Current Time: Tue Jul 22 13:29:38 EDT 2014

Powered by FUDForum. Page generated in 0.13854 seconds