[jboss-user] [JBoss/Spring Integration] - Re: help on jboss spring integration

2008-11-18 Thread alesj
mattlf wrote : Maybe there should not be a dot in the version number 
MYPROJECT-JAR-1.0.spring ?
  | 
I doubt that dot is the cause.

How does your application.xml look like?
Perhaps you need to declare .spring jar as apps module:
(pseudo code, as it's been a while since I've done some real .ear)

  | app
  |module
  |   jarMYPROJECT-JAR-1.0.spring/jar
  |/module
  | /app
  | 

And you don't need to package spring jar with your app,
it's already part of SpringDeployer.

btw: try testing SpringDeployer, by deploying simple jboss-spring.xml 
directly into deploy directory.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4190020#4190020

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4190020
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss/Spring Integration] - Re: help on jboss spring integration

2008-11-17 Thread alesj
mattlf wrote : 
  | How to get the EAR to package the .spring ?
  | 
Unfortunately I'm not a Maven expert. :-(

Try asking this on maven forum.
Or perhaps our 'Build system' forum.

But I would expect it's a simple config detail you need to setup.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4189768#4189768

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4189768
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss/Spring Integration] - Re: help on jboss spring integration

2008-11-17 Thread mattlf
Hi Ales

Thanks again for your response

I feel I am close

The maven2 config is the following:

Add 

 
  | artifacttypemappings
  | artifacttypemapping type=spring mapping=jar/
  | /artifacttypemappings
  | 

to configuration in pom of EAR

I now see the following when copying the ear into deploy. But I still don't see 
the Spring JMX that i declared in the jmx console. So the spring context is not 
bootstraped

2008-11-17 13:59:48,372 15543 DEBUG [org.jboss.deployment.MainDeployer] (main:) 
Copying 
file:/home/mattlf/jboss-4.2.2.GA/server/messaging/deployMYPROJECT-EAR-1.0.ear 
- 
/home/mattlf/jboss-4.2.2.GA/server/messaging/tmp/deploy/tmp3996MYPROJECT-EAR-1.0.ear
  | 2008-11-17 13:59:48,416 15587 DEBUG [org.jboss.deployment.MainDeployer] 
(main:) using deployer [EMAIL PROTECTED]
  | 2008-11-17 13:59:48,416 15587 INFO  [org.jboss.deployment.EARDeployer] 
(main:) Init J2EE application: 
file:/home/mattlf/jboss-4.2.2.GA/server/messaging/deploy/MYPROJECT-EAR-1.0.ear
  | 2008-11-17 13:59:48,428 15599 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: META-INF/MANIFEST.MF
  | 2008-11-17 13:59:48,428 15599 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: META-INF/application.xml
  | 2008-11-17 13:59:48,428 15599 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: META-INF/jboss-spring.xml
  | 2008-11-17 13:59:48,429 15600 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: META-INF/jboss-app.xml
  | 2008-11-17 13:59:48,429 15600 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/joda-time-hibernate-1.0.jar
  | 2008-11-17 13:59:48,430 15601 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/datecalc-common-1.1.0.jar
  | 2008-11-17 13:59:48,430 15601 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: 
lib/STRATEER-MKTDATAENGINE-API-JAR-1.0.jar
  | 2008-11-17 13:59:48,457 15628 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/aspectjweaver-1.5.4.jar
  | 2008-11-17 13:59:48,457 15628 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/datecalc-joda-1.1.0.jar
  | 2008-11-17 13:59:48,509 15680 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/spring-2.5.6.jar
  | 2008-11-17 13:59:48,513 15684 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/otfeed-driver-0.1.3.jar
  | 2008-11-17 13:59:48,521 15692 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/joda-time-1.5.2.jar
  | 2008-11-17 13:59:48,523 15694 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/aspectjrt-1.5.4.jar
  | 2008-11-17 13:59:48,552 15723 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/MYPROJECT-IMPL-JAR.spring
  | 2008-11-17 13:59:48,554 15725 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/MYPROJECT-JAR-COMMONS-1.0.jar
  | 2008-11-17 13:59:48,555 15726 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/MYPROJECT-JAR-PERSISTENCE-1.0.jar
  | 2008-11-17 13:59:48,561 15732 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/quartz-1.5.0.jar
  | 2008-11-17 13:59:48,562 15733 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted deployable content: MYPROJECT-EJB-JAR-1.0.jar
  | 2008-11-17 13:59:48,562 15733 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: 
META-INF/maven/com.strateer.mktdataengine/MYPROJECT-EAR/pom.xml
  | 2008-11-17 13:59:48,563 15734 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: 
META-INF/maven/com.strateer.mktdataengine/MYPROJECT-EAR/pom.properties
  | 2008-11-17 13:59:48,563 15734 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Deployment Info: [EMAIL PROTECTED] { 
url=file:/home/mattlf/jboss-4.2.2.GA/server/messaging/tmp/deploy/tmp3996MYPROJECT-EAR-1.0.ear-contents/MYPROJECT-EJB-JAR-1.0.jar
 }
  |   deployer: null
  |   status: null
  |   state: CONSTRUCTED
  |   watch: 
file:/home/mattlf/jboss-4.2.2.GA/server/messaging/tmp/deploy/tmp3996MYPROJECT-EAR-1.0.ear-contents/MYPROJECT-EJB-JAR-1.0.jar
  |   altDD: null
  |   lastDeployed: 0
  |   lastModified: 0
  |   mbeans:
  | , isDirectory: false
  | 

I wonder if all JAR dependencies to MYPROJECT-IMPL.spring should also be named 
as .spring ?

I am going to try

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4189809#4189809

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4189809
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

[jboss-user] [JBoss/Spring Integration] - Re: help on jboss spring integration

2008-11-17 Thread alesj
mattlf wrote : 
  | I wonder if all JAR dependencies to MYPROJECT-IMPL.spring should also be 
named as .spring ?
No, only the one's where you have jboss-spring.xml file in META-INF.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4189812#4189812

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4189812
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss/Spring Integration] - Re: help on jboss spring integration

2008-11-17 Thread mattlf
For some reasons I can not get it working
I trimed down a small project to the bare minimum
and here is the trace in jboss (doesn't see to bootstrap)
i am running out of ideas

2008-11-17 17:43:45,552 14979 DEBUG [org.jboss.deployment.MainDeployer] (main:) 
Starting deployment of package: 
file:/home/mattlf/jboss-4.2.2.GA/server/messaging/deploy/MYPROJECT-EAR-1.0.ear
  | 2008-11-17 17:43:45,552 14979 DEBUG [org.jboss.deployment.MainDeployer] 
(main:) Starting deployment (init step) of package at: 
file:/home/mattlf/jboss-4.2.2.GA/server/messaging/deploy/MYPROJECT-EAR-1.0.ear
  | 2008-11-17 17:43:45,552 14979 DEBUG [org.jboss.deployment.MainDeployer] 
(main:) Copying 
file:/home/mattlf/jboss-4.2.2.GA/server/messaging/deploy/MYPROJECT-EAR-1.0.ear 
- 
/home/mattlf/jboss-4.2.2.GA/server/messaging/tmp/deploy/tmp59855MYPROJECT-EAR-1.0.ear
  | 2008-11-17 17:43:45,577 15004 DEBUG [org.jboss.deployment.MainDeployer] 
(main:) using deployer [EMAIL PROTECTED]
  | 2008-11-17 17:43:45,577 15004 INFO  [org.jboss.deployment.EARDeployer] 
(main:) Init J2EE application: 
file:/home/mattlf/jboss-4.2.2.GA/server/messaging/deploy/MYPROJECT-EAR-1.0.ear
  | 2008-11-17 17:43:45,631 15058 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: META-INF/MANIFEST.MF
  | 2008-11-17 17:43:45,632 15059 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: META-INF/application.xml
  | 2008-11-17 17:43:45,632 15059 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: META-INF/jboss-spring.xml
  | 2008-11-17 17:43:45,632 15059 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: META-INF/jboss-app.xml
  | 2008-11-17 17:43:45,633 15060 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/datecalc-common-1.1.0.jar
  | 2008-11-17 17:43:45,634 15061 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/datecalc-joda-1.1.0.jar
  | 2008-11-17 17:43:45,683 15110 DEBUG 
[org.jboss.jms.server.security.SecurityMetadataStore] (listenerContainer-1:) No 
SecurityMetadadata was available for D, using default security config
  | 2008-11-17 17:43:45,685 15112 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/spring-2.5.6.jar
  | 2008-11-17 17:43:45,689 15116 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/otfeed-driver-0.1.3.jar
  | 2008-11-17 17:43:45,697 15124 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/joda-time-1.5.2.jar
  | 2008-11-17 17:43:45,718 15145 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/MYPROJECT-JAR-1.0.spring
  | 2008-11-17 17:43:45,725 15152 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/quartz-1.5.0.jar
  | 2008-11-17 17:43:45,726 15153 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: 
META-INF/maven/com.strateer.myproject/MYPROJECT-EAR/pom.xml
  | 2008-11-17 17:43:45,726 15153 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: 
META-INF/maven/com.strateer.myproject/MYPROJECT-EAR/pom.properties
  | 2008-11-17 17:43:45,727 15154 DEBUG 
[org.jboss.mx.loading.RepositoryClassLoader] (main:) setRepository, [EMAIL 
PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
  | 2008-11-17 17:43:45,728 15155 DEBUG [org.jboss.deployment.DeploymentInfo] 
(main:) createLoaderRepository from config: 
LoaderRepositoryConfig(repositoryName: 
com.strateer.repositoryloader:loader=myproject-ear, repositoryClassName: 
org.jboss.mx.loading.HeirarchicalLoaderRepository3, configParserClassName: 
null, repositoryConfig: null)
  | 2008-11-17 17:43:45,728 15155 DEBUG 
[org.jboss.mx.loading.RepositoryClassLoader] (main:) setRepository, [EMAIL 
PROTECTED], [EMAIL PROTECTED] 
url=file:/home/mattlf/jboss-4.2.2.GA/server/messaging/tmp/deploy/tmp59855MYPROJECT-EAR-1.0.ear
 ,addedOrder=0}
  | 2008-11-17 17:43:45,728 15155 DEBUG 
[org.jboss.mx.loading.RepositoryClassLoader] (main:) setRepository, [EMAIL 
PROTECTED], [EMAIL PROTECTED] 
url=file:/home/mattlf/jboss-4.2.2.GA/server/messaging/tmp/deploy/tmp59855MYPROJECT-EAR-1.0.ear
 ,addedOrder=0}
  | 2008-11-17 17:43:45,728 15155 DEBUG 
