tomcat code=exited status=203/EXEC

2017-01-13 Thread Mary Wiegand
I'm getting the following error when I try to run tomcat8.
tomcat code=exited status=203/EXEC

I've done a bunch of searching for things that might work but haven't had
any luck with anything and nothing seems to be straight forward.

I'm using ubuntu server 14.06 and tomcat8.

Any ideas would be awesome.

Thanks,

-Mary


Re: tomcat installation errors

2016-12-20 Thread Mary Wiegand
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?

Thanks

On Tue, Dec 20, 2016 at 1:38 PM, Mary Wiegand 
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.bo...@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 
> > 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*
>
>


Re: tomcat installation errors

2016-12-20 Thread Mary Wiegand
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.bo...@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 
> 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*


tomcat installation errors

2016-12-20 Thread Mary Wiegand
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