I figured out number 2 already. And yes, I understand that xdoclet has
nothing to do with startup. I was just wondering if the mapping pluging
was generating a bad mapping file, then it may have problems on startup.
It ended up that I was missing a mapping in the session factory.

As far as number 1, I changed to use the set tag instead of list, and it
works fine. I have a major deadline, so I'm going to move forward with a
set instead of a list, since my objects will be unique anyway. 

So I'm good on these. Thanks for the response...

Frank Russo
Senior Developer
FX Alliance, LLC


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Konstantin Priblouda
Sent: Thursday, August 31, 2006 4:03 AM
To: xdoclet-plugins-interest@lists.sourceforge.net
Subject: Re: [xdoclet-plugins-interest] 2 Problems with hibernate
mappingplugin



--- Frank Russo <[EMAIL PROTECTED]> wrote:

> 1) When I try to use the list tag, I get the following error:
> 
>       Caused by:
> org.apache.maven.plugin.MojoExecutionException:
> XDoclet plugin failed: PicoLifecycleException:
> method 'public abstract
> void org.picocontainer.Startable.start()', instance
>
'[EMAIL PROTECTED]
>
<mailto:'[EMAIL PROTECTED]>
> ,
> null
>               at
>
org.codehaus.xdoclet.XDocletMojo.execute(XDocletMojo.java:85)
>               at
>
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
> nager.java:415)
>               at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
> LifecycleExecutor.java:531)
>               ... 16 more
>       Caused by:
> org.picocontainer.PicoLifecycleException:
> PicoLifecycleException: method 'public abstract
>        void org.picocontainer.Startable.start()',
> instance
>
'[EMAIL PROTECTED]
>
<mailto:'[EMAIL PROTECTED]>
> ,
> null
>               at
>
org.picocontainer.monitors.DefaultComponentMonitor.lifecycleInvocationFa
> iled(DefaultComponentMonitor.java:43)
>               at
>
org.picocontainer.defaults.DefaultLifecycleStrategy.start(DefaultLifecyc
> leStrategy.java:49)
>               at
>
org.picocontainer.defaults.InstantiatingComponentAdapter.start(Instantia
> tingComponentAdapter.java:164)
>               at
>
org.picocontainer.defaults.DecoratingComponentAdapter.start(DecoratingCo
> mponentAdapter.java:154)
>               at
>
org.picocontainer.defaults.CachingComponentAdapter.start(CachingComponen
> tAdapter.java:85)
>               at
>
org.picocontainer.defaults.DecoratingComponentAdapter.start(DecoratingCo
> mponentAdapter.java:108)
>               at
>
org.picocontainer.defaults.DefaultPicoContainer$OrderedComponentAdapterL
> ifecycleManager.start(DefaultPicoContainer.java:660)
>               at
>
org.picocontainer.defaults.DefaultPicoContainer.start(DefaultPicoContain
> er.java:465)
>               at
>
org.nanocontainer.integrationkit.LifecycleContainerBuilder.autoStart(Lif
> ecycleContainerBuilder.java:52)
>               at
>
org.nanocontainer.integrationkit.LifecycleContainerBuilder.buildContaine
> r(LifecycleContainerBuilder.java:45)
>               at
>
org.codehaus.xdoclet.XDocletMojo.execute(XDocletMojo.java:76)
>               ... 18 more
>       Caused by: org.generama.OutputValidationError:
>          Line: 15 Column: 68
>          Message: Attribute "order-by" must be declared for element
type 
> "list".
>               at
>
org.generama.defaults.XMLOutputValidator.validate(XMLOutputValidator.jav
> a:97)
>               at
> org.generama.Plugin.start(Plugin.java:213)
>               at
>
org.picocontainer.defaults.DefaultLifecycleStrategy.start(DefaultLifecyc
> leStrategy.java:46)
>               ... 27 more
> 
> Here is my use of the tag, which includes the
> order-by: @hibernate.list
> lazy="true" order-by="SENDERCOMPID"

Well, this could be xml parser failing validation of hibernate mapping.
What versions of xd2, maven2plugin

& hibernate plugin you are using?

Please post your configuration.


You may also try 2.0.5-SNAPHOT / 1.0.4-SNAPSHOT - but beware of
configuration change ( I did not had time to document it properly yet) -
look into xdoclet-plugins for usage example

> 2) I'm getting the following error on startup of my app. I can't tell 
> if this is a Hibernate issue or if it's an XDoclet
> issue: 
XDoclet hs nothing to do with startup ;) 

org.springframework.beans.factory.BeanCreationException:
> Error
> creating bean with name 'sessionFactory' defined in
> ServletContext
> resource [/WEB-INF/applicationContext.xml]:
> Initialization of bean
> failed; nested exception is
> org.hibernate.MappingException: Association
> references unmapped class:
> admin.entity.ParticipantSenderCompID
>       org.hibernate.MappingException: Association
> references unmapped
> class: admin.entity.ParticipantSenderCompID
>               at
>
org.hibernate.cfg.HbmBinder.bindCollectionSecondPass(HbmBinder.java:2344
> )
>               at
>
org.hibernate.cfg.HbmBinder$CollectionSecondPass.secondPass(HbmBinder.ja
> va:2618)
>               at
>
org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass
> .java:35)
>               at
>
org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:101
> 6)
>               at
>
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1
> 172)
>               at
>
org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFac
> tory(LocalSessionFactoryBean.java:825)
> 


Well this means that you have forgot to add some
mapping toconfiguration of session factory. 


regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
Still using XDoclet 1.x?  XDoclet 2 is released and of production
quality.
check it out: http://xdoclet.codehaus.org

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

------------------------------------------------------------------------
-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
xdoclet-plugins-interest mailing list
xdoclet-plugins-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
xdoclet-plugins-interest mailing list
xdoclet-plugins-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to