Tag Info

New answers tagged

1

I've figured that out using mod_proxy instead of mod_jk and adding these lines : ProxyPass / http:// SERVER_IP:8080/ ProxyPass /myapp/ http:// SERVER_IP:8080/myapp And this line for cookies : ProxyPassReverseCookiePath /myapp /"


0

According to the docs... When using automatic deployment, the docBase defined by an XML Context file should be outside of the appBase directory. You're setting docBase to ".", which is not outside of the appBase directory. This is not good and can cause double deployments. There's a handful of ways you can fix this. 1.) Restructure the folders ...


0

To answer your question, it depends on how you've configured Tomcat. It'll use a pool of threads to process your requests and that pool can shrink. See the minSpareThreads and maxIdleTime of the Executor object. If you're not using an Executor and are relying on the default pool created by the connector you have less control. You can set ...


1

By default, mod_jk keeps all ajp13 connections open indefinitely but it does not send keepalives across the tcp session to the tomcat server. If that connection is idle, it will remain open. Firewalls however do not like idle sessions and after a period of inactivity, will sever that connection. This is why the initial connection to the application might ...


1

Tomcat and other application servers publish an AJP port that can be used to map request from a HTTP server. To do that you have to create a 'workers files' like this: # server.workers.properties worker.list=tomcat-server worker.tomcat-server.type=ajp13 worker.tomcat-server.host=localhost worker.tomcat-server.port=8009 8009 is the default value for the ...


0

Thanks to ubuntu IRC support, someone pointed out I have erroneous config data. If you look at my very first tomcat-users.xml, you will see that two role tags are not matched. So I fixed that and it now all works fine. PS Editing server.xml was not necessary at all; furthermore, I suggest to anyone using tomcat version 7 and above to avoid defining roles ...


0

You can just touch your_app.war Tomcat will do redeploy right away. If you are concerned about protecting timestamps for .war files (which is a good idea) you can keep a symlink from webapps dir to the actual location of .war file and touch the symlink.


2

Such behaviour is often caused by high heap memory usage and/or excessive garbage collection. When Tomcat gets tight on memory it will start to respond slowly and timeout intermittently. Situation usually deteriorates slowly until it becomes unresponsive. In such situations you may or may not see high CPU usage. Try to analyse memory usage (JMX may help ...


1

if you use apt-get to install tomcat, you must add manager with the following command: sudo apt-get install tomcat7-admin Then can access the manager in http://your_ip_address:8080/manager/html see also: How To Install Apache Tomcat 7 on Ubuntu 14.04 via Apt-Get


1

You can configure Tomcat, your local system, or an interim firewall/router to do that. Since you gave no information on what version you're running, whether you're running Windows or Linux, or what networking equipment you have in place, I'll provide the information for restricting IPv4 access on Tomcat 8.0 itself. In the conf/server.xml file, within the ...


3

The server computer's OS firewall is probably sufficient to do what you're looking for. You don't mention the OS so I can't say anything specific. On a Linux machine you'd be throwing on some iptables rules on the INPUT chain. On a Windows machine you'd be creating rules in the "Windows Firewall with Advanced Security".


0

I've found an elegant solution. Since we are using maestro-ng to orchestrate Docker containers we can use it's lifecycle checking to wait for the web service's know end point to return HTTP 200 OK before moving on to the next container. We can safely assume that something went wrong if this condition is never met.


1

You have few errors: Should be <Resources> (plural) FileResourceSet could be defined in <Resources><PreResource> section if needed and etc... not well documented yet: The Context Container This works fine for me with Tomcat 8.0.15 & Liferay Portal 6.2.1 GA2 (which has a lot of static files + JDBC pool): <?xml version='1.0' ...


0

Just to document this alternative solution in case someone else is facing this issue (however, without seeing the "SAXParseException" in Solr's application server logs): If you check this class: http://grepcode.com/file/repo1.maven.org/maven2/org.apache.solr/solr-core/4.3.0/org/apache/solr/servlet/SolrDispatchFilter.java/ You will see that it will return ...


0

DS_Store files are automatically created by Mac OSX Finder in browsed directories. These files contain information about system configuration. Read here. Here is how you can remove it Select Applications > Utilities to launch Terminal. Enter the following UNIX command: sudo find / -name ".DS_Store" -depth -exec rm {} \; When prompted for a password enter ...


0

Maybe it is logrotate, which is restarting mysql and then your connection to the db needs to be closed + reopened?


2

In your case the presence of the AJP connector in your server.xml is good indication that a webserver such as Apache with mod_ajp or mod_proxy_ajp is used as a front e.g. to off-load the serving of static content and to terminate SSL. Disabling SSLv3 then depends on the actual web server being used, in Apache some suggestions can be found on ...


0

You could have something to parse the logs in crontab(and look for the specific root initialization) then stop the service or send an e-mail. Safe and easy to implement.


1

Turns out this issue was related to the Virus scanning on the machine. Tomcat is limited to a single core when unpacking the .war file, but the scrubbing was making that process take a long time. Upon a more in-depth look at the full deployment of 45 minutes, I saw that the processor did get to higher percentages after the application was fully unpacked and ...


0

Did you read the docs ? Syntax: proxy_pass URL; Default: — Context: location, if in location, limit_except Sets the protocol and address of a proxied server and an optional URI to which a location should be mapped. As a protocol, “http” or “https” can be specified. The address can be specified as a domain name or IP address, and an optional port: ...


0

As far as I can tell your software runs on port 8080 but you need it to be accessible from port 11180. You can redirect port 80 using apache with the following lines: Redirect all traffic ProxyPass / http://localhost:8180/ ProxyPassReverse / http://localhost:8180/ Redirect only a particular url (in this case /jasperserver) ProxyPass /jasperserver ...



Top 50 recent answers are included