5 Replies Latest reply on Dec 26, 2002 7:29 PM by federico_boschetti

    Jikes + JBoss 3.0

    markwolfe

      Just wondering what I need to change to get JBoss 3.0 to use jikes to compile JSP files?

        • 1. Re: Jikes + JBoss 3.0

          somewhere in the jetty distrib (probably org.mortbay.jetty.jar) you should find a webdefault.xml.

          (this will be in the jetty-plugin.sar or jbossweb.sar).

          This specifies the standard default servlets, mappings etc for all webapps.

          There are comments in there about how to enable Jikes JSP compilation.

          Changing this file will do it for all webapps - alternatively, you could put the Jasper stuff explicitly into a single webapp's web.xml and set the Jikes stuff just there.

          whichever suits you best,


          Jules

          P.S.

          Let me know if this worked for you and I will add it to my FAQ :

          http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/contrib/jetty/FAQ?rev=HEAD&content-type=text/vnd.viewcvs-markup

          • 2. Re: Jikes + JBoss 3.0
            oz_ko

            It's a little painful but it works - see also
            http://jetty.mortbay.org/jetty/doc/JettyWithJikes.html
            You need to add all the required classes/jars for compilation which is a bit long winded but it should your webdefault.xml in org.mortbay.jetty.jar should look something like:



            <servlet-name>JSP</servlet-name>
            <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
            <init-param>
            <param-name>jspCompilerPlugin</param-name>
            <param-value>org.apache.jasper.compiler.JikesJavaCompiler</param-value>
            </init-param>
            <init-param>
            <param-name>classpath</param-name>
            <param-value>C:/jdk1.4.0_02/jre/lib/rt.jar;C:/jboss/jboss-3.0.2/server/default/lib/javax.servlet.jar;C:/jboss/jboss-3.0.2/server/default/deploy/jbossweb.sar/org.apache.jasper.jar;C:/jboss/jboss-3.0.2/server/default/deploy/jbossweb.sar/org.jboss.jetty.jar;C:/jboss/jboss-3.0.2/server/default/deploy/jbossweb.sar/org.mortbay.j2ee.jar</param-value>
            </init-param>
            <load-on-startup>0</load-on-startup>

            • 3. Re: Jikes + JBoss 3.0

              Thanks, I'll put that in the FAQ.

              I will be moving the webdefault.xml out of it's jar and into the sar, to give easier access soon - then this will become simpler.

              Jules

              • 4. Re: Jikes + JBoss 3.0
                friek

                How does one do this in 3.0.3? There is no webdefaults.xml, in a jar or otherwise that I can find.

                • 5. Re: Jikes + JBoss 3.0
                  federico_boschetti

                  I tried following this method: now I have only a problem with the accented vowels in the HTML produced by jboss.
                  Are there other ways to configure jikes and classpath on jboss-3.0.4?

                  Tnx