Ubuntu Servers :: Tomcat 6 Won't Start At Boot But Otherwise All Is Normal

Nov 18, 2010

I'm having some trouble with Tomcat 6 after upgrading to 10.10. During the upgrade process, the installer hung while dealing with Tomcat 6, which required me to kill the upgrade and do some clean up, and then re-run `apt-get upgrade` again to get things going. This left some weirdness (like the MOTD for both 10.10 and 10.04 being shown on login), but otherwise things are OK. The only remaining problem I have is Tomcat; it simply won't start when the server is booted. The information I have:

Tomcat 6 runs normally when started with `sudo /etc/init.d/tomcat6 start`. No errors are thrown, everything works as expected.I used `rcconf` to try removing and reinstalling the rc scripts, this didn't help. I manually deleted all the rc scripts, then used `rcconf` again. The scripts all seem symlinked correctly to `/etc/init.d/tomcat6`, but it's just not coming up on boot. I ran `sudo grep "tomcat" /var/log/*.log` to see if something is appearing in the logs, but nothing of interest is there.

How can I verify that Ubuntu is even trying to start Tomcat? As this is a development box, I am not adverse to a quick + dirty solution if there's some either simple way of getting it started at boot. I'm thinking the next Ubuntu release will see me blow away the server and start it fresh, but right now I'd just like a working box

View 7 Replies


ADVERTISEMENT

CentOS 5 :: Tomcat 5.5 Does Not Start At Boot?

Nov 21, 2009

I have installed Tomcat 5.5 on a server with Centos 5.2. I can start Tomcat from command line with:

/var/lib/tomcat5/bin/catalina.sh start but if I add the command to /etc/rc.local Tomcat don't start on boot, I need to login and manually start. I have add other services to the /etc/rc.local file (mysql and apache) and all start with no problem. Only Tomcat failed to start on boot.

I added the JAVA_HOME to /root/.bashrc:
export JAVA_HOME=/usr/lib/jdk
export PATH=$JAVA_HOME/bin:$PATH
export CATALINA_HOME=/var/lib/tomcat5
export CATALINA_BASE=/var/lib/tomcat5

I have tried many different things I found on the net, but nothing worked for me.

View 4 Replies View Related

Ubuntu Servers :: Migrating From LVM To Normal Partitions - Boot Not Complete

Feb 20, 2010

I have an Ubuntu 9.10/64 Server configured with LVM in a 1Tb sata disk in my home server. For a simple server, LVM adds complexity if you need to recover your system, so I decided to migrate from LVM to normal partitions. I have another 1Tb disk to copy my system disk. In the backup disk, i have created same size partitions and trasfered files from /boot and root volumes with rsync, presenving perms etc... and excluding /dev /proc /sys etc... I have then modified /etc/fstab to mount new UUID's and reinstaled grub via live CD and chroot.

At this point, when I replace my system disk with backup one, the boot process start as usual, but when it starts loading services the boot process does not continue. The system is not "frozen". If I press intro, there is a line feed on screen. If I mount the backup disk in another system, there is nothing writed to /var/log/syslog or dmesg files during the boot process. I can change terminal with <alt>F2 but there is no login. In console, with backup disk I get:

Code:
....type 1505 audit.... operation="profile_load".....
Done.
fsck from util-linux-ng 2.16
/dev/sda1: clean ......
fsck from util-linux-ng 2.16
/dev/sda5: clean ......
* Stopping remote control daemon(s): LIRC
* Loading LIRC modules
lircd-0.8.6[1057]: lircd(default) ready, using /var/run/lirc/litcd
* could not access PID file for nmbd

And with original system disk:
Code:
....type 1505 audit.... operation="profile_load".....
Done.
fsck from util-linux-ng 2.16
/dev/sda5: clean ......
fsck from util-linux-ng 2.16
* Stopping remote control daemon(s): LIRC
* Loading LIRC modules
lircd-0.8.6[1057]: lircd(default) ready, using /var/run/lirc/litcd
/dev/mapper/coll-root: clean ......
* could not access PID file for nmbd
* Setting preliminary keumap...
Ubuntu 9.10 coll tty1
coll login:

View 1 Replies View Related

Ubuntu Servers :: Eclipse And Tomcat Are Running But Can't See Tomcat In The Eclipse

Sep 1, 2010

