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 189309 - The IDE should warn the user when creating JSF artefacts and no target server is set
Summary: The IDE should warn the user when creating JSF artefacts and no target server...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-09 13:44 UTC by Petr Jiricka
Modified: 2011-03-29 08:44 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 Petr Jiricka 2010-08-09 13:44:57 UTC
Analogous to bug 188284.

1. Create a Maven Java EE 5 web application
2. Create a new JSF page, or other JSF-related artefact
3. Deploy the project, when asked about the server, choose WebLogic

The following error will occur during deployment: 
Deployment failed. The message was: java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet

This is because the JSF framework is not configured properly for WebLogic. The IDE should warn the user that a server should be set, before creating a JSF artefact.
Comment 1 Erno Mononen 2010-10-13 11:22:09 UTC
Taking over Alexey's JSF and Spring issues.
Comment 2 Martin Fousek 2011-03-28 11:32:09 UTC
Should be fixed in http://hg.netbeans.org/web-main/rev/0c326a321241.

There are entries:
JSF Page - warning added
JSF Managed Bean - warning added
JSF Faces Configuration - warning added
JSF Composite Component - checks for JSF2.0 on classpath
JSF Pages from Entity Classes - check already for server
Facelets Template - was done as a part of #178401
Facelets Template Client - cannot be created without Facelets Template

It means that in every New File wizard should be used warned about missing server or JSF.
Comment 3 Quality Engineering 2011-03-29 08:44:23 UTC
Integrated into 'main-golden', will be available in build *201103290400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/0c326a321241
User: Martin Fousek <marfous@netbeans.org>
Log: #189309 - The IDE should warn the user when creating JSF artefacts and no target server is set