Tag Info

Hot answers tagged

4

Ok first thing: Do you really need to use a Java Security Policy? The simplest solution by far is to disable this in tomcat's startup script: in /etc/init.d/tomcat6 replace TOMCAT6_SECURITY=yes with TOMCAT6_SECURITY=no Assuming you must use the security manager, and you must match an existing installation, I would suggest un-installing ...


2

Java Server Pages can not be interpreted by Apache httpd directly. You have to install a Servlet container like Apache Tomcat or Jetty which you can connect to Apache httpd via mod_ajp or mod_proxy.


2

I have never liked how Ubuntu scatters the Tomcat files all over the place. Rather, I prefer to download the Tomcat binary distribution and set up a custom configuration, which I believe is simpler, more flexible and easier to maintain. I've explained how to do this in a couple of blog entries on my site at http://www.brianshowalter.com. I would also ...


2

It will stay the same. The war is only exploded once. Of course you can delete the war file to be on the safe side, it's not needed any more.


2

It is a question that requires a detailed answer and there are many resources on the web that will be elaborate. I would be succinct. If there are static resources such as js, css then nginx / apache can take care of it. If SSL termination / compression is required then nginx / apache can offload that. Also, nginx / apache provide for more bells and ...


2

In order to deploy content on tomcat, one has to include a file /WEB-INF/web.xml. Below an example of a web.xml that I used to deploy some static content through tomcat. <?xml version="1.0" encoding="UTF-8"?> <web-app> <servlet> <servlet-name>default</servlet-name> ...


2

I'd suggest looking at the YourKit Java profiler. See http://www.yourkit.com I have used this with clients at work to diagnose some performance issues with their JSP pages and it worked like a charm. YourKit does provide some J2EE specific measures but I tend to use the raw CPU profiling results as I am usually interested in what Tomcat is doing rather than ...


2

The clue to solving this is in the error message (IIS is really good at explaining 500.19 errors which is nice): This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the ...


1

Tomcat offerts some control over the session cookie's path with the sessionCookiePath context parameter, but not enough for your needs. I beleive you can play fast and loose with both the server (servlet container) and the browser with very little code. In short, write a servlet filter that let the request in, unchanged. When the response comes out, add ...


1

mod_jk directives aren't inherited by virtual hosts by default. Either move the mod_jk directives inside the virtual host or use the JkMountCopy directive. See the mod_jk docs for details. If that still doesn't work, take a look at the mod_jk log. You may wish to turn it up to debug level until things are working as required. While you are at it, cleaning ...


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 guess this question wasn't really meant for serverfault it was a problem with IE7 any way here is the answer Check out the answer here!!!


1

Please check your .js calling html command. <script type="text/javascript" src="http://localhost:PORT/a.js"> Please change it to <script type="text/javascript" src="http://YOURIP:PORT/a.js"> Also IE have same problem on font defination.


1

There are some hosting services providing shared tomcat web application hosting, (links removed - but just google "shared tomcat hosting") will get you a reasonable list to work from. The reason that you might find it difficult to get good quality cheap shared java hosting like you might be familiar with for mod_php or cgi scripts is that in general, java ...


1

Not sure if you are asking about shared hosting because you actually want shared hosting or because of the expense typically associated with a VPS. If you are looking for a good, inexpensive VPS, check out Quality Servers. I opened an account with them about a month ago and couldn't be happier. Their prices are dirt cheap and you have full control over your ...


1

A quick checklist: Check that allowLinking="true" was set in your Tomcat config: http://stackoverflow.com/questions/315093/configure-symlinks-for-single-directory-in-tomcat/315145#315145 Check that the user of the tomcat process has execute permission on every parent folder of the /home/developer/dev/workspace/svn/Project/webapp/ directory (i.e. /home, ...


1

Not surprisingly the answer to this question in weblogic is the virtual directory. The directive provides both (what I consider to be) the standard behavior of mapping a URL to some set of (usually static files) to be served, but also acts as a "virtual soft link" when the path is under WEB-INF and still provides the desired behavior of giving a 404 if you ...


1

What you need is to use mod_proxy_ajp for your purpose. (Internet)---[Apache]---ajp---[Tomcat]---(JSP) There are many examples on how to do this and most Linux distributions would come with some standard configuration files to help you get started.


1

Problem is now solved. The installation process created a default server. I had ignored this thinking that it doesn't matter. I removed the server and regenerated the plug-in config and my app works fine.


1

Yes, most often Tomcat is chained to a webserver such as httpd, communicating via the ajp protocol. httpd is not capable of functioning as a servlet container and compiling JSP's, but Tomcat has poor performance serving static content (such as images) over HTTP. By chaining the two together, you get the best of both worlds. For development, most people ...



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