Music Store Bean example

I try to deploy the music cd bean example to J2EE with MySQL. Everything was fine until choose to deploy. It had an error:

C:\j2sdkee1.3.1\repository\aqueous\gnrtrTMP\MusicStore\musicstore\MusicCDBean_PM.java:69: unreported

exception javax.ejb.CreateException; must be caught or declared to be thrown

return (musicstore.MusicCDPK) partition.afterEjbCreate(this);

Shows in J2EE

Any Help?

[425 byte] By [sungana] at [2007-9-19]
# 1

Hi there,

First, did you remember to declare the CreateException to be thrown at the ejbCreate method?

Second, when you are calling the ejbCreate method be aware of the throw clause on the ejbCreate method, meaning that you have to catch the CreateException ...

I need some more details before I can give you a more concrete answer on this. Could you paste in the method where the error occurs?

Regards,

Jess

jessna at 2007-7-8 > top of java,Enterprise & Remote Computing,Enterprise Technologies...
# 2
I download it from sun site. It's one of the example from enterprise javabean tutorial. If you successfully run it, would you send me the code which you modified for it to work? ex. exception...ThanksKenny
sungana at 2007-7-8 > top of java,Enterprise & Remote Computing,Enterprise Technologies...
# 3
You can also help this thread: http://forum.java.sun.com/thread.jsp?forum=13&thread=22658
sungana at 2007-7-8 > top of java,Enterprise & Remote Computing,Enterprise Technologies...
# 4
Please provide me with the direct URL where I can download it.I don't have much time to search for it...
jessna at 2007-7-8 > top of java,Enterprise & Remote Computing,Enterprise Technologies...