tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niki Ivanchev <niki...@icygen.com>
Subject Re: Of .war and .jar files - and .jsp class files
Date Thu, 01 Apr 2004 13:31:37 GMT
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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message