http://bugzilla.novell.com/show_bug.cgi?id=565901 http://bugzilla.novell.com/show_bug.cgi?id=565901#c7 Alex Tsariounov <alext@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|alext@novell.com | --- Comment #7 from Alex Tsariounov <alext@novell.com> 2010-07-15 19:41:12 UTC --- (In reply to comment #5)
Hi Alex, please check it and I'll try to release it with a next maintenance update of tomcat6.
Hi Michal, I tried your setclasspath.sh script and it seems to be fine; however, it is not sufficient for netbeans to start tomcat6. The /usr/bin/dtomcat6 script also has to support "run" since netbeans wants an exec of tomcat and no log redirect since it displays the log in a window. I modified the dtomcat6 script to add this, and the patch is below. It adds run and run-security. (Pretty soon, we'll have re-implemented catalina.sh.... ;) Also, no action necessary for this bug, but related, if one wants to run tomcat6 as a non-root user, there are some ownerships and permissions to be changed on the tomcat working files after set up by the suse tomcat6 packages. This can be an exercise in frustration... However, it is possible, since I now have an install that works. Tomcat6 is started as me (not root) from netbeans with log going to NB window, by using the patch below and your new setclasspath.sh scripts. Stop works as well. I've not tried debug, deploy, etc.... will leave that for another day. The dtomcat6 script patch follows: --- dtomcat6 2010-07-15 12:54:20.000000000 -0600 +++ /usr/bin/dtomcat6 2010-07-15 13:28:44.000000000 -0600 @@ -47,6 +47,28 @@ elif [ "$1" = "start-security" ]; then if [ ! -z "$CATALINA_PID" ]; then echo $! > $CATALINA_PID fi +elif [ "$1" = "run" ]; then + exec ${JAVA_HOME}/bin/java $JAVA_OPTS $CATALINA_OPTS \ + -classpath "$CLASSPATH" \ + -Dcatalina.base="$CATALINA_BASE" \ + -Dcatalina.home="$CATALINA_HOME" \ + -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" \ + -Djava.io.tmpdir="$CATALINA_TMPDIR" \ + -Djava.util.logging.config.file="${CATALINA_BASE}/conf/logging.properties" \ + -Djava.util.logging.manager="org.apache.juli.ClassLoaderLogManager" \ + org.apache.catalina.startup.Bootstrap start +elif [ "$1" = "run-security" ]; then + exec ${JAVA_HOME}/bin/java $JAVA_OPTS $CATALINA_OPTS \ + -classpath "$CLASSPATH" \ + -Dcatalina.base="$CATALINA_BASE" \ + -Dcatalina.home="$CATALINA_HOME" \ + -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" \ + -Djava.io.tmpdir="$CATALINA_TMPDIR" \ + -Djava.security.manager \ + -Djava.security.policy="${CATALINA_BASE}/conf/catalina.policy" \ + -Djava.util.logging.config.file="${CATALINA_BASE}/conf/logging.properties" \ + -Djava.util.logging.manager="org.apache.juli.ClassLoaderLogManager" \ + org.apache.catalina.startup.Bootstrap "$@" start elif [ "$1" = "stop" ]; then ${JAVA_HOME}/bin/java $JAVA_OPTS \ -classpath "$CLASSPATH" \ @@ -60,7 +82,7 @@ elif [ "$1" = "version" ]; then ${JAVA_HOME}/bin/java -classpath ${CATALINA_HOME}/lib/catalina.jar \ org.apache.catalina.util.ServerInfo else - echo "Usage: $0 {start|start-security|stop|version}" + echo "Usage: $0 {start|start-security|run|run-security|stop|version}" exit 1 fi -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.