--- "Diogo Quintela (EF)" <[EMAIL PROTECTED]> wrote: > Weird, I made a clean rebuild with success. > Gregory, what's your status on plugin-ejb? Can you > build it right? > > maven -X gives any point ?
just a clean test failure due to XML validation. I'm attaching test output. 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 ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs
Testsuite: org.xdoclet.plugin.ejb.descriptor.v21.EjbJarXmlPluginTestCase Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.85 sec ------------- Standard Output --------------- Running org.xdoclet.plugin.ejb.descriptor.EjbJarXmlPlugin **** START GENERATED CONTENT **** <?xml version="1.0" encoding="ISO-8859-1"?> <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version="2.1" id="ejb_jar_1"> <enterprise-beans> <!--Enterprise Beans--> <entity id="entity_Account"> <description>This is part of the common test application for all ejb-related</description> <ejb-name>Account</ejb-name> <home>org.xdoclet.testapp.ejb.interfaces.AccountRemoteHome</home> <remote>org.xdoclet.testapp.ejb.interfaces.AccountRemote</remote> <local-home>org.xdoclet.testapp.ejb.interfaces.AccountLocalHome</local-home> <local>org.xdoclet.testapp.ejb.interfaces.AccountLocal</local> <!-- TODO: Suport endpoint, ie, JAX-RPC webservices. Needs a new generating plugin (just for session beans ?) <service-endpoint><XDtEjbIntf:componentInterface type="service-endpoint"/></service-endpoint> From XSD: The service-endpoint element may only be specified if the bean is a stateless session bean. --> <ejb-class>org.xdoclet.testapp.ejb.beans.AccountBean</ejb-class> <persistence-type>Container</persistence-type> <prim-key-class>org.xdoclet.testapp.ejb.util.AccountPK</prim-key-class> <reentrant>false</reentrant> <cmp-version>2.x</cmp-version> <abstract-schema-name>Account</abstract-schema-name> <cmp-field id="CMPAttribute_1"> <description>Version number for soft locking</description> <field-name>version</field-name> </cmp-field> <cmp-field id="CMPAttribute_2"> <description/> <field-name>number</field-name> </cmp-field> <cmp-field id="CMPAttribute_3"> <description>Gets the type</description> <field-name>type</field-name> </cmp-field> <!--Define your Ejb env entries in a file called ejb-env-entries-AccountBean.xml and place it in your merge directory. Overrides @ejb.env-entry's--> <!--Define your Ejb refs entries in a file called ejb-ejbrefs-AccountBean.xml and place it in your merge directory.--> <!--Define your resource references in a file called ejb-resourcerefs-AccountBean.xml and place it in your merge directory. Overrides @ejb.resource-ref's--> <!--Define your resource env references in a file called ejb-resource-env-refs-AccountBean.xml and place it in your merge directory. Overrides @ejb.resource-env-ref's--> <!--Define your Ejb destination refs entries in a file called ejb-destinationrefs-AccountBean.xml and place it in your merge directory. Overrides @ejb.destination-ref's--> <!--Define your Ejb security role refs entries in a file called ejb-sec-rolerefs-AccountBean.xml and place it in your merge directory. Overrides @ejb.security-role-ref's--> <query> <description>finderDesc1</description> <query-method> <method-name>findAll</method-name> <method-params/> </query-method> <result-type-mapping>Local</result-type-mapping> <ejb-ql>my EJBQL 1</ejb-ql> </query> <query> <query-method> <method-name>findAll</method-name> <method-params> <method-param>int[]</method-param> </method-params> </query-method> <result-type-mapping>Remote</result-type-mapping> <ejb-ql>my EJBQL 2</ejb-ql> </query> <query> <description>finderDesc3</description> <query-method> <method-name>findOther</method-name> <method-params> <method-param>java.lang.String</method-param> <method-param>java.lang.Integer</method-param> </method-params> </query-method> <ejb-ql/> </query> <query> <description>Dummy select</description> <query-method> <method-name>ejbSelectLargeStatements</method-name> <method-params/> </query-method> <result-type-mapping>Local</result-type-mapping> <ejb-ql>SELECT OBJECT(o) FROM Statement o WHERE o.value > 1000</ejb-ql> </query> <!--Define your extra finders in a file called ejb-finders-AccountBean.xml and place it in your merge directory.--> </entity> <entity id="entity_Client"> <description>This is part of the common test application for all ejb-related</description> <ejb-name>Client</ejb-name> <home>org.xdoclet.testapp.ejb.interfaces.ClientRemoteHome</home> <remote>org.xdoclet.testapp.ejb.interfaces.ClientRemote</remote> <local-home>org.xdoclet.testapp.ejb.interfaces.ClientLocalHome</local-home> <local>org.xdoclet.testapp.ejb.interfaces.ClientLocal</local> <!-- TODO: Suport endpoint, ie, JAX-RPC webservices. Needs a new generating plugin (just for session beans ?) <service-endpoint><XDtEjbIntf:componentInterface type="service-endpoint"/></service-endpoint> From XSD: The service-endpoint element may only be specified if the bean is a stateless session bean. --> <ejb-class>org.xdoclet.testapp.ejb.beans.ClientBean</ejb-class> <persistence-type>Container</persistence-type> <prim-key-class>org.xdoclet.testapp.ejb.util.ClientPK</prim-key-class> <reentrant>false</reentrant> <cmp-version>2.x</cmp-version> <abstract-schema-name>Client</abstract-schema-name> <cmp-field id="CMPAttribute_4"> <description/> <field-name>identityNumber</field-name> </cmp-field> <!--Define your Ejb env entries in a file called ejb-env-entries-ClientBean.xml and place it in your merge directory. Overrides @ejb.env-entry's--> <!--Define your Ejb refs entries in a file called ejb-ejbrefs-ClientBean.xml and place it in your merge directory.--> <!--Define your resource references in a file called ejb-resourcerefs-ClientBean.xml and place it in your merge directory. Overrides @ejb.resource-ref's--> <!--Define your resource env references in a file called ejb-resource-env-refs-ClientBean.xml and place it in your merge directory. Overrides @ejb.resource-env-ref's--> <!--Define your Ejb destination refs entries in a file called ejb-destinationrefs-ClientBean.xml and place it in your merge directory. Overrides @ejb.destination-ref's--> <!--Define your Ejb security role refs entries in a file called ejb-sec-rolerefs-ClientBean.xml and place it in your merge directory. Overrides @ejb.security-role-ref's--> <!--Define your extra finders in a file called ejb-finders-ClientBean.xml and place it in your merge directory.--> </entity> <message-driven id="message_driven_TransferReceiverBean"> <description>This is part of the common test application for all ejb-related</description> <ejb-name>TransferReceiverBean</ejb-name> <!-- TODO: Suport endpoint, ie, JAX-RPC webservices. Needs a new generating plugin (just for session beans ?) <service-endpoint><XDtEjbIntf:componentInterface type="service-endpoint"/></service-endpoint> From XSD: The service-endpoint element may only be specified if the bean is a stateless session bean. --> <ejb-class>org.xdoclet.testapp.ejb.beans.TransferReceiverBean</ejb-class> <messaging-type>javax.jms.MessageListener</messaging-type> <transaction-type>Container</transaction-type> <message-destination-type>javax.jms.Queue</message-destination-type> <activation-config> <activation-config-property> <activation-config-property-name>destinationType</activation-config-property-name> <activation-config-property-value>javax.jms.Queue</activation-config-property-value> </activation-config-property> <activation-config-property> <activation-config-property-name>acknowledgeMode</activation-config-property-name> <activation-config-property-value>Auto-acknowledge</activation-config-property-value> </activation-config-property> <activation-config-property> <activation-config-property-name>subscriptionDurability</activation-config-property-name> <activation-config-property-value>NonDurable</activation-config-property-value> </activation-config-property> <activation-config-property> <activation-config-property-name>messageSelector</activation-config-property-name> <activation-config-property-value>abc</activation-config-property-value> </activation-config-property> <activation-config-property> <activation-config-property-name>dumbName1</activation-config-property-name> <activation-config-property-value>dumbValue1</activation-config-property-value> </activation-config-property> <activation-config-property> <activation-config-property-name>dumbName2</activation-config-property-name> <activation-config-property-value>dumbValue2</activation-config-property-value> </activation-config-property> </activation-config> <!--Define your Ejb env entries in a file called ejb-env-entries-TransferReceiverBean.xml and place it in your merge directory. Overrides @ejb.env-entry's--> <env-entry> <env-entry-name>entryName1</env-entry-name> <env-entry-type>java.lang.String</env-entry-type> <env-entry-value>entryValue1</env-entry-value> </env-entry> <env-entry> <description>entryDesc</description> <env-entry-name>entryName2</env-entry-name> <env-entry-type>java.lang.Integer</env-entry-type> </env-entry> <!--Define your Ejb refs entries in a file called ejb-ejbrefs-TransferReceiverBean.xml and place it in your merge directory.--> <ejb-ref id="EJBRef_1"> <ejb-ref-name>ejb/AccountRemote</ejb-ref-name> <ejb-ref-type>Entity</ejb-ref-type> <home>org.xdoclet.testapp.ejb.interfaces.AccountRemoteHome</home> <remote>org.xdoclet.testapp.ejb.interfaces.AccountRemote</remote> <ejb-link>Account</ejb-link> </ejb-ref> <ejb-ref id="EJBRef_2"> <ejb-ref-name>ejb/OtherBean</ejb-ref-name> <ejb-ref-type>Entity</ejb-ref-type> <home>org.xdoclet.testapp.ejb.interfaces.OtherRemoteHome</home> <remote>org.xdoclet.testapp.ejb.interfaces.OtherRemote</remote> </ejb-ref> <ejb-ref id="EJBRef_3"> <ejb-ref-name>refField</ejb-ref-name> <ejb-ref-type>Entity</ejb-ref-type> <home>org.xdoclet.testapp.ejb.interfaces.OtherRemoteHome</home> <remote>org.xdoclet.testapp.ejb.interfaces.OtherRemote</remote> </ejb-ref> <ejb-local-ref id="EJBLocalRef_1"> <ejb-ref-name>ejb/AccountLocal</ejb-ref-name> <ejb-ref-type>Entity</ejb-ref-type> <local-home>org.xdoclet.testapp.ejb.interfaces.AccountLocalHome</local-home> <local>org.xdoclet.testapp.ejb.interfaces.AccountLocal</local> <ejb-link>Account</ejb-link> </ejb-local-ref> <service-ref id="EJBServiceRef_1"> <description>ServiceRefDesc</description> <service-ref-name>ServiceRefName</service-ref-name> <service-interface>ServiceRefClass</service-interface> <wsdl-file>ServiceRefFileURI</wsdl-file> <jaxrpc-mapping-file>jaxrp-file</jaxrpc-mapping-file> <service-qname>ServiceRefQName</service-qname> <!--TODO: port-component-ref and handler are still missing--> </service-ref> <service-ref id="EJBServiceRef_2"> <description>ServiceRefDesc</description> <service-ref-name>refField</service-ref-name> <service-interface>java.lang.String</service-interface> <jaxrpc-mapping-file>jaxrp-file</jaxrpc-mapping-file> <!--TODO: port-component-ref and handler are still missing--> </service-ref> <!--Define your resource references in a file called ejb-resourcerefs-TransferReceiverBean.xml and place it in your merge directory. Overrides @ejb.resource-ref's--> <resource-ref id="ResRef_1"> <description>ResRefDescription1</description> <res-ref-name>ResRefName1</res-ref-name> <res-type>ResRefType1</res-type> <res-auth>Container</res-auth> <res-sharing-scope>Shareable</res-sharing-scope> </resource-ref> <resource-ref id="ResRef_2"> <description>ResRefDescription2</description> <res-ref-name>ResRefName2</res-ref-name> <res-type>ResRefType2</res-type> <res-auth>Container</res-auth> <res-sharing-scope>Unshareable</res-sharing-scope> </resource-ref> <resource-ref id="ResRef_3"> <description>ResRefDescription2</description> <res-ref-name>refField</res-ref-name> <res-type>java.lang.String</res-type> <res-auth>Application</res-auth> <res-sharing-scope>Shareable</res-sharing-scope> </resource-ref> <!--Define your resource env references in a file called ejb-resource-env-refs-TransferReceiverBean.xml and place it in your merge directory. Overrides @ejb.resource-env-ref's--> <resource-env-ref id="ResEnvRef_1"> <description>ResEnvRefDescription1</description> <resource-env-ref-name>ResEnvRefName1</resource-env-ref-name> <resource-env-ref-type>ResEnvRefType1</resource-env-ref-type> </resource-env-ref> <resource-env-ref id="ResEnvRef_2"> <resource-env-ref-name>refField</resource-env-ref-name> <resource-env-ref-type>java.lang.String</resource-env-ref-type> </resource-env-ref> <!--Define your Ejb destination refs entries in a file called ejb-destinationrefs-TransferReceiverBean.xml and place it in your merge directory. Overrides @ejb.destination-ref's--> <message-destination-ref> <description>refDesc</description> <message-destination-ref-name>refName1</message-destination-ref-name> <message-destination-type>refType1</message-destination-type> <message-destination-usage>Produces</message-destination-usage> <message-destination-link>refLink</message-destination-link> </message-destination-ref> <message-destination-ref> <message-destination-ref-name>refName2</message-destination-ref-name> <message-destination-type>refType2</message-destination-type> <message-destination-usage>Consumes</message-destination-usage> </message-destination-ref> <security-identity> <run-as> <description>secDescription1</description> <role-name>secRunAs1</role-name> </run-as> </security-identity> </message-driven> <!--To add session beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called session-beans.xml that contains the <session></session> markup for those beans.--> <!--To add entity beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called entity-beans.xml that contains the <entity></entity> markup for those beans.--> <!--To add message driven beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called message-driven-beans.xml that contains the <message-driven></message-driven> markup for those beans.--> </enterprise-beans> <relationships id="Relationships_1"> <ejb-relation id="EJBRelation_1"> <ejb-relation-name>user-accounts</ejb-relation-name> <ejb-relationship-role id="EJBRelationshipRole_1"> <ejb-relationship-role-name>admin</ejb-relationship-role-name> <multiplicity>Many</multiplicity> <relationship-role-source id="RoleSource_1"> <ejb-name>Account</ejb-name> </relationship-role-source> <cmr-field id="CMRField_1"> <cmr-field-name>owners</cmr-field-name> <cmr-field-type>java.util.Collection</cmr-field-type> </cmr-field> </ejb-relationship-role> <ejb-relationship-role id="EJBRelationshipRole_2"> <ejb-relationship-role-name>user</ejb-relationship-role-name> <multiplicity>Many</multiplicity> <relationship-role-source id="RoleSource_2"> <ejb-name>Client</ejb-name> </relationship-role-source> <cmr-field id="CMRField_2"> <cmr-field-name>accounts</cmr-field-name> <cmr-field-type>java.util.Collection</cmr-field-type> </cmr-field> </ejb-relationship-role> </ejb-relation> <!--To add relationships for beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called relationships.xml that contains the <ejb-relation></ejb-relation> markup for those beans.--> </relationships> <!--To specify your own assembly descriptor info here, add a file to your XDoclet merge directory called assembly-descriptor.xml that contains the <assembly-descriptor></assembly-descriptor> markup. Overrides xdoclet generation.--> <assembly-descriptor id="AssemblyDescriptor_1"> <!--To specify additional security-role elements, add a file in the merge directory called ejb-security-roles.xml that contains them.--> <security-role> <description>Description not supported yet</description> <role-name>admin</role-name> </security-role> <security-role> <description>Description not supported yet</description> <role-name>myRole1</role-name> </security-role> <security-role> <description>Description not supported yet</description> <role-name>myRole2</role-name> </security-role> <security-role> <description>Description not supported yet</description> <role-name>myRole3</role-name> </security-role> <security-role> <description>Description not supported yet</description> <role-name>normal-role</role-name> </security-role> <security-role> <description>Description not supported yet</description> <role-name>user-role</role-name> </security-role> <!--To specify additional method-permission elements, add a file in the merge directory called ejb-method-permissions.xml that contains them.--> <method-permission id="MethodPermission_1"> <description>Description not supported yet</description> <role-name>normal-role</role-name> <method id="MethodElement_1"> <description>Description not supported yet</description> <ejb-name>Account</ejb-name> <method-intf>Remote</method-intf> <method-name>*</method-name> </method> </method-permission> <method-permission id="MethodPermission_2"> <description>Description not supported yet</description> <role-name>normal-role</role-name> <method id="MethodElement_2"> <description>Description not supported yet</description> <ejb-name>Account</ejb-name> <method-intf>Home</method-intf> <method-name>*</method-name> </method> </method-permission> <method-permission id="MethodPermission_3"> <description>Description not supported yet</description> <role-name>normal-role</role-name> <method id="MethodElement_3"> <description>Description not supported yet</description> <ejb-name>Account</ejb-name> <method-intf>Local</method-intf> <method-name>*</method-name> </method> </method-permission> <method-permission id="MethodPermission_4"> <description>Description not supported yet</description> <role-name>normal-role</role-name> <method id="MethodElement_4"> <description>Description not supported yet</description> <ejb-name>Account</ejb-name> <method-intf>LocalHome</method-intf> <method-name>*</method-name> </method> </method-permission> <method-permission id="MethodPermission_5"> <description>Description not supported yet</description> <role-name>admin</role-name> <method id="MethodElement_5"> <description>Description not supported yet</description> <ejb-name>Account</ejb-name> <method-intf>Local</method-intf> <method-name>getOwners</method-name> </method> </method-permission> <method-permission id="MethodPermission_6"> <description>Description not supported yet</description> <role-name>admin</role-name> <method id="MethodElement_6"> <description>Description not supported yet</description> <ejb-name>Account</ejb-name> <method-intf>LocalHome</method-intf> <method-name>getOwners</method-name> </method> </method-permission> <method-permission id="MethodPermission_7"> <description>Description not supported yet</description> <role-name>user-role</role-name> <method id="MethodElement_7"> <description>Description not supported yet</description> <ejb-name>Account</ejb-name> <method-intf>Remote</method-intf> <method-name>getNumber</method-name> </method> </method-permission> <method-permission id="MethodPermission_8"> <description>Description not supported yet</description> <role-name>myRole1</role-name> <method id="MethodElement_8"> <description>Description not supported yet</description> <ejb-name>Account</ejb-name> <method-intf>LocalHome</method-intf> <method-name>findAll</method-name> </method> </method-permission> <method-permission id="MethodPermission_9"> <description>Description not supported yet</description> <role-name>myRole2</role-name> <method id="MethodElement_9"> <description>Description not supported yet</description> <ejb-name>Account</ejb-name> <method-intf>Home</method-intf> <method-name>findAll</method-name> </method> </method-permission> <method-permission id="MethodPermission_10"> <description>Description not supported yet</description> <role-name>myRole3</role-name> <method id="MethodElement_10"> <description>Description not supported yet</description> <ejb-name>Account</ejb-name> <method-intf>Home</method-intf> <method-name>findOther</method-name> </method> </method-permission> <method-permission id="MethodPermission_11"> <description>Description not supported yet</description> <role-name>myRole3</role-name> <method id="MethodElement_11"> <description>Description not supported yet</description> <ejb-name>Account</ejb-name> <method-intf>LocalHome</method-intf> <method-name>findOther</method-name> </method> </method-permission> <method-permission id="MethodPermission_12"> <description>Description not supported yet</description> <role-name>admin</role-name> <method id="MethodElement_12"> <description>Description not supported yet</description> <ejb-name>Account</ejb-name> <method-intf>Home</method-intf> <method-name>findByPrimaryKey</method-name> </method> </method-permission> <method-permission id="MethodPermission_13"> <description>Description not supported yet</description> <role-name>admin</role-name> <method id="MethodElement_13"> <description>Description not supported yet</description> <ejb-name>Account</ejb-name> <method-intf>LocalHome</method-intf> <method-name>findByPrimaryKey</method-name> </method> </method-permission> <!--To specify additional container-transaction elements, add a file in the merge directory called ejb-container-transactions.xml that contains them.--> <!--TODO: HERERRERERER asm-descriptor.jelly--> </assembly-descriptor> <!--TODO: asm-descriptor.jelly--> </ejb-jar> **** END GENERATED CONTENT **** ------------- ---------------- --------------- ------------- Standard Error ----------------- log4j:WARN No appenders could be found for logger (org.apache.commons.jelly.parser.XMLParser). log4j:WARN Please initialize the log4j system properly. File sinkWriter did not pass validation: Line: 3 Column: -1 Message: Element type "ejb-jar" is not declared. ------------- ---------------- --------------- Testcase: testGenerateContent(org.xdoclet.plugin.ejb.descriptor.v21.EjbJarXmlPluginTestCase): Caused an ERROR Line: 3 Column: -1 Message: Element type "ejb-jar" is not declared. org.generama.OutputValidationError: Line: 3 Column: -1 Message: Element type "ejb-jar" is not declared. at org.generama.defaults.XMLOutputValidator.validate(XMLOutputValidator.java:97) at org.generama.Plugin.start(Plugin.java:209) at org.xdoclet.plugin.ejb.descriptor.EjbJarXmlPlugin.start(EjbJarXmlPlugin.java:257) at org.generama.tests.AbstractPluginTestCase.testGenerateContent(AbstractPluginTestCase.java:27) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)