From owner-freebsd-java@FreeBSD.ORG Wed Jun 26 07:47:06 2013 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C9565573 for ; Wed, 26 Jun 2013 07:47:06 +0000 (UTC) (envelope-from horst.leitenmueller@liwest.at) Received: from so.liwest.at (so.liwest.at [212.33.55.13]) by mx1.freebsd.org (Postfix) with ESMTP id 7121F1391 for ; Wed, 26 Jun 2013 07:47:06 +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.77) (envelope-from ) id 1UrkRN-0006iq-D8; Wed, 26 Jun 2013 09:46:58 +0200 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: java/179927: JBoss 7.2 Can't start with rc script From: horst leitenmueller In-Reply-To: <201306241200.r5OC02pL014259@freefall.freebsd.org> Date: Wed, 26 Jun 2013 09:46:55 +0200 Message-Id: <7CC35C46-BD35-49AB-8DE7-B98943BDE76E@liwest.at> References: <201306241200.r5OC02pL014259@freefall.freebsd.org> To: Alexander Yerenkow X-Mailer: Apple Mail (2.1503) X-Spam-Score: -1.0 (-) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: hasanalpinan@gmail.com, "freebsd-java@freebsd.org" X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jun 2013 07:47:06 -0000 hi Alexander, this is not enough the script has more problems:=20 1) if i call the generate startup code i get the error message=20 /usr/local/etc/rc.d/jboss72 start calls=20 daemon -u www /usr/local/jboss-as-7.2.0.Final/bin/standalone.sh >> = /var/log/jboss72/stdout.log 2>> /var/log/jboss72/stderr.log >> = /var/log/jboss72/boot.log 2>> /var/log/jboss72/boot.log Ambiguous output redirect. if i remove the >> /var/log/jboss72/boot.log 2>> = /var/log/jboss72/boot.log its working... 2) the jboss startup attributes are also missing jboss_args they are = declared but not sent to standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0 -c standalone-full.xml as example =20 daemon -u ${jboss72_user} ${JBOSS_HOME}/bin/standalone.sh = ${jboss72_args} >> ${jboss72_logdir}/stdout.log 2>> = ${jboss72_logdir}/stderr.log results in=20 daemon -u www /usr/local/jboss-as-7.2.0.Final/bin/standalone.sh -b = 0.0.0.0 -bmanagement 0.0.0.0 -c standalone-full.xml >> = /var/log/jboss72/stdout.log 2>> /var/log/jboss72/stderr.log=20 is same like direct call from terminal = /usr/local/jboss-as-7.2.0.Final/bin/standalone.sh -b 0.0.0.0 = -bmanagement 0.0.0.0 -c standalone.xml and it will start;=20 jboss72_enable=3D"YES" jboss72_jvm_opts=3D" -server -Xms128m -Xmx512m -XX:MaxPermSize=3D256m" >>> not working !! jboss72_args=3D" -b 0.0.0.0 -bmanagement 0.0.0.0 -c = standalone-full.xml " # standalone.xml standalone-full.xml it will not work, because params are not given to standalone.sh 3) please add at the end & from the script not to block the terminal ; = also for stopping 4) cool would be to be definable which i want to start standalone.sh / = domain.sh=20 5) cool would be also to get info after installation that its needed to = execute=20 /usr/local/jboss-as-7.2.0.Final/bin/add-user.sh for administration = access br horst On Jun 24, 2013, at 2:00 PM, Alexander Yerenkow = wrote: > The following reply was made to PR java/179927; it has been noted by = GNATS. >=20 > From: Alexander Yerenkow > To: Hasan Alp iNAN > Cc: freebsd-gnats-submit@freebsd.org > Subject: Re: java/179927: JBoss 7.2 Can't start with rc script > Date: Mon, 24 Jun 2013 14:53:25 +0300 >=20 > --20cf307ac3e95f7ed304dfe50f61 > Content-Type: text/plain; charset=3DISO-8859-1 >=20 > it's being investigated (some shell changes), you can edit rc script = and > change >=20 > daemon -u ${%%APP_SHORTNAME%%_user} ${JBOSS_HOME}/bin/standalone.sh > ${%%APP_SHORTNAME%%_logging} >> ${%%APP_SHORTNAME%%_logdir}/boot.log = 2>> > ${%%APP_SHORTNAME%%_logdir}/boot.log >=20 >=20 > to >=20 > daemon -u ${%%APP_SHORTNAME%%_user} ${JBOSS_HOME}/bin/standalone.sh >> > ${%%APP_SHORTNAME%%_logdir}/stdout.log 2>> > ${%%APP_SHORTNAME%%_logdir}/stderr.log >> > ${%%APP_SHORTNAME%%_logdir}/boot.log 2>> > ${%%APP_SHORTNAME%%_logdir}/boot.log >=20 >=20 >=20 >=20 > 2013/6/24 Hasan Alp iNAN >=20 >>=20 >>> Number: 179927 >>> Category: java >>> Synopsis: JBoss 7.2 Can't start with rc script >>> Confidential: no >>> Severity: non-critical >>> Priority: low >>> Responsible: freebsd-java >>> State: open >>> Quarter: >>> Keywords: >>> Date-Required: >>> Class: sw-bug >>> Submitter-Id: current-users >>> Arrival-Date: Mon Jun 24 11:50:00 UTC 2013 >>> Closed-Date: >>> Last-Modified: >>> Originator: Hasan Alp iNAN >>> Release: FreeBSD 9.1-RELEASE 64bit >>> Organization: >>> Environment: >> FreeBSD app0.xxx.xxx.xxx 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #2: = Fri Jun >> 21 09:17:18 EEST 2013 = root@vs0.seyhan.bel.tr:/usr/obj/usr/src/sys/GENERIC >> amd64 >>> Description: >> Hi >>=20 >> I installed JBoss application server inside a jail. I edited >> standalone.xml file for Jail IP. When I tried to start JBoss 7.2; = startup >> script can't start JBoss. >>=20 >> When I tried >>=20 >> daemon -u www /usr/local/jboss-as-7.2.0.Final/bin/standalone.sh >>=20 >> or >>=20 >> ./standalone.sh (user root) >>=20 >> commands JBoss start successfully. >>=20 >> I also checked to file permissions >>=20 >> chown -R www:www /usr/local/jboss-as-7.2.0.Final >>=20 >> but nothing change. >>=20 >> In /etc/rc.conf file >>=20 >> jboss72_enable=3D"YES" >>> How-To-Repeat: >> service jboss72 start >> /usr/local/etc/rc.d/jboss72 start >>> Fix: >>=20 >>=20 >>> Release-Note: >>> Audit-Trail: >>> Unformatted: >> _______________________________________________ >> freebsd-java@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-java >> To unsubscribe, send any mail to = "freebsd-java-unsubscribe@freebsd.org" >>=20 >=20 >=20 >=20 > --=20 > Regards, > Alexander Yerenkow >=20 > --20cf307ac3e95f7ed304dfe50f61 > Content-Type: text/html; charset=3DISO-8859-1 > Content-Transfer-Encoding: quoted-printable >=20 >

it's being investigated (some shell = changes),=3D > you can edit rc script and change=3DA0

=3DA0 = da=3D > emon -u ${%%APP_SHORTNAME%%_user} ${JBOSS_HOME}/bin/standalone.sh = ${%%APP_S=3D > HORTNAME%%_logging} >> ${%%APP_SHORTNAME%%_logdir}/boot.log = 2>>=3D > ${%%APP_SHORTNAME%%_logdir}/boot.log
> =


to=3DA0

= =3D > daemon -u ${%%APP_SHORTNAME%%_user} = ${JBOSS_HOME}/bin/standalone.sh &g=3D > t;> ${%%APP_SHORTNAME%%_logdir}/stdout.log 2>> = ${%%APP_SHORTNAME%%=3D > _logdir}/stderr.log >> ${%%APP_SHORTNAME%%_logdir}/boot.log = 2>>=3D > ${%%APP_SHORTNAME%%_logdir}/boot.log
>



r>
2013/6/24 Hasan Alp iNAN <=3D > ;hasanalpinan@g=3D > mail.com>
>
x #ccc solid;padding-left:1ex">
> >Number: =3DA0 =3DA0 =3DA0 =3DA0 179927
> >Category: =3DA0 =3DA0 =3DA0 java
> >Synopsis: =3DA0 =3DA0 =3DA0 JBoss 7.2 Can't start with rc = script
> >Confidential: =3DA0 no
> >Severity: =3DA0 =3DA0 =3DA0 non-critical
> >Priority: =3DA0 =3DA0 =3DA0 low
> >Responsible: =3DA0 =3DA0freebsd-java
> >State: =3DA0 =3DA0 =3DA0 =3DA0 =3DA0open
> >Quarter:
> >Keywords:
> >Date-Required:
> >Class: =3DA0 =3DA0 =3DA0 =3DA0 =3DA0sw-bug
> >Submitter-Id: =3DA0 current-users
> >Arrival-Date: =3DA0 Mon Jun 24 11:50:00 UTC 2013
> >Closed-Date:
> >Last-Modified:
> >Originator: =3DA0 =3DA0 Hasan Alp iNAN
> >Release: =3DA0 =3DA0 =3DA0 =3DA0FreeBSD 9.1-RELEASE 64bit
> >Organization:
> >Environment:
> FreeBSD app0.xxx.xxx.xxx 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #2: Fri = Jun =3D > 21 09:17:18 EEST 2013 =3DA0 =3DA0 = root@vs0.seyhan.bel.tr:/usr/obj/usr/src/sys/G=3D > ENERIC =3DA0amd64
> >Description:
> Hi
>
> I installed JBoss application server inside a jail. I edited = standalone.xml=3D > file for Jail IP. When I tried to start JBoss 7.2; startup script = can'=3D > t start JBoss.
>
> When I tried
>
> daemon -u www /usr/local/jboss-as-7.2.0.Final/bin/standalone.sh
>
> or
>
> ./standalone.sh (user root)
>
> commands JBoss start successfully.
>
> I also checked to file permissions
>
> chown -R www:www /usr/local/jboss-as-7.2.0.Final
>
> but nothing change.
>
> In /etc/rc.conf file
>
> jboss72_enable=3D3D"YES"
> >How-To-Repeat:
> service jboss72 start
> /usr/local/etc/rc.d/jboss72 start
> >Fix:
>
>
> >Release-Note:
> >Audit-Trail:
> >Unformatted:
> _______________________________________________
> freebsd-java@freebsd.org = ma=3D > iling list
> = =3D3D"_blank">http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to " scribe@freebsd.org">freebsd-java-unsubscribe@freebsd.org"
>



-- =
Regards,
Alexander Y=3D > erenkow >
>=20 > --20cf307ac3e95f7ed304dfe50f61-- > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to = "freebsd-java-unsubscribe@freebsd.org"