You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by V S Balaji <vs...@prodapt.com> on 2002/09/16 08:22:40 UTC

How to compile the code automatically (Turbine on Tomcat)


Hi,
 Iam using Turbine with Tomcat ver 4, I have my source directory in my
weapps/app_name\WEB-INF\src.

If i run my application without compiling the code in src and if i make
changes to my source, how to
conifgure tomcat so that my changes are automatically compiled and the
updated classes are moved to
the WEB-INF\classes directory. I believe that this is possible in Resin
Servlet Engine, i dont know
whether this is possible in Tomcat, any help is appreciated.

Balaji



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How to compile the code automatically (Turbine on Tomcat)

Posted by Derick <de...@xenocex.com>.
Hi,

You might also want to try eclipse (eclipse.org).
It has a compile on resource modification feature that you might find
useful..

Goodluck
Derick

----- Original Message -----
From: "V S Balaji" <vs...@prodapt.com>
To: "'Turbine Users List'" <tu...@jakarta.apache.org>
Sent: Sunday, September 15, 2002 11:22 PM
Subject: How to compile the code automatically (Turbine on Tomcat)


>
>
> Hi,
>  Iam using Turbine with Tomcat ver 4, I have my source directory in my
> weapps/app_name\WEB-INF\src.
>
> If i run my application without compiling the code in src and if i make
> changes to my source, how to
> conifgure tomcat so that my changes are automatically compiled and the
> updated classes are moved to
> the WEB-INF\classes directory. I believe that this is possible in Resin
> Servlet Engine, i dont know
> whether this is possible in Tomcat, any help is appreciated.
>
> Balaji
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How to compile the code automatically (Turbine on Tomcat)

Posted by Kwok Peng Tuck <pe...@makmal.com>.
I *think* you have to compile them yourself before it can be used. If 
you want to automate it you can use ant to compile and move it to the 
directory you want..


V S Balaji wrote:

>Iam not mentioning about the Jsp or servlet classes, iam mentioning about
>the java files which are used
>to execute the business logic, iam 100% sure that Resin recompiles any
>changes in the ordinary java files
>also, iam mentioning about the Java files only, not the jsp or servlets.
>
>Balaji
>
>
>
>-----Original Message-----
>From: Scott Eade [mailto:seade@backstagetech.com.au]
>Sent: Monday, September 16, 2002 12:23 PM
>To: turbine-user
>Subject: Re: How to compile the code automatically (Turbine on Tomcat)
>
>
>  
>
>>From: "V S Balaji" <vs...@prodapt.com>
>>
>>Hi,
>>Iam using Turbine with Tomcat ver 4, I have my source directory in my
>>weapps/app_name\WEB-INF\src.
>>
>>If i run my application without compiling the code in src and if i make
>>changes to my source, how to
>>conifgure tomcat so that my changes are automatically compiled and the
>>updated classes are moved to
>>the WEB-INF\classes directory. I believe that this is possible in Resin
>>Servlet Engine, i dont know
>>whether this is possible in Tomcat, any help is appreciated.
>>    
>>
>
>I think you may be confusing JSP compilation and servlet compilation.  You
>can configure tomcat to reload your servlet if it detects any of the class
>files have changed (update the context element in server.xml by adding an
>attribute reload="true"), but you cannot get it to recompile your servlet
>classes.  I am 99% sure that Resin is exactly the same.
>
>Cheers,
>
>Scott
>--
>Scott Eade
>Backstage Technologies Pty. Ltd.
>http://www.backstagetech.com.au
>
>
>
>--
>To unsubscribe, e-mail:
><ma...@jakarta.apache.org>
>For additional commands, e-mail:
><ma...@jakarta.apache.org>
>
>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>  
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: How to compile the code automatically (Turbine on Tomcat)

Posted by V S Balaji <vs...@prodapt.com>.
Iam not mentioning about the Jsp or servlet classes, iam mentioning about
the java files which are used
to execute the business logic, iam 100% sure that Resin recompiles any
changes in the ordinary java files
also, iam mentioning about the Java files only, not the jsp or servlets.

Balaji



-----Original Message-----
From: Scott Eade [mailto:seade@backstagetech.com.au]
Sent: Monday, September 16, 2002 12:23 PM
To: turbine-user
Subject: Re: How to compile the code automatically (Turbine on Tomcat)


> From: "V S Balaji" <vs...@prodapt.com>
>
> Hi,
> Iam using Turbine with Tomcat ver 4, I have my source directory in my
> weapps/app_name\WEB-INF\src.
>
> If i run my application without compiling the code in src and if i make
> changes to my source, how to
> conifgure tomcat so that my changes are automatically compiled and the
> updated classes are moved to
> the WEB-INF\classes directory. I believe that this is possible in Resin
> Servlet Engine, i dont know
> whether this is possible in Tomcat, any help is appreciated.

I think you may be confusing JSP compilation and servlet compilation.  You
can configure tomcat to reload your servlet if it detects any of the class
files have changed (update the context element in server.xml by adding an
attribute reload="true"), but you cannot get it to recompile your servlet
classes.  I am 99% sure that Resin is exactly the same.

Cheers,

Scott
--
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How to compile the code automatically (Turbine on Tomcat)

Posted by Scott Eade <se...@backstagetech.com.au>.
> From: "V S Balaji" <vs...@prodapt.com>
> 
> Hi,
> Iam using Turbine with Tomcat ver 4, I have my source directory in my
> weapps/app_name\WEB-INF\src.
> 
> If i run my application without compiling the code in src and if i make
> changes to my source, how to
> conifgure tomcat so that my changes are automatically compiled and the
> updated classes are moved to
> the WEB-INF\classes directory. I believe that this is possible in Resin
> Servlet Engine, i dont know
> whether this is possible in Tomcat, any help is appreciated.

I think you may be confusing JSP compilation and servlet compilation.  You
can configure tomcat to reload your servlet if it detects any of the class
files have changed (update the context element in server.xml by adding an
attribute reload="true"), but you cannot get it to recompile your servlet
classes.  I am 99% sure that Resin is exactly the same.

Cheers,

Scott
-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>