IceFaces 1.8.2 + Spring 3.0.4.RELEASE + Hibernate 3.3.4.GA

This maven2 archetype contains a little sample web application with this Frameworks:

  • Spring 3.0.4.RELEASE Framework
  • Servlet-API 2.5
  • MyFaces-Core 1.2.8
  • IceFaces 1.8.2
  • Facelets 1.11
  • ploinFaces 1.4.6
  • ploinMailFactory 1.3.1
  • Hibernate 3.3.4.GA
  • TestNG 5.8
  • Log4J 1.2.15

The configuration is xml-driven. It is deployed on the PLOIN Repository-Server

you can create a project from the archetype with the following command:

mvn  archetype:generate -DarchetypeGroupId=org.ploin.archetype  -DarchetypeArtifactId=tempSpringIceHibernate -DarchetypeVersion=1.1.1  -DarchetypeRepository=  -DgroupId=org.ploin -DartifactId=demoSpringIceHibernate

The created project is a very simple web-application with a login mask and three xhtml-sites. I have tested the app on a tomcat 6.0.20 and Java 1.6 on Mac OS X Snow Leopard.

You can login with the username “admin” and the password “admin”.

After the creation the app is running with the HypersoniceSQL DBMS. But it is very easy to switch to MySQL or Oracle. I put the drivers for MySQL and Oracle as a comment in the pom.xml. So you just need to comment int the right lines in the pom.xml.

Published by Robert Reiz

CEO @ VersionEye. Passionated software developer since 1998.

12 thoughts on “IceFaces 1.8.2 + Spring 3.0.4.RELEASE + Hibernate 3.3.4.GA

  1. [INFO] [resources:resources {execution: default-resources}]
    [WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent!
    [INFO] Copying 11 resources
    [INFO] [compiler:compile {execution: default-compile}]
    [INFO] Compiling 10 source files to /Users/Gabo/Downloads/demoSpringIce1.8Hibernate/target/classes
    [INFO] ————————————————————————
    [INFO] ————————————————————————
    [INFO] Compilation failure
    Failure executing javac, but could not parse the error:
    javac: invalid target release: 1.6

  2. You need Java 1.6 to compile and package it. Java 1.6 should be your standard jvm! If you are working with MacOsX ord Linux or Unix try this:

    echo $JAVA_HOME

    it should be linked to your java 1.6 installation.

  3. > echo $JAVA_HOME

    java -version
    java version “1.6.0_22”
    Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-9M3263)
    Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)

    javac -version
    javac 1.6.0_22

    is that correct?

  4. mvn -version
    Apache Maven 2.2.1 (r801777; 2009-08-06 14:16:01-0500)
    Java version: 1.5.0_26
    Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
    Default locale: es_ES, platform encoding: MacRoman
    OS name: “mac os x” version: “10.5.8” arch: “i386” Family: “unix”

  5. Your Maven2 installation looks not good. You should have this line in your /etc/profile

    export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home

    and after you added this line, you should start a new Shell/Terminal/Bash. It is very important that your Maven2 installation is running with Java 1.6.

  6. nice 🙂
    but now

    HTTP 503 Service Unavailable
    tomcat 6.0.29 & OSX 10.5.8

    you know why?
    no compile javax.annotation.ManagedBean

    Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file (javax.annotation.ManagedBean)

    Error:Error:line (3)cannot access javax.annotation.ManagedBean
    bad class file: /META-INF/javax.annotation.jar(javax/annotation/ManagedBean.class)
    class file has wrong version 50.0, should be 49.0

  7. Yes. It look like you have compiled / build your project with Java 1.6 but you want to execute it with java 1.5. Ensure that your tomcat is running with java 1.6.

  8. can you provide any small n simple application to learn which is having IceFaces + Spring + Hibernate please


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: