How to Fix : java.security.cert.CertificateException: No name matching localhost found

How to Fix the exception ” java.security.cert.CertificateException: No name matching localhost found”, when client uses URL with “localhost” as host name to access some secure service over HTTPS? In this article we will check the root cause of the issue and will try two different solutions two fix the same. There are other similar issues… Read More »

Logging or Tracing Web Service XML Request/Response with JAX-WS

How to Log Request and Response With Java JAX-WS web-service Server and Client? We have discussed many examples to develop secure web services with JAX-WS API and using the Metro web service stack. We also discussed how to enable Message Transmission Optimization Mechanism (MTOM) to optimize the data transfer between services and clients. In our… Read More »

Secure Metro JAX-WS UsernameToken Web Service with Signature, Encryption and TLS (SSL)

Java Web Services Security: How to Secure JAX-WS UsernameToken Web Service with Signature, Encryption and TLS (SSL) Securing the data exchanged between web service producers and consumers is essential to ensure confidentiality, authenticity and integrity of critical business data. There are many approaches to implement Web Service Security (WSS) popularly called as WS-Security. WS-Security is… Read More »

JAX-WS Secure Web Services with Signatures and Encryption: WS-Security with Metro and WSIT

Java Web Services: Create Secure JAX-WS Metro Web Service Signed and Encrypted Using Public-Key Cryptography Asymmetric Encryption Security is the primary concern when web services exchange critical business data. WS-Security is an is an extension to SOAP to apply security to web services. It is one of the main part of WS-* specification from OASIS.… Read More »

JAX-WS and Secure Java Web Services using UsernameToken : WS-Security with Metro and WSIT

JAX-WS and Secure Java Web Services using UsernameToken: WS-Security with Metro and WSIT Example This tutorial focuses on creating secure JAX-WS web service with UsernameToken WS-Security profile by using Metro and WSIT. You will learn how to create , deploy and run JAX-WS UsernameToken web service security example and UsernameToken jax-ws client. We will also… Read More »

JAX-WS Attachment – Enable MTOM for JAX-WS Web services

JAX-WS with Attachment – MTOM , XOP and Java Web Service Example using JAX-WS In this MTOM JAX-WS tutorial, we discuss how to use MTOM (Message Transmission Optimization Mechanism) with JAX-WS Web Services. We also discuss the advantage of using MTOM with web services and how MTOM works with XOP and how the MIME attachments… Read More »

SOAP Binding: Difference between Document and RPC Style Web Services

A Tutorial on RPC Vs Document Style WSDL SOAP binding with Example Table of Contents Basics: Document Style Vs RPC Style What is SOAP Encoding and Literal? Learn by doing: Document Vs RPC Web Services and Artifacts Examples (WSDL,Schema, SEI). RPC /LITERAL SOAP Binding Example Web Service Notes on RPC –ENCODED Style and JAX-WS Document/Literal… Read More »

Java JAX-WS Tutorial: Develop Web Services and Clients (Consumers) Using JAX-WS

Java JAX-WS Tutorial to Develop your First Web Service Using JAX-WS API, Eclipse, wsimport and wsgen Tools without using JEE Containers. This article gives an introduction and quick start guide on JAX-WS, the Java API for XML Web Services. This tutorial explains about how to create the Service Endpoint Interface, implementation classes, usage of annotations… Read More »

JSF Page Forward vs. Page Redirect: URL Doesn’t Refresh and Is One Step Behind

The Problem: URL Doesn’t Refresh. URL Always One Step Behind You are working with a JSF application and seeing the URL that appears in the browser’s navigation bar is always the page you just left, rather than the page currently you are on. In other words the browser doesn’t actually refresh or reflect the actual… Read More »

Eclipse IDE Error : Access restriction: The type Provider is not accessible due to restriction on required library

This is a common error occurs when you use any deprecated library in Eclipse IDE project settings.The reason behind this error can be, Classpath conflict. Using old versions of jre/libs Forbidden reference – Deprecated and restricted API Try to configure the latest jars possible to avoid deprecated libs. Resolve the classpath conflict by checking duplicate… Read More »