Skip to main content

Posts

Showing posts with the label Apache

HTTP2 Server Push in Apache2

Server Push is one of the most significant features in the HTTP/2 protocol. In this post, We will see a very simple demo of the Server Push feature using HTTP/2. Below is the list of tools and tech used in the demo. Ubuntu 16.04 Chrome 60.0.3112.101 Apache2 Some browsers require TLS 1.2 to support HTTP/2. So We need to configure https on Apache server. Try to open the URL https://localhost in your browser. If the above URL not responding, It means you need to configure HTTPS on your Apache server. Please refer to the digital ocean page. https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-14-04 I hope the URL https://localhost is working now and We can proceed further. We will do it into 2 parts. Part-I: We will just enable the HTTP/2 protocol Part-II: We will configure server push feature Part-I: Enable HTTP/2 First, check the below points. Make sure you have the http2 module in your apache. Naviga...

Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException

Error in Spring If you are trying to run a sample spring application first time you may face some problem.After ruuning your application If you get following error Jul 09, 2015 10:37:28 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [applicationContext.xml] Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 7; The processing instruction target matching "[xX][mM][lL]" is not allowed. at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.beans.fa...

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

Error in Spring If you are trying to run a sample spring application first time you may face some problem.After ruuning your application If compiler give you the following error Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.<init>(DefaultSingletonBeanRegistry.java:81) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.<init>(FactoryBeanRegistrySupport.java:43) at org.springframework.beans.factory.support.AbstractBeanFactory.<init>(AbstractBeanFactory.java:176) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:159) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:170) at org.springframework.beans.factory.support.DefaultListableBeanFact...