-
1. Re: persistence.xml
persabi Mar 24, 2006 9:37 AM (in response to udo.krass)Hi, curious to know if you made any progress on this?
-
2. Re: persistence.xml
mshpigel Mar 24, 2006 11:59 AM (in response to udo.krass)I had similar problem.
I removed first line:<?xml version="1.0" encoding="UTF-8"?>
as well as the <xml_body> tags and everything started working.
Seems like a bug to me -
3. Re: persistence.xml
bill.burke Mar 24, 2006 2:23 PM (in response to udo.krass)fixed in head...last version required schema bindings.
-
4. Re: persistence.xml
epbernard Mar 25, 2006 10:10 AM (in response to udo.krass)The proper fix though is to use a schema def
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0"> -
5. Re: persistence.xml
elkner Mar 25, 2006 12:21 PM (in response to udo.krass)Or just to switch validation off ?
-
6. Re: persistence.xml
epbernard Mar 25, 2006 1:47 PM (in response to udo.krass)Switching the validation off is dangerous actually cause the way HEM and JBoss EJB3 parse the file makes the schema errors transparent and very hard to track down
-
7. Re: persistence.xml
elkner Mar 25, 2006 3:53 PM (in response to udo.krass)For test environment OK. But for production (i.e. when I'm sure, everything is fine), I do not want to have a ... fetching something from somewhere (even if it is a schema, only) and slowing down the things by validating already validated stuff ...
-
8. Re: persistence.xml
bill.burke Mar 26, 2006 9:10 AM (in response to udo.krass)...but code doesn't require the schema anymore. It won't validate if you don't provide the schema to validate with.
-
9. Re: persistence.xml
bill.burke Mar 26, 2006 9:15 AM (in response to udo.krass)schema parsing is a very low percentage compared to other stuff HEM has to do in startup. I've done the profiling...