title: sun.reflect.annotation.TypeNotPresentExceptionProxy exception after adding EntityListeners
body: <p>When an EntityListeners was added to the application using the <code>@EntityListeners(value = {MyEventListener.class})</code>, got the following crash.  It looks an issue with reflection. The application has a custom annotation defined for the same entity. Note that this crash only happens after adding the EntityListeners. If the custom annotation is commented the application will still crash. The weird thing is that the same code will work fine when run through the Netbeans debugger. The <code>getAnnotation()</code> call will read all the annotations defined for the entity. The moment I launch the application outside the debugger I get the crash. I haven't been able to find why the class loader cannot find MyEventListener.class.</p>
  
  <pre><code>at sun.reflect.annotation.AnnotationParser.parseClassArray(Unknown Source)
  at sun.reflect.annotation.AnnotationParser.parseArray(Unknown Source)
  at sun.reflect.annotation.AnnotationParser.parseMemberValue(Unknown Source)
  at sun.reflect.annotation.AnnotationParser.parseAnnotation(Unknown Source)
  at sun.reflect.annotation.AnnotationParser.parseAnnotations2(Unknown Source)
  at sun.reflect.annotation.AnnotationParser.parseAnnotations(Unknown Source)
  at java.lang.Class.initAnnotationsIfNecessary(Unknown Source)
  at java.lang.Class.getAnnotation(Unknown Source)
  at com.feedoffice.FOEDataCache.initializeInternalListeners(FOEDataCache.java:34)
  at com.DataCache.&lt;init&gt;(DataCache.java:20)
  at com.feedoffice.FOEDataCache.&lt;init&gt;(FOEDataCache.java:16)
  at com.feedoffice.ClientDataCache.&lt;init&gt;(ClientDataCache.java:163)
  at com.ClientDataCache.&lt;clinit&gt;(ClientDataCache.java:171)
  at com.feedoffice.forms.FOENumericTextFieldFactory.&lt;init&gt;(FOENumericTextFieldFactory.java:14)
  at com.feedoffice.forms.FOENumericTextFieldFactory.getInstance(FOENumericTextFieldFactory.java:24)
  at com.feedoffice.FOEApplet.displayMenu(FOEApplet.java:282)
  at com.feedoffice.FOEApplet.loginWindowClosed(FOEApplet.java:215)
  at com.feedoffice.forms.AppLogin.submitButtonClicked(AppLogin.java:49)
  at com.feedoffice.forms.AppLogin.performSubmitAction(AppLogin.java:106)
  </code></pre>
  
  <p>Has anyone seen this and knows how to fix it?</p>