JBPM 6.4 - Failed to deploy kjar (doesn't recognize Java version)

569 views
Skip to first unread message

SJ

unread,
Jun 20, 2016, 3:48:54 PM6/20/16
to jBPM Usage
I've been using JBPM 6.3 for more than 6 months and now planning to move to JBPM 6.4. I couldn't build my project on JBPM 6.4 that was working fine on JBPM 6.3


So, I downloaded JBPM 6.4 again and tried to build a project on out of the box jbpm-installer's sample projects:
1. Unzip the zip
2. ant install.demo.noeclipse
3. ant start.demo.noeclipse. jbpm-cosole and kie-server got deployed successfully. 
4. Logged in as admin
5. Opened Project Authoring ->demo ->uf-playground->mortgages.
6. CIicked on "Open Project Editor", then Build ->Build and Deploy.

I got following errors. 
Syntax error, annotations are only available if source level is 1.5 or greater

I am on Java 1.8.0_91. I am not sure how to configure JBPM workbench to specify Java version.





Syntax error, annotations are only available if source level is 1.5 or greater
373
14
Syntax error, annotations are only available if source level is 1.5 or greater
475
17
Syntax error, annotations are only available if source level is 1.5 or greater
573
20
Syntax error, annotations are only available if source level is 1.5 or greater
674
23
Syntax error, annotations are only available if source level is 1.5 or greater
281
11
Syntax error, annotations are only available if source level is 1.5 or greater
381
14
Syntax error, annotations are only available if source level is 1.5 or greater
286
11
Syntax error, annotations are only available if source level is 1.5 or greater
382
14
Syntax error, annotations are only available if source level is 1.5 or greater
480
17
Syntax error, annotations are only available if source level is 1.5 or greater
582
20
Syntax error, annotations are only available if source level is 1.5 or greater
679
23
Syntax error, annotations are only available if source level is 1.5 or greater
779
26
Syntax error, annotations are only available if source level is 1.5 or greater
882
29
Syntax error, annotations are only available if source level is 1.5 or greater
283
11
Syntax error, annotations are only available if source level is 1.5 or greater
379
14
Unable to resolve ObjectType 'LoanApplication'
0
10
Unable to resolve ObjectType 'IncomeSource'
0
11
Unable to Analyse Expression app.setApproved( false ); app.setExplanation( "no NINJAs" ); drools.retract( app );: [Error: unable to resolve method using strict-mode: org.drools.core.spi.KnowledgeHelper.app()] [Near : {... app.setApproved( false ); ....}] ^ [Line: 6, Column: 0]
0
6
Unable to resolve ObjectType 'LoanApplication'
0
10
Unable to resolve ObjectType 'Applicant'
0
11
Unable to Analyse Expression application.setApproved( false ); application.setExplanation( "Underage" ); drools.retract( application );: [Error: unable to resolve method using strict-mode: org.drools.core.spi.KnowledgeHelper.application()] [Near : {... application.setApproved( false ....}] ^ [Line: 6, Column: 0]
0
6
Unable to resolve ObjectType 'LoanApplication'
0
10
Unable to resolve ObjectType 'Applicant'
0
11
Unable to resolve ObjectType 'Applicant'
0
11
Unable to Analyse Expression app.setApproved( false ); app.setExplanation( "Only AA" ); drools.retract( app );: [Error: unable to resolve method using strict-mode: org.drools.core.spi.KnowledgeHelper.app()] [Near : {... app.setApproved( false ); ....}] ^ [Line: 6, Column: 0]
0
6
Unable to resolve ObjectType 'LoanApplication'
0
10
Unable to resolve ObjectType 'Bankruptcy'
0
11
Unable to Analyse Expression a.setApproved( false ); a.setExplanation( "has been bankrupt" ); drools.retract( a );: [Error: unable to resolve method using strict-mode: org.drools.core.spi.KnowledgeHelper.a()] [Near : {... a.setApproved( false ); ....}] ^ [Line: 6, Column: 0]
0
6
Unable to resolve ObjectType 'Applicant'
0
6
Unable to Analyse Expression applicant.setApproved(true);: [Error: unable to resolve method using strict-mode: org.drools.core.spi.KnowledgeHelper.applicant()] [Near : {... applicant.setApproved(true); ....}] ^ [Line: 3, Column: 0]
0
3
Unable to resolve ObjectType 'Applicant'
0
6
Unable to resolve ObjectType 'LoanApplication'
0
7
Unable to resolve ObjectType 'IncomeSource'
0
8
Unable to Analyse Expression application.setApproved( true ); application.setInsuranceCost( 0 ); application.setApprovedRate( 2 );: [Error: unable to resolve method using strict-mode: org.drools.core.spi.KnowledgeHelper.application()] [Near : {... application.setApproved( true ....}] ^ [Line: 4, Column: 0]
0
4
Unable to resolve ObjectType 'LoanApplication'
0
19
Unable to resolve ObjectType 'IncomeSource'
0
20
Unable to Analyse Expression application.setApproved( true ); application.setInsuranceCost( 0 ); application.setApprovedRate( 4 );: [Error: unable to resolve method using strict-mode: org.drools.core.spi.KnowledgeHelper.application()] [Near : {... application.setApproved( true ....}] ^ [Line: 16, Column: 0]
0
16
Unable to resolve ObjectType 'LoanApplication'
0
31
Unable to resolve ObjectType 'IncomeSource'
0
32
Unable to Analyse Expression application.setApproved( true ); application.setInsuranceCost( 10 ); application.setApprovedRate( 6 );: [Error: unable to resolve method using strict-mode: org.drools.core.spi.KnowledgeHelper.application()] [Near : {... application.setApproved( true ....}] ^ [Line: 28, Column: 0]
0
28
Rule Compilation error Only a type can be imported. org.mortgages.IncomeSource resolves to a package Only a type can be imported. org.mortgages.Applicant resolves to a package Only a type can be imported. org.mortgages.Bankruptcy resolves to a package Only a type can be imported. org.mortgages.LoanApplication resolves to a package
0
3
Error importing : 'org.mortgages.LoanApplication'
0
1
Error importing : 'org.mortgages.Bankruptcy'
0
1
Error importing : 'org.mortgages.IncomeSource'
0
1
Error importing : 'org.mortgages.Applicant'
0
1



Maciej Swiderski

unread,
Jun 21, 2016, 1:00:00 AM6/21/16
to SJ, jBPM Usage
This looks like an issue with wildfly 8.2 and Java 1.8 that comes with different ecj library versions. You could try to exclude the ecj that comes with wildfly (see links below) or use java 7 as workaround.


there was another approach though can’t find it right now, maybe some others can provide help on this

Maciej

--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To post to this group, send email to jbpm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/d98e4114-6c71-4ae8-850e-138e598b3c7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

SJ

unread,
Jun 21, 2016, 11:58:23 AM6/21/16
to jBPM Usage, sarvesh...@gmail.com
This worked out great for me. Thanks a lot.
Reply all
Reply to author
Forward
0 new messages