3 Replies Latest reply on Apr 14, 2008 5:56 PM by Sergey Smirnov

    Weblogic 10.0 MP1 and Seam 2.0.1 GA

    Balvindar Dhaliwal Newbie

      Hello,

      I am trying to get Weblogic 10.0 MP1 and Seam 2.0.1 GA working. I tried out the examples/jee5/booking example.

      1) I had it working apart from when trying to inject session beans into other session beans via @in. I used the many workarounds described on your website.

      2) Now, i am getting an exception which I cannot figure out. Any help would be greatly appreciated. It is complaining about the SeamPhaseListener. When I autodeploy I get the following error:

      <11-Apr-2008 14:49:54 o'clock BST> <BEA-2000146> <[Enhance] Det
      ected the following possible violations of the restrictions placed on property a
      ccess persistent types: "org.jboss.seam.example.booking.Booking" uses property a
      ccess, but its field "user" is accessed directly in method "toString" defined in
      "org.jboss.seam.example.booking.Booking".
      "org.jboss.seam.example.booking.Booking" uses property access, but its field "ch
      eckoutDate" is accessed directly in method "getNights" defined in "org.jboss.sea
      m.example.booking.Booking".
      "org.jboss.seam.example.booking.Booking" uses property access, but its field "ho
      tel" is accessed directly in method "getDescription" defined in "org.jboss.seam.
      example.booking.Booking".
      "org.jboss.seam.example.booking.Booking" uses property access, but its field "ch
      eckinDate" is accessed directly in method "getNights" defined in "org.jboss.seam
      .example.booking.Booking".
      "org.jboss.seam.example.booking.Booking" uses property access, but its field "ho
      tel" is accessed directly in method "getDescription" defined in "org.jboss.seam.
      example.booking.Booking".
      "org.jboss.seam.example.booking.Booking" uses property access, but its field "ho
      tel" is accessed directly in method "getTotal" defined in "org.jboss.seam.exampl
      e.booking.Booking".
      "org.jboss.seam.example.booking.Booking" uses property access, but its field "ho
      tel" is accessed directly in method "toString" defined in "org.jboss.seam.exampl
      e.booking.Booking".>
      11-Apr-2008 14:54:05 com.sun.faces.config.ConfigureListener contextInitialized
      INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b16-p02) for co
      ntext '/seam-jee5'
      log4j:WARN No appenders could be found for logger (org.ajax4jsf.application.Debu
      gLifecycleFactory).
      log4j:WARN Please initialize the log4j system properly.
      <11-Apr-2008 14:54:09 o'clock BST> <BEA-101162> <User defined l
      istener com.sun.faces.config.ConfigureListener failed: java.lang.NoClassDefFound
      Error: org/jboss/seam/jsf/SeamPhaseListener : javax/faces/event/PhaseListener.
      java.lang.NoClassDefFoundError: org/jboss/seam/jsf/SeamPhaseListener : javax/fac
      es/event/PhaseListener
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
      4)
      at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericCla
      ssLoader.java:338)
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
      ClassLoader.java:291)
      Truncated. see log file for complete stacktrace
      >
      <11-Apr-2008 14:54:09 o'clock BST> <BEA-101162> <User defined l
      istener org.jboss.seam.servlet.SeamListener failed: java.lang.IllegalStateExcept
      ion: Attempted to invoke a Seam component outside the an initialized application
      .
      java.lang.IllegalStateException: Attempted to invoke a Seam component outside th
      e an initialized application

      Thanks in advance,
      B. Dhaliwal