Internals of Java Virtual Machine

The purpose of the JVM is to load .class files and execute those .class files. Lets say you have a A.java source file. You can compile A.java  with javac utility provided by JDK/JRE. Now you get A.class (may be multiple .class files depending on your A.java inclusions). A.class is a bytecode...
Share:

Spring MVC - DispatcherServlet configuration needs to include a HandlerAdapter that supports this handler

This is full exception thrown from the server. javax.servlet.ServletException: No adapter for handler [Class name] The DispatcherServlet configuration needs to include a HandlerAdapter  that supports this handler Problem Overview This is took me a while to figure this out...
Share:

JSP FAQs

What is a JSP ? JavaServer Pages (JSP) is a technology that helps software developers create dynamically generated web pages based onHTML, XML, or other document types. Basically it is html file with JAVA logic inside it with the extension of .jsp .jsp  files (html + java code) = .php (html + php code) = .xhtml in .net (html + C# code or razor syntax) How JAVA logic is inserted inside...
Share:

Java Servlets FAQs

What is a servlet ? Simply it means something that can extend a servers functionality. (for example a servlet can be used to process DB queries or client request processing ) So servelts run in a server just like PHP and ASP.net and normally serverlets are deployed in a web container. So there...
Share:

Build with Gradle

Recently one of my friends asked me to explain what a build tool is and what is Gradle. So I thought of explaining it here and go much as further as I can go smoothly and neatly. What is a software build ? You write code for an application. Those are the source codes. Lets say its an android...
Share:

Creating a Java based RESTful web service (JAX-RS)

Here we will build a Java based RESTfull web service using Jersey. What is Jersey ? Jersey is an open source framework that we can use to build RESTful web services. And furthermore it is based on standard JAX-RS framework. So we can use just the standard JAX-RS provided by JDK also. But developing...
Share:

How to consume a local SOAP web service (JAX-WS) - Implementation

Lets continue with our example from here and keep things simple and tidy. Lets say we have a server(A local server for now. ie. localhost). It has a service to add any two numbers. So you have a client who wants to consume that ws. Meaning he frigging needs to add two numbers. Server side...
Share:

Jboss hanging up in the startup ???

If you are working with Jboss 7.x and it hanging up in the startup, have no worries. You have a solution. Reason for this is Jboss 7.x doesn't work with JDK 8. Yeah its true. I normally work on linux and I have faced the same issue in Jboss 7.0 and 7.1.1 final. Its a normal problem for windows...
Share: