tomcat

Problem with long polling with JQuery on Tomcat Server

I created a CometServlet according to this example http://tomcat.apache.org/tomcat-7.0-doc/aio.html. Then I tried to get data from it using JQuery. The code is following: $(function() { $.longPoll = function(url, success, error) { $.ajax({ url : url, success: function(data, status) { ...

which on is appServerDir required for jasperserver war installation on ubuntu

Hello Gurus!!! trying to install jasperserver ce on ubuntu 10.04.When editing the source_mysql_master.properties there is the appServerDir properties and i'm a bit confused on the one to use. i have catalina_base: /var/lib/tomcat6 and catalina_home: /usr/share/tomcat6 i'm just confused about the one to use.can anyone shed some light?...

Access Local Machine Certificate Store in Java?

Is it possible to access certificates stored in the Local Machine store (rather than Current User) from a Java Servlet? I've tried using the MSCAPI provider opening the "Windows-MY" and "Windows-ROOT" stores, but neither contain certificates from the Local Machine store. ...

How would i connect from Eclipse to Tomcat to MYSQL?

I would like to know how to establish the link between eclipse - tomcat - MYSQL. And also which version of mysql to download. Thank you. ...

How to correctly deploy Spring based application on Tomcat?

What are the best practices for Spring based application deployment? I have at least two apps based on Spring. I'm deploying them on Tomcat - two instances of the same server with different CATALINA_BASE's. The result is that size of one of my apps is 30MB and the other is 19MB. Each has same libraries such as Spring, Apache CXF, Hibern...

Handling Tomcat Errors Through Apache

I use Tomcat for hosting my web application and use apache http server on top of it using mod proxy for load balancing. When my application throws a 404 or 500 error, I want to serve the error pages through apache http server rather than tomcat server. This is because I am serving all of my static content through apache and we don't wa...

Railo + Tomcat + IIS7 - Default/Blank Host Header

Quick question: Is there a way to set up a blank or default virtual host within server.xml simlar to setting up a blank host header in IIS? Lengthy Explanation: I've set up a Railo server following the guidelines explained here: http://www.dougboude.com/blog/1/2009/09/Railo-31-on-Windows-Server-2008-and-IIS7--Part-3-of-3.cfm I want t...

Additional context for tomcat:run goal

How do I add an additional directory based context to a tomcat:run configuration? I have the following jetty plugin configuration: <build> <plugins> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <configuration> <contextHandlers> <contextHandler implem...

I can't open tomcat

Hi programmers I'm using Tomcat 5.5 on Windows Vista. When I exit my tomcat, I can't run it again. Access is denied. Unable to open the service 'Tomcat5' Why is that so? What can I do to make it work again? Must I reinstall everytime I exit tomcat? ...

Missing comet events on Tomcat 7 CometProcessor

I am using CometProcessor to implement long-polling on Tomcat 7.0. The thing that bothering me is I don't get any other events except CometEvent.EventType.BEGIN. The code sample: @Override public void event(CometEvent event) throws IOException, ServletException { HttpServletRequest request = event.getHttpServletRequest(); ...

fetching connection from JNDI >15 minutes!

I have this weird problem, web application connecting to AS400 DB2 server through JNDI, getting connection from JNDI happens to last for about 930-960 seconds!!! Usually it takes 4ms to get a connection, and from time to time it spans to 15 minutes... it has no special rule of when/why it happens. We are using JTOpen jt400.jar driver ver...

How to maintain session attributes in a multitenant architecture?

In case of SaaS applications, where the same server plays host to multiple applications. How are session attributes maintained? To elaborate the question: AppA, and AppB are hosted on the same machine, I now create UserA for AppA and UserB for AppB. AppA and AppB belong to different organizations so they are not linked. Some details abou...

Hide 8080 on url and redirect traffic from 80 to 8080

Hello, I got a question about Tomcat + Glassfish configuration. I got 2 enterprise application running on the same machine and with JKMount i have managed to redirect traffic from 8081 to one of them and 8082 to another, but now I also need to deploy WebService. I have deployed WebService and the URL where it is accesible is http://loca...

The best place to store large data retrieved by a java servlet (Tomcat)

I have the java servlet that retrieves data from a mysql database. In order to minimize roundtrips to the database, it is retrieved only once in init() method, and is placed to a HashMap<> (i.e. cached in memory). For now, this HashMap is a member of the servlet class. I need not only store this data but also update some values (counte...

Java EE Module Dependencies page in Eclipse missing projects

We're developing a web application using Tomcat and a number of other libraries, and we're having issues using the "Java EE Module Dependencies" page in Eclipse to assign dependencies to be placed in the lib/ directory of the webapp. (See screenshot) The issue we're having is that while most of our projects show up as available dependen...

Tomcat actual path for new file creation

If in a JSP page I create a new file only giving it's name, it's created in the /bin directory of TOMCAT folder, rather in the same folder of the .jsp. I'm not sure why this happens, seems to be not intuitive. ...

JSESSIONID path in firefox and safari is different

Hi, I am facing a problem with setting the JSESSIONID path. In firefox it is set to / which is alright but in safari and IE it is somehow set to %22%22 so i am unable to login using safari and firefox. I am using tomcat 7 and spring security in backend. Any help in this regard will be highly appreciated. ...

Tomcat start up error

I am getting the following error in the Catalina log file while starting Tomcat in windows: Sep 3, 2010 3:22:53 PM org.apache.catalina.startup.Catalina start SEVERE: Catalina.start: LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.lang.Exception: Socket bind failed: [730048] Only one usage of ea...

Disable Spring from Starting up after BeanInstantiationException (Tomcat)

Hello, for the project I'm currently working at there is the requirement to disable the webapp context to be started when spring fails to initialize some beans (that call webservices during initialization and therefore are likely to crash then). However, when a bean throws any exception during initialization, it looks like this: org...

Single Sign On using Tomcat

We are thinking about moving from WebSphere to Tomcat. In WebSphere, we use LTPA to achieve single sign on between the different applications (running in different physical servers). What is the best way to get single sign-on between 2 physical machines in Tomcat? ...