• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RESTFUL webservices

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 "
 
Marshal
Posts: 79180
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic