You are not logged in.

#1 2015-04-25 09:50:20

joyce
Member
Registered: 2013-04-07
Posts: 17

[SOLVED] systemctl start tomcat7 do not work ?!

Hi,

I followed the archwiki with systemctl , but localhost:8080 remained blank. Then I edit bashrc and change the TOMCAT_JAVA_HOME variable like this guy here:

https://bbs.archlinux.org/viewtopic.php?id=159025

But nothing happens !

The command >>journalctl<< returns

Apr 25 11:37:02 gary systemd[1]: Started Tomcat 7 servlet container.
Apr 25 11:37:02 gary polkitd[376]: Unregistered Authentication Agent for unix-process:6481:1319631 (system bus name :1.34, object path /or
Apr 25 11:37:23 gary root[6493]: ACPI action undefined: PNP0C0A:00

What is the problem ?

Last edited by joyce (2015-04-25 19:46:14)

Offline

#2 2015-04-25 10:59:43

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [SOLVED] systemctl start tomcat7 do not work ?!

Apr 25 11:37:02 gary systemd[1]: Started Tomcat 7 servlet container.

This implies it runs fine, not sure why you editted your bashrc. Does `ss -lnp|grep 8080` show any running process listening on that port? What does `systemctl status tomcat7` output?

Offline

#3 2015-04-25 17:25:59

joyce
Member
Registered: 2013-04-07
Posts: 17

Re: [SOLVED] systemctl start tomcat7 do not work ?!

Hi,

thanks for help. After lunch I can see the tomcat HP now, the command

$ ss -lnp|grep
tcp    LISTEN     0      100      :::8080                 :::*

I edit the bashrc to point TOMCAT_JAVA_HOME to the java-sdk-8 - an older forum poster said he changed the bashrc to get sun java permanently. His error messages was caused because TOMCAT_JAVA_HOME pointed to openjdk.

So, my bashrc contains a line:

JAVA_HOME=/usr/lib/jvm/java-8-jdk


I tried according to archwiki on Java:

# archlinux-java status
Available Java environments:
  java-8-jdk (default)
# archlinux-java set java-8-sdk
'/usr/lib/jvm/java-8-sdk' is not a valid Java environment path

I am confused ?!

Offline

#4 2015-04-25 19:38:52

joyce
Member
Registered: 2013-04-07
Posts: 17

Re: [SOLVED] systemctl start tomcat7 do not work ?!

[SOLVED] I rollbacked the bashrc edit and tomcat7 HP showed up without problems. Thanks for help !

Offline

Board footer

Powered by FluxBB