Iam using Weblogic 5.1 appserver and iam trying to write
a simple container managed bean which gets the name from
database but when iam trying to deploy the bean it throws
an error saying findByPrimary() key method is not defined
in Home.
any one knows the solution please respond soon..
thanks
Tom
-
Can not deploy container managed bean (6 messages)
- Posted by: Web Master
- Posted on: September 01 2000 19:51 EDT
Threaded Messages (6)
- Can not deploy container managed bean by rama mohan sadhu on September 02 2000 00:08 EDT
- Can not deploy container managed bean by sumanth av on September 07 2000 04:02 EDT
-
Can not deploy container managed bean by Jason Vasquez on September 08 2000 02:24 EDT
-
Can not deploy container managed bean by Jason Vasquez on September 08 2000 02:25 EDT
-
Can not deploy container managed bean by sumanth av on September 09 2000 04:14 EDT
- Can not deploy container managed bean by sumanth av on September 19 2000 02:13 EDT
-
Can not deploy container managed bean by sumanth av on September 09 2000 04:14 EDT
-
Can not deploy container managed bean by Jason Vasquez on September 08 2000 02:25 EDT
-
Can not deploy container managed bean by Jason Vasquez on September 08 2000 02:24 EDT
- Can not deploy container managed bean by sumanth av on September 07 2000 04:02 EDT
-
Can not deploy container managed bean[ Go to top ]
- Posted by: rama mohan sadhu
- Posted on: September 02 2000 00:08 EDT
- in response to Web Master
hello Tomy
my simple suggesstion is to i think you have to set classpath correctly and then compile all the files again including home,remote and implementation also and i also faced the same thing and solved this problem by adjusting path...hope you will do it.. -
Can not deploy container managed bean[ Go to top ]
- Posted by: sumanth av
- Posted on: September 07 2000 04:02 EDT
- in response to rama mohan sadhu
hai ram,
i hope the example is from Ed Roman's Mastering EJB. I was able to deploy all the examples given in the book except the CMP and BMP Entity EJB's, it throws the error message 'findbyprimarykey' must be defined in the home inferface. I was able to deploy the examples shipped with the Weblogic server 5.1. If it is the problem with class path and so can tell me what setting need to be changed.
regards
sumanth -
Can not deploy container managed bean[ Go to top ]
- Posted by: Jason Vasquez
- Posted on: September 08 2000 14:24 EDT
- in response to sumanth av
Would it be difficult to add this to your home interface:
public <your_ejb_remote_interface> findByPrimaryKey throws FinderException, RemoteException;
I'm pretty sure this is what the container is looking for... -
Can not deploy container managed bean[ Go to top ]
- Posted by: Jason Vasquez
- Posted on: September 08 2000 14:25 EDT
- in response to Jason Vasquez
Oops--that line should be like this:
public <your_ejb_remote_interface> findByPrimaryKey(<your_primary_key_class key) throws FinderException, RemoteException; -
Can not deploy container managed bean[ Go to top ]
- Posted by: sumanth av
- Posted on: September 09 2000 04:14 EDT
- in response to Jason Vasquez
jason, i encountered the problem when i was trying to deploy the example given in Ed Roman's Mastering EJB Book. I tried out the syntax what u have given in the reply even then it is not working any more suggestions on this...
sumanth -
Can not deploy container managed bean[ Go to top ]
- Posted by: sumanth av
- Posted on: September 19 2000 02:13 EDT
- in response to sumanth av
Problem is in deployement description in the line
<prim-key>...type....</prim-key>. Type need to be the type of the input parameter.