[JBoss JIRA] (JBSEAM-4903) NullPointerException in SeamListener
by Marek Novotny (JIRA)
[ https://issues.jboss.org/browse/JBSEAM-4903?page=com.atlassian.jira.plugi... ]
Marek Novotny commented on JBSEAM-4903:
---------------------------------------
[~oscar.mauricio.gonzalez.botero] the solution was to use newer AS 7.1.1.Final. I am not saying you will fix it too, but that is what [~fhighlander] reported ;)
> NullPointerException in SeamListener
> ------------------------------------
>
> Key: JBSEAM-4903
> URL: https://issues.jboss.org/browse/JBSEAM-4903
> Project: Seam 2
> Issue Type: Bug
> Components: Framework
> Affects Versions: 2.2.1.Final
> Environment: Ubuntu 11.10
> Java 7
> JBoss AS 7.1.0CR1b
> Eclipse Indigo
> Reporter: Fagner Silva
> Priority: Blocker
> Attachments: portalusuario.war.tar.gz
>
> Original Estimate: 2 days
> Remaining Estimate: 2 days
>
> I'm trying to migrate an application from Seam 2 to JBoss 7. I followed these steps (https://community.jboss.org/blogs/marek-novotny/2011/07/29/seam-2-booking...), but i'm getting this error:
> 11:27:18,627 Grave [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-4) JSF1051: Service entry 'org.jboss.as.web.deployment.jsf.JsfInjectionProvider' does not extend DiscoverableInjectionProvider. Entry will be ignored.
> 11:27:18,629 Informações [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-4) JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
> 11:27:19,187 ERROR [stderr] (MSC service thread 1-4) log4j:WARN No appenders could be found for logger (javax.servlet.ServletContextListener).
> 11:27:19,187 ERROR [stderr] (MSC service thread 1-4) log4j:WARN Please initialize the log4j system properly.
> 11:27:19,188 ERROR [stderr] (MSC service thread 1-4) log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
> 11:27:30,098 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/portalusuario]] (MSC service thread 1-4) Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener: java.lang.NullPointerException
> at org.jboss.seam.init.Initialization.installComponents(Initialization.java:1170) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
> at org.jboss.seam.init.Initialization.init(Initialization.java:737) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
> at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
> at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.7.Final.jar:]
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.7.Final.jar:]
> at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:77) [jboss-as-web-7.1.0.CR1b.jar:7.1.0.CR1b]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [:1.7.0_01]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.7.0_01]
> at java.lang.Thread.run(Unknown Source) [:1.7.0_01]
> 11:27:30,102 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-4) Error listenerStart
> 11:27:30,103 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-4) Context [/portalusuario] startup failed due to previous errors
> 11:27:30,109 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.web.deployment.default-host./portalusuario: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./portalusuario: failed to start context
> at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:82)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [:1.7.0_01]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.7.0_01]
> at java.lang.Thread.run(Unknown Source) [:1.7.0_01]
> 11:27:30,319 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015856: Undeploy of deployment "portalusuario.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./portalusuario" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./portalusuario: failed to start context"}}
> 11:27:30,321 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
> JBAS014777: Services which failed to start: service jboss.web.deployment.default-host./portalusuario: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./portalusuario: failed to start context
> 11:27:30,326 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./portalusuario" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./portalusuario: failed to start context"}}}}
> 11:27:30,365 INFO [org.jboss.jpa] (MSC service thread 1-7) JBAS011403: Stopping Persistence Unit Service 'portalusuario.war#portalusuarioDB'
> 11:27:30,366 INFO [org.hibernate.impl.SessionFactoryImpl] (MSC service thread 1-7) closing
> 11:27:30,454 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) Stopped deployment portalusuario.war in 133ms
> Since I hadn't found any hint to that kind of error I'm reporting here.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (JBSEAM-529) NullPointerException in org.jboss.seam.deployment.NamespaceScanner
by Marek Novotny (JIRA)
[ https://issues.jboss.org/browse/JBSEAM-529?page=com.atlassian.jira.plugin... ]
Marek Novotny commented on JBSEAM-529:
--------------------------------------
[~oscar.mauricio.gonzalez.botero] this issue is for very old version of Seam - 1.x
If you have issues with Seam migration 2.2 -> 2.3, your root cause is definitely different and I would recommend to use Seam 2 forum and if you provide more details there you certanly get some help.
> NullPointerException in org.jboss.seam.deployment.NamespaceScanner
> ------------------------------------------------------------------
>
> Key: JBSEAM-529
> URL: https://issues.jboss.org/browse/JBSEAM-529
> Project: Seam 2
> Issue Type: Bug
> Environment: Jboss Seam CR2 cvs head
> Reporter: Stas Garifulin
> Assignee: Norman Richards
> Fix For: 1.1.0.CR2
>
>
> Latest Jboss Seam throws during startup:
> ERROR 28-11 15:53:56,534 - Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener -- java.lang.NullPointerException
> at org.jboss.seam.deployment.NamespaceScanner.handleItem(NamespaceScanner.java:48)
> at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:130)
> at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:126)
> at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:126)
> at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:126)
> at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:126)
> at org.jboss.seam.deployment.Scanner.scan(Scanner.java:89)
> at org.jboss.seam.deployment.NamespaceScanner.getPackages(NamespaceScanner.java:30)
> at org.jboss.seam.init.Initialization.addNamespaces(Initialization.java:545)
> at org.jboss.seam.init.Initialization.<init>(Initialization.java:79)
> at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:65)
> at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
> at org.apache.catalina.core.StandardService.start(StandardService.java:450)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> 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:585)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
> I have packages with stubs generated by Jaxb2 in WEB-INF/class directory of my war. Seam fails to obtain Package object for these packages.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (JBSEAM-529) NullPointerException in org.jboss.seam.deployment.NamespaceScanner
by oscar mauricio gonzalez botero (JIRA)
[ https://issues.jboss.org/browse/JBSEAM-529?page=com.atlassian.jira.plugin... ]
oscar mauricio gonzalez botero commented on JBSEAM-529:
-------------------------------------------------------
Hi, can you help me? i have the same problem with jboss 7.1 and seam 2.3.1, migrating from jboss 4.2, seam 2.2, jsf 1.2 to 2.1, hibernate 3 to 4. i have create the required modules. thanks for any help !
> NullPointerException in org.jboss.seam.deployment.NamespaceScanner
> ------------------------------------------------------------------
>
> Key: JBSEAM-529
> URL: https://issues.jboss.org/browse/JBSEAM-529
> Project: Seam 2
> Issue Type: Bug
> Environment: Jboss Seam CR2 cvs head
> Reporter: Stas Garifulin
> Assignee: Norman Richards
> Fix For: 1.1.0.CR2
>
>
> Latest Jboss Seam throws during startup:
> ERROR 28-11 15:53:56,534 - Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener -- java.lang.NullPointerException
> at org.jboss.seam.deployment.NamespaceScanner.handleItem(NamespaceScanner.java:48)
> at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:130)
> at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:126)
> at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:126)
> at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:126)
> at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:126)
> at org.jboss.seam.deployment.Scanner.scan(Scanner.java:89)
> at org.jboss.seam.deployment.NamespaceScanner.getPackages(NamespaceScanner.java:30)
> at org.jboss.seam.init.Initialization.addNamespaces(Initialization.java:545)
> at org.jboss.seam.init.Initialization.<init>(Initialization.java:79)
> at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:65)
> at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
> at org.apache.catalina.core.StandardService.start(StandardService.java:450)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> 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:585)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
> I have packages with stubs generated by Jaxb2 in WEB-INF/class directory of my war. Seam fails to obtain Package object for these packages.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months
[JBoss JIRA] (JBSEAM-4903) NullPointerException in SeamListener
by oscar mauricio gonzalez botero (JIRA)
[ https://issues.jboss.org/browse/JBSEAM-4903?page=com.atlassian.jira.plugi... ]
oscar mauricio gonzalez botero commented on JBSEAM-4903:
--------------------------------------------------------
hi, i need help with this same problem, can you tell me how you solve this problem? i can´t found documentation in anywhere !
> NullPointerException in SeamListener
> ------------------------------------
>
> Key: JBSEAM-4903
> URL: https://issues.jboss.org/browse/JBSEAM-4903
> Project: Seam 2
> Issue Type: Bug
> Components: Framework
> Affects Versions: 2.2.1.Final
> Environment: Ubuntu 11.10
> Java 7
> JBoss AS 7.1.0CR1b
> Eclipse Indigo
> Reporter: Fagner Silva
> Priority: Blocker
> Attachments: portalusuario.war.tar.gz
>
> Original Estimate: 2 days
> Remaining Estimate: 2 days
>
> I'm trying to migrate an application from Seam 2 to JBoss 7. I followed these steps (https://community.jboss.org/blogs/marek-novotny/2011/07/29/seam-2-booking...), but i'm getting this error:
> 11:27:18,627 Grave [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-4) JSF1051: Service entry 'org.jboss.as.web.deployment.jsf.JsfInjectionProvider' does not extend DiscoverableInjectionProvider. Entry will be ignored.
> 11:27:18,629 Informações [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-4) JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
> 11:27:19,187 ERROR [stderr] (MSC service thread 1-4) log4j:WARN No appenders could be found for logger (javax.servlet.ServletContextListener).
> 11:27:19,187 ERROR [stderr] (MSC service thread 1-4) log4j:WARN Please initialize the log4j system properly.
> 11:27:19,188 ERROR [stderr] (MSC service thread 1-4) log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
> 11:27:30,098 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/portalusuario]] (MSC service thread 1-4) Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener: java.lang.NullPointerException
> at org.jboss.seam.init.Initialization.installComponents(Initialization.java:1170) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
> at org.jboss.seam.init.Initialization.init(Initialization.java:737) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
> at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
> at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.7.Final.jar:]
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.7.Final.jar:]
> at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:77) [jboss-as-web-7.1.0.CR1b.jar:7.1.0.CR1b]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [:1.7.0_01]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.7.0_01]
> at java.lang.Thread.run(Unknown Source) [:1.7.0_01]
> 11:27:30,102 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-4) Error listenerStart
> 11:27:30,103 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-4) Context [/portalusuario] startup failed due to previous errors
> 11:27:30,109 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.web.deployment.default-host./portalusuario: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./portalusuario: failed to start context
> at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:82)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [:1.7.0_01]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.7.0_01]
> at java.lang.Thread.run(Unknown Source) [:1.7.0_01]
> 11:27:30,319 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015856: Undeploy of deployment "portalusuario.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./portalusuario" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./portalusuario: failed to start context"}}
> 11:27:30,321 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
> JBAS014777: Services which failed to start: service jboss.web.deployment.default-host./portalusuario: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./portalusuario: failed to start context
> 11:27:30,326 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./portalusuario" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./portalusuario: failed to start context"}}}}
> 11:27:30,365 INFO [org.jboss.jpa] (MSC service thread 1-7) JBAS011403: Stopping Persistence Unit Service 'portalusuario.war#portalusuarioDB'
> 11:27:30,366 INFO [org.hibernate.impl.SessionFactoryImpl] (MSC service thread 1-7) closing
> 11:27:30,454 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) Stopped deployment portalusuario.war in 133ms
> Since I hadn't found any hint to that kind of error I'm reporting here.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 7 months