[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Accessing varargs from jsp (jboss 4.2.0 / jre 5.0)

jaikiran do-not-reply at jboss.com
Thu Sep 20 07:26:06 EDT 2007


Try adding the "compilerSourceVM" init-param to the web.xml file present in server/< serverName>/deploy/jboss-web.deployer/conf folder, as follows:

<!--   compilerTargetVM    Compiler target VM                             -->  
  |   <!--                       default is System.properties                   -->
  |   <!--                        java.specification.version > 1.4              -->
  |   <!--                        [1.5] else [1.4]                              -->
  |   <!--                                                                      -->
  |   <!--   compilerSourceVM    Compiler source VM                             -->
  |   <!--                       default is System.properties                   -->
  |   <!--                        java.specification.version > 1.4              -->
  |   <!--                        [1.5] else [1.4]                              -->
  |   <!--                                                                      -->
  |   <!-- If you wish to use Jikes to compile JSP pages:                       -->
  |   <!--   Please see the "Using Jikes" section of the Jasper-HowTo           -->
  |   <!--   page in the Tomcat documentation.                                  -->
  | 
  |     <servlet>
  |         <servlet-name>jsp</servlet-name>
  |         <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
  |         <init-param>
  |             <param-name>fork</param-name>
  |             <param-value>false</param-value>
  |         </init-param>
  |         <init-param>
  |             <param-name>xpoweredBy</param-name>
  |             <param-value>false</param-value>
  |         </init-param>
  | 
  |         <!-- 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.service.jasper.JspServletOptions</param-value>
  |         </init-param>
  |         <!-- Specify the jars relative to the jbossweb-tomcat6.sar that should
  |           be scanned for common tag lib descriptors to include in every war
  |           deployment.
  |         -->
  |         <init-param>
  |            <description>JSF standard tlds</description>
  |            <param-name>tagLibJar0</param-name>
  |            <param-value>jsf-libs/jsf-impl.jar</param-value>
  |         </init-param>
  |         <init-param>
  |            <description>JSTL standard tlds</description>
  |            <param-name>tagLibJar1</param-name>
  |            <param-value>jstl.jar</param-value>
  |         </init-param>
  | 
  |        <init-param>
  |            <param-name>compilerSourceVM</param-name>
  |            <param-value>1.5</param-value>
  |         </init-param>
  |         <load-on-startup>3</load-on-startup>
  |     </servlet>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086587#4086587

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086587



More information about the jboss-user mailing list