-
1. Re: Struts spring hibenate in jboss without jboss-deployer
alesj Apr 6, 2007 8:29 AM (in response to sriram4java1)SpringDeployer is optional.
-
2. Re: Struts spring hibenate in jboss without jboss-deployer
sriram4java1 Apr 9, 2007 1:00 AM (in response to sriram4java1)hi,
I packed all the three (struts - spring-hibernate) into .WAR file.
is it ok? -
3. Re: Struts spring hibenate in jboss without jboss-deployer
alesj Apr 9, 2007 3:48 AM (in response to sriram4java1)Will do.
Perhaps apply debug level to trace, and see what the problem might be. -
4. Re: Struts spring hibenate in jboss without jboss-deployer
sriram4java1 Apr 9, 2007 4:56 AM (in response to sriram4java1)
Maruti.ear
dao.har
<my class file>
map
<all hibernate mapping files>
META-INF
hibernate-service.xml
maruti.war
WEB-INF
lib
classes
applicationContext.xml
applicationContext-hibernate.xml
applicationContext-service.xml
<all jsp files>
META-INF
application.xml
jboss-app.xml
in applicationContext.xml
java:/hibernate/SessionFactory
in applicationContext-hibernate.xml
while deploying this app ,my hibernate is getting deployed first & when deploying spring part its throwing
java.lang.ClassNotFoundException: eLog.eTrack.dao.impl.BaseDAOHibernate -
5. Re: Struts spring hibenate in jboss without jboss-deployer
sriram4java1 Apr 9, 2007 5:01 AM (in response to sriram4java1)"sriram4java@gmail.com" wrote:
<pre>
Maruti.ear
dao.har
<my class file>
map
<all hibernate mapping files>
META-INF
hibernate-service.xml
maruti.war
WEB-INF
lib
classes
applicationContext.xml
applicationContext-hibernate.xml
applicationContext-service.xml
<all jsp files>
META-INF
application.xml
jboss-app.xml
</pre>
in applicationContext.xml<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName"><value>java:/hibernate/SessionFactory</value></property> </bean>
in applicationContext-hibernate.xml<bean id="dao" class="eLog.eTrack.dao.impl.BaseDAOHibernate"> <property name="sessionFactory" ref="sessionFactory"/> </bean>
while deploying this app ,my hibernate is getting deployed first & when deploying spring part its throwing
java.lang.ClassNotFoundException: eLog.eTrack.dao.impl.BaseDAOHibernate -
6. Re: Struts spring hibenate in jboss without jboss-deployer
alesj Apr 9, 2007 5:38 AM (in response to sriram4java1)Where is eLog.eTrack.dao.impl.BaseDAOHibernate?
In .har? -
7. Re: Struts spring hibenate in jboss without jboss-deployer
sriram4java1 Apr 9, 2007 5:50 AM (in response to sriram4java1)
Maruti.ear
dao.har
eLog
eTrack
dao
impl
BaseDAOHibernate.class
map
<all hibernate mapping files>
META-INF
hibernate-service.xml
META-INF
application.xml
jboss-app.xml -
8. Re: Struts spring hibenate in jboss without jboss-deployer
alesj Apr 9, 2007 6:06 AM (in response to sriram4java1)Read about JBoss classloading:
- http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases
.war has different CL handling than other .jars in .ear. -
9. Re: Struts spring hibenate in jboss without jboss-deployer
sriram4java1 Apr 9, 2007 8:24 AM (in response to sriram4java1)Hi,
i added the following jboss-web.xml to the WEB-INF folder<jboss-web> <class-loading> <loader-repository> com.example:loader=marutiDAO.har </loader-repository> </class-loading> </jboss-web>
i added the following jboss-app.xml to the META-INF folder (ear)<jboss-app> <loader-repository> com.example:loader=marutiDAO.har </loader-repository> <module> <har>marutiDAO.har</har> </module> </jboss-app>
but still i am getting the same error -
10. Re: Struts spring hibenate in jboss without jboss-deployer
alesj Apr 9, 2007 1:51 PM (in response to sriram4java1)Try without .har.
Or btw, why do you need .har? -
11. Re: Struts spring hibenate in jboss without jboss-deployer
sriram4java1 Apr 10, 2007 1:03 AM (in response to sriram4java1)hi,
i already tried with .WAR.
Iam planning to use springdeployer.