• 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

Error in Oracle REST guide - Packaging the RESTful Web Service Application Using web.xml

 
Greenhorn
Posts: 9
Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I think there are a couple of problems with one example in the Oracle guide for REST services:

The guide is here:
-> http://docs.oracle.com/cd/E24329_01/web.1211/e24983/configure.htm

1.- Error:

If you access to the link above in the example: "Example 3-2 Updating web.xml for Servlet 3.0 If Application Subclass is in Package" there is an error with the "servlet-name" from the "servlet" and "servlet-mapping" definition. As I understand they must be the same.




2.- Error:

In the same example I also don´t understand what means the "param-value" in the "init-param" section. I was expecting the subclass of javax.ws.rs.core.Application which is "MyApplication" ... not a "package name".

Maybe I´m missing something.

Thanks!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic