Exception while running connectorz Executor framework

Viewed 362

I am trying to run connectorZ JCA 1.6 Executor implementation,
For that I downloaded Zip from github and try to execute the client,
(Work Manager: JCA implementation of java.util.concurrent.Executor)

I am able to run the application in Eclipse, (after solving some of dependency issues)
the jsp page loading fine with the link "Execute 5 blocking tasks",
when I click on particular link I am getting below Exception:

Caused by: java.lang.NullPointerException
    at org.connectorz.threading.ThreadsResource.overload(ThreadsResource.java:72) [classes:]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_40]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_40]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_40]
    at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_40]

Here the Issues is executorFactory is null, I am not sure about jndi_name "jca/workmanager".

@Resource(name="jca/workmanager")
WorkExecutorFactory executorFactory; //NPE at executorFactory(not injecting).


Whether I am missing any configuration related to jndi or any resource file?
How can I solve this Issue?

1 Answers
Related