Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Axis2 Integration
Axis2 Integration [message #185957] Thu, 11 January 2007 08:56 Go to next message
Eclipse User
Originally posted by: randalleleonard.hotmail.com

I am curious to see how others are integrating Axis2 v1.1.x into Eclipse
3.2.x, as the current WTP tools only work with Axis1. This discussion
assumes Axis is deployed withing TomCat.

Does it seem the best approach is to bypass WTP web service wizards
altogether, but still associate projects with the Tomcat server via the
Servers view? Then write Ant scripts which are manually executed to build
the aar file and deploy under axis2/services before each test cycle?

Does anyone have such a script available for sharing, or is an alternate
approach recommended?

Thanks,
Randy
Re: Axis2 Integration [message #185965 is a reply to message #185957] Thu, 11 January 2007 10:00 Go to previous messageGo to next message
Eclipse User
Originally posted by: randalleleonard.hotmail.com

Hmmm.... I suspect it's possible to make this all work by changing the
WebContent directory created by the Web Services "New Project Wizard" to
match the aar format, then changing the install directory from /webapps/
to /webapps/axis2/WEB-INF/services.

- Is this true?
- How can I get WPT to change the install directory?

I've viewed the various files under the ".settings" directory, but don't
see anything obvious sticking out.

Thanks in advance.
Randy
Re: Axis2 Integration [message #186014 is a reply to message #185965] Thu, 11 January 2007 16:16 Go to previous messageGo to next message
Kathy Chan is currently offline Kathy Chan
Messages: 93
Registered: July 2009
Member
Hi Randy,

We are actually in the process of integrating Axis2 into WTP 2.0. The
initial step is integrating the Axis2 Web services runtime into the Web
services creation framework in WTP so that the Axis2 runtime can be chosen
as another runtime to create Web service using the existing Web services
wizards in WTP. We are currently working with the initial code contribution
from WSO2 for Axis2 support and are aiming to have the initial Axis2 support
showing up in WTP 2.0 M5 and subsequent milestones.

Please check the wiki:

http://wiki.eclipse.org/index.php/Axis2_Integration_in_WTP

for more details on this ongoing effort. It contains information such as
minutes for the bi-weekly meeting, use cases, requirements, design and RFEs
etc.

If you are interested to influence the direction of this integration effort
or contribute your time in this effort, please let us know. You are more
than welcome to join us in the meeting, send us emails or comment in the
RFE.

Regards,
Kathy Chan

"Randy Leonard" <randalleleonard@hotmail.com> wrote in message
news:f0752f40f5dcac058e2ef84ee0adf6bb$1@www.eclipse.org...
> Hmmm.... I suspect it's possible to make this all work by changing the
> WebContent directory created by the Web Services "New Project Wizard" to
> match the aar format, then changing the install directory from /webapps/
> to /webapps/axis2/WEB-INF/services.
> - Is this true?
> - How can I get WPT to change the install directory?
>
> I've viewed the various files under the ".settings" directory, but don't
> see anything obvious sticking out.
>
> Thanks in advance.
> Randy
>
Re: Axis2 Integration [message #186029 is a reply to message #186014] Thu, 11 January 2007 17:03 Go to previous messageGo to next message
Eclipse User
Originally posted by: randalleleonard.hotmail.com

Kathy:

Thanks for your response. I've already come across the wiki reference,
and also your webinar. Very helpful information.

But I think there are two distinct issues here:
- Web Service creation w/axis2
- Web Service execution w/axis2

Is it correct to say the WTP 2.0 effort is primarily (but not entirely)
involved with web service creation via WTP wizards? And that there really
isn't anything stopping someone from running axis2 web servies within
Eclipse at this time?

If this assertion is true, it seems if WTP 1.5.x had some way of
**auto-deploying** not to /webapps/, but to
webapps/axis2/WEB-INF/services... I would have some automated way of
running my axis2 web services.

Is there some configuration I can set in my workspace/<project>/.settings
folder to accomplish this? From there, axis2 will hot deploy/execute the
new service, correct?

Also, I appreciate the invitation to contribute input to the WTP2 design
process. I'll certainly keep an eye on the design document and otherwise
get a little more experience with WTP... and send in my thoughts for your
consideration.

Thanks again for your help.
Randy
Re: Axis2 Integration [message #186053 is a reply to message #186029] Thu, 11 January 2007 21:18 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
Randy Leonard wrote:
> Kathy:
>
> Thanks for your response. I've already come across the wiki reference,
> and also your webinar. Very helpful information.
>
> But I think there are two distinct issues here:
> - Web Service creation w/axis2
> - Web Service execution w/axis2
>
> Is it correct to say the WTP 2.0 effort is primarily (but not entirely)
> involved with web service creation via WTP wizards? And that there
> really isn't anything stopping someone from running axis2 web servies
> within Eclipse at this time?
>
> If this assertion is true, it seems if WTP 1.5.x had some way of
> **auto-deploying** not to /webapps/, but to
> webapps/axis2/WEB-INF/services... I would have some automated way of
> running my axis2 web services.
>
> Is there some configuration I can set in my
> workspace/<project>/.settings folder to accomplish this? From there,
> axis2 will hot deploy/execute the new service, correct?
>
> Also, I appreciate the invitation to contribute input to the WTP2 design
> process. I'll certainly keep an eye on the design document and
> otherwise get a little more experience with WTP... and send in my
> thoughts for your consideration.
>
> Thanks again for your help.
> Randy
>

The "webapps" is currently hard coded and isn't changeable at the
moment. I plan to fix that in the near future for WTP 2.0M5. However,
this location is where all web projects will be published and this
location will be incorporated into the docBase attribute of the
<Context> for that project used by Tomcat. Thus, I don't think it would
serve your purpose.

I'm not a web services expert, so what exactly are you trying to copy to
the "WEB-INF/services" directory and where is it coming from in your
workspace?

Cheers,
Larry
Re: Axis2 Integration [message #186068 is a reply to message #186053] Thu, 11 January 2007 22:23 Go to previous messageGo to next message
Eclipse User
Originally posted by: randalleleonard.hotmail.com

> I'm not a web services expert, so what exactly are you trying
> to copy to the "WEB-INF/services" directory and where is it
> coming from in your workspace?
Axis2 is installed in Tomcat's <tomcatRoot>/webapps/axis2 directory. Any
services installed in the <tomcatRoot>/webapps/axis2/WEB-INF/services
directory are automatically detected and loaded by Axis2.

Thus, I would prefer to auto-deploy the "WebContent" folder found within
Eclipse to <tomcatRoot>/webapps/axis2/WEB-INF/services... and not to
<tomcatRoot>/webapps.

Short of this, I will need to manually copy this folder each time I wish
to run the service.

Alternatively, is it possible to configure Axis to pick up services in the
/webapps/ directory... which seems to be what WTP does with Axis1.

So a few questions:
- When will WTP 2.0M5 be available?
- Will it allow for configuring the webapp deployment path?
- How does WTP 1.5 run Axis1 services outside the axis/WEB-INF directory


I appreciate your feedback, and look forward to helping test M5.

Thanks,
Randy
Re: Axis2 Integration [message #186130 is a reply to message #186068] Fri, 12 January 2007 19:48 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
Randy Leonard wrote:
>> I'm not a web services expert, so what exactly are you trying
>> to copy to the "WEB-INF/services" directory and where is it
>> coming from in your workspace?
> Axis2 is installed in Tomcat's <tomcatRoot>/webapps/axis2 directory.
> Any services installed in the
> <tomcatRoot>/webapps/axis2/WEB-INF/services directory are automatically
> detected and loaded by Axis2.
>
> Thus, I would prefer to auto-deploy the "WebContent" folder found within
> Eclipse to <tomcatRoot>/webapps/axis2/WEB-INF/services... and not to
> <tomcatRoot>/webapps.
>
> Short of this, I will need to manually copy this folder each time I wish
> to run the service.
>
> Alternatively, is it possible to configure Axis to pick up services in
> the /webapps/ directory... which seems to be what WTP does with Axis1.
>
> So a few questions:
> - When will WTP 2.0M5 be available?

See: http://wiki.eclipse.org/index.php?title=Web_Tools_Requiremen ts_2.0

> - Will it allow for configuring the webapp deployment path?

It will allow you to define a location different from "webapps" where
web projects are published. However, I still think this is likely to
cause more problems than is solves.

> - How does WTP 1.5 run Axis1 services outside the axis/WEB-INF directory

I may not understand your question exactly. I believe the WTP Web
Services support uses a web project in your workspace to serve as the
Axis1 host webapp. Services are added to that web project. Thus, you
don't deploy services, you deploy to the server a host webapp that
contains the services. I'm not sure if the support in WTP handles any
other approaches.

Given that it sounds like your Axis2 webapp isn't in your workspace as a
project, but already on the server, I'm not sure if it is best to try to
develop your service within a Dynamic Web Project. You may be better
off with a Java project and adding to it an Ant Builder which runs an
Ant script to perform the copy.

Cheers,
Larry

>
>
> I appreciate your feedback, and look forward to helping test M5.
>
> Thanks,
> Randy
>
Re: Axis2 Integration [message #186153 is a reply to message #186068] Fri, 12 January 2007 22:03 Go to previous message
Kathy Chan is currently offline Kathy Chan
Messages: 93
Registered: July 2009
Member
Hi Randy,

Here's the answers to your questions:

1. WTP 2.0 M5 will be available on Friday Feb 23, 2007.

2. The Axis2 support in WTP would allow for deploying the Axis2 Web service
AAR directly to the server.

3. In WTP 1.5.x, we add the Axis servlet to the Web project we are creating
Web service in and create the servet-config.wsdd in teh WEB-INF directory to
point to the Web services defined in the Web project.

Regards,
Kathy Chan


"Randy Leonard" <randalleleonard@hotmail.com> wrote in message
news:61534e4d17c9c88f73b22c0aef730a57$1@www.eclipse.org...
>> I'm not a web services expert, so what exactly are you trying
>> to copy to the "WEB-INF/services" directory and where is it
>> coming from in your workspace?
> Axis2 is installed in Tomcat's <tomcatRoot>/webapps/axis2 directory. Any
> services installed in the <tomcatRoot>/webapps/axis2/WEB-INF/services
> directory are automatically detected and loaded by Axis2.
>
> Thus, I would prefer to auto-deploy the "WebContent" folder found within
> Eclipse to <tomcatRoot>/webapps/axis2/WEB-INF/services... and not to
> <tomcatRoot>/webapps.
>
> Short of this, I will need to manually copy this folder each time I wish
> to run the service.
>
> Alternatively, is it possible to configure Axis to pick up services in the
> /webapps/ directory... which seems to be what WTP does with Axis1.
>
> So a few questions:
> - When will WTP 2.0M5 be available?
> - Will it allow for configuring the webapp deployment path?
> - How does WTP 1.5 run Axis1 services outside the axis/WEB-INF directory
>
>
> I appreciate your feedback, and look forward to helping test M5.
>
> Thanks,
> Randy
>
Previous Topic:applet dependecy
Next Topic:Deployement problem again
Goto Forum:
  


Current Time: Sat Sep 20 08:06:57 GMT 2014

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

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