2 Replies Latest reply on Jun 18, 2010 11:12 AM by lolotak

    Seam Wiki example problem - Could not instantiate Seam component: pluginRegistry

    lolotak

      Hi everybody,


      I'm having problems with Wiki example setup. I have tried it using following combinations of setup environment (i tried about 10 combinations of different setup):


      jdk5 / jdk6
      jboss-4.2.2.GA / jboss-4.2.3.GA / jboss-4.2.3.GA-jdk6
      jboss-seam-2.1.1.GA / jboss-seam-2.2.0.GA / jboss-seam-2.2.1.CR1


      With every configuration, I have used appropriate version of the example (from used version of Seam). I have followed instructions for development profile, I tried also production profile but didn't work. There is still following error (taken from TestNG results):




      <![CDATA[org.jboss.seam.InstantiationException: Could not instantiate Seam component: pluginRegistry
           at org.jboss.seam.Component.newInstance(Component.java:2156)
           at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
           at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
           at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:143)
           at org.jboss.seam.init.Initialization.init(Initialization.java:747)
           at org.jboss.seam.mock.AbstractSeamTest.startSeam(AbstractSeamTest.java:919)
           at org.jboss.seam.mock.SeamTest.startSeam(SeamTest.java:58)
           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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:607)
           at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:417)
           at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:154)
           at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:88)
           at org.testng.SuiteRunner.privateRun(SuiteRunner.java:284)
           at org.testng.SuiteRunner.run(SuiteRunner.java:204)
           at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:877)
           at org.testng.TestNG.runSuitesLocally(TestNG.java:842)
           at org.testng.TestNG.run(TestNG.java:751)
           at org.testng.TestNG.privateMain(TestNG.java:914)
           at org.testng.TestNG.main(TestNG.java:887)
      Caused by: org.jboss.seam.wiki.core.exception.InvalidWikiConfigurationException: Could not find message key for label/description: basic.label
           at org.jboss.seam.wiki.core.plugin.binding.lacewiki.PluginBinder.getMessage(PluginBinder.java:285)
           at org.jboss.seam.wiki.core.plugin.binding.lacewiki.PluginBinder.bindPlugins(PluginBinder.java:67)
           at org.jboss.seam.wiki.core.plugin.binding.PluginBinder.installPlugins(PluginBinder.java:27)
           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.jboss.seam.util.Reflections.invoke(Reflections.java:22)
           at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
           at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
           at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
           at org.jboss.seam.wiki.core.plugin.binding.lacewiki.PluginBinder_$$_javassist_seam_1.installPlugins(PluginBinder_$$_javassist_seam_1.java)
           at org.jboss.seam.wiki.core.plugin.PluginRegistry.startup(PluginRegistry.java:106)
           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.jboss.seam.util.Reflections.invoke(Reflections.java:22)
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
           at org.jboss.seam.Component.callComponentMethod
      
      (Component.java:2261)
           at org.jboss.seam.Component.callCreateMethod(Component.java:2184)
           at org.jboss.seam.Component.newInstance(Component.java:2144)
           ... 21 more



      My default locale is English (en), I have also tried to use universal locale, but didn't help. Any help would be highly appreciated.


      Thank you,


      Ondrej