I installed eclipse and tomcat with package manager. Eclipse and tomcat are running but i can't see tomcat in the eclipse. I just see 'Basic' folder. That is a screenshot [URL]

View 1 Replies View Related

Server :: DHCPD Will Start In Debug But Will Not Start As A Normal Service

Jun 7, 2010

I have setup a CentOS 5.5 server as a DHCP server. That will be it's only task in a Cisco callmanger VoIP environment The DHCP server that comes with CentOS 5.5 is from ISC V3.0.5 -redhat.

The server (HP DL360) has two physical NIC's of which only NIC1 is used (ETH0)

ifconfig shows:

Code:

The interface has a fixed IP setup.

My dhcp.conf file looks like this:

Code:

When I start (try to) dhcpd via the service interface or via the prompt as

Code: service dhcpd start

I get an [FAILED] message and the following is in /var/log/messages

Code:

But when I start the DHCPD on the comamnd prompt in debug mode it looks as follows:

Code:

and /var/log/messages shows:

Code:

Why does the system ask a declaration for eth0 0.0.0.0?

View 3 Replies View Related

Ubuntu :: Eclipse + Tomcat Can't Start Correctly?

Feb 2, 2011

I got jdk, jre, tomcat, eclipse installed correctly (I'm sure about that)I can start tomcat and works fine, and eclipse too.but whenever I try to run server through eclipse (server->run) I got following message:

Code:
WARNING: Failed to create work directory [/home/kossel/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/work/Catalina/localhost/_] for context []
Feb 2, 2011 6:08:23 PM org.apache.jasper.EmbeddedServletOptions <init>[code]....

did ls -ln workspace I get:

Code:
drwxr-xr-x 4 1000 1000 4096 2011-02-02 16:34 Servers looks has permission right?

View 1 Replies View Related

Ubuntu :: Tomcat Webapp Unable To Start?

Jul 10, 2011

I am running Server 11.04 / Tomcat 7.0.16 / Sysaid ( webapp )

I have configured the Java environment, tomcat is up and running and moved the sysaid.war to the webapps folder in tomcat.

I got to http://127.0.0.1:8080 - verify that sysaid is listed as an app, it is. The .war has extracted in the webapps folder but fails to start.

Everytime I try to start it I get:

"FAIL - Application at context path /sysaid can not be started"..

Anyone have thoughts regarding the fail to run the app? I have hit up sysaid forums, but no luck through searching and or replys at this time...

View 1 Replies View Related

Fedora :: Tomcat 6 Won't Start Under FC12?

Nov 20, 2009

Trying to start Tomcat6, I get the following in catalina.out

dl failure on line 696Error: failed /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/client/libjvm.so, because /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/client/libjvm.so: cannot enable executable stack as shared object requires: Permission denied

View 3 Replies View Related

General :: Start Tomcat Using Command Prompt?

May 9, 2011

Friends currently we are accessing tomcat manager using web page ]

http://localhost:8080 ,

is it possible to start the tomcat manager using command prompt!

View 4 Replies View Related

General :: Start The Tomcat Server Remotely?

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

Server :: After Reboot Tomcat 5 Will Not Start On RHEL3

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

Ubuntu Servers :: Tomcat Via The Web?

Jan 18, 2010

I'm trying to access a .jsp page that is located on my apache/tomcat server from the web. I changed the connection port of tomcat to port 80 and changed my doc root from the default "webapps" to my normal web directory. However, whenever I try to visit the page, I only see the code of the page.

If you would like to see what I am talking about, feel free to see it for yourself:
[URL]

View 1 Replies View Related

Fedora :: Unable To Start Tomcat 6 While Running Liferay?

May 26, 2010

after executing the commands

1. ./startup.sh
2. tail -f ../logs/catalina.out

the following error comes on the terminal

.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1245)

[code]....

View 5 Replies View Related

Ubuntu Servers :: Samba Does Not Start On Boot-up?

Mar 22, 2010

My problem is that the samba daemon does not start on boot-up anymore on my file-sharing server.Samba starts flawlessly if start it manually.If I run:

Code:
/etc/init.d/samba status
I get :

[code].....

View 9 Replies View Related

Ubuntu Servers :: MySQL Does Not Start On Boot

May 11, 2010

Ubuntu server 10.04 comes with a new event based startup system, and I wonder if that can be responsible for this problem. The server has been upgraded from 9.10. On reboot mysql does not always manage to start... /var/log/mysql/error.log has info similar to this:

100511 19:05:00 [ERROR] Can't start server: Bind on TCP/IP port: Cannot assign requested address
100511 19:05:00 [ERROR] Do you already have another mysqld server running on port: 3306 ?
100511 19:05:00 [ERROR] Aborting

So apparently port 3306 is not 100% unused when mysql tries to open it or somehow network connections are not ready, even if mysql start is supposed to wait for 'net-device-up' and 'local-filesystems' according to /etc/init/mysql.conf. This does not happen on all reboots. I am supposed to be able to start it manually with command 'start mysql' but that does not seem to work also. When I try start it again, it says mysql is running but no databases can be reached and mysqld is not active, reboot and good luck is all that helps...

As far as I know there are no firewalls installed, at least none I have manually configured and it has worked with no problems on 9.10. So this new upstart thing seems responsible. It simply does not let mysql wait until it can start in good way. That also explains why it's a random problem. If all starts happen when and if there is free processor time, it does not always start things in the same order on every reboot. The key here is port 3306, or whatever port mysql is configured to use. The upstart system simply needs delay the start until the port is 100% free and available for the system to use.

View 1 Replies View Related

Ubuntu Servers :: Mysql Do Not Start At Boot?

Jul 26, 2010

Recently, few days or maybe a week ago I updated mysql and now mysql service do not start at boot. I must start it manualy, before this update it start automaticly.

View 9 Replies View Related

Ubuntu Servers :: Start Liferay At Boot?

Aug 20, 2010

I know Ubuntu has changed the startup system in 10.04 and I am wondering how to go about starting my liferay server at boot (instead of starting manually).

There's already a startup script, can I setup a symlink to somewhere to have it start automatically?

I've tried searching through documentation and google but most of it applies to older versions of Ubuntu.

View 3 Replies View Related

Ubuntu Servers :: Xampp Will Not Start On Boot?

Sep 29, 2010

I have recently set up my web server using the LAMPP package for Ubuntu. Now I'm running Ubuntu Server 10 so my machine boots into the console and not gdm. Also I have my machine autologin as root so I can simply turn my server on and not mess around with logins. Now I created a simple shellscript for starting lampp and then I put it into etc/init.d/, chmod -x file.sh to give it executable permissions, then I update-rc.d file.sh defaults but nothing happens on startup. It simple takes me to the console and nothing more happens. I have to manually start lampp on every bootup.

View 1 Replies View Related

Ubuntu Servers :: Cannot Access Tomcat On 8080 Outside Lan

May 24, 2010

On my Ubuntu 10.04 lucid lynx server edition machine I have an Apache http server listening on port 80 and today I installed the Funambol server which added an Apache Tomcat server listening on port 8080. From within my lan I can reach both servers, but from outside the lan I can only reach the http server on port 80 and not the Funambol server on port 8080. I get a time out message instead.

In my router I have setup port forwarding, such that both ports 80 and 8080 get forwarded to my server machine. Must Tomcat be told to listen to external requests? Is my server listening on port 8080 only for requests inside the lan? Or is there some authorization that fails when I try to visit from outside my lan?

Here is some netstat output, I don't know if the differences between the 80 line and the 8080 line are relevant:

Code:
remon@compaq:~$ sudo netstat -nlp | grep 80
tcp 0 0 0.0.0.0:8009 0.0.0.0:* LISTEN 1778/java

[Code]....

View 9 Replies View Related

Ubuntu Servers :: Compiled Mysql Start On Boot?

Mar 24, 2010

I just compiled mysql apache and php from source and I have apache to start up from boot but I don't exactly know how to get mysql to do the same.

Edit: Also how do I add mysql to path? Should I just symlink it to somewhere thats in the path or what? And if that is the case wheres the best place to symlink it too.

View 3 Replies View Related

Ubuntu Servers :: Apache Server Don't Want To Start By Itself On Boot

Apr 6, 2010

My apache server don't want to start by itself on boot.

View 9 Replies View Related

Ubuntu Servers :: Start MySQL Before Jabber On Boot

May 3, 2010

Currently when the system boots, It boots jabberd2 before mysql. So jabber fails. Then, later mysql is loaded. I either want to force jabber to load mysql first, or make the system boot mysql first. I've tried changing /etc/init.d/jabberd2 to say "# Required-Start:
mysql $network $named $remote_fs"...
However, insserv says that mysql service has to be enabled... so I assume that's an issue because mysql is an upstart script.