[org.jboss.mx.loading.UnifiedLoaderRepository3] (main:) Adding [EMAIL 
PROTECTED] 
url=file:/home/mattlf/jboss-4.2.2.GA/server/messaging/tmp/deploy/tmp59855MYPROJECT-EAR-1.0.ear
 ,addedOrder=0}
  | 2008-11-17 17:43:45,850 15277 DEBUG 
[org.jboss.mx.loading.RepositoryClassLoader] (main:) Added url: 
file:/home/mattlf/jboss-4.2.2.GA/server/messaging/tmp/deploy/tmp59855MYPROJECT-EAR-1.0.ear-contents/lib/datecalc-common-1.1.0.jar,
 to ucl: [EMAIL PROTECTED] 
url=file:/home/mattlf/jboss-4.2.2.GA/server/messaging/tmp/deploy/tmp59855MYPROJECT-EAR-1.0.ear
 ,addedOrder=40}
  | 2008-11-17 17:43:45,852 15279 DEBUG 

[jboss-user] [JBoss/Spring Integration] - Re: help on jboss spring integration

2008-11-17 Thread alesj
mattlf wrote : 
  | 2008-11-17 17:43:45,552 14979 DEBUG 2008-11-17 17:43:45,632 15059 DEBUG 
[org.jboss.deployment.EARDeployer] (main:) Extracted non-deployable content: 
META-INF/jboss-spring.xml
  |   | 
  | 
Why is this still in ear/META-INF?

mattlf wrote : 
  | 
  |   | 2008-11-17 17:43:45,718 15145 DEBUG [org.jboss.deployment.EARDeployer] 
(main:) Extracted non-deployable content: lib/MYPROJECT-JAR-1.0.spring
  |   | 
This should be a deployable unit, not part of 'helpers' classpath.

See my structure I posted previously:

  | - my.ear
  | -- some-beans.spring
  | --- META-INF
  |  jboss-spring.xml
  | --- com/acme/beans/... 
  | 
No lib. ;-)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4189892#4189892

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4189892
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss/Spring Integration] - Re: help on jboss spring integration

2008-11-17 Thread mattlf
Still it doesn't work. I must be doing something wrong. Maybe there should not 
be a dot in the version number MYPROJECT-JAR-1.0.spring ?

