Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Suggested webtools redesign
Suggested webtools redesign [message #198811] Wed, 22 August 2007 22:22 Go to next message
Eclipse UserFriend
Originally posted by: fake.phony_email_address.com

I've been struggling all day trying to get dynamic web apps to work
correctly. The core problem is dependencies -- when the web app depends
on different libraries and resources, they all need to get copied over
the app server to run, and there are too many points of failure.

And, of course, speed: startup and shutdown is slow and ugly.

Before using webtools, I had a simple system that worked pretty well. I
added the Jetty .jar files to my project, configured it to point to the
right /webapps dir, and launched it. It's fast, clean, and simple. The
only thing it doesn't do is let me debug the code inside a JSP (though I
can debug code which is called from one), which is what led me to look
at webtools.

I think webtools has a fundamental design flaw: it copies code from
where it's edited into an app server for execution, rather than just
executing it in-place. This is the cause of all my problems today, and
from reading the forum, the cause of a lot of other problems.

So I suggest a general redesign: package up an app server as a plugin to
Eclipse, and execute everything in place, without making any copies. Use
existing build paths for resources. This is a much cleaner method all
around.

Thoughts?
Re: Suggested webtools redesign [message #198851 is a reply to message #198811] Thu, 23 August 2007 02:56 Go to previous messageGo to next message
David Williams is currently offline David WilliamsFriend
Messages: 722
Registered: July 2009
Senior Member
On Wed, 22 Aug 2007 18:22:47 -0400, Chris <fake@phony_email_address.com> wrote:


>
> Thoughts?
>

We are certainly interested and trying to simplify many things, so your comments are welcome.

But, I think some of the "in place" features you want are already possible, in version 2.0.
I'll let others cover the details, but I do know enough to know it depends some on which server (adpater) you are using, and the exact nature of the dependancies ... are they other Eclipse Projects? Or, "loose jars", for example.

So, if you provide some of that info, others might be able to give a more meaningful answer than mine.
Re: Suggested webtools redesign [message #198928 is a reply to message #198851] Thu, 23 August 2007 19:03 Go to previous messageGo to next message
Steve Whatmore is currently offline Steve WhatmoreFriend
Messages: 95
Registered: July 2009
Member
I believe that this is related to my post from a couple of days ago, in that
I was asking on how to create a Dynamic Web project that dependencies on
other projects (say library projects) or subsystems.

This would allow you to create a subsystem in a separate project (Jars,
classes, JSPs, etcs) and reference that from a web project.

This allow that project to be reused for more than one project.

I have had success in creating project dependencies for straight up Java
projects, but have not found a solution yet for web projects.

Whatty
"David Williams" <david_williams@us.ibm.com> wrote in message
news:op.txhrrtcdac05ss@dmw2t23.ibm.com...
> On Wed, 22 Aug 2007 18:22:47 -0400, Chris <fake@phony_email_address.com>
> wrote:
>
>
>>
>> Thoughts?
>>
>
> We are certainly interested and trying to simplify many things, so your
> comments are welcome.
>
> But, I think some of the "in place" features you want are already
> possible, in version 2.0.
> I'll let others cover the details, but I do know enough to know it depends
> some on which server (adpater) you are using, and the exact nature of the
> dependancies ... are they other Eclipse Projects? Or, "loose jars", for
> example.
>
> So, if you provide some of that info, others might be able to give a more
> meaningful answer than mine.
>
Re: Suggested webtools redesign [message #198973 is a reply to message #198851] Fri, 24 August 2007 10:15 Go to previous message
Eclipse UserFriend
Originally posted by: adam.hardy.nospam.cyberspaceroad.nospam.com

David Williams wrote:
> On Wed, 22 Aug 2007 18:22:47 -0400, Chris <fake@phony_email_address.com> wrote:
>
>
>> Thoughts?
>>
>
> We are certainly interested and trying to simplify many things, so your comments are welcome.
>
> But, I think some of the "in place" features you want are already possible, in version 2.0.
> I'll let others cover the details, but I do know enough to know it depends some on which server (adpater) you are using, and the exact nature of the dependancies ... are they other Eclipse Projects? Or, "loose jars", for example.
>
> So, if you provide some of that info, others might be able to give a more meaningful answer than mine.

"In place" deployment of the web project is fine for simple things such
as images, css and jsps, but context.xml or web.xml or other config or
properties files often need substitution filtering, i.e. text scanning
for ${my.parameter} to replace it with the real value for the running
app. Running the webapp with an unfiltered web.xml would just not work.

I am currently trying to get the m2eclipse plug-in to do this filtering
when the project builds, but there is a problem with this example
because my web.xml is not on the project's build path.

A simpler example would be a Spring config file. This is on my build
path. If I edit and save it, eclipse should trigger the m2eclipse plugin
to filter it and then copy it to the output folder.

I would love to find out how to get WTP to set up tomcat to run the
webapp off the files in the output directory.


Adam
Previous Topic:Dependent projects
Next Topic:Exploded EAR / hot swapping
Goto Forum:
  


Current Time: Fri Apr 26 23:14:06 GMT 2024

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

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

Back to the top