View 5 Replies View Related

Ubuntu Servers :: Start The Cod As A Specified User On System Boot?

May 4, 2010

Whats a way to start the cod server as a specified user on system boot. Whats the best way for me to do this? The cod server is located in the users home directory

View 8 Replies View Related

Ubuntu Servers :: Sometimes Does Not Start - Boot Process But Then Hangs

Oct 31, 2010

Running Ubuntu Server 10.04 32 bit. Sometimes when I reboot it does not start up, It seems to be going through the boot process but then just hangs. I have had a look at the log files and can't see anything, but I'm not really sure what I am looking for.

View 2 Replies View Related

Ubuntu Servers :: Start Dropbox Daemon At Boot On 10.04?

Dec 19, 2010

I am having some trouble making the dropbox daemon start at boot. I followed these instructions -> [URL], which are basically a replica of the original instructions from the Dropbox Wiki [URL]. The installation went fine, except that the machine still cannot start the daemon at boot. I tried to modify the init.d script a bit (see the attachment), but it still wont work (I am not sure if my changes made any significant difference, though). The daemon will only start if I invoke it manually after login with the command:

Code:

[user@machine:~]$ service dropbox start

Which executes the daemon just fine. I also tried adding this line of code to crontab:

Code:

@reboot /etc/init.d/dropbox start

This command starts the daemon if I check with the command "service dropbox status", but if I execute the official dropbox CLI command:

Code:

~/bin/dropbox.py status

it says that Dropbox isn't running and I still have to execute it manually.

P.s.: The machine runs Ubuntu Server 10.04, with all the latest system patches and updates.

View 3 Replies View Related

Ubuntu Servers :: Getting Virtualbox Guest VM To Start On Boot?

Mar 29, 2011

I'm running the host server on Ubuntu 10.04 LTS (64bit) . I'm using virtual box. I want to automatically for one of the guest vritualboxes to start on reboot. Following is already done without a success. Please help me in solving this.

1. I have created the following shell script
#!/bin/bash
/usr/bin/nohup /usr/bin/VBoxHeadless --startvm "VMNAME" 2> /dev/null &

2.From the current logged on user I did a crontab -e and did the following

crontab -e @reboot /bin/sh /home/myaccount/shellscript.sh note that I do not encrypt the home directory and sufficient permissions are there.

View 9 Replies View Related

Ubuntu Servers :: 10.04 - MySQL Process Does Not Start At Boot

Apr 13, 2011

On my Ubuntu 10.04 LTS Server, mysql does not start at boot. I tried this but does not work.
Code:
root@dev:~# chkconfig mysql ON

The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'K02mysql' missing LSB tags and overrides
insserv: warning: script 'S10vzquota' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs .....

How to make sure mysql process comes up automatically after every reboot

View 4 Replies View Related

Ubuntu Servers :: Custom Service Start At Boot?

Jul 6, 2011

I have a few problems getting a custom service/daemon to auto-start at boot. I'm running ubuntu 11.04 Server amd64 edition. One of the services is a Teamspeak3 server I'm trying to start. I would like it to start up automatically on boot. ts3 already have a script with start/stop commands so all i have done is make a little script for it to get it to run as the correct user.

Code:
#!/bin/sh
### BEGIN INIT INFO
# Provides: ts3
# Required-Start: $all
# Required-Stop: $local_fs $remote_fs $network $syslog $named
# Default-Start: 2 3 4 5

[Code]...

View 7 Replies View Related

Ubuntu Servers :: Deny Access To Tomcat Based On Ip?

Feb 11, 2010

We need to only allow access to a web page only to some ips. We want to do this via Apache but it seems like the standard way of denying all and allowing some ips doesn't work because we mount a webapp using tomcat.

The sites-enabled file looks like this:

Code:
NameVirtualHost *:443
<VirtualHost *:443>
ServerName web.address.com:443
ErrorLog /var/log/apache2/app_ssl_error.log

[Code]....

View 2 Replies View Related

Ubuntu Servers :: Installing Tomcat 6 Manually Or From Repository?

May 13, 2010

So researching how to install Tomcat 6, I ran across a guide that specifically states there are issues with the repository version of Tomcat. Doing some more research it seems like this is reported in multiple places including a disussion on the official mailing list that was inconclusive. So my question is, if this is intended for a production server should I use the repository one or manually install it

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved