suppose, I use Tomcat as a web container.
Is it true that once all the servlets found in a web-app/WEBAPPNAME
are init(IALIZED) then every change of a Servlet's property will be seen to every session.
So session 1 changes a property userName of a Servlet1 from "user1" to "user2"
session 1 is closed.
session 2 starts. It will see "us...
Hello, is it possible to restart Tomcat6 by executing a JSP?
This because I would like to deploy the changes of an application by doing it remotely using the webserver.
The deploy script is written in bash and it checkouts the latest version from the svn, then package it as a war, then copy it in /webapps/ while adding some libs. If I ...
Hi,
I have a tomcat 6 application which I have set parameters of -Xms512m -Xmx1024m. I thought 1 GB of memory in a 4 GB RAM would be enough, but that is not the case. On application stop/start multiple times (from tomcat manager) and also on image uploads (sometimes) I run into the OutOfMemory PermGen space error and the site stops res...
I have a web app built with Maven.
Most of the time, I built the application using Intellij IDEA, but now I want to import the application in Eclipse to see something in this IDE.
After mvn eclipse:eclipse, I add in Eclipse the app, but when I try to add the app to the server (tomcat), I receive:
There are no resources that can be ad...
Hi all !
I need your help to resolve a conflict between Tapestry and JaxB.
The error is :
com.sun.xml.stream.ZephyrParserFactory
cannot be cast to
org.codehaus.stax2.XMLInputFactory2
I find a way to resolve it, but it is for jetty : http://tynamo.org/tapestry-resteasy+guide
The solution seems to be to add a system properties...
Hi,
After I got certificate, I tried to import it as specified here: http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html#Edit%20the%20Tomcat%20Configuration%20File
But I got this error:
C:\Program Files (x86)\Java\jre6\bin>keytool -import -alias tomcat -keystore C:\
SSL.keystore -file C:\SSL\SSL_Internal_Certificate_for_isdc-plannin...
question:
Can i run a grails war under tomcat ina machine without JDK ( Only JRE ) ?
i have a grails app that works fine in: grails run war.
also in a separate tomcat server in the same computer.
when i deploy this .war on a server, That has JDK, i have no problem.
when I try to do this in a server that only has JRE, the aplication ...
Hey, SCENARIO: 10 CATALINA_BASEs with own configuration (always the same port numbers 8080, but 10 different IP/hostnames on one host via virtual IPs - it's a little unconventional, but with good iptables it's ok).
created a server in WTP and pick "Use the custom location" option in the server configuration in eclipse.
New configurat...
For the last two day, I've been spending a lot of time to solve my problem, maybe someone can help me.
Problem: I need to redirect different url's to one tomcat webbase-dir used for artifactory.
following urls should point to the tomcat/artifactory webapp:
maven-repo.example.local ; maven-repo.example.local/artifactory ; srv-example/ar...
When using java threads, one has to take care of the basic problems that come with concurrency through synchronization etc.
AFAIK Tomcat also works with threads to handle its workload. Why is it, that I don't have to think about making my code threadsafe when it is running in Tomcat?
...
Hi,
I'm trying to change the authentication mode of my application from JDBC-REALM to JNDI-REALM.
I configured the following section inside the Server.xml
<Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
connectionURL="ldap://****:389/DC=onsetinc,DC=com??sAMccountName?sub?(objectClass=*)"
connectionName="user...
Hi,
I have a simple web-app that is developed in Netbeans(6.8) and works fine in Tomcat(6) using LDAP(Active Directory).
I need to convert this to an EE (JSF2), so I am moving from Tomcat to GlassFish(v3).
I have changed the web files to xhtml and configured the xml files. However, I cannot get the GlassFish LDAP configuration to a...
Whenever I start my Tomcat 5.5.29 server in Eclipse, it's status becomes "Synchronized." If I save a change to a file of any type, it publishes that file and then says "Restart." I used to be able to get it to synchronize again so that I could view the change without having to restart. Any ideas?
I have checked to make sure Build Aut...
I'm trying to improve my spring mvc configuration so as to not require a new config file for every servlet I add, but I'm running into problems. I've tried using this tutorial as a starting point, but I'm running into an issue that I can't figure out.
The problem is that when I do a GET to my servlet, I get back a 404 error. Here's my c...
I have a scenario where I have single entry point Servlet and further Servlets that requests are forwarded to that undertake heavy processing.
I am looking at options to distribute this load and I would like to know if it is possible using Tomcat or another platform to forward requests between Servlets sitting on different servers using...
Suppose my Tomcat webapps directory looks like this:
webapps/
webapps/fooapp/
webapps/fooapp/WEB-INF/
webapps/fooapp/WEB-INF/web.xml
webapps/fooapp/bardir/
When I make a GET request for /fooapp/bardir, Tomcat sees that webapps/fooapp/bardir is a directory and sends back a 302 to /fooapp/bardir/ (with a slash at the end).
Here is my q...
Hi,
I am using jasperreports-3.5.0 to generate timeSeries chart.
When I run it through eclipse it is working fine.
But if I create .war file of project and run through tomcat by deploying the project into tomcat / webapps folder then chart can not be displayed.
What could be the problem?
code:
PrintWriter out = response.getWriter()...
Firstly, I am not at all familiar with windows batch file programing. Recently I am curious about how tomcat sets itself as a windows service using a batch file. I downloaded the service.bat file from tomcat 6. However, I still don't understand some part of it.
I guess this is the line that the batch actually register the exe file to th...
Hello,
I'm creating a java web application runing on a Tomcat server.
One of the functions fill in a StringBuffer variable with data.
At the end, I would like to propose the user to download the generated content packaged in a text file. This without having to store the file on the server.
I've been searching for a code snippet but c...
Is there any way to change the Set-Cookie header to something other than JSESSIONID? To something like ASP.NET_SessionId?
...