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 164346

Summary: Ability to import war file as web project
Product: javaee Reporter: theclaf <theclaf>
Component: Web ProjectAssignee: David Konecny <dkonecny>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description theclaf 2009-05-03 20:11:58 UTC
Yes, there are posts in forums on this, but none are resolved, and none propose a complete solution.  war files are the
accepted way of packaging a basic web app, and it seems that there should be a direct way to do this.

Yes, I will only get the web pages and compiled artifacts, no source code for beans and servlets, but they could be in a
separate source folder to be added in a separate step (as is the case when creating a web project from scratch)

Current paths include:

1. Unpack the war manually and create from resulting directory.
   Cons: a. yet more copies of the same files on my hard drive
         b. less-java-savvy users have no easy way to do this (basic route is to copy file, rename copy to end in .zip,
open in Windows default viewer as folder, extract all files - yes, I could unjar it or use Winzip, but why can't the
tool do that for me?)

2. Create as Java EE App with existing sources
   Cons: wizard expects a full EE app, so it only shows me Enterprise servers like Glassfish in the server list (not
Tomcat, which would be fine for apps using only JSPs and servlets). So I didn' follow this one all the way through.

It really seems like this would be easy to implement, since the process would be very similar to the create new webapp
from existing sources wizard
Comment 1 Martin Balin 2016-07-07 08:54:15 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss