ClassNotFoundException

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

ClassNotFoundException

sammy
I have added dependency for hippo-cms-api in my pom.xml and i am able to import class AbstractWorkflowDialog in the java code at compile time.

But when I run the project it throws classnotfoundexception -

Mar 13, 2013 3:53:11 PM org.apache.catalina.core.StandardWrapperValve invoke
[WARNING] [talledLocalContainer] SEVERE: Servlet.service() for servlet default threw exception
[WARNING] [talledLocalContainer] java.lang.ClassNotFoundException: org.hippoecm.addon.workflow.AbstractWorkflowDialog
[WARNING] [talledLocalContainer] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
[WARNING] [talledLocalContainer] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
[WARNING] [talledLocalContainer] at java.lang.ClassLoader.defineClass1(Native Method)
[WARNING] [talledLocalContainer] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
[WARNING] [talledLocalContainer] at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
[WARNING] [talledLocalContainer] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
[WARNING] [talledLocalContainer] at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2818)
[WARNING] [talledLocalContainer] at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
[WARNING] [talledLocalContainer] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
[WARNING] [talledLocalContainer] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
[WARNING] [talledLocalContainer] at com.nps.code.MobexFolderActionsWorkflowPlugin$1.createRequestDialog(MobexFolderActionsWorkflowPlugin.java:139)
[WARNING] [talledLocalContainer] at org.hippoecm.addon.workflow.StdWorkflow.invoke(StdWorkflow.java:145)
[WARNING] [talledLocalContainer] at org.hippoecm.addon.workflow.ActionDescription.run(ActionDescription.java:80)
[WARNING] [talledLocalContainer] at org.hippoecm.addon.workflow.MenuItem$1.onClick(MenuItem.java:39)
[WARNING] [talledLocalContainer] at org.hippoecm.addon.workflow.MenuLink$1.onEvent(MenuLink.java:45)
[WARNING] [talledLocalContainer] at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
[WARNING] [talledLocalContainer] at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:302)
[WARNING] [talledLocalContainer] at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:157)
[WARNING] [talledLocalContainer] at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
[WARNING] [talledLocalContainer] at org.hippoecm.frontend.PluginRequestCycleProcessor.processEvents(PluginRequestCycleProcessor.java:95)
[WARNING] [talledLocalContainer] at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1252)
[WARNING] [talledLocalContainer] at org.apache.wicket.RequestCycle.step(RequestCycle.java:1331)
[WARNING] [talledLocalContainer] at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)
[WARNING] [talledLocalContainer] at org.apache.wicket.RequestCycle.request(RequestCycle.java:546)
[WARNING] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
[WARNING] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[WARNING] [talledLocalContainer] at org.hippoecm.frontend.ResourceRewriteFilter.doFilter(ResourceRewriteFilter.java:129)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[WARNING] [talledLocalContainer] at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:56)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
[WARNING] [talledLocalContainer] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[WARNING] [talledLocalContainer] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[WARNING] [talledLocalContainer] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
[WARNING] [talledLocalContainer] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
[WARNING] [talledLocalContainer] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
[WARNING] [talledLocalContainer] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
[WARNING] [talledLocalContainer] at java.lang.Thread.run(Thread.java:680)

Please advise.


Sameera Thangudu
130 W 42nd Street | New York, NY 10036
sthangudu@northps.com | www.northps.com | WE LEAD WITH EXPERIENCE.
Ard
Reply | Threaded
Open this post in threaded view
|

Re: ClassNotFoundException

Ard
On Wed, Mar 13, 2013 at 8:53 PM, sammy <[hidden email]> wrote:
> I have added dependency for hippo-cms-api in my pom.xml and i am able to
> import class AbstractWorkflowDialog in the java code at compile time.

you can check whether the jar is in the lib dir of your webapp.
Perhaps you have added it as provided.

Also I am not quite sure what kind of app you are building that you
need to add the hippo-cms-api

Regards Ard

