<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <br>
    <br>
    On 03/21/2011 07:55 PM, Dan Allen wrote:
    <blockquote
      cite="mid:AANLkTim0Ycgqa3vQ3mN-kSbWHK=EE6xSymi4dUzgW=Qb@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">On Mon, Mar 21, 2011 at 19:37, Denis
        Forveille <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:denis.forveille@gmail.com">denis.forveille@gmail.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <br>
          I'm trying to deploy the seam-booking app on WebSphere v8 beta
          (WAS).<br>
          <br>
          It still fails to start. My discoveries:<br>
          <br>
          Extension that have their constructor in scope "package"
          instead of "public" that makes the initialization to fail in
          WAS:<br>
          - org.jboss.seam.servlet.ServletExtension    --&gt; Dan you
          wrote in a previous mail that it was solved in CR3, it is not</blockquote>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          -
          org.jboss.seam.servlet.logging.TypedMessageBundleAndLoggerExtension<br>
          - org.jboss.seam.solder.logging.TypedMessageLoggerExtension<br>
          - org.jboss.seam.solder.messages.TypedMessageBundleExtension<br>
          - org.jboss.seam.solder.serviceHandler.ServiceHandlerExtension</blockquote>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          They may be other but they have not been "seen" by the
          initialization process..<br>
          <br>
          Dan, if you want to create JIRA for those, please let me know<br>
        </blockquote>
        <div><br>
        </div>
        <div>
          <meta http-equiv="content-type" content="text/html;
            charset=UTF-8">
          Oops. I was looking at the class, not the constructor. I'll
          fix in HEAD. You can go ahead and file a JIRA for reference.</div>
      </div>
    </blockquote>
    It seems you create them before me..lol <br>
    <blockquote
      cite="mid:AANLkTim0Ycgqa3vQ3mN-kSbWHK=EE6xSymi4dUzgW=Qb@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <div> </div>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <br>
          Missing jar in CR3 distribution. Both were included in CR2<br>
          - ocpsoft-pretty-time.jar (Used by
          org.jboss.seam.examples.booking.booking.BookingAgent)<br>
          - prettyfaces-jsf2.jar. Not sure for this one, but there is a
          file name pretty-config.xml under WEB-INF...Maybe this is the
          later<br>
          file that should not be there.</blockquote>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <br>
          If you want me to create JIRAs for those, I will<br>
        </blockquote>
        <div><br>
        </div>
        <div>
          <meta http-equiv="content-type" content="text/html;
            charset=UTF-8">
          Yep, both are needed for the example.</div>
      </div>
    </blockquote>
    Two other missing jars in CR3<br>
    - commons-beanutils.jar<br>
    - commons-digester<br>
    <br>
    Also there is a problem with the slf4j jar files:<br>
    - slf4j-api.jar is at version 1.6.1<br>
    - slf4j-log4j12.jar is at version 1.5.10<br>
    It was OK in CR2 (Both were at version 1.5.10)<br>
    <blockquote
      cite="mid:AANLkTim0Ycgqa3vQ3mN-kSbWHK=EE6xSymi4dUzgW=Qb@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <div> </div>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <br>
          And now I'm stuck with this exception at startup:<br>
          <br>
          An error occured while initializing MyFaces: null<br>
               java.util.NoSuchElementException<br>
              at
          java.util.HashMap$AbstractMapIterator.makeNext(HashMap.java:124)<br>
              at java.util.HashMap$KeyIterator.next(HashMap.java:195)<br>
              at
org.jboss.seam.faces.event.AbstractListener.getListeners(AbstractListener.java:27)<br>
              at
org.jboss.seam.faces.event.DelegatingSystemEventListener.getEventListeners(DelegatingSystemEventListener.java:48)<br>
              at
org.jboss.seam.faces.event.DelegatingSystemEventListener.processEvent(DelegatingSystemEventListener.java:36)<br>
              at
          javax.faces.event.SystemEvent.processListener(SystemEvent.java:43)<br>
              at
org.apache.myfaces.application.ApplicationImpl._traverseListenerList(ApplicationImpl.java:2110)<br>
              at
org.apache.myfaces.application.ApplicationImpl.access$000(ApplicationImpl.java:118)<br>
              at
org.apache.myfaces.application.ApplicationImpl$SystemListenerEntry.publish(ApplicationImpl.java:2204)<br>
              at
org.apache.myfaces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:557)<br>
              at
org.apache.myfaces.webapp.AbstractFacesInitializer._dispatchApplicationEvent(AbstractFacesInitializer.java:251)<br>
              at
org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:143)<br>
              at
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:112)<br>
              at
