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>:
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]

Reply via email to