From nobody Tue Nov 22 15:34:23 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NGpG76C8Cz4hv4B for ; Tue, 22 Nov 2022 15:34:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NGpG72fLHz4NNh for ; Tue, 22 Nov 2022 15:34:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669131263; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bRkCfzpRcXv3kn+fri0b8YiGMhMIfwsrjRVQYYJi2Kw=; b=Wn7cRjQq+lOPEL8IM+Cu4igptF9wFcVKW7Iy2rgw8jO2gePWq8G0uzndSchs8hEwvT2172 N26pgsWmCkbCNnM/3mqum7iN1ZYK0B+Qe0p9OP3TkxIs72WSqgwR9F5H2wZ+Itfh0DITqm nQ5G6x5pVsVOQQA3ZRyk3vXa6Hz0IHX9nPoRhXB1MNwJe30ySSyVUdjILzQGnHgGctZri5 PSy1LuxdHGJAWJTC6foEKdTJvKk3Xt73FDUXy5NEBRdW6eJSo9/Ms6TRGa6RNjdc5jsUG3 nMYlMwL9TruTwdn30KEh6jvgFEWCFhD+Y0RuVJYobT04g8sovp9bbme8gMeNBA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669131263; a=rsa-sha256; cv=none; b=eX98NjuSq8fMLOVZQfC8IArFN0j6Puwhz9HFowYUKb6Ogu8/HT4UbdbLAsJmMy7FwyZ6i2 URCPCxSzG3BIpfjIzl25zEExCLdZpX3lRPLVedXg1zBlexUlNGPcryL39YqZH5/DY8DPvW GGeDPodlrvlpliooJlPPRvDBjipO4vOGnfWPeaU8x69/TuHy6apzhZc8UvgGroKn/7RYX/ WV5CJPorSjU6AbMsOjKeY8SAx1ZDqH1iH/ENmbJYr6RJiTWazEXrIyx0aW0O3bv4Xl+oEe 3nEUQH34ya6qCCCW9vJ95y8IMlt8h9W+ZzjAbWM9uy937WKE0yI45iTxxKmg8g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NGpG71jhHznkk for ; Tue, 22 Nov 2022 15:34:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2AMFYNtk041191 for ; Tue, 22 Nov 2022 15:34:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2AMFYN0I041190 for ports-bugs@FreeBSD.org; Tue, 22 Nov 2022 15:34:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 267910] www/tomcat*: add variable substitution support for ${tomcat*_classpath} Date: Tue, 22 Nov 2022 15:34:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: michael.osipov@siemens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267910 --- Comment #6 from Michael Osipov --- Created attachment 238248 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D238248&action= =3Dedit Git-formatted patch Here is a real world example: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3Droot@deblndw013x2j:/usr/local/etc/rc.d # cat ../rc.conf.d/tomcat_ldadocgen_backend_dev_1 tomcat_ldadocgen_backend_dev_1_enable=3D"YES" tomcat_ldadocgen_backend_dev_1_catalina_user=3D"ldadocgen" tomcat_ldadocgen_backend_dev_1_catalina_base=3D"/usr/local/ldadocgen/backen= d-dev/tomcat-1" tomcat_ldadocgen_backend_dev_1_classpath=3D":\${_tomcat_catalina_home}/bin/= activedirectory-dns-locator-0.4.0.jar:/tmp/mu mu" #tomcat_ldadocgen_backend_dev_1_classpath=3D":/usr/local/apache-tomcat-8.5/= bin/activedirectory-dns-locator-0.4.0.jar:/tmp/mu mu" tomcat_ldadocgen_backend_dev_1_java_opts=3D"-Djava.security.auth.login.conf= ig=3D\${_tomcat_catalina_home}/conf/login.conf \ =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 -Djavax.security.auth.useSubjectCredsOnly=3Dfalse -Dsun.security.spnego.msinterop=3Dfalse -Dsun.security.krb5.acceptor.subkey= =3Dtrue \ -D_com.sun.management.jmxremote -Djava.awt.headless=3Dtrue" tomcat_ldadocgen_backend_dev_1_umask=3D"0027" tomcat_ldadocgen_backend_dev_1_wait=3D"60" tomcat_ldadocgen_backend_dev_1_env=3D"PATH=3D/usr/local/ldadocgen/backend-d= ev/texlive/2022/bin/amd64-freebsd:/sbin:/bin:/usr/local/sbin:/usr/local/bin= :/usr/sbin:/usr/bin" =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Note also the CP entry with space which should work. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D # procstat -c 15291 PID COMM ARGS 15291 jsvc /usr/local/bin/jsvc -java-home /usr/local/openjdk8 -server -user ldadocgen -umask 0027 -pidfile /var/run/tomcat_ldadocgen_backend_dev_1.pid -wait 60 -outfile /usr/local/ldadocgen/backend-dev/tomcat-1/logs/catalina.out -errfile &1 -classpath /usr/local/apache-tomcat-8.5/bin/bootstrap.jar:/usr/local/share/java/classe= s/commons-daemon.jar:/usr/local/apache-tomcat-8.5/bin/tomcat-juli.jar:${_to= mcat_catalina_home}/bin/activedirectory-dns-locator-0.4.0.jar:/tmp/mu mu -Djava.util.logging.manager=3Dorg.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=3D/usr/local/ldadocgen/backend-dev/tomcat-1= /conf/logging.properties -Djava.security.auth.login.config=3D/usr/local/apache-tomcat-8.5/conf/login= .conf -Djavax.security.auth.useSubjectCredsOnly=3Dfalse -Dsun.security.spnego.msinterop=3Dfalse -Dsun.security.krb5.acceptor.subkey= =3Dtrue -D_com.sun.management.jmxremote -Djava.awt.headless=3Dtrue -Djava.endorsed.dirs=3D/usr/local/apache-tomcat-8.5/endorsed -Dcatalina.home=3D/usr/local/apache-tomcat-8.5 -Dcatalina.base=3D/usr/local/ldadocgen/backend-dev/tomcat-1 -Djava.io.tmpdir=3D/usr/local/ldadocgen/backend-dev/tomcat-1/temp org.apache.catalina.startup.Bootstrap =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D with the patch: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D # procstat -c 15826 PID COMM ARGS 15826 jsvc /usr/local/bin/jsvc -java-home /usr/local/openjdk8 -server -user ldadocgen -umask 0027 -pidfile /var/run/tomcat_ldadocgen_backend_dev_1.pid -wait 60 -outfile /usr/local/ldadocgen/backend-dev/tomcat-1/logs/catalina.out -errfile &1 -classpath /usr/local/apache-tomcat-8.5/bin/bootstrap.jar:/usr/local/share/java/classe= s/commons-daemon.jar:/usr/local/apache-tomcat-8.5/bin/tomcat-juli.jar:/usr/= local/apache-tomcat-8.5/bin/activedirectory-dns-locator-0.4.0.jar:/tmp/mu mu -Djava.util.logging.manager=3Dorg.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=3D/usr/local/ldadocgen/backend-dev/tomcat-1= /conf/logging.properties -Djava.security.auth.login.config=3D/usr/local/apache-tomcat-8.5/conf/login= .conf -Djavax.security.auth.useSubjectCredsOnly=3Dfalse -Dsun.security.spnego.msinterop=3Dfalse -Dsun.security.krb5.acceptor.subkey= =3Dtrue -D_com.sun.management.jmxremote -Djava.awt.headless=3Dtrue -Djava.endorsed.dirs=3D/usr/local/apache-tomcat-8.5/endorsed -Dcatalina.home=3D/usr/local/apache-tomcat-8.5 -Dcatalina.base=3D/usr/local/ldadocgen/backend-dev/tomcat-1 -Djava.io.tmpdir=3D/usr/local/ldadocgen/backend-dev/tomcat-1/temp org.apache.catalina.startup.Bootstrap =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Checking it from JSP: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D root@deblndw013x2j:/usr/local/ldadocgen/backend-dev/tomcat-1/webapps/backen= d-dev#manager-1 # curl --negotiate -u : "https://hostname/backend-dev/manager-1/java-classpath.jsp" -k -c /tmp/cook= ies=20 -q java.class.path: /usr/local/apache-tomcat-8.5/bin/bootstrap.jar:/usr/local/share/java/classe= s/commons-daemon.jar:/usr/local/apache-tomcat-8.5/bin/tomcat-juli.jar:/usr/= local/apache-tomcat-8.5/bin/activedirectory-dns-locator-0.4.0.jar:/tmp/mu mu =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Git-formatted patch attached. Can be adapted for other Tomcat versions. Straight forward. --=20 You are receiving this mail because: You are the assignee for the bug.=