Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » files not getting published
files not getting published [message #197584] Mon, 30 July 2007 14:01 Go to next message
Noel Bush is currently offline Noel Bush
Messages: 38
Registered: July 2009
Member
I am pulling my hair out with a WTP project that suddenly seems to
refuse to publish several files. Specifically, any files in my
src/main/java folder (which is specified as part of the Build Path) --
*except* for hibernate.cfg.xml -- do not get copied to WEB-INF/classes.

My org.eclipse.wst.common.components file has this line:

<wb-resource deploy-path="/WEB-INF/classes"
source-path="/src/main/java"/>

So shouldn't that mean that *all* files under /src/main/java get copied
to /WEB-INF/classes, period, end of story?

I have tried deleting and recreating the server configuration. I have
tried replacing my entire Eclipse install -- downloaded Europa fresh and
installed updates and WTP. Still the same behavior.

What can I do? This has brought my work to a grinding halt.....

Thanks,
Noel
Re: files not getting published [message #197601 is a reply to message #197584] Mon, 30 July 2007 14:32 Go to previous messageGo to next message
Angel Vera is currently offline Angel Vera
Messages: 63
Registered: July 2009
Member

Noel Bush <noel@aitools.org> wrote in news:f8l92l$fqc$1@build.eclipse.org:

> ht my work to a grindin

What aserver adapter are you trying to use in what platform..? As I
mentioned in a different post, there is known problem for Tomcat 5.5

https://bugs.eclipse.org/bugs/show_bug.cgi?id=107386


Regards,
--
Angel Vera
WTP Server Tools Developer
Re: files not getting published [message #197609 is a reply to message #197601] Mon, 30 July 2007 14:55 Go to previous messageGo to next message
Noel Bush is currently offline Noel Bush
Messages: 38
Registered: July 2009
Member
Angel Vera wrote on 07/30/2007 02:32 PM:
> Noel Bush <noel@aitools.org> wrote in news:f8l92l$fqc$1@build.eclipse.org:
>
>> ht my work to a grindin
>
> What aserver adapter are you trying to use in what platform..? As I
> mentioned in a different post, there is known problem for Tomcat 5.5
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=107386

Yes, I'm using Tomcat 5.5. Does this mean I'm out of luck? Are there
any workarounds? I can't find anything in the bug you link to that
describes the problem I'm encountering.

Thanks.....
Re: files not getting published [message #197618 is a reply to message #197609] Mon, 30 July 2007 15:17 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1299
Registered: July 2009
Senior Member
I think the bug is for a different problem. What is the output folder
for the Java classes in src/main/java and is this the only source
folder? Do you know how this Java source folder came about since you
normally get "src" as the default Java source folder for Dynamic Web
Projects?

Cheers,
Larry

Noel Bush wrote:
> Angel Vera wrote on 07/30/2007 02:32 PM:
>> Noel Bush <noel@aitools.org> wrote in
>> news:f8l92l$fqc$1@build.eclipse.org:
>>
>>> ht my work to a grindin
>>
>> What aserver adapter are you trying to use in what platform..? As I
>> mentioned in a different post, there is known problem for Tomcat 5.5
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=107386
>
> Yes, I'm using Tomcat 5.5. Does this mean I'm out of luck? Are there
> any workarounds? I can't find anything in the bug you link to that
> describes the problem I'm encountering.
>
> Thanks.....
Re: files not getting published [message #197626 is a reply to message #197618] Mon, 30 July 2007 15:22 Go to previous messageGo to next message
Noel Bush is currently offline Noel Bush
Messages: 38
Registered: July 2009
Member
Thanks for your replies. The output folder for src/main/java. It is
not the only source folder -- there is one other. I changed both of
these and all seemed to be working well until just today. Earlier today
I found a problem where class files weren't getting updated properly.
So I tried re-creating the project, and that's where the trouble started.

But I have also tried creating a brand new "Dynamic Web Project" and
putting a file (log4j.properties, for example) into the default src
folder. It, too, does not get published.

Noel

Larry Isaacs wrote on 07/30/2007 03:17 PM:
> I think the bug is for a different problem. What is the output folder
> for the Java classes in src/main/java and is this the only source
> folder? Do you know how this Java source folder came about since you
> normally get "src" as the default Java source folder for Dynamic Web
> Projects?
>
> Cheers,
> Larry
>
> Noel Bush wrote:
>> Angel Vera wrote on 07/30/2007 02:32 PM:
>>> Noel Bush <noel@aitools.org> wrote in
>>> news:f8l92l$fqc$1@build.eclipse.org:
>>>
>>>> ht my work to a grindin
>>>
>>> What aserver adapter are you trying to use in what platform..? As I
>>> mentioned in a different post, there is known problem for Tomcat 5.5
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=107386
>>
>> Yes, I'm using Tomcat 5.5. Does this mean I'm out of luck? Are there
>> any workarounds? I can't find anything in the bug you link to that
>> describes the problem I'm encountering.
>>
>> Thanks.....
Re: files not getting published [message #197644 is a reply to message #197626] Mon, 30 July 2007 15:27 Go to previous messageGo to next message
Noel Bush is currently offline Noel Bush
Messages: 38
Registered: July 2009
Member
Update -- I seem to have recovered the expected/desired behavior. But
in order to do this, I had to completely wipe out my workspace *and* the
project (after having already re-installed Eclipse). Now, suddenly, the
right files are getting copied into place.

Is there some hidden place where some of this behavior is configured?
See, I had to edit the .settings/org.eclipse.wst.common.component file
in order to customize how some files get copied. Maybe that's what
threw things off? But if so, what would be the *right* way for me to
find that out, and to find out what was wrong?

Thanks,
Noel

Noel Bush wrote on 07/30/2007 03:22 PM:
> Thanks for your replies. The output folder for src/main/java. It is
> not the only source folder -- there is one other. I changed both of
> these and all seemed to be working well until just today. Earlier today
> I found a problem where class files weren't getting updated properly. So
> I tried re-creating the project, and that's where the trouble started.
>
> But I have also tried creating a brand new "Dynamic Web Project" and
> putting a file (log4j.properties, for example) into the default src
> folder. It, too, does not get published.
>
> Noel
>
> Larry Isaacs wrote on 07/30/2007 03:17 PM:
>> I think the bug is for a different problem. What is the output folder
>> for the Java classes in src/main/java and is this the only source
>> folder? Do you know how this Java source folder came about since you
>> normally get "src" as the default Java source folder for Dynamic Web
>> Projects?
>>
>> Cheers,
>> Larry
>>
>> Noel Bush wrote:
>>> Angel Vera wrote on 07/30/2007 02:32 PM:
>>>> Noel Bush <noel@aitools.org> wrote in
>>>> news:f8l92l$fqc$1@build.eclipse.org:
>>>>
>>>>> ht my work to a grindin
>>>>
>>>> What aserver adapter are you trying to use in what platform..? As I
>>>> mentioned in a different post, there is known problem for Tomcat 5.5
>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=107386
>>>
>>> Yes, I'm using Tomcat 5.5. Does this mean I'm out of luck? Are
>>> there any workarounds? I can't find anything in the bug you link to
>>> that describes the problem I'm encountering.
>>>
>>> Thanks.....
Re: files not getting published [message #197659 is a reply to message #197644] Mon, 30 July 2007 16:24 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1299
Registered: July 2009
Senior Member
There is some publish info that is cached so that multiple publishes
don't publish unchanged files over and over. To clear this cached
information, the easiest way is to remove the project, publish the
server, and then re-add the project to the server. If you only delete
the published files on the server, they won't automatically reappear
without this.

Cheers,
Larry

Noel Bush wrote:
> Update -- I seem to have recovered the expected/desired behavior. But
> in order to do this, I had to completely wipe out my workspace *and* the
> project (after having already re-installed Eclipse). Now, suddenly, the
> right files are getting copied into place.
>
> Is there some hidden place where some of this behavior is configured?
> See, I had to edit the .settings/org.eclipse.wst.common.component file
> in order to customize how some files get copied. Maybe that's what
> threw things off? But if so, what would be the *right* way for me to
> find that out, and to find out what was wrong?
>
> Thanks,
> Noel
>
> Noel Bush wrote on 07/30/2007 03:22 PM:
>> Thanks for your replies. The output folder for src/main/java. It is
>> not the only source folder -- there is one other. I changed both of
>> these and all seemed to be working well until just today. Earlier
>> today I found a problem where class files weren't getting updated
>> properly. So I tried re-creating the project, and that's where the
>> trouble started.
>>
>> But I have also tried creating a brand new "Dynamic Web Project" and
>> putting a file (log4j.properties, for example) into the default src
>> folder. It, too, does not get published.
>>
>> Noel
>>
>> Larry Isaacs wrote on 07/30/2007 03:17 PM:
>>> I think the bug is for a different problem. What is the output
>>> folder for the Java classes in src/main/java and is this the only
>>> source folder? Do you know how this Java source folder came about
>>> since you normally get "src" as the default Java source folder for
>>> Dynamic Web Projects?
>>>
>>> Cheers,
>>> Larry
>>>
>>> Noel Bush wrote:
>>>> Angel Vera wrote on 07/30/2007 02:32 PM:
>>>>> Noel Bush <noel@aitools.org> wrote in
>>>>> news:f8l92l$fqc$1@build.eclipse.org:
>>>>>
>>>>>> ht my work to a grindin
>>>>>
>>>>> What aserver adapter are you trying to use in what platform..? As I
>>>>> mentioned in a different post, there is known problem for Tomcat 5.5
>>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=107386
>>>>
>>>> Yes, I'm using Tomcat 5.5. Does this mean I'm out of luck? Are
>>>> there any workarounds? I can't find anything in the bug you link to
>>>> that describes the problem I'm encountering.
>>>>
>>>> Thanks.....
Previous Topic:Servlet creation problem
Next Topic:beginer: converting non-web project into web project
Goto Forum:
  


Current Time: Tue Jul 29 09:04:08 EDT 2014

Powered by FUDForum. Page generated in 0.01931 seconds