in cPanel 11.24.4-R35075 I have installed tomcat using the manage plugin in whm now could anyone let me know how do i test it and what will be the webapp;lication directory for tomcat, Does the steps performed to install is inadequate?
install tomcat in one location and have multiple instances running for individual clients:
Why would you want to do this: ============================== 1) Install tomcat in 1 location and have x number of instances running on a per client basis 2) Upgrade tomcat and have it propagate to all clients 3) Limit the resources each tomcat instance uses 4) Tomcat runs as the individual user rather than "root" or "tomcat" 5) Each user has its own manager; hence, no security risk to others 6) Start/Stop/Restart tomcat instances without affecting other clients who also have a tomcat instance
Assumptions: ============ 1. Tomcat is installed in: /usr/local/tomcat (TOMCAT_HOME) 2. Instances are installed in: /usr/local/tomcat/instances 3. Java is installed somewhere on your machine
Step 1 - Create a Tomcat Instance ================================= - Create a directory in /usr/local/tomcat/instances/user1 (CATALINA_BASE) - Create a set of directories (conf,temp,logs,webapps) in $CATALINA_BASE - Copy web.xml,server.xml,tomcat-users.xml from $TOMCAT_HOME/conf to $CATALINA_BASE/conf - Create a bash script called user1startstop.sh as follows and make it executable
Quote:
#!/bin/bash export INSTANCE_NAME=user1 export CATALINA_BASE=/usr/local/tomcat/instances/user1 #This is where you'd be able to restrict the memory usage export CATALINA_OPTS=" -Djava.awt.headless=true" # Call the jsvc script to launch the Tomcat instance /usr/local/tomcat/bin/Tomcat5.sh $1
Replace: ... port=8005 with port 8101 ... This is shutdown port Replace: ... port=8080 with port 8201 ... This is http port Replace: ... port=8009 with port 8301 ... This is the AJP port
- Edit httpd.conf Add the following code under the VirtualHost definition of the user in question: <IfModule mod_jk.c> JkMount /*.jsp user1 JkMount /webapps/* user1 JkMount /servlets/* user1 JkMount /servlet/* user1 </IfModule>
Step 4 - Restart Apache
Step 5 - run $TOMCAT_INSTANCE/user1startstop.sh start
That's it.
I have 5 instances of tomcat running on my machine and it works like a charm.
I'm getting a 404 tomcat error on a domain after applying a servlet and restarting tomcat, httpd.
I even disabled the htaccess file and removed the web.xml file from WEB-INF directory, restarted both services again.
root@server [/home/user/public_html]# ls -lh total 168K drwxr-x--- 7 user nobody 4.0K May 10 11:27 ./ drwx--x--x 11 user user 4.0K May 10 11:19 ../ -rw-r--r-- 1 user user 3.5K Apr 13 17:10 admin.jsp -rw-r--r-- 1 user user 2.6K Apr 13 17:10 annunciAddConfirm.jsp -rw-r--r-- 1 user user 3.9K Apr 13 17:10 annunciAdd.jsp -rw-r--r-- 1 user user 2.6K Apr 13 17:10 annunciDeleteConfirm.jsp -rw-r--r-- 1 user user 3.2K Apr 13 17:10 annunciDelete.jsp -rw-r--r-- 1 user user 5.3K Apr 13 17:10 annunciEditListsConfirm.jsp -rw-r--r-- 1 user user 6.8K Apr 13 17:10 annunciEditLists.jsp -rw-r--r-- 1 user user 7.2K Apr 13 17:10 annunciExecuted.jsp -rw-r--r-- 1 user user 2.7K Apr 13 17:10 annunciModifyEditConfirm.jsp -rw-r--r-- 1 user user 6.7K Apr 13 17:10 annunciModifyEdit.jsp -rw-r--r-- 1 user user 3.2K Apr 13 17:10 annunciModify.jsp -rw-r--r-- 1 user user 2.6K Apr 13 17:10 blogOccasioni.jsp drwxr-xr-x 2 user user 4.0K Apr 8 15:47 cgi-bin/ -rw-r--r-- 1 user user 3.1K Apr 13 17:10 contatti.jsp -rw-r--r-- 1 user user 1.7K Apr 13 17:10 DBcaseAutomob.jsp -rw-r--r-- 1 user user 1.6K Apr 13 17:10 DBcerchiLega.jsp -rw-r--r-- 1 user user 1.6K Apr 13 17:10 DBpneumatici.jsp -rw-r--r-- 1 user user 1009 Apr 13 17:10 homepage.jsp -rw-r--r-- 1 user user 22 Apr 13 17:12 .htaccess drwxr-xr-x 2 user user 4.0K Apr 13 17:08 images/ -rw-r--r-- 1 user user 965 Apr 7 15:31 index.html -rw-r--r-- 1 user user 2.0K May 10 08:22 index.jsp -rwxr-xr-x 1 user user 562 Apr 8 16:24 jsptest.jsp* -rw-r--r-- 1 user user 1.1K Apr 13 17:10 login.jsp -rw-r--r-- 1 user user 2.1K Apr 13 17:10 logout.jsp drwxr-xr-x 2 user user 4.0K Apr 13 17:10 multimedia/ -rw-r--r-- 1 user user 27 Apr 13 17:10 phpinfo.php -rw-r--r-- 1 user user 133 Apr 13 17:10 prova.jsp -rw-r--r-- 1 user user 1.2K Apr 13 17:10 servGaranzia.jsp drwxr-xr-x 2 user user 4.0K Apr 7 15:31 style/ -rw-r--r-- 1 user user 4.7K Apr 13 17:10 style.css -rw-r--r-- 1 user user 1.1K May 10 08:21 templateFooter.jsp -rw-r--r-- 1 user user 6.2K Apr 13 17:10 templateHeader.jsp drwxr-xr-x 4 user user 4.0K May 10 11:26 WEB-INF/ Using Cpanel / Apache 2.2
I've got a customer who would like to have TomCat installed in his hosting account.
I've some question before doing it, it kindda scares me..
1- I have apache 1.3. 2- I don't want every child process of apache to have an additional 15MB.. 3- I don't know a lot about Java... Is it as easy as «port install» it in my FreeBSD?
Basically, I would really like to accomodate that customer but I also doesnt want to mess everything for a single customer.
I would like to install a tomcat application on my domain. Where do I upload the .war file and how can I manage the tomcat and access this application? I have root access to my Cpanel/WHM box. Also, I did apply a servlet already via WHM.
Also, I need to restore my postgres backup file as well but its too big to be done via pgmyadmin. How can I go about doing this via command line?
I'm aware of how to restore a mysql db via command line (1st create db in cpanel, 2nd run command in ssh). Never done so with a postgresql database.
I have installed red5 war version at my tomcat webapps directory
which I have installed using easyapache 3, demos/porttester works great but I am unable to login to admin panel at [url] I get tyhe server address as well as username password panel but none of the passwords I try gets accepted, also in this type of installation I was unable to find register.html to create a login,
I'm maxing out on memory and am having trouble figuring out why. Can someone please tell me how to figure out what's using all the memory? When I list system processes in descending order of memory usage percentage, Tomcat is at the top of the list, but only with 0.8%. (Or does that mean 80%?)
I am alloted 256MB of RAM and I'm only hosting a handful of sites, none of which are getting any notable traffic.
Rightnow OpneJDK 6 is already installed, I want to remove it and install Sun JDK6 and tomcat. There are many threads on the web discussing this topic, but every one says some thing different, so its getting confusing.
Any one, who is running java hosting, please come ahead and help me.
I have a Java application that's currently running on a jetty server, and I need to move it over to our Tomcat server.
I can get Tomcat to see and extract the .war file when it starts up, but the application isn't accessible.
I suspect I'm missing something very basic. Besides dropping the .war file into Tomcat's directory (/usr/local/tomcat/webapps), what sort of configuration do I need to be doing? Would the extant configuration data be something jetty-specific?
for some reason since 2 days ago tomcat stopped working by itself. i removed it and reinstalled it several times with no luck at all. it seems it has something todo with mysql connectivity, but the weird thing its working on php just fine even the test code its not working ....
I have installed Tomcat on a VPS trough a Cpanel addon module and i got my first client today.
He wants do deploy his .war file. How can i do this?
If i deploy on /usr/local/jakarta/jakarta-tomcat-5.5.9/webapps he will have to access using http://server_name:8080/war_name/. How can i deploy and let him access using http://his_own_domain:8080/.
In my linux vps i am using WHM and enabled tomcat hosting for one of virtual host ,the tomcat shows 404 error for .jsp pages,remaining virtualhosts are working properly.When i view the log file i found the following line,
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[vhost].[/] has not been started
In above line vhost is domainame.How to solve this issue?
I am deploying my first Java web application on GoDaddy. Reading their documentation, it states a Tomcat redeploy occurs every morning at around 1:00 am. I thought I could get around waiting for this by moving up the compiled class files to the WEB-INF/classes directory.
Thinking about this made me realize I am not 100% sure how deploying code works. Tomcat is my servlet container which means it handles the HTTP requests it receives and then displays the appreciate content based on the web.xml settings. With this understanding, I am not sure what the deploy does. Since I manually moved the classes files and Tomcat did not have to take a .WAR file and build the directory, is that the deploy?
Do you think I need to wait for the redeploy even though I FTPd the class files?
Also, if I FTP the web.xml file to Tomcat, do I need a redploy? I am guessing I do but to be 100% honest, I am not sure why.
I have a webserver using apache 2.4.4 and 2 application servers with tomcat 7 on windows server 2008 R2 which uses VMWare ESX5.
I use juvmroute to load balance between these 2 application servers. but with no error in apache and tomcat log files, it can not connect to application servers. and i have to restart the apache service. and it crashes after almost 5 minutes.
This is the part of the access.log file where the crash started:
[Mon Aug 05 00:02:51.980503 2013] [mpm_winnt:notice] [pid 1036:tid 292] AH00422: Parent: Received shutdown signal -- Shutting down the server. [Mon Aug 05 00:02:54.008507 2013] [mpm_winnt:notice] [pid 3416:tid 200] AH00364: Child: All worker threads have exited. [Mon Aug 05 00:02:54.024107 2013] [mpm_winnt:notice] [pid 1036:tid 292] AH00430: Parent: Child process 3416 exited successfully. [Mon Aug 05 00:08:12.932936 2013] [mpm_winnt:notice] [pid 2648:tid 296] AH00455: Apache/2.4.4 (Win64) configured -- resuming normal operations
I am going to buy Plesk V.12 but there is some question that I would like to confirm before ordering this great program. My server is running both tomcat and php at the moment and using forwarding port technique. I am not quite sure about how Plesk manage this solution.
Issue: Upgraded to Apache 2.4.4 and Tomcat 7.0.33. Accessing the website via HTTPS produces "Object not found" error. The error logs (server,tomcat,apache) show no errors. It was working with Apache 2.2
Server OS: Windows 2008 Apache: version 2.4.4 Tomcat: version 7.033 JRE: version 1.6.0_43 Httpd.conf
Ok, I need a VPS basically for the following services: Tomcat/Mysql 5.0/ SMTP server
As I never worked with VPS before I´m not sure how much Guaranteed RAM I should take, so I thougth someone might run those server and have some experience with them on VPS.
The system I will run should not take more than 10 customers a time.
PS.: Do the ISP usually offer any diccounts for ppl of this forum ?
I want to buy a VPS for my java sites. I know most of VPS support PHP, but few support tomcat. So if i want to install tomcat, which control panel I should use.
I have a Linux(RHEL5) dedicated server.Tomcat version 5.x is running integrated with Apache and now i want to install tomcat 6.x integrate with apache without effecting older tomcat version. it will run as it is.
How can i do this and if yes then how can i set tomcat home path for both versions.
CATALINA_HOME=<Which path for both> and how to install it.
Starting Tomcat server Output from "/sbin/rc3.d/S998Tomcat start": ---------------------------- Using CATALINA_BASE: /opt/mediation/Tomcat5.5 Using CATALINA_HOME: /opt/mediation/Tomcat5.5 Using CATALINA_TMPDIR: /opt/mediation/Tomcat5.5/temp Using JRE_HOME: /opt/mediation/java/jre15_15002 /opt/mediation/Tomcat5.5/bin/catalina.sh[233]: touch: not found. ----------------------------
If Tomcat is manually stopped and restarted, it accepts connections.
I am just getting started with my first Linux VPS account and am having a problem that I hope someone can help me with. I am setting up multiple client accounts that will each have access to Tomcat Manager on their own domain so that war files can be deployed to the home directory of the respective account. I was able to get Tomcat Manager going for each domain, but when I try to upload a war file, I get a permission denied error. However, I don't get this error for the main VPS account.
What is the best way to resolve this? Is there a way to link a client account user to an instance of Tomcat Manager? Or do I have to assign the home directory of the account to a group that is common to the tomcat user (assuming that is what Manager is running under)? Or is there another option that is entirely better?
Just looking for some guidance before I hack up my new account too bad.