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

    Weblogic 10.0 MP1 and Seam 2.0.1 GA

    dhaliwal

      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

        • 1. Re: Weblogic 10.0 MP1 and Seam 2.0.1 GA

          You have no Seam lib in the classpath. Goto seamframework.org and find there information who to configure Seam in WebLogic

          • 2. Re: Weblogic 10.0 MP1 and Seam 2.0.1 GA
            dhaliwal

            Hi,

            I have followed the instructions of Chapter 27, Seam on Weblogic. Initially, I had the jee5/booking example mostly working.

            I have tried the following note from Chapter 27:

            When using the @DOMAIN/autodeploy directory as described in this chapter you may see NoClassDefFound exceptions. If you see this try restarting the Weblogic server. If you still see it remove the auto-deployed EAR/WAR files, restart the server, and redeploy. We could not find a specific reason for this, but others seem to be having this issue as well.

            Please advise where I should put the jboss-seam.jar which contains SeamPhaseListener class, so the classloader pick it up. I cannot think what I have changed to stop it working now.

            Thanks in advance,
            B. Dhaliwal

            • 3. Re: Weblogic 10.0 MP1 and Seam 2.0.1 GA

              This is not a right forum to ask about Seam configuration.