New answers tagged tomcat
0
curl --user admin:admin http://localhost:8080/manager/text/reload?path=/myapp
Doc is here
http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Reload_An_Existing_Application
0
What you are trying to do, is to load your application as "ROOT context". To do that you have two easy choices :
Put your files directly in place of Tomcat defaults files (/webapps/ROOT/here), replacing webapps/ROOT/WEB-INF/web.xml, etc.
Renaming your war to ROOT.war and putting it inside /webapps/ROOT.war
I also recommand removing all default Tomcat ...
2
When tomcat receive a request, it tries to understand what webapps is responsible for it. The way it assign request to webapp is checking the context, i.e., the first part of the url path. Since your webapps have a context of mywebsite, then it only gets requests that start with path /mywebsite/. When tomcat does not find a suitable web apps, it defaults to ...
0
You may try using something like XAMPP.
0
Download the source. Compile it.
1
Slow ssh connection / ssh lag is a symptom of a high load. High load is often caused by io blocking, which is often caused by swapping.
to check your load, run uptime or top you will probably see load numbers over 10 when ssh is not responding. They will probably hover under 2 during normal use.
run free or top to see your memory usage, you will probably ...
0
THis is the issue
PATH=/opt/jdk1.7.0_21:/opt/apache-tomcat-7.0.39
You forgot to append $PATH to that.. it must be
PATH=/opt/jdk1.7.0_21:/opt/apache-tomcat-7.0.39:$PATH
0
These
uname: not found
dirname: not found
show that you're missing a proper PATH.
Try changing the PATH line in your startup script to:
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/opt/jdk1.7.0_21:/opt/apache-tomcat-7.0.39
0
I got it fixed by removing a blank line at the top of solr.xml file. But now a different error appear, although Solr seems to be running now.
This helped me to figure out the issue:
http://www.bennadel.com/blog/58-The-Processing-Instruction-Target-Matching-xX-mM-lL-is-Not-Allowed.htm
1
In my experience as a SysEng, I'd advise against auto restarting services in production, especially if you have a history of issues. Using daemontools pains me. I've seen too many servers get into a crash loop and fill up their drives with logs before someone can get to them, which just creates even more headache. I would recommend against it, but everyone ...
0
You should go through this link, may be it will help you to resolve your issue.
1
I had similar log errors in Redhat environment with proxy_ajp and Tomcat. Resolved by updating httpd package:
yum update httpd
from:
httpd-devel-2.2.3-43.el5_5.3.x86_64
httpd-2.2.3-43.el5_5.3.x86_64
to:
httpd-2.2.3-45.el5_6.3.x86_64
httpd-devel-2.2.3-45.el5_6.3.x86_64
Then restarted apache, followed by restarting Tomcat.
That fixed it for me!
0
When proxying http or https to https you need to configure apache as an ssl
client. When apache talks to your Tomcat server it functions as a web client after all. However Apache will usually not function as an SSL client out of the box.
Firstly I would suggest that you first consider if you really need this, why you are doing this. The common practice ...
0
Good question :) You'd need a decent box to handle 10k requests per sec, in the IIS architecture to handle this type of load, you'd want a web-farm of boxes. http.sys > Process Activation Service > w3wp is the path a request takes. Each app pool has queues to process requests at a time.
...
0
Use the Advanced Firewall interface, make sure the profile (private, public, etc) matches what zone the interface is associated with in the Network and Sharing Center, then verify there is an enabled rule that allows the protocol and port (TCP 9999). tdk2fe is right, if it works with the firewall off, the app is configured correctly and the issue is in the ...
0
In your special case, what about setting a symlink in your webapps directory?
Asume your directory looks like this:
ls webapps/
foo foo.war
Just add a symlink to foo with the name bar:
ln -s foo bar
Getting this:
ls webapps/
foo bar foo.war
0
You might be able to find (a few exist) or write a small Java web app that reverse proxies from one URL pattern to another. See https://github.com/ahabra/reverse-proxy.
2
Take a look at logstash. Its like Google for logs with loads of input and output adapters.
1
There is something similar to mod_rewrite for servlet containers called URL Rewrite. Taken from SO.
1
It doesn't look like you have misconfigured anything. However, you may need to explicitly specify the protocol in your URL as well as the port, eg. https://your.server:8443. Most applications (browsers etc.) will infer HTTP if the port isn't 443 and HTTPS isn't specified.
Try also explicitly specifying http:// in the URL in your browser, just to see if it ...
2
You can do this by using shell script
tail -Fn0 catalina.txt | \
while read line ; do
echo "$line" | grep "pattern"
if [ $? = 0 ]
then
sendemail(
fi
done
0
I haven't done this with Railo, but ColdFusion has a mod_jk.conf that needs to be linked from httpd.conf. This should help with that.
0
Using mod_proxy (i.e. ProxyPass) is a perfectly acceptable way to do this.
For a much longer answer and discussion of the options see Tomcat 7 with mod_jk
1
We are running Jenkins using the default Winstone engine behind nGinx (to handle our SSL and port 8080 to 80 redirect) and have zero issues with performance. It seems that when using ant build scripts everything runs outside of java/Jenkins so the built in web server is not a hindrance.
I did a quick Google search and found this thread that points out the ...
0
Changed you settings like below and it should work
<!-- SSL Port 8443 -->
<Connector port="8443"
maxThreads="150" scheme="https" secure="true"
SSLEngine="on"
SSLCertificateFile="mycert.crt"
SSLCertificateKeyFile="mykey.pem"
SSLPassword="....."
clientAuth="false" sslProtocol="TLS"/>
3
Where there is interdependency you can use 'require'.
package {
"mysql-python":
ensure => installed,
provider => pip,
require => Package["libmysqlclient-dev"];
}
1
I had the same problem, and could find a workaround. I don't know if it will work for you, though, since the OS is different (Windows Server 2008).
Steps:
First delete the tomcat service with "bin\tomcat7.exe //DS/Tomcat7".
Now, disable UAC.
Install the Tomcat service again with the command "bin\service.bat install"
Start the service.
If you want (and ...
Top 50 recent answers are included




