tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier (tomcat) ...@ice-sa.com>
Subject Re: tomcat installation errors
Date Tue, 20 Dec 2016 21:48:03 GMT
On 20.12.2016 22:42, Mary Wiegand wrote:
> I was using a specific walk through to install Tomcat and everything that's
> needed with it.
> I downloaded the installer from tomcat to the /tmp file and then extracted
> it and installed it to the /opt/tomcat dir.
> Which I had to make the directory. Should I just start over with a
> different guide?

I think so. Because from what you describe below, I believe that you are trying to run a 
standard Tomcat downloaded from tomcat.apache.org, with the startup scripts of an Ubuntu 
(different) Tomcat package.  That is unlikely to work out of the box.

>
> Thanks
>
> On Tue, Dec 20, 2016 at 1:38 PM, Mary Wiegand <naviak.kaiver@gmail.com>
> wrote:
>
>> There was a pid file in that location. I removed it and restarted tomcat.
>>
>> commands:
>> rm /opt/tomcat/temp/tomcat.pid
>> systemctl restart tomcat
>> systemctl status tomcat
>>
>> tomcat.service - Apache Tomcat Web Application Container
>> Loaded: loaded (/etc/systemd/system/tomcat.service; enabled; vendor
>> preset: enabled)
>> Active: activating (auto-restart) (Result: exit-code) since Tue 2016-12-20
>> 13:27:49 PST; 5s ago
>> Process: 31130 ExecStop=/opt/tomcat/bin/shutdown.sh (code=exited,
>> status=1/FAILURE)
>> Process: 31117 ExecStart=/opt/tomcat/bin/startup.sh (code=exited,
>> status=0/SUCCESS)
>> Main PID: 31129 (code=exited, status=2)
>>
>> And I'm still getting the same results from the journalctl -xe.
>>
>>
>> On Tue, Dec 20, 2016 at 1:12 PM, Niranjan Babu Bommu <
>> niranjan.bommu@gmail.com> wrote:
>>> may be pid file lying around  from earlier stop/start?
>>>
>>> remove the pid file  and start again.
>>>
>>> /opt/tomcat/temp/tomcat.pid
>>>
>>> On Tue, Dec 20, 2016 at 4:08 PM, Mary Wiegand <naviak.kaiver@gmail.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm installing tomcat v8.5.9 on ubuntu 16.04
>>>>
>>>> this is my tomcat.service file:
>>>>
>>>> #System unit file for tomcat
>>>> [Unit]
>>>> Description=Apache Tomcat Web Application Container
>>>> After=network.target
>>>>
>>>> [Service]
>>>> Type=forking
>>>>
>>>> Environment=JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre/bin/java
>>>> Environment=CATALINA_PID=/opt/tomcat/temp/tomcat.pid
>>>> Environment=CATALINA_HOME=/opt/tomcat
>>>> Environment=CATALINA_BASE=/opt/tomcat
>>>> Environment='CATALINA_OPTS=-Xms512M -Xmx1024M
>> -server-XX:+UseParallelGC'
>>>> Environment='JAVA_OPTS=-Djava.awt.headless=true
>>>> -Djava.security.edg=file:/dev/./urandom'
>>>>
>>>> ExecStart=/opt/tomcat/bin/startup.sh
>>>> ExecStop=/opt/tomcat/bin/shutdown.sh
>>>>
>>>> User=tomcat
>>>> Group=tomcat
>>>> UMask=0007
>>>> RestartSec=10
>>>> Restart=always
>>>>
>>>> [Install]
>>>> WantedBy=multi-user.target
>>>>
>>>>
>>>> This is what I get when I check the journalctl -xe:
>>>>
>>>> tomcat.service: Main process exited, code=exited,
>> status=2/INVALIDARGUMENT
>>>> PID file found but no matching process was found. Stop aborted.
>>>> tomcat.service: Control process exited, code=exited status=1
>>>> tomcat.service: Unit entered failed state.
>>>> tomcat.service:Failed with result 'exit-code'.
>>>>
>>>> Anyone have any ideas for me on where to start looking for the
>>>> invalidargument?
>>>>
>>>> Thanks,
>>>>
>>>> -Mary
>>>>
>>>
>>>
>>>
>>> --
>>> *Thanks*
>>> *Niranjan*
>>
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message