[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Whats the difference in Jboss version 4 and 5?

vitalstrike83 do-not-reply at jboss.com
Tue May 5 11:06:17 EDT 2009


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 at 1bb3e34{VFSClassLoaderPolicy at 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

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228692#4228692

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228692



More information about the jboss-user mailing list