Hi,
The problem is probably due to
- the throws clause of the ejbCreate method don't define
javax.ejb.CreateException,
- and the throws clause of the ejbRemove method don't define
javax.ejb.RemoveException.
See
http://www.objectweb.org/messages/JonasUsers/2001/02/msg00043.html
for a complete explanation.
Kind regards.
H�l�ne.
Son To wrote:
>
> Hi,
> I am using jonas2.3 on redhat6.2 with jdk1.3
>
> This is the error message I get:
> ---
> GenIC ejb-jar.xml
> GenIC for JOnAS 2.3: Bean 'ProductBean' generation...
> JOnASProductBeanBean.java:118: unreported exception
> javax.ejb.DuplicateKeyException; must be caught or declared to be thrown
> throw new javax.ejb.DuplicateKeyException(pk.toString());
> ^
> JOnASProductBeanBean.java:431: unreported exception
> javax.ejb.CreateException; must be caught or declared to be thrown
> throw new javax.ejb.CreateException(e.toString());
> ^
> JOnASProductBeanBean.java:1019: unreported exception
> javax.ejb.RemoveException; must be caught or declared to be thrown
> throw new javax.ejb.RemoveException(e.toString());
> ^
> 3 errors
> GenIC ERROR: Failed when compiling the implementation classes via java
> compiler
> ---
>
> I am attaching JOnASProductBeanBean.java and my xml descriptors
> What's happening is that the body of the method throws exceptions
> but the method does not declare it
>
> Is this a bug or am I doing something wrong? GenIC in 2.2.4 did not
> have a problem compiling this.
>
> many thanks,
> Son
>
> ------------------------------------------------------------------------
> Name: JOnASProductBeanBean.java
> JOnASProductBeanBean.java Type: unspecified type (APPLICATION/octet-stream)
> Encoding: BASE64
>
> Name: ejb-jar.xml
> ejb-jar.xml Type: TEXT/xml
> Encoding: BASE64
>
> Name: jonas-ejb-jar.xml
> jonas-ejb-jar.xml Type: TEXT/xml
> Encoding: BASE64
--
-=- H�l�ne JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
mailto:[EMAIL PROTECTED] http://www.evidian.com
Phone: 33.4.76.29.73.53 Fax: 33.4.76.29.76.00
Download our EJB Server JOnAS at http://www.objectweb.org
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".