|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
JUnit failure from 'ant dist'When I run 'ant dist' on the latest trunk code, I'm getting following JUnit
failure: > javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial > at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645) > at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) > at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325) > at javax.naming.InitialContext.lookup(InitialContext.java:392) > at net.sourceforge.pebble.util.MailUtils.createSession(MailUtils.java:225) > at net.sourceforge.pebble.event.blogentry.EmailSubscriptionListener.sendNotification(EmailSubscriptionListener.java:98) > at net.sourceforge.pebble.event.blogentry.EmailSubscriptionListener.blogEntryPublished(EmailSubscriptionListener.java:62) > at net.sourceforge.pebble.event.DefaultEventDispatcher.fireBlogEntryEvent(DefaultEventDispatcher.java:92) > at net.sourceforge.pebble.api.event.EventDispatcher.fireEvents(EventDispatcher.java:82) > at net.sourceforge.pebble.domain.BlogService.putBlogEntry(BlogService.java:177) > at net.sourceforge.pebble.webservice.MetaWeblogAPIHandler.editPost(MetaWeblogAPIHandler.java:321) > at net.sourceforge.pebble.webservice.MultiBlogMetaWeblogAPIHandlerTest.testEditPost(MultiBlogMetaWeblogAPIHandlerTest.java:308) > 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 junit.framework.TestCase.runTest(TestCase.java:154) > at junit.framework.TestCase.runBare(TestCase.java:127) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:118) > at junit.framework.TestSuite.runTest(TestSuite.java:208) > at junit.framework.TestSuite.run(TestSuite.java:203) > at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420) > at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911) > at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:743) What should I do to avoid that? Mike ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Pebble-user mailing list Pebble-user@... https://lists.sourceforge.net/lists/listinfo/pebble-user |
|
|
Re: JUnit failure from 'ant dist'Do you have the J2EE SDK from sun installed? Make sure that's installed and J2EE_HOME environment variable is set.
Chris On Mon, Aug 10, 2009 at 6:58 AM, Mike Lehmann <meiklehmann@...> wrote: When I run 'ant dist' on the latest trunk code, I'm getting following JUnit ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Pebble-user mailing list Pebble-user@... https://lists.sourceforge.net/lists/listinfo/pebble-user |
|
|
Re: JUnit failure from 'ant dist'> Do you have the J2EE SDK from sun installed?
No, I haven't, although we are doing web application development (Wicket) ourself. Mike Chris Carrier wrote: > Do you have the J2EE SDK from sun installed? Make sure that's installed and > J2EE_HOME environment variable is set. > > Chris > > On Mon, Aug 10, 2009 at 6:58 AM, Mike Lehmann <meiklehmann@...> wrote: > >> When I run 'ant dist' on the latest trunk code, I'm getting following JUnit >> failure: >> >>> javax.naming.NoInitialContextException: Need to specify class name in >> environment or system property, or as an applet parameter, or in an >> application resource file: java.naming.factory.initial >>> at >> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645) >>> at >> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) >>> at >> javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325) >>> at javax.naming.InitialContext.lookup(InitialContext.java:392) >>> at >> net.sourceforge.pebble.util.MailUtils.createSession(MailUtils.java:225) >>> at >> net.sourceforge.pebble.event.blogentry.EmailSubscriptionListener.sendNotification(EmailSubscriptionListener.java:98) >>> at >> net.sourceforge.pebble.event.blogentry.EmailSubscriptionListener.blogEntryPublished(EmailSubscriptionListener.java:62) >>> at >> net.sourceforge.pebble.event.DefaultEventDispatcher.fireBlogEntryEvent(DefaultEventDispatcher.java:92) >>> at >> net.sourceforge.pebble.api.event.EventDispatcher.fireEvents(EventDispatcher.java:82) >>> at >> net.sourceforge.pebble.domain.BlogService.putBlogEntry(BlogService.java:177) >>> at >> net.sourceforge.pebble.webservice.MetaWeblogAPIHandler.editPost(MetaWeblogAPIHandler.java:321) >>> at >> net.sourceforge.pebble.webservice.MultiBlogMetaWeblogAPIHandlerTest.testEditPost(MultiBlogMetaWeblogAPIHandlerTest.java:308) >>> 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 junit.framework.TestCase.runTest(TestCase.java:154) >>> at junit.framework.TestCase.runBare(TestCase.java:127) >>> at junit.framework.TestResult$1.protect(TestResult.java:106) >>> at junit.framework.TestResult.runProtected(TestResult.java:124) >>> at junit.framework.TestResult.run(TestResult.java:109) >>> at junit.framework.TestCase.run(TestCase.java:118) >>> at junit.framework.TestSuite.runTest(TestSuite.java:208) >>> at junit.framework.TestSuite.run(TestSuite.java:203) >>> at >> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420) >>> at >> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911) >>> at >> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:743) >> >> What should I do to avoid that? >> >> Mike >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Pebble-user mailing list >> Pebble-user@... >> https://lists.sourceforge.net/lists/listinfo/pebble-user >> > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > ------------------------------------------------------------------------ > > _______________________________________________ > Pebble-user mailing list > Pebble-user@... > https://lists.sourceforge.net/lists/listinfo/pebble-user ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Pebble-user mailing list Pebble-user@... https://lists.sourceforge.net/lists/listinfo/pebble-user |
|
|
Re: JUnit failure from 'ant dist'I'm not sure of the exact cause. But I got the same error when I tried to build from src. After some investigation setting J2EE_HOME fixed it. It's not a particularly helpful error message.
Chris
On Mon, Aug 10, 2009 at 8:48 AM, Mike Lehmann <meiklehmann@...> wrote:
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Pebble-user mailing list Pebble-user@... https://lists.sourceforge.net/lists/listinfo/pebble-user |
|
|
Re: JUnit failure from 'ant dist'The problem occurs when the testcase tries to execute sendNotification
function. First of all, check that you configure pebble.properties, tip smtpConfiguration where you should have a valid SMTP server. However, you simply ignore this warning unless you prefer to valid this functionality in your own server. Regards! 2009/8/10 Mike Lehmann <meiklehmann@...>: >> Do you have the J2EE SDK from sun installed? > > No, I haven't, although we are doing web application development (Wicket) > ourself. > > Mike > > > Chris Carrier wrote: >> Do you have the J2EE SDK from sun installed? Make sure that's installed and >> J2EE_HOME environment variable is set. >> >> Chris >> >> On Mon, Aug 10, 2009 at 6:58 AM, Mike Lehmann <meiklehmann@...> wrote: >> >>> When I run 'ant dist' on the latest trunk code, I'm getting following JUnit >>> failure: >>> >>>> javax.naming.NoInitialContextException: Need to specify class name in >>> environment or system property, or as an applet parameter, or in an >>> application resource file: java.naming.factory.initial >>>> at >>> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645) >>>> at >>> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) >>>> at >>> javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325) >>>> at javax.naming.InitialContext.lookup(InitialContext.java:392) >>>> at >>> net.sourceforge.pebble.util.MailUtils.createSession(MailUtils.java:225) >>>> at >>> net.sourceforge.pebble.event.blogentry.EmailSubscriptionListener.sendNotification(EmailSubscriptionListener.java:98) >>>> at >>> net.sourceforge.pebble.event.blogentry.EmailSubscriptionListener.blogEntryPublished(EmailSubscriptionListener.java:62) >>>> at >>> net.sourceforge.pebble.event.DefaultEventDispatcher.fireBlogEntryEvent(DefaultEventDispatcher.java:92) >>>> at >>> net.sourceforge.pebble.api.event.EventDispatcher.fireEvents(EventDispatcher.java:82) >>>> at >>> net.sourceforge.pebble.domain.BlogService.putBlogEntry(BlogService.java:177) >>>> at >>> net.sourceforge.pebble.webservice.MetaWeblogAPIHandler.editPost(MetaWeblogAPIHandler.java:321) >>>> at >>> net.sourceforge.pebble.webservice.MultiBlogMetaWeblogAPIHandlerTest.testEditPost(MultiBlogMetaWeblogAPIHandlerTest.java:308) >>>> 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 junit.framework.TestCase.runTest(TestCase.java:154) >>>> at junit.framework.TestCase.runBare(TestCase.java:127) >>>> at junit.framework.TestResult$1.protect(TestResult.java:106) >>>> at junit.framework.TestResult.runProtected(TestResult.java:124) >>>> at junit.framework.TestResult.run(TestResult.java:109) >>>> at junit.framework.TestCase.run(TestCase.java:118) >>>> at junit.framework.TestSuite.runTest(TestSuite.java:208) >>>> at junit.framework.TestSuite.run(TestSuite.java:203) >>>> at >>> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420) >>>> at >>> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911) >>>> at >>> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:743) >>> >>> What should I do to avoid that? >>> >>> Mike >>> >>> >>> ------------------------------------------------------------------------------ >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >>> trial. Simplify your report design, integration and deployment - and focus >>> on >>> what you do best, core application coding. Discover what's new with >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> Pebble-user mailing list >>> Pebble-user@... >>> https://lists.sourceforge.net/lists/listinfo/pebble-user >>> >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Pebble-user mailing list >> Pebble-user@... >> https://lists.sourceforge.net/lists/listinfo/pebble-user > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Pebble-user mailing list > Pebble-user@... > https://lists.sourceforge.net/lists/listinfo/pebble-user > -- IMPORTANTE: Este correo está destinado a su destinatario arriba indicado y puede contener información confidencial, secreta o inadecuada para personas hipersensibles con baja autoestima, sin sentido del humor o con creencias religiosas irracionales. Si usted no es el destinatario pretendido, toda difusión, distribución o reproducción de este correo será un acto prohibido y demostrará una irritante falta de educación. Salvo que la palabra abscuatulación se haya utilizado en su contexto adecuado en algún punto distinto a este aviso, no tiene ninguna utilidad legal ni gramatical, y puede ser ignorada. No se han causado lesiones a animales en la transmisión de este correo, aunque el perrito del vecino tiene los días contados, para qué nos vamos a engañar. A aquellos de ustedes que sufran un miedo insuperable a lo desconocido les complacerá saber que no existe ningún mensaje oculto que aparezca al leer esta advertencia al revés. No obstante, si coloca un círculo de sal alrededor de usted y su ordenador podrá asegurar que ni usted ni sus mascotas sufrirán daño alguno. Si ha recibido este correo por error, le rogamos que añada nuez moscada y huevos, pase el conjunto por la batidora y caliéntelo en el horno durante 40 minutos ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Pebble-user mailing list Pebble-user@... https://lists.sourceforge.net/lists/listinfo/pebble-user |
|
|
Re: JUnit failure from 'ant dist'Antonio Santos Izaguirre schrieb:
> The problem occurs when the testcase tries to execute sendNotification > function. First of all, check that you configure pebble.properties, > tip smtpConfiguration where you should have a valid SMTP server. > However, you simply ignore this warning unless you prefer to valid > this functionality in your own server. I'm not too fond of this test as it really tries to send mail during the testing process - if you happen to have no network available, it will fail (as it looks) I've somehow not experienced this when I last built - and I've certainly built with ant... I'll try at the machine where I built tomorrow and let you know. Ignoring the failed test would mean to completely disable the test, as a failed test would mean to stop the build... But I suppose that this is the quickest and best option for now. Cheers, Olaf ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Pebble-user mailing list Pebble-user@... https://lists.sourceforge.net/lists/listinfo/pebble-user |
| Free embeddable forum powered by Nabble | Forum Help |