>
> But when I run the project it throws classnotfoundexception -
>
> Mar 13, 2013 3:53:11 PM org.apache.catalina.core.StandardWrapperValve invoke
> [WARNING] [talledLocalContainer] SEVERE: Servlet.service() for servlet
> default threw exception
> [WARNING] [talledLocalContainer] java.lang.ClassNotFoundException:
> org.hippoecm.addon.workflow.AbstractWorkflowDialog
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
> [WARNING] [talledLocalContainer]        at
> java.lang.ClassLoader.defineClass1(Native Method)
> [WARNING] [talledLocalContainer]        at
> java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
> [WARNING] [talledLocalContainer]        at
> java.lang.ClassLoader.defineClass(ClassLoader.java:615)
> [WARNING] [talledLocalContainer]        at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2818)
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
> [WARNING] [talledLocalContainer]        at
> com.nps.code.MobexFolderActionsWorkflowPlugin$1.createRequestDialog(MobexFolderActionsWorkflowPlugin.java:139)
> [WARNING] [talledLocalContainer]        at
> org.hippoecm.addon.workflow.StdWorkflow.invoke(StdWorkflow.java:145)
> [WARNING] [talledLocalContainer]        at
> org.hippoecm.addon.workflow.ActionDescription.run(ActionDescription.java:80)
> [WARNING] [talledLocalContainer]        at
> org.hippoecm.addon.workflow.MenuItem$1.onClick(MenuItem.java:39)
> [WARNING] [talledLocalContainer]        at
> org.hippoecm.addon.workflow.MenuLink$1.onEvent(MenuLink.java:45)
> [WARNING] [talledLocalContainer]        at
> org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
> [WARNING] [talledLocalContainer]        at
> org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:302)
> [WARNING] [talledLocalContainer]        at
> org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:157)
> [WARNING] [talledLocalContainer]        at
> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
> [WARNING] [talledLocalContainer]        at
> org.hippoecm.frontend.PluginRequestCycleProcessor.processEvents(PluginRequestCycleProcessor.java:95)
> [WARNING] [talledLocalContainer]        at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1252)
> [WARNING] [talledLocalContainer]        at
> org.apache.wicket.RequestCycle.step(RequestCycle.java:1331)
> [WARNING] [talledLocalContainer]        at
> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)
> [WARNING] [talledLocalContainer]        at
> org.apache.wicket.RequestCycle.request(RequestCycle.java:546)
> [WARNING] [talledLocalContainer]        at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
> [WARNING] [talledLocalContainer]        at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> [WARNING] [talledLocalContainer]        at
> org.hippoecm.frontend.ResourceRewriteFilter.doFilter(ResourceRewriteFilter.java:129)
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> [WARNING] [talledLocalContainer]        at
> org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:56)
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> [WARNING] [talledLocalContainer]        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
> [WARNING] [talledLocalContainer]        at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
> [WARNING] [talledLocalContainer]        at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
> [WARNING] [talledLocalContainer]        at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> [WARNING] [talledLocalContainer]        at java.lang.Thread.run(Thread.java:680)
>
> Please advise.
>
>
>
>
>
>
> -----
> Sameera Thangudu
> 130 W 42nd Street | New York, NY 10036
> [hidden email] | www.northps.com | WE LEAD WITH EXPERIENCE.
> --
> View this message in context: http://hippo.2275632.n2.nabble.com/ClassNotFoundException-tp7580643.html
> Sent from the Hippo CMS 7 mailing list archive at Nabble.com.
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/forums.html



--
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 1 Broadway, Cambridge, MA 02142

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com
_______________________________________________
Hippo-cms7-user mailing list and forums
http://www.onehippo.org/cms7/support/forums.html
Reply | Threaded
Open this post in threaded view
|

Re: ClassNotFoundException

sammy
Yes. I can see the jar in my local maven repository.

I am building a module for the hippo cms.
My module creates a new workflow action at the folder level in the hippo cms.
I want to show a dialogue box upon clicking that workflow action(extending AbstractWorflowDialog here). But when my program throws classnotfoundexception. It does not show any error at compile time though.
Sameera Thangudu
130 W 42nd Street | New York, NY 10036
sthangudu@northps.com | www.northps.com | WE LEAD WITH EXPERIENCE.
Ard
Reply | Threaded
Open this post in threaded view
|

Re: ClassNotFoundException

Ard
On Wed, Mar 13, 2013 at 9:19 PM, sammy <[hidden email]> wrote:
> Yes. I can see the jar in my local maven repository.

Ok, well that's a start. But it would help to know if the jar ends up
in the war.... S:

>
> I am building a module for the hippo cms.
> My module creates a new workflow action at the folder level in the hippo
> cms.
> I want to show a dialogue box upon clicking that workflow action(extending
> AbstractWorflowDialog here). But when my program throws
> classnotfoundexception. It does not show any error at compile time though.
>
>
>
> -----
> Sameera Thangudu
> 130 W 42nd Street | New York, NY 10036
> [hidden email] | www.northps.com | WE LEAD WITH EXPERIENCE.
> --
> View this message in context: http://hippo.2275632.n2.nabble.com/ClassNotFoundException-tp7580643p7580645.html
> Sent from the Hippo CMS 7 mailing list archive at Nabble.com.
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/forums.html



--
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 1 Broadway, Cambridge, MA 02142

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com
_______________________________________________
Hippo-cms7-user mailing list and forums
http://www.onehippo.org/cms7/support/forums.html
Reply | Threaded
Open this post in threaded view
|

Re: ClassNotFoundException

Frank van Lankvelt
In reply to this post by sammy
the
   mvn dependency:tree
output should tell you if the hippo-cms-api jar is pulled in with
'compile' or 'provided' scope.  With 'provided' scope, it will be
available on the  compile classpath, but not (necessarily) the runtime
classpath.

cheers, Frank

On Wed, Mar 13, 2013 at 9:19 PM, sammy <[hidden email]> wrote:

> Yes. I can see the jar in my local maven repository.
>
> I am building a module for the hippo cms.
> My module creates a new workflow action at the folder level in the hippo
> cms.
> I want to show a dialogue box upon clicking that workflow action(extending
> AbstractWorflowDialog here). But when my program throws
> classnotfoundexception. It does not show any error at compile time though.
>
>
>
> -----
> Sameera Thangudu
> 130 W 42nd Street | New York, NY 10036
> [hidden email] | www.northps.com | WE LEAD WITH EXPERIENCE.
> --
> View this message in context: http://hippo.2275632.n2.nabble.com/ClassNotFoundException-tp7580643p7580645.html
> Sent from the Hippo CMS 7 mailing list archive at Nabble.com.
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/forums.html



--
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 1 Broadway, Cambridge, MA 02142

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com
_______________________________________________
Hippo-cms7-user mailing list and forums
http://www.onehippo.org/cms7/support/forums.html