Date: Tue, 22 Nov 2022 15:34:23 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 267910] www/tomcat*: add variable substitution support for ${tomcat*_classpath} Message-ID: <bug-267910-7788-0DLjP5jWcW@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-267910-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-267910-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267910 --- Comment #6 from Michael Osipov <michael.osipov@siemens.com> --- 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267910-7788-0DLjP5jWcW>