|
|
Re: "file not found" while publishing on HTTP-Server [message #550488 is a reply to message #550460] |
Fri, 30 July 2010 14:10 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
On 7/30/2010 9:05 AM, Nicolas Vahlas wrote:
> Hi,
>
> I have the same problem as you and after much searching it seems that
> the problem is related to the fact that your home directory and the
> /var/www directory are located on different partitions.
>
> The workaround that I found was:
> 1) Configure the "Publishing Directory" of the HTTP Server to point to a
> directory on the same partition
> 2) Configure the Apache HTTP Server to serve from that location
>
> This worked for me, I hope that it will help you somehow.
>
> However, the root of the problem is still there and I haven't found the
> reason why eclipse manages to write in the publishing directory only if
> it is located in the same partition.
>
> Nicolas
The file copying support in the server tooling writes to a temp folder
first and then moves the file to the desired destination. If the temp
folder and the destination are on different partitions, the move fails,
i.e. https://bugs.eclipse.org/bugs/show_bug.cgi?id=272525 Prior to WTP
3.1.2, the temp folder would be under the ".metadata" folder of your
Eclipse workspace folder. Here it would be easy for the destination to
be on a separate partition. Starting with WTP 3.1.2 (i.e. the fix for
Bug 272525), WTP tries to create a "temp" folder as a sibling of the
"Publish Directory" to avoid this issue. This is likely to avoid the
move issue, but assumes the user running Eclipse has permission to
create such a directory. I'm not sure of the likely this would cause a
problem.
Cheers,
Larry
|
|
|
|
|
|
|
|
|
|
Re: "file not found" while publishing on HTTP-Server [message #704287 is a reply to message #704159] |
Thu, 28 July 2011 13:11 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
On 7/28/2011 6:41 AM, Lu wrote:
> Thank you Larry, that was the problem. Once I changed the publishing
> directory to "/usr/local/tomcat/webapps" it all went well.
>
> There was no default web server configured at Eclipse when I installed
> it, I had to configure one myself following a guide somewhere on the
> web. I still have to figure how to point it to the 8080 port, but that's
> just a detail.
>
> Thank you once more.
When you mentioned Tomcat, I assumed you were creating a Tomcat server.
Your solution suggests I'm not correct about this. If I now assume
correctly that this is an HTTP Server, then if you double click on the
server in the Servers view, it will open up the server editor for this
server. In that server editor you will see where to specify the port.
Feel free read the WTP Tomcat FAQ[1] for details about the Tomcat
support. By default, it will create a separate instance of Tomcat which
will not impact your installed Tomcat, provided you alter the Tomcat
server in Eclipse to use different ports (use the server editor).
This would give you a Tomcat that is more easily controlled from within
Eclipse, should you find that useful.
Cheers,
Larry
[1] http://wiki.eclipse.org/WTP_Tomcat_FAQ
|
|
|
|
Powered by
FUDForum. Page generated in 0.04447 seconds