I want to make a target to restart tomcat6. Right now, I have something like this:
<taskdef name="stop" classname="org.apache.catalina.ant.StopTask" />
<taskdef name="start" classname="org.apache.catalina.ant.StartTask" />
...
<target name="restart" depends="deploy" description="Restart Tomcat" >
<stop url="${manager}" username="$...
Using IDEA and tomcat I setup a simple spring mvc app (thanks to you guys) and it was deploying using a 'web app exploded' format.
Is a .war file the same thing, except in a single file appname.war?
How can I configure IDEA to do this?
how do I have IDEA make a .war file during compilation and/or deployment?
how do I link this to t...
This is driving me nuts.
I'm using Tomcat 6, declaritive authentication, form based. No framework involved.
Everything works ok - some pages authenticated, some not, some use https, some http. Everything as I want it. EXCEPT...
I want the login page to always use https.
The login page comes up nicely as https if:
a) I go to it directl...
I'm using Eclipse and can get each of my servlets to work independently (using HTTP Client to test) through Eclipse. But the real work is getting them to work at the same time.
I'm using Tomcat, but have no idea how to run all three servlets at the same time. They are all mapped properly in the web.xml file. How do I deploy these from E...
Hi guys ,
I have a servlet that acts as controller for a jsp pages , and I want this servlet to able to listen to jax ws messages through the Provider interface , this would be an ideal solution. I also tried to have a different class that implements the Provider and with that class to pass messages to my servlet , but also it wasn't su...
I'am encountering a problem with my Web Apps and cannot find any answers on the web.
I have a Java Web
App that works on parallel with
tomcat and apache using mod_jk.
Everything works fine, but after one
day of running in tomcat, one of my
main servlet doing ajax request stop working. All the
others work fine. By this i ...
I have Java programs running on various machines (A) that should send messages via server (B) to Flex clients running on other machines (C). The server is running a Grails (Java) application on Tomcat with standalone ApacheMQ and the whole setup is currently working nicely using GraniteDS to communicate between Grails and Flex. (The way ...
Can someone clearly describe how JRE handles the JSP files which contain pure JAVA codes? I know that byte codes of JSP files are not placed in the WAR file. It consists of compiled CLASS files and plain JSP files.
It says in Tomcat's RUNNING.txt "Apache Tomcat 6.0 requires the Java 2 Standard Edition Runtime Environment (JRE) version 5...
Hi,
We have Tomcat 6 installed and running on an external facing server. It is set to listen to port 8082. I was able to see the default welcome page through localhost:8082. In addition, our network guy has already granted access for 8082 communications. However, this server is still not accessible from outside(with http://ip:8082).
C...
Hi all,
I have question. Let's assume that I have API which allows me to add dynamically add DNS records. Now, I would like to run simple application on Tomcat and put Apache in front of it, so that any domain added to DNS pointing on this Apache would be served by application running.
I read a bit about Dynamically Configured Mass Virt...
Hey guys, I've been browsing around on SO for quite some time and can't thank everyone enough.
I've finally come to a road block after ironing out the other bugs in my code: Tomcat 6's security manager combined with Java's security is stalling me. Basically, I've written a web application (that only trusted people will have access to,...
I did not stop the server and copied a war file into it causing tomcat service to be in a hung state. The odd thing is that the new service worked fine whereas the old one stopped working.
...
I'm just switching over to IDEA from eclipse, and I'm trying to figure out how to set up a secure instance of tomcat to debug jsp pages that are only being served over SSL. I've got a non-secure port running just fine. What do I need to do to get a secure port? Pointers to docs would be great--I've searched the jetbrains forums and on he...
I'm a beginner coding a Java web application. I used to code Ruby On Rails.
Can you recommend a standard, cool environment for Java web application coding? Is Java+Tomcat+Struts+Eclipse standard?
...
I'm developing a web application on Apache Tomcat 6 with Hibernate and Spring, I'm using different XML configuration files to define my Spring beans (like the Hibernate DAO, Quartz scheduler and some other stuff). All these files are loaded at Tomcat start up via web.xml (ContextLoaderListener).
Now I'm not sure what is the recommended ...
I have an application that I use BoneCP for connection pooling and when I deploy the war to tomcat, it works perfectly. But when I create another war (almost identical, just different skin and DB connection) ans deploy them both the I get the following error when tomcat starts up:
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnect...
how to connect to a tomcat server through the browser in an android virtual device??
Usually,After we start tomcat server, when we say "http://localhost:8080" tomcat server can be seen in browsers like Firefox etc.. But i am not getting it in an AVD Browser. .Is there a way to connect to tomcat on local machine??????
...
I'm curious how does Remember Me work and how does it work in Spring Security?
I understand that server sends long-lived cookies to the client. And then client sends cookie back and server can recognize the client because there's something like hash-map on the server with relations cookie --> session.
I don't understand how does the se...
I have a very large problem. I've written a large app using Flex3/Tomcat/BlazeDS/Spring that has worked very well while developing locally, fine when I deployed to a common dev environment, but then fails very often when deployed to our test environment.
The failures seem to happen most when a remoting request takes a good bit of time ...
Hi there,
I have a JSP in a string variable in a servlet and I would like to compile it as a JSP myself (on the fly, programatically). Right now what I am doing is saving the string to a file and accessing that file (which generates the resulting servlet) - something like:
// and He created JSP from mere html code
final String jsp = c...