Hello, I have got the servlet-mapping statements for each of the JSP in my web.xml (via the ant compile of the JSP pages). I removed the JSP pages from my war file(no longer deploy them).I have put the .java and .class files of the JSP pages under tomcat-4.1.x/work/ MainEngine/localhost/MyApp/
Now when I try to access the web pages, I get a Class not found error for the webpage. I am just trying to run the webapp within JBOSS by using the tomcat engine. Not sure if I am still missing something. thanks in advance. Kavitha -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Neal Sanche Sent: Saturday, December 13, 2003 11:59 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] JSP precompilation On December 13, 2003 07:48 am, Kavitha Ranga wrote: > Hello, > I am using JBOSS and tomcat for EJB and > webapps. In order to speed up the JSP's I have > precompiled all the JSP's using ant and have dumped > all the .java and .class for each of the jsp under > the tomcat directory of jboss ie, tomcat-4.1.x/work/ > MainEngine/localhost/MyApp/ > > However it appears that the first time the JSP's are called, JBOSS > again compiles > them and the precompilation does not seem to have any effect. > Is there something more to it than just dumping the .java and > .class files into the > tomcat directory of JBOSS? > Any help is appreciated. Yes, there is more to it than that. You have to remove the .JSP files from your application, or don't deploy them. Next you have to set up servlet and servlet-mapping statements for each .JSP in your web.xml. The JSP compiler can be made to output these mappings into a file. Then you have to put the compiled JSPs into your application's classpath. Usually this is WEB-INF/classes/... For an example of all of this download http://www.nsdev.org/jboss/stories/nsdev-framework-1.1.zip and look at the build/webapps/build.xml at the do-precompile-jsp target. Then look at the precompile-jar target where you will see that I am excluding "**/*.jsp" when I'm building the .WAR file. Cheers. -Neal ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user