javaee7-hol icon indicating copy to clipboard operation
javaee7-hol copied to clipboard

Exception when running job in GlassFish 4.1.1

Open bgoetzmann opened this issue 7 years ago • 0 comments

Hi,

I followed the HOL with NetBeans 8.2 and GlassFish 4.1.1 (the version bundled with NetBeans 8.2). After deploying the application, when I want to run job (link Sales, and then "Run Job" button), I get this exception : java.util.ServiceConfigurationError: javax.batch.operations.JobOperator: Provider com.ibm.jbatch.container.api.impl.JobOperatorImpl could not be instantiated

with this cause: java.lang.NoClassDefFoundError: Could not initialize class org.apache.derby.jdbc.EmbeddedDriver

Looking at GlassFish Batch Runtime Configuration, I realized that GlasssFish uses __TimerPool as connection pool connection; and we have org.apache.derby.jdbc.EmbeddedXADataSource defined as datasource classname. So, is there a missing jar in GlassFish?

A work around, is to specify another connection pool.

bgoetzmann avatar Mar 21 '17 15:03 bgoetzmann