You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jason Ricles <jg...@alum.lehigh.edu> on 2015/07/10 20:39:20 UTC

issue with application finding tomcat jars

I have an application that uses the websocket jars from tomcat and
sometimes get this error,

java.util.ServiceConfigurationError:
javax.websocket.ContainerProvider: Provider
org.apache.tomcat.websocket.WsContainerProvider not found

Then it gets the error for a while and magically finds the jars and
runs which is weird. What may be causing this behavior to not find the
jars then magically find the jars?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: issue with application finding tomcat jars

Posted by Konstantin Kolinko <kn...@gmail.com>.
2015-07-10 21:39 GMT+03:00 Jason Ricles <jg...@alum.lehigh.edu>:
> I have an application that uses the websocket jars from tomcat and
> sometimes get this error,
>
> java.util.ServiceConfigurationError:
> javax.websocket.ContainerProvider: Provider
> org.apache.tomcat.websocket.WsContainerProvider not found
>
> Then it gets the error for a while and magically finds the jars and
> runs which is weird. What may be causing this behavior to not find the
> jars then magically find the jars?


Duplicate classes?  Note that the order of jars in WEB-INF/lib is
arbitrary and may change between runs.

Different Thread classloaders (Thread.getContextClassLoader()) ?

What is the full stacktrace of that error?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org