Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Websphere Precompiled Jsp

Posted on 2003-11-06
4
Medium Priority
?
962 Views
Last Modified: 2013-12-10
I've precompiled Jsp, packaged in my WAR file. How to configure
websphere 5.0 to load my class (precompiled jsp) when there is a request
for jsp files.  

It's actually trying to generate the class file in some temp folder, its not
taking my class file.

I would like to know, how to give the servlet-mapping in web.xml, because
the precompiled files are in org.apache.jsp package by default & my jsp
file names are not unique... (or)  is there any other way i can do it...



Thanks in Advance
Arru_in
0
Comment
Question by:arru_in
2 Comments
 
LVL 2

Accepted Solution

by:
dyanet earned 800 total points
ID: 9736262
Pre-compiled jsps have to follow the exact structure inside the temp folder, and need to be compiled against the exact same JDK, servlet API and jsp compiler api - and - have a date equal to or newer than the actual JSP pages.  Then, they can be deployed into the temp folder.  So, in short, it cannot be done in the way you are mentioning.

You may be having classpath problems and your pages are not compiling, or you may want to deploying them as servlets.
0
 
LVL 1

Assisted Solution

by:fschutte
fschutte earned 800 total points
ID: 10090769
Simple alternative for your pre-compilation is to have a client call all possible jsp files once. This at least assures that you use correct ibm jdk etc.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question