Hi,

I was trying to deploy a smx3 war file I had to smx4 but it fails on deploy
with ClassCastExceptions.

I have tracked this down to code in ops4j where it tries to create a new
instance of your servlet.

eg. CXFServlet.

class RegisterWebAppVisitorWC implements WebAppVisitor {
....
public void visit( final WebAppServlet webAppServlet )   {
.....
try
        {
            final Servlet servlet = RegisterWebAppVisitorHS.newInstance(
                Servlet.class,
                m_bundleClassLoader,
                webAppServlet.getServletClass()
            );

....
}


This problem is that the geronimo-servlet_2.5_spec jar is within my war file
- its brought in by a dependency on cxf-rt-transports-http-jetty

So to get it to work in smx4 I have to remove my dependency on
cxf-rt-transports-http-jetty.

Its needed for smx3 as you will be deploying to either jetty standalone or
tomcat where as jetty is embedded in smx4.

I will add the above to the migration guide - unless I have missed something
?

cheers, Edell.

Reply via email to