tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geldenhuys, Mare" <Mare.Geldenh...@fnb.co.za>
Subject <local> tag not put in.
Date Fri, 23 Sep 2011 07:53:34 GMT
Hi there, 

 

Please help me with the below issue,

 

This error occurs when I don't specify a <local> tag for the referenced ejb in my ejb-jar.xml.
I am using OpenEjb in

My unit tests and deploying to Jboss in production. Jboss for some reason fails to recognise
the <local> tag.

 

Thanks in advance,

 

Mare

 

ERROR - FATAL ERROR: Unknown error in Assembler.  Please send the following stack trace and
this message to users@openejb.apache.org :

 java.lang.NullPointerException

      at org.apache.openejb.config.JndiEncInfoBuilder.getInterfaceBeanInfo(JndiEncInfoBuilder.java:436)

      at org.apache.openejb.config.JndiEncInfoBuilder.isIntefaceLocalBean(JndiEncInfoBuilder.java:425)

      at org.apache.openejb.config.JndiEncInfoBuilder.buildEjbRefs(JndiEncInfoBuilder.java:167)

      at org.apache.openejb.config.JndiEncInfoBuilder.build(JndiEncInfoBuilder.java:137)

      at org.apache.openejb.config.AppInfoBuilder.build(AppInfoBuilder.java:179)

      at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:629)

      at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:576)

      at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:391)

      at org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:300)

      at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:279)

      at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:125)

      at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:60)

      at org.apache.openejb.OpenEJB.init(OpenEJB.java:271)

      at org.apache.openejb.OpenEJB.init(OpenEJB.java:250)

      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.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)

      at org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:71)

      at org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:53)

      at org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:42)

      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)

      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)

      at javax.naming.InitialContext.init(InitialContext.java:223)

      at javax.naming.InitialContext.<init>(InitialContext.java:175)

      at za.co.fnb.getafix.cs.CoreServiceTest.setUp(CoreServiceTest.java:17)

      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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)

      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)

      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)

      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)

      at org.junit.runners.ParentRunner.run(ParentRunner.java:236)

      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)

      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115)

      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.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.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)

      at $Proxy0.invoke(Unknown Source)

      at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)

      at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)

      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)

 

FATAL - OpenEJB has encountered a fatal error and cannot be started: Assembler failed to build
the container system.

org.apache.openejb.OpenEJBException: java.lang.NullPointerException: null

      at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:293)

      at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:125)

      at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:60)

      at org.apache.openejb.OpenEJB.init(OpenEJB.java:271)

      at org.apache.openejb.OpenEJB.init(OpenEJB.java:250)

      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.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)

      at org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:71)

      at org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:53)

      at org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:42)

javax.naming.NamingException: Attempted to load OpenEJB. java.lang.NullPointerException: null
[Root exception is org.apache.openejb.OpenEJBException: java.lang.NullPointerException: null]

      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)

      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)

      at org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:55)

      at javax.naming.InitialContext.init(InitialContext.java:223)

      at javax.naming.InitialContext.<init>(InitialContext.java:175)

      at za.co.fnb.getafix.cs.CoreServiceTest.setUp(CoreServiceTest.java:17)

      at org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:42)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)

      at javax.naming.InitialContext.init(InitialContext.java:223)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at javax.naming.InitialContext.<init>(InitialContext.java:175)

      at za.co.fnb.getafix.cs.CoreServiceTest.setUp(CoreServiceTest.java:17)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)

      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)

      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)

      at org.junit.runners.ParentRunner.run(ParentRunner.java:236)

      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)

      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)

      at $Proxy0.invoke(Unknown Source)

      at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)

      at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)

      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)

      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)

      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)

Caused by: java.lang.NullPointerException

      at org.apache.openejb.config.JndiEncInfoBuilder.getInterfaceBeanInfo(JndiEncInfoBuilder.java:436)

      at org.junit.runners.ParentRunner.run(ParentRunner.java:236)

      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)

      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115)

      at org.apache.openejb.config.JndiEncInfoBuilder.isIntefaceLocalBean(JndiEncInfoBuilder.java:425)

      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)

      at org.apache.openejb.config.JndiEncInfoBuilder.buildEjbRefs(JndiEncInfoBuilder.java:167)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at org.apache.openejb.config.JndiEncInfoBuilder.build(JndiEncInfoBuilder.java:137)

      at org.apache.openejb.config.AppInfoBuilder.build(AppInfoBuilder.java:179)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:629)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)

      at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:576)

      at $Proxy0.invoke(Unknown Source)

      at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:391)

      at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)

      at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)

      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)

      at org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:300)

Caused by: org.apache.openejb.OpenEJBException: java.lang.NullPointerException: null

      at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:293)

      at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:279)

      ... 38 more

      at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:125)

      at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:60)

      at org.apache.openejb.OpenEJB.init(OpenEJB.java:271)

      at org.apache.openejb.OpenEJB.init(OpenEJB.java:250)

      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.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)

      at org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:71)

      at org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:53)

      ... 27 more

Caused by: java.lang.NullPointerException

      at org.apache.openejb.config.JndiEncInfoBuilder.getInterfaceBeanInfo(JndiEncInfoBuilder.java:436)

      at org.apache.openejb.config.JndiEncInfoBuilder.isIntefaceLocalBean(JndiEncInfoBuilder.java:425)

      at org.apache.openejb.config.JndiEncInfoBuilder.buildEjbRefs(JndiEncInfoBuilder.java:167)

      at org.apache.openejb.config.JndiEncInfoBuilder.build(JndiEncInfoBuilder.java:137)

      at org.apache.openejb.config.AppInfoBuilder.build(AppInfoBuilder.java:179)

      at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:629)

      at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:576)

      at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:391)

      at org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:300)

      at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:279)

      ... 38 more

 

Marè Geldenhuys

Java Developer

FNB Personal Banking : Shared Services : IT Product House

6th Floor, 5 First Place, FNB Bank City, Johannesburg CBD

Tel:  011 352 9101

Cell: 084 300 9833

 


To read FirstRand Bank's Disclaimer for this email click on the following address or copy
into your Internet browser: 
https://www.fnb.co.za/disclaimer.html 

If you are unable to access the Disclaimer, send a blank e-mail to
firstrandbankdisclaimer@fnb.co.za and we will send you a copy of the Disclaimer.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message