7 Replies Latest reply on Jul 15, 2010 2:30 AM by csenes csenes

    How can I resolve this problem

    csenes csenes Newbie

      I dont know how this is happened and I cant resolve this please help me I wait yours answer


      Note: I dont know which class throw this exception because of that I didnt put another codes.thanks for any replies


      org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.navigation.pages
           at org.jboss.seam.Component.newInstance(Component.java:2144)
           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:116)
           at org.jboss.seam.init.Initialization.init(Initialization.java:740)
           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4632)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:5312)
           at com.sun.enterprise.web.WebModule.start(WebModule.java:353)
           at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
           at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
           at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
           at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
           at java.util.concurrent.FutureTask.run(FutureTask.java:138)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
           at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.RuntimeException: org.dom4j.DocumentException: Error on line 2 of document  : Premature end of file. Nested exception: Premature end of file.
           at org.jboss.seam.navigation.Pages.getDocumentRoot(Pages.java:1080)
           at org.jboss.seam.navigation.Pages.parse(Pages.java:1066)
           at org.jboss.seam.navigation.Pages.parsePages(Pages.java:173)
           at org.jboss.seam.navigation.Pages.initialize(Pages.java:149)
           at org.jboss.seam.navigation.Pages.create(Pages.java:110)
           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:2249)
           at org.jboss.seam.Component.callCreateMethod(Component.java:2172)
           at org.jboss.seam.Component.newInstance(Component.java:2132)
           ... 17 more
      Caused by: org.dom4j.DocumentException: Error on line 2 of document  : Premature end of file. Nested exception: Premature end of file.
           at org.dom4j.io.SAXReader.read(SAXReader.java:482)
           at org.dom4j.io.SAXReader.read(SAXReader.java:343)
           at org.jboss.seam.util.XML.getRootElement(XML.java:24)
           at org.jboss.seam.navigation.Pages.getDocumentRoot(Pages.java:1076)
           ... 30 more

      SEVERE: PWC1306: Startup of context /dokumanyonsist failed due to previous errors
      SEVERE: WebModule[/dokumanyonsist]PWC1277: Exception sending context destroyed event to listener instance of class org.jboss.seam.servlet.SeamListener
      java.lang.NullPointerException
           at org.jboss.seam.core.Events.raiseEvent(Events.java:63)
           at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:236)
           at org.jboss.seam.contexts.Lifecycle.endApplication(Lifecycle.java:61)
           at org.jboss.seam.contexts.ServletLifecycle.endApplication(ServletLifecycle.java:149)
           at org.jboss.seam.servlet.SeamListener.contextDestroyed(SeamListener.java:41)
           at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4676)
           at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5481)
           at com.sun.enterprise.web.WebModule.stop(WebModule.java:384)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:5339)
           at com.sun.enterprise.web.WebModule.start(WebModule.java:353)
           at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
           at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
           at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
           at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
           at java.util.concurrent.FutureTask.run(FutureTask.java:138)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
           at java.lang.Thread.run(Thread.java:619)


        • 1. Re: How can I resolve this problem
          Adrian Mitev Master

          Do you have any component anotated with @Startup?

          • 2. Re: How can I resolve this problem
            csenes csenes Newbie

            No I havent, before meet to this error I change pages.xml but I rolled back suddenly , For all that this error happened and app doesnt work

            • 3. Re: How can I resolve this problem
              csenes csenes Newbie

              csenes csenes wrote on Jul 14, 2010 08:55:


              No I havent, before meet to this error I change pages.xml but I rolled back suddenly , For all that this error happened and app doesnt work


              Click HELP for text formatting instructions. Then edit this text and check the preview.


              I remember now I added a page.xml for a page ,after that I removed.Error occur after this.Now, Everything is same like worked earlier version, but stil doesnt work and get error above that

              • 4. Re: How can I resolve this problem
                Serkan Eskici Novice

                You most probably have an error in your pages.xml.


                Check the syntax or validate it in within Eclipse.

                • 5. Re: How can I resolve this problem
                  csenes csenes Newbie

                  I switched  everything to earlier worked version ,pages.xml too, everythink seems ok but still doesnt work, I did deploy,explode,clear,clean..Still doesnt work :( please help me

                  • 6. Re: How can I resolve this problem
                    csenes csenes Newbie

                    java.lang.RuntimeException: org.dom4j.DocumentException: Error on line 2 of document  : Premature end of file. Nested exception: Premature end of file.


                    which type an error cause of that.I couldnt understand.I havent ever meet this error.I search everywhere to find a solution.Unfourtunatelly I didnt find.

                    • 7. Re: How can I resolve this problem
                      csenes csenes Newbie

                      *SEVERE: WebModule[/dokumanyonsist]PWC1275: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
                      org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.navigation.pages
                           at org.jboss.seam.Component.newInstance(Component.java:2144)
                           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:116)
                           at org.jboss.seam.init.Initialization.init(Initialization.java:740)
                           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
                           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4632)
                           at org.apache.catalina.core.StandardContext.start(StandardContext.java:5312)
                           at com.sun.enterprise.web.WebModule.start(WebModule.java:353)
                           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:989)
                           at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:973)
                           at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:704)
                           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1627)
                           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1232)
                           at com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules(WebContainer.java:1159)
                           at com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:141)
                           at com.sun.enterprise.server.ExtendedApplicationLoader.doLoad(ExtendedApplicationLoader.java:134)
                           at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:238)
                           at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:336)
                           at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:210)
                           at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:645)
                           at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:959)
                           at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:943)
                           at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:467)
                           at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:182)
                           at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
                           at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:231)
                           at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
                           at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
                           at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
                           at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
                           at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:609)
                           at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:653)
                           at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:773)
                           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 com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:381)
                           at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:364)
                           at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:477)
                           at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
                           at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
                           at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           at java.lang.reflect.Method.invoke(Method.java:597)
                           at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
                           at $Proxy1.invoke(Unknown Source)
                           at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
                           at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
                           at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:69)
                           at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:155)
                           at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:122)
                           at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:193)
                           at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
                           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
                           at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
                           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
                           at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
                           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
                           at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
                           at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
                           at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
                           at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
                           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
                           at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
                           at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
                           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
                           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
                           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
                           at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
                           at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
                           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
                           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
                           at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
                           at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
                           at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
                           at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
                           at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
                           at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
                           at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
                           at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
                           at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)*


                      Caused by: org.dom4j.DocumentException: Error on line 2 of document  : Premature end of file. Nested exception: Premature end of file.
                           
                      at org.dom4j.io.SAXReader.read(SAXReader.java:482)
                           at org.dom4j.io.SAXReader.read(SAXReader.java:343)
                           at org.jboss.seam.util.XML.getRootElement(XML.java:24)
                           at org.jboss.seam.navigation.Pages.getDocumentRoot(Pages.java:1076)
                           ... 95 more