tomcat6

Grails - No Logging In Tomcat

為{幸葍}努か 提交于 2019-12-04 18:15:23
问题 I cannot get grails log4j logging to work in Tomcat6. I previously thought the problem had to do with Production mode, but now I believe the issue is tomcat. I have a log4j configuration in my Config.groovy that correctly sets logging when I run the application in STS. I am using the wonderful app-info plugin, which confirms that the correct logging values are being set. However, when I do a grails war or even a grails dev war with the same code, and plug it into the webapps folder in Tomcat,

Java maven development slow

拟墨画扇 提交于 2019-12-04 16:07:09
I am developing a war/java website that is built via maven. Currently, I have to make changes... tell maven to build them... then deploy to Tomcat. This is around 40seconds . So every change I make, I have to wait >=40seconds to see the change. This is becoming very frustrating, so I have tried to speed up the deployment. I deployed the site via maven with war:exploded. Now, I edit the files live in 'deployed' format. The problem being I will need to move these changes back to the source location for pushing into our source control. So has anyone written a script to 'undeploy' changes on the

Apache httpd 2.2.x + mod_jk 1.2.30 + tomcat 6 Error: Could not find worker with name 'XXXXX' in uri map post processing

别说谁变了你拦得住时间么 提交于 2019-12-04 15:29:16
I am getting the following error while setting up the load balancer with two Tomcat instances: [info] mod_jk.c (3189): mod_jk/1.2.30 initialized [error] jk_uri_worker_map.c (506): Could not find worker with name 'loadmanager' in uri map post processing. Following are my configuration settings: httpd.conf changes # Include mod_jk configuration file Include conf/mod_jk.conf mod_jk.conf LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel info JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" JkOptions +ForwardKeySize +ForwardURICompat

Adding java_opts params in Tomcat 6

谁都会走 提交于 2019-12-04 14:43:01
问题 I have a requirement to add -DAPP_ENCRYPTION_PASSWORD in Tomcat to start an application. Can any one point exactly where to add this parameter? And how? 回答1: It all depends on how you plan to start Tomcat. Tomcat itself wants to be run a shell script that's typically located at $TOMCAT_HOME/bin/catalina.sh (there's an equivalent .bat file for windows). Inside of that file it describes what tomcat expects for an environment. If you want to get your -DAPP_ENCRYPTION_PASSWORD system property

Maven + Tomcat hot deploy

◇◆丶佛笑我妖孽 提交于 2019-12-04 12:22:22
I've searched on the internet for this question and found no single solution. We have a maven project that uses profiles to build artifact that suits dev/qa/prod environtments, does minification of JS and CSS using YUI plugin. It uses Spring for dependency injection and struts as UI framework. Ibatis is used as ORM mapper. We use Eclipse IDE on windows and are not using integrated eclipse as we need to deploy Unix servers. Now, my question is, is there a way to deploy this solution in such a way that changes to js, css, jsp, applicationContext files of spring, struts.xml, ibatis mapper files

Tomcat Hot Deploy not working

江枫思渺然 提交于 2019-12-04 12:01:32
问题 I'm having an issue hot deploying a new WAR on my Tomcat 6 server. When I add in my new WAR I can see that Tomcat is attempting to deploy it. However, I believe the problem lies in undeploying the old war - the exploded war folder's contents are all deleted - except the WEB-INF folder. If I stop the server, delete the WEB-INF folder and then start again, my war is deployed correctly. Can anyone suggest anything which may be happening here? Thanks. 回答1: Found the solution, the problem lies in

Is there a useDirtyFlag option for Tomcat 6 cluster configuration?

百般思念 提交于 2019-12-04 11:59:08
In Tomcat 5.0.x you had the ability to set useDirtyFlag="false" to force replication of the session after every request rather than checking for set/removeAttribute calls. <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster" managerClassName="org.apache.catalina.cluster.session.SimpleTcpReplicationManager" expireSessionsOnShutdown="false" **useDirtyFlag="false"** doClusterLog="true" clusterLogName="clusterLog"> ... The comments in the server.xml stated this may be used to make the following work: <% HashMap map = (HashMap)session.getAttribute("map"); map.put("key","value"); %>

Start tomcat 6 in debug mode?

半腔热情 提交于 2019-12-04 11:28:53
How to start the tomcat 6 server in debug mode and use it with Eclipse Ide for remote debugging. ? Right now i am using command line to start the server : tomcat6.exe With the tomcat6.exe version you can enable remote debugging by running the tomcat6w.exe application and adding the following 2 java options in the list on the Java tab: -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n This is according to http://wiki.apache.org/tomcat/FAQ/Developing and it worked in my case (Tomcat 6.0.26 for windows) As you are using eclipse goto Windows-> Show view -> Add Server. Choose

Tomcat - SEVERE Error during starting static Resources ( A war which has been deleted purposefully )

只谈情不闲聊 提交于 2019-12-04 10:49:29
Yesterday i have downloaded a sample DWR War file net and deployed it inside Tomcat to test . And today after deleting it inside the Tomcat - Webapps and also inside work\Catalina\localhost directroy . I am getting the floowing error under Server Console , during Server Start up . Jan 6, 2012 3:20:54 PM org.apache.catalina.core.StandardContext resourcesStart SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base C:\Softwares\apache-tomcat-6.0.33\webapps\DWRExample does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext

How to fix Solr Exception: Could not find necessary SLF4j logging jars?

▼魔方 西西 提交于 2019-12-04 08:05:44
问题 I have big problems installing Solr 4.3 under Ubuntu 12.04. Firstly i installed tomcat. I can access tomcat via browser on localhost:8080. Into "Tomcat Web Application Manager" i try to install Solr 4.3 via 2solr.war" file. The file is been uploaded an deployed. But i cant get it started. "FAIL - Application at context path /solr could not be started". The log file ( localhost.log ) look like: 07.05.2013 11:05:36 org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: start: