You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Kevin Menard <km...@servprise.com> on 2006/09/18 19:34:34 UTC

[OT] Tapestry + IDEA

Sorry for the OT question, but I figured this was about as good as any 
place to ask.

For a while now, I've been looking to move to IDEA for my Tapestry 
work.  Unfortunately, I've been unable to find something that will work 
as well as JettyLauncher with Eclipse.  Using the Tomcat deployer in 
IDEA, I can't get template changes to appear in the Web app unless I 
build again.  Likewise, I can't seem to easily change the port number to 
bind the servlet container to.

I'm guessing there's something I'm missing here, because it's really 
quite painful to develop this way.  Any help from other IDEA users would 
be much appreciated.

Thanks,
Kevin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [OT] Tapestry + IDEA

Posted by Kevin Menard <km...@servprise.com>.
andyhot wrote:
> Laying out the project is really important...
>
> What I used to do is run jetty as a java app by creating a launch
> configuration that:
>   
This worked out wonderfully.  Thanks a lot.  It's not as simple as I'd 
have preferred, but it's easy enough.

> Nowadays,
> - I run jetty externally with mvn jetty:run.
> - Instead of enabling caching, I enable the reset service
> - Whenever I recompile in idea, maven's jetty plugin restarts the context.
>   

This actually worked well, too.  I recently moved to maven and hadn't 
even thought of it.  The other approach looks like it makes debugging 
easier though, so that's what I'll stick with.

Thanks,
Kevin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [OT] Tapestry + IDEA

Posted by andyhot <an...@di.uoa.gr>.
Laying out the project is really important...

What I used to do is run jetty as a java app by creating a launch
configuration that:
- has jetty/ext/ant.jar,jasper-compiler.jar,jasper-runtime.jar,
jetty/lib/javax.servlet.jar,org.mortbay.jetty.jar,org.mortbay.jmx.jar in
classpath
- a jetty.xml config in {project}/etc pointing to my {project}/{src}/context
- run (or debug) class org.mortbay.jetty.Server, setting as work dir the
{project} dir
(The above are what the jettylauncher plugin automagically does...)

Nowadays,
- I run jetty externally with mvn jetty:run.
- Instead of enabling caching, I enable the reset service
- Whenever I recompile in idea, maven's jetty plugin restarts the context.




Kevin Menard wrote:
> Ryan Cuprak wrote:
>>
>> Hello,
>>   Have you tried:
>>   export JAVA_OPTS="-Dorg.apache.tapestry.disable-caching=true"
>>  (then start tomcat)
>>  This disables page caching so that you can see changes immediately.
>
> Heh, I figured someone was going to mention this.  Yes, I have that
> option enabled.  The "problem" is that IDEA has to work out of an
> exploded directory, as far as I can tell.  So, changes to my "context"
> directory (contains all template & page files) don't get copied over
> until I build.  Note, that I don't have to redeploy the Web app, since
> the caching is disabled, but I do need a way to update the files in
> that exploded directory.  Perhaps I just have my project laid out
> oddly -- I did start with a Spindle template.
>


-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [OT] Tapestry + IDEA

Posted by Ryan Cuprak <rc...@mac.com>.
Ah - this is just a configuration issue with IDEA.
For development with IDEA, I created a regular java module - not a  
web module. I then set the dest for the compiled classes to my WEB- 
INF/classes.
So my Project layout:
  ~/Projects/MyProject
  ~/Projects/MyProject/app
  ~/Projects/MyProject/app/WEB-INF
  ~/Projects/MyProject/app/WEB-INF/lib
  ~/Projects/MyProject//app/WEB-INF/classes (have idea put generated  
classes here)
  ~/Projects/MyProject/app/WEB-INF/pages
  etc.
  I set the path to my webapp in context file under conf/Catalina/ 
localhost/
  ROOT.xml
  <?xml version="1.0" encoding="UTF-8"?>
<Context path="" docBase="/Users/rcuprak/Projects/MyProject/app" ...

  To debug my app with IDEA, I start tomcat using catalina.sh jpda  
start and connect using IDEA remotely.

  Tomcat usually detects my changes to classes file and reloads them.

  Hope that helps!

  -Ryan

On Sep 18, 2006, at 2:14 PM, Kevin Menard wrote:

> Ryan Cuprak wrote:
>>
>> Hello,
>>   Have you tried:
>>   export JAVA_OPTS="-Dorg.apache.tapestry.disable-caching=true"
>>  (then start tomcat)
>>  This disables page caching so that you can see changes immediately.
>
> Heh, I figured someone was going to mention this.  Yes, I have that  
> option enabled.  The "problem" is that IDEA has to work out of an  
> exploded directory, as far as I can tell.  So, changes to my  
> "context" directory (contains all template & page files) don't get  
> copied over until I build.  Note, that I don't have to redeploy the  
> Web app, since the caching is disabled, but I do need a way to  
> update the files in that exploded directory.  Perhaps I just have  
> my project laid out oddly -- I did start with a Spindle template.
>
> -- 
> Kevin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [OT] Tapestry + IDEA

Posted by Kevin Menard <km...@servprise.com>.
Ryan Cuprak wrote:
>
> Hello,
>   Have you tried:
>   export JAVA_OPTS="-Dorg.apache.tapestry.disable-caching=true"
>  (then start tomcat)
>  This disables page caching so that you can see changes immediately.

