Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Import web site into eclipse
Import web site into eclipse [message #217651] Tue, 15 July 2008 21:19 Go to next message
John J. Barton is currently offline John J. Barton
Messages: 311
Registered: July 2009
Senior Member
I am using eclipse 3.4 JEE. I have existing web sites that I want to
use in Eclipse. I can't figure out how to succeed. Any hints?

If I create a static web project, but set the web content folder to
blank (to prevent it from writing on my site), the project is created
but it does not allow Run On Server. I don't think its a real JEE static
web project.

I looked at Import File System, but this is a thing that wants to copy
files (I already have them where I want them).

I know that eclipse itself does not care, I have in the past added and
deleted project natures on projects. Its just that the current UI does
not support it.

John.
Re: Import web site into eclipse [message #217659 is a reply to message #217651] Tue, 15 July 2008 23:08 Go to previous messageGo to next message
John J. Barton is currently offline John J. Barton
Messages: 311
Registered: July 2009
Senior Member
John J Barton wrote:
> I am using eclipse 3.4 JEE. I have existing web sites that I want to
> use in Eclipse. I can't figure out how to succeed. Any hints?
>
> If I create a static web project, but set the web content folder to
> blank (to prevent it from writing on my site), the project is created
> but it does not allow Run On Server. I don't think its a real JEE static
> web project.
>
> I looked at Import File System, but this is a thing that wants to copy
> files (I already have them where I want them).
>
> I know that eclipse itself does not care, I have in the past added and
> deleted project natures on projects. Its just that the current UI does
> not support it.
>
> John.

More confusing info: I can get my project listed under Servers > HTTP
Preview, but when I try Run On Server on my index.html I get "The
selection did not contain any resources that can run on a server". Which
is silly.

John.
Re: Import web site into eclipse [message #217665 is a reply to message #217659] Tue, 15 July 2008 23:24 Go to previous message
John J. Barton is currently offline John J. Barton
Messages: 311
Registered: July 2009
Senior Member
John J Barton wrote:
> John J Barton wrote:
>> I am using eclipse 3.4 JEE. I have existing web sites that I want to
>> use in Eclipse. I can't figure out how to succeed. Any hints?
>>
>> If I create a static web project, but set the web content folder to
>> blank (to prevent it from writing on my site), the project is created
>> but it does not allow Run On Server. I don't think its a real JEE
>> static web project.
>>
>> I looked at Import File System, but this is a thing that wants to copy
>> files (I already have them where I want them).
>>
>> I know that eclipse itself does not care, I have in the past added and
>> deleted project natures on projects. Its just that the current UI does
>> not support it.
>>
>> John.
>
> More confusing info: I can get my project listed under Servers > HTTP
> Preview, but when I try Run On Server on my index.html I get "The
> selection did not contain any resources that can run on a server". Which
> is silly.

Tracing through the source I found ModuleArtifactAdapter which I think
means WorkspaceResourceToServerResourceAdapter. Google on that lead to:

http://www.eclipse.org/webtools/wst/components/server/runOnS erver.html

where we learn
If the object cannot be adapted, an error message will be displayed
(this should never happen unless an external plugin provides enablement
but not adapting for an object).

Wish I had a nickel for every thing that should never happen but does...
Previous Topic:WS-Addressing
Next Topic:Programmaticlly call XML Formatter
Goto Forum:
  


Current Time: Wed Sep 24 00:42:24 GMT 2014

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

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