|Dynamic Web Project - Old files on Tomcat Server [message #650983]
||Thu, 27 January 2011 06:31
| No real name
Registered: January 2011
I´ve got a problem with my dynamic web project in Eclipse. I wrote some JSPs and run them on a Tomcat Server with Eclipse. Unfortunately for some reason, Eclipse shows me an old version of my JSP-File when I select "run on server" and not the newest one. Is there anything I can do to force an update of the file on the server (or perhaps a setting to get this done automatically)?
[Updated on: Thu, 27 January 2011 06:31]
Report message to a moderator
|Re: Dynamic Web Project - Old files on Tomcat Server [message #651122 is a reply to message #651116]
||Thu, 27 January 2011 16:20
| Larry Isaacs
Registered: July 2009
On 1/27/2011 3:28 PM, email@example.com wrote:|
> I had a look at the publishing section of the server you mentioned and
> the selected entry in my configuration is "Automatically publish when
> resources change". This sounds right to me, but as I said the server
> doesn't actually do it.
> For example I have a headline in my JSP which started from the left in
> the older version and now I've set it to the center of the page, but it
> always shows the previous version to me.
> I didn't change anything in the server settings and when I started with
> my project everything worked very well and the updates of my pages where
> automatically on my server when I started them and suddenly it was over
> with that comfort...
Next is to verify if the modified JSPs are being copied when publishing
occurs. By default, the "assembled" webapp will be published to a
folder under a
" .metadata\.plugins\org.eclipse.wst.server.core\tmp?\wtpwebap ps " folder
under your workspace (see the Tomcat FAQ for details). Is the copy
of the JSP(s) under there being updated with your changes?
If they are not being updated, try right-clicking on the server as
selecting "Clean...". This will force a "full", rather than "delta"
publish, and the JSP(s) should get updated. I'm not aware of a bug that
would cause resource changes to get lost an not mark a server as "dirty"
and in need of publishing, but that doesn't mean there isn't one.
If they are being updated, then there are some Tomcat settings that can
cause this behavior that we will have to investigate.
Powered by FUDForum
. Page generated in 0.03000 seconds