3 Replies Latest reply on Apr 9, 2009 8:40 AM by Julien Kronegg

    Websphere 6.1 in POJO mode using Seam 2.1.2-SNAPSHOT: TypeNotPresentException on PostConstruct in PersistenceProvider

    Julien Kronegg Novice

      I updated from Seam 2.1.1.GA to Seam 2.1.2-SNAPSHOT to get JBSEAM-3032 solved. I'm using IBM JVM.

      When deploying the WAR on Websphere 6.1, the following stacktrace occurs:

      java.lang.RuntimeException: could not create Component: org.jboss.seam.persistence.persistenceProvider
        at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1198)
      Caused by: java.lang.TypeNotPresentException: Type javax.annotation.PostConstruct not present
        at com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:38)
        at org.jboss.seam.Component.hasAnnotation(Component.java:1160)

      Dan introduced the following code between the two versions:

      public void init() {}

      IMHO, this annotation comes from the wrong package: it should come from org.jboss.seam.annotations.intercept.PostConstruct, a class introduced in the very similar issue was raised by Denis Forveille in JBSEAM-3726, but not yet in the 2.1.2-snapshot version.

      What do you think ? Dan/Denis?