Java wildfly port

horst leitenmueller horst.leitenmueller at liwest.at
Thu May 8 13:30:25 UTC 2014


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’s the risk of the admin of the system

————

if you want to access the management console you need additional the arg  -bmanagement=IP_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

————

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 
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 

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="${wildfly80_startup:-"STANDALONE”}"

 if [ ${wildfly80_startup} == "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 <yerenkow at gmail.com> wrote:

> I updated archive (with tweaks from both Kurt and Horst).
> 
> https://home.gits.kiev.ua/wildfly80.tar.bz2
> 
> 
> 
> 2014-05-08 10:13 GMT+03:00 horst leitenmueller <
> horst.leitenmueller at liwest.at>:
> 
>> Hi Alexander,
>> 
>> first thank’s for your work
>> 
>> i have tested installation on 9.2-RELEASE with openjdk version "1.7.0_25"
>> 
>> ERROR:
>> java.lang.IllegalArgumentException: Failed to instantiate class
>> "org.jboss.logmanager.handlers.PeriodicRotatingFileHandler" for handler
>> "FILE"
>> 
>> 
>> Caused by: java.io.FileNotFoundException:
>> /usr/local/wildfly-8.0.0.Final/standalone/log/server.log (No such file or
>> directory)
>> 
>> 
>> => log directory in standalone is missing cause by following problem
>> 
>> chown -R www:www /usr/local/wildfly-8.0.0.Final
>> is missing
>> 
>> if changed before first start; installation works like charm
>> 
> 
> Which is best way to detect first-start?
> I placed chown (but only of standalone subdir) in _start section, should
> work.
> 
> 
>> 
>> 
>> INFO:
>> not 100% correct (see also
>> https://docs.jboss.org/author/display/WFLY8/Command+line+parameters)
>> 
>> i testet both constellations of binding both where working
>> 
>> -Djboss.bind.address=
>> 
>> and
>> 
>> -b IP_to_bind_to
>> 
>> as rc.conf _args
>> 
> 
> Oh, great, they returned '-b' back :)
> Updated info to this simpler form.
> 
> 
>> NTH:
>> 
> 
>> - info about wildfly80_enable=“YES”  to put to rc.conf
>> 
>> - some info on how to enable the administration console because at the
>> moment only localhost ist enabled….
>>  i will write something together...
>> 
> 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.
> 
> 
>> 
>> deployment i have not testet but i think when rights of the directories
>> are working… the rest should also
>> 
> 
>> 
>> br horst
>> 
> 
> Thanks!
> 
>> 
>> On 24 Apr 2014, at 19:48, Alexander Yerenkow <yerenkow at gmail.com> wrote:
>> 
>> Could anyone take a PR 188339 ?
>> Thanks.
>> 
>> --
>> Regards,
>> Alexander Yerenkow
>> _______________________________________________
>> freebsd-ports at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
>> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
>> 
>> 
>> 
> 
> 
> -- 
> Regards,
> Alexander Yerenkow
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"



More information about the freebsd-ports mailing list