java.lang.NoClassDefFoundError: org/apache/commons/validator/routines/UrlValidator

Atlassian JIRA | Jeff Thomas | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    When adding a link to the Application Navigator, Stash responds with "Sorry, something went wrong. Your changes are not being saved." and the link is not added. The following appears in {{atlassian-stash.log}}: {code}2014-11-17 14:58:09,783 ERROR [http-nio-8443-exec-6] jethomas @SD91SLx898x725x0 4d98rb 0:0:0:0:0:0:0:1 "POST /rest/custom-apps/1.0/customapps HTTP/1.1" c.a.p.r.c.e.j.ThrowableExceptionMapper Uncaught exception thrown by REST service: org/apache/commons/validator/routines/UrlValidator java.lang.NoClassDefFoundError: org/apache/commons/validator/routines/UrlValidator at com.atlassian.plugins.custom_apps.rest.data.validation.UrlFieldValidator$Jira.isValid(UrlFieldValidator.java:211) ~[atlassian-nav-links-plugin-3.3.12_1413889954000.jar:na] at com.atlassian.plugins.custom_apps.DefaultCustomAppService.checkField(DefaultCustomAppService.java:379) ~[atlassian-nav-links-plugin-3.3.12_1413889954000.jar:na] at com.atlassian.plugins.custom_apps.DefaultCustomAppService.create(DefaultCustomAppService.java:278) ~[atlassian-nav-links-plugin-3.3.12_1413889954000.jar:na] at com.atlassian.plugins.custom_apps.rest.CustomAppsRestResource.create(CustomAppsRestResource.java:183) ~[atlassian-nav-links-plugin-3.3.12_1413889954000.jar:na] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) [applinks-plugin-4.3.0_1413889972000.jar:na] at com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:86) [StashAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:111) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:100) [TrustedApplicationsFilter.class:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:69) [atlassian-oauth-service-provider-plugin-1.9.2_1413889972000.jar:na] at com.atlassian.analytics.client.filter.DefaultAnalyticsFilter.doFilter(DefaultAnalyticsFilter.java:33) [analytics-client-3.48_1413889974000.jar:na] at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) [AbstractHttpFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doBeforeBeforeLoginFilters(BeforeLoginPluginAuthenticationFilter.java:89) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:75) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:82) [DefaultRequestManager.class:na] at com.hazelcast.web.WebFilter.doFilter(WebFilter.java:463) [WebFilter.class:3.3.2-atlassian-3] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_55] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_55] ... 199 frames trimmed Caused by: java.lang.ClassNotFoundException: org.apache.commons.validator.routines.UrlValidator not found by com.atlassian.plugins.atlassian-nav-links-plugin [32] at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:812) ~[ModuleImpl.class:na] ... 19 common frames omitted{code} *Workaround* # Stop Stash # Download {{commons-validator-1.40.jar}} from https://maven.atlassian.com/content/groups/public/commons-validator/commons-validator/1.4.0/commons-validator-1.4.0.jar # Copy {{commons-validator-1.40.jar}} to {{<STASH_INSTALLATION>/atlassian-stash/WEB-INF/lib}} # Start Stash

    Atlassian JIRA | 2 years ago | Jeff Thomas
    java.lang.NoClassDefFoundError: org/apache/commons/validator/routines/UrlValidator
  2. 0

    When adding a link to the Application Navigator, Stash responds with "Sorry, something went wrong. Your changes are not being saved." and the link is not added. The following appears in {{atlassian-stash.log}}: {code}2014-11-17 14:58:09,783 ERROR [http-nio-8443-exec-6] jethomas @SD91SLx898x725x0 4d98rb 0:0:0:0:0:0:0:1 "POST /rest/custom-apps/1.0/customapps HTTP/1.1" c.a.p.r.c.e.j.ThrowableExceptionMapper Uncaught exception thrown by REST service: org/apache/commons/validator/routines/UrlValidator java.lang.NoClassDefFoundError: org/apache/commons/validator/routines/UrlValidator at com.atlassian.plugins.custom_apps.rest.data.validation.UrlFieldValidator$Jira.isValid(UrlFieldValidator.java:211) ~[atlassian-nav-links-plugin-3.3.12_1413889954000.jar:na] at com.atlassian.plugins.custom_apps.DefaultCustomAppService.checkField(DefaultCustomAppService.java:379) ~[atlassian-nav-links-plugin-3.3.12_1413889954000.jar:na] at com.atlassian.plugins.custom_apps.DefaultCustomAppService.create(DefaultCustomAppService.java:278) ~[atlassian-nav-links-plugin-3.3.12_1413889954000.jar:na] at com.atlassian.plugins.custom_apps.rest.CustomAppsRestResource.create(CustomAppsRestResource.java:183) ~[atlassian-nav-links-plugin-3.3.12_1413889954000.jar:na] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) [applinks-plugin-4.3.0_1413889972000.jar:na] at com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:86) [StashAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:111) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:100) [TrustedApplicationsFilter.class:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:69) [atlassian-oauth-service-provider-plugin-1.9.2_1413889972000.jar:na] at com.atlassian.analytics.client.filter.DefaultAnalyticsFilter.doFilter(DefaultAnalyticsFilter.java:33) [analytics-client-3.48_1413889974000.jar:na] at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) [AbstractHttpFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doBeforeBeforeLoginFilters(BeforeLoginPluginAuthenticationFilter.java:89) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:75) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:82) [DefaultRequestManager.class:na] at com.hazelcast.web.WebFilter.doFilter(WebFilter.java:463) [WebFilter.class:3.3.2-atlassian-3] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_55] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_55] ... 199 frames trimmed Caused by: java.lang.ClassNotFoundException: org.apache.commons.validator.routines.UrlValidator not found by com.atlassian.plugins.atlassian-nav-links-plugin [32] at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:812) ~[ModuleImpl.class:na] ... 19 common frames omitted{code} *Workaround* # Stop Stash # Download {{commons-validator-1.40.jar}} from https://maven.atlassian.com/content/groups/public/commons-validator/commons-validator/1.4.0/commons-validator-1.4.0.jar # Copy {{commons-validator-1.40.jar}} to {{<STASH_INSTALLATION>/atlassian-stash/WEB-INF/lib}} # Start Stash

    Atlassian JIRA | 2 years ago | Jeff Thomas
    java.lang.NoClassDefFoundError: org/apache/commons/validator/routines/UrlValidator
  3. 0

    I just try to add an application in Application Navigator (http://server/plugins/servlet/customize-application-navigator). On clicking Add I get "Sorry, something went wrong. Your changes are not being saved.". In atlassian-confluence.log : 2015-04-07 20:29:15,621 ERROR [http-bio-10.20.12.102-83-exec-10] [common.error.jersey.ThrowableExceptionMapper] toR░ esponse Uncaught exception thrown by REST service: org/apache/commons/validator/routines/UrlValidator -- referer: http://server/plugins/servlet/customize-application-navigator | url: /rest/custom-apps/1. 0/customapps | userName: SDorogin ░ java.lang.NoClassDefFoundError: org/apache/commons/validator/routines/UrlValidator at com.atlassian.plugins.custom_apps.rest.data.validation.UrlFieldValidator$Jira.isValid(UrlFieldValidator. java:211) at com.atlassian.plugins.custom_apps.DefaultCustomAppService.checkField(DefaultCustomAppService.java:379) at com.atlassian.plugins.custom_apps.DefaultCustomAppService.create(DefaultCustomAppService.java:278) at com.atlassian.plugins.custom_apps.rest.CustomAppsRestResource.create(CustomAppsRestResource.java:183) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:234) It fails on adding ANY link. Even 'google.com'.

    Atlassian JIRA | 2 years ago | Sergei Dorogin
    java.lang.NoClassDefFoundError: org/apache/commons/validator/routines/UrlValidator
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I just try to add an application in Application Navigator (http://server/plugins/servlet/customize-application-navigator). On clicking Add I get "Sorry, something went wrong. Your changes are not being saved.". In atlassian-confluence.log : 2015-04-07 20:29:15,621 ERROR [http-bio-10.20.12.102-83-exec-10] [common.error.jersey.ThrowableExceptionMapper] toR░ esponse Uncaught exception thrown by REST service: org/apache/commons/validator/routines/UrlValidator -- referer: http://server/plugins/servlet/customize-application-navigator | url: /rest/custom-apps/1. 0/customapps | userName: SDorogin ░ java.lang.NoClassDefFoundError: org/apache/commons/validator/routines/UrlValidator at com.atlassian.plugins.custom_apps.rest.data.validation.UrlFieldValidator$Jira.isValid(UrlFieldValidator. java:211) at com.atlassian.plugins.custom_apps.DefaultCustomAppService.checkField(DefaultCustomAppService.java:379) at com.atlassian.plugins.custom_apps.DefaultCustomAppService.create(DefaultCustomAppService.java:278) at com.atlassian.plugins.custom_apps.rest.CustomAppsRestResource.create(CustomAppsRestResource.java:183) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:234) It fails on adding ANY link. Even 'google.com'.

    Atlassian JIRA | 2 years ago | Sergei Dorogin
    java.lang.NoClassDefFoundError: org/apache/commons/validator/routines/UrlValidator
  6. 0

    Problem with Tomcat - unable to start webapp [Archive] - Java-Monitor Forum

    java-monitor.com | 1 year ago
    java.lang.NoClassDefFoundError: javax/faces/context/ExternalContext at org.apache.myfaces.trinidadinternal.webapp.Trinida dListenerImpl.contextDestroyed(TrinidadListenerImp l.java:39) at org.apache.catalina.core.StandardContext.listenerS top(StandardContext.java:3882) at org.apache.catalina.core.StandardContext.stop(Stan dardContext.java:4523) at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4387) at org.apache.catalina.manager.ManagerServlet.start(M anagerServlet.java:1247) at org.apache.catalina.manager.HTMLManagerServlet.sta rt(HTMLManagerServlet.java:604) at org.apache.catalina.manager.HTMLManagerServlet.doG et(HTMLManagerServlet.java:129) at javax.servlet.http.HttpServlet.service(HttpServlet .java:617) at javax.servlet.http.HttpServlet.service(HttpServlet .java:717) at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:447)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org/apache/commons/validator/routines/UrlValidator

      at com.atlassian.plugins.custom_apps.rest.data.validation.UrlFieldValidator$Jira.isValid()
    2. com.atlassian.plugins
      CustomAppsRestResource.create
      1. com.atlassian.plugins.custom_apps.rest.data.validation.UrlFieldValidator$Jira.isValid(UrlFieldValidator.java:211)[atlassian-nav-links-plugin-3.3.12_1413889954000.jar:na]
      2. com.atlassian.plugins.custom_apps.DefaultCustomAppService.checkField(DefaultCustomAppService.java:379)[atlassian-nav-links-plugin-3.3.12_1413889954000.jar:na]
      3. com.atlassian.plugins.custom_apps.DefaultCustomAppService.create(DefaultCustomAppService.java:278)[atlassian-nav-links-plugin-3.3.12_1413889954000.jar:na]
      4. com.atlassian.plugins.custom_apps.rest.CustomAppsRestResource.create(CustomAppsRestResource.java:183)[atlassian-nav-links-plugin-3.3.12_1413889954000.jar:na]
      4 frames
    3. com.atlassian.applinks
      ContextFilter.doFilter
      1. com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25)[applinks-plugin-4.3.0_1413889972000.jar:na]
      1 frame
    4. com.atlassian.stash
      BeforeLoginPluginAuthenticationFilter.doFilter
      1. com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:86)[StashAuthenticationFilter.class:na]
      2. com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:111)[BeforeLoginPluginAuthenticationFilter.class:na]
      3. com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77)[BeforeLoginPluginAuthenticationFilter.class:na]
      3 frames
    5. com.atlassian.security
      TrustedApplicationsFilter.doFilter
      1. com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:100)[TrustedApplicationsFilter.class:na]
      1 frame
    6. com.atlassian.oauth
      OAuthFilter.doFilter
      1. com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:69)[atlassian-oauth-service-provider-plugin-1.9.2_1413889972000.jar:na]
      1 frame
    7. com.atlassian.analytics
      DefaultAnalyticsFilter.doFilter
      1. com.atlassian.analytics.client.filter.DefaultAnalyticsFilter.doFilter(DefaultAnalyticsFilter.java:33)[analytics-client-3.48_1413889974000.jar:na]
      1 frame
    8. com.atlassian.core
      AbstractHttpFilter.doFilter
      1. com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)[AbstractHttpFilter.class:na]
      1 frame
    9. com.atlassian.stash
      DefaultRequestManager.doAsRequest
      1. com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doBeforeBeforeLoginFilters(BeforeLoginPluginAuthenticationFilter.java:89)[BeforeLoginPluginAuthenticationFilter.class:na]
      2. com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:75)[BeforeLoginPluginAuthenticationFilter.class:na]
      3. com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:82)[DefaultRequestManager.class:na]
      3 frames
    10. Hazelcast
      WebFilter.doFilter
      1. com.hazelcast.web.WebFilter.doFilter(WebFilter.java:463)[WebFilter.class:3.3.2-atlassian-3]
      1 frame
    11. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_55]
      2. java.lang.Thread.run(Thread.java:745)[na:1.7.0_55]
      2 frames