<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: JNDI Lookup fails with an ArrayStoreException
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/rsherzad">Rias A. Sherzad</a> in <i>EJB3</i> - <a href="http://community.jboss.org/message/635789#635789">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Here's the <span style="font-family: 'courier new', courier;">myapp-kernel-1.0-SNAPSHOT.ear/META-INF/application.xml</span>, in case it matters:</p><pre class="jive-pre"><code class="jive-code jive-xml"><span class="jive-xml-tag"><?xml version="1.0" encoding="UTF-8"?></span>
<span class="jive-xml-tag"><span><application xmlns="</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee" target="_blank">http://java.sun.com/xml/ns/javaee</a><span>" xmlns:xsi="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>" xsi:schemaLocation="</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee" target="_blank">http://java.sun.com/xml/ns/javaee</a><span> </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee/application_5.xsd" target="_blank">http://java.sun.com/xml/ns/javaee/application_5.xsd</a><span>" version="5"></span></span>
  <span class="jive-xml-tag"><display-name></span>myapp-kernel<span class="jive-xml-tag"></display-name></span>
  <span class="jive-xml-tag"><module></span>
    <span class="jive-xml-tag"><connector></span>myapp-kernel-service-1.0-SNAPSHOT.sar<span class="jive-xml-tag"></connector></span>
  <span class="jive-xml-tag"></module></span>
  <span class="jive-xml-tag"><module></span>
    <span class="jive-xml-tag"><ejb></span>myapp-kernel-ejb-1.0-SNAPSHOT.jar<span class="jive-xml-tag"></ejb></span>
  <span class="jive-xml-tag"></module></span>
  <span class="jive-xml-tag"><library-directory></span>lib/<span class="jive-xml-tag"></library-directory></span>
<span class="jive-xml-tag"></application></span>
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>This is the list of libraries in that <span style="font-family: 'courier new', courier;">.EAR</span>'s <span style="font-family: 'comic sans ms', sans-serif;">/lib/</span>-folder:</p><pre class="jive-pre"><code class="jive-code">Content of ...\jboss-6.1.0.Final\server\default\deploy\myapp-kernel-1.0-SNAPSHOT.ear\lib
   65.536 activation-1.1.jar
   49.152 ajaxanywhere-1.2-rc2.jar
1.290.240 ant-1.7.0.jar
   12.288 ant-launcher-1.7.0.jar
   45.056 asm-3.3.jar
   40.960 asm-commons-3.3.jar
   24.576 asm-tree-3.3.jar
  339.968 avro-1.3.3.jar
  622.592 baseframework-1.0.jar (our own library, with a few helper classes)
  167.936 binding-2.0.6.jar
  282.624 bsh-2.0b4.jar
  217.088 camel-jonas5-jsch-1.1.1.jar
  192.512 commons-beanutils-1.7.0.jar
   45.056 commons-cli-1.2.jar
   61.440 commons-codec-1.4.jar
  561.152 commons-collections-3.1.jar
  114.688 commons-el-1.0.jar
   32.768 commons-email-1.2.jar
   61.440 commons-fileupload-1.2.2.jar
  307.200 commons-httpclient-3.1.jar
  159.744 commons-io-2.0.1.jar
  282.624 commons-lang-2.5.jar
   61.440 commons-logging-1.1.1.jar
  212.992 commons-net-2.2.jar
  221.184 displaytag-1.2.jar
  118.784 forms-1.2.1.jar
  925.696 freemarker-2.3.18.jar
  937.984 guava-r06.jar
2.711.552 hadoop-core-0.20-append-r1056497.jar
2.355.200 hbase-0.90.3.jar
  290.816 htmlparser-1.6.jar
1.146.880 itext-1.3.jar
  151.552 jackson-core-asl-1.4.2.jar
  389.120 jackson-mapper-asl-1.4.2.jar
   90.112 jaxb-api-2.1.jar
1.310.720 jboss-aop-2.0.0.GA.jar
  544.768 jboss-common-core-2.2.14.GA.jar
   24.576 jboss-logging-log4j-2.0.5.GA.jar
   12.288 jboss-logging-spi-2.0.5.GA.jar
  176.128 jboss-mdr-2.0.0.GA.jar
  208.896 jboss-reflect-2.0.0.GA.jar
1.175.552 jbosscache-core-3.2.7.GA.jar
  192.512 jbosscache-pojo-3.0.0.GA.jar
   16.384 jcl104-over-slf4j-1.4.2.jar
   32.768 jcommander-1.12.jar
  540.672 jetty-6.1.26.jar
  180.224 jetty-util-6.1.26.jar
2.125.824 jgroups-2.6.13.GA.jar
  208.896 jsch-0.1.41.jar
   49.152 jsr311-api-1.1.1.jar
1.499.136 jtstand-chart-1.4.4.jar
  512.000 jtstand-common-1.4.4.jar
  122.880 junit-3.8.1.jar
  483.328 log4j-1.2.16.jar
  450.560 mail-1.4.1.jar
  790.528 mysql-connector-java-5.1.18.jar
  229.376 ognl-3.0.3.jar
