You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Catalino Pineda Jr." <cp...@exist.com> on 2005/04/12 08:36:14 UTC
Build Error
Hi All,
I am getting an error building Geronimo revision 161013 with the
following stacktrace.
C:\workspace\geronimo\modules\j2ee-builder\src\java\org\apache\geronimo\j2ee\deployment\RefContext.java:230:
unreported exception org.apache.geronimo.common.DeploymentException;
must be caught or declared to be thrown
return ejbReferenceBuilder.createHandleDelegateReference();
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
1 error
Thanks,
Catalino Pineda Jr.
Re: Build Error
Posted by Tom McQueeney <to...@mcqueeney.com>.
Catalino,
It looks like this was a recent bug that probably will get fixed
shortly. The change below should allow you to build in the meantime.
modules/j2ee-builder/src/java/org/apache/geronimo/j2ee/deployment/RefContext.java:
--- RefContext.java (revision 161030)
+++ RefContext.java (working copy)
@@ -226,7 +226,7 @@
return ejbReferenceBuilder.createEJBLocalReference(objectName,
isSession, localHome, local);
}
- public Object getHandleDelegateReference() {
+ public Object getHandleDelegateReference() throws DeploymentException {
return ejbReferenceBuilder.createHandleDelegateReference();
}
I.e. change line 226 to add the "throws":
The method in EJBReferenceBuilder is declared to throw this exception.
-Tom
Catalino Pineda Jr. wrote:
> Hi All,
>
> I am getting an error building Geronimo revision 161013 with the
> following stacktrace.
>
> /
> C:\workspace\geronimo\modules\j2ee-builder\src\java\org\apache\geronimo\j2ee\deployment\RefContext.java:230:
> unreported exception org.apache.geronimo.common.DeploymentException;
> must be caught or declared to be thrown
> return ejbReferenceBuilder.createHandleDelegateReference();
> ^
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -deprecation for details.
> 1 error
> /
>
> Thanks,
> Catalino Pineda Jr.