2 Replies Latest reply on May 5, 2009 11:06 AM by leechaolan

    Whats the difference in Jboss version 4 and 5?

      Hi, i will want to check whats the difference between version 4 and 5?

      My web application is able to deploy and run in jboss version 4, but when i bring my file to jboss 5, it is not able to find the spring lib which i have place in the /WEB-INF/lib.

      What are the changes to the architecture of the jboss version 5?

      Thanks

        • 1. Re: Whats the difference in Jboss version 4 and 5?
          jaikiran

          There have been a lot of changes to the deployment framework in AS5. Please post more details about the issue that you are running into, including the exact version of the AS and the version of Java and also your application packaging. Please post the relevant exception stacktrace too.

          While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.

          • 2. Re: Whats the difference in Jboss version 4 and 5?

            Thanks fot the reply.

            Version:
            I'm able to deploy my application successfully in 4.2.2 but not in 5.0.0.GA

            Framework using in applicaton:
            Hibernate 3, Spring 1.6

            Application Packaging:
            I'm not compressing my application into a .war or .ear file. I using the expose file structure by naming the directory with .war eg: xxx.war or webby.war

            Java Version
            My version of Java is 1.5

            I place my application into the default directory. I have also notice that the lib directory in the default folder are empty which is different from jboss 4.

            This is my xml snippet for loading the database datasource with the spring framework:

            <bean id="homeFactory"
             class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
            
             <property name="mappingResources">
             <list>
             <value>users.hbm</value>
            
             </list>
             </property>
             <property name="hibernateProperties">
             <props>
            
             <prop key="hibernate.dialect">
             org.hibernate.dialect.MySQLDialect</prop>
             <prop key="hibernate.show_sql">false</prop>
             <prop key="hibernate.format_sql">true</prop>
             <prop key="hibernate.cglib.use_reflection_optimizer">
             false</prop>
             <prop key="hibernate.max_fetch_depth">4</prop>
             <prop key="hibernate.generate_statistics">true</prop>
             <prop key="hibernate.use_sql_comments">false</prop>
             </props>
             </property>
             </bean>


            This is the error it print put:

            org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'homeFactory' defined in ServletContext resource [/WEB-INF/demandeContexte-db.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError
            java.lang.NoClassDefFoundError
             at org.hibernate.tuple.EntityMetamodel.class$(EntityMetamodel.java:41)
             at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:122)
             at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412)
             at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108)
             at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
             at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:215)
             at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
             at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:822)
             at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:748)
             at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1099)
             at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:400)
             at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:234)
             at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:144)
             at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)
             at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:321)
             at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
             at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252)
             at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)
             at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
             at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
             at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
             at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
             at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
             at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)


            Caused by: java.lang.ClassNotFoundException: net.sf.cglib.transform.impl.InterceptFieldEnabled from BaseClassLoader@1bb3e34{VFSClassLoaderPolicy@1f0efca{name=vfsfile:


            I have already place the spring jar file int my application directory. Its not working. Whats is the reason that cause this and what must i do to solve this issue?

            Thanks