Articles in the Tomcat in linux Category

Linkage error in tomcat 6 with sun-e-ri

Solution for linkage error in tomcat 6 with sun-e-ri ,you can’t use sun-e-ri,coz eri.api already exits tomcat lib.remove sun-e-ri from WEB-INF/lib.issue will get fix.

Install Apache and Tomcat in linux

1. must have the base packages installed on your system, these include: httpd, httpd-devel, php, php-common, php-devel. must have the base packages installed on your system, these include: httpd, httpd-devel, php, php-common, php-devel. and their respective units, this will use the “yum” that comes with CentOS (RedHat Enterprise) and their …

Connecting Mysql in tomcat server in linux

You can connect to mysql in tomcat
- Setup mysql
Download Mysql click here
-download mysql connector(driver) and add file .jar to your project
Click here to download jconnector

-run mysql create datasource
Example for connecting the mysql in tomcat jsp
public static Connection getConnection(){
try{
Connection conn DriverManager.getConnection(“jdbc:mysql://127.0.0.1/lamtung?user root&password password”);
return conn;
}
catch(SQLException se)
{
se.printStackTrace();
return null;
}
}

Installing Tomcat in ubuntu

Here are the Steps to install Tomcat in ubuntu

Before installing you need to check
java is available are not
if not available then install
sudo apt-get install sun-java-jdk6
then you can install tomcat
sudo apt-get install tomcat6 tomcat6-admin tomcat6-webapps
Before starting the server, the default port the installer set is 8180 instead of the 8080 port …