Tag Info

Hot answers tagged

3

Unfortunately, client certificate authentication works at a different layer than the application. So, your best bet would be to re-direct the client to a different SSL listening port that requires client certificate authentication to connect. E.g. App connects to https://example.com/basic that uses a standard SSL connection without client certification ...


3

I've been enabling JMX in my Tomcat instances, then running VisualVM. Just add the following parameters to the Java Options using the Tomcat configuration tool (it's an icon in the system task tray). -Dcom.sun.management.jmxremote.port=8004 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false ...


2

It's probably easier to configure LambdaProbe http://www.lambdaprobe.org/d/index.htm


2

Okay, I got something that works. I edited the /etc/tomcat6/policy.d/01system.policy and added at the bottom: // Grant WebApps All Permission grant codeBase "file:/var/lib/tomcat6/webapps/-" { permission java.security.AllPermission; }; This works now, but not sure if its the right thing to do.


2

I'm pretty sure they don't. I use Apache httpd with mod_proxy and mod_cache and it works pretty well. If you take the time to send proper HTTP response headers, it's better...


2

One reason is that some organizations standardize on a particular application server and insist that all Java application run on that application server. Another reason would be that the person installing Jira may be more comfortable working with JBoss than Tomcat. There is no advantage to running Jira in JBoss and the performance may be slower if the ...


1

I found the solution. As silviud said, the style.css file should go in the root of the application, in this case: $TOMCAT_HOME/wtpwebapps/ProjectName. To get it there it should go in the WebContent folder in eclipse: $PROJECT_HOME/WebContent. The reason I wasn't seeing the stylesheet was because I had the main servlet registered for "/" which means that ...


1

I know from one of my colleagues about jforum. He said a while ago he integrated it in a java web based application. HTH


1

Are you using Apache in front of Tomcat? Yes? Well, that's easy. Read my answer about redirecting HTTP to HTTPS here. No? Well, you should be. Not only does Apache make an excellent reverse-proxy for Tomcat JSPs, but it also allows you to do things like rewriting URLs onto HTTPS, as well as caching with a number of modules for Apache. Quick answer: Use ...


1

I'm unsure why you only have a single backend server maybe it's only a test setup. ZXTM is a powerful load balancer, it seems you more or less use it as a reverse proxy currently. Anyway, the way you usually setup something like this is: - create a DNS record like myapp.example.com and point it to a traffic IP of the ZXTM cluster - setup your backend ...


1

The only issue I can find for that stack is SPR MIAS5S7F39. Where the server would crash under heavy load on the servlet manager. It is marked as fixed in the latest release of the R6 code stream. However if the issue is still happening then you need to upgrade to a more recent version, as R6 has been obsolete for years.


1

Memory use depends on what the app has been designed to do and what all the users are doing. So that really nobody could comment on whether this app needs a specified amount of memory. As you said your solution is to do as the error message says and up the amount of Java heap space.


1

To be honest, 5G's of heap is already quite a lot. Show us the code path that handles the upload and provide some info about how large and many files are the users typically uploading. This might also help you (if you are using commons fileupload with Spring's MultipartFile): ...


1

Does tomcat need to be restarted in order to use a new servlet uploaded to the "WEB-INF/classes" directory? It depends, if your Does tomcat need to be restarted to read changes to the web.xml in the "WEB-INF" directory? It depends, if your If I put a .class file at /WEB-INF/classes/foo/bar.class should I be able to access it ...



Only top voted, non community-wiki answers of a minimum length are eligible