Hi
on trunk I don't get a ClassNotFound but OpenEJB is started too late to
handle the application deploying it.
This initializer should help:
public class OpenEJBEmbeddedRunner implements ServletContainerInitializer {
@Override
public void onStartup(final Set<Class<?>> classes, final ServletContext
ctx) throws ServletException {
final LoaderServlet runner = new LoaderServlet();
runner.init(new ServletConfig() {
@Override
public String getServletName() {
return "TomEE";
}
@Override
public ServletContext getServletContext() {
return ctx;
}
@Override
public String getInitParameter(String name) {
return null;
}
@Override
public Enumeration<String> getInitParameterNames() {
return
Collections.enumeration(Collections.<String>emptyList());
}
});
ctx.log("Embedded TomEE started");
final TomcatWebAppBuilder builder =
SystemInstance.get().getComponent(TomcatWebAppBuilder.class);
builder.configureStart(StandardContext.class.cast(Reflections.get(Reflections.get(ctx,
"context"), "context")));
}
}
add tomee-catalina as provided and tomcat-catalina to compile it - provided
too.
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-05-28 20:37 GMT+02:00 Alex Wede <[email protected]>:
> Hello Andy and Romain,
>
> @Andy
> I did not see your question, now I am on the mailing list.
> I did the war overlay. But I am getting a ClassNotFoundException.
> And I do not know what the problem is. I think that I need to modify the
> classpath
> a bit, but how ...
>
> Thank you for your help
>
> Alex Wede
>
> PS: I sent my pom.xml and my web.xml
>