WHM/cpanel Tomcat 404 Error
Aug 4, 2009
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?
View 1 Replies
ADVERTISEMENT
Nov 14, 2007
I am running Plesk 8.1 for Linux and am trying to delete a domain via the control panel. The following error occurs:
ERROR: PleskUtilException
tomcatmng is failed --remove-service --vhost-name=domain.com
0: /usr/local/psa/admin/plib/utilmng.php:57
utilmng->call(string 'remove-service', array)
1: /usr/local/psa/admin/plib/tomcatmng.php:44
tomcatmng->remove_service(string 'domain.com')
2: /usr/local/psa/admin/plib/class.DSTomcat.php:226
DSTomcat->delete()
3: /usr/local/psa/admin/plib/class.PhDomain.php:315
PhDomain->reset(integer '0', boolean true, boolean false)
4: /usr/local/psa/admin/plib/class.BsDomain.php:297
BsDomain->reset(integer '0')
5: /usr/local/psa/admin/plib/class.BsDomain.php:291
BsDomain->delete(integer '0')
6: /usr/local/psa/admin/plib/class.BsDomain.php:530
mdeleteDomains(array)
7: /usr/local/psa/admin/plib/class.Manager.php:353
Manager->removeDomains(array)
8: /usr/local/psa/admin/htdocs/domains/domains.php3:209
Does anyone know how to fix this? Some Plesk users may have experienced this and I'm hoping could shed some light.
View 4 Replies
View Related
Apr 4, 2015
Trying to enable Tomcat Java Servlets using autoinstaller via ssh, but I'm receiving the following error:
Exception: Failed to solve dependencies: 2:apache-commons-discovery-0.5-9.el7.noarch requires mvn(commons-logging:commons-logging)
ERROR: The Yum utility failed to install the required packages. Attention! Your software might be inoperable. ​When I try through the admin UI, I just get "The Yum utility failed to install the required packages"
View 2 Replies
View Related
Mar 18, 2007
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 ....
View 0 Replies
View Related
Nov 20, 2007
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
Step 2 - Configure the Tomcat Instance
======================================
- edit $TOMCAT_BASE/conf/server.xml:
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 $TOMCAT_HOME/conf/workers.properties
Add: user1 to worker.list=ajp12,ajp13...
Add:
worker.user1.host=localhost
worker.user1.port=8301
worker.user1.lbfactor=1
worker.user1.type=ajp13
Under:
DEFAULT ajp13 WORKER DEFINITION
Step 3 - Modify Main Tomcat (One-Time)
======================================
Edit $TOMCAT_HOME/bin/Tomcat5.sh
Add:
Quote:
DAEMON_HOME=/usr/local/tomcat/bin
PIDFILE=/var/run/jsvc-$INSTANCE_NAME.pid
TMP_DIR=/usr/local/jakarta/servers/$INSTANCE_NAME/temp
TOMCAT_USER=$INSTANCE_NAME
Modify start case with the following:
Quote:
$DAEMON_HOME/jsvc
-user $TOMCAT_USER
-home $JAVA_HOME
-outfile $CATALINA_BASE/logs/catalina.out
-errfile $CATALINA_BASE/logs/catalina.err
-pidfile "$PIDFILE"
-Dcatalina.home=$CATALINA_HOME
-Dcatalina.base=$CATALINA_BASE
-Djava.io.tmpdir=$TMP_DIR
$CATALINA_OPTS
-cp $CLASSPATH
org.apache.catalina.startup.Bootstrap
;;
Modify end case with the following:
Quote:
PID=`cat $PIDFILE`
kill $PID
rm $PIDFILE
;;
Step 3 - Configure Apache
=========================
- 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.
View 4 Replies
View Related
Nov 5, 2008
Could you please recommend a stable reliable VPS provider that manage Tomcat/JSP fine on cpanel?
I did search and find no suitable one
View 2 Replies
View Related
Jan 31, 2008
Yesterday I installed tomcat on a RHEL 4 + cPanel and httpd 2.0.63 server using easyapache3, process was ok, jsp pages are loading fine using http://site.com/example.jsp , but servlets, are not working using http://site.com/example, how ever, if I load http://site.com:8080/example it loads the servlet perfect.
I read something about redirecting all traffict from port 80 to 8080, but you know.. this is a shared server, and that would affect all customers on the server.
So, mod_jk seems to be the only solution, now I read many documents over the web, but no one seems to be working to configure apache2 and mod_jk that is installed using easyapache3 script.
In my httpd.conf file, i have this:
LoadModule jk_module modules/mod_jk.so
Include "/usr/local/apache/conf/jk.conf"
At jk.conf i have this content: ...
View 5 Replies
View Related
May 10, 2008
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
View 3 Replies
View Related
Jan 21, 2008
Could not opendir /usr/local/jakarta/tomcat/lib: No such file or directory
HTTP Status 404 - /teste.jsp
type Status report
message /test.jsp
description The requested resource (/teste.jsp) is not available.
Apache Tomcat/5.5.25
I installed the tomcat(5.5.25) in Easyapache3 as informed in:
Main >> cPanel >> Manage Plugins
I applied the servlet, still getting 404 even after restarting apache.
Applying servlet gave me this error ...
View 1 Replies
View Related
Oct 15, 2006
I'm thinking about buying a 1and1 root server. Thing is, I need to be able to put tomcat server on it- I was wondering if that's possible?
View 5 Replies
View Related
Jan 24, 2007
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.
View 3 Replies
View Related
Feb 24, 2005
I am developing a jsp website and looking for a cheep tomcat hosting for development/test purposes.
Any recommendations?
View 2 Replies
View Related
Oct 9, 2009
I need a managed vps with these software :
Java: jdk1.5.0_16
Tomcat: apache-tomcat-6.0.18
MySQL-Java Connector: mysql-connector-java-5[1].1.6
Please recommend me a good offer from a good company.
View 10 Replies
View Related
Apr 24, 2009
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?
View 4 Replies
View Related
Dec 3, 2008
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.
View 2 Replies
View Related
Mar 12, 2008
Not sure why, suddenly tomcat is failing
tomcat has failed, please contact the sysadmin (result was "tomcat is not running").
I got that before and after running a forced cpanel upgrade.
I restarted via command line as well.
Its amazing that "tomcat has failed please contact the sysadmin" search yielded no results in wht here.
View 0 Replies
View Related
Apr 26, 2009
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,
View 0 Replies
View Related
May 25, 2008
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.
View 11 Replies
View Related
May 8, 2006
does anybody has a good reference how to configure tomcat to listen to port 80?
View 3 Replies
View Related
Jun 2, 2009
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.
System info: CentOS 5.3
View 14 Replies
View Related
Mar 31, 2009
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?
View 1 Replies
View Related
May 19, 2007
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/.
View 3 Replies
View Related
Aug 23, 2005
I'm setting up a web server that will only run jsp/servlet applications. It 'may' need SSL at some point.
Is there any point to having apache installed and linking tomcat through apache. As running tomcat on port 80 seems ok with no problems!?!
will linking apache to tomcat have any benefit?
View 0 Replies
View Related