error when starting application in webLogic

1

Good morning, I have an error # 500 when I start an application that I have deployed in WebLogic 12c, the error says so

Error 500 - Internal Server Error

  

java.lang.NullPointerException at   org.jboss.weld.context.AbstractBoundContext.deactivate (AbstractBoundContext.java:71)     at   org.jboss.weld.context.http.HttpRequestContextImpl.deactivate (HttpRequestContextImpl.java:68)     at   org.jboss.weld.servlet.WeldListener.requestDestroyed (WeldListener.java:121)     at   weblogic.servlet.internal.EventsManager.notifyRequestLifetimeEvent (EventsManager.java:429)     at   weblogic.servlet.internal.RequestEventsFilter.doFilter (RequestEventsFilter.java30)     at   weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java:79)     at   weblogic.servlet.internal.WebAppServletContext $ ServletInvocationAction.wrapRun (WebAppServletContext.java:3436)     at   weblogic.servlet.internal.WebAppServletContext $ ServletInvocationAction.run (WebAppServletContext.java:3402)     at   weblogic.security.acl.internal.AuthenticatedSubject.doAs (AuthenticatedSubject.java:321)     at   weblogic.security.service.SecurityManager.runAs (SecurityManager.java:120)     at   weblogic.servlet.provider.WlsSubjectHandle.run (WlsSubjectHandle.java:57)     at   weblogic.servlet.internal.WebAppServletContext.doSecuredExecute (WebAppServletContext.java:2285)     at   weblogic.servlet.internal.WebAppServletContext.securedExecute (WebAppServletContext.java:2201)     at   weblogic.servlet.internal.WebAppServletContext.execute (WebAppServletContext.java:2179)     at   weblogic.servlet.internal.ServletRequestImpl.run (ServletRequestImpl.java:1572)     at   weblogic.servlet.provider.ContainerSupportProviderImpl $ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:255)     at weblogic.work.ExecuteThread.execute (ExecuteThread.java:311) at   weblogic.work.ExecuteThread.run (ExecuteThread.java:263)

It should be noted that this application was deployed in tomcat, and  I migrated to the weblogic application server, I verified the  POM files the persistence and I do not find any detail that makes  reference to those errors thrown by the server, if someone has  Any suggestions I thank you

    
asked by Jdeveloper 08.02.2017 в 14:48
source

2 answers

1

and solve it by removing the dependency to which the error refers in this case from the pom file in this case weldServlet

    
answered by 14.02.2017 в 17:43
-1

Good afternoon,

The NullpointerException error is usually more of an application code issue than application server error. From what I read in your post, the error occurs when initializing the application, that is, once deployed in Weblogic (I assume that without errors), when you lift the application and start receiving the requests, it does not initialize and return a 500.

In this sense, the problem seems to point towards the compatibility of the application with Weblogic.

My recommendation is this:

-Assure that the Weblogic classpath contains all the libraries that your application needs. It does not usually work well if those libraries load them from the application.

-Make sure that the version of the libraries of your application does not conflict with the native libraries of Weblogic.

-Make sure you do not have other types of incompatibility, for example if you use persistencies it is possible that the JPA version of Weblogic does not match the last version it uses ... mmm I do not know, for example Spring or Rest, which is possible make it more recent.

I hope it helps you.

Greetings.

    
answered by 08.02.2017 в 19:11