Home » Language IDEs » ServerTools (WTP) » Tomcat publishing "forgets" files in WEB-INF
Tomcat publishing "forgets" files in WEB-INF [message #174772] |
Tue, 18 July 2006 17:08 |
Eclipse User |
|
|
|
Originally posted by: simon.niederberger.want.ch
I have a web project which I deploy to a Tomcat runtime. Every now and then
(it seems truely random), the publishing process will not copy the files in
WEB-INF to the
workspace\.metadata\.plugins\org.eclipse.wst.server.core\... \WEB-INF
directory, thus invalidating the project. Once this happens, I've found it
near to impossible to get the project running again.
I've tried removing and adding the project. I've delete the Tomcat server
configuration and added it again. I've deleted the contents of the
org.eclipse.wst.server.core directory. I've done all this with restarting
Eclipse in between steps. I've done all this with rebooting my PC between
steps. To no avail; the WEB-INF remains corrupt.
Eclipse Version 3.1.2 (M20060118-1600)
Tomcat 5.5
Windows XP SP2
Can someone give me a hint on how:
1) Eclipse defines which files to publish to the workspace Tomcat
installation
2) Find out what is corrupting my project
This doesn't happen often, maybe once every 3-4 days, but when it does, it
takes me 1-2h do get the project running again. And I haven't figured out
the required steps, "all of a sudden", it works.
(Feeling like a real dork, talking abount "random" and "all of a sudden"
.....)
Thanks
Simon
|
|
| |
Re: Tomcat publishing "forgets" files in WEB-INF [message #174795 is a reply to message #174772] |
Tue, 18 July 2006 17:59 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
I'll see if I can help. Here is a little of the story about what is
supposed to be going on.
1. The ".component" file in your project defines what should be included
in the published web application. I can't tell if your problem is
coming from something being wrong in this file.
2. When a project is published to a Tomcat server, information about
what is copied and their timestamps is cached so unmodified files aren't
copied over and over. This is found in the "publish/publish?.xml" file
under the "org.eclipse.wst.server.core" directory. If timestamps got
out of whack, some files might not get copied. However, deleting the
"org.eclipse.wst.server.core" directory should have corrected the
problem if this were the issue in your case.
Can you give some examples of exactly what files weren't being copied?
Next time it happens, save a backup copy of your workspace and we can
try to determine what is amiss.
Cheers,
Larry
Simon Niederberger wrote:
> I have a web project which I deploy to a Tomcat runtime. Every now and then
> (it seems truely random), the publishing process will not copy the files in
> WEB-INF to the
> workspace\.metadata\.plugins\org.eclipse.wst.server.core\... \WEB-INF
> directory, thus invalidating the project. Once this happens, I've found it
> near to impossible to get the project running again.
>
> I've tried removing and adding the project. I've delete the Tomcat server
> configuration and added it again. I've deleted the contents of the
> org.eclipse.wst.server.core directory. I've done all this with restarting
> Eclipse in between steps. I've done all this with rebooting my PC between
> steps. To no avail; the WEB-INF remains corrupt.
>
> Eclipse Version 3.1.2 (M20060118-1600)
> Tomcat 5.5
> Windows XP SP2
>
> Can someone give me a hint on how:
>
> 1) Eclipse defines which files to publish to the workspace Tomcat
> installation
> 2) Find out what is corrupting my project
>
> This doesn't happen often, maybe once every 3-4 days, but when it does, it
> takes me 1-2h do get the project running again. And I haven't figured out
> the required steps, "all of a sudden", it works.
>
> (Feeling like a real dork, talking abount "random" and "all of a sudden"
> ....)
> Thanks
> Simon
>
>
>
|
|
|
Re: Tomcat publishing "forgets" files in WEB-INF [message #174844 is a reply to message #174795] |
Wed, 19 July 2006 07:01 |
Eclipse User |
|
|
|
Originally posted by: simon.niederberger.want.ch
Hi Larry
Exactly what I needed!!! Thank you very much for the explanation, next time
I'll look into the mentioned files and give you an update of what's wrong.
btw: i'm using WTP 1.0.1
Thanks a lot
simon
"Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
news:e9j7id$eog$1@utils.eclipse.org...
> I'll see if I can help. Here is a little of the story about what is
> supposed to be going on.
>
> 1. The ".component" file in your project defines what should be included
> in the published web application. I can't tell if your problem is coming
> from something being wrong in this file.
>
> 2. When a project is published to a Tomcat server, information about what
> is copied and their timestamps is cached so unmodified files aren't copied
> over and over. This is found in the "publish/publish?.xml" file under the
> "org.eclipse.wst.server.core" directory. If timestamps got out of whack,
> some files might not get copied. However, deleting the
> "org.eclipse.wst.server.core" directory should have corrected the problem
> if this were the issue in your case.
>
> Can you give some examples of exactly what files weren't being copied?
> Next time it happens, save a backup copy of your workspace and we can try
> to determine what is amiss.
>
> Cheers,
> Larry
>
> Simon Niederberger wrote:
>> I have a web project which I deploy to a Tomcat runtime. Every now and
>> then (it seems truely random), the publishing process will not copy the
>> files in WEB-INF to the
>> workspace\.metadata\.plugins\org.eclipse.wst.server.core\... \WEB-INF
>> directory, thus invalidating the project. Once this happens, I've found
>> it near to impossible to get the project running again.
>>
>> I've tried removing and adding the project. I've delete the Tomcat server
>> configuration and added it again. I've deleted the contents of the
>> org.eclipse.wst.server.core directory. I've done all this with restarting
>> Eclipse in between steps. I've done all this with rebooting my PC between
>> steps. To no avail; the WEB-INF remains corrupt.
>>
>> Eclipse Version 3.1.2 (M20060118-1600)
>> Tomcat 5.5
>> Windows XP SP2
>>
>> Can someone give me a hint on how:
>>
>> 1) Eclipse defines which files to publish to the workspace Tomcat
>> installation
>> 2) Find out what is corrupting my project
>>
>> This doesn't happen often, maybe once every 3-4 days, but when it does,
>> it takes me 1-2h do get the project running again. And I haven't figured
>> out the required steps, "all of a sudden", it works.
>>
>> (Feeling like a real dork, talking abount "random" and "all of a sudden"
>> ....)
>> Thanks
>> Simon
>>
>>
|
|
|
Re: Tomcat publishing "forgets" files in WEB-INF [message #174851 is a reply to message #174795] |
Wed, 19 July 2006 07:45 |
Eclipse User |
|
|
|
Originally posted by: simon.niederberger.want.ch
Had the problem again this morning. Comparing the .component file to one of
a working project, the only difference I found is this:
<wb-resource deploy-path="/WEB-INF/classes" source-path="/or_mappings"/>
I had Hibernate3 support enabled and am now thinking if the O/R mapping
deployment directive overwrote my classes directory. Removing it pretty much
fixed everything, except the my .properties files (in the classpath) were
not published. I fixed that by adding an explicit wb-resource entry.
Thanks again
Simon
"Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
news:e9j7id$eog$1@utils.eclipse.org...
> I'll see if I can help. Here is a little of the story about what is
> supposed to be going on.
>
> 1. The ".component" file in your project defines what should be included
> in the published web application. I can't tell if your problem is coming
> from something being wrong in this file.
>
> 2. When a project is published to a Tomcat server, information about what
> is copied and their timestamps is cached so unmodified files aren't copied
> over and over. This is found in the "publish/publish?.xml" file under the
> "org.eclipse.wst.server.core" directory. If timestamps got out of whack,
> some files might not get copied. However, deleting the
> "org.eclipse.wst.server.core" directory should have corrected the problem
> if this were the issue in your case.
>
> Can you give some examples of exactly what files weren't being copied?
> Next time it happens, save a backup copy of your workspace and we can try
> to determine what is amiss.
>
> Cheers,
> Larry
>
> Simon Niederberger wrote:
>> I have a web project which I deploy to a Tomcat runtime. Every now and
>> then (it seems truely random), the publishing process will not copy the
>> files in WEB-INF to the
>> workspace\.metadata\.plugins\org.eclipse.wst.server.core\... \WEB-INF
>> directory, thus invalidating the project. Once this happens, I've found
>> it near to impossible to get the project running again.
>>
>> I've tried removing and adding the project. I've delete the Tomcat server
>> configuration and added it again. I've deleted the contents of the
>> org.eclipse.wst.server.core directory. I've done all this with restarting
>> Eclipse in between steps. I've done all this with rebooting my PC between
>> steps. To no avail; the WEB-INF remains corrupt.
>>
>> Eclipse Version 3.1.2 (M20060118-1600)
>> Tomcat 5.5
>> Windows XP SP2
>>
>> Can someone give me a hint on how:
>>
>> 1) Eclipse defines which files to publish to the workspace Tomcat
>> installation
>> 2) Find out what is corrupting my project
>>
>> This doesn't happen often, maybe once every 3-4 days, but when it does,
>> it takes me 1-2h do get the project running again. And I haven't figured
>> out the required steps, "all of a sudden", it works.
>>
>> (Feeling like a real dork, talking abount "random" and "all of a sudden"
>> ....)
>> Thanks
>> Simon
>>
>>
|
|
|
Goto Forum:
Current Time: Fri Sep 20 20:50:57 GMT 2024
Powered by FUDForum. Page generated in 0.04288 seconds
|