hello everyone, i am currently doing the honeycrm project http://code.google.com/p/honeycrm/. i wrote some server side tests that run without any problems: http://code.google.com/p/honeycrm/source/browse/#svn/trunk/src/crm/server/test
now, i would like to test the user interface code (e.g. testing visibility of widgets as well as testing client-server-rpc communication with timeouts). however, i am still unable to run the user interface test code. for example, when i run the ServiceTest case (http://code.google.com/p/honeycrm/source/browse/trunk/src/crm/client/ test/ServiceTest.java) i get the following exception: Caused by: javax.jdo.JDOFatalUserException: Duplicate PMF name "transactions-optional" found in file:/Users/ingo/svn/honeycrm_all/ trunk/src/ META-INF/jdoconfig.xml and file:/Users/ingo/svn/honeycrm_all/trunk/war/ WEB-INF/classes/META-INF/jdoconfig.xml. at javax.jdo.JDOHelper.getNamedPMFProperties(JDOHelper.java:1300) at javax.jdo.JDOHelper.getPropertiesFromJdoconfig(JDOHelper.java: 1232) at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java: 1079) at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java: 914) at crm.server.PMF.<clinit>(PMF.java:20) ... 30 more running the DetailViewTest (http://code.google.com/p/honeycrm/source/ browse/trunk/src/crm/client/test/DetailViewTest.java) case throws the following exception (however, it seems like the test code is executed nevertheless since the output is printed properly): Starting HTTP on port 0 HTTP listening on port 55998 Starting http://10.10.10.100:55998/crm.Gae.JUnit/junit.html?gwt.codesvr=10.10.10.100:55996 on browser FF3 Module crm.Gae.JUnit has been loaded All clients connected (Limiting future permutations to: gecko1_8) is not null [WARN] StandardWrapperValve[shell]: Servlet.service() for servlet shell threw exception java.lang.ExceptionInInitializerError at crm.server.AbstractCommonService.<clinit>(AbstractCommonService.java: 37) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at com.google.gwt.dev.shell.GWTShellServlet.tryGetOrLoadServlet(GWTShellServlet.java: 953) at com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java: 276) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java: 104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java: 198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java: 104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java: 104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java: 102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java: 104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: 929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java: 160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 799) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 577) at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:637) Caused by: javax.jdo.JDOFatalUserException: Duplicate PMF name "transactions-optional" found in file:/Users/ingo/svn/honeycrm_all/ trunk/src/ META-INF/jdoconfig.xml and file:/Users/ingo/svn/honeycrm_all/trunk/war/ WEB-INF/classes/META-INF/jdoconfig.xml. at javax.jdo.JDOHelper.getNamedPMFProperties(JDOHelper.java:1300) at javax.jdo.JDOHelper.getPropertiesFromJdoconfig(JDOHelper.java: 1232) at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java: 1079) at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java: 914) at crm.server.PMF.<clinit>(PMF.java:20) ... 30 more logging for HtmlUnit thread [ERROR] Alert: class com.google.gwt.user.client.rpc.StatusCodeException is visible any hints about what i am doing wrong here? i have chosen gwt because i want to be able to achieve high code coverage with good tests. without being able to test the ui code properly gwt will be useless when my project grows.. kind regards, ingo -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
