tomcat

Passing post data for windows.popup

A popup window is opened using window.popup Is it possible send post data to the popup page? I am working in tomcat + jsp ...

Communication between two applications running on two different versions of Tomcat

I have two web application running on two different versions of Tomcat. App1 is on Tomcat5 and App2 is on Tomcat6. Is there any way, so that I can make a communication among these two. For example - If there is a JavaScript file in App2/js/mycode.js, then I would like to refer this from App1/page/mypage.jsp. For both applications I have ...

Best way to persist state with Tomcat/Scala?

What's the best way to persist user state with Tomcat/Scala? My first thought is to keep account information on the session at all times and redirect the user to a login page if there's no information on the session for the account. Is this a viable model, or is there a smarter way of persisting user information? I'm trying to replicate ...

Quartz running by default inside Tomcat?

I am running a vanilla instance of Tomcat 5.5 which I downloaded from Apache. I just noticed that when I installed lambda probe that there are about 10 Quartz threads running inside my Tomcat instance. Is this something that needs to be run all the time? Can I turn this off? ...

Unwanted jar files in tomcat/lib or WEB-INF/lib

I am currently working on an application which is around a decade old. When I looked in to the jar files which are associated with the application , I can see lots of jars which are not required and lots of different versions of same jar. What are the cons of having unwanted jars in lib. What is the easy way to find and remove them? ...

Reload Kerberos config in JAVA without restarting JVM

Hello, The following code is for authenticating to a windows AD server using Java+Kerberos and it works fine- public class KerberosAuthenticator { public static void main(String[] args) { String jaasConfigFilePath = "/myDir/jaas.conf"; System.setProperty("java.security.auth.login.config", jaasConfigFilePath); String krb...

ldap authentication to AD works for groups except "domain users"

ldap authentication to AD works for groups except "domain users" - Is this issue with whitespace? ( apache6 ) Do I need to edit this row somehow to support whitespacE? roleSearch="(member={0})" ...

Are there reasons to place a dependency in a web server's lib directory instead of including it in the War file?

If I have an dependency Jar for my application is it better to place it in the war files lib directory or to place it in the global application server (like Tomcat) lib directory? What do I gain by using one approach over another? Diskspace springs to mind, but we live in a time when diskspace is cheap. Is there a memory usage differenc...

How can I use NTLM functionality with Apache tomacat?

Hi all, I want to use windows NTLM with apache tomcat. Anyone who's already used it, please give me some information, I am new to it. ...

First time use of Tomcat and the Stripes framework

I recently decided to try some java web development, so I installed xampp, the tomcat add-on, and java. I have looked at some of the JSP page examples that came with it, so I know that tomcat is at least working. However when I threw the stripes folder into the same examples directory and tried to access the files I received the followin...

eclipse + tomcat error

I get the following error when trying to launch tomcat (6.0.20) from within eclipse (galileo) SEVERE: Error initializing endpoint java.lang.Exception: Socket bind failed: [730014] The system detected an invalid pointer address in attempting to use a pointer argument in a call. at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoi...

how to set up tomcat ldap authentication without member of check

I need to set up LDAP authentication against domain users group in AD; there is problem that ldap authenticatin seem to require that users are member of some other group than default domain users. However when there are 10000+ users its not a solution to assign all them to another group just for this tomcat purpose. There must be anot...

Blank page when booting up a large web app

I hava a fairly large war based web app. When I boot it up, Tomcat will allow connections immediately even if the app hasn't booted. Because of this, users get a blank page until the app is loaded. I've seen some web apps where they display a "web app is starting, please wait" page while the app is loading. Is there a simple techniqu...

configuration for java class library on tomcat distibution

What is the best practice for configuring a java class library? At my work, i am writing a class library. Some of the classes needs a configuration to work with our system setup. This configuration may change, and the distribution of the jar file takes a lot of time, as it is going through a lot of test layers. How do i do the configu...

Problem with connection pooling with Java and MySQL in Tomcat web application

Hello I recently wrote and deployed a Java web application to a server and I'm finding an unusual problem which didn't appear during development or testing. When a user logs in after so long and goes to display data from the database, the page indicates that there are no records to see. But upon page refresh, the first x records are sh...

Does Tomcat accept IPs?

Hi there, I have a Tomcat app that is acting as a web server/gateway to Sun Systems Connect (which is itself the gateway to Systems Union Accounts that I suspect is the gateway to happiness). Anyway. I can access the app's login page via a browser as long as I use the machine name (or localhost when local). But neither the machines IP ...

Connection Pool Strategy: Good, Bad or Ugly?

I'm in charge of developing and maintaining a group of Web Applications that are centered around similar data. The architecture I decided on at the time was that each application would have their own database and web-root application. Each application maintains a connection pool to its own database and a central database for shared data ...

How to get LDAP search to use Kerberos ticket to avoid cleartext password.

I have a Tomcat configuration that uses Kerberos 5 to authenticate the user against AD server and then uses LDAP to obtain roles for authorization against a security-constraint. server.xml has this: <Realm className="org.apache.catalina.realm.JAASRealm" appName="vt-ldap" userClassNames="edu.vt.mid...

Flex Hibernate - Setting up EntityManager and SessionFactory with Flex/Mate/ and BlazeDS

I am creating a Flex project using Mate, Blaze DS, Tomcat server. All of that seems to be working. Even my Hibernate calls are working. However they do not seem to be created in the correct way. I am logging in the user with the following block of code in java: public AbstractUser login(String username, String password){ //Configurati...

Tomcat startup issue

I am using tomcat6(distribution) integrated with Netbeans 6.5. It was working with no issues and now suddenly stopped working. Now if i try to start Tomcat from netbeans in console it prints server starts up in some millisecond and all other things abut even after that , netbeans keep on showing the status bar of "starting tomcat" and fi...