Spring 2.5 in an EJB container

I would like to use a spring framework in an EJB3 project. In detail, I would like to use a JDBC templating class that should be generated from a given datasource. When I put spring.jar in my personal Jboss lib directory everything works fine. But when I put the JAR in my EAR, there are only external dependencies on the JDbcTemplate before other libraries. EARs / EJBs classloader tries to instantiate the JdbcTemplate and shows that it cannot load the class due to external dependencies. It doesn't show me what additional JARs I have to contribute.

Question. Does anyone know what additional JARs I should include, or even how I can search for dependent JARs with an external tool. I remember there is a tool that can do this, but I don't know its name anymore. I think something like jarjar etc.

Can anyone please help? Thanks.

0


a source to share


1 answer


It smells like an EAR configuration problem, not a Spring problem. Are you sure the jar is in the EJB class path? You can check the MANIFEST.MF file in the EJB to check this.



+1


a source







All Articles