Bugs item #436550, was opened at 2001-06-26 15:51 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=436550&group_id=22866 Category: JBossServer Group: v2.2 (stable) Status: Open Resolution: None Priority: 5 Submitted By: Sebastien Sahuc (ssahuc) Assigned to: Nobody/Anonymous (nobody) Summary: ClassCastException for ENC retrieval Initial Comment: When using the ORIGINAL Weblogic Bean example into JBoss, A ClassCastException is thrown by the bean at the following line : Integer tl = (Integer) ic.lookup ("java:/comp/env/tradeLimit"); An this, simply because the Envirnment entry is declared in ejb-jar.xml with a SPACE char, as shown below : [...] <env-entry> <env-entry-name>tradeLimit</env-entry-name> <env-entry-type>java.lang.Integer </env-entry-type> <!-- ^ --> <!-- | --> <!-- | --> <!-- Notice the SPACE Char causing the issue --> <env-entry-value>500</env-entry-value> </env-entry> Thus removing the SPACE char resolved the exception. So my guess is that the value should be trim() before being actually resolved into a java class !!! Thanks, Sebastien ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=436550&group_id=22866 _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
