Re: [Freeipa-users] FreeIPA and Tomcat service cannot work at the same time

2016-09-07 Thread Harry Kashouli
I'm an idiot... I figured it out. I forgot to change the shutdown port for
Apache Tomcat, so pki-tomcat was in conflict. Seems to be running fine now!
:D

-Harry

On 7 September 2016 at 13:12, Harry Kashouli  wrote:

> Hi all,
>
> System details:
> Fedora 24
> FreeIPA 4.3.2, and working fine
>
> Desired outcome:
> To have pwm running on the same server, for password self-service -
> https://github.com/pwm-project/pwm
>
> My FreeIPA server is running fine, but when I attempt to start Tomcat for
> pwm, that service will not work. Systemctl output below, let me know if you
> need anything extra, and where to grab it from.
>
> If I enable Tomcat at boot, then both that and the ipa/kerberos services
> fail to start. It seems I cannot have both Apache Tomcat and FreeIPA
> running at the same time. I even tried changing Tomcat's ports by
> increasing the port number, by 1.
>
> [root@~]# systemctl status tomcat
> ● tomcat.service - Apache Tomcat Web Application Container
>Loaded: loaded (/usr/lib/systemd/system/tomcat.service; disabled;
> vendor preset: disabled)
>Active: active (running) since Wed 2016-09-07 13:00:26 PDT; 21s ago
>  Main PID: 13925 (java)
> Tasks: 18 (limit: 512)
>CGroup: /system.slice/tomcat.service
>└─13925 /usr/lib/jvm/jre/bin/java -Djavax.sql.DataSource.
> Factory=org.apache.commons.dbcp.BasicDataSourceFactory -classpath
> /usr/share/tomcat/bin/bootstrap.jar:/usr/share/
> tomcat/bin/tomcat-juli.jar:/usr/lib/java/commons-daemon.jar
> -Dcatalina.base=/usr/share/t
>
> Sep 07 13:00:43 server[13925]: 2016-09-07T13:00:43Z, DEBUG,
> pwm.PwmEnvironment, released file lock on file /var/lib/tomcat/webapps/pwm/
> WEB-INF/applicationPath.lock
> Sep 07 13:00:43 server[13925]: 2016-09-07T13:00:43Z, INFO ,
> pwm.PwmApplication, PWM v1.8.0-SNAPSHOT b18063275
> rb329bec559be6e47c64239474c637b8bd9ed2d93 closed for bidness, cya!
> Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.443 WARNING
> [localhost-startStop-1] 
> org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads
> The web application [pwm] appears to have started a thread named
> [PwmSettingXml s
> Sep 07 13:00:43 server[13925]:  java.lang.Thread.sleep(Native Method)
> Sep 07 13:00:43 server[13925]:  password.pwm.util.Helper.
> pause(Helper.java:112)
> Sep 07 13:00:43 server[13925]:  password.pwm.config.PwmSettingXml$1.run(
> PwmSettingXml.java:73)
> Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.508 INFO [main]
> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
> ["http-nio-8081"]
> Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.510 INFO [main]
> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
> ["ajp-nio-8010"]
> Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.548 INFO [main]
> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
> ["http-nio-8081"]
> Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.550 INFO [main]
> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
> ["ajp-nio-8010"]
> [root@~]# systemctl status tomcat
> ● tomcat.service - Apache Tomcat Web Application Container
>Loaded: loaded (/usr/lib/systemd/system/tomcat.service; disabled;
> vendor preset: disabled)
>Active: inactive (dead)
>
> Sep 07 13:00:43 server[13925]: 2016-09-07T13:00:43Z, DEBUG,
> pwm.PwmEnvironment, released file lock on file /var/lib/tomcat/webapps/pwm/
> WEB-INF/applicationPath.lock
> Sep 07 13:00:43 server[13925]: 2016-09-07T13:00:43Z, INFO ,
> pwm.PwmApplication, PWM v1.8.0-SNAPSHOT b18063275
> rb329bec559be6e47c64239474c637b8bd9ed2d93 closed for bidness, cya!
> Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.443 WARNING
> [localhost-startStop-1] 
> org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads
> The web application [pwm] appears to have started a thread named
> [PwmSettingXml s
> Sep 07 13:00:43 server[13925]:  java.lang.Thread.sleep(Native Method)
> Sep 07 13:00:43 server[13925]:  password.pwm.util.Helper.
> pause(Helper.java:112)
> Sep 07 13:00:43 server[13925]:  password.pwm.config.PwmSettingXml$1.run(
> PwmSettingXml.java:73)
> Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.508 INFO [main]
> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
> ["http-nio-8081"]
> Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.510 INFO [main]
> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
> ["ajp-nio-8010"]
> Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.548 INFO [main]
> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
> ["http-nio-8081"]
> Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.550 INFO [main]
> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
> ["ajp-nio-8010"]
>
> Cheers,
> -Harry
>
-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project

[Freeipa-users] FreeIPA and Tomcat service cannot work at the same time

2016-09-07 Thread Harry Kashouli
Hi all,

System details:
Fedora 24
FreeIPA 4.3.2, and working fine

Desired outcome:
To have pwm running on the same server, for password self-service -
https://github.com/pwm-project/pwm

My FreeIPA server is running fine, but when I attempt to start Tomcat for
pwm, that service will not work. Systemctl output below, let me know if you
need anything extra, and where to grab it from.

If I enable Tomcat at boot, then both that and the ipa/kerberos services
fail to start. It seems I cannot have both Apache Tomcat and FreeIPA
running at the same time. I even tried changing Tomcat's ports by
increasing the port number, by 1.

[root@~]# systemctl status tomcat
● tomcat.service - Apache Tomcat Web Application Container
   Loaded: loaded (/usr/lib/systemd/system/tomcat.service; disabled; vendor
preset: disabled)
   Active: active (running) since Wed 2016-09-07 13:00:26 PDT; 21s ago
 Main PID: 13925 (java)
Tasks: 18 (limit: 512)
   CGroup: /system.slice/tomcat.service
   └─13925 /usr/lib/jvm/jre/bin/java
-Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory
-classpath
/usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/lib/java/commons-daemon.jar
-Dcatalina.base=/usr/share/t

Sep 07 13:00:43 server[13925]: 2016-09-07T13:00:43Z, DEBUG,
pwm.PwmEnvironment, released file lock on file
/var/lib/tomcat/webapps/pwm/WEB-INF/applicationPath.lock
Sep 07 13:00:43 server[13925]: 2016-09-07T13:00:43Z, INFO ,
pwm.PwmApplication, PWM v1.8.0-SNAPSHOT b18063275
rb329bec559be6e47c64239474c637b8bd9ed2d93 closed for bidness, cya!
Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.443 WARNING
[localhost-startStop-1]
org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The
web application [pwm] appears to have started a thread named [PwmSettingXml
s
Sep 07 13:00:43 server[13925]:  java.lang.Thread.sleep(Native Method)
Sep 07 13:00:43 server[13925]:
password.pwm.util.Helper.pause(Helper.java:112)
Sep 07 13:00:43 server[13925]:
password.pwm.config.PwmSettingXml$1.run(PwmSettingXml.java:73)
Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.508 INFO [main]
org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
["http-nio-8081"]
Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.510 INFO [main]
org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
["ajp-nio-8010"]
Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.548 INFO [main]
org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
["http-nio-8081"]
Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.550 INFO [main]
org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
["ajp-nio-8010"]
[root@~]# systemctl status tomcat
● tomcat.service - Apache Tomcat Web Application Container
   Loaded: loaded (/usr/lib/systemd/system/tomcat.service; disabled; vendor
preset: disabled)
   Active: inactive (dead)

Sep 07 13:00:43 server[13925]: 2016-09-07T13:00:43Z, DEBUG,
pwm.PwmEnvironment, released file lock on file
/var/lib/tomcat/webapps/pwm/WEB-INF/applicationPath.lock
Sep 07 13:00:43 server[13925]: 2016-09-07T13:00:43Z, INFO ,
pwm.PwmApplication, PWM v1.8.0-SNAPSHOT b18063275
rb329bec559be6e47c64239474c637b8bd9ed2d93 closed for bidness, cya!
Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.443 WARNING
[localhost-startStop-1]
org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The
web application [pwm] appears to have started a thread named [PwmSettingXml
s
Sep 07 13:00:43 server[13925]:  java.lang.Thread.sleep(Native Method)
Sep 07 13:00:43 server[13925]:
password.pwm.util.Helper.pause(Helper.java:112)
Sep 07 13:00:43 server[13925]:
password.pwm.config.PwmSettingXml$1.run(PwmSettingXml.java:73)
Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.508 INFO [main]
org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
["http-nio-8081"]
Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.510 INFO [main]
org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
["ajp-nio-8010"]
Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.548 INFO [main]
org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
["http-nio-8081"]
Sep 07 13:00:43 server[13925]: 07-Sep-2016 13:00:43.550 INFO [main]
org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
["ajp-nio-8010"]

Cheers,
-Harry
-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project