OK, let's take this one step at a time. From the logs that you posted, i see that you are first deploying MyEjb.jar:
anonymous wrote : 20:55:52,312 INFO [EJB3Deployer] Deployed: file:/D:/jboss-4.2.1.GA/server/default/deploy/MyEjb.jar
At a later point of time, you are deploying myWebEar.ear which (as per the logs) contains MyEjb.jar and WebModule.war
anonymous wrote : 20:55:53,749 INFO [EARDeployer] Init J2EE application: file:/E:/web/WebApp/myWebEar/myWebEar.ear
So ultimately, the MyEjb.jar is being deployed twice (i might be wrong, but at this point that's what i can infer from the logs). I would suggest that you delete the MyEjb.jar which is present at D:/jboss-4.2.1.GA/server/default/deploy and then restart JBoss. See if that solves the issue. Let us know how it goes.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099830#4099830
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099830
When I specify ejbql="select c from Comment c inner join fetch c.user" in components.xml, the generated ejbql is correct, but to retrieve the count number, it generated "select count(*) from Comment inner join fetch c.user where ......", that's wrong.
There isn't setCountEjbql() method either in EntityQuery or in Query. I have to extend the class. And because there is WHERE clause appended, I too have to recalculate the String, which is annoying and redundant.
Created Jira issue:
http://jira.jboss.com/jira/browse/JBSEAM-2177
And thanks fhh, I think you're correct.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099827#4099827
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099827