Re: Newbie Contexts
hi there, u can set up new contexts by adding new directories within webapps. each dir could be a context/app and could have dirs for jsp , images , web-inf, etc. ~krishnakant Mark Senefsky wrote: Greetings all... OK I think the solution to my previous email Newbie Help (the sequel) is related to contexts. Currently the only context for my server points to the examples directory. How do I establish new Contexts? Using Tomcat admin what goes in each of these inputs? Path: (assume directory path?) Document Base: (no clue.) Context Name: (whatever I choose?) Thanks, Mark _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
jspc ???
hi all can somebody tell me how to precompile the jsp's of my webapp. i have tried using jspc with options . it just creates the related java files but not the compiled servlets. regards ~krishnakant
jspc info ??
where can i find info about jspc? regards -krishnakant
where do i place my application ?
hi all can somebody where i have to place my application which contains jsp's, servlets and classes. i presume it is webapps/myApp/.. but what goes where ? how do i precompile the jsp's ? ~krishnakant
Re: where do i place my application ?
thanx a lot. figured things out. can u give a hint as to where i should look for info on jspc ~krishnakant Warren Crossing wrote: i know its all really confusing at first.. but if you want to master the j2ee spec then patience and learning is required.. i will give you two hints and the third is free advice.. 1) search this mailing list archives for information relatinf to /WEB-INF/lib /WEB-INF/classes * web.xml server.xml ( you'll need to know these like buttered toast ) 2) look at the j2ee servlet spec produced from sun it will give you more advanced reading for things like servlets api and deployment descriptors, or read the documentation on the tomcat site. 3) FREE ADVICE: you can place your war ( WEBAPPLICATIONARCHIVE ) anywhere.. create a context in server.xml and point it to that file location that CONTAINS WEB-INF directory regards, warren. -Original Message- From: Krishna Kant T [mailto:[EMAIL PROTECTED]] Sent: Friday, 8 June 2001 6:39 PM To: [EMAIL PROTECTED] Subject: where do i place my application ? hi all can somebody where i have to place my application which contains jsp's, servlets and classes. i presume it is webapps/myApp/.. but what goes where ? how do i precompile the jsp's ? ~krishnakant
Re: Precompile JSP files on startup
yes it is do check the faq ~krishnakant Pernica, Jan wrote: Hi Is it possible to precompile files on startup? Thank you Jan __ Tato komunikace je urcena vyhradne pro adresata a je duverna. This communication is intended solely for the addressee and is confidential.
Apache says no permission to pick Tomcat files on linux
I have configured tomcat3.2 to run with apache 1.3.19 on red hat linux 7. the mod_jserv module has been loaded and an alias points requests like http://localhost/my/ to tomcat/webapps/root/my where the jsp files are located. apache reports an error saying no permission to my this config works on win nt. regards krishnakant
Re: Tomcat as a service
after u install tomcat as a service with name xxx use net start xxx to start and net stop xxx to stop -krishnakant David DELGRANCHE wrote: Hi all, I'm discovering Tomcat on NT. It seems to work fine but I have a problem: Is there a way to force Tomcat to start as a service and without openning a new window? Perhaps this is a stupid question, but I thank you for help! David. David DELGRANCHE [EMAIL PROTECTED] tel. 02.99 05.34.25 Fax: 02.99.05.34.05 Sogitec Industries 24, Avenue Lavoisier ZI du Champ Niguel 35174 BRUZ CEDEX
Re: Tomcat as a service
c:\net start xxx will start xxx service and c:\net stop xxx will stop xxx service -krishnakant David DELGRANCHE wrote: OK but how can I start tomcat as a service? -Message d'origine- De: Krishna Kant T [SMTP:[EMAIL PROTECTED]] Date: mercredi 6 juin 2001 10:15 A: [EMAIL PROTECTED] Objet: Re: Tomcat as a service after u install tomcat as a service with name xxx use net start xxx to start and net stop xxx to stop -krishnakant David DELGRANCHE wrote: Hi all, I'm discovering Tomcat on NT. It seems to work fine but I have a problem: Is there a way to force Tomcat to start as a service and without openning a new window? Perhaps this is a stupid question, but I thank you for help! David. David DELGRANCHE [EMAIL PROTECTED] tel. 02.99 05.34.25 Fax: 02.99.05.34.05 Sogitec Industries 24, Avenue Lavoisier ZI du Champ Niguel 35174 BRUZ CEDEX
Re: apache don't find my jsp files but works whith examples jsp files
an alias in httpd.conf of apache as to include my-apache-tomcat.conf which contains the directive as to where to look for files under http://localhost/my/ the jsp files are present in tomcat/webapps/root/my/ i am running tomcat under a different login. could that be a possible problem? -krishnakant François Andromaque wrote: I'm using jserv but it's the same thing Here is my tomcat.conf added to my httpd.conf : All jsp files will go to tomcat #ApJServMount default /root ApJServMount default /my_web_directory AddType text/jsp .jsp AddHandler jserv-servlet .jsp ## Context mapping - all requests go to tomcat ApJServMount /examples /my_web_directory here is the returned error Syntax error on line 39 of /usr/jakarta-tomcat/conf/tomcat.conf: ApJServMount: secret file (3rd field): cannot entirely read file '/my_web_directory what do you mean by alias statement? - Original Message - From: P.Miller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 06, 2001 9:56 AM Subject: Re: apache don't find my jsp files but works whith examples jsp files Hi Francois, you have to add an 'Alias' statement for your context in the mod_jk.conf (which you should 'Include' in the httpd.conf) and also a 'JKMount /context/*.jsp ajp13' in the same file. HTH Peter François Andromaque wrote: Hello I've developped a jsp WEB site, so i've my web site directory with the jsp directory which contains my jsp files, the html directory wich contains my html files and the WEB-INF directory which contains the JAVA-BEAN, it perfectly works with TOMCAT, but i can't access to my jsp files using apache server, even so i can access via apache to the tomcat jsp examples. What the way to do to make apache to find the jsp files. i'm getting the following Error: 404 Location: /jsp/jsp_file.jsp this is yet the right emplacement of the file Thanks in advance for your help.
Re: Apache says no permission to pick Tomcat files on linux
Apache on linux also doesnt pick /examples available in tomcat complains that it does not have permission can somebody help? -krishnakant Krishna Kant T wrote: I have configured tomcat3.2 to run with apache 1.3.19 on red hat linux 7. the mod_jserv module has been loaded and an alias points requests like http://localhost/my/ to tomcat/webapps/root/my where the jsp files are located. apache reports an error saying no permission to my this config works on win nt. regards krishnakant
Re: Default home for server
Yes, i am trying to set /ROOT/muDir as default webserver home dir - krishnakant Barthélémy TEHAM wrote: Try by adding ApJServMount /ROOT/myDir in your tomcat configuration file Are you try to set /ROOT/myDir as default webserver home dir ? --- Krishna Kant T [EMAIL PROTECTED] a écrit : hi teham win nt service pack 4 running tomcat 3.2 -krishna kant Barthélémy TEHAM wrote: What's your configuration ? ( OS and web server ) --- Krishna Kant T [EMAIL PROTECTED] a écrit : hi teham thanx for responding. i have configured tomcat with vcm such that any request with /myDir is passed on to tomcat which serves the jsp's. so i guess the setting will have to be made on tomcat. what do u think? -krishna kant Barthélémy TEHAM wrote: --- Krishna Kant T [EMAIL PROTECTED] a écrit : hi guys i need to set a jsp present in webapps/ROOT/myDir as the default home page for the server. i have tried setting it in web.xml as follows You have to change your DocumentRoot path in the configuration file of your web server If you use Apache server: change the line DocumentRoot old_path with DocumentRoot tomcat_home/webapps/ROOT/myDir And add in directive DirectoryIndex home.jsp You also have to configure your Directory in Apache configuration file = Barthélémy TEHAM - E-mail : [EMAIL PROTECTED] Website: http://teham.free.fr ___ Do You Yahoo!? -- Pour faire vos courses sur le Net, Yahoo! Shopping : http://fr.shopping.yahoo.com = Barthélémy TEHAM - E-mail : [EMAIL PROTECTED] Website: http://teham.free.fr ___ Do You Yahoo!? -- Pour faire vos courses sur le Net, Yahoo! Shopping : http://fr.shopping.yahoo.com = Barthélémy TEHAM - E-mail : [EMAIL PROTECTED] Website: http://teham.free.fr ___ Do You Yahoo!? -- Pour faire vos courses sur le Net, Yahoo! Shopping : http://fr.shopping.yahoo.com
Default home for server
hi guys i need to set a jsp present in webapps/ROOT/myDir as the default home page for the server. i have tried setting it in web.xml as follows welcome-file-list welcome-file /myDir/Home.jsp /welcome-file /welcome-file-list but it doesnt work. Could somebody please help me out Thanx in advance -krishna kant
Re: Default home for server
hi teham win nt service pack 4 running tomcat 3.2 -krishna kant Barthélémy TEHAM wrote: What's your configuration ? ( OS and web server ) --- Krishna Kant T [EMAIL PROTECTED] a écrit : hi teham thanx for responding. i have configured tomcat with vcm such that any request with /myDir is passed on to tomcat which serves the jsp's. so i guess the setting will have to be made on tomcat. what do u think? -krishna kant Barthélémy TEHAM wrote: --- Krishna Kant T [EMAIL PROTECTED] a écrit : hi guys i need to set a jsp present in webapps/ROOT/myDir as the default home page for the server. i have tried setting it in web.xml as follows You have to change your DocumentRoot path in the configuration file of your web server If you use Apache server: change the line DocumentRoot old_path with DocumentRoot tomcat_home/webapps/ROOT/myDir And add in directive DirectoryIndex home.jsp You also have to configure your Directory in Apache configuration file = Barthélémy TEHAM - E-mail : [EMAIL PROTECTED] Website: http://teham.free.fr ___ Do You Yahoo!? -- Pour faire vos courses sur le Net, Yahoo! Shopping : http://fr.shopping.yahoo.com = Barthélémy TEHAM - E-mail : [EMAIL PROTECTED] Website: http://teham.free.fr ___ Do You Yahoo!? -- Pour faire vos courses sur le Net, Yahoo! Shopping : http://fr.shopping.yahoo.com
Default home for tomcat server
hi all how do i set a jsp page which is present in webapps/ROOT/myDir as the default page for the webserver. thanx in advance -krishnakant