Sambhashanam
तकनीकी संभाषणम्
Navigation
  • Microsoft Technologies
  • Java Technologies
  • LAMP Technologies
  • Opensource
    • Microsoft Opensource
    • LAMP Opensource
    • Java Opensource
You are here: Home › Java Technologies
Currently browsing category

Java Technologies

Merge multiple PDF files in one PDF file

June 5, 2016 | Filed under: Java Opensource, Java Technologies, Opensource, Random, Random Java, JEE Tips & Tricks & News

Hello Sambhashanam readers – I had written an article a long back Mail merge in java for Microsoft Word document and convert to PDF without iText – Part II. Some of you asked – how can I get a single merged PDF file out of many PDF output – and …

Install Nexus OSS – The popular maven repository manager and make local maven repository as managed

July 8, 2015 | Filed under: Java Opensource, Java Technologies, Opensource, Random

Download Nexus OSS [nexus-2.11.3-01-bundle.zip] from http://www.sonatype.org/nexus/thank-you-for-downloading/?dl=zip Extract the downloaded zip to directory of your choice – I extracted it to “C:\Development\Tools\nexus-2.11.3-01-bundle” The extracted directory should consists of two sub-directory nexus-2.11.3-01 sonatype-work Open a command prompt and move to C:\Development\Tools\nexus-2.11.3-01-bundle\nexus-2.11.3-01\bin and execute below command: nexus console   The nexus console should …

Java Transaction Service (JTS) – The Five Players

March 9, 2014 | Filed under: Java Technologies

The JTS specification defines five distinct players that take part in transaction processing: 1. Transaction Manager – provides services for transaction demarcation, resource management, synchronization and transaction context propagation. 2. Resource Manager – provides access to the transactional resources like database server or message queue. 3. Application Server or Transaction …

Spring, JPA and Hibernate integration tutorial

August 20, 2013 | Filed under: Java Opensource, Java Technologies, Opensource

I am going to setup a simple project using maven and run the one Junit test case using Spring, JPA and hibernate. Step 1: Create the maven project and create the pom.xml The pom.xml will look like below: <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>spring-jpa-hibernate-integration-by-sambhashanam</groupId> <artifactId>spring-jpa-hibernate-integration-by-sambhashanam</artifactId> <version>0.0.1-SNAPSHOT</version> <name>spring-jpa-hibernate-integration-by-sambhashanam</name> <description>spring-jpa-hibernate-integration-by-sambhashanam</description>   …

spring hibernate integration

Spring and Hibernate integration tutorial

August 1, 2013 | Filed under: Java Opensource, Java Technologies, Opensource

I am going to setup a simple project using maven and run the one Junit test case using Spring and hibernate. Step 1: Create the maven project and create the pom.xml The pom.xml will look like below: <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>spring-hibernate-integration-by-sambhashanam</groupId> <artifactId>spring-hibernate-integration-by-sambhashanam</artifactId> <version>0.0.1-SNAPSHOT</version> <name>spring-hibernate-integration-by-sambhashanam</name> <description>spring-hibernate-integration-by-sambhashanam</description>   <properties> …

JAX-WS web service on Tomcat

July 29, 2013 | Filed under: Java Opensource, Java Technologies, Opensource

Yesterday, one of my friend was struggling with developing a web service on tomcat. I promised him a sample web service code on tomcat and here it is! Step 1: Set up project 1.1. Create a dynamic web project in eclipse 1.2. Create a server run time and attach it …

Setup and run first sample process using activiti

July 28, 2013 | Filed under: Java Opensource, Java Technologies, Opensource

I was learning activiti from last couple of days. This weekend, I thought to give it a try. I developed a very simple workflow consisting of one Human Task and one Service Task to start with. The workflow looks like below: I wanted to setup and execute the sample using …

Caused by: java.lang.ClassNotFoundException: org.springframework.beans.factory.NoUniqueBeanDefinitionException

July 28, 2013 | Filed under: Java Opensource, Java Technologies, Opensource

If you are getting below exception, you have done a funny mistake 🙂 did not add spring beans in the dependency: java.lang.NoClassDefFoundError: org/springframework/beans/factory/NoUniqueBeanDefinitionException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.getDeclaredMethods(Unknown Source)java.lang.NoClassDefFoundError: org/springframework/beans/factory/NoUniqueBeanDefinitionException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.getDeclaredMethods(Unknown Source) Just add below dependency and you are done! …

Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.orm.hibernate.HibernateTransactionManager] for bean with name ‘transactionManager’ defined in URL ….; nested exception is java.lang.ClassNotFoundException: org.springframework.orm.hibernate.HibernateTransactionManager

July 28, 2013 | Filed under: Java Opensource, Java Technologies, Opensource

If you are getting exception like below: Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.orm.hibernate.HibernateTransactionManager] for bean with name ‘transactionManager’ defined in URL ….; nested exception is java.lang.ClassNotFoundException: org.springframework.orm.hibernate.HibernateTransactionManagerCaused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.orm.hibernate.HibernateTransactionManager] for bean with name ‘transactionManager’ defined in URL ….; nested exception is java.lang.ClassNotFoundException: org.springframework.orm.hibernate.HibernateTransactionManager Just add …

Test Spring Bean with Junit and loading bean definition xml

July 28, 2013 | Filed under: Java Opensource, Java Technologies, Opensource

While testing Spring beans we often need to load the spring bean configuration file and inject beans into Junit Test class. Below two annotations will come handy: @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration The usage of the annotations are shown in below example: /** *These two annotation will help you loan */ @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations={"/spring-config/beans.xml"}) …

Next Page →

Authors

  • Dhananjay Jha
  • Manish Kumar
  • Sushil Pandey

Recent Comments

  • muhammad on Mail merge in java for Microsoft Word document – Part I
  • muhammad on Mail merge in java for Microsoft Word document – Part I
  • Dhananjay Jha on Mail merge in java for Microsoft Word document and convert to PDF without iText – Part II
  • Clyde Symonette on Mail merge in java for Microsoft Word document and convert to PDF without iText – Part II
  • Dhananjay Kumar Jha on Mail merge in java for Microsoft Word document and convert to PDF without iText – Part II

Tag Cloud

.net activiti activiti-spring activiti bpmn C# change sender mail id in wordpress class classloader Conver MS Word to PDF disable user wordpress dox4j glassfish http response compression java Java Mail Merge MS Word javascript confirmation link on image jax-ws on tomcat jax-ws webservice Jee JTS junit junit-spring Link on Image with hidden URL link load spring configuration load spring configuration xml junit maven maven build Merge MS Word using Java Merge Word Document using XdocReport OOPS oracle weblogic PDF conversion using docx4j php mail function sample activiti process with human task and service task sending mail with attachment spring-orm spring framework spring hibernate spring hibernate integration spring jpa spring jpa hibernate integration tomcat jax-ws web service wordpress wordpress sender email

Looking for old post?

© 2021 Sambhashanam