cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolae Petridean <nicolae.petrid...@gmail.com>
Subject Re: Spring MVC loading issue with Apache CXF
Date Mon, 11 Nov 2013 08:29:56 GMT
Hi,
can you share your web.xml ?

Thanks , Nicu


On Mon, Nov 11, 2013 at 9:21 AM, amathewcxf <amathew@tickets.com> wrote:

> I have an existing Spring MVC application and now I wanted to implement
> Apache CXF Service to the existing Spring MVC framework. I am trying to
> have
> 2 context files  - one for the Spring MVC application and other one for the
> CXFServlet. For this, I tried to define 2 context files in the web.xml but
> I
> am not able to get both the application loaded during the tomcat startup.
> Below are the details:web.xml:        contextConfigLocation
> classpath*:META-INF/cxf/cxf.xml,classpath*:META-INF/cxf/cxf-servlet.xml
> org.springframework.web.context.ContextLoaderListener
> org.springframework.web.util.Log4jConfigListener            apiservlet
> com.tickets.mvc.api.ApiServlet            contextConfigLocation
> /WEB-INF/context/apiservlet-context.xml        1          apiservlet
> /api/*            adminservlet
> org.springframework.web.servlet.DispatcherServlet
> contextConfigLocation        /WEB-INF/context/admin-servlet.xml        2
> adminservlet    /management/*          apiservlet-context.xml:
> admin-servlet.xml:<?xml version="1.0" encoding="UTF-8"?>
> Below is the error i am getting when i start the tomcat:SEVERE:
> StandardWrapper.Throwablejava.lang.NullPointerException        at
>
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.destroy(CXFNonSpringServlet.java:172)
> at
>
> org.apache.cxf.transport.servlet.CXFServlet.onApplicationEvent(CXFServlet.java:175)
> at
>
> org.apache.cxf.transport.servlet.CXFServlet.onApplicationEvent(CXFServlet.java:43)
> at
>
> org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
> at
>
> org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
> at
>
> org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
> at
>
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
> at
>
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:442)
> at
>
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
> at
>
> org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
> at
>
> org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
> at
>
> org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
> at javax.servlet.GenericServlet.init(GenericServlet.java:212)        at
>
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
> at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
> at
>
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
> at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
> at
>
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
> at
>
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
> at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> at org.apache.catalina.core.StandardService.start(StandardService.java:519)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:581)I did lot
> of
> time trying to fix this and no luck yet. Any thoughts will be really
> helpful
> to me.Thanks in AdvanceAnil
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Spring-MVC-loading-issue-with-Apache-CXF-tp5736242.html
> Sent from the cxf-dev mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message