geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom McQueeney <...@mcqueeney.com>
Subject Re: Build Error
Date Tue, 12 Apr 2005 07:59:40 GMT
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.

Mime
View raw message