Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Deployed Web Service disappears after changes in sources or Server restart
Deployed Web Service disappears after changes in sources or Server restart [message #178169] Tue, 29 August 2006 17:57 Go to next message
Eclipse UserFriend
Originally posted by: vonklass.gmail.com

Hello,
when I create and deploy a Web Service from a WDSL with the WS-Wizzard, the
WS is available but not listed on
http://localhost:8080/axis/servlet/AxisServlet.
But when I restart tomcat or change the sources, it's not available anymore.
The only way to get it work again is using the WS-Wizzard again.
Thanks for your help!
Wotan

System:
Eclipse 3.2.0
WST 1.5.0
JST 1.5.0
Tomcat 5.5 (with option: it does not run the modules directly from
workspace)
Re: Deployed Web Service disappears after changes in sources or Server restart [message #178185 is a reply to message #178169] Tue, 29 August 2006 19:13 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
The problem is that during the WS-Wizard, the Web Service Web project is
added to a Tomcat server and the server started. This creates a default
server-config.wsdd file. The wizard then deploys the Web services to
finish creating server-config.wsdd. Following this, the wizard *tries*
to copy the server-config.wsdd from the running web application back
into the project. This implies that the wizard can find out where this
server-config.wsdd would be located. Checking the source code for the
Tomcat server plug-in, this is only supported when "Run modules
directly..." is checked. By design, it won't work when "Run modules
directly..." is unchecked. The project doesn't "acquire" a copy of the
server-config.wsdd file, which is why the services will disappear if the
web project is published again. I don't know why this use case
couldn't, or shouldn't, be made to work. Feel free to file a bug or
enhancement request on the "jst.server" component to ask for this use
case be made functional.

For the time being, you could manually copy this file into the project's
WEB-INF folder. It is also possible to use the Axis Admin Client and an
Ant script to create the server-config.wsdd file in the project
directly, without involving Tomcat. For details see my 6/9/2006 post to
"WebServices using WTP"[1]. The Ant script is at the bottom of the post.

Cheers,
Larry

[1] http://dev.eclipse.org/newslists/news.eclipse.webtools/msg11 040.html


Wotan von Klass wrote:
> Hello,
> when I create and deploy a Web Service from a WDSL with the WS-Wizzard, the
> WS is available but not listed on
> http://localhost:8080/axis/servlet/AxisServlet.
> But when I restart tomcat or change the sources, it's not available anymore.
> The only way to get it work again is using the WS-Wizzard again.
> Thanks for your help!
> Wotan
>
> System:
> Eclipse 3.2.0
> WST 1.5.0
> JST 1.5.0
> Tomcat 5.5 (with option: it does not run the modules directly from
> workspace)
>
>
Re: Deployed Web Service disappears after changes in sources or Server restart [message #178248 is a reply to message #178185] Wed, 30 August 2006 08:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vonklass.gmail.com

Thanks. Now I run the modules directly from workspace and it works. The
only issue was that i had to add the axis webapp to my workspace. Is
there an other way to add "external" webapps to this tomcat configuration?
Cheers,
Wotan

"Larry Isaacs" <Larry.Isaacs@sas.com> schrieb im Newsbeitrag
news:ed23kq$j8s$1@utils.eclipse.org...
> The problem is that during the WS-Wizard, the Web Service Web project is
> added to a Tomcat server and the server started. This creates a default
> server-config.wsdd file. The wizard then deploys the Web services to
> finish creating server-config.wsdd. Following this, the wizard *tries* to
> copy the server-config.wsdd from the running web application back into the
> project. This implies that the wizard can find out where this
> server-config.wsdd would be located. Checking the source code for the
> Tomcat server plug-in, this is only supported when "Run modules
> directly..." is checked. By design, it won't work when "Run modules
> directly..." is unchecked. The project doesn't "acquire" a copy of the
> server-config.wsdd file, which is why the services will disappear if the
> web project is published again. I don't know why this use case couldn't,
> or shouldn't, be made to work. Feel free to file a bug or enhancement
> request on the "jst.server" component to ask for this use case be made
> functional.
>
> For the time being, you could manually copy this file into the project's
> WEB-INF folder. It is also possible to use the Axis Admin Client and an
> Ant script to create the server-config.wsdd file in the project directly,
> without involving Tomcat. For details see my 6/9/2006 post to
> "WebServices using WTP"[1]. The Ant script is at the bottom of the post.
>
> Cheers,
> Larry
>
> [1] http://dev.eclipse.org/newslists/news.eclipse.webtools/msg11 040.html
>
>
> Wotan von Klass wrote:
>> Hello,
>> when I create and deploy a Web Service from a WDSL with the WS-Wizzard,
>> the WS is available but not listed on
>> http://localhost:8080/axis/servlet/AxisServlet.
>> But when I restart tomcat or change the sources, it's not available
>> anymore. The only way to get it work again is using the WS-Wizzard again.
>> Thanks for your help!
>> Wotan
>>
>> System:
>> Eclipse 3.2.0
>> WST 1.5.0
>> JST 1.5.0
>> Tomcat 5.5 (with option: it does not run the modules directly from
>> workspace)
Re: Deployed Web Service disappears after changes in sources or Server restart [message #178262 is a reply to message #178248] Wed, 30 August 2006 12:07 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Open the Tomcat configuration editor by double-clicking on the server in
the Servers view. Switch to the Modules tab. Click the "Add External
Web Module" button. If you feel comfortable doing so, you can manually
edit the server.xml file under the appropriate folder of the Servers
project in your workspace.

Cheers,
Larry

Wotan von Klass wrote:
> Thanks. Now I run the modules directly from workspace and it works. The
> only issue was that i had to add the axis webapp to my workspace. Is
> there an other way to add "external" webapps to this tomcat configuration?
> Cheers,
> Wotan
>
> "Larry Isaacs" <Larry.Isaacs@sas.com> schrieb im Newsbeitrag
> news:ed23kq$j8s$1@utils.eclipse.org...
>> The problem is that during the WS-Wizard, the Web Service Web project is
>> added to a Tomcat server and the server started. This creates a default
>> server-config.wsdd file. The wizard then deploys the Web services to
>> finish creating server-config.wsdd. Following this, the wizard *tries* to
>> copy the server-config.wsdd from the running web application back into the
>> project. This implies that the wizard can find out where this
>> server-config.wsdd would be located. Checking the source code for the
>> Tomcat server plug-in, this is only supported when "Run modules
>> directly..." is checked. By design, it won't work when "Run modules
>> directly..." is unchecked. The project doesn't "acquire" a copy of the
>> server-config.wsdd file, which is why the services will disappear if the
>> web project is published again. I don't know why this use case couldn't,
>> or shouldn't, be made to work. Feel free to file a bug or enhancement
>> request on the "jst.server" component to ask for this use case be made
>> functional.
>>
>> For the time being, you could manually copy this file into the project's
>> WEB-INF folder. It is also possible to use the Axis Admin Client and an
>> Ant script to create the server-config.wsdd file in the project directly,
>> without involving Tomcat. For details see my 6/9/2006 post to
>> "WebServices using WTP"[1]. The Ant script is at the bottom of the post.
>>
>> Cheers,
>> Larry
>>
>> [1] http://dev.eclipse.org/newslists/news.eclipse.webtools/msg11 040.html
>>
>>
>> Wotan von Klass wrote:
>>> Hello,
>>> when I create and deploy a Web Service from a WDSL with the WS-Wizzard,
>>> the WS is available but not listed on
>>> http://localhost:8080/axis/servlet/AxisServlet.
>>> But when I restart tomcat or change the sources, it's not available
>>> anymore. The only way to get it work again is using the WS-Wizzard again.
>>> Thanks for your help!
>>> Wotan
>>>
>>> System:
>>> Eclipse 3.2.0
>>> WST 1.5.0
>>> JST 1.5.0
>>> Tomcat 5.5 (with option: it does not run the modules directly from
>>> workspace)
>
>
Re: Deployed Web Service disappears after changes in sources or Serverrestart [message #178588 is a reply to message #178185] Wed, 06 September 2006 17:13 Go to previous message
Chris Brealey is currently offline Chris BrealeyFriend
Messages: 104
Registered: July 2009
Senior Member
Larry,
thanks very much for answering this one. The "Run modules directly from the
workspace..." option is a good workaround (besides being the default). While I
certainly like the idea of improving the Tomcat implementation to handle cases
wher "Run modules..." is unchecked, there are a couple things that worry me:

1. Tomcat isn't the only server. Other servers may not be able to handle this, and
the problem of managing server-config.wsdd between WTP's Web service wizards and
Apache Axis will remain.

2. Per the servlet spec., there is no guarantee that the servlet (Axis in this
case) can acquire the real path to the representation of the containing Web module
(eg. unexploded WARs), or write to such a location if it indeed exists. Axis is
kindof ready for this, insofar as EngineConfigurationFactoryServlet.java quietly
resorts to the server-config.wsdd file included in axis.jar if it can't get at one
persisted "in the module".

We have an RFE lurking in our backlog, 119964 [1], which would have us take
responsibility for writing server-config.wsdd ourselves directly into the Web
project - effectively mastering the file in the workspace. Besides solving the
problem, this would have the added pro of us no longer needing to drive a Web
service SOAP message to the AdminClient as part of our deployment process (better
performance, less network gunk). The big con is that anybody who subsequently
deployed Web services directly via the Axis admin client to the Axis servlet in an
Eclipse WTP deployed Web project would have their services forgotten the next time
Eclipse WTP published the project back to the server. I'd rather not add an Axis
equivalent to Tomcat's "Run modules..." option, but maybe something like that is
ultimately needed?

Cheers - CB.

Larry Isaacs wrote:

> The problem is that during the WS-Wizard, the Web Service Web project is
> added to a Tomcat server and the server started. This creates a default
> server-config.wsdd file. The wizard then deploys the Web services to
> finish creating server-config.wsdd. Following this, the wizard *tries*
> to copy the server-config.wsdd from the running web application back
> into the project. This implies that the wizard can find out where this
> server-config.wsdd would be located. Checking the source code for the
> Tomcat server plug-in, this is only supported when "Run modules
> directly..." is checked. By design, it won't work when "Run modules
> directly..." is unchecked. The project doesn't "acquire" a copy of the
> server-config.wsdd file, which is why the services will disappear if the
> web project is published again. I don't know why this use case
> couldn't, or shouldn't, be made to work. Feel free to file a bug or
> enhancement request on the "jst.server" component to ask for this use
> case be made functional.
>
> For the time being, you could manually copy this file into the project's
> WEB-INF folder. It is also possible to use the Axis Admin Client and an
> Ant script to create the server-config.wsdd file in the project
> directly, without involving Tomcat. For details see my 6/9/2006 post to
> "WebServices using WTP"[1]. The Ant script is at the bottom of the post.
>
> Cheers,
> Larry
>
> [1] http://dev.eclipse.org/newslists/news.eclipse.webtools/msg11 040.html
>
> Wotan von Klass wrote:
> > Hello,
> > when I create and deploy a Web Service from a WDSL with the WS-Wizzard, the
> > WS is available but not listed on
> > http://localhost:8080/axis/servlet/AxisServlet.
> > But when I restart tomcat or change the sources, it's not available anymore.
> > The only way to get it work again is using the WS-Wizzard again.
> > Thanks for your help!
> > Wotan
> >
> > System:
> > Eclipse 3.2.0
> > WST 1.5.0
> > JST 1.5.0
> > Tomcat 5.5 (with option: it does not run the modules directly from
> > workspace)
> >
> >
Previous Topic:extending WTP
Next Topic:How do you do "DTD to XSD"?
Goto Forum:
  


Current Time: Fri Apr 26 23:24:56 GMT 2024

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

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

Back to the top