com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1635)<br>
          <br>
          I will try to investigate why this occur<br>
        </blockquote>
        <div><br>
        </div>
        <div>Ah, chances are Seam Faces is assuming that a class will in
          fact be a bean. However, it never checks to ensure this is the
          case. It should likely be more defensive. As to why the class
          is not a bean, that's another story.</div>
      </div>
    </blockquote>
    FYI, at line "AbstractListener.java:27" the bean in question is
    "org.jboss.seam.faces.event.SystemEventBridge"<br>
    <br>
    It seems also that I have problem with OpenJPA included in WAS v8. <br>
    Is Seam 3 compatible with OpenJPA? (Seam 2 was not) or do I have to
    use Hibernate? <br>
    If Seam 3 is "OpenJPA friendly", do I still have to include
    seam-transaction in my WAR?<br>
    <blockquote
      cite="mid:AANLkTim0Ycgqa3vQ3mN-kSbWHK=EE6xSymi4dUzgW=Qb@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <div><br>
        </div>
        <div>Denis, would you be able to provide the steps to get
          websphere v8 running so that other people in the community
          (and team) can get up to speed testing on websphere? I'm
          looking for the download link, requirements to get the
          download and how to get to a running state ready to accept
          deployments.</div>
      </div>
    </blockquote>
    You can get WAS v8
    here:<a class="moz-txt-link-freetext" href="https://www14.software.ibm.com/iwm/web/cc/earlyprograms/websphere/wsasoa/index.shtml">https://www14.software.ibm.com/iwm/web/cc/earlyprograms/websphere/wsasoa/index.shtml</a>
    .You need an IBM account but I think you can easily create one<br>
    There are links to the code, to the forums etc<br>
    The site explains how to install it<br>
    Basic steps to have WAS v8 running<br>
    - you install IBM Installation Manager<br>
    - from there you add the "repository" where the code for WAS v8 has
    been unzipped<br>
    - you install WAS v8<br>
    - you create a WAS "profile" (=1 instance/server/jvm). The
    installation manager should propose this as soon as the code is
    installed. By default the profile will be AppSrv01 with a "server"
    name server1<br>
    - by default your apps will be available on port 9080 and the
    console on 9060<br>
    - go to &lt;install_dir&gt;/profiles/AppSrv01/bin<br>
    - ./startServer server1 to start<br>
    - ./stopServer server1 to stop (must add credentials if you
    activated the security when create the profile)<br>
    <br>
    I'm using the latest version from RSA v8.0.2 based on eclipse v3.6.2
    (Rational Software Architect = RAD -Rational Application Developper
    - with the modelling extensions) and the latest WAS v8 beta. I'm
    composing "by hand"  an eclipse project wit the sema-booking files
    and needed jars and deploy from there. Very easy... <br>
    If you don't have RAD v8 or RSA v8, I don't think it is possible to
    do that from a plain eclipse install (the WAS "connector/server" is
    missing I think)<br>
    There is a "rapid deployment" mode in WAS v8 that is supposed to
    work as the webapp folder in tomcat but never played with it (Check
    the infocenter here :
    <a class="moz-txt-link-freetext" href="http://publib.boulder.ibm.com/infocenter/wasinfo/beta/topic/com.ibm.websphere.base.doc/info/aes/ae/trun_app_install_dragdrop.html">http://publib.boulder.ibm.com/infocenter/wasinfo/beta/topic/com.ibm.websphere.base.doc/info/aes/ae/trun_app_install_dragdrop.html</a>)
    <br>
    <br>
    Or you can build an EAR (or WAR) file and deploy it at the console.
    Connect to the console <a class="moz-txt-link-freetext" href="http://localhost:9060/admin">http://localhost:9060/admin</a> by default, then
    on the left menu "Applications/application types/WebSphere
    Enterprise applications", clik on install, give the name of the EAR
    or WAR file and click on next a couple of times...Connections pools
    are defined via menu "ressources/JDBC/data sources" at the console<br>
    <br>
    I'm aware that  this is a *very quick* introduction, send me private
    mails if you are stuck somewhere...Or I could find some time to
    describe the procedure in more detail as soon as seam-booking is
    starting on WAS v8<br>
    <br>
    <br>
    <br>
    <blockquote
      cite="mid:AANLkTim0Ycgqa3vQ3mN-kSbWHK=EE6xSymi4dUzgW=Qb@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <div><br>
        </div>
        <div>Thanks,</div>
        <div><br>
        </div>
        <div>-Dan</div>
        <div><br>
        </div>
      </div>
      -- <br>
      <div>Dan Allen</div>
      Principal Software Engineer, Red Hat | Author of Seam in Action<br>
      Registered Linux User #231597<br>
      <br>
      <div>
        <a moz-do-not-send="true"
          href="http://www.google.com/profiles/dan.j.allen#about"
          target="_blank">http://www.google.com/profiles/dan.j.allen#about</a><br>
        <a moz-do-not-send="true" href="http://mojavelinux.com"
          target="_blank">http://mojavelinux.com</a><br>
        <a moz-do-not-send="true"
          href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br>
      </div>
      <br>
    </blockquote>
  </body>
</html>