6 Replies Latest reply on Aug 22, 2006 8:47 AM by k_shahab

    TrialBlazer is not working!

    armita

      Trying to deploy the trial blazer I am getting this error message ( AS is jboss-4.0.4.GA)

      18:57:14,594 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=beans.jar
      java.lang.TypeNotPresentException: Type javax.ejb.EJB not present
       at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:98)
       at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:107)
       at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31)
       at sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:351)
       at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:175)
       at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
       at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)
       at java.lang.reflect.Field.declaredAnnotations(Field.java:1002)
       at java.lang.reflect.Field.getAnnotation(Field.java:989)
       at org.jboss.aop.annotation.AnnotationElement.getVisibleAnnotation(AnnotationElement.java:75)
       at org.jboss.aop.Advisor.resolveAnnotation(Advisor.java:388)
      


        • 1. Re: TrialBlazer is not working!
          peterj

          How did you install JBoss? To use EJB3, you must either use the installer jar file, and select EJB3 from the installation options, or download the source package (tar.gz file) and compile it with a 5.0 JVM (it builds both the standrad distribution and the EJB3 distribution). The EJB3 components are not part of the binary zip file.

          • 2. Re: TrialBlazer is not working!
            armita

            I used the installer with th EJB3 option!

            • 3. Re: TrialBlazer is not working!
              peterj

              I think you have run into an EJB3 version incompatibility. The @EJB annotation has moved from the javax.annotation package (in which it appears in JBoss 4.0.4) to the javax.ejb package (in which it appears in the jar files that get downloaded with the Trailblazer).

              See http://www.jboss.com/index.html?module=bb&op=viewtopic&t=84310

              • 4. Re: TrialBlazer is not working!
                k_shahab

                Hi. I was also getting this error. I solved this error by copying javaee.jar to C:\jboss-4.0.4.GA\server\default\deploy\ejb3.deployer and C:\jboss-4.0.4.GA\lib directories. The JAR file javaee.jar I took from lib directory of Sun Java System Application Server Platform Edition 9.

                After copying javaee.jar to these locations, I am to run all examples of EJB3Trail.

                There may be side effect due to javaee.jar but I could not see any error during EJB3Trail testing.

                ------------------------
                Shahabuddin Khan

                • 5. Re: TrialBlazer is not working!
                  k_shahab

                  Hi.
                  I was also getting this error. I solved this error by copying javaee.jar to C:\jboss-4.0.4.GA\server\default\deploy\ejb3.deployer and C:\jboss-4.0.4.GA\lib directories. The JAR file javaee.jar I took from lib directory of Sun Java System Application Server Platform Edition 9.

                  After copying javaee.jar to these locations, I am able to run all examples of EJB3Trail.

                  There may be side effects due to javaee.jar but I could not see any error during EJB3Trail testing.

                  ------------------------
                  Shahabuddin Khan

                  • 6. Re: TrialBlazer is not working!
                    k_shahab