Required JAR Files For Struts-Hibernate-Spring integrated application

4 comments



In most of the web applications developed today, integrating one or more frameworks is a quite common thing but sometimes it becomes very difficult to identity the actual jar files that are required to build the complete web application. In this article i will talk about the jars required in Struts-Hibernate-Spring integrated application.

JAR(Java Archive) files are Java’s version of ZIP file, JAR uses zip file format.

It contains a number of compressed source files, which we can use in our program for reusable functionality.

For Struts, Hibernate and Spring program to run, we need to have certain Jar files in the “lib” folder of the project Directory.

JAR Files Required For Struts 1.2Following JAR files must be present in the application, to use the common Struts feature.
antlr.jar
commons-beanutils.jar
commons-digester.jar
commons-logging.jar
commons-validator.jar
jakarta-oro.jar
commons-fileupload-1.0.jar

JAR Files Required For Hibernate 3

Following JAR files need to be present in the application, to use the basic Hibernate feature.

For Hibernate Core:
hibernate3.jar
JAR Files Required For Spring Frame work 2.0

Add following JAR files to the application, to use the basic Spring feature.
antlr-2.7.6.jar
asm-2.2.2.jar
asm-commons-2.2.2.jar
asm-util-2.2.2.jar
aspectjrt.jar
cglib-nodep-2.1_3.jar
commons-beanutils.jar
commons-collections.jar
commons-lang.jar
commons-logging.jar
dom4j-1.6.1.jar
ehcache-1.2.3.jar
hibernate3.jar
hibernate-annotations.jar
hibernate-entitymanager.jar
hsqldb.jar
jta.jar
log4j-1.2.14.jar
persistence.jar
spring.jar
spring-mock.jar
standard.jar
jstl.jar

4 comments:

Anonymous said...

Hi Jyoti,

You are absolutely right that integrating frameworks is a very common thing but I would still like to avoid the pain of keeping a list of jar files and download them various sources.

There are ways to solve your dependency management
automatically. You can use Maven or if you building your project with Ant (most common) then you can integrate with Apache Ivy. Or you can also use Apache Buildr to build your application and manage the dependencies.

Jyoti said...

Manish, i totally agree with you on this but jar list is also required at the start of the development phase for initial setups or for doing some kind of POC's. Once that is done and Maven or Ant is setup there is no need to keep the list of jar files.

Anonymous said...

hi,

This jar files are saved in which directory

Arun Khurana said...

You can put them in shared lib or can also bundle them with the war project.

Post a Comment

Recent Posts

Popular Posts

© 2011-2019 Web Portal Club