Here is the exploded EAR and .spring

[EMAIL PROTECTED]:~/strateer-dev/branches/1.0/MYPROJECT-EAR/target/test$ jar 
-xvf MYPROJECT-EAR-1.0.ear 
  |   created: META-INF/
  |  inflated: META-INF/MANIFEST.MF
  |  inflated: datecalc-common-1.1.0.jar
  |  inflated: datecalc-joda-1.1.0.jar
  |  inflated: spring-2.5.6.jar
  |  inflated: otfeed-driver-0.1.3.jar
  |  inflated: joda-time-1.5.2.jar
  |  inflated: MYPROJECT-JAR-1.0.spring
  |  inflated: META-INF/application.xml
  |  inflated: META-INF/jboss-app.xml
  |  inflated: quartz-1.5.0.jar
  |   created: META-INF/maven/
  |   created: META-INF/maven/com.strateer.myproject/
  |   created: META-INF/maven/com.strateer.myproject/MYPROJECT-EAR/
  |  inflated: META-INF/maven/com.strateer.myproject/MYPROJECT-EAR/pom.xml
  |  inflated: 
META-INF/maven/com.strateer.myproject/MYPROJECT-EAR/pom.properties
  | [EMAIL PROTECTED]:~/strateer-dev/branches/1.0/MYPROJECT-EAR/target/test$ ls
  | datecalc-common-1.1.0.jar  datecalc-joda-1.1.0.jar  joda-time-1.5.2.jar  
META-INF  MYPROJECT-EAR-1.0.ear  MYPROJECT-JAR-1.0.spring  
otfeed-driver-0.1.3.jar  quartz-1.5.0.jar  spring-2.5.6.jar
  | [EMAIL PROTECTED]:~/strateer-dev/branches/1.0/MYPROJECT-EAR/target/test$ 
jar -xvf MYPROJECT-JAR-1.0.spring
  |   created: META-INF/
  |  inflated: META-INF/MANIFEST.MF
  |   created: com/
  |   created: com/strateer/
  |   created: com/strateer/myproject/
  |   created: com/strateer/myproject/impl/
  |   created: com/strateer/myproject/api/
  |   created: lib/
  |  inflated: beanRefContext.xml
  |  inflated: com/strateer/myproject/impl/TestServiceImpl.class
  |  inflated: com/strateer/myproject/api/TestService.class
  |  inflated: myprojectBeans.xml
  |  inflated: META-INF/jboss-spring.xml
  |  inflated: lib/datecalc-common-1.1.0.jar
  |  inflated: lib/datecalc-joda-1.1.0.jar
  |  inflated: lib/spring-2.5.6.jar
  |  inflated: lib/otfeed-driver-0.1.3.jar
  |  inflated: lib/joda-time-1.5.2.jar
  |  inflated: lib/quartz-1.5.0.jar
  |  inflated: mktdataEngineOpentic.properties
  |   created: META-INF/maven/
  |   created: META-INF/maven/com.strateer.myproject/
  |   created: META-INF/maven/com.strateer.myproject/MYPROJECT-JAR/
  |  inflated: META-INF/maven/com.strateer.myproject/MYPROJECT-JAR/pom.xml
  |  inflated: 
META-INF/maven/com.strateer.myproject/MYPROJECT-JAR/pom.properties
  | [EMAIL PROTECTED]:~/strateer-dev/branches/1.0/MYPROJECT-EAR/target/test$ 
  | 


Here is the jboss-spring.xml

beans xmlns=http://www.springframework.org/schema/beans;
  |xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |xmlns:context=http://www.springframework.org/schema/context;
  |xmlns:util=http://www.springframework.org/schema/util;
  |xmlns:tx=http://www.springframework.org/schema/tx;
  |xmlns:aop=http://www.springframework.org/schema/aop;
  |xmlns:jee=http://www.springframework.org/schema/jee;
  |xsi:schemaLocation=http://www.springframework.org/schema/beans 
  |http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
  | http://www.springframework.org/schema/context 
  | http://www.springframework.org/schema/context/spring-context-2.5.xsd
  | http://www.springframework.org/schema/util 
  | http://www.springframework.org/schema/util/spring-util-2.5.xsd
  | http://www.springframework.org/schema/aop 
  | http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
  | http://www.springframework.org/schema/tx 
  | http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
  | http://www.springframework.org/schema/jee 
  | http://www.springframework.org/schema/jee/spring-jee-2.5.xsd;
  | 
  | 
  | tx:annotation-driven transaction-manager=transactionManager 
proxy-target-class=true/
  | 
  | bean id=mktPropertyConfigurer
  |   
class=org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
  | property name=location 
value=classpath:mktdataEngineOpentic.properties/
  | property name=placeholderPrefix value=$mktdataengine{/
  | property name=placeholderSuffix value=}/
  | /bean
  |
  | bean id=testService 
class=com.strateer.myproject.impl.TestServiceImpl init-method=init
  | /bean
  |   
  |
  | bean class=org.springframework.jmx.export.MBeanExporter
  | property name=beans
  | map
  | entry 
key=com.strateer.myproject.impl.TestServiceImpl:name=jmx,type=spring
  |value-ref=testService/
  | /map
  | /property
  | property name=assembler ref=assembler4ScheduleJob/
  | /bean
  | 
  | bean id=assembler4ScheduleJob
  |   
class=org.springframework.jmx.export.assembler.InterfaceBasedMBeanInfoAssembler
  | property name=managedInterfaces
  | list
  | 

[jboss-user] [JBoss/Spring Integration] - Re: help on jboss spring integration

2008-11-17 Thread mattlf
Still it doesn't work. I must be doing something wrong. Maybe there should not 
be a dot in the version number MYPROJECT-JAR-1.0.spring ?

Here is the exploded EAR and .spring

[EMAIL PROTECTED]:~/strateer-dev/branches/1.0/MYPROJECT-EAR/target/test$ jar 
-xvf MYPROJECT-EAR-1.0.ear 
  |   created: META-INF/
  |  inflated: META-INF/MANIFEST.MF
  |  inflated: datecalc-common-1.1.0.jar
  |  inflated: datecalc-joda-1.1.0.jar
  |  inflated: spring-2.5.6.jar
  |  inflated: otfeed-driver-0.1.3.jar
  |  inflated: joda-time-1.5.2.jar
  |  inflated: MYPROJECT-JAR-1.0.spring
  |  inflated: META-INF/application.xml
  |  inflated: META-INF/jboss-app.xml
  |  inflated: quartz-1.5.0.jar
  |   created: META-INF/maven/
  |   created: META-INF/maven/com.strateer.myproject/
  |   created: META-INF/maven/com.strateer.myproject/MYPROJECT-EAR/
  |  inflated: META-INF/maven/com.strateer.myproject/MYPROJECT-EAR/pom.xml
  |  inflated: 
META-INF/maven/com.strateer.myproject/MYPROJECT-EAR/pom.properties
  | [EMAIL PROTECTED]:~/strateer-dev/branches/1.0/MYPROJECT-EAR/target/test$ ls
  | datecalc-common-1.1.0.jar  datecalc-joda-1.1.0.jar  joda-time-1.5.2.jar  
META-INF  MYPROJECT-EAR-1.0.ear  MYPROJECT-JAR-1.0.spring  
otfeed-driver-0.1.3.jar  quartz-1.5.0.jar  spring-2.5.6.jar
  | [EMAIL PROTECTED]:~/strateer-dev/branches/1.0/MYPROJECT-EAR/target/test$ 
jar -xvf MYPROJECT-JAR-1.0.spring
  |   created: META-INF/
  |  inflated: META-INF/MANIFEST.MF
  |   created: com/
  |   created: com/strateer/
  |   created: com/strateer/myproject/
  |   created: com/strateer/myproject/impl/
  |   created: com/strateer/myproject/api/
  |   created: lib/
  |  inflated: beanRefContext.xml
  |  inflated: com/strateer/myproject/impl/TestServiceImpl.class
  |  inflated: com/strateer/myproject/api/TestService.class
  |  inflated: myprojectBeans.xml
  |  inflated: META-INF/jboss-spring.xml
  |  inflated: lib/datecalc-common-1.1.0.jar
  |  inflated: lib/datecalc-joda-1.1.0.jar
  |  inflated: lib/spring-2.5.6.jar
  |  inflated: lib/otfeed-driver-0.1.3.jar
  |  inflated: lib/joda-time-1.5.2.jar
  |  inflated: lib/quartz-1.5.0.jar
  |  inflated: mktdataEngineOpentic.properties
  |   created: META-INF/maven/
  |   created: META-INF/maven/com.strateer.myproject/
  |   created: META-INF/maven/com.strateer.myproject/MYPROJECT-JAR/
  |  inflated: META-INF/maven/com.strateer.myproject/MYPROJECT-JAR/pom.xml
  |  inflated: 
