[jboss-jira] [JBoss JIRA] Commented: (JBAS-5173) Bug with whitespace in jboss-web.xml
Richard Huddleston (JIRA)
jira-events at lists.jboss.org
Wed Jul 2 21:56:32 EDT 2008
[ http://jira.jboss.com/jira/browse/JBAS-5173?page=comments#action_12419727 ]
Richard Huddleston commented on JBAS-5173:
------------------------------------------
I encountered a similar issue while configuring a mysql data source:
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
vs
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
</exception-sorter-class-name>
i don't know how i finally realized it ... but eventually it just came to me. a hint was in the exception when it said:
java.lang.ClassNotFoundException: org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
from Base ...
and it had the line break after the class name.
i use an XML formatter that i assume like the poster likes to wrap in this manner.
looks like jboss needs to put some more String.trim() calls in.
> Bug with whitespace in jboss-web.xml
> ------------------------------------
>
> Key: JBAS-5173
> URL: http://jira.jboss.com/jira/browse/JBAS-5173
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: EJB3
> Affects Versions: JBossAS-5.0.0.Beta3
> Reporter: Javid Jamae
> Assigned To: Carlo de Wolf
> Priority: Minor
>
> I discovered a bug when you have whitespace in jboss-web.xml in JBoss 5.0.0.Beta3. I have a simple JSF application, and when I use the following, my application works fine:
> [code]
> <ejb-local-ref>
> <ejb-ref-name>ejb/Calculator</ejb-ref-name>
> <local-jndi-name>calculator/StatelessCalculatorBean/local</local-jndi-name>
> </ejb-local-ref>
> [/code]
> But, when I use this (with the local-jndi-name defined on a separate line from its enclosing and closing tags and three tabs in front of the name) then it seems like the local interface does not get bound.
> [code]
> <ejb-local-ref>
> <ejb-ref-name>ejb/Calculator</ejb-ref-name>
> <local-jndi-name>
> calculator/StatelessCalculatorBean/local
> </local-jndi-name>
> </ejb-local-ref>
> [/code]
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list