Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 14:37 Go to next message
Eclipse UserFriend
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 19:04 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
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 #185927 is a reply to message #185920] Wed, 10 January 2007 22:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: florentino.alex.gmail.com

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 ?
Re: Eclipse 3.2 and WTP newbie with problem new project [message #185981 is a reply to message #185927] Thu, 11 January 2007 14:48 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
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
Re: Eclipse 3.2 and WTP newbie with problem new project [message #186037 is a reply to message #185981] Thu, 11 January 2007 18:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: randalleleonard.hotmail.com

> WTP would handle copying any changes you make to your project.
Larry... this gets to the issue with my thread titled "Axis2
Integration"... I would hope it is possible to have some configuration
value to force WTP to copy changes to a different directory other than
Tomcat's /webapps/ directory.

Specifically, I would like exploded application folder to be deployed to
/webapps/axis2/WEB-INF/services directory.

Is there a configuration in the project's .setting folder, or elsewhere,
which affects where the web project folder is copied?

Thanks,
Randy
Re: Eclipse 3.2 and WTP newbie with problem new project [message #186061 is a reply to message #186037] Thu, 11 January 2007 21:19 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Randy Leonard wrote:
>> WTP would handle copying any changes you make to your project.
> Larry... this gets to the issue with my thread titled "Axis2
> Integration"... I would hope it is possible to have some configuration
> value to force WTP to copy changes to a different directory other than
> Tomcat's /webapps/ directory.
> Specifically, I would like exploded application folder to be deployed to
> /webapps/axis2/WEB-INF/services directory.
>
> Is there a configuration in the project's .setting folder, or elsewhere,
> which affects where the web project folder is copied?
>
> Thanks,
> Randy
>
Answered in other thread.

Larry
Re: Eclipse 3.2 and WTP newbie with problem new project [message #186189 is a reply to message #185981] Sun, 14 January 2007 19:13 Go to previous messageGo to next message
Eclipse UserFriend
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 16:52 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
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.
>
Previous Topic:xerces 2.9 available
Next Topic:Tomcat 6 server
Goto Forum:
  


Current Time: Fri Apr 19 20:28:38 GMT 2024

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

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

Back to the top