It ends up I need to use a list for JSF. To answer your questions, I'm
using the versions you recommend. Here is my entry in maven2 pom:
<plugin>
<groupId>xdoclet</groupId>
<artifactId>maven2-xdoclet2-plugin</artifactId>
<version>2.0.5-SNAPSHOT</version>
<configuration>
<configs>
<config>
<plugin>org.xdoclet.plugin.hibernate.HibernateMappingPlugin</plugin>
<params>
<version>3.0</version>
<destdir>target/fxalladmin/WEB-INF/classes</destdir>
</params>
</config>
</configs>
</configuration>
<dependencies>
<dependency>
<groupId>xdoclet-plugins</groupId>
<artifactId>xdoclet-plugin-hibernate</artifactId>
<version>1.0.4-SNAPSHOT</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>xdoclet</goal>
</goals>
</execution>
</executions>
</plugin>
The error I'm getting again is:
Line: 15 Column: 69
Message: Attribute "order-by" must be declared for element type
"list".
Here are my xdoclet tags, where you can see I have an order-by:
@hibernate.list order-by="SENDERCOMPID" lazy="false"
@hibernate.key column="PARTICIPANT_ID"
@hibernate.one-to-many class="admin.entity.ParticipantSenderCompID"
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: [email protected]
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest