Gen 8.6 EJB build fails with "package com.ca.gen.ejb does not exist"
search cancel

Gen 8.6 EJB build fails with "package com.ca.gen.ejb does not exist"

book

Article ID: 372466

calendar_today

Updated On:

Products

Gen - Workstation Toolset Gen

Issue/Introduction

Building the Gen 8.6 sample model server P900 as a Java EJB fails with "error: package com.ca.gen.ejb does not exist"

Extract from P900.out file:

**********
    [javac] C:\Users\Administrator\Documents\CA\Gen 8.6\Models\samp86a.ief\java\P900.XML:303: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 42 source files to C:\Users\Administrator\Documents\CA\Gen 8.6\Models\samp86a.ief\java\classes\P900
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
    [javac] C:\Users\Administrator\Documents\CA\Gen 8.6\Models\samp86a.ief\java\com\ca\SERVER_DETAIL_DEPARTMENT_Bean.java:15: error: package com.ca.gen.ejb does not exist
    [javac] import com.ca.gen.ejb.EJBProcedureStepContext;
...
**********

Environment

Gen Build Tool
Java EJB server

Cause

The "Enterprise JavaBeans" feature was not selected at Gen 8.6 install time.

Resolution

Per doc. page Installing Gen on the Windows Platform, a Gen 8.6 Typical install will not include the "Enterprise JavaBeans" feature which requires using the Custom option.

To resolve the problem:

  1. Under Control Panel > Programs and Features.
  2. Right mouse button on the "CA Gen 8.6" line and use option Change.
  3. On the next Dialog use Next and then option Modify to get to the "Custom setup" dialog.
  4. Select feature "Enterprise JavaBeans".
  5. See screenshot:

Additional Information

In the Build Tool profile the token LOC.JAVAEE_HOME also needs to be configured correctly.
Here are some relevant articles.
Gen applications needing Build Tool token LOC.JAVAEE_HOME
Build of Gen EJB fails with error "package javax.ejb does not exist"