tomcat

Tomcat and Jetty differences when running Grails apps

Hi, has anybody worked with a Grails application in production in Jetty and Tomcat and has noticed any important differences ? I started having out of memory problems with tomcat 6.0.24 that were fixed when I updated to 6.0.26, and I was wondering if Jetty had that kind of issues too. ...

How to run tomcat service with java -server option ?

I am using tomcat as a window service and I want to turn on the java -server option on for the jvm. I tried to do this by putting a -server option into the java tab in Tomcat6w application (the tomcat monitor application). However, this didn't work, Tomcat wasn't started, looklike Tomcat6w expects only D or X options for the jvm. Anyone ...

What is better in performance: Jetty or Tomcat for production needs?

Hi all im planning to use java/jsp for web application installed on virtual web hosting space i know tomcat very well but i keep reading about jetty that is small and fast what to you think from your experience about the two ? what is better ? i will use Nginx for static pages . ...

Issue installing web application using tomcat6

Hello guys.. I have a .war file of a web application. I installed the tomcat6 manager and i deployed the war file using that. But after that i am not able to get it running. I get a FAIL message saying FAIL - Application at context path /apnaPradesh could not be started. apnaPradesh is the deployed war filename. Also i get the followin...

Using hash symbol in forward URL with RequestDispatcher

I'm trying to forward a request to another URL which includes the hash symbol ('#'): request.getRequestDispatcher("/some/path.jsp#somehash").forward(request, response); Tomcat, however, tells me that "the requested resource is not available". If I remove the hash from the URL, everything works fine. Are hashes not allowed or am I not ...

Eclipse error when Adding Tomcat as server runtime environment

When I try to add Tomcat as a server runtime environment in eclipse, I get the following error "No new server runtime environments were found" The way I am trying to add Tomcat is as follows: Click "Window"-> "preferences" Expand "Server->Runtime Environments" Click Search In the directroy browser dialog, navigate to and select my Tomcat...

How to set default mime-tipe for any file extension in Tomcat 6?

Mime-types are specified in Tomcat's conf/web.xml file. It's look like this: <mime-mapping> <extension>txt</extension> <mime-type>text/plain</mime-type> </mime-mapping> Previously I try following: <mime-mapping> <extension>*</extension> <mime-type>application/octet-stream</mime-type> </mime-mapping> but it doesn't help...

tomcat context defined in server.xml is not loading

i have a web app deployed on path /var/lib/tomcat6/webapps/abc/ in server.xml on path /etc/tomcat/server.xml i have added following lines. <Context docBase="/var/lib/tomcat6/webapps/abc/" path="/" reloadable="true"> <Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="20" maxIdle="10" maxWait="10000" name=...

Java Datasource Management via WebApp

Currently, we store datasource definitions in the Tomcat container inside server.xml and expose environment variables through context.xml. Any time we change an environment variable or datasource, it requires a server restart for those changes to be live. Is there a way that we could create a web application to manage these things? Ins...

how to endorse tomcat, jdk, jre?????

hi, i'm using Netbeans 6.8, jdk 1.6.0.21 and jre6u21....i developed a simple web service using nothing but sql connection, oracle datasource and when i try to deploy it it gives me the same exception each time: SEVERE: Exception sending context initialized event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSServl...

Block by a simple acl authentication for selenium test

I try to write selenium tests for a web site. I used a tomcat server with a MemoryRealm authentication cf <Realm className="org.apache.catalina.realm.MemoryRealm" pathname="/DEV/tomcat1/conf/tomcat-users.xml"/> I didn't find how to set authentication in my tests. I tried to put in "selenium.open" selenium.open("http://user:pass@mys...

load-on-startup Tomcat

How can i load a class on at startup in Tomcat ? I saw "load-on-startup" tag for web.xml file, but can i use it and how should I write my class ? EDIT: ok, but how can i implements this class and xml is it right ? < servlet-name>??< /servlet-name> < servlet-class>??< /servlet-class> < load-on-startup>10< /load-on-startup> ...

Tomcat runtime aspects and jms destinations

Does anyone know if it's possible to deploy a war that could weave dynamic aspects around the method invocations of a class in a seperate deployment on the same tomcat server? I understand the security implications of this but we're looking to be able to audit our application as invasively as possible. Also is it possible at a war's de...

Using Maven to Deploy on Embedded Tomcat with a Datasource

I have a multi module maven web application, which uses hibernate. I use the tomcat:run goal in order to run it on the embedded tomcat server of maven. Everything works fine so far. But now I need to switch from an explicite jdbc configuration in the hibernate.properties to a datasource. I did the following: changed hibernate.propert...

guacamole vnc viewer - how to ?

hello, i have my tomcat server running, i downloaded the guacamole vnc viewer, and i followed the instructions on : http://guacamole.sourceforge.net/ however when i type :http://localhost:8080/guacamole/ i get error message : http status 404 The requested resource () is not available. anyone using guacamole, plz can you explain the st...

problem with tomcat 5.5 & loading cached data

I've a SmartGWT ListGrid which loads some data using gwt-rpc service calls. My grid has a datasource with a fetch method like this : protected void executeFetch(final String requestId, final DSRequest request, final DSResponse response) { try{ MyServiceAsync myProxy = MyServiceUtil.getProxy(); myProxy.getDataAndFill...

Tomcat(6) escapes text from beans before including it to resultig html

When I get from MyBean some text, for example, <p>Hello world</p> and include it into jsp via jsp:getProperty in resulting html page it will be &lt;p&gt;Hello world&lt;/p&gt; I could guess that tomcat's team did this due to security reasons but it's not behaviour that I want to get. Q:how to get needed behaviour? UPD: @Jörn Horstman...

Deploying Jersey 1.3 Web Service on Weblogic 9.2 or 10.1

Hello, I am having issues deploying my Jersey RESTful web service to weblogic 9.2 I followed a tutorial at http://www.vogella.de/articles/REST/article.html. The tutorial is for java 6 and tomcat 6 which it works fine for. However, I need to convert this to java 5 and tomcat 5.5 so that I can successfully deploy it on weblogic which use...

REST URL mappings not working (Grails 1.3.3, Tomcat6)

I'm new to Grails (but not to Groovy or web development). I'm trying to write a web app that accepts REST requests. The problem I have is that despite following - as far as I can tell - the documentation, I still receive 404s when hitting what I believe is the correct URL. The details are as follows. The project is brand-new (using G...

Populating a JSP dropdown list with folder names

How do I populate a dropdown list (in a JSP page) dynamically with all the folders present in the same directory as the JSP page, on Apache Tomcat? ...