I am trying to run the TestNG (using the Eclipse Plugin) tests for the Hibernate example. I have followed the directions in the example/hibernate/readme.txt (adding source paths and jars to classpath).
When I run the testng.xml, I get a jndi error: | INFO 01-02 01:47:56,750 (Initialization.java:loadFromResource:123) -reading properties from: /seam.properties | INFO 01-02 01:47:56,750 (Initialization.java:loadFromResource:123) -reading properties from: /seam-jndi.properties | INFO 01-02 01:47:56,750 (Initialization.java:init:90) -initializing Seam | INFO 01-02 01:47:56,796 (Component.java:<init>:168) -Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init | INFO 01-02 01:47:56,984 (Component.java:<init>:168) -Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages | INFO 01-02 01:47:57,000 (Component.java:<init>:168) -Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager | INFO 01-02 01:47:57,093 (Component.java:<init>:168) -Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher | INFO 01-02 01:47:57,109 (Component.java:<init>:168) -Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation | INFO 01-02 01:47:57,125 (Component.java:<init>:168) -Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList | INFO 01-02 01:47:57,125 (Component.java:<init>:168) -Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack | INFO 01-02 01:47:57,140 (Component.java:<init>:168) -Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext | INFO 01-02 01:47:57,156 (Component.java:<init>:168) -Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext | INFO 01-02 01:47:57,171 (Component.java:<init>:168) -Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext | INFO 01-02 01:47:57,187 (Component.java:<init>:168) -Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext | INFO 01-02 01:47:57,187 (Component.java:<init>:168) -Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext | INFO 01-02 01:47:57,203 (Component.java:<init>:168) -Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext | INFO 01-02 01:47:57,203 (Component.java:<init>:168) -Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext | INFO 01-02 01:47:57,218 (Component.java:<init>:168) -Component: resourceBundle, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle | INFO 01-02 01:47:57,234 (Component.java:<init>:168) -Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector | INFO 01-02 01:47:57,265 (ResourceBundle.java:loadBundle:62) -resource bundle missing: messages | INFO 01-02 01:47:57,343 (Component.java:<init>:168) -Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts | INFO 01-02 01:47:57,359 (Component.java:<init>:168) -Component: org.jboss.seam.core.microcontainer, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Microcontainer | INFO 01-02 01:47:57,375 (Component.java:<init>:168) -Component: bookingDatabase, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedHibernateSession | INFO 01-02 01:47:57,390 (Scanner.java:getClasses:75) -scanning: C:\data\source\jboss-seam\output\classes | FAILED: org.jboss.seam.mock.SeamTest.init() | java.lang.IllegalArgumentException: You must specify org.jboss.seam.core.init.jndiPattern or use @JndiName: hotelBooking | at org.jboss.seam.Component.getJndiName(Component.java:240) | at org.jboss.seam.Component.<init>(Component.java:166) | at org.jboss.seam.Component.<init>(Component.java:142) | at org.jboss.seam.Component.<init>(Component.java:137) | at org.jboss.seam.Component.<init>(Component.java:132) | at org.jboss.seam.init.Initialization.addComponent(Initialization.java:244) | at org.jboss.seam.init.Initialization.addComponents(Initialization.java:225) | at org.jboss.seam.init.Initialization.init(Initialization.java:93) | at org.jboss.seam.mock.SeamTest.init(SeamTest.java:247) | 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:585) | at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:463) | at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:301) | at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:147) | at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:78) | at org.testng.TestRunner.privateRun(TestRunner.java:612) | at org.testng.TestRunner.run(TestRunner.java:503) | at org.testng.SuiteRunner.privateRun(SuiteRunner.java:219) | at org.testng.SuiteRunner.run(SuiteRunner.java:145) | at org.testng.eclipse.runner.RemoteTestNG.run(RemoteTestNG.java:98) | at org.testng.eclipse.runner.RemoteTestNG.main(RemoteTestNG.java:137) | I have the latest cvs code. I also tried to update some of the property files based on what I found in a couple of other threads. It's probably just late and I'm overlooking the obvious answer. http://www.jboss.com/index.html?module=bb&op=viewtopic&t=75792 http://www.jboss.com/index.html?module=bb&op=viewtopic&t=75968 Any pointers? Also, if I run the ant testexample (from the hibernate build file), everything works correctly. However, I'm trying to follow the internals of the seam code and thought I would step threw the code in debug mode (via TestNG) to see how the different pieces fit together. Thanks, Chris.... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920863#3920863 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920863 ------------------------------------------------------- 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
