This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version = NetBeans IDE 7.4 RC1 (Build 201309162201) Operating System = Linux version 3.5.0-40-generic running on amd64 Java; VM; Vendor = 1.7.0_25 Runtime = Java HotSpot(TM) 64-Bit Server VM 23.25-b01 Tomсat does not init setenv.sh due startup
Created attachment 140684 [details] IDE log
Please provide exact steps to reproduce. We are starting the tomcat via standard script.
Created attachment 141393 [details] TomcatConnection_in_7_3_1 screenshot
Created attachment 141394 [details] TomcatStartup_in_7_3_1 screenshot
Created attachment 141395 [details] TomcatConnection_in_7_4 screenshot
Created attachment 141396 [details] TomcatStartup_in_7_4 screenshot
Created attachment 141397 [details] Tomcat_start_log_in_7_3_1
Created attachment 141398 [details] Tomcat_start_log_in_7_4
Created attachment 141399 [details] ps_in_7_3_1
Created attachment 141401 [details] ps_in_7_4
I have attached screenshots and conclusions tomcat and the ps command Run as usual.
Sorry I can't guess what you are trying to achieve. Please describe step by step instructions what you are trying to do and what are the expected results for you.
I'm running tomcat in the masonry of the Service, or by running the web application. In the file are located setenv.sh important for me settings. This file, if it is located in the TOMCAT_HOME/bin should be executed automatically. Here are the lines from the file standard file catalina.sh if [-r "$ CATALINA_BASE / bin / setenv.sh"]; then . "$ CATALINA_BASE / bin / setenv.sh" elif [-r "$ CATALINA_HOME / bin / setenv.sh"]; then . "$ CATALINA_HOME / bin / setenv.sh" fi In version 7.3.1 and below, it works flawlessly In version 7.4 it does not work. Command output and error in my application suggests that the configs of setenv.sh not having picked up.
My setenv.sh #!/bin/sh if [ "x$JAVA_OPTS" = "x" ] then JAVA_OPTS="$JAVA_OPTS -Xms1G" JAVA_OPTS="$JAVA_OPTS -Xmx6G" JAVA_OPTS="$JAVA_OPTS -XX:PermSize=2G" JAVA_OPTS="$JAVA_OPTS -XX:MaxPermSize=4G" JAVA_OPTS="$JAVA_OPTS -XX:+CMSClassUnloadingEnabled" JAVA_OPTS="$JAVA_OPTS -XX:+CMSPermGenSweepingEnabled" JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=utf-8" JAVA_OPTS="$JAVA_OPTS -Dcu.conf.dir=/home/apanasovich/tool/apache-tomcat-6.0.35/lib" JAVA_OPTS="$JAVA_OPTS -Dspring.profiles.active=fssp,route" echo $JAVA_POTS export JAVA_OPTS fi
The setenv.sh is called. Just your if is not as there are already some options configured by the IDE. BTW you can configure your JAVA_OPTS in the IDE as well using Tomcat properties panel - Platform - VM options.