Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR ro.pippo.core.PippoFilter - Cannot create application with className 'com.ab.abc.APIApplication' #516

Open
Widiyanto opened this issue May 29, 2019 · 7 comments

Comments

@Widiyanto
Copy link

No description provided.

@Widiyanto
Copy link
Author

Widiyanto commented May 29, 2019

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.(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:5037)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5739)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1707)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1697)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: com.ab.abc.APIApplication
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1955)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1798)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at ro.pippo.core.PippoFilter.createApplication(PippoFilter.java:267)
... 13 more

@Widiyanto Widiyanto reopened this May 29, 2019
@Widiyanto
Copy link
Author

APIApplication extends ro.pippo.core.Application

@decebals
Copy link
Member

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.

@Widiyanto
Copy link
Author

Widiyanto commented May 29, 2019

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>

@decebals
Copy link
Member

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.

@Widiyanto
Copy link
Author

WEB-INF/classes inside my war file i have all classes include APIApplication.class

@decebals
Copy link
Member

decebals commented May 29, 2019

I will try myself to reproduce the problem and I will come back with a response asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants