On 04/06/2007, at 10:48 PM, Jeff Mutonho wrote:
On 6/4/07, Stephen Coy <[EMAIL PROTECTED]> wrote:
On 04/06/2007, at 9:43 PM, Jeff Mutonho wrote:
Anyway, I would not mind betting that your bean has been marked up
with something like:
@hibernate.class
lazy="true"
Correct.
Are you worried about the markup differences or something else?
Well , when I deploy ear file , I get an exception that relates to
"lazy=true".The actual exception is
Error creating bean with name
'mySessionFactory' defined in ServletContext resource
[/WEB-INF/appcontext/databaseContext.xml]: Initialization of bean
failed; nested
exception is net.sf.hibernate.MappingException: invalid mapping
Caused by: org.xml.sax.SAXParseException: <Line 58, Column 25>:
Does this point at:
<class
name="za.co.telkom.portal.Person"
lazy="true"
>
?
If so, does the mapping file have a DOCTYPE? The "lazy" attribute
appears in the Hibernate 2.0 DTD, so it should be OK.
The other alternative is to remove the markup from the java class/es
because xdoclet 1.2.1 was ignoring it anyway.
Steve Coy
XML-20137: (Error) Attribute 'lazy' used but not declared.
at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:
441)
at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:303)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument
(NonValidatingParser.java:290)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:196)
at org.dom4j.io.SAXReader.read(SAXReader.java:465)
at net.sf.hibernate.cfg.Configuration.addInputStream
(Configuration.java:283)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]