JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net

The open source
grid computing

 Home   About   Features   Download   Documentation   On Github   Forums 
July 15, 2020, 09:43:14 AM *
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: JPPFConnectionFactory not found when using Glassfish Connector Resource  (Read 2775 times)


  • JPPF Padawan
  • *
  • Posts: 6
    • Happy Coding


I am trying to use JPPF in combination with Glassfish. I've followed the step-by-step guide ( to add a Connection Pool and a Connector Resource. I also deployed the demo .ear.
I can start the demo application, but when it comes to submitting a job, there is this following exception coming up:

Code: [Select]
java.lang.NoClassDefFoundError: org/jppf/jca/cci/JPPFConnectionFactory
The full stacktrace is

Code: [Select]
[#|2011-06-07T15:12:39.112+0200|WARNING|glassfish3.2||_ThreadID=41;_ThreadName=Thread-2;|StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception
java.lang.NoClassDefFoundError: org/jppf/jca/cci/JPPFConnectionFactory
at org.jppf.jca.demo.DemoTest.getConnection(
at org.jppf.jca.demo.DemoTest.testConnectorBlocking(
at org.apache.jsp.index_jsp._jspService( from :138)
at org.apache.jasper.runtime.HttpJspBase.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.jasper.servlet.JspServletWrapper.service(
at org.apache.jasper.servlet.JspServlet.serviceJspFile(
at org.apache.jasper.servlet.JspServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.StandardWrapper.service(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardPipeline.doInvoke(
at org.apache.catalina.core.StandardPipeline.invoke(
at com.sun.enterprise.web.WebPipeline.invoke(
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.doService(
at org.apache.catalina.connector.CoyoteAdapter.service(
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(
at com.sun.grizzly.http.ProcessorTask.doProcess(
at com.sun.grizzly.http.ProcessorTask.process(
at com.sun.grizzly.http.DefaultProtocolFilter.execute(
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(
at com.sun.grizzly.DefaultProtocolChain.execute(
at com.sun.grizzly.DefaultProtocolChain.execute(
at com.sun.grizzly.http.HttpProtocolChain.execute(
at com.sun.grizzly.ProtocolChainContextTask.doCall(
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(
at com.sun.grizzly.util.AbstractThreadPool$

There was a similar question couple of month ago (,815.msg2106.html#msg2106), but there wasn't an answer yet.

I am using GlassFish Server Open Source Edition 3.2-b05 (build 5) and JPPF 2.5

Thanks and best regards.

« Last Edit: June 07, 2011, 03:19:16 PM by bug »


  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2262
    • JPPF Web site

Hello Daniel,

I've had that same problem, and resolved it by setting the "Connector Classloading Policy" to "global" in Glassfish.
You can do it from the Glassfish admin console by navigating to "Configuration > server-config > Connector Service". The default is "derived" since Glassfish 3.1, I believe. My understanding is that Glassfish 3.1 implements the version 1.6 of the JCA specification, which (as opposed to JCA 1.5) does not require any more that the classes in a resource adapter be made available to all applications.
It should be possible to use the JPPF connector with the "derived" class loading policy, but I haven't figured out how to make the connector classes available to the JPPF demo web app, without adding them to the server's classpath. Glassfish is definitely not the app server I'm the most proficient with :( If you have any suggestion, I'll certainly be happy to read it.



  • JPPF Padawan
  • *
  • Posts: 6
    • Happy Coding

Thanks a lot, Laurent. It's running now, which is a good first step.  :)

 I will keep you informed if I find out more.

Pages: [1]   Go Up
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at Fast, secure and Free Open Source software downloads