tomcat

How do I reload kerberos configuration under tomcat ?

My application runs under tomcat. It is using GSS API (JNDI) to connect to Active Directory LDAP Server using Kerberos. It allows the user to define AD servers and try to connect to them. However, once the first Kerberos using connect attempt is done, the application does not read Kerberos configuration again (/etc/krb5.conf). Hence, any...

Problem playing FLV on Apache Tomcat 5.5

I have a problem of playing FLV file which id embed in my swf when i place it on server, swf plays correctly but not FLV any solution will be highly appreciated. thanks for all replys, its works in All browesers other than IE 6 now , i will paste the code here for the flv to chk . var videopath:String; var flvtime:String; var vid...

Best tools to monitor Tomcat

Hi all, I'm searching free tools for monitor tomcat (traffic, memory usage, threads, requests, CPU, logs,...). I'm currently using lambdaprobe on Tomcat 5.5.x, but it seems that is no more developed (or not? the site lambdaprobe.org is always down for me...). Has someone good experiences to share? In lambdaprobe there are some info avail...

What causes duplicate requests to occur using spring,tomcat and hibernate

I'm working on a project in Java using the spring framework, hibernate and tomcat. Background: I have a form page which takes data, validates, processes it and ultimately persists the data using hibernate. In processing the data I do some special command (model) manipulation prior to persisting using hibernate. Problem: For some reas...

Duplicate spring configurations being loaded?

I'm looking at the output from spring being loaded up by tomcat and there's something very strange...Everything is duplicated. What would cause this? Whatever it is, it's causing my application to run in odd ways. Additional Info: The application is a web app. All the spring information is loaded using the context loader(?) defined i...

Apache/Tomcat error - wrong pages being delivered

This error has been driving me nuts. We have a server running Apache and Tomcat, serving multiple different sites. Normally the server runs fine, but sometimes an error happens where people are served the wrong page - the page that somebody else requested! Clues: The pages being delivered are those that another user requested recentl...

Tuning/Best Practices Inetsoft Style Report BI Tool ?

Is anyone using the business intelligence tool Inetsoft Style Report ? I'm stuck with it and was wondering if anyone has advice on tuning and/or best practices for server admin? We are running on a fast Solaris box using Tomcat with a db2 database. ...

Why is tomcat looking for JSF classes?

I am trying to get my development environment up and running, and I am having trouble with Tomcat trying to load JSF classes for some reason. My application does not use JSF; in fact, I haven't even deployed my application to tomcat yet. I am getting a number of stack traces in the startup logs and I cannot load the default tomcat home...

What are the optimal settings for Tomcat web server?

I am maintaining a website with currently about 800 concurrent users. The business plan says that this number will be 10x higher in one year. This is my current configuration: <Connector port="8080" address="${jboss.bind.address}" maxThreads="500" maxHttpHeaderSize="8192" emptySessionPath="true" protocol="HTTP/1.1" enableLookups=...

Tomcat - Multiple webapps folders

Is it possible to have multiple folders where I can place applications to be deployed? How are these defined? And is it possible to restrict one folder to just be applications for "domain.com" and no other domain. Thanks ...

Controlling the classpath in a servlet

My servlet application includes a number of library .jars, some of which contain embedded log4j.xml or log4j.properties files. I'd like to ensure that log4j finds my log4j.xml first! I've tried searching for some specification of the priorities of the various classpath elements in a servlet (e.g. does WEB-INF/classes always precede WEB-I...

TLS handshake event in Tomcat, is there something like that ?

Hi I'm running an application (web service) in tomcat with TLS enabled (with certificates both for the client and the server). I want that my application will be able to send audit message (logging) when TLS handshake fails. for example I want to log when: the client certificate is expired, the client certificate is unknown (not in th...

Configuring Tomcat to authenticate using Windows Active Directory

What is the best way to configure Tomcat 5.5 or later to authenticate users from Windows Active Directory? ...

Managing libraries in tomcat

I have two applications under tomcat/webapps folder. tomcat/webapps/App1 and tomcat/webapps/App2 both applications share the same libraries. Which are sored for example in tomcat/webapps/App1/WEB-INF/lib. Are same libraries loaded twice on memory? Should i put these shared libraries in tomcat/server/lib? Thanks for the feedback S...

Besides EAR and EJB, what do I get from a J2EE app server that I don't get in a servlet container like Tomcat?

We use Tomcat to host our WAR based applications. We are servlet container compliant J2EE applications with the exception of org.apache.catalina.authenticator.SingleSignOn. We are being asked to move to a commercial J2EE application server. The first downside to changing that I see is the cost. No matter what the charges for the app...

We're using JDBC+XMLRPC+Tomcat+MySQL to execute potentially large MySQL queries. What is a better way?

I'm working on a Java based project that has a client program which needs to connect to a MySQL database on a remote server. This was implemented is as follows: Use JDBC to write the SQL queries to be executed which are then hosted as a servlet using Apache Tomcat and made accessible via XML-RPC. The client code uses XML-RPC to remotely...

Tomcat: block requests for certain paths for requests coming from certain interfaces

Is there an open source filter that I can use on Tomcat to prevent access to certain path (say /a/b/*) when the request comes from a given interface? The use case: I have REST services deployed on Tomcat that should only be accessed by the application itself, but which for security reasons should not be accessible from the outside world...

How to tune Tomcat 5.5 JVM Memory settings without using the configuration program

I need to configure Tomcat memory settings as part of a larger installation, so manually configuring tomcat with the configuration app after the fact is out of the question. I thought I could just throw the JVM memory settings into the JAVA_OPTS environment variable, but I'm testing that with jconsole to see if it works and it... doesn't...

tomcat 5.5 - problem with reading resource files

I'm using Tomcat 5.5 as my servlet container. My web application deploys via .jar and has some resource files (textual files with strings and configuration parameters) located under its WEB-INF directory. Tomcat 5.5 runs on ubuntu linux. The resource file is read with a file reader: fr = new FileReader("messages.properties"); The proble...

What is the most common way to front end tomcat with iis6

I want to run a few tomcat web apps behind IIS 6. I was wondering what the most common way that this is accomplished. I have done this with Apache using the AJP connector and using HTTP proxypass. Is this done the same way with IIS 6? Thank you. ...