Morgan <mrachell 'at' bbandt.com> writes:

> I'm using the following code in an initialization routine to call an Action. 
> This occurs the first time a user hits the application. This was all working 
> on 
> WebSphere 4.0.4, but we upgraded to WS 5.1.0.5 and now it doesn't work. No 
> error, no logs, no exception. Just like it doesn't get called. Of course, the 
> same app (EAR file) works fine on a development server.
> 
> Any reason why this wouldn't work in the execute() method of another action?
> 
> // Create Action URL
> String requestUrl = request.getRequestURL().toString();
> String webAppUrl = requestUrl.substring(0, requestUrl.lastIndexOf("/") );
> String loadStateFormsUrl = webAppUrl + "/initAction.do";
> 
> HttpClient client = new HttpClient();     

This is not a thread-safe HttpClient. Any chance the code is
called by several threads at the same time or something?

-- 
Guillaume Cottenceau - http://zarb.org/~gc/

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

Reply via email to