tomcat

passing session to another web application

let say in tomcat application server we deployed 2 web applications , web application A, web application B. How to pro-grammatically sync session from web application A to web application B . In other words, as long as user login to web application A, he is already login to web application B. As well when he log out. ...

What memory types does Tomcat use and how can it be controlled

Hi, I know there are several memory types that Tomcat uses when running. The only I have ever used - java heap. It can be controlled through JAVA_OPTS env property with something like '-Xmx128M -Xms64M' I have found that there is also -XX:MaxPermSize, -XX:MaxNewSize and etc. The reason I'm asking is that I'm trying to launch Tomcat5....

JAR file folder for eclipse projects

I'm trying to create a centralized folder (in some kind of a "meta project" in my eclipse workspace) for commonly used JAR files for referenced projects in this workspace. It should work similar to the WEB-INF/lib folder for web projects but also apply to non web projects, and automatically scan and add all jar files in this folder. I t...

What is the proper way to reload your application in Tomcat from Ant without encountering Permgen Exceptions?

My team and I are developing a Java web app using Tomcat as our development testing server and Ant as our build tool. Our platform is Windows but we're running Tomcat out of Cygwin as our preferred shell is bash. We've run into consistent problems with running out of memory due to the frequent restarts of the application in order to ma...

Cobertura Coverage Report Image

Does anybody know where Cobertura sticks it's coverage report image? The url to my image is: http://ContinualTests/746/cobertura/graph When I dig down on my box that is running tomcat/hudson I find tomcat6/.hudson/jobs/XX/builds/746 but I don't see the graph. Is the image getting generate on the fly? Seems like something that wou...

Tomcat Session Eviction to Avoid OutOfMemoryError

We are running a vendor-supplied webapp in Tomcat 5.5 using the StandardManager for sessions (in memory). As sessions can get quite large (20M+), running out of heap space is a serious concern. Users want to keep sessions around for a couple of hours if possible but would rather evict sessions than run out of heap space. It does not a...

JAAS tomcat login module possible method to pass ip address

I've been looking into a way of passing the client ip as well as the userid and password from a JAAS login page to the JAAS login module implementation in my web code. JAAS only allows the user id and password to be passed to the login module. My idea is to have a java script code to append the ip address to the user id and then call t...

Tomcat : French accents in a solaris directory

One of our client bought a publicity in a newspaper and added to his URL : http://www.website.com/publicité instead of "publicite" (without the accent)... I'm trying to make the corresponding directory under Solaris and it doesn't seems to work. I grabbed the "get" request and it looks like the "real" request is /publicit%C3%A9 We tried...

Tomcat Error . Apache Tomcat error... org.apache.catalina.core.StandardWrapperValve invoke

here's my problem.. i have recently got my liferay portal ext running on Tomcat 6.0.20. everything works fine, but when i click some link this error comes up on the log.. some Javascript also is not working i guess. i am also running my server on Ubuntu 9.04, used Mysql as my database. hope you can help me thank you in advance here...

How to configure the filename length that can be handled by Linux Ubuntu?

Im using Liferay portal server on tomcat and Linux Ubuntu. Liferay is generating a file that is very long. I've seen those files in windows and its working. But when i tried running it in ubuntu, it doesn't create the file and my server is giving me error. I've also tried to make a file with a very long filename and it really doesn't al...

how many war can we deploy onto tomcat?

how many war can we deploy onto tomcat? is there any limitations??? ...

Taking over for JspWriter

Thanks to everyone in advance - I have yet to find an easy way to do this but, is it possible to take over the handling of the data (headers and everything) written to JspWriter? Sort of like a liaison to manage that buffer dynamically and then control the output to JspWriter? I am running into issues with redirects where the status hea...

Is there a bug in org.apache.catalina.realm.JDBCRealm?

http://www.docjar.com/html/api/org/apache/catalina/realm/JDBCRealm.java.html To use this JDBCRealm we need two tables, user and user_role. user table - user_id, user_name, user_password user_role table - user_id, role_id, user_name Why user_name is required in user_role table when user_id is there as foreign key. The JDBCRealm could...

Apache Axis NoClassDefFoundError when trying to list services

Hi folks, I'm getting an exception being thrown when I try and list my Axis-powered web services, when I try and access the WSDL for any service and when I try and use the service in question: Servlet.service() for servlet AxisServlet threw exception java.lang.NoClassDefFoundError: com.example.MyAwesomeServiceSoapBindingImpl ...

Threads or JMS Which is better?

If i want to run a process (time taken to complete this process is in hours) in multi-user environment (thru tomcat-servlet) Which is better to implement this process in? 1) In Threads or 2) In JMS what are advantages and disadvantages? ...

What's the need of <security-role> element in DD

Hi, I don't understand what's the need to declare element of , or even itself in DD, because the Container can still create a mapping between role in tomcat-user.xml file and role declares in DD in auth-constraint element of a security-constraint for authenticating any client. I'm using Tomcat 5.5. Thanks in advance ...

Redirect subdomain on tomcat through apache server with mod_jk

Hi, I have a Tomcat (6.0.20) and Apache Server setup (2.2) and am trying to redirect all subdomains to a specific context, on my domain. e.g., s.example.com redirect to www.example.com Apache is fowarding requests via mod_jk (I tried mod_proxy, but the css and js didn't load as its not absolute urls). My current setup: httpd.conf: ...

Is Tomcat middleware?

So I have a client that needs to be running tomcat for various things (Solr and a webservice as well) and after having a meeting with him and another programmer on the project, I got a little confused. The other programmer was throwing around buzzwords and saying things like "We need to have middleware for tomcat." In response to this, m...

Configure DB Connection Pooling - Axis2 webservice

Hi, I'd like to know how to modify the server.xml file so all my webservices built on axis2 can talk to the DB using Connection Pooling. Each webservice has a different data source, one points to one instance of the DB and the other to another DB server. How do I specify the context that should be used by each service? Thanks in advanc...

Installing Solr onto a hosted tomcat server.

I have installed and configured tomcat+solr on my personal linux machine and windows as well. I was able to get them working fine. I'm very new to Java and how the file structure works. (i.e. knowing where to put war files and what WEB-INF is) So now that I am ready to install solr and configure it on my clients shared hosting plan, the ...