3 Replies Latest reply on Oct 18, 2005 9:39 PM by Viet

    War deployment enhancement

    Scott Stark Master

      The webservices layer jumps through some hoops to build/enhance wars with the webservice endpoints, and Julien is saying that the portlets do something similar. I'd like to talk about what enhancement the war deployer could be supporting to make life easier for container/components derived from wars.

        • 1. Re: War deployment enhancement
          Viet Master

          is enhancing a war after it is deployed valid for this discussion ?

          the only thing it buys is that it is possible to deploy jboss portal after war containing portlet are deployed and have the war instrumented.

          today JBoss Portal does both (because of the technique it uses), but restricting to have jboss-portal.sar deployed before the war is not a big issue.

          beside that the constraint jboss portal needs from the war file are :

          1/ get the servlet context
          2/ get the classloader to load portlet classes
          3/ get the context path
          4/ get the deployment URL
          5/ copy files into the war file (automatic TLD import)
          6/ add a servlet with a class of jboss portal
          7/ add a servlet filter with a class of jboss portal

          • 2. Re: War deployment enhancement
            Scott Stark Master

            Yes, anything is open for discussion. In terms of the TLD import, we are installing a custom jsp options class to allow the shared JSF tlds to be picked up. Are you copying tlds for a similar reason?

             <!-- Use a custom options class to allow the shared tag lib descriptors
             to be loaded from jars in the tomcat sar conf/tlds directory. The
             standard options implementation can only find taglibs based on the
             class loader classpath.
             -->
             <init-param>
             <param-name>engineOptionsClass</param-name>
             <param-value>org.jboss.web.tomcat.tc5.jasper.JspServletOptions</param-value>
             </init-param>
             <!-- Specify the jars relative to the jbossweb-tomcat55.sar that should
             be scanned for common tag lib descriptors to include in every war
             deployment.
             -->
             <init-param>
             <description>MyFaces tlds</description>
             <param-name>tagLibJar0</param-name>
             <param-value>jsf-libs/myfaces-impl.jar</param-value>
             </init-param>
            



            • 3. Re: War deployment enhancement
              Viet Master

              yes but we have two points that makes it invalid :

              1/ jboss portal needs to be deployed into JBoss AS without any modification of the AS config

              2/ it needs to be done by the portal because when we port it in other appserver we cannot rely on this feature

              From the portal point of view the instrumentation provided by the application server is an SPI implementation of an interface that we define similar to :

              http://anoncvs.forge.jboss.com:8080/viewrep/JBoss/jboss-portal/server/src/main/org/jboss/portal/server/deployment/PortalWebApp.java