|
Re: How to avoid EAR project creation in the Web Service Wizard? [message #487930 is a reply to message #487248] |
Thu, 24 September 2009 21:28 |
Mark Hutchinson Messages: 53 Registered: July 2009 |
Member |
|
|
Hi Tilak,
The dialog will force you to enter an EAR if your server requires EARs.
For example, if you have apache tomcat selected as your server, then
the EAR project field should be disabled.
I think that the list of projects in that dialog is filtered by facets.
For example, if my runtime is set to axis, only projects that have the
jst.web facet (with version greater than 2.3), will be shown in that
project selection dialog.
The extension for the axis web service runtime looks like this:
<!-- define support for Axis Java bean bottom up and top-down support
in web projects -->
<extension point="org.eclipse.jst.ws.consumption.ui.serviceRuntimes">
<serviceRuntime
id="org.eclipse.jst.ws.axis.creation.java"
serviceImplementationTypeId="org.eclipse.jst.ws.wsImpl.java "
runtimeId="org.eclipse.jst.ws.axis.creation.axisWebServiceRT "
runtimeChecker=" org.eclipse.jst.ws.internal.axis.creation.ui.wsrt.AxisWebSer viceRuntimeChecker "
bottomUp="true"
topDown="true"
class=" org.eclipse.jst.ws.internal.axis.creation.ui.wsrt.AxisWebSer viceRuntime ">
<required-facet-version facet="jst.web" version="2.3"
allow-newer="true"/>
</serviceRuntime>
</extension>
The projects that show up in that dialog should be filtered based on the
required-facet-version.
Hope this helps,
Mark
Tilak wrote:
> On the first page of the Web Service Wizard, there is a hyperlink
> "Service project". On clicking this, it will show up a dialog with all
> the Projects in the Workspace.
>
> Now if I select another project, it also creates an EAR Project. I don't
> need to need this.
> Please help me avoid the creation of this EAR project for corresponding
> project in the workspace.
>
> And I want to filter the projects shown in this Project Selection dialog
> based on some Facet. Can I do that?
>
> Thanks,
> Tilak
>
> /* posting this as a new topic as the reply for another topic was not
> indicating the correct context*/
|
|
|
Re: How to avoid EAR project creation in the Web Service Wizard? [message #487993 is a reply to message #487930] |
Fri, 25 September 2009 09:01 |
Tilak Sharma Messages: 48 Registered: July 2009 |
Member |
|
|
Hi Mark,
Thanks a lot for replying.
I have defined my own runtime:
<extension point="org.eclipse.jst.ws.consumption.ui.runtimes">
<runtime id="com.sample.ws.creation.sampleWebServiceRT"
label="Sample Runtime"
serverRequired="false"/>
</extension>
I don't need a server, because, deploying of my services is not a requirement, so serverRequired=false.
I have defined exactly similar <extension point="org.eclipse.jst.ws.consumption.ui.serviceRuntimes">:
<extension point="org.eclipse.jst.ws.consumption.ui.serviceRuntimes">
<serviceRuntime id="com.sample.ws.creation.serviceRuntime"
serviceImplementationTypeId="org.eclipse.jst.ws.wsImpl.sample "
runtimeId="com.sample.ws.creation.sampleWebServiceRT"
bottomUp="true"
topDown="true"
class="com.sample.ws.runtime.SampleRuntime"
runtimeChecker="com.sample.ws.runtime.SampleWebServiceRuntimeChecker ">
<required-facet-version facet="sample.facet" version="1.0" allow-newer="true"/>
</serviceRuntime>
</extension>
- My workspace has projects with sample.facet and projects without this facet. On the Project selection dialog, all the projects are shown in the drop down.
- And EAR is created for all the projects, except for those with JST.Java facet and JST.Utility facet (as per my understanding)
Service Project Selection:
- After selecting the Service implementation, my Runtime and one of the projects in the workspace is selected.
- If the selected project doesn't have my facet (sample.facet). Then, on click of 'Next' button, the wizard is installing my facet on the project (For those which are facet-enabled: FacetedProjects)
- I can show an error message using the RuntimeChecker class, when a project without my facet is selected, but then If user selects any other project, it is creating an EAR project as well.
If this behavior is incorrect, then should this be a bug?
I need to select only the project which has my facet and I do not need an EAR project. My runtime doesn't need a Server. Is this causing the problem?
Please help me solve this Service Project selection problem.
Thanks a lot,
Tilak
|
|
|
Re: How to avoid EAR project creation in the Web Service Wizard? [message #489174 is a reply to message #487993] |
Thu, 01 October 2009 17:12 |
Mark Hutchinson Messages: 53 Registered: July 2009 |
Member |
|
|
Hi Tilak,
I don't know the answer off the top of my head, and I haven't had any
time to look into this.
If you haven't already, you could try setting some breakpoints in the
ProjectSelectionWidget (in the org.eclipse.jst.ws.consumption.ui
plugin) to see what could be going wrong here. Good luck!
Tilak wrote:
> Hi Mark,
>
> Thanks a lot for replying.
>
> I have defined my own runtime:
> <extension point="org.eclipse.jst.ws.consumption.ui.runtimes">
> <runtime id="com.sample.ws.creation.sampleWebServiceRT"
> label="Sample Runtime"
> serverRequired="false"/>
> </extension>
>
> I don't need a server, because, deploying of my services is not a
> requirement, so serverRequired=false.
>
> I have defined exactly similar <extension
> point="org.eclipse.jst.ws.consumption.ui.serviceRuntimes">:
>
> <extension point="org.eclipse.jst.ws.consumption.ui.serviceRuntimes">
> <serviceRuntime id="com.sample.ws.creation.serviceRuntime"
>
> serviceImplementationTypeId="org.eclipse.jst.ws.wsImpl.sample "
>
> runtimeId="com.sample.ws.creation.sampleWebServiceRT"
> bottomUp="true"
> topDown="true"
> class="com.sample.ws.runtime.SampleRuntime"
> runtimeChecker="com.sample.ws.runtime.SampleWebServiceRuntimeChecker ">
> <required-facet-version facet="sample.facet" version="1.0"
> allow-newer="true"/>
> </serviceRuntime>
> </extension>
>
>
>
> My workspace has projects with sample.facet and projects without this
> facet. On the Project selection dialog, all the projects are shown in
> the drop down.
> And EAR is created for all the projects, except for those with JST.Java
> facet and JST.Utility facet (as per my understanding)
>
>
> Service Project Selection:
>
> After selecting the Service implementation, my Runtime and one of the
> projects in the workspace is selected. If the selected project doesn't
> have my facet (sample.facet). Then, on click of 'Next' button, the
> wizard is installing my facet on the project (For those which are
> facet-enabled: FacetedProjects) :? I can show an error message using
> the RuntimeChecker class, when a project without my facet is selected,
> but then If user selects any other project, it is creating an EAR
> project as well.
>
>
> If this behavior is incorrect, then should this be a bug?
>
> I need to select only the project which has my facet and I do not need
> an EAR project. My runtime doesn't need a Server. Is this causing the
> problem?
>
> Please help me solve this Service Project selection problem.
> Thanks a lot,
> Tilak
|
|
|
Powered by
FUDForum. Page generated in 0.03229 seconds