Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jetty can't seem to find an inner class  RSS feed

 
Brady Diggs
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi All!
Thanks in advance for looking at this. If this is not the appropriate forum category, feel free to move it.

Basically what I'm doing is creating a .war file from a couple of classes - one of which is a servlet to post
to a workflow in our application.
Builds ok. Deploys ok. But when I try to browse to the servlet, I get an error saying Jetty can't find an inner class.
I've tweaked and debugged, but I still don't see why this would be happening. For sure, I'm not Jetty expert, and our
Architect has Jetty running as a web server in our application container - sort of a built in web server.
No one has had trouble with it before, so I don't think that's the issue. Anyway, here is the stack trace. If anyone can
help, I would be in your debt for a very long time...


 
Jayr Motta
Ranch Hand
Posts: 110
Google App Engine Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post your code / project tree? I couldn't understand what you meant.

It sounds like class / library version issue or some dependency issue (less likely). Maybe duplicated dependency making the class loader to get confused.
 
Paul Clapham
Sheriff
Posts: 22487
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The most probable reason for that message is that the class that Jetty claims it can't find -- isn't there. You said the project "deploys OK" but that probably just means it deployed without issuing any error messages.

Anyway the JAASBasicAuthenticationFilter$HttpRequestWrapper.class file should be in the same directory as the JAASBasicAuthenticationFilter.class file -- you didn't say you had checked that. I suggest you check.
 
Brady Diggs
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jayr, thanks Paul. I appreciate both of you looking into this.
Paul, you were right. The class wasn't there. Thanks for pointing
this out to me.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!