NoSuchMethodException when deploying an EJB on JBoss
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Chris_Huang
Posted On:   Thursday, January 24, 2002 11:59 AM

I was using JBoss 2.2.4 with Tomcat 3.2.3.
I was able to deploy the original CD example.
But I couldn't deploy the example after
I changed the persistence-type to "Bean".
I had a method "ejbFindByPrimaryKey()" in
the Bean and a method "FindByPrimaryKey()"
in its Home.

I also had "FindByPrimaryKey" under
method-permission in ejb-jar.xml.

What had I missed? Thanks

Re: NoSuchMethodException when deploying an EJB

Posted By:   Maria_Diaz  
Posted On:   Thursday, January 24, 2002 11:05 PM

You have to also declare the entity bean at jboss.xml









EntityEjbName





DataSourceName

DataSourceName




JndiName







The ejb-jar.xml goes as follow:













ejbName

path.NameHome

path.nameRemote

path.NameBeanBMP

Bean

path.NamePK

False



DataSourceName

javax.sql.DataSource

Container








About | Sitemap | Contact