[ 
https://issues.apache.org/jira/browse/OWB-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16771720#comment-16771720
 ] 

Mark Struberg commented on OWB-1281:
------------------------------------

Indeed, completely forgot about it!

One can add a beans.xml with the following content:
{noformat}
<beans>
  <scan>
    <exclude>com.smartgwt.client.**</exclude>
  </scan>
</beans>
{noformat}

I'll add a logging-only for this case.

> java.lang.UnsatisfiedLinkError in scanner stops application deployment
> ----------------------------------------------------------------------
>
>                 Key: OWB-1281
>                 URL: https://issues.apache.org/jira/browse/OWB-1281
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.10
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>            Priority: Major
>             Fix For: 2.0.11
>
>
> {{java.lang.UnsatisfiedLinkError}} indicates that some JNI native 
> implementation cannot be found. This might happen if e.g. a corresponding 
> shared object (Linux .so) or shared library (Windows DLL) cannot be found by 
> the JVM for the native method. 
> Currently we blow up with an Exception:
> {noformat}
> java.lang.UnsatisfiedLinkError: 
> com.smartgwt.client.widgets.form.fields.SelectItem.init()V
>         at com.smartgwt.client.widgets.form.fields.SelectItem.init(Native 
> Method)
>         at 
> com.smartgwt.client.widgets.form.fields.SelectItem.<clinit>(SelectItem.java:2136)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:348)
>         at 
> org.apache.webbeans.util.ClassUtil.getClassFromName(ClassUtil.java:98)
>         at 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.getBeanClassesPerBda(AbstractMetaDataDiscovery.java:409)
>         at 
> org.apache.webbeans.config.BeansDeployer.annotatedTypesFromClassPath(BeansDeployer.java:1282)
>         at 
> org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:257)
>         at 
> org.apache.webbeans.lifecycle.AbstractLifeCycle.bootstrapApplication(AbstractLifeCycle.java:137)
>         at 
> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:103)
> {noformat}
> I'd say we should treat this the same way like a {{NoClassDefFoundError}} and 
> just ignore this very class.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to