Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Problem with publishing: some items not published
Problem with publishing: some items not published [message #216938] Mon, 07 July 2008 15:33 Go to next message
Mohsen Saboorian is currently offline Mohsen SaboorianFriend
Messages: 19
Registered: July 2009
Junior Member
Hi,

From time to time, I have problems with publishing my application. When I
used Eclipse Java EE 3.3.1, it happened a lot. Now that I switch to Ganymede
3.4.0, I'm again facing with a similar problem.

I have a set of *.xml and *.properties files in the /src folder for my web
app project. Only .properties files are copied into
${catalina.base}/wtpwebapps/${proj.name}/WEB-INF/classes.

With previous versions (3.3.1), it happened that a classes folder was never
created under WEB-INF. I then removed the server fully, created it again,
and added my web-app to it (which usually solved the problem). This time
with Ganymede, this trick doesn't work.

Thanks in advance,
Mohsen.
Re: Problem with publishing: some items not published [message #216947 is a reply to message #216938] Mon, 07 July 2008 15:22 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Mohsen Saboorian wrote:
> Hi,
>
> From time to time, I have problems with publishing my application. When I
> used Eclipse Java EE 3.3.1, it happened a lot. Now that I switch to Ganymede
> 3.4.0, I'm again facing with a similar problem.
>
> I have a set of *.xml and *.properties files in the /src folder for my web
> app project. Only .properties files are copied into
> ${catalina.base}/wtpwebapps/${proj.name}/WEB-INF/classes.
>
> With previous versions (3.3.1), it happened that a classes folder was never
> created under WEB-INF. I then removed the server fully, created it again,
> and added my web-app to it (which usually solved the problem). This time
> with Ganymede, this trick doesn't work.
>
> Thanks in advance,
> Mohsen.
>
>

A simple test works for me. Are the XML files visible in the "src"
folder of your project in the Navigator view? If not, right-click the
"src" folder and select "Refresh". You might try this even if the files
are visible to see if it makes a difference. I'm not aware of any other
reason the XML files, or any non-Java file, would not be copied.

Cheers,
Larry
Re: Problem with publishing: some items not published [message #216955 is a reply to message #216947] Mon, 07 July 2008 19:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mohsen.siahe.com

----- Original Message -----
From: "Larry Isaacs" <Larry.Isaacs@sas.com>
Newsgroups: eclipse.webtools
Sent: Monday, July 07, 2008 6:52 PM
Subject: Re: Problem with publishing: some items not published


> Mohsen Saboorian wrote:
>> Hi,
>>
>> From time to time, I have problems with publishing my application. When I
>> used Eclipse Java EE 3.3.1, it happened a lot. Now that I switch to
>> Ganymede 3.4.0, I'm again facing with a similar problem.
>>
>> I have a set of *.xml and *.properties files in the /src folder for my
>> web app project. Only .properties files are copied into
>> ${catalina.base}/wtpwebapps/${proj.name}/WEB-INF/classes.
>>
>> With previous versions (3.3.1), it happened that a classes folder was
>> never created under WEB-INF. I then removed the server fully, created it
>> again, and added my web-app to it (which usually solved the problem).
>> This time with Ganymede, this trick doesn't work.
>>
>> Thanks in advance,
>> Mohsen.
>
> A simple test works for me. Are the XML files visible in the "src" folder
> of your project in the Navigator view? If not, right-click the "src"
> folder and select "Refresh". You might try this even if the files are
> visible to see if it makes a difference. I'm not aware of any other
> reason the XML files, or any non-Java file, would not be copied.
>
> Cheers,
> Larry

Larry,

It was also worked for me for a while until today (it was OK since I
switched to Ganymede, as it released). The only changes I can remember that
I did is installing TPTP, and launching a eclipse.exe -clean. There is
actually no problem with XML files. I even fully uninstalled TPTP in the
hope that this might be an inconsistency between the WTP and TPTP. All the
xml files are visible, and I also changed their modify/create time.

I fully removed wtpwebapps folder, and added a new server (trying both
tomcat 6.0.x and 5.5.x). Didn't you ever received a similar bug report? I
wasn't able to find anything related on mailing lists and this list.

Mohsen.
Re: Problem with publishing: some items not published [message #216963 is a reply to message #216955] Mon, 07 July 2008 19:03 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Mohsen Saboorian wrote:
> ----- Original Message -----
> From: "Larry Isaacs" <Larry.Isaacs@sas.com>
> Newsgroups: eclipse.webtools
> Sent: Monday, July 07, 2008 6:52 PM
> Subject: Re: Problem with publishing: some items not published
>
>
>> Mohsen Saboorian wrote:
>>> Hi,
>>>
>>> From time to time, I have problems with publishing my application. When I
>>> used Eclipse Java EE 3.3.1, it happened a lot. Now that I switch to
>>> Ganymede 3.4.0, I'm again facing with a similar problem.
>>>
>>> I have a set of *.xml and *.properties files in the /src folder for my
>>> web app project. Only .properties files are copied into
>>> ${catalina.base}/wtpwebapps/${proj.name}/WEB-INF/classes.
>>>
>>> With previous versions (3.3.1), it happened that a classes folder was
>>> never created under WEB-INF. I then removed the server fully, created it
>>> again, and added my web-app to it (which usually solved the problem).
>>> This time with Ganymede, this trick doesn't work.
>>>
>>> Thanks in advance,
>>> Mohsen.
>> A simple test works for me. Are the XML files visible in the "src" folder
>> of your project in the Navigator view? If not, right-click the "src"
>> folder and select "Refresh". You might try this even if the files are
>> visible to see if it makes a difference. I'm not aware of any other
>> reason the XML files, or any non-Java file, would not be copied.
>>
>> Cheers,
>> Larry
>
> Larry,
>
> It was also worked for me for a while until today (it was OK since I
> switched to Ganymede, as it released). The only changes I can remember that
> I did is installing TPTP, and launching a eclipse.exe -clean. There is
> actually no problem with XML files. I even fully uninstalled TPTP in the
> hope that this might be an inconsistency between the WTP and TPTP.

TPTP does transparently add some arguments to the server launch
configuration, but I'm not aware of any way that TPTP would affect the
publishing a server.

> All the
> xml files are visible, and I also changed their modify/create time.

How did you change the modify/create time? Was it in a way that is
"visible" to the Eclipse workspace. If so, the server State should
change to "Republish" after making such a change.

>
> I fully removed wtpwebapps folder, and added a new server (trying both
> tomcat 6.0.x and 5.5.x). Didn't you ever received a similar bug report? I
> wasn't able to find anything related on mailing lists and this list.
>
> Mohsen.
>
>

There have been various reports of files not publishing, but they tended
to disappear when attempts were made to diagnose them. The only
reliable cause that I know for this behavior is getting the Eclipse
workspace out of sync with the file system by modifying files outside of
Eclipse. Thus, I can deliberately cause this behavior. I have never
seen this happen otherwise. The "Refresh" command is the way to recover
and get the workspace back in sync.

The publishing operation caches information about what has been
previously published to avoid re-publishing files that haven't changed.
You can force a "full" publish by right-clicking the server in the
Servers view and executing the "Clean..." command. If something got
corrupted in this cached info, this should correct it.

Cheers,
Larry
Re: Problem with publishing: some items not published [message #216979 is a reply to message #216963] Mon, 07 July 2008 20:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mohsen.siahe.com

>>> Mohsen Saboorian wrote:
>>>> Hi,
>>>>
>>>> From time to time, I have problems with publishing my application. When
>>>> I used Eclipse Java EE 3.3.1, it happened a lot. Now that I switch to
>>>> Ganymede 3.4.0, I'm again facing with a similar problem.
>>>>
>>>> I have a set of *.xml and *.properties files in the /src folder for my
>>>> web app project. Only .properties files are copied into
>>>> ${catalina.base}/wtpwebapps/${proj.name}/WEB-INF/classes.
>>>>
>>>> With previous versions (3.3.1), it happened that a classes folder was
>>>> never created under WEB-INF. I then removed the server fully, created
>>>> it again, and added my web-app to it (which usually solved the
>>>> problem). This time with Ganymede, this trick doesn't work.
>>>>
>>>> Thanks in advance,
>>>> Mohsen.
>>> A simple test works for me. Are the XML files visible in the "src"
>>> folder of your project in the Navigator view? If not, right-click the
>>> "src" folder and select "Refresh". You might try this even if the files
>>> are visible to see if it makes a difference. I'm not aware of any other
>>> reason the XML files, or any non-Java file, would not be copied.
>>>
>>> Cheers,
>>> Larry
>>
>> Larry,
>>
>> It was also worked for me for a while until today (it was OK since I
>> switched to Ganymede, as it released). The only changes I can remember
>> that
>> I did is installing TPTP, and launching a eclipse.exe -clean. There is
>> actually no problem with XML files. I even fully uninstalled TPTP in the
>> hope that this might be an inconsistency between the WTP and TPTP.
>
> TPTP does transparently add some arguments to the server launch
> configuration, but I'm not aware of any way that TPTP would affect the
> publishing a server.

I'm sure that TPTP is not the root of my problem. I had the same issue when
I didn't install TPTP (with Eclipse 3.3.x + WTP 2.0).

>> All the
>> xml files are visible, and I also changed their modify/create time.

> How did you change the modify/create time?

I changed the create time by simply dupplicating existing file to a new one
(ctrl+c, ctrl+v on package explorer view), and changed modify date by
editing the XML inside eclipse.

> Was it in a way that is "visible" to the Eclipse workspace. If so, the
> server State should change to "Republish" after making such a change.
>
>>
>> I fully removed wtpwebapps folder, and added a new server (trying both
>> tomcat 6.0.x and 5.5.x). Didn't you ever received a similar bug report? I
>> wasn't able to find anything related on mailing lists and this list.
>>
>> Mohsen.
>>
>>
>
> There have been various reports of files not publishing, but they tended
> to disappear when attempts were made to diagnose them. The only reliable
> cause that I know for this behavior is getting the Eclipse workspace out
> of sync with the file system by modifying files outside of Eclipse. Thus,
> I can deliberately cause this behavior. I have never seen this happen
> otherwise. The "Refresh" command is the way to recover and get the
> workspace back in sync.


I remember in the past I got a "resource out of sync" error whenever server
publisher found a resource, which was either removed from file system, or
was changed, without a workspace refresh. This time I never get such an
error. Trust me, I'm pressing F5, right-clicking and pressing Refresh on the
project, and also did Project > Clean... (which then should also republish).

> The publishing operation caches information about what has been previously
> published to avoid re-publishing files that haven't changed. You can force
> a "full" publish by right-clicking the server in the Servers view and
> executing the "Clean..." command. If something got corrupted in this
> cached info, this should correct it.


I was an enthusiast user of WTP even before it's official 0.7.0 release ;),
so I tested every thing, cleaning, refreshing, and add/removing project, and
even fully removing and adding a new server.


Greetings,
Mohsen.
Re: Problem with publishing: some items not published [message #217025 is a reply to message #216979] Tue, 08 July 2008 04:53 Go to previous messageGo to next message
Mohsen Saboorian is currently offline Mohsen SaboorianFriend
Messages: 19
Registered: July 2009
Junior Member
Who filters .svn folders inside /src folder when publishing? I see no .svn
on WEB-INF/classes. Is this possible that .xml files are also filtered by
the same component who prevents .svn's from being published?

Mohsen.
Re: Problem with publishing: some items not published [message #217049 is a reply to message #216979] Tue, 08 July 2008 12:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mauro.molinari.cardinis.com

Hi Mohsen!
Are those XML files copied in the build/classes dir?

Are you using an Eclipse installation made by root under Linux, and
running Eclipse with a non-root user?

Try to modify the extension of these XML files from "xml" to "Xml" or
"XML" or such: are they published?

In the JDT newsgroup there's a discussion about this strange behaviour:
a co-worker of mine has experienced problems like this: the xml files
(and just them!) where not copied to the output folder whenever he
created or modified them.
We were not able to track down the source of the problem...

This never happened with Eclipse 3.3.

Mauro.
Re: Problem with publishing: some items not published [message #217079 is a reply to message #217049] Tue, 08 July 2008 17:52 Go to previous message
Eclipse UserFriend
Originally posted by: mohsen.siahe.com

Hi Mauro,
I'm happy to hear that someone else also had such an experience.

We are using Windows XP SP 2 + Ganymede on a 32-bit arch. The file extension
is actually simple lower case: .xml.

The only workaround I found today was to switched workspace. I then imported
the projects again and publishing problem resolved. Still, I hold my old
buggy workspace for investigating on the problem.

We have two Java projects, one (biz layer) has utility module facet, which
should create a jar file from the project, and the second is a web-app which
depends on the first (biz) project. This bug also affects the creation of
..jar file from my biz project, since the final jar file misses
META-INF/persistence.xml (again .xml extension).

I'll check build/classes soon and tell here the result.

Thanks,
Mohsen.

"Mauro Molinari" <mauro.molinari@cardinis.com> wrote in message
news:g4vl0p$hh8$1@build.eclipse.org...
> Hi Mohsen!
> Are those XML files copied in the build/classes dir?
>
> Are you using an Eclipse installation made by root under Linux, and
> running Eclipse with a non-root user?
>
> Try to modify the extension of these XML files from "xml" to "Xml" or
> "XML" or such: are they published?
>
> In the JDT newsgroup there's a discussion about this strange behaviour: a
> co-worker of mine has experienced problems like this: the xml files (and
> just them!) where not copied to the output folder whenever he created or
> modified them.
> We were not able to track down the source of the problem...
>
> This never happened with Eclipse 3.3.
>
> Mauro.
Previous Topic:was 6.1 plugin
Next Topic:JSDT and YUI crash
Goto Forum:
  


Current Time: Fri Apr 19 12:34:07 GMT 2024

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

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

Back to the top