-
1. Re: Why JBoss ESB doesn't delete services from registry when
tfennelly Oct 20, 2008 6:02 AM (in response to denix)What version of the ESB are you using?
I think this should only be possible if the first instance was not undeployed cleanly e.g. the Java process was killed and so the service was not able to unregister itself from the registry.
If you undeploy only i.e. just delete the .esb service from the deploy dir (don't overwrite with a new one), do you get any exceptions? -
2. Re: Why JBoss ESB doesn't delete services from registry when
denix Oct 20, 2008 6:17 AM (in response to denix)tfennelly,
we use jbossesb-server-4.4.GA.
this bug is reproducible when re-writing, i.e. we don't delete services, because we re-write them.
when we undeploy, all is okey.
also I noticed one more bug which reproduced sometimes:
1. deploy service on working jboss intance
2. delete it
3. deploy it again on working jboss intace
i.e. no app server restarting.
result: service cannot be deployed, exception. -
3. Re: Why JBoss ESB doesn't delete services from registry when
tfennelly Oct 20, 2008 8:20 AM (in response to denix)Can you bundle this up into an example and send it to me please? Also, can you send your server log from where you produce this error.
-
4. Re: Why JBoss ESB doesn't delete services from registry when
jjarkko Oct 20, 2008 5:56 PM (in response to denix)I think this is the same behaviour we're seeing; duplicate (or triple etc) services get registerd during redeployment.
-
5. Re: Why JBoss ESB doesn't delete services from registry when
kconner Oct 21, 2008 3:48 AM (in response to denix)The services should be unregistered when undeployed (whether as rewriting or not) provided that the undeploy was clean. If the undeploy failed for any reason then the registration may still be active.
There has also been a recent jUDDI bug which meant that certain operations failed silently and it may be that the unregister was one of these. I think this is unlikely though.
As Tom says, the best way forward is to send us a log file from one of these instances so that we can see what is happening. -
6. Re: Why JBoss ESB doesn't delete services from registry when
denix Oct 23, 2008 12:09 AM (in response to denix)Guys, I send tfennelly sources.
We need to go in production, but we have 2 serious JBoss bugs:
1. JBoss doesn't delete services from registry when re-writting.
2. And if I delete running service and deploy it again it doesn't want to start
So, JBoss hotdeploy broken.
Please, help. -
7. Re: Why JBoss ESB doesn't delete services from registry when
denix Oct 23, 2008 12:17 AM (in response to denix)Log for 2nd bug
12:13:38,806 INFO [Dialect] Using dialect: org.hibernate.dialect.OracleDialect
12:13:38,822 WARN [Oracle9Dialect] The Oracle9Dialect dialect has been deprecat
ed; use either Oracle9iDialect or Oracle10gDialect instead
12:13:38,822 WARN [OracleDialect] The OracleDialect dialect has been deprecated
; use Oracle8iDialect instead
12:13:38,822 INFO [TransactionFactoryFactory] Using default transaction strateg
y (direct JDBC transactions)
12:13:38,822 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup
configured (in JTA environment, use of read-write or transactional second-level
cache is not recommended)
12:13:38,837 INFO [SettingsFactory] Automatic flush during beforeCompletion():
disabled
12:13:38,837 INFO [SettingsFactory] Automatic session close at end of transacti
on: disabled
12:13:38,837 INFO [SettingsFactory] JDBC batch size: 15
12:13:38,837 INFO [SettingsFactory] JDBC batch updates for versioned data: disa
bled
12:13:38,837 INFO [SettingsFactory] Scrollable result sets: enabled
12:13:38,853 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
12:13:38,853 INFO [SettingsFactory] Connection release mode: on_close
12:13:38,853 INFO [SettingsFactory] Default batch fetch size: 1
12:13:38,853 INFO [SettingsFactory] Generate SQL with comments: disabled
12:13:38,853 INFO [SettingsFactory] Order SQL updates by primary key: disabled
12:13:38,853 INFO [SettingsFactory] Order SQL inserts for batching: disabled
12:13:38,853 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.AST
QueryTranslatorFactory
12:13:38,869 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
12:13:38,869 INFO [SettingsFactory] Query language substitutions: {}
12:13:38,869 INFO [SettingsFactory] JPA-QL strict compliance: disabled
12:13:38,869 INFO [SettingsFactory] Second-level cache: enabled
12:13:38,869 INFO [SettingsFactory] Query cache: enabled
12:13:38,869 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCache
Provider
12:13:38,869 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
12:13:38,869 INFO [SettingsFactory] Structured second-level cache entries: disa
bled
12:13:38,884 INFO [SettingsFactory] Query cache factory: org.hibernate.cache.St
andardQueryCacheFactory
12:13:38,884 INFO [SettingsFactory] Statistics: disabled
12:13:38,884 INFO [SettingsFactory] Deleted entity synthetic identifier rollbac
k: disabled
12:13:38,900 INFO [SettingsFactory] Default entity-mode: pojo
12:13:38,900 INFO [SettingsFactory] Named query checking : enabled
12:13:38,900 INFO [SessionFactoryImpl] building session factory
12:13:39,290 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no
JNDI name configured
12:13:39,290 INFO [UpdateTimestampsCache] starting update timestamps cache at r
egion: org.hibernate.cache.UpdateTimestampsCache
12:13:39,290 WARN [EhCacheProvider] Could not find configuration [org.hibernate
.cache.UpdateTimestampsCache]; using defaults.
12:13:39,321 INFO [StandardQueryCache] starting query cache at region: org.hibe
rnate.cache.StandardQueryCache
12:13:39,321 WARN [EhCacheProvider] Could not find configuration [org.hibernate
.cache.StandardQueryCache]; using defaults.
12:13:39,384 INFO [HibernateTransactionManager] Using DataSource [oracle.jdbc.p
ool.OracleDataSource@cd6d78] of Hibernate SessionFactory for HibernateTransactio
nManager
12:13:39,509 INFO [ClassPathXmlApplicationContext] Refreshing org.springframewo
rk.context.support.ClassPathXmlApplicationContext@b8ddd8: display name [org.spri
ngframework.context.support.ClassPathXmlApplicationContext@b8ddd8]; startup date
[Thu Oct 23 12:13:39 SGT 2008]; root of context hierarchy
12:13:39,509 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from c
lass path resource [applicationContext-netting-esb.xml]
12:13:39,556 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from c
lass path resource [applicationContext-dao.xml]
12:13:39,571 INFO [ClassPathXmlApplicationContext] Bean factory for application
context [org.springframework.context.support.ClassPathXmlApplicationContext@b8d
dd8]: org.springframework.beans.factory.support.DefaultListableBeanFactory@5e7a0
3
12:13:39,571 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@5e7a03: def
ining beans [dseDataSource,dseSessionFactory,transactionManager,cashFlowDao,clie
ntSSIDetailsDao,clientSSIMasterDao,counterPartyDao,countryDao,currencyDao,tradeD
ao,entityPartyDao,exchangeRateDao,ourSSIDetailsDao,ourSSIMasterDao,productDetail
sDao,swiftMsgDao,tradeNetting,serviceManager]; root of factory hierarchy
12:13:39,587 INFO [Configuration] configuring from url: jar:file:/C:/dev/java/f
rame/jbossesb-server-4.4.GA/server/default/tmp/deploy/tmp2350service-netting-1.0
.esb-contents/lib/service-core-1.0.jar!/hibernate.cfg.xml
12:13:39,587 INFO [Configuration] Configured SessionFactory: null
12:13:39,603 INFO [LocalSessionFactoryBean] Building new Hibernate SessionFacto
ry
12:13:39,603 INFO [AnnotationBinder] Binding entity from annotated class: dse.p
ersistence.entity.CashFlow
12:13:39,603 INFO [EntityBinder] Bind entity dse.persistence.entity.CashFlow on
table T11_CASHFLOW
12:13:39,618 INFO [AnnotationBinder] Binding entity from annotated class: dse.p
ersistence.entity.ClientSSIDetails
12:13:39,618 INFO [EntityBinder] Bind entity dse.persistence.entity.ClientSSIDe
tails on table T09_CLIENTSSI_DTL
12:13:39,634 INFO [AnnotationBinder] Binding entity from annotated class: dse.p
ersistence.entity.ClientSSIMaster
12:13:39,634 INFO [EntityBinder] Bind entity dse.persistence.entity.ClientSSIMa
ster on table T07_CLIENTSSI_MST
12:13:39,634 INFO [AnnotationBinder] Binding entity from annotated class: dse.p
ersistence.entity.CounterParty
12:13:39,634 INFO [EntityBinder] Bind entity dse.persistence.entity.CounterPart
y on table T05_COUNTERPARTY
12:13:39,649 INFO [AnnotationBinder] Binding entity from annotated class: dse.p
ersistence.entity.Country
12:13:39,649 INFO [EntityBinder] Bind entity dse.persistence.entity.Country on
table T02_COUNTRY
12:13:39,649 INFO [AnnotationBinder] Binding entity from annotated class: dse.p
ersistence.entity.Currency
12:13:39,649 INFO [EntityBinder] Bind entity dse.persistence.entity.Currency on
table T01_CURRENCY
12:13:39,665 INFO [AnnotationBinder] Binding entity from annotated class: dse.p
ersistence.entity.EntityParty
12:13:39,665 INFO [EntityBinder] Bind entity dse.persistence.entity.EntityParty
on table T04_ENTITY
12:13:39,665 INFO [AnnotationBinder] Binding entity from annotated class: dse.p
ersistence.entity.ExchangeRate
12:13:39,665 INFO [EntityBinder] Bind entity dse.persistence.entity.ExchangeRat
e on table T06_EXCH_RATE
12:13:39,681 INFO [AnnotationBinder] Binding entity from annotated class: dse.p
ersistence.entity.OurSSIDetails
12:13:39,681 INFO [EntityBinder] Bind entity dse.persistence.entity.OurSSIDetai
ls on table T10_OURSSI_DTL
12:13:39,696 INFO [AnnotationBinder] Binding entity from annotated class: dse.p
ersistence.entity.OurSSIMaster
12:13:39,696 INFO [EntityBinder] Bind entity dse.persistence.entity.OurSSIMaste
r on table T08_OURSSI_MST
12:13:39,696 INFO [AnnotationBinder] Binding entity from annotated class: dse.p
ersistence.entity.ProductDetails
12:13:39,696 INFO [EntityBinder] Bind entity dse.persistence.entity.ProductDeta
ils on table T03_PRODUCT_DTL
12:13:39,712 INFO [AnnotationBinder] Binding entity from annotated class: dse.p
ersistence.entity.SwiftMsg
12:13:39,712 INFO [EntityBinder] Bind entity dse.persistence.entity.SwiftMsg on
table T12_SWIFT_MSG
12:13:39,712 INFO [AnnotationBinder] Binding entity from annotated class: dse.p
ersistence.entity.Trade
12:13:39,712 INFO [EntityBinder] Bind entity dse.persistence.entity.Trade on ta
ble T14_TRADE_INFO
12:13:39,759 INFO [ConnectionProviderFactory] Initializing connection provider:
org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
12:13:39,821 INFO [SettingsFactory] RDBMS: Oracle, version: Oracle Database 10g
Release 10.2.0.1.0 - Production
12:13:39,821 INFO [SettingsFactory] JDBC driver: Oracle JDBC driver, version: 9
.2.0.8.0
12:13:39,837 INFO [Dialect] Using dialect: org.hibernate.dialect.OracleDialect
12:13:39,837 WARN [Oracle9Dialect] The Oracle9Dialect dialect has been deprecat
ed; use either Oracle9iDialect or Oracle10gDialect instead
12:13:39,837 WARN [OracleDialect] The OracleDialect dialect has been deprecated
; use Oracle8iDialect instead
12:13:39,837 INFO [TransactionFactoryFactory] Using default transaction strateg
y (direct JDBC transactions)
12:13:39,837 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup
configured (in JTA environment, use of read-write or transactional second-level
cache is not recommended)
12:13:39,837 INFO [SettingsFactory] Automatic flush during beforeCompletion():
disabled
12:13:39,852 INFO [SettingsFactory] Automatic session close at end of transacti
on: disabled
12:13:39,852 INFO [SettingsFactory] JDBC batch size: 15
12:13:39,852 INFO [SettingsFactory] JDBC batch updates for versioned data: disa
bled
12:13:39,852 INFO [SettingsFactory] Scrollable result sets: enabled
12:13:39,852 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
12:13:39,868 INFO [SettingsFactory] Connection release mode: on_close
12:13:39,868 INFO [SettingsFactory] Default batch fetch size: 1
12:13:39,868 INFO [SettingsFactory] Generate SQL with comments: disabled
12:13:39,868 INFO [SettingsFactory] Order SQL updates by primary key: disabled
12:13:39,868 INFO [SettingsFactory] Order SQL inserts for batching: disabled
12:13:39,868 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.AST
QueryTranslatorFactory
12:13:39,884 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
12:13:39,884 INFO [SettingsFactory] Query language substitutions: {}
12:13:39,884 INFO [SettingsFactory] JPA-QL strict compliance: disabled
12:13:39,884 INFO [SettingsFactory] Second-level cache: enabled
12:13:39,884 INFO [SettingsFactory] Query cache: enabled
12:13:39,884 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCache
Provider
12:13:39,884 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
12:13:39,899 INFO [SettingsFactory] Structured second-level cache entries: disa
bled
12:13:39,899 INFO [SettingsFactory] Query cache factory: org.hibernate.cache.St
andardQueryCacheFactory
12:13:39,899 INFO [SettingsFactory] Statistics: disabled
12:13:39,899 INFO [SettingsFactory] Deleted entity synthetic identifier rollbac
k: disabled
12:13:39,899 INFO [SettingsFactory] Default entity-mode: pojo
12:13:39,915 INFO [SettingsFactory] Named query checking : enabled
12:13:39,930 INFO [SessionFactoryImpl] building session factory
12:13:39,930 WARN [CacheManager] Creating a new instance of CacheManager using
the diskStorePath "C:\DOCUME~1\1317827\LOCALS~1\Temp\" which is already used by
an existing CacheManager.
The source of the configuration was classpath.
The diskStore path for this CacheManager will be set to C:\DOCUME~1\1317827\LOCA
LS~1\Temp\\ehcache_auto_created_1224735219930.
To avoid this warning consider using the CacheManager factory methods to create
a singleton CacheManager or specifying a separate ehcache configuration (ehcache
.xml) for each CacheManager instance.
12:13:39,977 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no
JNDI name configured
12:13:39,977 INFO [UpdateTimestampsCache] starting update timestamps cache at r
egion: org.hibernate.cache.UpdateTimestampsCache
12:13:39,993 WARN [EhCacheProvider] Could not find configuration [org.hibernate
.cache.UpdateTimestampsCache]; using defaults.
12:13:39,993 INFO [StandardQueryCache] starting query cache at region: org.hibe
rnate.cache.StandardQueryCache
12:13:39,993 WARN [EhCacheProvider] Could not find configuration [org.hibernate
.cache.StandardQueryCache]; using defaults.
12:13:39,993 INFO [HibernateTransactionManager] Using DataSource [oracle.jdbc.p
ool.OracleDataSource@6366db] of Hibernate SessionFactory for HibernateTransactio
nManager
12:13:40,055 INFO [JDBCDataStore] Generated token 'authToken:F8D94C80-A0B8-11DD
-8C80-865C3620F006' for user: 'jbossesb/JBoss ESB User'
12:13:40,055 WARN [ActionProcessingPipeline] No reply to address defined for re
ply message!
12:13:40,071 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUS
TERED started.
12:13:45,069 INFO [QueueService] Queue[/queue/DSE_Netting_Request_esb_reply] st
opped
12:13:45,069 INFO [QueueService] Queue[/queue/DSE_Netting_Request_esb] stopped
12:13:45,131 INFO [JDBCDataStore] Generated token 'authToken:FBE21FB0-A0B8-11DD
-9FB0-F23087F05C6B' for user: 'jbossesb/JBoss ESB User'
12:13:45,147 INFO [DeleteBindingFunction] Publisher 'jbossesb' deleted BindingT
emplate with key: F8DB9670-A0B8-11DD-9670-F316C23026A2
12:14:37,324 INFO [JBoss4ESBDeployer] create esb service, service-netting-1.0.e
sb
12:14:37,340 INFO [QueueService] Queue[/queue/DSE_Netting_Request_esb] started,
fullSize=200000, pageSize=2000, downCacheSize=2000
12:14:37,356 INFO [QueueService] Queue[/queue/DSE_Netting_Request_esb_reply] st
arted, fullSize=200000, pageSize=2000, downCacheSize=2000
12:14:37,434 INFO [ClassPathXmlApplicationContext] Refreshing org.springframewo
rk.context.support.ClassPathXmlApplicationContext@101e1d1: display name [org.spr
ingframework.context.support.ClassPathXmlApplicationContext@101e1d1]; startup da
te [Thu Oct 23 12:14:37 SGT 2008]; root of context hierarchy
12:14:37,449 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from c
lass path resource [applicationContext-netting-esb.xml]
12:14:37,512 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from c
lass path resource [applicationContext-dao.xml]
12:14:37,543 INFO [ClassPathXmlApplicationContext] Bean factory for application
context [org.springframework.context.support.ClassPathXmlApplicationContext@101
e1d1]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1609
cfa
12:14:37,590 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1609cfa: de
fining beans [dseDataSource,dseSessionFactory,transactionManager,cashFlowDao,cli
entSSIDetailsDao,clientSSIMasterDao,counterPartyDao,countryDao,currencyDao,trade
Dao,entityPartyDao,exchangeRateDao,ourSSIDetailsDao,ourSSIMasterDao,productDetai
lsDao,swiftMsgDao,tradeNetting,serviceManager]; root of factory hierarchy
12:14:37,621 INFO [Configuration] configuring from url: jar:file:/C:/dev/java/f
rame/jbossesb-server-4.4.GA/server/default/tmp/deploy/tmp2352service-netting-1.0
.esb-contents/lib/service-core-1.0.jar!/hibernate.cfg.xml
12:14:37,637 INFO [Configuration] Configured SessionFactory: null
12:14:37,637 INFO [LocalSessionFactoryBean] Building new Hibernate SessionFacto
ry
12:14:37,652 INFO [ConnectionProviderFactory] Initializing connection provider:
org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
12:14:38,012 INFO [SettingsFactory] RDBMS: Oracle, version: Oracle Database 10g
Release 10.2.0.1.0 - Production
12:14:38,012 INFO [SettingsFactory] JDBC driver: Oracle JDBC driver, version: 9
.2.0.8.0
12:14:38,027 INFO [Dialect] Using dialect: org.hibernate.dialect.OracleDialect
12:14:38,027 WARN [Oracle9Dialect] The Oracle9Dialect dialect has been deprecat
ed; use either Oracle9iDialect or Oracle10gDialect instead
12:14:38,027 WARN [OracleDialect] The OracleDialect dialect has been deprecated
; use Oracle8iDialect instead
12:14:38,027 INFO [TransactionFactoryFactory] Using default transaction strateg
y (direct JDBC transactions)
12:14:38,043 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup
configured (in JTA environment, use of read-write or transactional second-level
cache is not recommended)
12:14:38,043 INFO [SettingsFactory] Automatic flush during beforeCompletion():
disabled
12:14:38,058 INFO [SettingsFactory] Automatic session close at end of transacti
on: disabled
12:14:38,058 INFO [SettingsFactory] JDBC batch size: 15
12:14:38,058 INFO [SettingsFactory] JDBC batch updates for versioned data: disa
bled
12:14:38,058 INFO [SettingsFactory] Scrollable result sets: enabled
12:14:38,074 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
12:14:38,074 INFO [SettingsFactory] Connection release mode: on_close
12:14:38,074 INFO [SettingsFactory] Default batch fetch size: 1
12:14:38,074 INFO [SettingsFactory] Generate SQL with comments: disabled
12:14:38,074 INFO [SettingsFactory] Order SQL updates by primary key: disabled
12:14:38,074 INFO [SettingsFactory] Order SQL inserts for batching: disabled
12:14:38,090 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.AST
QueryTranslatorFactory
12:14:38,090 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
12:14:38,090 INFO [SettingsFactory] Query language substitutions: {}
12:14:38,090 INFO [SettingsFactory] JPA-QL strict compliance: disabled
12:14:38,090 INFO [SettingsFactory] Second-level cache: enabled
12:14:38,090 INFO [SettingsFactory] Query cache: enabled
12:14:38,090 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCache
Provider
12:14:38,105 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
12:14:38,105 INFO [SettingsFactory] Structured second-level cache entries: disa
bled
12:14:38,105 INFO [SettingsFactory] Query cache factory: org.hibernate.cache.St
andardQueryCacheFactory
12:14:38,121 INFO [SettingsFactory] Statistics: disabled
12:14:38,121 INFO [SettingsFactory] Deleted entity synthetic identifier rollbac
k: disabled
12:14:38,121 INFO [SettingsFactory] Default entity-mode: pojo
12:14:38,121 INFO [SettingsFactory] Named query checking : enabled
12:14:38,137 INFO [SessionFactoryImpl] building session factory
12:14:38,137 WARN [ConfigurationFactory] No configuration found. Configuring eh
cache from ehcache-failsafe.xml found in the classpath: null
12:14:38,137 INFO [DefaultListableBeanFactory] Destroying singletons in org.spr
ingframework.beans.factory.support.DefaultListableBeanFactory@1609cfa: defining
beans [dseDataSource,dseSessionFactory,transactionManager,cashFlowDao,clientSSID
etailsDao,clientSSIMasterDao,counterPartyDao,countryDao,currencyDao,tradeDao,ent
ityPartyDao,exchangeRateDao,ourSSIDetailsDao,ourSSIMasterDao,productDetailsDao,s
wiftMsgDao,tradeNetting,serviceManager]; root of factory hierarchy
12:14:38,152 WARN [ServiceController] Problem starting service jboss.esb:deploy
ment=service-netting-1.0.esb
java.lang.RuntimeException: org.jboss.soa.esb.listeners.lifecycle.ManagedLifecyc
leException: Unexpected exception while instantiating managed instance
at org.jboss.soa.esb.listeners.config.Configuration.create(Configuration
.java:132)
at org.jboss.soa.esb.listeners.config.JBoss4ESBDeployment.startService(J
Boss4ESBDeployment.java:82)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
upport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
eanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy44.start(Unknown Source)
at org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer.start(JBoss4ESBD
eployer.java:432)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
run(AbstractDeploymentScanner.java:225)
Caused by: org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleException: Unex
pected exception while instantiating managed instance
at org.jboss.soa.esb.listeners.LifecycleUtil.getManagedInstances(Lifecyc
leUtil.java:158)
at org.jboss.soa.esb.listeners.LifecycleUtil.getListeners(LifecycleUtil.
java:75)
at org.jboss.soa.esb.listeners.config.Configuration.create(Configuration
.java:107)
... 46 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.jboss.soa.esb.listeners.LifecycleUtil.getManagedInstances(Lifecyc
leUtil.java:154)
... 48 more
Caused by: org.jboss.soa.esb.ConfigurationException: Unexpected exception during
lifecycle initialisation
at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.initiali
se(ActionProcessingPipeline.java:264)
at org.jboss.soa.esb.listeners.ScheduleListener.(ScheduleListener.
java:95)
... 53 more
Caused by: org.jboss.soa.esb.actions.ActionLifecycleException: BeansException ca
ught in loadSpringToc :
at org.jboss.soa.esb.actions.AbstractSpringAction.loadSpringIoc(Abstract
SpringAction.java:219)
at org.jboss.soa.esb.actions.AbstractSpringAction.initializeSpring(Abstr
actSpringAction.java:165)
at org.jboss.soa.esb.actions.AbstractSpringAction.initialise(AbstractSpr
ingAction.java:109)
at dse.netting.esb.NettingActionProcessor.initialise(NettingActionProces
sor.java:38)
at org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcesso
r.initialise(OverriddenActionLifecycleProcessor.java:123)
at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.initiali
se(ActionProcessingPipeline.java:259)
... 54 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'dseSessionFactory' defined in class path resource [applicatio
nContext-dao.xml]: Invocation of init method failed; nested exception is net.sf.
ehcache.CacheException: Error configuring from null. Initial cause was null
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1175)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:428)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:284)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:352)
at org.springframework.context.support.ClassPathXmlApplicationContext.<i
nit>(ClassPathXmlApplicationContext.java:91)
at org.springframework.context.support.ClassPathXmlApplicationContext.<i
nit>(ClassPathXmlApplicationContext.java:75)
at org.springframework.context.support.ClassPathXmlApplicationContext.<i
nit>(ClassPathXmlApplicationContext.java:65)
at org.jboss.soa.esb.actions.AbstractSpringAction.loadSpringIoc(Abstract
SpringAction.java:212)
... 59 more
Caused by: net.sf.ehcache.CacheException: Error configuring from null. Initial c
ause was null
at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(Configu
rationFactory.java:95)
at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(Configu
rationFactory.java:131)
at net.sf.ehcache.CacheManager.parseConfiguration(CacheManager.java:241)
at net.sf.ehcache.CacheManager.init(CacheManager.java:190)
at net.sf.ehcache.CacheManager.(CacheManager.java:157)
at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:127)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:
183)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
a:1294)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSession
Factory(LocalSessionFactoryBean.java:805)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessi
onFactory(LocalSessionFactoryBean.java:745)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPr
opertiesSet(AbstractSessionFactoryBean.java:134)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1202)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
... 70 more
12:14:38,574 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.esb:deployment=service-netting-1.0.esb
State: FAILED
Reason: java.lang.RuntimeException: org.jboss.soa.esb.listeners.lifecycle.Mana
gedLifecycleException: Unexpected exception while instantiating managed instance
I Depend On:
jboss.esb:deployment=jbossesb.esb
jboss.esb:deployment=spring.esb
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.esb:deployment=service-netting-1.0.esb
State: FAILED
Reason: java.lang.RuntimeException: org.jboss.soa.esb.listeners.lifecycle.Mana
gedLifecycleException: Unexpected exception while instantiating managed instance
I Depend On:
jboss.esb:deployment=jbossesb.esb
jboss.esb:deployment=spring.esb -
8. Re: Why JBoss ESB doesn't delete services from registry when
denix Oct 23, 2008 2:48 AM (in response to denix)It seems that I found partial solution for second problem. I need to use
hibernate.cache.provider_class=net.sf.ehcache.hibernate.SingletonEhCacheProvider
But, it is still some exceptions with concerned Spring and JBossESB. -
9. Re: Why JBoss ESB doesn't delete services from registry when
kconner Oct 23, 2008 4:11 AM (in response to denix)It looks like your issue may be related to the spring integration and not a general problem.
I'm sure Tom will be able to help now that he has your source code. -
10. Re: Why JBoss ESB doesn't delete services from registry when
denix Oct 23, 2008 4:40 AM (in response to denix)AND!
Sometimes after deleting/deploying the same service we have
http://korrespondent.net/business/economics/6240016:17:04,686 WARN [ServiceController] Problem starting service jboss.esb:deployment=service-netting-1.0.esb
java.lang.NullPointerException
at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:630)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:474)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at org.springframework.core.NestedRuntimeException.getMessage(NestedRuntimeException.java:67)
at java.lang.Throwable.getLocalizedMessage(Throwable.java:267)
at java.lang.Throwable.toString(Throwable.java:343)
at org.springframework.beans.factory.BeanCreationException.toString(BeanCreationException.java:149)
at java.lang.String.valueOf(String.java:2827)
at java.lang.StringBuilder.append(StringBuilder.java:115)
at java.lang.Throwable.printStackTraceAsCause(Throwable.java:536)
at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545)
at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545)
at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545)
at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545)
at java.lang.Throwable.printStackTrace(Throwable.java:516)
at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:59)
at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:342)
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:304)
at org.apache.log4j.DailyRollingFileAppender.subAppend(DailyRollingFileAppender.java:358)
at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
at org.apache.log4j.Category.callAppenders(Category.java:203)
at org.apache.log4j.Category.forcedLog(Category.java:388)
at org.apache.log4j.Category.log(Category.java:853)
at org.jboss.logging.Log4jLoggerPlugin.debug(Log4jLoggerPlugin.java:138)
at org.jboss.logging.Logger.debug(Logger.java:169)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:295)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy44.start(Unknown Source)
at org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer.start(JBoss4ESBDeployer.java:432)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225) -
11. Re: Why JBoss ESB doesn't delete services from registry when
kconner Oct 23, 2008 4:52 AM (in response to denix)I have only ever seen this failure when a stale classloader has been reused so my guess would be that the Spring framework still has a reference to the ClassLoader from your previous deployment.
This is likely to be related to your redeployment issues. -
12. Re: Why JBoss ESB doesn't delete services from registry when
beve Oct 23, 2008 4:59 AM (in response to denix)You might have seen this already but this link might be useful: http://forum.springframework.org/showthread.php?t=30801
The suggestion here is to use use classloading isolation. You can do this by isolating the .esb archive as described here : http://www.jboss.org/community/docs/DOC-10339
Regards,
/Daniel -
13. Re: Why JBoss ESB doesn't delete services from registry when
denix Oct 23, 2008 4:59 AM (in response to denix)"Kevin.Conner@jboss.com" wrote:
The services should be unregistered when undeployed (whether as rewriting or not) provided that the undeploy was clean. If the undeploy failed for any reason then the registration may still be active.
There has also been a recent jUDDI bug which meant that certain operations failed silently and it may be that the unregister was one of these. I think this is unlikely though.
As Tom says, the best way forward is to send us a log file from one of these instances so that we can see what is happening.
Is it possible to create a JBoss hook and delete old ref from jUDDI?
How to do it? -
14. Re: Why JBoss ESB doesn't delete services from registry when
beve Oct 23, 2008 5:21 AM (in response to denix)You can add the following property to the "core" section of jbossesb-properties.xml:
<property name="org.jboss.soa.esb.failure.detect.removeDeadEPR" value="true">
For more info about this property and what it does please refer to From the section "Clustering and Fail-over support
" section in the AdministrationGuilde.pdf.
Regards,
/Daniel