From owner-freebsd-ports@FreeBSD.ORG Thu May 8 13:30:25 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A286F4F4 for ; Thu, 8 May 2014 13:30:25 +0000 (UTC) Received: from so.liwest.at (so.liwest.at [212.33.55.19]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47BDFF40 for ; Thu, 8 May 2014 13:30:25 +0000 (UTC) Received: from [90.146.7.130] (helo=[192.168.10.87]) by so.liwest.at with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1WiOOz-0002FI-6T; Thu, 08 May 2014 15:30:22 +0200 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: Java wildfly port From: horst leitenmueller In-Reply-To: Date: Thu, 8 May 2014 15:30:20 +0200 Message-Id: References: <6B2116F3-83DB-455D-88A0-18072E5AD490@liwest.at> To: Alexander Yerenkow X-Mailer: Apple Mail (2.1874) X-Spam-Score: -1.0 (-) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: Ports FreeBSD X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 May 2014 13:30:25 -0000 Hi Alexander, works for standalone now :-) INFO: > Which is best way to detect first-start? i meant for startup: make install ; THEN chown ; and the start via rc.d i would add just the information for the add-user script and the management access; if somebody enables i think it=92s the risk = of the admin of the system =97=97=97=97 if you want to access the management console you need additional the arg = -bmanagement=3DIP_to_which_the_9990_Port_is_bound additional you have to create a admin user via = /usr/local/wildfly-8.0.0/bin/add-user.sh =97=97=97=97 problem is still if you would add a domain then you have again problems = with the directory rights, but at the moment = /usr/local/etc/rc.d/wildfly80=20 is only starting standalone.sh if you would add the following then all parts would be covered DOMAIN = and STANDALONE... default DOMAIN directory /usr/local/wildfly-8.0.0/domain/data=20 in /usr/local/etc/rc.d/wildfly80 # wildfly80_startup (str): Set to "DOMAIN" to enable domain or = "STANDALONE" which is default chown -R ${wildfly80_user}:${wildfly80_group} ${WILDFLY_HOME}/domain echo "Starting wildfly80. <"${wildfly80_startup}">" wildfly80_startup=3D"${wildfly80_startup:-"STANDALONE=94}" if [ ${wildfly80_startup} =3D=3D "DOMAIN" ] then daemon -u ${wildfly80_user} ${WILDFLY_HOME}/bin/domain.sh = ${wildfly80_args} >> ${wildfly80_log_stdout} 2>> ${wildfly80_log_stderr} else daemon -u ${wildfly80_user} ${WILDFLY_HOME}/bin/standalone.sh = ${wildfly80_args} >> ${wildfly80_log_stdout} 2>> ${wildfly80_log_stderr} fi br horst On 08 May 2014, at 10:44, Alexander Yerenkow wrote: > I updated archive (with tweaks from both Kurt and Horst). >=20 > https://home.gits.kiev.ua/wildfly80.tar.bz2 >=20 >=20 >=20 > 2014-05-08 10:13 GMT+03:00 horst leitenmueller < > horst.leitenmueller@liwest.at>: >=20 >> Hi Alexander, >>=20 >> first thank=92s for your work >>=20 >> i have tested installation on 9.2-RELEASE with openjdk version = "1.7.0_25" >>=20 >> ERROR: >> java.lang.IllegalArgumentException: Failed to instantiate class >> "org.jboss.logmanager.handlers.PeriodicRotatingFileHandler" for = handler >> "FILE" >>=20 >>=20 >> Caused by: java.io.FileNotFoundException: >> /usr/local/wildfly-8.0.0.Final/standalone/log/server.log (No such = file or >> directory) >>=20 >>=20 >> =3D> log directory in standalone is missing cause by following = problem >>=20 >> chown -R www:www /usr/local/wildfly-8.0.0.Final >> is missing >>=20 >> if changed before first start; installation works like charm >>=20 >=20 > Which is best way to detect first-start? > I placed chown (but only of standalone subdir) in _start section, = should > work. >=20 >=20 >>=20 >>=20 >> INFO: >> not 100% correct (see also >> https://docs.jboss.org/author/display/WFLY8/Command+line+parameters) >>=20 >> i testet both constellations of binding both where working >>=20 >> -Djboss.bind.address=3D >>=20 >> and >>=20 >> -b IP_to_bind_to >>=20 >> as rc.conf _args >>=20 >=20 > Oh, great, they returned '-b' back :) > Updated info to this simpler form. >=20 >=20 >> NTH: >>=20 >=20 >> - info about wildfly80_enable=3D=93YES=94 to put to rc.conf >>=20 >> - some info on how to enable the administration console because at = the >> moment only localhost ist enabled=85. >> i will write something together... >>=20 > I think it's more about their documentation, default setup is = localhost due > to security, if you need to change this, you should > have deep knowledge how and why. >=20 >=20 >>=20 >> deployment i have not testet but i think when rights of the = directories >> are working=85 the rest should also >>=20 >=20 >>=20 >> br horst >>=20 >=20 > Thanks! >=20 >>=20 >> On 24 Apr 2014, at 19:48, Alexander Yerenkow = wrote: >>=20 >> Could anyone take a PR 188339 ? >> Thanks. >>=20 >> -- >> Regards, >> Alexander Yerenkow >> _______________________________________________ >> freebsd-ports@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-ports >> To unsubscribe, send any mail to = "freebsd-ports-unsubscribe@freebsd.org" >>=20 >>=20 >>=20 >=20 >=20 > --=20 > Regards, > Alexander Yerenkow > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to = "freebsd-ports-unsubscribe@freebsd.org"