Category Archives: Web Development

Access Tomcat Server URL from Smartphone/Mobile/Tablet

Access Tomcat Server URL from Smartphone/Mobile/Tablet

Access Tomcat Server URL from Smartphone/Mobile/Tablet

Access Tomcat Server URL from Smartphone/Mobile/Tablet

One Line Answer : Disable the System Firewall  I was developing a small web application in my Laptop using Spring MVC and was testing the application in Laptop browser. In one case, I wanted to see the web page in mobile and so I opened the URL in Android smartphone. But the page was not reachable due to the… Read More »

Spring Boot – Use External/Local Tomcat instead of Embedded/In-built Tomcat server

Spring Boot - Use External/Local Tomcat instead of Embedded/In-built Tomcat server

Spring Boot – Use External/Local Tomcat instead of Embedded/In-built Tomcat server

Spring Boot - Use External/Local Tomcat instead of Embedded/In-built Tomcat server

Default pom.xml with exclusions tag to exclude embedded TOMCAT server: <?xml version=”1.0″ encoding=”UTF-8″?> <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <groupId>org.test</groupId> <artifactId>demo</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>demo</name> <description>Demo project for Spring Boot</description> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.2.1.RELEASE</version> <relativePath/> <!– lookup parent from repository –> </parent> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <start-class>demo.DemoApplication</start-class> <java.version>1.7</java.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </exclusion>… Read More »

Access Local Files or Static Content (Images, Videos, Media or any other files outside of the Web Application(WAR)) in the System using APACHE TOMCAT Server

Access Local Files or Static Content (Images, Videos, Media or any other files outside of the Web Application(WAR)) in the System using APACHE TOMCAT Server

This article details on how to access local directory files(IMAGES, VIDEOS or any other files) from the web application when using APACHE TOMCAT SERVER. Note that this configuration we implement is independent of the web application that we are using. STEPS TO FOLLOW Go to TOMCAT directory Go to  TOMCAT_DIRECTORY/conf/server.xml Add the following content in… Read More »

“Active Record::Connection Not Established” Error in Ruby on Rails (ROR) when Connecting to MYSQL Server – Solution

"ActiveRecord::ConnectionNotEstablished" Error in Ruby on Rails (ROR) when Connecting to MYSQL Server

“Active Record::Connection Not Established” Error in Ruby on Rails (ROR) when Connecting to MYSQL Server – Solution

"ActiveRecord::ConnectionNotEstablished" Error in Ruby on Rails (ROR) when Connecting to MYSQL Server

      I got this error “ActiveRecord::ConnectionNotEstablished” while using Ruby on Rails with MYSQL initially. The error means that the Rails framework is not able to connect to MYSQL server. The problem is that the root(MYSQL) user was not able to connect to MYSQL through Rails. So to solve this issue, login as root in… Read More »