I am attempting to migrate an EJB 2 application from JBoss 4.0.3SP1 to 4.2.1.GA.

XDoclet is used to generate the ejb files.

During server start-up, after rebuilding the ear file, I get the error
"Finder findByLevelType defined on ProductDetail should return only instances 
of ProductDetail but the query results in instances of ProductLevel"

The ejbql is defined in ProductLevel but ProductDetail extends ProductLevel.


The trace from the server log is:

09:47:20,182 WARN  [ServiceController] Problem starting service 
jboss.j2ee:service=EjbModule,module=bgms_ejb.jar
  | org.jboss.deployment.DeploymentException: Finder findByLevelType defined on 
ProductDetail should return only instances of ProductDetail but the query 
results in instances of ProductLevel
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.setSelectEntity(JDBCAbstractQueryCommand.java:320)
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.(JDBCEJBQLQuery.java:79)
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandFactory.java:75)
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start(JDBCQueryManager.java:286)
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:505)
  |     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:396)
  |     at 
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:172)
  |     at org.jboss.ejb.EjbModule.startService(EjbModule.java:414)
  |     at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  |     at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  |     at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |     at java.lang.reflect.Method.invoke(Unknown Source)
  |     at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |     at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  |     at $Proxy0.start(Unknown Source)
  |     at org.jboss.system.ServiceController.start(ServiceController.java:417)
  |     at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
  |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |     at java.lang.reflect.Method.invoke(Unknown Source)
  |     at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  |     at $Proxy29.start(Unknown Source)
  |     at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:662)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |     at java.lang.reflect.Method.invoke(Unknown Source)
  |     at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |     at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  |     at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  |     at 
org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
  |     at 
org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
  |     at 
org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
  |     at 
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
  |     at 
org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  |     at $Proxy30.start(Unknown Source)
  |     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
  |     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
  |     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
  |     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
  |     at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
  |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |     at java.lang.reflect.Method.invoke(Unknown Source)
  | ...
  | 
  | Any ideas?
  | 
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078182#4078182

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078182
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to