[seam-issues] [JBoss JIRA] (JBSEAM-4903) NullPointerException in SeamListener

Fagner Silva (JIRA) issues at jboss.org
Mon May 4 07:43:45 EDT 2015


    [ https://issues.jboss.org/browse/JBSEAM-4903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13064956#comment-13064956 ] 

Fagner Silva commented on JBSEAM-4903:
--------------------------------------

oscar mauricio, when I migrated to JBoss AS 7.1.1.Final it solved my problem. You can try to do the same.

> 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-example-on-jboss-as-7), 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)



More information about the seam-issues mailing list