pippo
pippo copied to clipboard
ERROR ro.pippo.core.PippoFilter - Cannot create application with className 'com.ab.abc.APIApplication'
at ro.pippo.core.PippoFilter.createApplication(PippoFilter.java:271)
at ro.pippo.core.PippoFilter.init(PippoFilter.java:77)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
at org.apache.catalina.core.ApplicationFilterConfig.
APIApplication extends ro.pippo.core.Application
How is packaged the application, it's a war file deployed in Tomcat or you use the Pippo launcher from a main static void method? Please give us more information.
yes a war file deployed in Tomcat.
my web.xml:
<filter>
<filter-name>pippo</filter-name>
<filter-class>ro.pippo.core.PippoFilter</filter-class>
<init-param>
<param-name>applicationClassName</param-name>
<param-value>com.ab.abc.APIApplication</param-value>
</init-param>
</filter>
In this case please take a look inside of your war
file (it's a zip) to see if you find your application class in WEB-INF/classes
directory.
I suspect that your war file doesn't contains all your classes.
I recommand you to develope your application using Pippo launcher (to use the Tomcat container embeded in your application via the pippo-tomcat
module). Deploy your application as war file only at final and only if you have a constrain (your employer has explicitly requested you to provide a war file). In this mode you are more productive.
WEB-INF/classes
inside my war file i have all classes include APIApplication.class
I will try myself to reproduce the problem and I will come back with a response asap.