Not a problem. We like the edge!
As an aside, seems I am strugling a bit to change my configuration for my test
environment. I get the following error:
[testng] [INFO,NamingHelper] JNDI InitialContext
properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| [testng] [INFO,MCKernelAbstraction] installing bean:
jboss.j2ee:service=EJB3,jar=test,name=HelloWorldAction with dependencies:
| [testng] [INFO,Initialization] done initializing Seam
| [testng] [INFO,Ejb] stopping the embedded EJB container
| [testng] java.lang.IllegalArgumentException: EntityManagerFactory not
found
| [testng] at
org.jboss.seam.core.ManagedPersistenceContext.create(ManagedPersistenceContext.java:55)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
| [testng] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [testng] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [testng] at java.lang.reflect.Method.invoke(Method.java:585)
| [testng] at
org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
| [testng] at
org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
| [testng] at
org.jboss.seam.Component.callComponentMethod(Component.java:1117)
| [testng] at
org.jboss.seam.Component.callCreateMethod(Component.java:1102)
| [testng] at org.jboss.seam.Component.newInstance(Component.java:1091)
| [testng] at org.jboss.seam.Component.getInstance(Component.java:1039)
| [testng] at org.jboss.seam.Component.getInstance(Component.java:1022)
| [testng] at
csir.helloworld.test.HelloWorldEntityIntegrationTest$1.invokeApplication(HelloWorldEntityIntegrationTest.java:29)
| [testng] at
org.jboss.seam.mock.SeamTest$Script.run(SeamTest.java:187)
| [testng] at
csir.helloworld.test.HelloWorldEntityIntegrationTest.TestHelloWorldEntity(HelloWorldEntityIntegrationTest.java:25)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
| [testng] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [testng] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [testng] at java.lang.reflect.Method.invoke(Method.java:585)
| [testng] at
org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:463)
| [testng] at
org.testng.internal.Invoker.invokeMethod(Invoker.java:378)
| [testng] at
org.testng.internal.Invoker.invokeTestMethods(Invoker.java:580)
| [testng] at
org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:89)
| [testng] at org.testng.TestRunner.privateRun(TestRunner.java:612)
| [testng] at org.testng.TestRunner.run(TestRunner.java:503)
| [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:219)
| [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:145)
| [testng] at
org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:570)
| [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:533)
| [testng] at org.testng.TestNG.run(TestNG.java:310)
| [testng] at org.testng.TestNG.privateMain(TestNG.java:660)
| [testng] at org.testng.TestNG.main(TestNG.java:602)
| [testng] Caused by: javax.naming.NameNotFoundException: napEntityManager
not bound
| [testng] at
org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| [testng] at
org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| [testng] at
org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| [testng] at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
| [testng] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
| [testng] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
| [testng] at
javax.naming.InitialContext.lookup(InitialContext.java:351)
| [testng] at
org.jboss.seam.core.ManagedPersistenceContext.getEntityManagerFactory(ManagedPersistenceContext.java:78)
| [testng] at org.jboss.seam.core.Ma
even though I have added
| initParams.put(Init.JNDI_PATTERN, "#{ejbName}/local"); to my test class
(which extends SeamTest) as well as adding
<!-- this required for beta2 -->
| <property name="jboss.entity.manager.factory.jndi.name"
|
value="java:/EntityManagerFactories/napEntityManagerF" />
| to my persistence.xml.
I am not sure about the above though.
I have changed my persistence.xml used for testing.
Any suggestions what else I need to get the embedded container going again ?
Thanks
L
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919066#3919066
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919066
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user