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 91174 - Bundled CDC sample is missing dependent libraries.
Summary: Bundled CDC sample is missing dependent libraries.
Status: RESOLVED WONTFIX
Alias: None
Product: usersguide
Classification: Unclassified
Component: Mobility (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: esanches
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-18 02:26 UTC by pcmreddy
Modified: 2007-07-23 10:01 UTC (History)
1 user (show)

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 pcmreddy 2006-12-18 02:26:57 UTC
Bundled CDC Sample : "HelloServlet"
Compilation failed.

Looks like required libraries are not configured by default.
This is going to affect Out of the box ecperience.

Compiling 2 source files to
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\build\classes
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\Activator.java:40: package
org.osgi.framework does not exist
import org.osgi.framework.BundleActivator;
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\Activator.java:41: package
org.osgi.framework does not exist
import org.osgi.framework.BundleContext;
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\Activator.java:42: package
org.osgi.framework does not exist
import org.osgi.framework.ServiceReference;
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\Activator.java:43: package
org.osgi.service.http does not exist
import org.osgi.service.http.HttpService;
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\Activator.java:48: cannot
find symbol
symbol: class BundleActivator
public class Activator implements BundleActivator 
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\Activator.java:53: cannot
find symbol
symbol  : class HttpService
location: class hello.Activator
        private HttpService httpService = null;
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\Activator.java:54: cannot
find symbol
symbol  : class ServiceReference
location: class hello.Activator
        private ServiceReference serviceRef = null; 
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\Activator.java:56: cannot
find symbol
symbol  : class BundleContext
location: class hello.Activator
        public void start(BundleContext bc) throws Exception 
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\Activator.java:87: cannot
find symbol
symbol  : class BundleContext
location: class hello.Activator
        public void stop(BundleContext arg0) throws Exception 
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\HelloServlet.java:43:
package javax.servlet does not exist
import javax.servlet.ServletException;
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\HelloServlet.java:44:
package javax.servlet.http does not exist
import javax.servlet.http.HttpServlet;
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\HelloServlet.java:45:
package javax.servlet.http does not exist
import javax.servlet.http.HttpServletRequest;
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\HelloServlet.java:46:
package javax.servlet.http does not exist
import javax.servlet.http.HttpServletResponse;
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\HelloServlet.java:51:
cannot find symbol
symbol: class HttpServlet
public class HelloServlet extends HttpServlet 
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\HelloServlet.java:56:
cannot find symbol
symbol  : class HttpServletRequest
location: class hello.HelloServlet
        public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\HelloServlet.java:56:
cannot find symbol
symbol  : class HttpServletResponse
location: class hello.HelloServlet
        public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\HelloServlet.java:56:
cannot find symbol
symbol  : class ServletException
location: class hello.HelloServlet
        public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\HelloServlet.java:65:
cannot find symbol
symbol  : class HttpServletRequest
location: class hello.HelloServlet
        public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\HelloServlet.java:65:
cannot find symbol
symbol  : class HttpServletResponse
location: class hello.HelloServlet
        public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\HelloServlet.java:65:
cannot find symbol
symbol  : class ServletException
location: class hello.HelloServlet
        public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\HelloServlet.java:75:
cannot find symbol
symbol  : class HttpServletRequest
location: class hello.HelloServlet
        protected void processRequest(HttpServletRequest req,
HttpServletResponse resp)
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\HelloServlet.java:75:
cannot find symbol
symbol  : class HttpServletResponse
location: class hello.HelloServlet
        protected void processRequest(HttpServletRequest req,
HttpServletResponse resp)
G:\work\MobileApps\Ricoh\CDC55\HelloServlet\src\hello\Activator.java:70: cannot
find symbol
symbol  : class HttpService
location: class hello.Activator
                this.httpService = (HttpService)bc.getService(serviceRef);
23 errors
Comment 1 pcmreddy 2006-12-28 22:41:19 UTC
This is s Servlet. This project should be opened as Webapplication rather than
CDC  application.  There should be some instructions on how to use this project
and what is the expected result etc.
Comment 2 Lukas Hasik 2007-03-12 10:26:02 UTC
esanches, please evaluate these bugs. 
Some of them might be fixed already, some of them may be documented in other
way, etc.
thanks.
Comment 3 _ esanchez 2007-05-14 17:52:06 UTC
Will remove in 5.5.1 build; SDK/J Servlet support will be postponed until an
OSGI integrated solution can be found.
Comment 4 _ esanchez 2007-05-14 17:53:20 UTC
Chose wrong resolution; the removal fixes this issue and should be marked as fixed.
Comment 5 _ esanchez 2007-05-15 00:07:09 UTC
No objections to removal of OSGi project/features, now marking issue to be
resolved later.
Comment 6 Lukas Hasik 2007-06-06 10:49:47 UTC
the general policy for issuezilla is "do not use the LATER/REMIND" resolution.
(http://qa.netbeans.org/bugzilla/issue-lifecycle.html).
These states are confusing and should be removed from issuezilla (unfortunately
colabnet doesn't know how to do it). Bug shouldn't be in RESOLVED state until it
is really resolved. IMO, that's not the case of LATER/REMIND.

Please, reevaluate the issue
1, When you don't plan to fix the issue close it as WONTFIX
2, you don't want to fix it now -> use TM=future

thank you for understanding
Comment 7 luky 2007-07-23 10:01:45 UTC
Servlet support removed from 5.5.1 and 6.0