AnsweredAssumed Answered

Not able to access serviceRegistry in webscript bean class

Question asked by romschn on Dec 23, 2010
Latest reply on Dec 24, 2010 by romschn
Hi,

I have done the required configurations related to webscript.

See below code snippets for each of the required files :
context file :
<bean id="webscript.com.test.deployment.get" class="com.test.Deployment" parent="webscript">
    <property name="serviceRegistry" ref="ServiceRegistry"/>
</bean>

Java class for the Bean -
Deployment.java extends AbstractWebScript

When it tries to do this.serviceRegistry.getNodeService(), in the execute method, it gives NPE.

I am not sure why it is giving it.Any help would be highly appreciated.

Ramesh

Outcomes