My Oracle Support Banner

SDK Sample AMR Adapter Fails To Build Under 2.3.0.2.0 (Doc ID 2446858.1)

Last updated on FEBRUARY 03, 2019

Applies to:

Oracle Utilities Network Management System - Version 2.3.0.2.0 to 2.3.0.2.0 [Release 2.3]
Oracle Network Management for Utilities - DMS - Version 2.3.0.2.0 to 2.3.0.2.0 [Release 2.3]
Information in this document applies to any platform.

Symptoms

SDK sample AMR adapter fails to build under 2.3.0.2.

You have a custom adapter based on the sample adapter provided under $CES_HOME/sdk/java/samples - which fails to compile under 2.3.0.2.
It transpires that the sample adapter itself fails to compile - when running ant all:

ERROR

compile:
   [javac] /tmp/samples/amr/build.xml:120: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
   [javac] Compiling 1187 source files to /tmp/samples/amr/build/classes
   [javac] /tmp/samples/amr/src/java/demo/amr/ejb/AmrBean.java:43: error: package javax.interceptor does not exist
   [javac] import javax.interceptor.ExcludeClassInterceptors;
   [javac]                         ^
   [javac] /tmp/samples/amr/src/java/demo/amr/ejb/AmrBean.java:44: error: package javax.interceptor does not exist
   [javac] import javax.interceptor.Interceptors;
   [javac]                         ^
   [javac] /tmp/samples/amr/src/java/demo/amr/ejb/AmrBean.java:56: error: cannot find symbol
   [javac] @Interceptors({NMSAuthInterceptor.class})
   [javac]  ^
   [javac]   symbol: class Interceptors
   [javac] /tmp/samples/amr/src/java/demo/amr/lib/InterfaceProperties.java:29: error: package org.eclipse.persistence.config does not exist
   [javac] import org.eclipse.persistence.config.CacheUsage;
   [javac]                                      ^
   [javac] /tmp/samples/amr/src/java/demo/amr/lib/InterfaceProperties.java:30: error: package org.eclipse.persistence.config does not exist




STEPS
$ cd $CES_HOME
$ find . -name samples
./sdk/java/samples
$ cd sdk/java/
$ tar cf - -h samples | (cd /tmp; tar xf -)
$ export MW_HOME=/tmp/Middlewere
$ cd /tmp/samples/amr
$ ant all

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.