-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
oops, i forgot to write my problem. If i deploy the application i got the
following log:
- --- snip ---
2003-07-22 15:14:22,188 DEBUG [org.jboss.ejb.EJBDeployer.verifier] Bean
checked: Mitarbeiter: Verified.
2003-07-22 15:14:22,298 DEBUG [org.jboss.ejb.EJBDeployer.verifier] Bean
checked: Leistung: Verified.
2003-07-22 15:14:22,438 WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec
violation:
Bean : Type
Method : public abstract TypeLocal findByType(String) throws FinderException
Section: 10.5.6
Warning: Every finder method except findByPrimaryKey(key) must be associated
with a query element in the deployment descriptor.
- --- snip ---
but the query element is always there.
> i am using jboss-3.2.1 (jdk1.4.1_02) with xdoclet-1.2b3 (jdk1.4.2) under
> Windows 2000.
>
> I am creating a bean with the name 'Type'. For this bean i want to create
> a finder called findByType.
>
> --- snip ---
> * @ejb:bean name="Type"
> * type="CMP"
> * jndi-name="ejb/Type"
> * view-type="local"
> * primkey-field="id"
> --- snip ---
>
> The Tags are looking good, i tink:
>
> --- snip ---
> * @ejb.finder signature="de.oblgmbh.wb.meta.interfaces.TypeLocal
> findByType(String type)"
> * query="SELECT OBJECT(o) FROM Type AS o WHERE o.type = ?1"
> * role-name="Administrator,User"
> * transaction-type="Supports"
> --- snip ---
>
> The generated Home interface looks good and the generated ejb-jar.xml looks
> good,
> too.
>
> --- snip ---
> /*
> * Generated by XDoclet - Do not edit!
> */
> package de.oblgmbh.wb.meta.interfaces;
>
> /**
> * Local home interface for Type.
> * @see Type
> * @see de.oblgmbh.wb.meta.client.beans.TypeClient
> * @xdoclet-generated at 22.07.2003
> */
> public interface TypeLocalHome
> extends javax.ejb.EJBLocalHome
> {
> public static final String COMP_NAME="java:comp/env/ejb/TypeLocal";
> public static final String JNDI_NAME="TypeLocal";
>
> public de.oblgmbh.wb.meta.interfaces.TypeLocal
> create(de.oblgmbh.wb.meta.interfaces.MandantLocal mand ,
> java.lang.String type)
> throws javax.ejb.CreateException;
>
> public de.oblgmbh.wb.meta.interfaces.TypeLocal
> create(de.oblgmbh.wb.meta.interfaces.TypeValue value)
> throws javax.ejb.CreateException;
>
> public java.util.Collection findAll()
> throws javax.ejb.FinderException;
>
> public de.oblgmbh.wb.meta.interfaces.TypeLocal findByType(String type)
> throws javax.ejb.FinderException;
>
> public de.oblgmbh.wb.meta.interfaces.TypeLocal
> findByPrimaryKey(java.lang.Long pk)
> throws javax.ejb.FinderException;
>
> }
> --- snip ---
>
>
> --- snip ---
> <entity >
> <description><![CDATA[...]]></description>
>
> <ejb-name>Type</ejb-name>
>
> <local-home>de.oblgmbh.wb.meta.interfaces.TypeLocalHome</local-home>
> <local>de.oblgmbh.wb.meta.interfaces.TypeLocal</local>
>
> <ejb-class>de.oblgmbh.wb.meta.ejb.TypeCMP</ejb-class>
> <persistence-type>Container</persistence-type>
> <prim-key-class>java.lang.Long</prim-key-class>
> <reentrant>False</reentrant>
> <cmp-version>2.x</cmp-version>
> <abstract-schema-name>Type</abstract-schema-name>
> <cmp-field >
> <description><![CDATA[id]]></description>
> <field-name>id</field-name>
> </cmp-field>
> <cmp-field >
> <description><![CDATA[Type]]></description>
> <field-name>type</field-name>
> </cmp-field>
> <cmp-field >
> <description><![CDATA[Text]]></description>
> <field-name>text</field-name>
> </cmp-field>
> <primkey-field>id</primkey-field>
>
> <ejb-ref >
> <ejb-ref-name>ejb/IDGenerator</ejb-ref-name>
> <ejb-ref-type>Session</ejb-ref-type>
> <home>de.oblgmbh.wb.interfaces.IDGeneratorHome</home>
> <remote>de.oblgmbh.wb.interfaces.IDGenerator</remote>
> <ejb-link>IDGenerator</ejb-link>
> </ejb-ref>
>
> <security-role-ref>
> <role-name>admin</role-name>
> <role-link>Administrator</role-link>
> </security-role-ref>
> <security-role-ref>
> <role-name>user</role-name>
> <role-link>User</role-link>
> </security-role-ref>
>
> <query>
> <query-method>
> <method-name>findByType</method-name>
> <method-params>
> <method-param>String</method-param>
> </method-params>
> </query-method>
> <ejb-ql><![CDATA[SELECT OBJECT(o) FROM Type AS o WHERE o.type =
> ?1]]></ejb-ql>
> </query>
> <!-- Write a file named ejb-finders-TypeBean.xml if you want
> to define extra
> finders. -->
> </entity>
> --- snip ---
>
> Are there any restrictions about the types ?
best regards
Ingo Bruell
- - ---
<[EMAIL PROTECTED]>
<ICQ# 40377720>
Oldenburg PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C 953C 8FE7 C648 169E E5FC
Germany PGP-Public-Key available at pgpkeys.mit.edu
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>
iQA/AwUBPx07S4/nxkgWnuX8EQL4agCgzAw4bYTatv2EASr+DajHkfMFnD4AoIF+
aTciht4QGd4E1RAObidWPI9A
=f3F7
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user