tomcat

Running Dynamic Web Project within Application Server Tomcat/GlassFish

We have a complicated setup via Maven, where different projects are packaged as wars then overlayed on each other. Today I watched a tutorial of creating a Dynamic Web Project that can run directly within GlassFish. You edit the files press save, and the changes are seen in GlassFish. Since our setup is complicated, I currently have t...

Howto get rid of directory prefix in Java webserver url?

I am using Maven with Jetty / Tomcat. My pom.xml declares the ID of my application as <artifactId>webapp</artifactId>. Consequently, all my webapp source is located in src/main/java/webapp. Now, whenever I run any of the webserver, my URL looks like this: http://localhost:8080/webapp/index.html and I haven't found a clue that tells me...

Problem logging in to Tomcat

Hello I have an Java / Tomcat application which creates a cookie for a user when they visit the homepage. This cookie is used to recognize that user on subsequent visits and generate recent lists. These are working well and so far without any type of authentication of the user using Tomcat itself. Which brings me to my issue: On certai...

SSL session migration

I configured my tomcat (6.0.29) cluster "by the book", using only the NIO HTTP connector load balanced by httpd mod_proxy_balancer (HTTP/HTTPS). When using HTTP, i can kill servers and still use my session perfecty. When using HTTPS the session is lost on failover. Anyone had this kind of problem or can give me a hint to where i should ...

How to enable timeout per each restful web service method

How would one go about setting timeouts for each REST API method on the server side. For example I have certain web service methods that upload images and I want to increase the timeouts for these methods compared to ones that have lower http payloads. Architecture I am dealing with: haproxy, nginx, tomcat ...

changing app root for spring mvc app on tomcat

I am working with a sample RESTEasy 2.0 resource on Spring MVC 3.0 and deplying to Tomcat 6. I can get to my resource through http: //localhost:8080/examples-resteasy-2.1-SNAPSHOT/contacts but I would like to access through http: //localhost:8080/contacts or even http: //localhost:8080/myservice/contacts Is there something I need to cha...

Why do my anchor tags contain my request context path before the path I specify?

I'm using Apache Tomcat 6.0.26 with java servlets and JSPs. Whenever I'm trying to link to an external website, my anchor tags always contain my request context path before the external link. For example if my context path is http://localhost:8084/MyWebPage/ and I'm trying to link to www.google.com via this tag: <a href="www.google.com...

Implementing notification in webapp

We are developing and web application which allows users to register for certain events. What application is supposed to do, is to send them few notifications to remind them that they have registered. There will be more than 1k user which can register for many events in very wide time range. We have to send notofications like 3 months, 1...

Is there a posssibility to replicate not the whole session in a tomcat cluster?

I have a web app running on Tomcat (Spring WebFlow, Hibernate are used). On of the app's features is misc. reports generating based on stored data (quite heavy task). We're experiencing perfomance problems with other functionality while performing this task (note, only for some of our customers). So we've tried to create a cluster of tw...

Servlet throws file not found excp when accessing network drive

Hello All, I've a production env and test env. Production has win2k3+tomcat 6.0+ and network drive mapped to a drive letter for easy access (z:\app instead of \symba\files\app). My test env has windows xp (all the software is same including the source code for servlet) and test also has the same drive letter mapping to the network drive....

Apache Tomcat Threads in WAITING State with 100% CPU utilisation

The application, when subjected to load, sometimes, utilises 100%. doing a kill -quit <pid> showed 1100+ threads in waiting state as: Full thread dump Java HotSpot(TM) 64-Bit Server VM (16.3-b01 mixed mode): "http-8080-1198" daemon prio=10 tid=0x00007f17b465c800 nid=0x2061 in Object.wait() [0x00007f1762b6e000] java.lang.Thread.Stat...

Getting HTTP 404 Not Found with multiple requests while using form based authentication

Hi, I am having an issue with Tomcat and Websphere when users try to login in our application. If a user presses multiple times the return key after entering his/her login details, the form is submitted multiple times. Tomcat and Websphere don't ignore the multiple requests and end up complaining about the /j_security_check url not be...

Platform-neutral JSP Zip File Upload (Google App Engine / Tomcat)

Is there a consistent code-base that allows me to upload a zip file to both GAE and Tomcat-based servers, extract the contents (plain-text files), and process them? ...

Deployment in tomcat

i am getting a problem i have deployed a war file, when i run localy through tomcat it works fine but when i run on another system by giveing my system ip and then project folder e.g http:\192.168.0.145\DllTest it loads the applet but when i click on a button to load the functionality it is throwing an exception Exception in thread "...

Using Tomcat NTLM with Spring Security

Hi. I'm using Spring Security 2 with Spring MVC. The tomcat container I will be using already has NTLM support and will provide access to only authenticated users, before forwarding their username in the header of the request. I tried writing a custom AutenticationEntryPoint with the idea that no form/ http-basic login would be required...

How to configure tomcat 7 in Eclipse 3.6 with jdk 1.6.0_20?

Hi all! I'm having some problems configure tomcat 7 on Eclipse 3.6 . The enviroment is a notebook with o.s. Windows 7 Home Premium 64 bit. Before this upgrade i work succesfully with tomcat 6 on Eclipse 3.6 but my switch on the newer tomcat is an evil! I repeat every instructions that I use to configure tomcat 6, but it doesn't works! ...

Problem with C3P0 connection pooling in ServletListenerContext when deploying to Tomcat 6

Hello there, first things first: I've read various related questions on here, before actually deciding to enter my question anyway. The reason is that my problem is somewhat different from the others I've read about. My aim: I have an application written in GWT (I'll explain later why it's relevant) that access some servlet via RPC. Th...

Flex project deployed on tomcat

I'm new to flex.What i am doing now is writing a flex project reading an external xml file(one the remote server) using httpservice component and do some drawing. I create the project in flash builder as a none server project and everything works fine when i simply click wrapper html file under bin-release folder. When i try to copy bin-...

Tomcat ignores my custom error servlet/page

Hello experts, I have an issue which drives me crazy. Not sure it this is a bug in Tomcat or just my plain stupidity but here goes. I have a custom error servlet set up, something like this. The setup works and if I simulate exceptions or 404 errors etc the servlet runs, the error page is displayed corectly, the response code is either...

How should I initialize class freemarker.template.Configuration?

Attempting to follow this Java tutorial. About 63 pages in, you are instructed how to create a form ("New.jsp") to submit new events. When I try to visit the page, I get the following error: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this...