IndianWebPortal.com

Something Different In Linux

Home » Archive by category 'Tomcat'

WEB-INF directory structure

Posted by Rishikesh Vispute Categories: Tomcat

What is WEB-INF directory ? The WEB-INF directory is for your default Web application and is located under your home directory. You can also create other Web applications by creating subdirectories under your home directory and create a WEB-INF directory under it, or you can upload a war file in the home directory. The war  [ Read More ]

Basic tomcat configuration

Posted by Rishikesh Vispute Categories: Tomcat

What is Tomcat? Tomcat is Java driven Web Application Server which Provides support for Java web applications. ie. JSP technologies. -WAR (Web Application aRchive) files – Has a self-contained HTTP server CATALINA_HOME /usr/local/jakarta/tomcat CATALINA_BASE /usr/local/jakarta/tomcat JAVA_HOME ( The path to the JDK ) JAVA_HOME=/usr/local/jdk Logs : /usr/local/jakarta/tomcat/logs/catalina.out tail -f /usr/local/jakarta/tomcat/logs/catalina.out | egrep domain.com By default,  [ Read More ]

disable directory listing in tomcat

Posted by Rishikesh Vispute Categories: Email Marketing Series, How to, Tomcat

disable directory listing,Tomcat + cpanel,web.xml file,tomcat,cpanel,index.jsp

javax.naming.NameNotFoundException

Posted by Rishikesh Vispute Categories: Error and solution, Tomcat

Error: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context Solution : When I have access  site in browser then catalina.out logs show the above error and the database is not connected , I have tried all of the possibilities but  this issue is sorted  with following solution. I have moved the mysql-connector-java-*.jar file from  [ Read More ]

What is appbase and docbase

Posted by Rishikesh Vispute Categories: Tomcat

What is appbase and docbase ? Ans : appBase : The Application Base directory for this virtual host. This is the path-name of a directory that may contain web applications to be deployed on this virtual host. You may specify an absolute path name for this directory, or a path name that is relative to  [ Read More ]

Neither the JAVA_HOME nor the JRE_HOME environment variable is defined

access .jsp pages by using the temporay URL

Posted by Rishikesh Vispute Categories: cpanel, Tomcat

If  domain does not points to the server and you want to access .jsp pages by using the temporary URL (ex: http://domain.com/~username ) Solution: Add the following code in server.xml file under the virtual host entry for any domain. <Listener className=”org.apache.catalina.startup.UserConfig” directoryName=”public_html” homeBase=”/home” userClass=”org.apache.catalina.startup.HomesUserDatabase”/> For example : Web files would need to be in directories  [ Read More ]

How to install tomcat 6 on the linux server ? When you have installed tomcat by using Easy-Apache then  it installed Tomcat 5.5 and if you want to installed Tomcat 6.0 then you need to made some necessary changes on the server. 1) First install  Tomcat 5  by using Easy-Apache means java is also installed  [ Read More ]

start/stop tomcat in cpanel server

Posted by Rishikesh Vispute Categories: Email Marketing Series, How to, Tomcat

How to start/stop tomcat by using  ” /etc/init.d/tomcat” command. Ans : 1) Check  linux server  run level by using following command who -r If  runlevel is 3 then create the file vi /etc/rc.d/init.d/tomcat and add the following code ==================================== #!/bin/sh JAVA_HOME=/usr/local/jdk; export JAVA_HOME TOMCAT_HOME=/usr/local/jakarta/tomcat; export TOMCAT_HOME $TOMCAT_HOME/bin/catalina.sh $* ==================================== Save the file and then change  [ Read More ]

How to install JavaFX on Linux server

Posted by Rishikesh Vispute Categories: Installation, Tomcat

Installing the JavaFX SDK on Ubuntu Linux or OpenSolaris Access the URL http://java.sun.com/javafx/downloads/  and Download  JavaFX 1.2.3 SDK for Linux platformon your local machine And Upload by using ftp or file manager under the  /usr/local directory cd  /usr/local chmod a+x javafx_sdk-1_2-linux-i586.sh sh javafx_sdk-1_2-linux-i586.sh Then it ask the yes or no then enter the “yes” means  [ Read More ]

how to include file in jsp page

Posted by Rishikesh Vispute Categories: Tomcat

How to include file in the .jsp pages : <%@ include file=”footer.jsp” %>

mysql connection in jsp

Posted by Rishikesh Vispute Categories: Email Marketing Series, How to, mysql, Tomcat

Database Connection by using jsp page . The URL based mysql connection  is ================================= jdbc:mysql://serverip address/DATABASENAME?user=USERNAME&password=PASSWORD ================================= OR ================================= <!– Database connection settings –> <property name=”connection.driver_class”>com.mysql.jdbc.Driver</property> <property name=”connection.url”>jdbc:mysql://localhost/database_name</property> <property name=”connection.username”>databses_user</property> <property name=”connection.password”>password</property> <!– configuration pool via c3p0–> ================================= OR ================================= try { Class.forName(“com.mysql.jdbc.Driver”).newInstance(); // here we are connecting to localhost, port 3306. Change it to  [ Read More ]

Enable HTTPS on Tomcat

Posted by Rishikesh Vispute Categories: Tomcat

Enable HTTPS on Tomcat If you are looking to enable HTTPS in Tomcat first thing you will have to do is generating a server certificate for your website. A key tool command which comes with your JRE( Java Runtime Environment). Open a command shell which should know how to find your Java runtime environment properly.  [ Read More ]

How to check JSP and Tomcat version ?

Posted by Rishikesh Vispute Categories: Tomcat

How to check JSP and Tomcat version ? You can easily check the JSP version. You need to create test.jsp page under your account and add the following code into that file and access the test.jsp page by using browser ” http://domainname/test.jsp ” then it shows the tomcat version ,JSP version and servlet version. ==================  [ Read More ]

domain shows tomcat default page

Posted by Rishikesh Vispute Categories: Tomcat

Error : All domains shows the  tomcat default page Solution: The problem I get is that all requests now are being sent to tomcat. The two html/php apps show the tomcat default page (but when you click on the links they are dead links). The problem due the httpd.conf file. The mod_jk.so entry not present  [ Read More ]

Error : javax.servlet.ServletException: org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; Cannot create PoolableConnectionFactory (Unknown initial character set index ‘192’ received from server. Initial client character set can be forced via the ‘characterEncoding’ property.); nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Unknown initial character set index  [ Read More ]

Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...