1.675.264 poi-3.7.jar
  331.776 protobuf-java-2.3.0.jar
   98.304 qdox-1.6.1.jar
  135.168 servlet-api-2.5-6.1.14.jar
  106.496 servlet-api-2.5.jar
  323.584 simple-xml-2.4.1.jar
   16.384 slf4j-api-1.4.2.jar
   12.288 slf4j-log4j12-1.4.2.jar
  233.472 snakeyaml-1.6.jar
  778.240 struts2-core-2.3.1-SNAPSHOT.jar
  598.016 testng-6.2.1.jar
  188.416 thrift-0.2.0.jar
  364.544 trove-2.1.1.jar
   16.384 xmlenc-0.52.jar
  622.592 xwork-core-2.3.1-SNAPSHOT.jar
  602.112 zookeeper-3.3.2.jar
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>And this is the content of the <span style="font-family: 'courier new', courier;">.WAR</span> files' <span style="font-family: 'courier new', courier;">/lib/</span>-folder (I have <strong style="color: #ff0000;">highlighted</strong> the <span style="font-family: 'courier new', courier;">.JAR</span> with the EJBs that need to be packaged in here):</p><pre class="jive-pre"><code class="jive-code">Content of ...\jboss-6.1.0.Final\server\default\deploy\myapp-portal.war\WEB-INF\lib
   65.536 activation-1.1.jar
   49.152 ajaxanywhere-1.2-rc2.jar
1.290.240 ant-1.7.0.jar
   12.288 ant-launcher-1.7.0.jar
   45.056 asm-3.3.jar
   40.960 asm-commons-3.3.jar
   24.576 asm-tree-3.3.jar
  339.968 avro-1.3.3.jar
  622.592 baseframework-1.0.jar (our own library, with a few helper classes)
  167.936 binding-2.0.6.jar
  282.624 bsh-2.0b4.jar
  217.088 camel-jonas5-jsch-1.1.1.jar
  233.472 commons-beanutils-1.8.0.jar
   45.056 commons-cli-1.2.jar
   32.768 commons-codec-1.2.jar
  561.152 commons-collections-3.1.jar
  151.552 commons-digester-2.0.jar
  114.688 commons-el-1.0.jar
   32.768 commons-email-1.2.jar
   32.768 commons-fileupload-1.1.1.jar
  307.200 commons-httpclient-3.1.jar
  159.744 commons-io-2.0.1.jar
  282.624 commons-lang-2.5.jar
   61.440 commons-logging-1.1.1.jar
  212.992 commons-net-2.2.jar
  221.184 displaytag-1.2.jar
  118.784 forms-1.2.1.jar
  925.696 freemarker-2.3.18.jar
  937.984 guava-r06.jar
2.711.552 hadoop-core-0.20-append-r1056497.jar
2.355.200 hbase-0.90.3.jar
  290.816 htmlparser-1.6.jar
1.146.880 itext-1.3.jar
  151.552 jackson-core-asl-1.4.2.jar
  389.120 jackson-mapper-asl-1.4.2.jar
  614.400 javassist-3.11.0.GA.jar
   90.112 jaxb-api-2.1.jar
1.310.720 jboss-aop-2.0.0.GA.jar
  544.768 jboss-common-core-2.2.14.GA.jar
   24.576 jboss-logging-log4j-2.0.5.GA.jar
   12.288 jboss-logging-spi-2.0.5.GA.jar
  176.128 jboss-mdr-2.0.0.GA.jar
  208.896 jboss-reflect-2.0.0.GA.jar
1.175.552 jbosscache-core-3.2.7.GA.jar
  192.512 jbosscache-pojo-3.0.0.GA.jar
   16.384 jcl104-over-slf4j-1.4.2.jar
   32.768 jcommander-1.12.jar
  540.672 jetty-6.1.26.jar
  180.224 jetty-util-6.1.26.jar
2.125.824 jgroups-2.6.13.GA.jar
  208.896 jsch-0.1.41.jar
   49.152 jsr311-api-1.1.1.jar
1.499.136 jtstand-chart-1.4.4.jar
  512.000 jtstand-common-1.4.4.jar
  122.880 junit-3.8.1.jar
  483.328 log4j-1.2.16.jar
  450.560 mail-1.4.1.jar
  790.528 mysql-connector-java-5.1.18.jar
  229.376 ognl-3.0.3.jar
   69.632 packtag-3.7.jar
1.675.264 poi-3.7.jar
  331.776 protobuf-java-2.3.0.jar
   98.304 qdox-1.6.1.jar
  135.168 servlet-api-2.5-6.1.14.jar
  323.584 simple-xml-2.4.1.jar
   16.384 slf4j-api-1.4.2.jar
   12.288 slf4j-log4j12-1.4.2.jar
  233.472 snakeyaml-1.6.jar
  778.240 struts2-core-2.3.1-20111101.224904-48.jar
   24.576 struts2-tiles-plugin-2.2.3.1.jar
  598.016 testng-6.2.1.jar
  188.416 thrift-0.2.0.jar
   36.864 tiles-api-2.2.2.jar
  163.840 tiles-core-2.2.2.jar
   53.248 tiles-jsp-2.2.2.jar
   61.440 tiles-servlet-2.2.2.jar
   24.576 tiles-template-2.2.2.jar
  364.544 trove-2.1.1.jar
  167.936 myapp-kernel-ejb-1.0-SNAPSHOT.jar
   16.384 xmlenc-0.52.jar
  622.592 xwork-core-2.3.1-20111101.225006-48.jar
  602.112 zookeeper-3.3.2.jar
</code></pre></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/635789#635789">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in EJB3 at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>