Sergiu,

I'll repeat and detail my other response as iIve noticed that my answer 
below was actually incorrect (should be the opposite):

Why do you not write your own servlet that will initialize the turbine 
services:

1/ write your own servlet MyServlet that initializes the Turbine services 
(in its init method)
2/ add it to web.xml with load-at-startup after Turbine
3/ voila...

other uglier ways, uglier as they go:

Option 2:

Use HttpUnit with js enabled to do your first request.

Option 3:

Remove the JavaScript constraint if the request comes from lynx or
localhost, or create a private entry point for initialization.

Option 4:
Use a javascript enabled browser like IE, netscape for your init.

sv

On Wed, 26 Jan 2005, sergiu gordea wrote:

> Hi all,
> 
>  Thanks for your support.  I reformulate my problem.
> I need to restart tomcat, to load the application and to initialize the 
> services.
> 
> I thought I can do it with tomcat & turbine configuration files, but I 
> didn't find if I can do it like this.
> 
>  The solution I right now is:
> 
> tomcat start
> lynx http://localhost/myapp/servlet/start
> 
> I noticed that lynx http://localhost/myapp/, was not working because we 
> redirect the link
> to an error message in the case that the browser doesn't support javascript.
> 
> (The load-on-startup property is set to 1 in web.xml)
> 
>  Best,
> 
>  Sergiu
> 
> Stephane Vaucher wrote:
> 
> >Sorry another comment (inline):
> >
> >On Tue, 25 Jan 2005, sergiu gordea wrote:
> >
> >  
> >
> >>Hi Michael,
> >>
> >> Thanks for your answer, unfortunately my problem is a little bit different.
> >>We have an application developed with turbine/velocity technology, and I'm
> >>quite familiar with the installation of  turbine and of our application.
> >>
> >>My problem is a little bit different.
> >>I wrote a shell script to rebuild our application in each night (get 
> >>from cvs, compile, restart tomcat).
> >>My problem is that the simple  tomcat restart is not loading the context 
> >>automatically, and it is not starting turbine.
> >>    
> >>
> >
> >Is turbine started, but not its services? If that's the case use 
> >load-on-startup in web.xml to init your turbine app.
> >
> >  
> >
> >> Do you have an idea of how can I achieve this in a better way then 
> >>using lynx to generate a request?
> >>    
> >>
> >
> >httpunit :)
> >
> >hth,
> >sv
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >  
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to