[jboss-dev-forums] [JBoss AS7 Development] - Re: Embedded AS

Brian Stansberry do-not-reply at jboss.com
Thu Nov 18 03:47:46 EST 2010


Brian Stansberry [http://community.jboss.org/people/bstansberry%40jboss.com] created the discussion

"Re: Embedded AS"

To view the discussion, visit: http://community.jboss.org/message/571727#571727

--------------------------------------------------------------
Essentially what you're doing with the separate DemosTestImpl class and the separate "modular-test" maven module is trying to control what's on the app classpath. That feels like something the test framework could do itself. I took a shot at that; see  https://github.com/bstansberry/jboss-as/commit/2d5ef5c15d1c5fbb664c7ba2b89fbc79cffdc0d6#diff-0 https://github.com/bstansberry/jboss-as/commit/2d5ef5c15d1c5fbb664c7ba2b89fbc79cffdc0d6#diff-0 .

I got further with that than I did before, but am getting this failure. I'm hoping it's something simple.

> java.lang.ExceptionInInitializerError
>     at org.jboss.as.embedded.modular.server.ModularEmbeddedServer.start(ModularEmbeddedServer.java:165)
>     at org.jboss.test.as.modular.demos.impl.DemosTestCase.startServer(DemosTestCase.java:67)
>     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.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>     at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
>     at org.jboss.as.embedded.modular.bootstrap.DelegatingModularJunitTestRunner.run(DelegatingModularJunitTestRunner.java:116)
>     at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
>     at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
>     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
>     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
>     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
>     at org.jboss.logmanager.Logger.getLogger(Logger.java:60)
>     at org.jboss.logging.JBossLogManagerProvider.doGetLogger(JBossLogManagerProvider.java:55)
>     at org.jboss.logging.JBossLogManagerProvider.getLogger(JBossLogManagerProvider.java:46)
>     at org.jboss.logging.Logger.getLogger(Logger.java:2222)
>     at org.jboss.as.server.StandaloneServer.<clinit>(StandaloneServer.java:48)
>     ... 19 more

BTW, ModularEmbeddedServer.shutdown() then throws an NPE because it assumes the serverController field was initialized:

> java.lang.NullPointerException
>     at org.jboss.as.embedded.modular.server.ModularEmbeddedServer.shutdown(ModularEmbeddedServer.java:185)
>     at org.jboss.test.as.modular.demos.impl.DemosTestCase.stopServer(DemosTestCase.java:73)
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/571727#571727]

Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101118/2b0df3a7/attachment.html 


More information about the jboss-dev-forums mailing list