This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 154570 - errors in tutorial examples
Summary: errors in tutorial examples
Status: RESOLVED WONTFIX
Alias: None
Product: usersguide
Classification: Unclassified
Component: Web tutorials (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Jeffrey Rubinoff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-04 09:37 UTC by tomche
Modified: 2010-02-16 11:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomche 2008-12-04 09:37:11 UTC
Hello,
in your code for developing web apps tutorial the netbeans website http://www.netbeans.org/kb/docs/web/tutorial-
webapps.html provides code for the midnight cookies example that can be copied and pasted. After copying it precisely 
from your web page to the ide the following error is generated

 Compiling 1 source file to C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18
\webapps\ROOT\midnight\build\web\WEB-INF\classes
C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18\webapps\ROOT\midnight\WEB-
INF\classes\com\midnightcookies\FrontController.java:59: addCookie(javax.servlet.http.Cookie) in 
javax.servlet.http.HttpServletResponse cannot be applied to (com.midnightcookies.Cookie)
                 response.addCookie(cookie);

There is no information on this type of error on the internet and typically the error presumes a degree of knowledge 
unsuitable for a learner.

Can you help

Thanks

Tomche
Comment 1 Irina Filippova 2010-02-16 11:19:28 UTC
Jeff, has this tutorial been replaced with this one? 
http://netbeans.org/kb/docs/web/quickstart-webapps.html
Comment 2 Jeffrey Rubinoff 2010-02-16 11:53:09 UTC
This tutorial has been retired and I have no idea why it would have happened in EE 5 on earlier NB versions anyway. No one else has reported this problem.