Skip to content

Exception when running job in GlassFish 4.1.1 #25

@bgoetzmann

Description

@bgoetzmann

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions