<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Emily,<br>
<br>
see the JavaDoc here:
<a class="moz-txt-link-freetext" href="http://docs.jboss.org/weld/javadoc/2.2/weld-spi/org/jboss/weld/bootstrap/spi/Deployment.html#loadBeanDeploymentArchive-java.lang.Class">http://docs.jboss.org/weld/javadoc/2.2/weld-spi/org/jboss/weld/bootstrap/spi/Deployment.html#loadBeanDeploymentArchive-java.lang.Class</a>-<br>
<br>
Specifically, it says:<br>
<br>
"
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<span style="color: rgb(71, 71, 71); font-family: 'DejaVu Serif',
Georgia, 'Times New Roman', Times, serif; font-size: 14px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 19.6000003814697px; orphans:
auto; text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display: inline !important; float:
none; background-color: rgb(255, 255, 255);">If the deployment
archive containing the given class is not currently a bean
deployment archive, it must be added to the bean deployment
archive graph and returned.</span>"<br>
<br>
Therefore, even though the given class is not part of an existing
bean archive, it should be handled by the integrator, added to the
bean archive graph and returned from the method.<br>
<br>
HTH,<br>
<br>
Jozef<br>
<br>
<div class="moz-cite-prefix">On 05/24/2015 09:58 AM, Emily Jiang
wrote:<br>
</div>
<blockquote
cite="mid:CAECq3A-L5hu6GWV0uM9t_V0++OMcHBKmtUQ4ouMD=QmeW_yRxg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>I'm trying to run the cdi tck but got an error for the
following test:<br>
In the test:
org.jboss.cdi.tck.tests.definition.bean.custom.CustomBeanImplementationTest<br>
Method: arquillianBeforeClass<br>
<br>
<br>
<br>
Caused by: org.jboss.weld.exceptions.IllegalStateException:
WELD-000817: Unable to find Bean Deployment Archive for class
java.lang.Integer<br>
at
org.jboss.weld.util.DeploymentStructures.getOrCreateBeanDeployment(DeploymentStructures.java:39)<br>
at
org.jboss.weld.bootstrap.events.AbstractBeanDiscoveryEvent.getOrCreateBeanDeployment(AbstractBeanDiscoveryEvent.java:70)<br>
at
org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.processBean(AfterBeanDiscoveryImpl.java:86)<br>
at
org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.finish(AfterBeanDiscoveryImpl.java:186)<br>
... 15 more<br>
<br>
</div>
<div>It seems that Custom bean was added by an extension but the
bean implements Bean<Integer>. Surely the
java.lang.Interger should not be any bean archives. Can
someone tell me what I might done wrong? Will integrator need
to do something to cater for all of the java.x classes or Weld
should handle this?<br>
</div>
<div>
<div><br>
-- <br>
<div class="gmail_signature">Thanks<br>
Emily<br>
=================<br>
Emily Jiang<br>
<a moz-do-not-send="true" href="mailto:ejiang@apache.org"
target="_blank">ejiang@apache.org</a><br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
weld-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/weld-dev">https://lists.jboss.org/mailman/listinfo/weld-dev</a></pre>
</blockquote>
<br>
</body>
</html>