tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SandroMendes <mendes_san...@hotmail.com>
Subject No such property <primarykey> defined on bean class <class name>
Date Thu, 02 Apr 2009 13:57:21 GMT

Hi,

I've been searching all over the web to find a solution for my
OpenEJBException error but have been unsuccessful. 

I recently installed the OpenEJB plugin for tomcat 6. Upon starting up the
tomcat server I get the following error message:

==> openejb.log <==
2009-04-02 15:48:42,712 - INFO  - Found ejb module EjbModule in war
/PSDonkey
2009-04-02 15:48:44,846 - INFO  - Configuring enterprise application:
/home/sandro/PSApp/webapps/PSDonkey
2009-04-02 15:48:48,863 - INFO  - Configuring PersistenceUnit(name=cmp)
2009-04-02 15:48:48,866 - INFO  - Auto-creating a Resource with id 'My
DataSourceNonJta' of type 'DataSource for 'cmp'.
2009-04-02 15:48:48,867 - INFO  - Configuring Service(id=My
DataSourceNonJta, type=Resource, provider-id=My DataSource)
2009-04-02 15:48:48,867 - INFO  - Creating Resource(id=My DataSourceNonJta)
2009-04-02 15:48:48,924 - INFO  - Adjusting cmp <jta-data-source> to 'My
DataSource'
2009-04-02 15:48:48,924 - INFO  - Adjusting cmp <non-jta-data-source> to 'My
DataSourceNonJta'
2009-04-02 15:48:50,625 - INFO  - Enterprise application
"/home/sandro/PSApp/webapps/PSDonkey" loaded.
2009-04-02 15:48:50,626 - INFO  - Assembling app:
/home/sandro/PSApp/webapps/PSDonkey
2009-04-02 15:48:50,666 - INFO  - Undeploying app:
/home/sandro/PSApp/webapps/PSDonkey
2009-04-02 15:48:50,712 - ERROR - Unable to deploy collapsed ear in war
/PSDonkey: Exception: Creating application failed:
/home/sandro/PSApp/webapps/PSDonkey: No such property userId defined on bean
class com/PSTravel/PSUser/PSUser
org.apache.openejb.OpenEJBException: Creating application failed:
/home/sandro/PSApp/webapps/PSDonkey: No such property userId defined on bean
class com/PSTravel/PSUser/PSUser
	at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:650)
	at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:447)
	at
org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.start(TomcatWebAppBuilder.java:241)
	at
org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:58)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
	at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
	at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
	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:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.IllegalArgumentException: No such property userId
defined on bean class com/PSTravel/PSUser/PSUser
	at
org.apache.openejb.core.cmp.cmp2.Cmp2Generator.<init>(Cmp2Generator.java:116)
	at
org.apache.openejb.assembler.classic.CmpJarBuilder.generateClass(CmpJarBuilder.java:179)
	at
org.apache.openejb.assembler.classic.CmpJarBuilder.generate(CmpJarBuilder.java:82)
	at
org.apache.openejb.assembler.classic.CmpJarBuilder.getJarFile(CmpJarBuilder.java:53)
	at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:477)
	... 27 more

My class is written using EJB2.1. I've double checked my bean class and it
all seems correct. Eclipse complies the class with no errors.

Does anybody have an idea of what i'm missing? 

Regards,
Sandro
-- 
View this message in context: http://www.nabble.com/No-such-property-%3Cprimarykey%3E-defined-on-bean-class-%3Cclass-name%3E-tp22848432p22848432.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message