Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Synchronized, but not Published
Synchronized, but not Published [message #1724104] Sat, 20 February 2016 23:17 Go to next message
Brian Smither is currently offline Brian SmitherFriend
Messages: 13
Registered: February 2016
Location: Rocky Mountains, USA
Junior Member
Here is what I did:
1. Created a Project from a tutorial.
2. Run As, Run on Server
3. Select Tomcat 7 at localhost (Located at H:\Tomcat)
4. Server started and synchronized
5. Project synchronized
6. Project runs
7. Stop the Server
8. Delete the Project folder from H:/Tomcat/webapps/

See steps 2-5

9. Tomcat running project says Resource not Found (localhost:8080 gives Welcome Page)
7. Look in the folder H:/Tomcat/webapps/ where I expect to see Project folder.

Not there.

Where/why did Eclipse say synchronized but the webapps/Project is clearly not there?

Re: Synchronized, but not Published [message #1724106 is a reply to message #1724104] Sat, 20 February 2016 23:53 Go to previous messageGo to next message
Brian Smither is currently offline Brian SmitherFriend
Messages: 13
Registered: February 2016
Location: Rocky Mountains, USA
Junior Member
It seems every time I delete a server and and re-add Tomcat, a new /tmp#/ folder is created. That means (apparently) I need to re-do all the server properties and (apparently) re-copy ROOT to a .metadata/.plugins folder.

So, in Server Overview, I choose "Use Tomcat Installation", "Automatically publish after a build event", and maybe something else.

The folder appears, but still "Resource not found". I stop the server and then Debug As, on Server. I do not find any clue what is missing on the Debug tab, but the Console says:
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'tutorialproject' did not find a matching property.
Re: Synchronized, but not Published [message #1724633 is a reply to message #1724106] Thu, 25 February 2016 01:39 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 2/20/2016 6:53 PM, Brian Smither wrote:
> It seems every time I delete a server and and re-add Tomcat, a new
> /tmp#/ folder is created. That means (apparently) I need to re-do all
> the server properties and (apparently) re-copy ROOT to a
> .metadata/.plugins folder.
>
> So, in Server Overview, I choose "Use Tomcat Installation",
> "Automatically publish after a build event", and maybe something else.
>
> The folder appears, but still "Resource not found". I stop the server
> and then Debug As, on Server. I do not find any clue what is missing on
> the Debug tab, but the Console says:
> WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
> property 'source' to 'tutorialproject' did not find a matching property.
>

Now I see you did indeed download a Tomcat 8 version.

For details about the WTP Tomcat support, see the WTP Tomcat FAQ[1].
It's old, but still applies to how the Tomcat support works and in some
cases explains why. Hopefully, it will help clear up what is going on.

As for the WARNING, it may be ignored. It is indicating that the
"source" attribute doesn't have an equivalent field in the Context
object in Tomcat. This is expected. The WTP Tomcat support adds this
extra "source" attribute solely to track which project in Eclipse
corresponds to this Context.

Cheers,
Larry


[1] http://wiki.eclipse.org/WTP_Tomcat_FAQ
Previous Topic:Impossible to create Web Service Client from WSDL?
Next Topic:how to change some placeholders while compile time of eclipse
Goto Forum:
  


Current Time: Sat Jun 23 05:06:37 GMT 2018

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

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

Back to the top