Spring MVC - Get 404 Constant Errors on Tomcat

I've created a basic Spring MVC web app with Maven. However, I've been struggling with getting constant 404 errors when I'm accessing the /login URL. The /login URL should be mapped to the AuthController servlet and the createLoginForm() method, but

Unable to start Liferay6.2 Tomcat7 server in debug mode

My liferay server is working fine except in debug mode...It just prints this in console.... Jun 25, 2014 1:32:05 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance i

capture the tomcat pid to kill using bash script under Linux

I am trying to write a bash script that finds the PID of tomcat6, kills it, starts it again, then waits 1 minute, then kills the process again and starts it again. This is what I have so far but I am struggling to have the script kill tomcat using th

Asynchronous methods in Java / Tomcat

I don't want to use a thread runnable in order to execute 2 parallel jobs on my tomcat server (for example: send notification and email). I came a cross with this tutorial. I have added a javax.ejb dependency to my pom.xml, but still there is no @Asy

Slow Java: problem with entropy

I am running into an issue where java is slow when used over SSL. The solution is to add -Djava.security.egd=file:/dev/./urandom to java at the command line. Since I have multiple JVM's, I dont want to modify every single JVM to contain this string a

How to host JSPs on a Web server?

Hi I'm sorry for the naivety of this problem but I need some guidance as I have confused myself greatly. I have been tasked with creating a database(mysql) and creating a web interface for i to be interacted with. I have experience with web design an

Java Desktop Application to connect to the database

I have a desktop application and it makes use of JDBC. I have no problem with JDBC whenever I use localhost. Now, I am to connect to a server that does not allow remote connection. I was advised to provide a web service to serve as a gateway between

Starting the thread in a servlet, what can be the problems?

I have a web application, that, on a single request may require to load hundreds of data. Now the problem is that data is scattered. So, I have to load data from several places, apply filters on them, process them and then respond. Performing all the

Stopping a thread in a Tomcat application - which method?

I'm using the below implementation to stop a thread in Tomcat. The code works, but I'm wondering two things: Is it necessary to have Thread.sleep() in the try statement of MyConsumer.java? Instead of checking for my boolean flag, running, should I re

Configuring Tomcat Server for Windows

I have installed apache-tomcat-6.0.35-windows-x86 in my system. How can I configure it and set class path properly? Thanks in advance..You don't need to set anything. Tomcat ignores your CLASSPATH environment variable, as do all Java EE app servers.

HTTP gzip encoding with a multipart message

I am trying to send a gziped multipart POST to a Tomcat server from a Java application using Jersey. When the multipart request is not compressed, it works perfectly fine. Other types of compressed POSTS work fine, such as sending a single entity XML

Exclude a JSP from the web.xml security constraint

I would like to exclude only one JSP file question.jsp from security-constraint. I have this from my web.xml: <security-constraint> <display-name>My Security Constraint</display-name> <web-resource-collection> <web-resource-name

Tomcat JNDI search problem

I was trying read a property value in Tomcat. My plan was to access the value using System.getProperty("LOGPATH") where LOGPATH is the name of my property. However I did not find a way to set a System property value in Tomcat. Is there any way w

Version service error with own Axis2 installation on Tomcat

I am an engineering student doing an internship. I must create a web service. It must: use HTTPS use Gzip in order to compress HTTPS data use SOAP/ WSDL I've never developed a web service before. I have chosen Tomcat + Axis for developing this projec

Java Rapidly Web Application Deployment Practices

Currentyl i am working on a Java Web Application something simple JSF + Spring + Hibernate textbook application architecture, but i find my self losting time on uploading my WAR into production every time i have to do it and also in updating MySQL sc

How to know the path of the current application war in Tomcat

I've a tomcat (with JSF) application. I want to know the path of the war of the current application. I've tried the following code to know where tomcat is ((ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext()).getRealPa

Which application server should I choose for my project?

I am currently developing an application for some researchers in my university.It's a small java program that you can use by command line. The next step is to package that program and deploy it to an application server. Some clients program will subm

What do I need to learn to create a web application in Java?

I've been doing PHP/MySQL web development for a while and I'm fairly competent in it. Lately however, I've learnt Java and fallen in love with it, and I'd really like to do more Java work now. I've gotten my first opportunity with a client who needs