Reading http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html
I have noticed this
<quote>

   * *Java location*: The installer will use the registry or the
     JAVA_HOME environment variable to determine the base path of the
     JDK or a JRE. If only a JRE (or an incorrect path) is specified,
     Tomcat will run but will be unable to compile JSP pages at
     runtime. Either all webapps will need to be precompiled (this can
     be easily done using the Tomcat deployer), or the |lib\tools.jar|
     file from a JDK installation must be copied to the |common\lib|
     path of the Tomcat installation.

</quote>
So your solution is named Tomcat deployer
Hope this helps
Niki


Malcolm Warren wrote:



I am changing from Jrun to Tomcat and I have just one problem remaining.


Jrun gave an additional security possibility that I am unable to extend to Tomcat. In Jrun you do not need to place your .jsp files, nor the automatically generated .java files on your production server. I could simply .jar up the automatically generated .class files and place the .jar file in the /WEB-INF/jsp folder on the production server.

That way I had 3 big advantages:
1) Nobody could look into my .jsp files.
2) Nobody could look into my .java files for my .jsps
3) Compilation on the production server of the .jsps was already done. - Everything was ready in the single .jar file.


Now perhaps I am missing something, so please put me right. And I'm just starting now to use ant and I've never bothered with .war files because I don't distribute my programmes, they're just used on our production server.

If I create a .war file for the production server then the .war file contains no compiled .jsps, just the original .jsp files - is that right?
There seem to me to be obvious advantages to what I was able to do in Jrun - can I do something similar in Tomcat?
In general I get many more security features with Tomcat 4.1, than I did with Jrun 3.1, but this particular possibility seems to me to be a good one. I have tried creating .jar files of the Tomcat's /work directory but without any success.


Can anybody enlighten me? Thanks for any help.

Regards,
Malcolm Warren

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






Reply via email to