Finally I solved problem with WebAppContext. The problem was is jar URI.
Path to file should be like this jar:file:/home/myjar.jar!/index.html
The key symbol is "!"

Problem with auto discovering classes I solved by creating my own
AnnotationConfiguration.
I just added method for scanning my own classes and removed for scanning
WEB-INF classes and jars.

Now I try to restrict downloading policy, because all my classes are in
root of the jar.

I like annotations very much!

2012/4/24 Greg Wilkins <[email protected]>

> The annotation scanning is tied to the webappcontext.
>
> However if you have a specific use, you could probably adapt the code
> from the annotation configuration to work on a servletcontext.
>
> Better yet - for embedded usage, don't use annotations!
>
> cheers
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to