META-INF/maven/com.strateer.myproject/MYPROJECT-JAR/pom.properties
  | [EMAIL PROTECTED]:~/strateer-dev/branches/1.0/MYPROJECT-EAR/target/test$ 
  | 


Here is the jboss-spring.xml

beans xmlns=http://www.springframework.org/schema/beans;
  |xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |xmlns:context=http://www.springframework.org/schema/context;
  |xmlns:util=http://www.springframework.org/schema/util;
  |xmlns:tx=http://www.springframework.org/schema/tx;
  |xmlns:aop=http://www.springframework.org/schema/aop;
  |xmlns:jee=http://www.springframework.org/schema/jee;
  |xsi:schemaLocation=http://www.springframework.org/schema/beans 
  |http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
  | http://www.springframework.org/schema/context 
  | http://www.springframework.org/schema/context/spring-context-2.5.xsd
  | http://www.springframework.org/schema/util 
  | http://www.springframework.org/schema/util/spring-util-2.5.xsd
  | http://www.springframework.org/schema/aop 
  | http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
  | http://www.springframework.org/schema/tx 
  | http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
  | http://www.springframework.org/schema/jee 
  | http://www.springframework.org/schema/jee/spring-jee-2.5.xsd;
  | 
  | 
  | tx:annotation-driven transaction-manager=transactionManager 
proxy-target-class=true/
  | 
  | bean id=mktPropertyConfigurer
  |   
class=org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
  | property name=location 
value=classpath:mktdataEngineOpentic.properties/
  | property name=placeholderPrefix value=$mktdataengine{/
  | property name=placeholderSuffix value=}/
  | /bean
  |
  | bean id=testService 
class=com.strateer.myproject.impl.TestServiceImpl init-method=init
  | /bean
  |   
  |
  | bean class=org.springframework.jmx.export.MBeanExporter
  | property name=beans
  | map
  | entry 
key=com.strateer.myproject.impl.TestServiceImpl:name=jmx,type=spring
  |value-ref=testService/
  | /map
  | /property
  | property name=assembler ref=assembler4ScheduleJob/
  | /bean
  | 
  | bean id=assembler4ScheduleJob
  |   
class=org.springframework.jmx.export.assembler.InterfaceBasedMBeanInfoAssembler
  | property name=managedInterfaces
  | list
  | 

[jboss-user] [JBoss/Spring Integration] - Re: help on jboss spring integration

2008-11-16 Thread mattlf
Unfortunately I can't upgrade to Jboss5 and need to get it done with Jboss4

Thank you again for your reply and again I 'll ask for a little bit more help:

How to get the EAR to package the .spring ?

Here is what I did:

I modified MYPROJECT-IMPL-JAR so that it generates a .spring artefact. In order 
to do that, I added the following to the POM of MYPROJECT-IMPL-JAR

plugin
  | groupIdorg.codehaus.mojo/groupId
  | artifactIdjboss-packaging-maven-plugin/artifactId
  | !-- Enable packaging types and lifecycle bindings. --
  | extensionstrue/extensions
  | configuration
  | archiveNameMYPROJECT-IMPL-JAR/archiveName
  | 
deploymentDescriptorFilesrc/main/resources/META-INF/jboss-spring.xml/deploymentDescriptorFile
  | /configuration
  | executions
  | execution
  |   phasepackage/phase
  |   goals
  | goalspring/goal
  |   /goals
  | /execution
  |  /executions
  |   /plugin
  | 

But I am not sure how to declare the module  dependency into the EAR

I did the following to the POM of MYPROJECT-EAR

build
  | finalNameMYPROJECT-EAR-1.0/finalName
  | defaultGoalpackage/defaultGoal
  | !-- resources
  | resource
  | directory../src/main/resources/META-INF/directory
  | targetPathMETA-INF/targetPath
  | filteringtrue/filtering
  | includes
  | includejboss-spring.xml/include
  | /includes
  | /resource
  | /resources --
  | plugins
  | plugin
  | groupIdorg.apache.maven.plugins/groupId
  | artifactIdmaven-ear-plugin/artifactId
  | version2.3.1/version
  | configuration
  | jboss
  | version4.2/version
  | loader-repository
  | 
