how do i pass parameters to this method
org.apache.jasper.compiler.Compile.compile
it seems the this is the class that is compiling jsp's
On Wed, Jan 20, 2010 at 5:59 PM, Carlo Camerino <carlo.camerino_at_gmail.com>wrote:
> oops sorry here's the config file again
> i added the parameter to javac-options
>
> java-config classpath-suffix="" debug-enabled="false"
> debug-options="-Xdebug
> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009"
> env-classpath-ignored="true" java-home="${com.sun.aas.javaRoot}"
> javac-options="-g -J-Xmx512m" rmic-options="-iiop -poa -alwaysgenerate
> -keepgenerated -g" system-classpath="">
> <!-- various required jvm-options -->
> <jvm-options>-XX:MaxPermSize=192m</jvm-options>
> <jvm-options>-client</jvm-options>
>
> <jvm-options>-Djava.endorsed.dirs=${com.sun.aas.installRoot}/lib/endorsed</jvm-options>
>
> <jvm-options>-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy</jvm-options>
>
> <jvm-options>-Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf</jvm-options>
> <jvm-options>-Dsun.rmi.dgc.server.gcInterval=3600000</jvm-options>
> <jvm-options>-Dsun.rmi.dgc.client.gcInterval=3600000</jvm-options>
> <jvm-options>-Xmx512m</jvm-options>
>
> <jvm-options>-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks</jvm-options>
>
> <jvm-options>-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks</jvm-options>
>
> <jvm-options>-Djava.ext.dirs=${com.sun.aas.javaRoot}/lib/ext${path.separator}${com.sun.aas.javaRoot}/jre/lib/ext${path.separator}${com.sun.aas.instanceRoot}/lib/ext${path.separator}${com.sun.aas.derbyRoot}/lib</jvm-options>
>
> <jvm-options>-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver</jvm-options>
>
> <jvm-options>-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder</jvm-options>
>
> <jvm-options>-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory</jvm-options>
>
> <jvm-options>-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar</jvm-options>
>
> <jvm-options>-Dcom.sun.enterprise.taglisteners=jsf-impl.jar</jvm-options>
> <jvm-options>-XX:NewRatio=2</jvm-options>
> <!--
> Use the following jvm-options element to disable the quick startup:
> com.sun.enterprise.server.ss.ASQuickStartup=false
> -->
> </java-config>
>
>
> On Wed, Jan 20, 2010 at 5:57 PM, Carlo Camerino <carlo.camerino_at_gmail.com>wrote:
>
>> Hi,
>>
>> I want to pass a parameter to the jsp or javac compiler present in
>> glassfish.
>> In what way could i set it? i got an error saying that the compiler run
>> out of memory
>>
>> The compiler has run out of memory. Consider using the "-J-mx<number>"
>> command line option to
>> increase the maximum heap size.
>> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
>> at
>> com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:641)
>> at
>> com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.access$000(JspServlet.java:501)
>> at
>> com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:333)
>> at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>> at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
>> at
>> org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
>> at com.bdo.core.util.TimerFilter.doFilter(TimerFilter.java:123)
>> at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
>> at
>> org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:265)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
>>
>> What does glassfish actually use to compile jsp's? i am confused as to
>> wehter it uses the assigned "javac" or does it use "jspc" to compile a jsp
>> page? I think it's not the actual jvm options present in the admin console
>>
>> Is it safe to add the -J-mx parameter here? WOuld it already take effect
>> when compiling jsp's
>>
>> <java-config java-home="C:/j2sdk1.4.2_19"
>> server-classpath="C:/Sun/AppServer7/lib/appserv-rt.jar;${java.home}/lib/tools.jar;C:/Sun/AppServer7/lib/appserv-ext.jar;C:/Sun/AppServer7/lib/appserv-cmp.jar;C:\Sun\AppServer7\share\lib/mail.jar;C:/Sun/AppServer7/lib/appserv-ideplugin.jar;C:\Sun\AppServer7\imq\lib/imq.jar;C:\Sun\AppServer7\imq\lib/jaxm-api.jar;C:\Sun\AppServer7\imq\lib/imqadmin.jar;C:\Sun\AppServer7\imq\lib/imqutil.jar;C:/Sun/AppServer7/lib/appserv-admin.jar;C:\Sun\AppServer7\share\lib/jaxrpc-impl.jar;C:\Sun\AppServer7\share\lib/jaxrpc-api.jar;C:\Sun\AppServer7\share\lib/jaxr-impl.jar;C:\Sun\AppServer7\share\lib/jaxr-api.jar;C:\Sun\AppServer7\share\lib/activation.jar;C:\Sun\AppServer7\share\lib/saaj-api.jar;C:\Sun\AppServer7\share\lib/saaj-impl.jar;C:\Sun\AppServer7\share\lib/commons-logging.jar;C:\Sun\AppServer7\imq\lib/fscontext.jar;C:\Sun\AppServer7\imq\lib/providerutil.jar;C:/Sun/AppServer7/lib/appserv-jstl.jar"
>> classpath-suffix="C:/Sun/AppServer7/pointbase/client_tools/lib/pbclient42RE.jar"
>> env-classpath-ignored="true" debug-options="-Xdebug
>> -Xrunjdwp:transport=dt_socket,server=y,suspend=n" debug-enabled="false"
>> javac-options="-g -J-mx512m" rmic-options="-iiop -poa -alwaysgenerate
>> -keepgenerated -g">
>>
>>
>> thanks
>> carlo
>>
>
>