Guillaume Lederrey wrote:

First of all, I really need to thank all the developpement team ! I
just began using the Bpm4Struts and Spring cartridge, it is amazing !
There are a lot of great ideas in those cartridges, and best of all,
now my project looks much "cleaner", easier to understand (and
probably maintain as well). So, great job, keep going !


Thanks! We will! :)

Of course, I still have a few problems ... I try to run my app on
Tomcat, but I get an error (reported below). The Spring HowTo talks
about disabling the session-ejb in mda/project.xml to do that, but
there is no such line ... I find a reference to an hibernate session
in "core/target/src/applicationContext.xml" :


"The Spring HowTo talks about disabling the session-ejb in mda/project.xml to do that, but there is no such line"

There should be a <session-ejbs></session-ejbs> property in your andromda-spring-cartridge dependency, if you comment that out then the cartridge will no longer generate the Session EJB wrappers, if you can't find that line, send me your mda/project.xml and I'll have a look.

<!-- Hibernate SessionFactory -->
   <bean id="sessionFactory"
class="org.springframework.orm.hibernate.LocalSessionFactoryBean">
       <property name="dataSource"><ref bean="dataSource"/></property>
[...]

 I agree, my description of the problem is not very precise, but it's
the first time I'm using Spring and EJB, ... I'll be happy to provide
more informations or to go ask my questions on to the Spring team if
you tell me so ...

 Thanks a lot !

   Guillaume Lederrey





type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: No SessionFactory specified
        
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:516)
        
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:423)
        
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
        
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:261)
        
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
        
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:316)
        
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        
org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)

root cause

java.lang.IllegalArgumentException: No SessionFactory specified
        org.springframework.util.Assert.notNull(Assert.java:91)
        
org.springframework.orm.hibernate.SessionFactoryUtils.getSession(SessionFactoryUtils.java:286)
        
org.springframework.orm.hibernate.SessionFactoryUtils.getSession(SessionFactoryUtils.java:196)
        
org.springframework.orm.hibernate.support.HibernateDaoSupport.getSession(HibernateDaoSupport.java:179)
        
ch.tecost.test.testproject.dao.UserDaoBase.getAllUsers(UserDaoBase.java:250)
        
ch.tecost.test.testproject.dao.UserDaoBase.getAllUsers(UserDaoBase.java:240)
        
ch.tecost.test.testproject.editUser.EditUserControllerImpl.loadUserList(EditUserControllerImpl.java:30)
        
ch.tecost.test.testproject.editUser.EditUsers._promptUserWithAListOfUsers(EditUsers.java:70)
        ch.tecost.test.testproject.editUser.EditUsers.execute(EditUsers.java:23)
        
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
        
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:261)
        
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
        
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:316)
        
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        
org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)


------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_ids93&alloc_id281&op=click _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user






------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to