Don,
Hi and thanks 4 ur reply,
Guess what, when I remove/comment out the following tag/code (no custom  jboss.xml and jbosscmp-jdbc.xml right?) from my xdoclet-build.xml:

<jboss version="3.2" destdir="${meta-inf.dir}" />

my beans get deployed neatly,with no complains from mighty jboss :-)

I think my problem could be that I  am wrongly using the @jboss.relation and @jboss.target-relationship tags in my beans.

I will read more about these tags today and see if I can clear any misconceptions that I currently may have on the tags usage. If after that I still cant get it to work I will be back

Once again thank u very much

Best wishes


Don Laidlaw <[EMAIL PROTECTED]> wrote:
Ed,

Looks to me like that exception is coming from the SurferBillingEJB, not
the SurferEJB. Check SurferBillingEJB to make sure the primary key
getter is defined correctly.

That is the last bean named before the exception.

ed banfa wrote:

>Hello Don,
> Thanks for the reply, here is the first exception in
> the jboss log file(below)
> but I cant understand why It says it cant find the
> primary key field for SurferEJB
> which is the surferID cmp field,
> be'cos if you look at my SurferEJB code below you
> will
> see the following:
>
> at the class level:
>
> @ejb.bean
> >
>
>
>>>* type="CMP"
>>>
>>>* name="SurferEJB"
>>>
>>>* display="An EJB bean representation of a
>>>
>>>
>>Cybercafe
>>customer"
>>
>>
>>>* cmp-version="2.x"
>>>
>>>* schema="Surfer"
>>>
>>>* local-jndi-name="ejb/cafeman/SurferEJB"
>>>
>>>* view-type="local"
>>>
>>>* primkey-field="surferID"
>>>
>>>* @ejb.home
>>>
>>>* generate="true"
>>>
>>>*...............
>>>
>>>
>>at the method level:
>>/**
>>
>>* @return
>>
>>* @ejb.interface-method view-type="local"
>>
>>* @ejb.pk-field
>>
>>* @ejb.persistence
>>
>>* column-name="SURFER_ID"
>>
>>* jdbc-type="VARCHAR"
>>
>>* sql-type="VARCHAR(100)"
>>
>>* @ejb.value-object
>>
>>* match="light"
>>
>>*
>>
>>*/
>>
>>public abstract String getSurferID();
>>
>>the jboss log file output
>>
>>2004-06-19 13:09:36,193 DEBUG
>>[org.jboss.system.ServiceController] starting
>>service
>>
>>
>>
>jboss.j2ee:module=Xterra-cafe-manager-1.0.jar,service=EjbModule
>
>
>>2004-06-19 13:09:36,193 INFO
>>[org.jboss.ejb.EjbModule] Starting
>>2004-06-19 13:09:36,193 DEBUG
>>[org.jboss.ejb.EjbModule] startService, starting
>>container: SurferBillingEJB
>>2004-06-19 13:09:36,193 DEBUG
>>[org.jboss.system.ServiceController] starting
>>service
>>
>>
>>
>jboss.j2ee:jndiName=ejb/cafeman/SurferBillingEJB,service=EJB
>
>
>>2004-06-19 13:09:36,193 INFO
>>[org.jboss.ejb.EntityContainer] Starting
>>2004-06-19 13:09:36,193 DEBUG
>>[org.jboss.ejb.EntityContainer] Begin java:comp/env
>>for EJB: SurferBillingEJB
>>2004-06-19 13:09:36,193 DEBUG
>>[org.jboss.ejb.EntityContainer] TCL:
>>[EMAIL PROTECTED]
>>2004-06-19 13:09:36,203 DEBUG
>>[org.jboss.ejb.EntityContainer] Binding an
>>EJBLocalReference ejb/DateEJB
>>2004-06-19 13:09:36,203 DEBUG
>>[org.jboss.ejb.EntityContainer] Binding ejb/DateEJB
>>to
>>bean source: DateEJB
>>2004-06-19 13:09:36,203 DEBUG
>>[org.jboss.ejb.EntityContainer] End java:comp/env
>>for
>>EJB: SurferBillingEJB
>>2004-06-19 13:09:36,243 DEBUG
>>[org.jboss.ejb.plugins.local.BaseLocalProxyFactory]
>>Bound EJBLocalHome of SurferBillingEJB to
>>ejb/cafeman/SurferBillingEJB
>>2004-06-19 13:09:36,243 DEBUG
>>[org.jboss.ejb.plugins.AbstractInstanceCache]
>>Starting
>>InvalidableEntityInstanceCache...
>>2004-06-19 13:09:36,243 DEBUG
>>
>>
>>
>[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.SurferBillingEJB]
>
>
>>Initializing CMP plugin for SurferBillingEJB
>>2004-06-19 13:09:36,323 DEBUG
>>
>>
>>
>[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.SurferBillingEJB]
>
>
>>Loading standardjbosscmp-jdbc.xml :
>>
>>
>>
>file:/C:/jboss-3.2.1/server/default/conf/standardjbosscmp-jdbc.xml
>
>
>>2004-06-19 13:09:36,543 DEBUG
>>
>>
>>
>[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.SurferBillingEJB]
>
>
>jar:file:/C:/jboss-3.2.1/server/default/tmp/deploy/server/default/deploy/Xterra-cafe-manager-1.0.jar/29.Xterra-cafe-manager-1.0.jar!/META-INF/jbosscmp-jdbc.xml
>
>
>>found. Overriding defaults
>>2004-06-19 13:09:36,653 DEBUG
>>[org.jboss.util.NestedThrowable]
>>
>>
>>
>org.jboss.util.NestedThrowable.parentTraceEnabled=true
>
>
>>2004-06-19 13:09:36,653 DEBUG
>>[org.jboss.util.NestedThrowable]
>>
>>
>>
>org.jboss.util.NestedThrowable.nestedTraceEnabled=false
>
>
>>2004-06-19 13:09:36,653 DEBUG
>>[org.jboss.util.NestedThrowable]
>>
>>
>>
>org.jboss.util.NestedThrowable.detectDuplicateNesting=true
>
>
>>2004-06-19 13:09:36,643 ERROR
>>[org.jboss.ejb.EntityContainer] Starting failed
>>org.jboss.deployment.DeploymentException: CMP field
>>for key not found: field name=surferID
>> at
>>
>>
>>
>org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationshipRoleMetaData.loadKeyFields(JDBCRelationshipRoleMetaData.java:374)
>
>
>> at
>>
>>
>>
>org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationshipRoleMetaData.init(JDBCRelationshipRoleMetaData.java:157)
>
>
>> at
>>
>>
>>
>org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationMetaData.(JDBCRelationMetaData.java:313)
>
>
>> at
>>
>>
>>
>org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.(JDBCApplicationMetaData.java:404)
>
>
>> at
>>
>>
>>
>org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:75)
>
>
>> at
>>
>>
>>
>org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:737)
>
>
>> at
>>
>>
>>
>org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:430)
>
>
>> at
>>
>>
>>
>org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:372)
>
>
>> at
>>
>>
>>
>org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:170)
>
>
>> at
>>
>>
>>
>org.jboss.ejb.EntityContainer.startService(EntityContainer.java:339)
>
>
>> at
>>
>>
>>
>org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
>
>
>> at
>>sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>Method)
>> at
>>
>>
>>
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
>
>> at
>>
>>
>>
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
>
>> at java.lang.reflect.Method.invoke(Method.java:324)
>> at
>>
>>
>>
>org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
>
>
>> at
>>
>>
>>
>org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
>
>
>> at
>>
>>
>>
>org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
>
>
>> at $Proxy11.start(Unknown Source)
>> at
>>
>>
>>
>org.jboss.system.ServiceController.start(ServiceController.java:392)
>
>
>> at
>>sun.reflect.GeneratedMethodAccessor3.invoke(Unknown
>>Source)
>> at
>>
>>
>>
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
>
>> at java.lang.reflect.Method.invoke(Method.java:324)
>> at
>>
>>
>>
>org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
>
>
>> at
>>
>>
>>
>org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
>
>
>> at
>>
>>
>>
>org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
>
>
>> at $Proxy32.start(Unknown Source)
>> at
>>
>>
>>
>org.jboss.ejb.EjbModule.startService(EjbModule.java:329)
>
>
>>
>>
>>
>>=====
>>EDWARD BANFA
>>
>>NETPLAY TECHNOLOGIES INC.
>>JOS, PLATEAU STATE
>>NIGERIA.
>>
>>
>>
>>__________________________________
>>
>>
>>
>=== message truncated ===
>
>
>=====
>EDWARD BANFA
>
>NETPLAY TECHNOLOGIES INC.
>JOS, PLATEAU STATE
>NIGERIA.
>
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Mail - 50x more storage than other providers!
>http://promotions.yahoo.com/new_mail
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
>Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
>Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
>REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
>_______________________________________________
>xdoclet-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>
>


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


EDWARD BANFA

NETPLAY TECHNOLOGIES INC.
JOS, PLATEAU STATE
NIGERIA.


Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.

Reply via email to