Is there a way to control the Maven embedded Tomcat version?
mvn tomcat:run
This command will run a Tomcat 6.0.16 instance. I'd like to run a 5.5 version of Tomcat. Is there a way to configure this? Searching the plugin docs didn't help...
Thanks!
...
I wish to use Spring MVC to provide a REST web service. However, running through some books and tutorials, it looks like ModelAndView always returns a parsed JSP file. I guess I could make the JSP build my XML document, but is this the best way to go about things? I thought that perhaps a more structured XML building approach might be ap...
I don't know how to access my deployed war file like this www.mydomain.com
Instead I have to access it i.e http://mydomain.com:8080/WarFileName
I would like to fix that and also be able to deploy/host more than one domain on the same Tomcat server i.e. www.mydomain1.com and www.mydomain2.com on the same tomcat server without the port ...
Hi!
I created a mainly empty dynamic web project in eclipse.
It has
no servlets
no jsp files
The web.xml is
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocatio...
I'm running Tomcat6 locally on Mac OS 10.5.8. Our staging and production servers have setup an environment variable of:
LANG=en_US.UTF-8
Stage and production run on CentOS and read this value in when java and Tomcat starts up. However, it doesn't appear that java is reading this value and is defaulting to en_US_ISO_85591. On my local ...
Is possible to switch off session tracking in Tomcat 6.
I mean, to avoid the creation of the cookie JSESSIONID.
Thanks Luis
...
I'm someone that used to do some J2EE coding in the past and I'm coming back into the fold to work on a new J2EE project. A lot has changed since 2001, so I need to ask this very basic question.
I'm using syntax like this in my database class:
@Resource(name = "jdbc/MyDatabase")
private javax.sql.DataSource dataSource;
I understa...
What's up with JNDI names? I'm trying to get a javax.sql.DataSource using the new annotations feature of Java 5. It's not working for me, so I want to ask...
I have a in my web.xml, inside of it is an element. I'm switching between "jdbc/MyDB" and "MyDB". Neither makes my class-based DataSource work (it's always null) but in another e...
Hey, I'm getting this error:
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
Could not create connection to database server.
Attempted reconnect 3 times. Giving up.
I'm just trying to connect to the database. With this code
<%@page import="java.sql.*"%>
<%
try{
// Class.forName("com.mysql.jdbc.Driver");
C...
I am trying to make servlet.
I have installed tomcat6 on ubuntu with admin examples and docs. I am able to run the examples provided. But when i try to make my own servlet it doesnt work.
I did following steps
Under the ROOT i create folder with
-ROOT
----myapp
------WEB-INF
---------classes
I made two files one is index.html whi...
So I've been having issues with the MySQL Connector/J driver not correctly loading in a Java Web Start application that is running on Tomcat 6.0.20. I've copied the MySQL connector JAR file into the lib directory of Tomcat as well as the lib directory within webapps//WEB-INF. I also added a reference to the JAR file inside of the JNLP ...
I work on a folder and tomcat recognizes the folder. But, when I shutdown and restart tomcat it is taking time to recognize the same folder. Can anybody tell me why?
I see the error report in catalina.out. It gives a list of errors but finally says
Nov 22, 2009 2:08:58 PM org.apache.catalina.startup.Catalina start
INFO: Server startup i...
The RUNNING.txt that accompagne with tomcat distribution indicates the use of CATALINA_BASE variable to enable multiple tomcat instance. But how can i set the CATALINA_BASE environment variable for each tomcat instance directory.
Thank you.
...
I'm tryin to change the path of a deployed war file in Tomcat. Reading the documentation I can't figure out if this is possible without moving the context-file to the /conf directory.
Is it possible to deploy a war-file without having a external (outside the war) context file and set path to /something
Cheers!
Tomas
...
Hi,
I have seen many questions about the above topics but none that address this.
I am trying to use log4j to log to a custom file in $CATALINA_BASE/logs/ directory.
I configured the log4j.xml file and copied it into the $CATALINA_BASE/lib/ directory.
I use the following lines to create the logger -
PatternLayout layout = new Pattern...
Hi,
I am new to tomcat and servlets and am trying to deploy my first web application in tomcat and the index.jsp page is showing up blank.
It works fine in eclipse. I have the web.xml for the application setup to have the index.jsp as the default page. I am able to run the application and debug it in eclipse but when I export it as a W...
Hi,
I am trying to configure mod_jk to forward requests to my webapp running in tomcat. ( I read else where that mod_proxy_ajp is the way to go but want to get this figured out first). I am new to tomcat and mod_jk.
I try to access -- http://www.example.com/test/index.jsp
I get a 400 error in my apache logs after I configured mod_jk. ...
Hi,
I have set up tomcat to use a connection pool yet after the mysql timeout on connections the connections previously open in the pool are not opened.Here is what my context.xml file looks like:
<Resource name="jdbc/hpsgDB" auth="Container" type="javax.sql.DataSource"
maxActive="5" maxIdle="3" maxWait="10000"
u...
I can't find it, I have looked at:
/etc/tomcat6
cd ~tomcat6 -> /usr/share/tomcat6
Where can I find the tomcat.conf in Linux Ubuntu?
...
I have searched the net for good valid uptodate tutorials on installing tomcat6 to run cruisecontrol but I can't seem to find anything useful.
...