[jboss-user] [JBoss/Spring Integration] - jboss-spring.xml in ear?

apaeth do-not-reply at jboss.com
Thu Oct 5 12:45:40 EDT 2006


I have a very simple EJB test application that I've been working on that uses spring.  I have been able to get spring working inside of jboss by simply placing the jboss-spring.xml inside the deploy directory.  However, I have had no luck getting it to work in an ear file.  My current ear,jar, and application.xml are as follows:

sc.ear

  |     /META-INF
  |         application.xml
  |     sc_common.jar
  |     sc_ejb.jar
  | 

sc_ejb.jar
    /META-INF
  |         jboss.xml
  |         ejbjar.xml
  |         jbosscmp-jdbc.xml
  |     _classes are here_

application.xml

  | <!DOCTYPE application PUBLIC
  |    "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
  |    "http://java.sun.com/dtd/application_1_3.dtd">
  | 
  | <application>
  |    <display-name>Bundled Jars</display-name>
  |     <module>
  |         <ejb>sc_ejb.jar</ejb>
  |     </module>
  |     <module>
  |         <ejb>sc_common.jar</ejb>
  |     </module>
  | </application>
  | 

I've tried placing the jboss-spring.xml in the following locations:
sc.ear/
       sc.ear/META-INF/
       sc.ear/sc_ejb/
       sc.ear/sc_ejb/META-INF


no luck with any of these.  The spring deployer never seems to see the jboss-spring.xml file.

I'm curently using the 1.3 deployer (JDK 5 version), JDK 1.5, Spring 1.2 (soon to be 2.x), Jboss 4.0.3RC1

Any help would be greatly appreciated.
Thanks,
Adam

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

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



More information about the jboss-user mailing list