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 189030 - package com.sun.rave.web.ui.appbase does not exist: reported at the line 'import com.sun.rave.web.ui.appbase.AbstractApplicationBean"
Summary: package com.sun.rave.web.ui.appbase does not exist: reported at the line 'imp...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-28 17:41 UTC by danzulaica
Modified: 2010-08-26 12:01 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 danzulaica 2010-07-28 17:41:34 UTC
Product Version = NetBeans IDE 6.9 (Build 201006101454)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_20
Runtime = Java HotSpot(TM) Client VM 16.3-b01
Comment 1 danzulaica 2010-07-28 22:10:13 UTC
I figured out a solution.  Not sure how this can be fixed to catch the mistake, since it is possibly a user error or maybe user/system error.  Maybe a prompt that something was deleted during the Netbeans startup scan.

My profile changed and some items were deleted related to my Netbeans IDE project.  I un-installed Netbeans 6.7.1 and deleted the rest of my .netbeans files in my profile.  I then installed 6.7.1 again and applied some updates that included the Visual Web JSF plugins that I am working with.

I also noticed when starting 6.7.1 again that there are some 6.5.1 settings that could be added and I ok'd those to include in my 6.7.1 settings.

Every is back to normal with the un-install/re-install of Netbeans 6.7.1 that I had been using.  A note that I tried 6.9.1 first, though when creating a test project I could not get the Visual Web JSF plugins/downloads working.
Comment 2 Jan Lahoda 2010-07-28 22:17:13 UTC
Sorry, but it is not clear to me what project you have open, neither which file. Unfortunately, without some steps to reproduce that I could follow, it will be very hard to do anything about this.
Comment 3 danzulaica 2010-07-28 22:35:10 UTC
This issue can be closed, since I figured out how to fix.

There error as shown in the Bug linne above is from a standard looking .java file that is created when a Visual Web JSF page is created.

The first error is line 8 ('import com.sun.rave...') in the below Java code from the file named, 'ApplicationBean1.java'.


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package speed_control_lab;

import com.sun.rave.web.ui.appbase.AbstractApplicationBean;
import javax.faces.FacesException;

/**
 * <p>Application scope data bean for your application.  Create properties
 *  here to represent cached data that should be made available to all users
 *  and pages in the application.</p>
 *
 * <p>An instance of this class will be created for you automatically,
 * the first time your application evaluates a value binding expression
 * or method binding expression that references a managed bean using
 * this class.</p>
 *
 * @version ApplicationBean1.java
 * @version Created on Mar 15, 2010, 1:15:03 PM
 * @author dpzulaic
 */

public class ApplicationBean1 extends AbstractApplicationBean {
    // <editor-fold defaultstate="collapsed" desc="Managed Component Definition">

    /**
     * <p>Automatically managed component initialization.  <strong>WARNING:</strong>
     * This method is automatically generated, so any user-specified code inserted
     * here is subject to being replaced.</p>
     */
    private void _init() throws Exception {
    }
    // </editor-fold>

    /**
     * <p>Construct a new application data bean instance.</p>
     */
    public ApplicationBean1() {
    }

    /**
     * <p>This method is called when this bean is initially added to
     * application scope.  Typically, this occurs as a result of evaluating
     * a value binding or method binding expression, which utilizes the
     * managed bean facility to instantiate this bean and store it into
     * application scope.</p>
     * 
     * <p>You may customize this method to initialize and cache application wide
     * data values (such as the lists of valid options for dropdown list
     * components), or to allocate resources that are required for the
     * lifetime of the application.</p>
     */
    @Override
    public void init() {
        // Perform initializations inherited from our superclass
        super.init();
        // Perform application initialization that must complete
        // *before* managed components are initialized
        // TODO - add your own initialiation code here
        
        // <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
        // Initialize automatically managed components
        // *Note* - this logic should NOT be modified
        try {
            _init();
        } catch (Exception e) {
            log("ApplicationBean1 Initialization Failure", e);
            throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
        }
        
        // </editor-fold>
        // Perform application initialization that must complete
        // *after* managed components are initialized
        // TODO - add your own initialization code here
    }

    /**
     * <p>This method is called when this bean is removed from
     * application scope.  Typically, this occurs as a result of
     * the application being shut down by its owning container.</p>
     * 
     * <p>You may customize this method to clean up resources allocated
     * during the execution of the <code>init()</code> method, or
     * at any later time during the lifetime of the application.</p>
     */
    @Override
    public void destroy() {
    }

    /**
     * <p>Return an appropriate character encoding based on the
     * <code>Locale</code> defined for the current JavaServer Faces
     * view.  If no more suitable encoding can be found, return
     * "UTF-8" as a general purpose default.</p>
     *
     * <p>The default implementation uses the implementation from
     * our superclass, <code>AbstractApplicationBean</code>.</p>
     */
    @Override
    public String getLocaleCharacterEncoding() {
        return super.getLocaleCharacterEncoding();
    }
}
Comment 4 Jan Lahoda 2010-08-26 12:01:50 UTC
Ok, closing. Thanks.