manveen
04-02-2001, 11:36 AM
I am new to *nix and no knowledge of apache and Tomcat.
But I have run the servlets on linux server.
Tomcat is installed in tmp folder, setup is also in TMP folder.
Can anyone tell me how to publish the servlets
Where should I upload the servlet files in which directory.
How can I set the classpath of the Tomcat on the linux.
Please help me in doing its kinda urgent :(
mpkapadia
04-03-2001, 01:23 PM
Installing tomcat is a pain. I tried and tried but couldnt do it.
If you just want servlets why not use Apache mod jserv instead.
It is very very simple to install and configure.
In fact i installed from RPM file and just configured it for my sites in less than 5 minutes. Works very well for servlets.
Minus point is that you dont have JSP in Mod_jserv which you have in Tomcat.
But tomcat is a pain.Someone had suggested Resin which is also being praised a lot, But thats not free.
If you need help with Jserv i can help u out.
Regards
Manish Kapadia
jolly
04-04-2001, 02:29 AM
Tks for the support. I don't know what wrong with Tomcat the only problem is have never worked on it before. Anyhow we are working on Tomcat with mySql.
We are new to this Tomcat and Jserv.
How can we install the Jserv on our remote server and how can we configure it with the mysql.
I would really appreciate if you could help us.
Are you from India.
mpkapadia
04-04-2001, 02:48 AM
Hi Jolly,
Yes i am from india.
The simplest way to install Apache mod_jserv (Assuming any other servlet engine like tomcat or resin is not yet put) is through the rpm. I did it and workd for me.
After you install through the rpm , you will have to modify some files. I did through webmin file manager.
First what you have to do is
1) In /etc/httpd/conf/jserv/jserv.conf
Add a new servlet zone for your site and write about its appropriate properties file.
2) Next in the .properties file for the zone you have created. (It will not be created by default, just copy jserv.properties to yourwebsite.properties) Modify the portion of servlet repositories to the actual path of where your servlets would be uploaded on your website (your site home /servlets)
3) If you just restart apache your servlets will work.
Just install jserv first and view the 2 files jserv.properties and jserv.conf . It will cleaar your doubts.
And most important map the servlets in your Virtualhost directive as under.
ApJServMount /servlets /yourwebsite
(yourwebsite corresponds usually to yourwebsite.properties which is again mentioned in Jserv.conf
Try it out it is really easy.
Mail me if you need further assistance.
Regards
Manish Kapadia
Bombay-India
jolly
04-04-2001, 03:46 AM
Manish can you help me online with Jserv
My yahoo ID is jolly_extremist we can chat on pager while working on the server.
I have the ensim control panel not webmin but I can change the file from ensim.
I would like to ask you about the mySql database how do you handel with Jserv.
When can we chat.
mpkapadia
04-04-2001, 03:59 AM
mysql db can be accessed thru servlets in mod_jserv with the help of mysql jdbc driver.
You can download the same from mysql.com
Just stick it in calasspath and you will be able to access mysql db from servlets.
My msn id is mpkapadia
yahoo id is manishkapadia
I am a bit tied up right now.
I will be a bit free later today.
We will do it online no probs.
cya
Manish
jolly
04-04-2001, 04:42 AM
Tks Manish,
I have added you in my yahoo list.
We have to lauch the site ASAP please help me in doing this. I will wait for you on yahoo.