tomcat

Script to Reload specific Web App

Hello internet, I have been looking for the past two hours for a script to reload my web app. I'm using Tomcat on a windows server 2003. I know that there is a link to reload your web app, but i'm wondering if i can automate the process to reload my web app once every 8 hours. I would really appreciate if you could give me hint or ...

Best way to deploy large *.war to tomcat

During development I frequently have to deploy a large war-file (~45 MB) to a remote test server, normally I copy the file with scp to the server. The WEB-INF/lib folder makes up the largest part of the war file, which includes all the required libraries (spring, apache-cxf, hibernate,...). Now I'm searching for an fast and easy a way ...

Tomcat configuration for Spring app.

Hello, I have built web application for use in Tomcat. It depends on Spring. I have the following exception when trying to access it: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader) I read tomcat docs, and found that I need to configure security. I added following lines to "/usr/sha...

Exception occurred while starting AnthillPro:

AnthillPro did not load correctly. null java.lang.NullPointerException at com.urbancode.anthill2.impl.AnthillImpl.if(Unknown Source) at com.urbancode.anthill2.impl.AnthillImpl.int(Unknown Source) at com.urbancode.anthill2.impl.AnthillImpl.init(Unknown Source) at com.urbancode.anthill2.Anthill.a(Unknown Source) at com.urbancode.ant...

How to set zeroDateTimeBehavior on JNDI DataSource without using URL ?

In this stackoverflow question the poster implies that you can set zeroDateTimeBehavior="convertToNull" as an attribute on the tag. Does anyone know if this should be possible? All the docs I've looked at say that you can only add this property on the database connection url. I'm actually looking for a way to set this property on the ...

Apache: ProxyPass max parameter has no effect

I am using the following Apache config to forward requests to a Tomcat server: ProxyPass /myapp ajp://localhost:8009/myapp max=2 This is a simplified config, but is enough to reproduce the issue, which is that the max parameter has no effect. If I through 10 concurrent requests to Apache, all 10 are forwarded to Tomcat at the same tim...

How can I deploy build to server with Apache Maven?

I have just started to use Apache Maven. Now I would like to make Maven to be able to make production and development enviroment deploys with one click. I'm using Eclipse (Springsource version) and I have Maven plugin installed. My server has tomcat and only thing needed for deployment is to overwrite old war with new one and server has ...

Languages / stacks for deployment

I'm working on a rather intensive rewrite and given a choice of the following options: JSP / Java running on Tomcat PHP running under Apache Ruby (running under I'm not sure, ROR?) A couple of basic questions I would like to know about the above. Speed is a concern. We have a MongoDB backed database, so we shouldn't need to be waiti...

Is hosting a Netty Server inside Tomcat feasible/desirable?

We building a Netty/NIO based service, and I'm considering the deployment of this service to our production environment. Our standard way of deploying services is as WARs, to be deployed inside Tomcats. When I suggested the same approach here, I got shouts and complaints that "it shouldn't be done", because both Netty and Tomcat are ser...

Multiple contexts pointing to a single webapp

Is there anyway of configuring tomcat to point more than one context at a webapp? I need to point these two urls: http://server.com/abc http://server.com/def to a webapp running under the context abc. ...

Issue with apache tomcat redirects and Session Cookies

Heya, I support an existing website written in Java and deployed to Apache tomcat. Let's call it: www.mywebsite.com. This website includes a secure section, www.mywebsite.com/secure, which is behind SSL certificate authentication. As well as an SSL certificate, it also sets a session cookie with some user-specific information so that w...

Session issues accessing Apache Tomcat application beyond a Proxy

We have a application running on Apache Tomcat. When the application is accessed from beyond a proxy, the session information is getting lost or the user is logged out after some time. Please advise. ...

Tomcat 5.5 Don't Find My Servlet

I've compiled the source into the class Files, then putted at the folder: Tomcat 5.5\WEB-INF\ROOT\classes\Files.class And added this to the web.xml file: <servlet> <servlet-name>Files</servlet-name> <servlet-class>Files</servlet-class> </servlet> But when I tried to access the URL http://localhost:8080/Files, I got this err...

Grails: How to run multiple apps in development env ?

I have two Grails apps developing in the same time that needs to comunicate with each other. How can I run both of them with grails run-app? If the server is already started and try to run the second app I get: Server failed to start: LifecycleException: Protocol handler initialization failed: java.net.SocketException: Unrecognized...

In Tomcat, how can I output message to console by using System.out.println

In my java code, I have System.out.println(...) statement which is invoked by jsp. But I don't see anything being written to tomcat console. I've googled around and seems no clear answer on it. I'm using tomcat 6.0. Thanks ...

No tag "link" defined in tag library imported with prefix "h" | tomcat | eclipse

I was working in Netbeans IDE and switched to Eclipse. I created a simple JSF 2.0 based using wizard in eclipse. The complete file is this. index.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%&gt; <%@ taglib prefix="h" u...

log4j appender config

Is there a way to run log4j appender at a specified time? log4j.rootLogger=INFO, R log4j.appender.R=org.apache.log4j.DailyRollingFileAppender log4j.appender.R.File=${catalina.home}/logs/catalina.out log4j.appender.R.DatePattern='.'yyyy-MM-dd log4j.appender.R.layout=org.apache.log4j.PatternLayout I have put the log4j.properties under /...

Tomcat Comet - why flushed data doesn't arrive on browser?

Hello everyone, I have an aplication which uses tomcat runtime. I've implemented its comet example and i'm having some problems to recognize why doesn't server's data arrive on browser after I use the flush method from the PrintWriter of the ServletResponse. The biggest confusing thing is that sometimes it just works. I don't understand...

Grails Enum Works on Jetty, breaks on Tomcat

I have developed this small app and run it on Jetty with no problems... Bug.groovy: package itsafeature class Bug { String name String description Priority priority Project project static belongsTo = Project static constraints = { name(size:10..150) description(size:25..1500) project...

can't resolve another child project when running mvn tomcat:run

I'm developing a maven project with following structure: main // project which packaging is pom |-- datalevel-project |-- service-project `-- web-ui-project I'm trying to run project on tomcat but when I command mvn tomcat:run on the folder of main project I get an error while it is building the service-project: Failed to resolve ...