Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 362526 Details for
Bug 453212
www-servers/tomcat-7.0.X - classloading issues due to too much jars in initial classpath
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
tomcat.init file with fixed classloading
tomcat.init (text/plain), 3.11 KB, created by
Fabio Bonfante
on 2013-11-04 00:09:41 UTC
(
hide
)
Description:
tomcat.init file with fixed classloading
Filename:
MIME Type:
Creator:
Fabio Bonfante
Created:
2013-11-04 00:09:41 UTC
Size:
3.11 KB
patch
obsolete
>#!/@GENTOO_PORTAGE_EPREFIX@sbin/runscript ># Copyright 1999-2012 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >extra_commands="forcestop" > >PIDFILE=/@GENTOO_PORTAGE_EPREFIX@var/run/${RC_SVCNAME}.pid > >: ${CATALINA_HOME:=/@GENTOO_PORTAGE_EPREFIX@usr/share/tomcat-@SLOT@} >: ${CATALINA_BASE:=/@GENTOO_PORTAGE_EPREFIX@var/lib/${RC_SVCNAME}} >: ${CATALINA_TMPDIR:=/@GENTOO_PORTAGE_EPREFIX@var/tmp/${RC_SVCNAME}} >: ${CATALINA_USER:=tomcat} >: ${CATALINA_GROUP:=tomcat} > >: ${TOMCAT_START:=start} > >: ${JPDA_TRANSPORT:="dt_socket"} >: ${JPDA_ADDRESS:="8000"} >: ${JPDA_OPTS="-Xdebug -Xrunjdwp:transport=${JPDA_TRANSPORT},address=${JPDA_ADDRESS},server=y,suspend=n"} > >export JAVA_HOME=`java-config ${TOMCAT_JVM:+--select-vm ${TOMCAT_JVM}} --jre-home` > ># remove all jar in /usr/share/tomcat-7/lib/ from the classpath ># see https://bugs.gentoo.org/show_bug.cgi?id=453212 >CLASSPATH=`java-config --classpath tomcat-@SLOT@${TOMCAT_EXTRA_JARS:+,${TOMCAT_EXTRA_JARS}} | sed -e 's/\(\/usr\/share\/tomcat-7\/lib\/[a-zA-Z0-9\-]*\(\.jar:\)\)//g'` >export CLASSPATH="${CLASSPATH}${TOMCAT_EXTRA_CLASSPATH:+:${TOMCAT_EXTRA_CLASSPATH}}" > >depend() { > use dns logger net >} > >start() { > ebegin "Starting ${RC_SVCNAME}" > > if [ ! -e "${CATALINA_TMPDIR}" ]; then > eerror "CATALINA_TMPDIR does not exist. Unable to start tomcat." > eerror "Please see /@GENTOO_PORTAGE_EPREFIX@etc/conf.d/${RC_SVCNAME} for more information." > eend 1 > fi > > cmd=java args= > if [ "${TOMCAT_START}" = "debug" ] || [ "${TOMCAT_START}" = "-security debug" ] ; then > cmd=jdb > args="${args} -sourcepath ${CATALINA_HOME}/../../jakarta-tomcat-catalina/catalina/src/share" > fi > if [ "${TOMCAT_START}" = "-security debug" ] || [ "${TOMCAT_START}" = "-security start" ]; then > args="${args} -Djava.security.manager" > args="${args} -Djava.security.policy=${CATALINA_BASE}/conf/catalina.policy" > fi > if [ "${TOMCAT_START}" = "jpda start" ] ; then > args="${args} ${JPDA_OPTS}" > fi > if [ -r "${CATALINA_HOME}"/bin/tomcat-juli.jar ]; then > args="${args} -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \ > -Djava.util.logging.config.file=${CATALINA_BASE}/conf/logging.properties" > fi > > start-stop-daemon --start \ > --quiet --background \ > --chdir "${CATALINA_TMPDIR}" \ > --user ${CATALINA_USER}:${CATALINA_GROUP} \ > --make-pidfile --pidfile ${PIDFILE} \ > --exec ${JAVA_HOME}/bin/${cmd} \ > -- \ > ${JAVA_OPTS} \ > ${args} \ > -Dcatalina.base="${CATALINA_BASE}" \ > -Dcatalina.home="${CATALINA_HOME}" \ > -Djava.io.tmpdir="${CATALINA_TMPDIR}" \ > -classpath "${CLASSPATH}" \ > org.apache.catalina.startup.Bootstrap \ > ${CATALINA_OPTS} \ > ${TOMCAT_START} > > eend $? >} > >stop() { > ebegin "Stopping '${RC_SVCNAME}'" > > start-stop-daemon --stop \ > --quiet --retry=60 \ > --pidfile ${PIDFILE} \ > --exec ${JAVA_HOME}/bin/java \ > -- \ > ${JAVA_OPTS} \ > -classpath "${CLASSPATH}" \ > ${CATALINA_OPTS} \ > stop ${STD_OUT} > > eend $? >} > >forcestop() { > ebegin "Forcing '${RC_SVCNAME}' to stop" > > start-stop-daemon --stop \ > --quiet --retry=60 \ > --pidfile ${PIDFILE} \ > --signal=9 > > if service_started "${RC_SVCNAME}"; then > mark_service_stopped "${RC_SVCNAME}" > fi > > eend $? >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 453212
: 362526