Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RESTFUL webservices  RSS feed

 
Girish Velivela
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How forward a jsp file using jax-rs web sevices? Is it a good pattern...?

I used @context to get HttpRequest to dispatch the jsp. But netbeans giving a warning not context and when I am running application I am getting " javax.servlet.ServletException: javax.ws.rs.ProcessingException: java.io.IOException: Stream closed "
 
Campbell Ritchie
Sheriff
Posts: 53779
128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have managed to close the Stream you cannot use it; you may not be able to reopen it. So check carefully where the Stream is closed.

Are you using multiple runs of execution? If you have one run which closes the Stream, that may cause problems for subsequent runs.

I shall move this discussion to our web services forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!