[JBoss Tools] - Run Packaging is missing
by stevenchan Chan
stevenchan Chan [http://community.jboss.org/people/hksteven] created the discussion
"Run Packaging is missing"
To view the discussion, visit: http://community.jboss.org/message/576943#576943
--------------------------------------------------------------
Hi all,
I was using JBossIDE for eclipse 2.0.0 beta 2 and I can freely pack different classes into a EAR, WAR or HAR by selecting "Run Packaging".
However, after upgrading to eclipse 3.6.0 with JBoss Tools 3.2, I find this option is missing and I can no longer run packaging.
Is there any similiar option in the latest version? If there is, could anyone please tell me where it is?
Thanks all!
Hi all,
I was using JBossIDE for eclipse 2.0.0 beta 2 and I can freely pack different classes into a EAR, WAR or HAR by selecting "Run Packaging".
However, after upgrading to eclipse 3.6.0 with JBoss Tools 3.2, I find this option is missing and I can no longer run packaging.
Is there any similiar option in the latest version? If there is, could anyone please tell me where it is?
Thanks all!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/576943#576943]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[JBoss Tools] - JBoss AS 4.2 Server Adapter
by mdrg mdrg
mdrg mdrg [http://community.jboss.org/people/mdrg] created the discussion
"JBoss AS 4.2 Server Adapter"
To view the discussion, visit: http://community.jboss.org/message/576737#576737
--------------------------------------------------------------
Hello,
I'm developing a project for some time, and now I grew tired of lengthy deployments every time I do some change. I tried to use JBoss Tools before, but I had no success in a short timeframe, so I gave up, but now I'm decided to make it work, and use exploded/incremental deployment. As I read, Archiver could do the job, but it requires a lot of configs, so I prefer something more automated, like the server adapers, which are recommended. I want the 4.2 server adapter, as I can only choose between 4.0 and 4.2 in our host provider.
I was using Eclipse 3.6, but I see the compatible release is still beta, so I downloaded Eclipse 3.5 and the latest GA Tools (JBoss AS Tools 2.1.1.v201006011046R only, as I need none of the other tools). I put the feateres and plugins files in place, but the server adapters didn't show up. I used the update site to install all Eclipse dev tools from WTP 3.1.2, but still nothing.
I feel bad for asking for such simple question, but the server adapters simply do not show up (I only have 'JBoss' adapters, not 'JBoss Community').
What am I missing to get started on this?
Any help is welcome!
Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/576737#576737]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[JNDI and Naming] - javax.naming.NameNotFoundException: persistence not bound
by R G
rac-tech [http://community.jboss.org/people/rac-tech] created the discussion
"javax.naming.NameNotFoundException: persistence not bound"
To view the discussion, visit: http://community.jboss.org/message/576880#576880
--------------------------------------------------------------
Hi
I have an ear that consists of a ejb module and a war module. The SpringInitialisationServiceImpl (ejb) listed in the following jboss xml is in a jar file(sss.jar). The sss.jar file is in the lib folder in the ear root(ear/lib) . When this is deployed in JBoss 5, an exception is thrown(list at the bottom).
I can see that just after this exception is thrown, the persistent unit is loading.
Is this a loading sequence issue?
------------------------------------
12:04:55,542 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=Services-ProCat.ear/Services-ProCat.jar#smalllake-bopc
12:04:55,589 INFO [Version] Hibernate Annotations 3.4.0.GA
12:04:55,589 INFO [Environment] Hibernate 3.3.1.GA
12:04:55,605 INFO [Environment] hibernate.properties not found
12:04:55,605 INFO [Environment] Bytecode provider name : javassist
12:04:55,605 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
12:04:55,667 INFO [Version] Hibernate Commons Annotations 3.1.0.GA
12:04:55,667 INFO [Version] Hibernate EntityManager 3.4.0.GA
12:04:55,683 INFO [Ejb3Configuration] Processing PersistenceUnitInfo [
name: smalllake-bopc
-----------------------------------
Any help would be highly appreciated.
The more required details are listed below.
--------------------------------------------------------------------------------------
Struture
-----------
ear/lib
- sss.jar
........
........
ear/META-INF
-application.xml
-jboss-app.xml
ear/abc.jar
-com
-META-INF
-jboss.xml
-persistence.xml
ear/abc.war
---------------------------------------------------------------------------------------
jboss.xml
--------------
<?xml version='1.0' encoding='UTF-8' ?>
<jboss
xmlns=" http://www.jboss.com/xml/ns/javaee http://www.jboss.com/xml/ns/javaee"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://www.jboss.com/xml/ns/javaee http://www.jboss.com/xml/ns/javaee
http://www.jboss.org/j2ee/schema/jboss_5_0.xsd http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
version="3.0">
<webservices>
<context-root>@APPLICATION_NAME@/ws</context-root>
</webservices>
<enterprise-beans>
<service>
<ejb-name>SpringInitialisationService</ejb-name>
<ejb-class>com.smalllake.services.util.SpringInitialisationServiceImpl</ejb-class>
<object-name>@APPLICATION_NAME@:service=SpringInitialisationService</object-name>
<management>com.smalllake.services.util.SpringInitialisationService</management>
</service>
</enterprise-beans>
</jboss>
-----------------------------------------------------------------------------------------
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.jboss.ejb3.service.ServiceContainer.invokeOptionalMethod(ServiceContainer.java:381)
at org.jboss.ejb3.service.ServiceContainer.create(ServiceContainer.java:206)
....
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.ejb3.service.ServiceContainer.invokeOptionalMethod(ServiceContainer.java:369)
... 61 more
Caused by: org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. Group resource name [classpath*:beanRefContext.xml], factory key [null]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'factoryKey' defined in URL [vfszip:/D:/JavaDev/software/jboss-5.1.0.GA/server/default/deploy/Services-ProductCatalogue.ear/Services-ProductCatalogue.jar/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service.productCatalogue' defined in class path resource [spring-conf.xml]: Cannot resolve reference to bean 'delegate.productCatalogue' while setting bean property 'delegate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'delegate.productCatalogue' defined in class path resource [spring-conf.xml]: Cannot resolve reference to bean 'dao.productOffering' while setting bean property 'productOfferingDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.productOffering': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'checkDatabaseHealthCmd' defined in class path resource [spring-service-commands-conf.xml]: Cannot create inner bean 'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1' of type [com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:389)
at com.smalllake.services.util.SpringInitialisationServiceImpl.create(SpringInitialisationServiceImpl.java:25)
... 66 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'factoryKey' defined in URL [vfszip:/D:/JavaDev/software/jboss-5.1.0.GA/server/default/deploy/Services-ProductCatalogue.ear/Services-ProductCatalogue.jar/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service.productCatalogue' defined in class path resource [spring-conf.xml]: Cannot resolve reference to bean 'delegate.productCatalogue' while setting bean property 'delegate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'delegate.productCatalogue' defined in class path resource [spring-conf.xml]: Cannot resolve reference to bean 'dao.productOffering' while setting bean property 'productOfferingDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.productOffering': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'checkDatabaseHealthCmd' defined in class path resource [spring-service-commands-conf.xml]: Cannot create inner bean 'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1' of type [com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:281)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:984)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:888)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:479)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
at org.springframework.context.access.ContextSingletonBeanFactoryLocator.initializeDefinition(ContextSingletonBeanFactoryLocator.java:143)
at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:384)
... 67 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service.productCatalogue' defined in class path resource [spring-conf.xml]: Cannot resolve reference to bean 'delegate.productCatalogue' while setting bean property 'delegate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'delegate.productCatalogue' defined in class path resource [spring-conf.xml]: Cannot resolve reference to bean 'dao.productOffering' while setting bean property 'productOfferingDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.productOffering': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'checkDatabaseHealthCmd' defined in class path resource [spring-service-commands-conf.xml]: Cannot create inner bean 'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1' of type [com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:107)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:273)
... 80 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service.productCatalogue' defined in class path resource [spring-conf.xml]: Cannot resolve reference to bean 'delegate.productCatalogue' while setting bean property 'delegate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'delegate.productCatalogue' defined in class path resource [spring-conf.xml]: Cannot resolve reference to bean 'dao.productOffering' while setting bean property 'productOfferingDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.productOffering': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'checkDatabaseHealthCmd' defined in class path resource [spring-service-commands-conf.xml]: Cannot create inner bean 'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1' of type [com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1308)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 82 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'delegate.productCatalogue' defined in class path resource [spring-conf.xml]: Cannot resolve reference to bean 'dao.productOffering' while setting bean property 'productOfferingDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.productOffering': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1308)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 101 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.productOffering': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:341)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1055)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 111 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1403)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.orm.jpa.EntityManagerFactoryUtils.findEntityManagerFactory(EntityManagerFactoryUtils.java:108)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findNamedEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:510)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:492)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:656)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:629)
at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:147)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:338)
... 119 more
Caused by: javax.naming.NameNotFoundException: persistence not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(Unknown Source)
at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154)
at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)
at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)
at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:201)
at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:187)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1400)
... 133 more
Error
-------
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.jboss.ejb3.service.ServiceContainer.invokeOptionalMethod(ServiceContainer.java:381)
at org.jboss.ejb3.service.ServiceContainer.create(ServiceContainer.java:206)
....
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.ejb3.service.ServiceContainer.invokeOptionalMethod(ServiceContainer.java:369)
... 61 more
Caused by: org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. Group resource name [classpath*:beanRefContext.xml], factory key [null]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'factoryKey' defined in URL [vfszip:/D:/JavaDev/software/jboss-5.1.0.GA/server/default/deploy/Services-ProCat.ear/Services-ProCat.jar/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service.ProCat' defined in class path resource [spring-conf.xml]: Cannot resolve reference to bean 'delegate.ProCat' while setting bean property 'delegate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'delegate.ProCat' defined in class path resource [spring-conf.xml]: Cannot resolve reference to bean 'dao.productOffering' while setting bean property 'productOfferingDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.productOffering': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'checkDatabaseHealthCmd' defined in class path resource [spring-service-commands-conf.xml]: Cannot create inner bean 'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1' of type [com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:389)
at com.smalllake.services.util.SpringInitialisationServiceImpl.create(SpringInitialisationServiceImpl.java:25)
... 66 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'factoryKey' defined in URL [vfszip:/D:/JavaDev/software/jboss-5.1.0.GA/server/default/deploy/Services-ProCat.ear/Services-ProCat.jar/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service.ProCat' defined in class path resource [spring-conf.xml]: Cannot resolve reference to bean 'delegate.ProCat' while setting bean property 'delegate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'delegate.ProCat' defined in class path resource [spring-conf.xml]: Cannot resolve reference to bean 'dao.productOffering' while setting bean property 'productOfferingDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.productOffering': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'checkDatabaseHealthCmd' defined in class path resource [spring-service-commands-conf.xml]: Cannot create inner bean 'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1' of type [com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:281)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:984)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:888)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:479)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
at org.springframework.context.access.ContextSingletonBeanFactoryLocator.initializeDefinition(ContextSingletonBeanFactoryLocator.java:143)
at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:384)
... 67 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service.ProCat' defined in class path resource [spring-conf.xml]: Cannot resolve reference to bean 'delegate.ProCat' while setting bean property 'delegate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'delegate.ProCat' defined in class path resource [spring-conf.xml]: Cannot resolve reference to bean 'dao.productOffering' while setting bean property 'productOfferingDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.productOffering': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'checkDatabaseHealthCmd' defined in class path resource [spring-service-commands-conf.xml]: Cannot create inner bean 'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1' of type [com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:107)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:273)
... 80 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service.ProCat' defined in class path resource [spring-conf.xml]: Cannot resolve reference to bean 'delegate.ProCat' while setting bean property 'delegate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'delegate.ProCat' defined in class path resource [spring-conf.xml]: Cannot resolve reference to bean 'dao.productOffering' while setting bean property 'productOfferingDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.productOffering': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'checkDatabaseHealthCmd' defined in class path resource [spring-service-commands-conf.xml]: Cannot create inner bean 'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1' of type [com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1308)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 82 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'delegate.ProCat' defined in class path resource [spring-conf.xml]: Cannot resolve reference to bean 'dao.productOffering' while setting bean property 'productOfferingDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.productOffering': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1308)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 101 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.productOffering': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:341)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1055)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 111 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smalllake-bopc': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: persistence not bound
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1403)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.orm.jpa.EntityManagerFactoryUtils.findEntityManagerFactory(EntityManagerFactoryUtils.java:108)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findNamedEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:510)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:492)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:656)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:629)
at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:147)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:338)
... 119 more
Caused by: javax.naming.NameNotFoundException: persistence not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(Unknown Source)
at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154)
at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)
at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)
at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:201)
at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:187)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1400)
... 133 more
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/576880#576880]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[Datasource Configuration] - error in deploying the jbpm3.2.3 into the jboss5.0.1
by f rj
f rj [http://community.jboss.org/people/triff] created the discussion
"error in deploying the jbpm3.2.3 into the jboss5.0.1"
To view the discussion, visit: http://community.jboss.org/message/570081#570081
--------------------------------------------------------------
i'm deploying jbpm3.2.3 into jboss 5.0.1,and i get these error:
21:42:35,673 INFO [DatasourceConnectionProvider] Using datasource: java:comp/env/jdbc/JbpmDataSource
21:42:35,674 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.22-community-nt
21:42:35,674 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.10 ( Revision: ${svn.Revision} )
21:42:35,748 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLInnoDBDialect
21:42:35,755 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JTATransactionFactory
21:42:35,758 INFO [NamingHelper] JNDI InitialContext properties:{}
21:42:35,759 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
21:42:35,762 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
21:42:35,763 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
21:42:35,763 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
21:42:35,763 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
21:42:35,763 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
21:42:35,763 INFO [SettingsFactory] JDBC batch size: 15
21:42:35,763 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
21:42:35,764 INFO [SettingsFactory] Scrollable result sets: enabled
21:42:35,764 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
21:42:35,764 INFO [SettingsFactory] Connection release mode: auto
21:42:35,765 INFO [SettingsFactory] Maximum outer join fetch depth: 2
21:42:35,765 INFO [SettingsFactory] Default batch fetch size: 1
21:42:35,765 INFO [SettingsFactory] Generate SQL with comments: enabled
21:42:35,765 INFO [SettingsFactory] Order SQL updates by primary key: disabled
21:42:35,766 INFO [SettingsFactory] Order SQL inserts for batching: disabled
21:42:35,766 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
21:42:35,770 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
21:42:35,770 INFO [SettingsFactory] Query language substitutions: {}
21:42:35,770 INFO [SettingsFactory] JPA-QL strict compliance: disabled
21:42:35,770 INFO [SettingsFactory] Second-level cache: enabled
21:42:35,770 INFO [SettingsFactory] Query cache: disabled
21:42:35,778 INFO [SettingsFactory] Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
21:42:35,778 INFO [RegionFactoryCacheProviderBridge] Cache provider: org.hibernate.cache.HashtableCacheProvider
21:42:35,779 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
21:42:35,779 INFO [SettingsFactory] Structured second-level cache entries: disabled
21:42:35,786 INFO [SettingsFactory] Echoing all SQL to stdout
21:42:35,787 INFO [SettingsFactory] Statistics: disabled
21:42:35,787 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
21:42:35,787 INFO [SettingsFactory] Default entity-mode: pojo
21:42:35,788 INFO [SettingsFactory] Named query checking : enabled
21:42:35,843 INFO [SessionFactoryImpl] building session factory
21:42:37,788 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
21:42:37,789 INFO [NamingHelper] JNDI InitialContext properties:{}
21:42:42,194 ERROR [[/jbpm-bpel]] Exception sending context initialized event to listener instance of class org.jbpm.bpel.web.JbpmConfigurationLoader
org.jbpm.JbpmException: could not retrieve message destination
at org.jbpm.msg.jms.JmsMessageServiceFactoryImpl.getDestination(JmsMessageServiceFactoryImpl.java:86)
at org.jbpm.msg.jms.JmsMessageServiceFactoryImpl.openService(JmsMessageServiceFactoryImpl.java:112)
at org.jbpm.svc.Services.getService(Services.java:150)
at org.jbpm.svc.Services.getMessageService(Services.java:186)
at org.jbpm.bpel.web.JbpmConfigurationLoader.contextInitialized(JbpmConfigurationLoader.java:54)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
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:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
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:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy38.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.start(ServiceController.java:460)
at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: JbpmJobQueue not bound]
at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1352)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:817)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:833)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.jbpm.msg.jms.JmsMessageServiceFactoryImpl.lookup(JmsMessageServiceFactoryImpl.java:95)
at org.jbpm.msg.jms.JmsMessageServiceFactoryImpl.getDestination(JmsMessageServiceFactoryImpl.java:83)
... 69 more
Caused by: javax.naming.NameNotFoundException: JbpmJobQueue not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1346)
... 75 more
how to solve this problem?thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/570081#570081]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[JNDI and Naming] - EJB Not Bound error: javax.naming.NamingException
by Rameshwar Khedekar
Rameshwar Khedekar [http://community.jboss.org/people/rameshwar.khedekar] created the discussion
"EJB Not Bound error: javax.naming.NamingException"
To view the discussion, visit: http://community.jboss.org/message/576797#576797
--------------------------------------------------------------
hi,
I have created my Enterprise App project in eclipse with one web module, three ejb jars(includes multiple ejbs) and other jars.
I have bundled three ejb jars and other jars in deployment assembly of web module(order.war) and then created Enterprise App Project with that web module(order.war only..)
I have created ear file by exporting above Enterprsie app and trying to deploy it,
I got EJB not bound Error with javax.naming.NamingException.
So I have checked with binding names that they are exist in naming space or not, with Context.list() and Context.listBindings() with "java:comp/env/ejb" string paramter. I got number of Names of ejbs that are there in jndi space.
But when I am lookin up for each object that is in Name space, i get same excption and finally i get null object.
I am printing the log below...
Note: I am catching NamingException in code, so its not showing the "EJB not bound Error with javax.naming.NamingException".
But the problem is with ejb not bound only.
2010-12-19 19:35:21,003 INFO [STDOUT] name_class_pair_element==>IRemoteLicensing
2010-12-19 19:35:21,003 INFO [STDOUT] name_class_pair_element==>CommonEndUserManager
2010-12-19 19:35:21,004 INFO [STDOUT] name_class_pair_element==>AvlHandleEjb
2010-12-19 19:35:21,004 INFO [STDOUT] name_class_pair_element==>CustomerDirectory_ejbHome
2010-12-19 19:35:21,004 INFO [STDOUT] name_class_pair_element==>AccountManagement_ejbHome
2010-12-19 19:35:21,004 INFO [STDOUT] name_class_pair_element==>OutsourceAgentManager
2010-12-19 19:35:21,004 INFO [STDOUT] Naming Exception option 1 with java:comp/env/ejb/IRemoteLicensing
2010-12-19 19:35:21,004 INFO [STDOUT] Naming Exception option 2 with java:IRemoteLicensing
2010-12-19 19:35:21,004 INFO [STDOUT] Naming Exception option 3 with java:/IRemoteLicensing
2010-12-19 19:35:21,004 INFO [STDOUT] Naming Exception option 4 with java:/comp/env/ejb/IRemoteLicensing
2010-12-19 19:35:21,004 INFO [STDOUT] Naming Exception option 5 with IRemoteLicensing
2010-12-19 19:35:21,004 INFO [STDOUT] o==========>null
2010-12-19 19:35:21,004 ERROR [STDERR] java.lang.NullPointerException
2010-12-19 19:35:21,005 ERROR [STDERR] at com.ingrammicro.ejb.EJBHomeFactoryImpl_Default._getHome(EJBHomeFactoryImpl_Default.java:108)
2010-12-19 19:35:21,005 ERROR [STDERR] at com.ingrammicro.ejb.EJBHomeFactory.getHome(EJBHomeFactory.java:77)
2010-12-19 19:35:21,005 ERROR [STDERR] at com.ingrammicro.app.avl.RemoteLicensingProxy.<init>(RemoteLicensingProxy.java:54)
2010-12-19 19:35:21,005 ERROR [STDERR] at com.ingrammicro.app.avl.LicensingFactory.createLicensing(LicensingFactory.java:45)
2010-12-19 19:35:21,005 ERROR [STDERR] at com.ingrammicro.nautilus.util.avl.AVLEJBWrapper.<init>(AVLEJBWrapper.java:23)
2010-12-19 19:35:21,005 ERROR [STDERR] at com.ingrammicro.nautilus.util.avl.AVLEJBInitializer.getEJBConnectionFromSession(AVLEJBInitializer.java:114)
2010-12-19 19:35:21,005 ERROR [STDERR] at com.ingrammicro.nautilus.util.avl.AVLEJBInitializer.initializeEJB(AVLEJBInitializer.java:88)
2010-12-19 19:35:21,005 ERROR [STDERR] at com.ingrammicro.nautilus.c2lorder.OrderNewQuoteEvent.fire(OrderNewQuoteEvent.java:77)
2010-12-19 19:35:21,005 ERROR [STDERR] at com.ingrammicro.nautilus.NautilusRequestSupport.processRequest(NautilusRequestSupport.java:62)
2010-12-19 19:35:21,005 ERROR [STDERR] at com.ingrammicro.nautilus.c2lorder.C2LOrderController.processRequest(C2LOrderController.java:54)
2010-12-19 19:35:21,005 ERROR [STDERR] at com.ingrammicro.nautilus.c2lorder.C2LOrderController.doGet(C2LOrderController.java:64)
2010-12-19 19:35:21,005 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
2010-12-19 19:35:21,005 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
2010-12-19 19:35:21,005 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
2010-12-19 19:35:21,005 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2010-12-19 19:35:21,005 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2010-12-19 19:35:21,005 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2010-12-19 19:35:21,005 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2010-12-19 19:35:21,005 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
2010-12-19 19:35:21,005 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
2010-12-19 19:35:21,005 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
2010-12-19 19:35:21,005 ERROR [STDERR] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
2010-12-19 19:35:21,006 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
2010-12-19 19:35:21,006 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
2010-12-19 19:35:21,006 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
2010-12-19 19:35:21,006 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
2010-12-19 19:35:21,006 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2010-12-19 19:35:21,006 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
2010-12-19 19:35:21,006 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
2010-12-19 19:35:21,006 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
2010-12-19 19:35:21,006 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
2010-12-19 19:35:21,006 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
2010-12-19 19:35:21,006 ERROR [STDERR] java.lang.NullPointerException: Could not create remote reference to the AVL EJB
2010-12-19 19:35:21,006 ERROR [STDERR] at com.ingrammicro.app.avl.RemoteLicensingProxy.<init>(RemoteLicensingProxy.java:65)
2010-12-19 19:35:21,006 ERROR [STDERR] at com.ingrammicro.app.avl.LicensingFactory.createLicensing(LicensingFactory.java:45)
2010-12-19 19:35:21,006 ERROR [STDERR] at com.ingrammicro.nautilus.util.avl.AVLEJBWrapper.<init>(AVLEJBWrapper.java:23)
2010-12-19 19:35:21,006 ERROR [STDERR] at com.ingrammicro.nautilus.util.avl.AVLEJBInitializer.getEJBConnectionFromSession(AVLEJBInitializer.java:114)
2010-12-19 19:35:21,006 ERROR [STDERR] at com.ingrammicro.nautilus.util.avl.AVLEJBInitializer.initializeEJB(AVLEJBInitializer.java:88)
2010-12-19 19:35:21,006 ERROR [STDERR] at com.ingrammicro.nautilus.c2lorder.OrderNewQuoteEvent.fire(OrderNewQuoteEvent.java:77)
2010-12-19 19:35:21,006 ERROR [STDERR] at com.ingrammicro.nautilus.NautilusRequestSupport.processRequest(NautilusRequestSupport.java:62)
2010-12-19 19:35:21,006 ERROR [STDERR] at com.ingrammicro.nautilus.c2lorder.C2LOrderController.processRequest(C2LOrderController.java:54)
2010-12-19 19:35:21,006 ERROR [STDERR] at com.ingrammicro.nautilus.c2lorder.C2LOrderController.doGet(C2LOrderController.java:64)
2010-12-19 19:35:21,006 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
2010-12-19 19:35:21,006 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
2010-12-19 19:35:21,006 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
2010-12-19 19:35:21,006 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2010-12-19 19:35:21,007 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2010-12-19 19:35:21,007 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2010-12-19 19:35:21,007 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2010-12-19 19:35:21,007 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
2010-12-19 19:35:21,007 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
2010-12-19 19:35:21,007 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
2010-12-19 19:35:21,007 ERROR [STDERR] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
2010-12-19 19:35:21,007 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
2010-12-19 19:35:21,007 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
2010-12-19 19:35:21,007 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
2010-12-19 19:35:21,007 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
2010-12-19 19:35:21,007 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2010-12-19 19:35:21,007 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
2010-12-19 19:35:21,007 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
2010-12-19 19:35:21,007 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
2010-12-19 19:35:21,007 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
2010-12-19 19:35:21,007 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
2010-12-19 19:35:21,007 ERROR [org.apache.catalina.core.ContainerBase] Servlet.service() for servlet C2LOrderController threw exception
java.lang.NullPointerException
at com.ingrammicro.nautilus.util.avl.AVLEJBWrapper.createNewCart(AVLEJBWrapper.java:167)
at com.ingrammicro.nautilus.c2lorder.OrderNewQuoteEvent.fire(OrderNewQuoteEvent.java:77)
at com.ingrammicro.nautilus.NautilusRequestSupport.processRequest(NautilusRequestSupport.java:62)
at com.ingrammicro.nautilus.c2lorder.C2LOrderController.processRequest(C2LOrderController.java:54)
at com.ingrammicro.nautilus.c2lorder.C2LOrderController.doGet(C2LOrderController.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
2010-12-19 19:36:15,290 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass <Sun, 19 Dec 2010 19:36:15>
web.xml contents:
<ejb-ref id="EjbRef_1050696167183">
<ejb-ref-name>ejb/CustomerDirectory_ejbHome</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.ingrammicro.beans.customer.CustomerDirectoryHome</home>
<remote>com.ingrammicro.beans.customer.CustomerDirectoryObject</remote>
<ejb-link>CustomerDirectory</ejb-link>
</ejb-ref>
<ejb-ref id="EjbRef_1050696313339">
<ejb-ref-name>ejb/IRemoteLicensing</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.ingrammicro.app.avl.ejb.IRemoteLicensingHome</home>
<remote>com.ingrammicro.app.avl.ejb.IRemoteLicensingBean</remote>
<ejb-link>IRemoteLicensing</ejb-link>
</ejb-ref>
<ejb-ref id="EjbRef_1050944096042">
<ejb-ref-name>ejb/AccountManagement_ejbHome</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.ingrammicro.beans.acctmgmt.AccountManagementHome</home>
<remote>com.ingrammicro.beans.acctmgmt.AccountManagementObject</remote>
<ejb-link>AccountManagement</ejb-link>
</ejb-ref>
<ejb-ref id="EjbRef_1080190263908">
<ejb-ref-name>ejb/CommonEndUserManager</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.ingrammicro.app.avl.enduser.ICommonEndUserManagerHome</home>
<remote>com.ingrammicro.app.avl.enduser.ICommonEndUserManager</remote>
<ejb-link>CommonEndUserManager</ejb-link>
</ejb-ref>
<ejb-ref id="EjbRef_1080005416629">
<ejb-ref-name>ejb/AvlHandleEjb</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.ingrammicro.app.avl.event.handler.IAVLEventHandlerHome</home>
<remote>com.ingrammicro.app.avl.event.handler.IAVLEventHandler</remote>
<!-- <ejb-link>AvlHandleEjb.jar#AvlHandleEjb</ejb-link> -->
<ejb-link>AvlHandleEjb</ejb-link>
</ejb-ref>
<ejb-ref>
<ejb-ref-name>ejb/OutsourceAgentManager</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.ingrammicro.app.avl.outsourceagent.ejb.OutsourceAgentManagerHome</home>
<remote>com.ingrammicro.app.avl.outsourceagent.ejb.OutsourceAgentManager</remote>
<ejb-link>OutsourceAgentManager</ejb-link>
</ejb-ref>
jboss-web.xml contents:
<!-- Reference for EJB 1 -->
<ejb-ref>
<ejb-ref-name>ejb/CustomerDirectory_ejbHome</ejb-ref-name>
<ejb-link>CustomerDirectory</ejb-link>
<jndi-name>CustomerDirectory</jndi-name>
</ejb-ref>
<!-- Reference for EJB 2 -->
<ejb-ref>
<ejb-ref-name>ejb/IRemoteLicensing</ejb-ref-name>
<ejb-link>IRemoteLicensing</ejb-link>
<jndi-name>IRemoteLicensing</jndi-name>
</ejb-ref>
<!-- Reference for EJB 3 -->
<ejb-ref>
<ejb-ref-name>ejb/AccountManagement_ejbHome</ejb-ref-name>
<ejb-link>AccountManagement</ejb-link>
<jndi-name>AccountManagement</jndi-name>
</ejb-ref>
<!-- Reference for EJB 4 -->
<ejb-ref>
<ejb-ref-name>ejb/CommonEndUserManager</ejb-ref-name>
<ejb-link>CommonEndUserManager</ejb-link>
<jndi-name>CommonEndUserManager</jndi-name>
</ejb-ref>
<!-- Reference for EJB 5 -->
<ejb-ref>
<ejb-ref-name>ejb/AvlHandleEjb</ejb-ref-name>
<!-- <ejb-link>AvlHandleEjb.jar#AvlHandleEjb</ejb-link> -->
<ejb-link>AvlHandleEjb</ejb-link>
<jndi-name>AvlHandleEjb</jndi-name>
</ejb-ref>
<!-- Testing Additional Reference for EJB 6 -->
<ejb-ref>
<ejb-ref-name>ejb/OutsourceAgentManager</ejb-ref-name>
<ejb-link>OutsourceAgentManager</ejb-link>
<jndi-name>OutsourceAgentManager</jndi-name>
</ejb-ref>
Created EAR Application with EJB jars and war module ie. Not bundled in deployment assembly of web module.
WE get EJB modules on jmx console. when we deploy ejb jars outside the .war, but we couldnt' get the login page.
Codes in other jars are not reflecting, EJB jars are not able to access the other jars:
EAR structure:
/ejb-jars
/other-jars
/web-war
If we bundled ejb jars inside war we get same ejb not bound error.
Tried with jboss jnp lookup with following code, but errors remained same:
Properties jndiProps = new Properties();
jndiProps.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
jndiProps.setProperty(Context.URL_PKG_PREFIXES,
"org.jboss.naming:org.jnp.interface");
jndiProps.setProperty(Context.PROVIDER_URL, "jnp://imdalapp325:1099");
Context ctx = new InitialContext(jndiProps);
String fullName = "java:comp/env/ejb/" + a_homeName;
LOG.debug( "Looking up " + fullName );
Object o = ctx.lookup( fullName );
Please Anyone could reply on this to solve the ejb not bound error..
Please kindly feel free to ask any details you want to know to solve above problem..
Thanx....
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/576797#576797]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months