This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 222758 - Server restart problem with Run on Server
Summary: Server restart problem with Run on Server
Status: REOPENED
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: wst.server (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Angel Vera CLA
QA Contact: Tim deBoer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-14 11:08 EDT by Eric Peters CLA
Modified: 2008-03-14 20:09 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Peters CLA 2008-03-14 11:08:22 EDT
Build ID: I-I20080314073909

Steps To Reproduce:
1. Create 55 server & start
2. Create a Dynamic Web Project targeting server, and a new wsdl file (for example), but do not add to the server yet
3. right click on wsdl file, run on server, get HTTP Status 404 



More information:
This is a change in behavior from previous Integration build http://download.eclipse.org/webtools/downloads/drops/R3.0/I-I20080306230652-20080306230652/ - wsdl would run just fine on the server without needing to restart.


Note that server status changes from "Synchronized" to "Restart" after step 3 above. Workaround is to restart server then wsdl can be run on server. Note also that got no dialog indicating a server restart was required in order to run the wsdl.


This problem is blocking a web services scenario outlined in https://bugs.eclipse.org/bugs/show_bug.cgi?id=222681 - after a web service is created by the web service wizard, the server status is restart, and subsequent generation of web service client fails with exceptions when trying to test (i.e. client slider set to "test"). Workaround is similar to that for new project new wsdl, i.e. restart the server first before creating the client.
Comment 1 Eric Peters CLA 2008-03-14 11:10:11 EDT
This should be a severity P2.
Comment 2 Angel Vera CLA 2008-03-14 16:03:48 EDT
This is the same behaviour that WTP had exposed last week. I don't think this is cause of the problem in bug 222681
Comment 3 Kathy Chan CLA 2008-03-14 17:43:54 EDT
We only use the problem with Run on Server on WSDL file as an illustration of the problem we run into in the Web services wizard with this week's driver.  I think the problem might be intermitten and that's why we sometimes have the problem and sometimes not.  If you are seeing the problem with last week's driver as well, it might be a different problem than what we are noticing with this week's Web service wizard.

The problem we are most interested to get fix is bug 222681.  If we just create a Web service client on a Web project that has not been added to a Tomcat server, click Finish, the StartServerCommand is calling shouldRestart and getting "true" back.  We then call,

server.synchronousRestart(ILaunchManager.RUN_MODE, monitor)

However, even after this call returns and the status is OK, the server was not restarted properly (as can be seen in the server status).  Subsequently we run into problem with Web service sample JSP generation as documented in bug 222681.  If the user then manually restart the server and go through the Web service client scenario again, then the scenario would be fine.
Comment 4 Kathy Chan CLA 2008-03-14 17:45:29 EDT
*** Bug 222681 has been marked as a duplicate of this bug. ***
Comment 5 Kathy Chan CLA 2008-03-14 20:09:14 EDT
We were able to isolate the actual cause of bug 222681 to a change in ResourceSetWorkbenchEditSynchronizer in the org.eclipse.wst.common.emfworkbench.integration plugin.  The fact that restarting the server manually seems to solve the problem could be because that action triggers certain resource synchronization which would otherwise not take place.

I tried reverting org.eclipse.wst.common.emfworkbench.integration and org.eclipse.wst.xml.core to the version in last week's driver (03/06) and the problem with server tooling status showing incorrectly as "restart" status is not there anymore.

So we are just using this defect to track the problem with Run on Server does not restart the server properly when ROS is selected on a WSDL file.

Lowering severity.