com.strateer.repositoryloader:loader=myproject-ear
  | /loader-repository
  | /jboss
  | 
  | 
defaultLibBundleDirlib/defaultLibBundleDir
  | modules
  | ejbModule
  | 
groupIdcom.strateer.myproject/groupId
  | 
artifactIdMYPROJECT-EJB-JAR/artifactId
  | /ejbModule
  | /modules
  | /configuration
  | /plugin
  | /plugins
  | /build
  | 
  | dependencies
  | 
  | dependency
  | groupIdcom.strateer.myproject/groupId
  | artifactIdMYPROJECT-EJB-JAR/artifactId
  | version${applicationVersion}/version
  | typeejb/type
  | /dependency
  | 
  | dependency
  | groupIdcom.strateer.myproject/groupId
  | artifactIdMYPROJECT-IMPL-JAR/artifactId
  | version${applicationVersion}/version
  | typespring/type
  | /dependency
  | 
  | /dependencies
  | 

but compilation throws an error  Unknown artifact type[spring]

Here is the trace

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to initialize 
ear modules
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 

[jboss-user] [JBoss/Spring Integration] - Re: help on jboss spring integration

2008-11-15 Thread alesj
Yeah, you should have a .spring deployment in your ear:
 - my.ear
 -- some-beans.spring
 --- META-INF
  jboss-spring.xml
 --- com/acme/beans/...

ps: this is a lot simpler in JBoss5 ;-)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4189636#4189636

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4189636
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss/Spring Integration] - Re: help on jboss spring integration

2008-11-14 Thread mattlf
Thank you for the tip. It helped

I downloaded jboss-spring-version4.zip  from source forge
and replaced  jboss-spring-jdk5.jar   with jboss-spring-jdk5-2.5.jar  found on 
sourceforge as well
and deployed everything in deploy / jboss-spring-jdk5.deployer

and it works (Jboss starts properly)

But when i deploy my EAR, it does not seem that the spring context is bootstaped
Yet I have jboss-spring.xml in META-INF

I would appreciate another tip

Right now, jboss-spring.xml is packaged with the EAR. Shall i put it as part of 
the MYPROJECT-JAR ?
Shall I rename MYPROJECT.JAR into MYPROJECT.spring ?


Here is my EAR 

created: META-INF/
 inflated: META-INF/MANIFEST.MF
  created: lib/
 inflated: META-INF/application.xml
 inflated: META-INF/jboss-spring.xml
 inflated: META-INF/jboss-app.xml
 inflated: lib/joda-time-hibernate-1.0.jar
 inflated: lib/datecalc-common-1.1.0.jar
 inflated: lib/MYPROJECT-API-JAR-1.0.jar
 inflated: lib/aspectjweaver-1.5.4.jar
 inflated: lib/datecalc-joda-1.1.0.jar
 inflated: lib/spring-2.5.6.jar
 inflated: lib/MYPROJECT-IMPL-JAR-1.0.jar
 inflated: lib/otfeed-driver-0.1.3.jar
 inflated: lib/joda-time-1.5.2.jar
 inflated: lib/aspectjrt-1.5.4.jar
 inflated: lib/MYPROJECT-COMMONS-JAR-1.0.jar
 inflated: lib/MYPROJECT-PERSISTENCE-JAR-1.0.jar
 inflated: lib/quartz-1.5.0.jar
 inflated: MYPROJECT-EJB-JAR-1.0.jar
  created: META-INF/maven/
  created: META-INF/maven/com.strateer.mktdataengine/
  created: META-INF/maven/com.strateer.mktdataengineMYPROJECT-EAR/
 inflated: META-INF/maven/com.strateer.mktdataengine/MYPROJECT-EAR/pom.xml
 inflated: 
META-INF/maven/com.strateer.mktdataengine/MYPROJECT-EAR/pom.properties


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4189540#4189540

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4189540
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss/Spring Integration] - Re: help on jboss spring integration

2008-11-13 Thread alesj
Read what the error msg says. ;-)

Copy jboss-service.xml from one of
complete deployer releases.
Or check JBossAS 4.x branches.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4189246#4189246

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4189246
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user