Fix JSP compilation error in WildFly 8 using Java 8

My current project run on WildFly 8 using Java 7. I was assigned the task of migrating the existing project to work on Java 8. So my first target was to install Java 8. After installing Java 8 my next target was to deploy my project in WildFly 8 and start the server. Everything went fine until i got stuck at JSP compilation error. In this article we would learn how we can fix the JSP compilation error in WildFly 8 using Java 8.
Continue reading

Switch between Java version on Ubuntu

My current project runs on Java 7 and I wanted to test the same project in Java 8. My first step was to install Java 8 on my Ubuntu system. After installing Java 8 now it’s time to test my application. All went successful and now I have to switch back to Java 7 since my current development environment uses Java 7. I was stuck when searching on google on how to switch back to Java 7. In this article we would learn how we can switch over multiple Java version on Ubuntu systems.
Continue reading

Avoid Struts2 warning in log4j

Logs are an important asset for any web/console based application. It helps use to debug how the application is behaving during development or production systems. Apache Log4J is one of the most widely used logging framework for Java based applications.

Well above was some introduction to logs and Apache Log4J. Now let’s go to the mood point, Strut2 is an widely used MVC for Java based web applications. In general configuration of Struts2 is pretty straight forward. However when we see the logs we see lot of exceptions from Struts2 which are just an warning. But because of this warnings we might miss the actual exception. In this article we would learn how we can disable the warning logs from Struts2.
Continue reading

Java – Check whether Date is in DayLight Saving Time

I am using TimeZoneJS to compute the timezone date in JavaScript. But there is a limitation in TimeZoneJS to provide an interface to check whether the date provided is in DayLight Saving Time(DST). To check whether date in particular timezone is DST we had to perform server side computation in Java. In this article we would learn how we can check whether particular date is in DST.
Continue reading

Unable to access Yahoo from Cisco Linksys Wi-Fi Router – SOLVED

Recently i have switched to Cisco Linksys E900 for my broadband connection. After configuring the router, my internet connection started working fine on Windows 7 and Samsung Galaxy smartphone. I thought that router has been configured properly, but i was wrong. There may be multiple reason for not working but i am putting one solution that might fixed the problem.
Continue reading

Delete a file in Windows with long filename

I was trying to build an project and somehow i imported the Apache Hadoop folder. The folder had the class file which was having very big name and it was inside lot of nested folder. I was unable to delete that file on my Windows System as it was constantly throwing error that “Cannot delete file: filename too long“. I had to delete that file to remove un-necessary baggage on my project. After searching on internet i found the way to delete these files. In this article we would understand how we can delete long filename from Windows systems.
Continue reading