On Wednesday, November 23, 2011 5:02:49 AM [email protected] wrote:
> I am using Apache CXF , for developing Webservices I have two wars inside my
> Tomcat server , where from one war i am calling another war
> 
> After adding this code (Calling another war from a class using
> jaxProxyFactory Bean ) the deployment is not happening .
> 
> Please let me know whetehr we need to add anything for this inside the
> configuration files ??
> 
> The error is SEVERE: Error listenerStart
> 
> This is the code i added
> 
>       String host = "http://localhost:8080/bayer-ws-1.0/bayer/soap";;
>       JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
>       factory.setServiceClass(bayerService.class);
>       factory.setAddress(host);
>       bayerService client = (bayerService) factory.create();
>       client.holdings(request);

Tomcat starts up all the wars prior to actually starting up a listener on the 
port.   Thus, you cannot call off to a port 8080 thing until AFTER everything 
is completely up and running.   I think tomcat has some listeners or something 
you can hook into, but I'm not really sure.   A simple timer or something to 
delay the above code for a couple seconds, if possible, should also work.

-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to