[jbossws-dev] [Design of JBoss Web Services] - Re: Deploying web services in service archive

heiko.braun@jboss.com do-not-reply at jboss.com
Fri Sep 26 03:29:12 EDT 2008


anonymous wrote : 
  |  the jbossws deployer relies upon injection into beans declared in server//deploy/jbossws.sar/META-INF/jboss-beans.xml 
  | 

Careful here. The deployers don't use injection, they use a service locator lookup to get to the jbossws runtime. The KernelLocator.class however (part of the runtime uses injection and is initialized when jbossws.sar is deployed. 

So, the problem you encounter looks like a  deployment ordering problem to me. Until jbossws.sar is fully initilaized, the WS deployers cannot do their job. The NPE could be read "JBossWS not initialized yet". Since both WS deployers and WS runtime have different scopes and classloaders you cannot easily put a dependency which prevents these errors. (deployers would depend on deployment)

This is not a solution, but it should help getting there.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178971#4178971

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178971



More information about the jbossws-dev mailing list