Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 342426 Details for
Bug 462096
apache-tomcat-7 classloading problem for tomcat-jdbc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
tomcat-7 init.d script with hotfix (just a PoC)
tomcat-7 (text/plain), 3.14 KB, created by
Fabio Bonfante
on 2013-03-17 19:28:29 UTC
(
hide
)
Description:
tomcat-7 init.d script with hotfix (just a PoC)
Filename:
MIME Type:
Creator:
Fabio Bonfante
Created:
2013-03-17 19:28:29 UTC
Size:
3.14 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2012 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >extra_commands="forcestop" > >PIDFILE=/var/run/${RC_SVCNAME}.pid > >: ${CATALINA_HOME:=/usr/share/tomcat-7} >: ${CATALINA_BASE:=/var/lib/${RC_SVCNAME}} >: ${CATALINA_TMPDIR:=/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` > > >#CLASSPATH=`java-config --classpath tomcat-7${TOMCAT_EXTRA_JARS:+,${TOMCAT_EXTRA_JARS}}` >## HOTFIX tomcat-jdbc classloading removing all /usr/share/tomcat-7/lib packages from the classpath >CLASSPATH="/usr/share/tomcat-7/bin/bootstrap.jar:/usr/share/tomcat-7/bin/tomcat-juli.jar:/usr/share/eclipse-ecj-3.7/lib/ecj.jar:/usr/share/tomcat-servlet-api-3.0/lib/el-api.jar:/usr/share/tomcat-servlet-api-3.0/lib/jsp-api.jar:/usr/share/tomcat-servlet-api-3.0/lib/servlet-api.jar" >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 /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 462096
: 342426