I need to disable jsp compilation during runtime. I already have pre-compiled all the jsp files into the product. In production environment I do not want any new jsp to run.
How to disable JSP Compilation during runtime in tomcat
1.7k Views Asked by user3413804 At
2
There are 2 best solutions below
0
Parthi P
On
You can use jasper2 production configuration to disable the JSP compilation at runtime.
Refer : https://tomcat.apache.org/tomcat-8.0-doc/jasper-howto.html#Production_Configuration
Setting development=false will solve your problem.
Related Questions in JSP
- Unable to compile the class for JSP in tomcat 8.5.95
- Liberty doesn't compile JSP
- Why ${message} appear as it is in View and not the real message passed in Spring MVC controller
- How can i connect my 4 objects in my jsp file so it can run perfectly
- An error occurred: Cannot run program "C:\Users\ford\AppData\Local\Programs\Python\Python311\python.exe": CreateProcess error=5, Access is denied
- Issue with dropdown menu in the jsp page(cannot import the choice in the db)
- java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.jsp.ImportTab_jsp
- javascript function changes when used with jsp
- Database ConnectionError
- Where should i place my index.jsp and index.jsp1 for my app to run in tomcat app
- How to fix checkmarx reflected XSS attack in JSP page?
- JSP: "object cannot be resolved to a variable" when used in nested tag
- How to use JSTL in JSP: jakarta.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator
- How to setup jsp Pages on a Webserver
- File uploaded from jsp is not making it to servlet
Related Questions in TOMCAT
- Unable to compile the class for JSP in tomcat 8.5.95
- detect catalina.out log path from a running tomcat on non-Windows
- Tomcat 9.0.80 with Open JDK (JRE only) v16.0.2 crashing/unresponsive several times a day with load: Thread Count hits Max and All Threads are Busy
- JAX-RS webapp deployed to Tomcat returns HTTP 404 error while it works fine in Eclipse
- Illegal access: this web application instance has been stopped already. Could not load [org.apache.logging.log4j.message.SimpleMessage]
- File Upload Handling: Inconsistent HTTP Response Codes for Different File Sizes with Exception in Tomcat
- Don't get any public folder when deployment in svelte kit app
- Accessing solr web interface behind reverse proxy returns "Content Encoding Error"
- java.lang.UnsatisfiedLinkError: org.apache.tomcat.jni.SSL.renegotiatePending(J)I
- Cannot decrypt the password in application.yml properly if war file in the tomcat/webapps
- how to deploy mock json data api's(json-server) and angular 17 application in apache tomcat server 9 version
- version compatibility issue between spring boot, struts2-core and tomcat-embed-jasper in web application
- Is there any possibility to use JTA with Spring Framework 6 and Tomcat or Payara?
- Eclipse issue with publishing to Tomcat server
- null in Camunda variables
Related Questions in COMPILATION
- I am trying to run java application in Eclipse, When I try to do Run > Run as > Java Application it starts to show little processing but nothing happe
- Unable to run get .exe file from assembly NASM
- Javascript to Java
- How to compile only the changed files in Verilator?
- Why does the .exe file become locked after compiling?
- Installing the C compiler for LC3
- compile syzkaller fuzzer failed without any error or warning
- Solved: Create standalone executable for MacOS with OpenCV and libmagic
- How to work around the "collect2: error: ld returned 1 exit status" error when running simple fortran files with the gfortran command?
- how to add a compiler type supported for sccache?
- Vulkan ‘VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR’ was not declared in this scope
- Rust newbie compile error (for (key: String, value: String) in | ^ expected one of `)`, `,`, `@`, or `|`)
- latest version of redshift with crazy compile times
- Problem compiling out-dated Typescript code
- What is appropriate substitution for configurations.compile in newer gradle e.g. version 8.7?
Related Questions in PRE-COMPILATION
- Why is my newly pushed Fly.io Rails7.0.8 app not finding my image & js assets?
- Are include guards considered defined after the #define directive or after the #endif directive
- Precompilation in rails 7
- How to execute a single preprocessor directive in a C file
- How to properly hardcode compiler's define flag (-D) with #define in c (arduino)
- What is the best way to flush precompiled perl6 modules?
- Azure DevOps Build - publish doesn't create .compiled files in bin folder on publish
- Precompile part of the web application in .NET
- calling precompiled module from another file
- Tomcat JSP Pre-Compilation
- Log4cpp Naming Collision for 'DEBUG' detected.
- How to disable JSP Compilation during runtime in tomcat
- ASP.Net Core compile views in library project
- Precompile not working in razor pages
- Cython Precompiler decision making
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
By default a JSP will only be complied once until you changes it. You have nothing to do for achieving that. For your confirmation you can call a JSP first time and you will observe that it took much time than when you will call the same (unmodified) JSP second time.