Well this is the problem since it ia a web applciaton i do not have any ejb deployed as ear or so .
It is about exposing some classes from the web application deployed on glassfish to other application that is in the same LAN.
So i thingk is related to rmiregistry....
First time when i start deploy the applcaiton it run the problem appear on redeploy ....
the log look like this:
INFO: [ INFO ] [ org.springframework.orm.hibernate3.HibernateTransactionManager ] - Using DataSource [org.springframework.jdbc.datasource.DriverManagerDataSource_at_144c134] of Hibernate SessionFactory for HibernateTransactionManager
INFO: [ INFO ] [ org.springframework.remoting.rmi.RmiServiceExporter ] - Looking for RMI registry at port '1099'
INFO: [ INFO ] [ org.springframework.remoting.rmi.RmiServiceExporter ] - Could not detect RMI registry - creating new one
INFO: [ INFO ] [ org.springframework.remoting.rmi.RmiServiceExporter ] - Binding service 'ProvisioningService' to RMI registry: RegistryImpl[UnicastServerRef [liveRef: [endpoint:[192.168.1.20:1099](local),objID:[0:0:0, 0]]]]
When i do a redeploy:
INFO: [ INFO ] [ org.springframework.remoting.rmi.RmiServiceExporter ] - Looking for RMI registry at port '1099'
INFO: [ INFO ] [ org.springframework.remoting.rmi.RmiServiceExporter ] - Binding service 'ProvisioningService' to RMI registry: RegistryImpl_Stub[UnicastRef [liveRef: [endpoint:[192.168.1.20:1099](remote),objID:[0:0:0, 0]]]]
INFO: PWC1635: Illegal access: this web application instance has been stopped already (the eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact)
INFO: [ INFO ] [ org.springframework.beans.factory.support.DefaultListableBeanFactory ] - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory_at_769e40: defining beans [_authenticationManager,_filterChainProxy,_httpSessionContextIntegrationFilter,_filterChainProxyPostProcessor,_filterChainList,_securityContextHolderAwareRequestFilter,_accessManager,_portMapper,_exceptionTranslationFilter,_filterSecurityInterceptor,_sessionFixationProtectionFilter,_anonymousAuthenticationProvider,_anonymousProcessingFilter,_rememberMeServices,_rememberMeAuthenticationProvider,_rememberMeFilter,_rememberMeServicesInjectionBeanPostProcessor,_logoutFilter,_basicAuthenticationEntryPoint,_basicAuthenticationFilter,_formLoginFilter,_formLoginEntryPoint,_entryPointInjectionBeanPostProcessor,_userServiceInjectionPostProcessor,org.springframework.security.providers.dao.DaoAuthenticationProvider#0,_userDetailsService,org.springframework.security.config.AuthenticationProviderBeanDefinitionParser$AuthenticationProviderCacheResolver#0,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,mmpDataSource,mmpSessionFactory,hibernateProperties,transactionManager,hibernateDaoSupport,jdbcTemplate,genericDao,customerDao,accountDao,chargingProfileDao,chargingProfileRuleDao,chargingProfileUsageDao,chargingProfilePriorityDao,defaultProfileDao,cappingProfileDao,cappingProfilePriorityDao,cappingProfileRuleDao,cappingProfileUsageDao,messageTypeDao,messageDao,recipientDao,provisioningService,org.springframework.remoting.rmi.RmiServiceExporter#0,chargingProfileManager,userManager,cappingProfileManager,queueManager,clientManager,gatewayManager,provisioningManager,messageManager,jndiTemplate,queueConnectionFactory,jmsDestinationResolver,replyToInboxQueue,provisioningQueue,gatewayQueue,chargingQueue,queueTemplate,messageConverter,messageClientMdb,jmsClientListener,messageGatewayMdb,jmsGatewayListener,messageChargingMdb,jmsChargingListener,messageProvisioningMdb,jmsProvisioningListener,chargingManagerService,telenorSmsGateway,telenorMmsGateway,teliaSeMmsGateway,chargingProfileWebService,chargingProfileMontlyFeeJob,montlyFeeCronTrigger,org.springframework.scheduling.quartz.SchedulerFactoryBean#0,taskExecutor,propertyConfigurer,mailSender]; root of factory hierarchy
INFO: [ INFO ] [ org.springframework.orm.hibernate3.LocalSessionFactoryBean ] - Closing Hibernate SessionFactory
INFO: [ ERROR ] [ org.springframework.web.context.ContextLoader ] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.remoting.rmi.RmiServiceExporter#0' defined in ServletContext resource [/WEB-INF/applicationContext/rmiServerContext.xml]: Invocation of init method failed; nested exception is java.rmi.ServerError: Error occurred in server thread; nested exception is:
java.lang.ThreadDeath
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
THX
[Message sent by forum member 'csergiu77' (csergiu77)]
http://forums.java.net/jive/thread.jspa?messageID=334030