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

java.lang.NoClassDefFoundError: javax/servlet/ServletContext #113

Closed
yegor256 opened this issue Dec 9, 2012 · 1 comment
Closed

java.lang.NoClassDefFoundError: javax/servlet/ServletContext #113

yegor256 opened this issue Dec 9, 2012 · 1 comment
Assignees
Milestone

Comments

@yegor256
Copy link
Member

yegor256 commented Dec 9, 2012

When trying to use jcabi-manifests in a non-WAR application this exception is thrown:

java.lang.NoClassDefFoundError: javax/servlet/ServletContext
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
    at java.lang.Class.getDeclaredMethod(Class.java:1952)
    at org.aspectj.runtime.reflect.MethodSignatureImpl.getMethod(MethodSignatureImpl.java:67)
    at com.jcabi.aspects.aj.MethodValidator.beforeMethod(MethodValidator.java:87)
    at com.jcabi.manifests.Manifests.read(Manifests.java:175)

Looks like we should disable JSR-303 annotations for this read(ServletContext) method.

@ghost ghost assigned yegor256 Dec 9, 2012
yegor256 pushed a commit that referenced this issue Dec 11, 2012
@yegor256
Copy link
Member Author

documented instead of fixing

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

1 participant