Heh, I figured someone was going to mention this.  Yes, I have that 
option enabled.  The "problem" is that IDEA has to work out of an 
exploded directory, as far as I can tell.  So, changes to my "context" 
directory (contains all template & page files) don't get copied over 
until I build.  Note, that I don't have to redeploy the Web app, since 
the caching is disabled, but I do need a way to update the files in that 
exploded directory.  Perhaps I just have my project laid out oddly -- I 
did start with a Spindle template.

-- 
Kevin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [OT] Tapestry + IDEA

Posted by Ryan Cuprak <rc...@mac.com>.
Hello,
   Have you tried:
   export JAVA_OPTS="-Dorg.apache.tapestry.disable-caching=true"
  (then start tomcat)
  This disables page caching so that you can see changes immediately.

  -Ryan

On Sep 18, 2006, at 1:34 PM, Kevin Menard wrote:

> Sorry for the OT question, but I figured this was about as good as  
> any place to ask.
>
> For a while now, I've been looking to move to IDEA for my Tapestry  
> work.  Unfortunately, I've been unable to find something that will  
> work as well as JettyLauncher with Eclipse.  Using the Tomcat  
> deployer in IDEA, I can't get template changes to appear in the Web  
> app unless I build again.  Likewise, I can't seem to easily change  
> the port number to bind the servlet container to.
>
> I'm guessing there's something I'm missing here, because it's  
> really quite painful to develop this way.  Any help from other IDEA  
> users would be much appreciated.
>
> Thanks,
> Kevin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: [OT] Tapestry + IDEA

Posted by James Carman <ja...@carmanconsulting.com>.
One reason folks like it is because it makes it easy to debug.  The
"launchers" will launch with debugging enabled.  Of course, it's easy to
configure your Tomcat instance to launch with remote debugging enabled.

-----Original Message-----
From: Konstantin Ignatyev [mailto:kgignatyev@yahoo.com] 
Sent: Monday, September 18, 2006 2:00 PM
To: Tapestry users
Subject: Re: [OT] Tapestry + IDEA

I work in IDEA all the time and I simply have a
terminal window always running for a server and
relaunch server (if necessary) from there. 

Personally I never understood necessity to have any
kind of launchers within IDE, perhaps because I always
 build script centric in development and that is that
must work reliably and conveniently.  

--- Kevin Menard <km...@servprise.com> wrote:

> Sorry for the OT question, but I figured this was
> about as good as any 
> place to ask.
> 
> For a while now, I've been looking to move to IDEA
> for my Tapestry 
> work.  Unfortunately, I've been unable to find
> something that will work 
> as well as JettyLauncher with Eclipse.  Using the
> Tomcat deployer in 
> IDEA, I can't get template changes to appear in the
> Web app unless I 
> build again.  Likewise, I can't seem to easily
> change the port number to 
> bind the servlet container to.
> 
> I'm guessing there's something I'm missing here,
> because it's really 
> quite painful to develop this way.  Any help from
> other IDEA users would 
> be much appreciated.
> 
> Thanks,
> Kevin
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail:
> users-help@tapestry.apache.org
> 
> 


Konstantin Ignatyev




PS: If this is a typical day on planet earth, humans will add fifteen
million tons of carbon to the atmosphere, destroy 115 square miles of
tropical rainforest, create seventy-two miles of desert, eliminate between
forty to one hundred species, erode seventy-one million tons of topsoil, add
2,700 tons of CFCs to the stratosphere, and increase their population by
263,000

Bowers, C.A.  The Culture of Denial:  Why the Environmental Movement Needs a
Strategy for Reforming Universities and Public Schools.  New York:  State
University of New York Press, 1997: (4) (5) (p.206)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [OT] Tapestry + IDEA

Posted by Konstantin Ignatyev <kg...@yahoo.com>.
I work in IDEA all the time and I simply have a
terminal window always running for a server and
relaunch server (if necessary) from there. 

Personally I never understood necessity to have any
kind of launchers within IDE, perhaps because I always
 build script centric in development and that is that
must work reliably and conveniently.  

--- Kevin Menard <km...@servprise.com> wrote:

> Sorry for the OT question, but I figured this was
> about as good as any 
> place to ask.
> 
> For a while now, I've been looking to move to IDEA
> for my Tapestry 
> work.  Unfortunately, I've been unable to find
> something that will work 
> as well as JettyLauncher with Eclipse.  Using the
> Tomcat deployer in 
> IDEA, I can't get template changes to appear in the
> Web app unless I 
> build again.  Likewise, I can't seem to easily
> change the port number to 
> bind the servlet container to.
> 
> I'm guessing there's something I'm missing here,
> because it's really 
> quite painful to develop this way.  Any help from
> other IDEA users would 
> be much appreciated.
> 
> Thanks,
> Kevin
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail:
> users-help@tapestry.apache.org
> 
> 


Konstantin Ignatyev




PS: If this is a typical day on planet earth, humans will add fifteen million tons of carbon to the atmosphere, destroy 115 square miles of tropical rainforest, create seventy-two miles of desert, eliminate between forty to one hundred species, erode seventy-one million tons of topsoil, add 2,700 tons of CFCs to the stratosphere, and increase their population by 263,000

Bowers, C.A.  The Culture of Denial:  Why the Environmental Movement Needs a Strategy for Reforming Universities and Public Schools.  New York:  State University of New York Press, 1997: (4) (5) (p.206)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org