I had recently a problem with encoding of websites generated by servlet, that occurred if the servlets were deployed under Tomcat, but not under Jetty. I did a little bit of research about it and simplified the problem to the following servlet:
public class TestServlet extends HttpServlet implements Servlet {
@Override
public vo...
I am using JSP, Struts 1.3 and Apache Tomcat 5.5.
For some reason response from JSP is being truncated and complete information is not shown.
Class generated from the problem JSP page looks just fine.
There are no any errors logged in Catalina's logs.
I have no idea how this issue can be fixed.
Update: I'm sure that I'm looking in the ...
Any one has experience with this?
http://tomcatspnego.codeplex.com/
...
I'm learning how to develop soap web services with java.
So far now I've been following this excelente tutorial
http://java.sun.com/developer/technicalArticles/J2SE/jax_ws_2/
it all goes well, I have my web service working from the command line with it's embeded server, and then, with the help of netbeans I deployed it on tomcat.
I'd...
I'm trying to install xuggler Java libraries in Tomcat (version 5.5) on fedora-release-7-3
Should I install the binaries available for download on xuggler website or build my own (http://www.xuggle.com/xuggler/downloads/build.jsp)?
I took the easy step first and installed the readymade binaries downloaded from http://www.xuggle.com/xug...
I want to enable form based authentication by using database as realm but I'm always getting that message whenever I try to authenticate as Tomcat manager in Tomcat 6. I have already created a table user_name and user_roles and mapped the username(blue) to admin and manager as role in user_roles table in mysql, but I'm still unable to au...
Hi
I am trying to run a system deployed on a linux machine - built over jboss. I have ran jboss services but it is constantly giving these two errors:
When I try to open home page: http://localhost/ - it gives following errors:
"[engine] standardhost[localhost]: MAPPING configuration error for request URI" and "No context configured t...
Since EJB 3 we have embeddable EJB containers, JPA implementations can be used without an application server, there is Weld for contexts and dependency injection and so on. Since on many systems is only Tomcat available, I wonder, if Java EE could be used without an application server but with a Servlet container like Tomcat.
What woul...
Disclaimer: I've never used the technique which is described below. That's why there may occur some mistakes or misunderstandings in its description.
I heard that some teams (developers) use 'pre-configured' tomcat. As I understand they add different jars to tomcat \lib folder and do something else.
Once I've read a thread in a java f...
I am using Salve Dependency Injection library that instruments the byte code of the web application. I specified -javaagent in Tomcat VM options and pointed it to the Salve agent jar.
The agent jar gets loaded, but then it throws a java.lang.NoClassDefFoundError unable to find classes that are in other Salve jars which are located in WE...
I need to pass -Dlog4j.debug to tomcat through command line, how to do that ??
The platform in Linux box, the command is
$CATALINA_HOME/bin/startup.sh
I've tried set CATALINA_OPTS=-Dlog4j.debug=true but noway !!
The solution is :
export CATALINA_OPTS=-Dlog4j.debug=true
...
Hello
I have a directory containing a number of static file (*.png, *.css, etc).
I thought (mistakenly perhaps) that just creating a directory in my application's WEB-INF file would suffice and I would be able to access the files by just referring to them by name:
Ex:
<link rel="stylesheet" href="/static/styles.css" type="text/css">
...
Is it possible to set up multiple contexts using the same path? For example:
<Context docBase="/www/websites/site1/java/base" path="/base" reloadable="true"/>
<Context docBase="/www/websites/site2/java/base" path="/base" reloadable="true"/>
...
I recently built a simple web-app deployed over Tomcat. The app uses pretty standard session based security where a user who has logged in is given a session.
Sessions work fine in Firefox and Chrome, but require the use of jsessionid in the URL for IE (tested 7 & 8), set to medium privacy. In IE 8, I tried to override cookie handling...
Hallo,
I have a more specific question about deploying a Java-application.
I have created a Java application, it is a WAR file and can be installed on any Java application server. This works perfect. Now for users who do not have Java experience I want to package somehow my application together with the application server and distribut...
While I can appreciate the point of the fine granularity in which you can enable security for every single little thing for each individual application in tomcat, in reality, it's an insane pain in the ass. Every single file, socket, everything for every single application.
Sure if you're writing a "hello world" application, it's not too...
Tomcat 5.5.x and 6.0.x
Grails 1.6.x
Java 1.6.x
OS CentOS 5.x (64bit)
VPS Server with memory as 384M
JAVA_OPTS : tried many combinations- including the following
export JAVA_OPTS='-Xms128M -Xmx512M -XX:MaxPermSize=1024m'
export JAVA_OPTS='-server -Xms128M -Xmx128M -XX:MaxPermSize=256M'
(As advised by http://www.grails.org/Deployme...
I have a problem when configuring mod_jk on ubuntu
i use apache httpd 2.2.12 and tomcat 6
I installed apache httpd and lib mod_jk from synaptic and use default configuration.
Here my mod_jk.conf
-------------------------------------------------------------
# Load mod_jk module
# Update this path to match your modules location
#LoadModu...
Hi,
I have a number of war projects deployed in a single tomcat 5.5 container. They consume each other's services through http, and thus I need to make sure that, when Tomcat is restarted, they are deployed in an specific order. After a couple of hours googlin' around, no luck.
Anyone knows how to setup tomcat 5.5 to deploy wars on re...
Hi, i'm new to java and i got some problems. i'm developping a web application using the framework stripes on tomcat 6.0.
I'm working with eclipse EE on windows. i successfully managed to get the stripes example application (called Bugzooky) up and running on my tomcat server. I imported the .war file and stripes libs in Eclipse.
Here is...