Hi Gevik
This seems to be an issue with the application which defines the non
spec conformed PostConstruct method:
http://docs.oracle.com/javaee/6/api/javax/annotation/PostConstruct.html
The lifecycle method MUST NOT throw a checked exception based on the
javadoc.
- Hong
On 8/6/2013 7:42 PM, Gevik Nalbandian wrote:
>
> Hello,
>
> I deployed our app which works on JDK7/GFv3.1.2.2 onto JDK7/GFv4.0
> and I get the following:
>
> Wondering if the following is an Spring issue, Apache Camel ActiveMQ
> issue or Glassfish 4 issue so I thought I’d start with you guys:
>
> Error occurred during deployment: Exception while deploying the app
> [*my-app-name*] : The lifecycle method [afterPropertiesSet] must not
> throw a checked exception. Related annotation information: annotation
> [@javax.annotation.PostConstruct()] on annotated element [public void
> org.apache.activemq.camel.component.CamelEndpointLoader.afterPropertiesSet()
> throws java.lang.Exception] of type [METHOD]. Please see server.log
> for more details.
>
> Thanks.
>
> --Gevik
>