Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » bypass publishing to tomcat?
bypass publishing to tomcat? [message #175097] Thu, 20 July 2006 05:32 Go to next message
Eclipse User
Originally posted by: w.f.voogd.planet.nl

Hi All,

I'm using WTP for a few days now and like most of the features, the only
feature that annoys me somewhat is the publish feature. At the company
where i work, we never used Eclipse, but a rather straight forward
editor named JCreator. We worked directly on the webapp in tomcat,
therefor all we changed was immediately visible in tomcat.

Now with WTP even the smallest change in a jsp file causes wtp to be
publishing for about 5-10 seconds, sometimes even more!
As this is disrupting our coding speed, i was wondering whether it would
be possible to bypass the publishing framework in wtp by defining the
tomcat webapp directly on the WebContent directory? That way when i make
the src directory to build to WEB-INF/classes i hope my problem will be
solved.

Having typed this i think i might be looking for some tomcat
configuration options :)

I hope that someone here might have some pointers for me...

greetings,

Willem
Re: bypass publishing to tomcat? [message #175146 is a reply to message #175097] Thu, 20 July 2006 10:29 Go to previous messageGo to next message
Eclipse User
Originally posted by: w.f.voogd.planet.nl

Okay,

i didn't succeed using wtp, but i installed the sysdeo tomcat plugin,
and for tomcat installetions that is a good alternative. It does exactly
what i want, it just configures tomcat so that the webapp in the
workspace is used.

The only thing so far that doesn't work as good is debugging of jsp's.

I hope this pointer will aid other with simular problems...
greetings,

Willem
Re: bypass publishing to tomcat? [message #175155 is a reply to message #175097] Thu, 20 July 2006 10:43 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1287
Registered: July 2009
Senior Member
If you arrange to have your project create an image of the webapp under
the WebContent folder, you could manually define a context in the
server.xml in the Servers project that points to it. Run As -> Run on
Server wouldn't work, but you could open the browser and manually enter
the necessary URL. I'm not sure of the impact of this approach a
setting break points, etc.

That aside, 5-10 seconds for publishing a simple change to a JSP is a
performance issue that can hopefully be improved. I have projects where
I don't see that kind of delay. How big is the publish?.xml file in the
<workspace>/.metadata/.plugins/org.eclipse.wst.server.core/publish
directory?

Cheers,
Larry

Willem Voogd wrote:
> Hi All,
>
> I'm using WTP for a few days now and like most of the features, the only
> feature that annoys me somewhat is the publish feature. At the company
> where i work, we never used Eclipse, but a rather straight forward
> editor named JCreator. We worked directly on the webapp in tomcat,
> therefor all we changed was immediately visible in tomcat.
>
> Now with WTP even the smallest change in a jsp file causes wtp to be
> publishing for about 5-10 seconds, sometimes even more!
> As this is disrupting our coding speed, i was wondering whether it would
> be possible to bypass the publishing framework in wtp by defining the
> tomcat webapp directly on the WebContent directory? That way when i make
> the src directory to build to WEB-INF/classes i hope my problem will be
> solved.
>
> Having typed this i think i might be looking for some tomcat
> configuration options :)
>
> I hope that someone here might have some pointers for me...
>
> greetings,
>
> Willem
Re: bypass publishing to tomcat? [message #175175 is a reply to message #175155] Thu, 20 July 2006 14:14 Go to previous messageGo to next message
Eclipse User
Originally posted by: w.f.voogd.planet.nl

In WTP i can't get seem to set the output folder to WEB-INF/classes, so
the direct approach won't work.. :( But now i use sysdeo for that and
use the WTP editors, that seems to work fine.... (inclusing debugging,
except for jsp's)

my webapp is a rather large one, so the publish file is a biggie too,
843KB counting 10356 lines.... So that might be the problem :)
Anything i can do to minimize that? (i've got a lot of dependcies with
project which are also published, so there might be something to win?)

anyway, my itch is scratched now with sysdeo, but i'm willing to
elaborate if that would help WTP development, but you don't have to make
lots of efforts specially for me though....

greetz,

Willem

Larry Isaacs schreef:
> If you arrange to have your project create an image of the webapp under
> the WebContent folder, you could manually define a context in the
> server.xml in the Servers project that points to it. Run As -> Run on
> Server wouldn't work, but you could open the browser and manually enter
> the necessary URL. I'm not sure of the impact of this approach a
> setting break points, etc.
>
> That aside, 5-10 seconds for publishing a simple change to a JSP is a
> performance issue that can hopefully be improved. I have projects where
> I don't see that kind of delay. How big is the publish?.xml file in the
> <workspace>/.metadata/.plugins/org.eclipse.wst.server.core/publish
> directory?
>
> Cheers,
> Larry
Re: bypass publishing to tomcat? [message #175183 is a reply to message #175175] Thu, 20 July 2006 16:29 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1287
Registered: July 2009
Senior Member
I think the changes are calculated each time you publish, so with this
many resources to check, performance is likely to be an issue.

For WTP 2.0 I am hopeful that true "Run directly from the workspace" can
be restored for the Tomcat server, based on what is implemented in the
experimental plug-in documented here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=124914

It doesn't cover all use cases, such as running with a security manager
(which I encounter frequently where I work), but it should avoid your
publishing issue.

Cheers,
Larry

Willem Voogd wrote:
> In WTP i can't get seem to set the output folder to WEB-INF/classes, so
> the direct approach won't work.. :( But now i use sysdeo for that and
> use the WTP editors, that seems to work fine.... (inclusing debugging,
> except for jsp's)
>
> my webapp is a rather large one, so the publish file is a biggie too,
> 843KB counting 10356 lines.... So that might be the problem :)
> Anything i can do to minimize that? (i've got a lot of dependcies with
> project which are also published, so there might be something to win?)
>
> anyway, my itch is scratched now with sysdeo, but i'm willing to
> elaborate if that would help WTP development, but you don't have to make
> lots of efforts specially for me though....
>
> greetz,
>
> Willem
>
> Larry Isaacs schreef:
>> If you arrange to have your project create an image of the webapp
>> under the WebContent folder, you could manually define a context in
>> the server.xml in the Servers project that points to it. Run As ->
>> Run on Server wouldn't work, but you could open the browser and
>> manually enter the necessary URL. I'm not sure of the impact of this
>> approach a setting break points, etc.
>>
>> That aside, 5-10 seconds for publishing a simple change to a JSP is a
>> performance issue that can hopefully be improved. I have projects
>> where I don't see that kind of delay. How big is the publish?.xml
>> file in the
>> <workspace>/.metadata/.plugins/org.eclipse.wst.server.core/publish
>> directory?
>>
>> Cheers,
>> Larry
Re: bypass publishing to tomcat? [message #175191 is a reply to message #175097] Thu, 20 July 2006 20:12 Go to previous message
Frits Jalvingh is currently offline Frits Jalvingh
Messages: 19
Registered: July 2009
Junior Member
Hi Willem,

I opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=151254 for this.

Frits
Previous Topic:Enterprise Application Project Structure - missing non-EJB business or middle ti
Next Topic:XDoclet generation of <distributable/> in webdoclet
Goto Forum:
  


Current Time: Thu Apr 24 02:04:28 EDT 2014

Powered by FUDForum. Page generated in 0.04855 seconds