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], null
        at org.codehaus.xdoclet.XDocletMojo.execute(XDocletMojo.java:85)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
        ... 16 more
Caused by: org.picocontainer.PicoLifecycleException: PicoLifecycleException: method 'public abstract
 void org.picocontainer.Startable.start()', instance '[EMAIL PROTECTED], null
        at org.picocontainer.monitors.DefaultComponentMonitor.lifecycleInvocationFailed(DefaultComponentMonitor.java:43)
        at org.picocontainer.defaults.DefaultLifecycleStrategy.start(DefaultLifecycleStrategy.java:49)
        at org.picocontainer.defaults.InstantiatingComponentAdapter.start(InstantiatingComponentAdapter.java:164)
        at org.picocontainer.defaults.DecoratingComponentAdapter.start(DecoratingComponentAdapter.java:154)
        at org.picocontainer.defaults.CachingComponentAdapter.start(CachingComponentAdapter.java:85)
        at org.picocontainer.defaults.DecoratingComponentAdapter.start(DecoratingComponentAdapter.java:108)
        at org.picocontainer.defaults.DefaultPicoContainer$OrderedComponentAdapterLifecycleManager.start(DefaultPicoContainer.java:660)
        at org.picocontainer.defaults.DefaultPicoContainer.start(DefaultPicoContainer.java:465)
        at org.nanocontainer.integrationkit.LifecycleContainerBuilder.autoStart(LifecycleContainerBuilder.java:52)
        at org.nanocontainer.integrationkit.LifecycleContainerBuilder.buildContainer(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.java:97)
        at org.generama.Plugin.start(Plugin.java:213)
        at org.picocontainer.defaults.DefaultLifecycleStrategy.start(DefaultLifecycleStrategy.java:46)
        ... 27 more
Here is my use of the tag, which includes the order-by: @hibernate.list lazy="true" order-by="SENDERCOMPID"
 
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:
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.java:2618)
        at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:35)
        at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1016)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1172)
        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:825)
Here is the generated hbm file for the class, ParticipantSenderCompID:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
 
<hibernate-mapping>
  <class mutable="true" proxy="admin.entity.ParticipantSenderCompID" table="PARTICIPANT_SENDERCOMPIDS" name="admin.entity.ParticipantSenderCompID">
    <composite-id class="admin.entity.ParticipantSenderCompIDPK" name="key">
      <key-property column="PARTICIPANT_ID" name="participantID"/>
      <key-property column="SENDERCOMPID" name="senderCompID"/>
    </composite-id>
    <property name="password" not-null="true" column="PASSWORD"/>
    <property name="active" type="yes_no" column="ACTIVE_FLAG"/>
  </class>
</hibernate-mapping>
The class with the one to many relationship has a generated hbm file as follows:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
 
<hibernate-mapping>
  <class mutable="true" proxy="admin.entity.Participant" table="PARTICIPANTS" name="admin.entity.Participant">
    <id column="PARTICIPANT_ID" name="participantID">
      <generator class="sequence"/>
    </id>
    <set lazy="true" order-by="SENDERCOMPID" name="senderCompIDs">
      <key column="PARTICIPANT_ID"/>
      <one-to-many class="admin.entity.ParticipantSenderCompID"/>
    </set>
  </class>
</hibernate-mapping>
FYI: Participant was working fine until I added the one to many relationship.
 
Thanks...

Frank Russo
Senior Developer
FX Alliance, LLC

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

Reply via email to