Home » Language IDEs » ServerTools (WTP) » Eclipse 3.2 and WTP newbie with problem new project
Eclipse 3.2 and WTP newbie with problem new project [message #185873] |
Wed, 10 January 2007 09:37  |
Eclipse User |
|
|
|
Originally posted by: florentino.alex.gmail.com
Hi all,
I new in world of java for web and J2EE, in my job there is project fellow
structure :
[project]
->[WEB-INFO]
->-> [classes]
->->-> [files .java and .class]
[content web(jsp,html,images and js)]
this project is make editing jsp in dreamweaver and .java with editplus
and compiled by hand.
I want put this project in eclipse.
I make fellow steps:
Create new project [Dynamic Web Project] and in project contents(second
step) I put the root directory of my project.
and the window web module.
I put java source [WEB-INFO][classes] it ok
content directory I need set /(root directory) directory, because my
files(web content) are in root directory, but the eclipse not allowed.
any suggestion ?
thanks a lot !
|
|
|
Re: Eclipse 3.2 and WTP newbie with problem new project [message #185920 is a reply to message #185873] |
Wed, 10 January 2007 14:04   |
Eclipse User |
|
|
|
On the last page of the Dynamic Web Project wizard, you can specify a
Content Directory and a Java Source Directory. Import the files
comprising the "[content web(jsp,html,images and js)]" into the Content
Directory you specified (the default is WebContent). Import the files
comprising "[files .java and .class]" without the class files into the
Java Source Directory (the default is src).
After adding the project to a server, the server's "publish" operation
will assemble these files into the standard web application directory
structure and copy it to the server for running. The project directory
structure doesn't need to duplicate the directory structure of a web
application.
Cheers,
Larry
Alex wrote:
> Hi all,
>
> I new in world of java for web and J2EE, in my job there is project
> fellow structure :
>
> [project]
> ->[WEB-INFO]
> ->-> [classes]
> ->->-> [files .java and .class]
> [content web(jsp,html,images and js)]
>
> this project is make editing jsp in dreamweaver and .java with editplus
> and compiled by hand.
>
> I want put this project in eclipse.
>
> I make fellow steps:
>
> Create new project [Dynamic Web Project] and in project contents(second
> step) I put the root directory of my project.
>
> and the window web module.
>
> I put java source [WEB-INFO][classes] it ok
> content directory I need set /(root directory) directory, because my
> files(web content) are in root directory, but the eclipse not allowed.
>
> any suggestion ?
>
> thanks a lot !
|
|
| | | | |
Re: Eclipse 3.2 and WTP newbie with problem new project [message #186189 is a reply to message #185981] |
Sun, 14 January 2007 14:13   |
Eclipse User |
|
|
|
Originally posted by: florentino.alex.gmail.com
Larry Isaacs wrote:
> Alex wrote:
>> do you could explain more about add Server ?
>>
>> because I not have the tomcat in my machine, I have an folder share in
>> the server and need put files there.
>>
>> any suggestions ?
>>
> The assumption is that you would create a server within WTP and use that
> server for testing your projects. To test, you would add the project to
> the WTP server and it would be served when that server was started. WTP
> would handle copying any changes you make to your project.
> If you want to use an external server, then you could use File -> Export
> -> Web -> "WAR file" to assemble the pieces of the Dynamic Web Project
> into a WAR file that could be deployed to your external server. If you
> want to have your project build the WAR file structure directly in your
> project, you may want to avoid using the Dynamic Web Project, which
> doesn't really support that. A standard Java project could be used
> instead. Using the external server instead of a WTP server, you would
> lose some of the convenience offered by WTP. But not knowing your
> reasons for using an external server, I can't say which would be better.
> Cheers,
> Larry
Hi Larry,
The problem is that my boss not allowed I have environment of test in my
machine he think that is more safe have one server and configure one
virtual host by each developer and in control source version(svn) the
project structure is equals web project in apache tomcat(web-inf, etc)...
this problem this architecture is that I have edit jsp file in editor like
editplus(dreamweaver) I think this not good approch for java web
developer...
but I cannot change the architecture all now, I want change my workspace
and show for my boss and demostrate that is more productive.. my have some
issue with wtp(with config server).
sample with WTP deployment my project ? he(wtp) change server.xml in
apache tomcat ?
have any idea(advice), how I could configure this environment ?
thanks a lot.
|
|
|
Re: Eclipse 3.2 and WTP newbie with problem new project [message #186309 is a reply to message #186189] |
Tue, 16 January 2007 11:52  |
Eclipse User |
|
|
|
Currently, the WTP Tomcat plug-ins only support running Tomcat locally.
Use of external Tomcat servers isn't supported beyond general support
in Eclipse for remote Java applications.
I'm not sure exactly what you mean by "I cannot change the
architecture". If it means that the directory structure in the Eclipse
project has to match the directory structure for WAR files, then you
will likely have difficulties using the WTP Dynamic Web Project. The
exact difficulties will depend on the details of the web application you
are trying to develop.
Cheers,
Larry
Alex Florentino wrote:
> Larry Isaacs wrote:
>
>> Alex wrote:
>>> do you could explain more about add Server ?
>>>
>>> because I not have the tomcat in my machine, I have an folder share
>>> in the server and need put files there.
>>>
>>> any suggestions ?
>>>
>> The assumption is that you would create a server within WTP and use
>> that server for testing your projects. To test, you would add the
>> project to the WTP server and it would be served when that server was
>> started. WTP would handle copying any changes you make to your project.
>
>> If you want to use an external server, then you could use File ->
>> Export -> Web -> "WAR file" to assemble the pieces of the Dynamic Web
>> Project into a WAR file that could be deployed to your external
>> server. If you want to have your project build the WAR file structure
>> directly in your project, you may want to avoid using the Dynamic Web
>> Project, which doesn't really support that. A standard Java project
>> could be used instead. Using the external server instead of a WTP
>> server, you would lose some of the convenience offered by WTP. But
>> not knowing your reasons for using an external server, I can't say
>> which would be better.
>
>> Cheers,
>> Larry
>
> Hi Larry,
>
> The problem is that my boss not allowed I have environment of test in my
> machine he think that is more safe have one server and configure one
> virtual host by each developer and in control source version(svn) the
> project structure is equals web project in apache tomcat(web-inf,
> etc)... this problem this architecture is that I have edit jsp file in
> editor like editplus(dreamweaver) I think this not good approch for java
> web developer...
> but I cannot change the architecture all now, I want change my workspace
> and show for my boss and demostrate that is more productive.. my have
> some issue with wtp(with config server).
>
> sample with WTP deployment my project ? he(wtp) change server.xml in
> apache tomcat ?
>
> have any idea(advice), how I could configure this environment ?
>
> thanks a lot.
>
|
|
|
Goto Forum:
Current Time: Thu Mar 13 13:46:17 EDT 2025
Powered by FUDForum. Page generated in 0.03816 seconds
|