2 Replies Latest reply on Feb 22, 2013 4:16 PM by pgunda

    issues porting from websphere to JBoss AS7

    pgunda

      I have a Web application that uses JSP & Servlets. This is currently running on Websphere 7.1. We are trying to port to JBoss AS 7.1.1 in standalone mode to start with and am having issues.

      The WAR deployed successfully and I get the home page (Static HTML)

       

      Our application uses two files ibm-bnd-ext.xmi and ibm-web-ext.xmi .. These two files seem to be Websphere specific and detail the configuration of the JSP engine and Servlet engine.

       

      IBM-web-ext.xmi


      <?xml version="1.0" encoding="UTF-8"?>

      <com.ibm.ejs.models.base.extensions.webappext:WebAppExtension xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:com.ibm.ejs.models.base.extensions.webappext="webappext.xmi" xmi:id="WebAppExtension_1" reloadInterval="3" reloadingEnabled="true" additionalClassPath="" fileServingEnabled="true" directoryBrowsingEnabled="false" serveServletsByClassnameEnabled="true">

        <webApp href="WEB-INF/web.xml#WebApp"/>

        <jspAttributes xmi:id="JSPAttribute_1310946960877" name="reloadEnabled" value="true"/>

        <jspAttributes xmi:id="JSPAttribute_1310946960878" name="reloadInterval" value="10"/>

      </com.ibm.ejs.models.base.extensions.webappext:WebAppExtension>

       

       

      IBM-BND-EXT.xmi

       

      <?xml version="1.0" encoding="UTF-8"?>

      <com.ibm.ejs.models.base.bindings.webappbnd:WebAppBinding xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:com.ibm.ejs.models.base.bindings.webappbnd="webappbnd.xmi" xmi:id="WebAppBinding_1" virtualHostName="default_host">

        <webapp href="WEB-INF/web.xml#WebApp"/>

      </com.ibm.ejs.models.base.bindings.webappbnd:WebAppBinding>

       

      What is the equivalent configuration of these in JBoss?

      Also, how do we enable Serve Servlets by Class Name in JBoss?

       

      Any help is greatly appreciated...

        • 1. Re: issues porting from websphere to JBoss AS7
          abhijithtn

          There is no need of any configuration files in Jboss as such unless you want to do custom classloading. war file with correct web.xml should work fine without any changes.

          • 2. Re: issues porting from websphere to JBoss AS7
            pgunda

            Thanks for the response.

             

            The two external files are used to confiure the server.

             

            One thing of greater importance to me is serveServletsByClassnameEnabled="true"

            How do I enable this in JBoss AS7 ?

             

            This is a Java Web application that was started 10 years ago and uses the above configuration to serve all the servlets.

            This alleviates the need to map servlets in web.xml.

            If com.adcd.SnoopServlet needs to be called, the request would be like http://domain/webcontext/servlet/com.adcd.SnoopServlet will be served.

             

            Since we are porting we really do not want to change much. How do we acheive this in JBoss AS7? Is there something that can be configured in web.xml to acheive this?