"jaikiran" wrote : 
  | Looks like a bug in the persistence.xml parsing. The newline (and maybe 
even the leading and trailing space) doesn't seem to be trimmed while parsing 
the jta-data-source element.
  | 
  | <jta-data-source>java:studProjectDS</jta-data-source>
  | 

The change that i mentioned should work. But i don't think its a bug in 
parsing. I just read the persistence xsd 
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd

 <xsd:element name="jta-data-source" type="xsd:string" 
  |                            minOccurs="0">
  | 

The type is defined as xsd:string which allows newlines, leading and trailing 
space etc... So i think, the parser which converts this xml should let the 
newlines remain as is. It's upto the user to specify the correct value.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199474#4199474

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199474
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to