Server :: Finding A Tomcat Startup Script On A Ubuntu Machine?
Feb 17, 2011
I am looking for a tomcat startup script on a Ubuntu machine. My Ubuntu is 10.04 server. The tomcat is 5.5.30. It is in /opt/apache-tomcat-5.5.31 I tried a script here
Code:
#!/bin/bash
#
# tomcat
#
# chkconfig:
[code]....
View 18 Replies
ADVERTISEMENT
Mar 11, 2011
I'm trying to set up Apache Tomcat with virtual hosting. I've used Caucho Resin before but not Tomcat...and I've run into what appears to be (from Google at least) a rather common problem with Tomcat in that any properly packaged classes under WEB-INF of the default virtual host or the named host are not found and Tomcat complains of a class that "cannot be resolved to a type". I researched this error on Google and the consensus seems to be that: -
- You need properly packaged classes as classes in the default package are no longer allowed. I have done this.
- You need to either fully declare the packaged class to make an instance of it within the JSP or include the via an import statement at the top of the JSP. I have done this.
- In the web.xml for the Tomcat server instance (under $CATALINA_HOME/conf/web.xml) you need to set the servlet mapping for JSPs fork init-param to "true". I have done this also.
Yet the problem persists and I have found no solution. So I can only assume I'm missing something obvious and fundamental. My configuration is as follows: - I have two virtual hosts - one as the default virtual host and another as a named virtual host.
$CATALINA_HOME/webapps/localhost <--- Default host.
$CATALINA_HOME/webapps/www.easicasino.com <--- Named host. The logic being that the URL IP address of the server will hit the default webapp and the URL hostname with hit the named webapp. This appears to work with just JSPs.
My $CATALINA_HOME/conf/server.xml looks like this: -
Code:
<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<Listener className="org.apache.catalina.core.JasperListener" />
[code]....
View 1 Replies
View Related
Apr 13, 2011
I know it might seem a stupid question, but i'm gettin' nuts over avoiding webapp auto startup on Tomcat restart.i have a server, used for developing. Its tomcat has a bunch of webapps deployed. MOst of them are old/kept just for the sake of it, and I would like to avoid TC to start them on start / restart. How do I prevent a context to autostart on service start / restart?
I would like to go in the config files and selectively choose the apps to start. When tomcat is started, if anyone needs an app to be started, i would like to do it from the manager. But when I restart TC, i would like my choices to be up and running only.
View 1 Replies
View Related
Jan 9, 2010
I am trying to run my tomcat 5.5 at startup.. I went to System-->Preferences-->Startup applications and entered the command to launch my script: /bin/sh /home/marco/apache-tomcat-5.5/bin/catalina.sh run
But when i restart ubuntu, my tomcat does not run and i dont know where to find the proper logs to see what happened.
View 2 Replies
View Related
Sep 19, 2011
Every time I need to start or stop Tomcat, I am navigating to:
/Tomcat_Dir/bin
and once I am in the folder I enter:
./Startup.sh
And to stop the server, I navigate to the same directory and enter:
./Shutdown.sh
I was wondering if there was a way in Linux to alias the above described process, so that from any location in the filesystem, I can simply type in something like
StartTomcat or StopTomcat to perform the Startup and Shutdown of the web-server?
View 2 Replies
View Related
Apr 19, 2010
I have installed Tomcat on an Ubuntu 9.10 machine and previous to now I have been able to access the website from any other machine within the network. I suddenly am no longer able to do this.I also noticed that on the local machine I can access usinghttp://localhost but not by doing http://172.16.7.62 (again, from the local machine), should that work (assuming that it is the correct IP address of the machine)
View 2 Replies
View Related
May 4, 2009
Can anyone tell me how to make this script,( located in /etc/init.d/tomcat ) startup at boot time under the tomcat user and not the root user?
#!/bin/bash
# tomcatStartup Script for Tomcat
# chkconfig: 2345 20 80
# description: Tomcat Server basic start/shutdown script
# processname: tomcat
# pidfile: /var/run/tomcat.pid
[Code]...
View 5 Replies
View Related
Jul 2, 2010
Can anyone tell me in performance tunning of apache-tomcat and jboss application server?when I deploy some application in apache-tomcat the performance is say 100 users per second and incase of jboss it is even worst (35-40 users per second)i want to improve my performance 1000 uesrs per second..
View 1 Replies
View Related
Feb 10, 2010
I have a requirement of using a wildcard certificate for 5 subdomains running under apache httpd server and 1 subdomain under tomcat.Is there any possibility of using the single wildcard certificate both in tomcat and apache
View 3 Replies
View Related
Sep 9, 2009
I have one server with Jboss and Tomcat installed, I have to start these servers manually everytime I do reboot the server.How I could do to start Jboss and Tomcat automatically, when I do reboot the server?
View 1 Replies
View Related
Aug 22, 2011
All of a sudden, my computer feels sluggish. Mouse moves but windows take ages to open, etc. uptime says the load is 7.69 and raising. What is the fastest way to find out which process(es) are the cause of the load? Now, "top" and similar tools isn't the answer because they either show CPU or memory usage but not both at the same time. What I need is the single command which I might be able to type as it happens - something that will figure out any of: "System is trying to swap 8GB of RAM to disk because process X ..." or "process X seeks all over the disk" or "process X uses 400% CPU"
So what I'm looking for is iostat, htop/atop and similar tools run into one with an output like this:
1235 cp - Disk trashing
87 chrome - Uses 2GB of RAM
137 nfs_bench - Uses 95% of the network bandwidth
I don't want a tool that gives me some numbers which I can analyze but a tool that tells me exactly which process causes the current load. Assume that the user in front of the keyboard barely knows how to write "process" but is quickly overwhelmed when it comes to "resident size", "virtual memory" or "process life cycle".
My argument goes like this: User notices problem. There can be thousands of reasons ... well, almost. User wants to know source of problem. The current solutions give me lots of numbers and I need to know what these numbers mean. What I'm looking for is a meta tool. 99% of the data is irrelevant to the problem. So what the tool should do is look for processes which hog some resource and list only those along with "this process needs a lot of CPU, this produces many IRQs, this process allocates a lot of RAM (and it's still growing)".
This will be a relatively short list. It will be much more simple for an newbie to locate the culprit from this list than from the output of, say, htop which gives me about 5000 numbers but requires me to fold multi-threaded processes myself (I have 50 lines which say VIRT 2750M but only 16GB of RAM - the machine ought to swap itself to death but of course, this is a misinterpretation of the data that can happen quickly).
View 5 Replies
View Related
Jun 17, 2010
What is the best Linux Mint backup tool that is most like Time Machine (that ships on Macs)?
The one thing that I want it to have similar to Time Machine is that it only backs up files that have been changed, therefore making for faster backups.
View 2 Replies
View Related
Dec 18, 2010
i want to know mac address of a particular ip but the problem is that i am unable to ping that ip but that ip is being used by someone in my local network that i know from my proxy logs. i want to know the mac address of that ip,
View 5 Replies
View Related
Feb 10, 2011
I am looking for software that would allow me to do an automatic installation on a machine with some predetermined rpm and partitioning.To start I went to the package mkcd, but quite complicated to use, I can not quite understand what to do. In looking further I found Bcd, which from a predefined XML file creates an iso, it looks easier to use but I do not know if I can do exactly what I want.A bootable CD that installs linux automatically with rpm added.
I found other software that can match my search as "KickStart" but made for RedHat and rather poor in tutorial, there is nothing familiar in the field. "Fully Automatic Installation" [URL] which at first might work with Fedora and others.
View 1 Replies
View Related
Jul 23, 2010
I should have caught this during the upgrade, I saw the potential problem but failed to write it down. All my applications served by Tomcat fail to load. Catalina logs show the following error for each app. Error deploying configuration descriptor msgboard.xml The complete error for an individual application is
[Code]...
Again, during the upgrade a warning popped up that each app would need to be spelled out in some configuration file SOMEWHERE because of a change in security! Would someone be so kind as to direct me as to where and how this would be accomplished. I apologizes for not being able to find this out on my own but have looked and can't find it. I'm pretty sure anyone proficient with Tomcat on Linux will know what and where these changes need to be made. Or if anyone knows if and where there is a log of all communication during the upgrade I might be able to figure this out on my own. Is there such a log kept during an upgrade? Also if this question would be more appropriate in the Server Platforms forum I will do that.
View 4 Replies
View Related
Aug 26, 2010
how I can deploy a WAR file with a Tomcat that happens to be installed on a server. I divided it to different small questions but no strait answer so far.
These are the things I've done:
created a myapps folder inside the tomcat directory, and copied the WAR file there.
These are the questions:
1. I did not touch anything inside the Tomcat folder, anything need to be changed?.
2.How to start the Tomcat so that it can deploy th e WAR file?
View 3 Replies
View Related
Nov 5, 2010
I installed Ubuntu 10.04 as virtual machine and now there is slight problem When I turn on machine I see VM bios but then VM stops and cursor (underscore) starts blinking. I waits like this for 2 minutes and then proceeds normally. There might be VM bios seen again. Since here, no slowness is noticed. It shuts down really fast
I'm using VMware workstation 7.0 and VMplayer 3.0.1, hard disk type used is SCSI.
View 3 Replies
View Related
Apr 11, 2010
I am stuck with an issue related to domain hosting. Currently i have an application hosted in my own server using a static ip from a service provider. I got a domain name from another domain provider. Everything went in right way till when i click my url in browser using internet through another system. I am able to see my application when i use my ip address, where as when i use my domain name its not working.
[Code]....
View 2 Replies
View Related
Jun 4, 2009
I have used same Hardware and OS platfrom for web server benchmarking and i have used similar php and jsp scripts for Apache and Tomcat. For this testing i have used apache ab benchmarking toolFrom this statistics i would like to clarify the performances about Apache and Tomcat.
1. why Tomcat have taken too much of time to finish this 10 million requests to compare with Apache?
2. why this huge different for "Request per Second"?
3. To Tomcat i have increased multi thread level 300 and JVM memory usage upto 2048mb(but performances not increased), rather than these, is there any other performance tune-up settings for Tomcat?
4. from these statistics, can i come to the conclusion that apache is the best?
5.do u feel that ab tool favouring to Apache?
View 1 Replies
View Related
May 1, 2011
I'm configuring a web server using Apache and Tomcat. I use Apache 2 and various instances of Tomcat5 and Tomcat6..I try that Apache serves the static data and tomcat the dynamic (Apache receives all requests, sending tomcat only the dynamic)I see that Apache and Tomcat can be connected using http or ajp Can any tell me:
- What connector should I use: ajp, http,...?
- How can I say Apache to serve the static data and Tomcat the dynamic?Due to I have many instances of Tomcat, connectins http and https, https with client certificates, and due to the port configuration:
- Is there any way to configure Apache-tomcat without the use of ports in tomcat (a differect connector)?
View 3 Replies
View Related
Mar 16, 2010
I need to install apache tomcat on centos 5.3...How can i do it
View 4 Replies
View Related
Jul 3, 2010
we have configured snv in our server but when we tried to access our svn folder from client its saying path not found error.This is because apache is mapped to tomcat so when we tried to access svn by default it looks to some other path and displaying path not found error.My question is how to restrict apache from forwarding its request to tomcat or else how to stop the tomcat service. I am using centos and i tried with /etc/init.d/tomcat5 stop but it is not getting stopped.
View 3 Replies
View Related
Jan 25, 2011
I have application (WAR format) deployed on tomcat 5.5. I am able to access application using: "http://my_server_hostname/application_base_directory_name/hello.do" for example. I do not want my users to remember or bookmark the full link "http://my_server_hostname/application_base_name/hello.do"). Is there a way that i could have tomcat host it like a website and i can directly get the index page open by simply typing a url (http://hostname) in the browser? if possible, i would like to do it using tomcat only (no httpd connectors or modules).
View 1 Replies
View Related
May 6, 2009
I am trying to setup Tomcat on CentOS 5.2,This is that ive done so far...Installed Apache, which works fine and I get the "Apache 2 Test Page powered by CentOS" Did this
yum install tomcat5 tomcat5-common-lib tomcat5-jasper tomcat5-jsp-2.0-api tomcat5-server-lib tomcat5-servlet-2.4-api
View 3 Replies
View Related
Aug 5, 2010
I am trying to start remote tomcat server, it's not working as expected. I like to mansion that..I am able to stop tomcat server remotly. Below command i am using
ssh -t remoteserver sudo sh /opt/tomcat/6.0.29/apache-tomcat/bin/catalina.sh start
ssh -t remoteserver sudo sh /opt/tomcat/6.0.29/apache-tomcat/bin/startup.sh
Both are not working..when i run this script locally it's working file
same way when i run tomcat stop command it's working fine.
ssh -t remoteserver sudo sh /opt/tomcat/6.0.29/apache-tomcat/bin/catalina.sh stop
ssh -t remoteserver sudo sh /opt/tomcat/6.0.29/apache-tomcat/bin/shutdown.sh
I check log file also..when i am executing tomcat start there is no log entry in log file
Using CATALINA_BASE: /opt/tomcat/6.0.29/apache-tomcat-6.0.29
Using CATALINA_HOME: /opt/tomcat/6.0.29/apache-tomcat-6.0.29
[code]....
View 14 Replies
View Related
Mar 20, 2011
We have three production websites running on RHEL 3 AS running tomcat 5. After a reboot last night Tomcat will not start and has the following in the catalina.out log:
Mar 20, 2011 4:09:31 PM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw error
java.lang.NoClassDefFoundError: org/apache/naming/resources/ProxyDirContext
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308) .....
I have spoken with our Java Developers and they seem to think it is something up between httpd and tomcat at an OS level. Since Tomcat is not starting and giving an error that it is all ready running, I think you have a stale lock file. Look for the file /var/run/tomcat5.pid and cat or less it to see what the PID number is. If it matches the error, then delete the file and try to start Tomcat again. It should start this time.
Most common problem with Tomcat5. Try following :
1) Search PID in /tmp, if found delete it or else stop your tomcat.
2) Undeploy your application
3) Check out this link [URL] to know what causing tomcat to generate this error.
If none of them work then check your application configuration settings. [URL]. When I do start tomcat it appears to start:
[root@RPSI-2 san00]# service tomcat5 start
Starting tomcat5: Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JAVA_HOME: /usr/java/jdk1.6.0
[root@RPSI-2 san00]#
But then I try to find if it is running via ps -ef | grep tomcat5, I only receive my query. I perform the same query on Java and it also only returns my query.
View 8 Replies
View Related
Apr 28, 2010
If any one knows about Apache-Tomcat installation.
View 5 Replies
View Related
Jun 20, 2011
I've got a server that runs on Ubuntu Server 11.04 amd64.
I've installed Tomcat 6 and Apache 2 servers.
On Tomcat, I installed Liferay portal as a WAR. I can access to my portal with the following address : http://localhost:8080/lportal
I would like to associate a domain name to the "/lportal" context so that I could access my webapp with the "http://my.domain.com" URL. To make it short, I'd like to access the webapp on "http://localhost:8080/lportal" with "http://my.domain.com".
View 2 Replies
View Related
Feb 23, 2011
I have a site [URL] right now what you are seeing is a default Tomcat6 page. I am using mod_ajp as a front end and Apache vhost configuration for same is
Code:
<VirtualHost *:80 >
ServerName mysite.com
ServerAdmin webmaster@localhost
ProxyRequests off
<Proxy *>
Order deny,allow
[Code]....
View 2 Replies
View Related
Nov 16, 2010
I have FC13 with apache up and running. I need to run tomcat to do some dynamic web with eclipse, I checked my setup and noticed that I already have tomcat5 in add/remove software as installed bu can not find any etc/tomcat and not able to find how to test. I went through the FC13 documentaion, nothing is mentioned abou apache tomcat setup finalizing and testing that ships with FC13 it works. I googled and found some docs around setup tomcat6 or tomcat 5 but not how finalize the one shipped with FC13.
View 2 Replies
View Related