question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JBERET000601: Failed to get job xml file for job

See original GitHub issue

This is a followed issue of #80. I used arquillian to test an installed module containing a batch job. After the succeed deployment of the WAR, I got the below error:

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 20.696 sec <<< FAILURE! - in org.hibernate.search.jsr352.PerformanceIT
testDiffrentMassIndexer(org.hibernate.search.jsr352.PerformanceIT)  Time elapsed: 7.002 sec  <<< ERROR!
javax.batch.operations.JobStartException: JBERET000601: Failed to get job xml file for job mass-index.xml
    at org.jberet.creation.ArchiveXmlLoader.getJobXml(ArchiveXmlLoader.java:129)
    at org.jberet.creation.ArchiveXmlLoader.loadJobXml(ArchiveXmlLoader.java:91)
    at org.jberet.operations.JobOperatorImpl.start(JobOperatorImpl.java:102)
    at org.hibernate.search.jsr352.MassIndexer.start(MassIndexer.java:90)
    at org.hibernate.search.jsr352.PerformanceIT.testNewMassIndexer(PerformanceIT.java:163)
    at org.hibernate.search.jsr352.PerformanceIT.testDiffrentMassIndexer(PerformanceIT.java:117)

My job XML is not found by the batch runtime. Here’re some points that I’ve checked:

  • The job XML mass-index.xml has been included in the module’s jar file. I checked by viewing the Contents of a JAR File. It is located at:

    META-INF/batch-jobs/mass-index.xml
    
  • The SPI of JobXmlResolver has been implemented using org.jberet.tools.MetaInfBatchJobsJobXmlResolver, it has been included in the module, located at:

    META-INF/services/org.jberet.spi.JobXmlResolver
    
  • The arquillian deployment works with jboss deploement structure file, where the dependency on the module include a dependency on its META-INF directory, as suggested in the mailing-list.

    <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
        <deployment>
            <dependencies>
                <module name="org.hibernate.search.jsr352" services="export" export="true" slot="${project.version}" meta-inf="import"/>
            </dependencies>
        </deployment>
    </jboss-deployment-structure>
    

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
chengfangcommented, Aug 23, 2016

Are you running the test with Arq embedded? How did you install your module to the WildFly? Can you try Arq remote config, or package the test as a standard war and deploy to WildFly, just to eliminate one variable?

0reactions
mincong-hcommented, Aug 25, 2016

Great @jamezp. Thanks everybody!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to ge...| JBoss.org Content Archive (Read Only)
JobStartException : JBERET000601: Failed to get job xml file for job myjob.xml. at org.jberet.creation.ArchiveXmlLoader.
Read more >
wildfly 10 batch jobs fail to find job.xml file - Stack Overflow
JobStartException : JBERET000601: Failed to get job xml file for job myJob.xml at org.jboss.resteasy.core.ExceptionHandler.
Read more >
Unable to load job xml in jar files inside WAR (and EAR) in ...
JobStartException : JBERET000601: Failed to get job xml file for job batchInJar.xml at org.jberet.creation.ArchiveXmlLoader.
Read more >
Wildfly 9 - Execute Batch Jobs from a JAR in a WAR
JobStartException : JBERET000601: Failed to get job xml file for job XXX . This post is about how to execute Java EE JSR-352...
Read more >
Running a Large XML Jobs via the LJK and Using 64-bit Java ...
This issue was reported with a BI Publisher XLS template and a large XML source file, e.g. > 50 MB where the job...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found