Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Publish fail on new Unbuntu/Eclpse/Tomcat install(Error during publish Error copying file xxxx.html: No such file or directory)
Publish fail on new Unbuntu/Eclpse/Tomcat install [message #1091430] Wed, 21 August 2013 13:41 Go to next message
Eric Meredith is currently offline Eric Meredith
Messages: 2
Registered: August 2013
Junior Member
I am posting here are my newness to the environment probably trumps everything else.

I've used Eclipse for many year, but usually in an environment established by someone else. I'm pretty sure my question is related to "where things go" rather than bugs or failures.

I am using Ubuntu 12.04 LTS, Eclipse Java EE IDE for Web Developers (Kepler Release), and Tomcat 7.

I created a very simple Static web project and a Server, but guessed that the publish folder should be /var/lib/tomcat7/webapps/ROOT

Publishing my simple static web project results in:

Error during publish
Error copying file NewFile.html: No such file or directory
Error copying file full-width.html: No such file or directory
Error copying file images/black_file.gif: No such file or directory
Error copying file images/demo/240x90.gif: No such file or directory

etc. etc..

Is this a permissions thing? A location thing? (It is most certainly a novice thing)

Any guidance would be appreciated.
Re: Publish fail on new Unbuntu/Eclpse/Tomcat install [message #1091672 is a reply to message #1091430] Wed, 21 August 2013 20:59 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2310
Registered: July 2009
Senior Member
I'd guess it's a permission thing, but aside from that, you really shouldn't publish to your production installation if possible.

---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: Publish fail on new Unbuntu/Eclpse/Tomcat install [message #1091678 is a reply to message #1091672] Wed, 21 August 2013 21:06 Go to previous messageGo to next message
Eric Meredith is currently offline Eric Meredith
Messages: 2
Registered: August 2013
Junior Member
Fair enough...

In this case, the path I specified (/var/lib/tomcat7/webapps/ROOT) is on my local machine, which used for development.

Maybe the question is ... Where should I publish

Re: Publish fail on new Unbuntu/Eclpse/Tomcat install [message #1091719 is a reply to message #1091678] Wed, 21 August 2013 22:17 Go to previous message
Russell Bateman is currently offline Russell Bateman
Messages: 3225
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 8/21/2013 3:06 PM, Eric Meredith wrote:
> Fair enough...
> In this case, the path I specified (/var/lib/tomcat7/webapps/ROOT) is on
> my local machine, which used for development.
>
> Maybe the question is ... Where should I publish

This is really a question for the Eclipse web tools forum, but I'll butt
in if I can help.

There are a couple of answers to your question. I'll try to be thorough
without resorting to an entire thesis.

1. You can wire in a Tomcat for Eclipse to use in an intimate way via
Window -> Preferences -> Server -> Runtime Environments -> Add... then
navigate to the top of your Tomcat 7 download. Then, in the Project
Explorer, add a new Server, selecting the Tomcat you wired in. Eclipse
publishes to a this path in your workspace:

<workspace>/.metadata/.plugins/org.eclipse.wst.server.core/tmpN

where N is usually 0 unless you're doing this with multiple Tomcat versions.

In that subdirectory, you'll see webapps and wtpwebapps. At least in a
Dynamic Web Project (I have no experience with static web projects),
it's the second subdirectory where I find exactly what I'd expect to see
once I deployed my WAR file to a production installation of Tomcat
(/var/lib/tomcat7/webapps), namely, my application.

It's easy this way also to make your Eclipse Tomcat work on a different
port number so that anything that's running on your "real" Tomcat
remains undisturbed. Just double-click the server in the Server view to
change that.

This is how I do it, WTP has made it easy. I see it as a sort of default
WTP way. However, I've had colleagues who have...

2. ...wired up Eclipse to publish to local downloads of Tomcat on paths
like, /home/russ/dev/apache-tomcat-6.0.37, and so Eclipse publishes the
web application to /home/user/dev/apache-tomcat-6.0.37/webapps. Etc.
I've not done this, but I'm sure there's doc somewhere on it and, of
course, Nitin knows (he's one of the WTP developers).

As for rigging Eclipse to...

3. ...publish to /var/lib/tomcat7/webapps (what you've asked for), I'm
even less sure how to do that. I find the first method, besides just
being the one I first learned, to be a simpler approach.

There are great tutorials on #1 above at
http://www.vogella.de
(short and sweet)
and
http://www.javahotchocolate.com/wtp-tutorials/wtp-tutorial.html
(old, but very thorough)
and all over the place--just Google.

Hope this helps. If not, Nitin is the expert.

Cheers.
Previous Topic:Can Eclipse cause Samsung Warranty to become void
Next Topic:Multiple configurations
Goto Forum:
  


Current Time: Sat Oct 25 21:17:20 GMT 2014

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

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