I'm trying to create a simple webform in Java with Eclipse but I've seen that I have to do New Project --> Web --> Dynamic Project
However, all I see when I click on New Project is the screenshoot below. I don't have the Web option.
I'm using Ubuntu and I've installed Eclipse Standard 4.3.2 (http://www.eclipse.org/downloads/packages/release/Kepler/SR2)
Should I install a different version? Eclipse IDE for Java EE Developers?
UPDATE
This is the printshoot of the error when installing the IDE for Java Developers
Eclipse IDE for Java EE is not a different version so much as a different package containing support for developing JSPs, Servlets, and other web artifacts. Kepler SR2, though, is a version--a two year old one that's since been superseded by Mars.2. So download the Mars.2 version of the Eclipse IDE for Java EE Developers. The download page at http://download.eclipse.org/ should always have the current supported version.
Related
When I try to create an Enterprise application using the wizard (Ant project) I get the following error
java.lang.NullPointerException: Cannot invoke "org.netbeans.modules.j2ee.dd.api.application.Application.setDisplayName(String)" because "this.application" is null
at org.netbeans.modules.j2ee.earproject.ProjectEar.setupDDFromVirtual(ProjectEar.java:290)
at org.netbeans.modules.j2ee.earproject.ProjectEar.getApplication(ProjectEar.java:255)
at org.netbeans.modules.j2ee.earproject.ui.wizards.NewEarProjectWizardIterator.testableInstantiate(NewEarProjectWizardIterator.java:160)
at org.netbeans.modules.j2ee.earproject.ui.wizards.NewEarProjectWizardIterator.instantiate(NewEarProjectWizardIterator.java:139)
at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1048)
at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:602)
at org.netbeans.modules.project.ui.NewProjectWizard.handleInstantiate(NewProjectWizard.java:51)
at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:436)
at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:228)
at org.openide.loaders.TemplateWizardIteratorWrapper$ProgressInstantiatingIterator.instantiate(TemplateWizardIteratorWrapper.java:155)
at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1602)
at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1546)
at org.openide.WizardDescriptor.access$2300(WizardDescriptor.java:67)
[catch] at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:2233)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Of course, all the fields in the wizard are filled. However, there are no errors when creating WAR and EJB separately. The error occurs only when an EAR is created, even if it is empty.
use
NetBeans 12.6
Windows 10 OS
GlassFish Server 6.2.1
Java 17
All paths are spelled out correctly, read / write permissions to directories are set
Screen
I can reproduce your problem, and NetBeans Bug Report 5953 "Creating a new Enterprise Application (Java with Ant) impossible (only when selecting JakartaEE9) - NPEs thrown" has already been raised.
The bug report is unresolved, but the problem only occurs when creating a Jakarta EE 9 Enterprise Application. I successfully created a Jakarta EE 8 Enterprise Application simply by selecting Jakarta EE8 from the Java EE Version drop list within the wizard.
You have several options available to resolve this, but none of them are good:
Wait for NetBeans to fix the problem. Definitely not recommended!
Create a Jakarta EE8 Enterprise Application with the Ant wizard instead, if you don't require EE 9 functionality.
Create a Jakarta EE8 Enterprise Application with the Ant wizard, then "hack" the generated projects to use EE 9.
Use another IDE which properly supports this functionality.
Create the EE 9 Enterprise Application in another IDE, then import the projects into NetBeans.
Using Maven or Gradle isnstead of Ant as the build tool doesn't help either:
I couldn't create a Maven Enterprise Application when using Jakarta EE8 or Jakarta EE9, though I didn't research why.
The project wizard doesn't even offer "Enterprise Application" as an option when using Gradle.
Notes:
NetBeans 13 will be released next month, but I don't think this issue will be fixed.
Also see the (ominous) bug report "NETBEANS-2871 Resolve Enterprise Application support" from 2019 which remains unresolved:
Need to figure out whether maybe Web Applications (in Ant, Maven, and
Gradle) might not be enough in terms of Java EE support, i.e., do we
need Enterprise Applications and EJB-specific project types, if not,
let's remove them.
It works with jakarta EE9 provided you do the following:
Plugin versions in all pom.xml files:
maven-compiler-plugin 3.9.0
maven-war-plugin 3.3.2
maven-dependency-plugin 3.2.0
In the pom.xml file of -ejb- change packaging war to jar.
Then:
Clean and build in the following order:
top, ejb, web and ear.
That's all.
I have installed the Weblogic 12c server and I want to add it to a project in Netbeans 11. When I select "add server" from server instance, the Weblogic server option is not displayed
I expected to see the option as shown in the following link https://www.oracle.com/webfolder/technetwork/tutorials/obe/java/wls_12c_netbeans_install/wls_12c_netbeans_install.html
I was able to connect the plugin for weblogic from netbeans version 8.2.
You must copy the plug-in files from the netbeans 8.2 directory to the netbeans 11 directory.
Files of a plug-in:
...\plugins\servers\enterprise\modules\org-netbeans-modules-j2ee-weblogic9.jar
...\plugins\servers\enterprise\config\Modules\org-netbeans-modules-j2ee-weblogic9.xml
...\plugins\servers\enterprise\update_tracking\org-netbeans-modules-j2ee-weblogic9.xml
...\plugins\servers\enterprise\update_tracking\org-netbeans-modules-weblogic-common.xml
Checked on versions 11, 11.1, 11.2.
Update.
Second method
The plugin can be compiled from sources.
Plugin sources here:
https://github.com/apache/netbeans/tree/master/contrib/j2ee.weblogic9
But you need to build all netbeans project. Build command:
ant all
The resulting .nbm file can then be imported in NetBeans (Tools -> Plugins -> Downloaded -> Add Plugin)
Discussion of the problem here:
https://issues.apache.org/jira/browse/NETBEANS-2476
Compiled nbm plugin file:
https://issues.apache.org/jira/secure/attachment/12991973/org-netbeans-modules-j2ee-weblogic9.nbm
Checked on versions 12.x
From what i can tell only Netbeans versions 7.2, 7.3, 7.4, 8.0 can work with weblogic as of now. Also the guide you are following is using a pre Apache Netbeans version. I would recommend switching to one of the following Netbeans versions. Download the All bundle or EE.
Netbeans 8.0
Netbeans 7.4
https://netbeans.apache.org/kb/docs/web/jsf-jpa-weblogic.html
Unfortunately Apache NetBeans 11.0 does not currently support the addition or use of a WebLogic server. See open Apache NetBeans Bug Report 2476: Netbeans 11 EE Support Weblogic Server
I don't know for sure, but I suspect that this is a legal problem is related to licensing issues rather than any technical obstacles. The absence of licensing on Apache NetBeans 11.0 also impacts other important products such as Hibernate (NETBEANS-2719 Resolve Hibernate Support), and Wildfly (NETBEANS-2415
Bring back support for WildFly server).
There are licensing issues because Apache assumed ownership of NetBeans releases from Oracle last year.
Also, because WebLogic was supported "out of the box" in NetBeans 8.2 there is no old WebLogic plugin available for use on Apache NetBeans 11.0.
Your options are:
Regress NetBeans to use the most recent NetBeans release which does support WebLogic: Oracle NetBeans 8.2. Note that this means you cannot develop using Java EE 8, nor use any JDK version > 8.
Stick with Apache NetBeans 11.0, and instead of WebLogic use one of the four application servers which it formally supports "out of the box": Payara, Glassfish, Apache Tomcat and Apache TomEE.
Install your WebLogic server outside of Apache NetBeans 11.0, and deploy your NetBeans web applications to that external server.
I started using eclipse recently, and I downloaded the Java EE version to create a webapp.
Now I have downloaded Version Luna (4.4), but i'm unable to create a web APP or create a Tomcat server with these versions...What am i doing wrong? Do I have to download some plugins?
Thank you in advance, and sorry if my question is too simplistic.
You should download this version" Eclipse IDE for Java EE developers"
http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/lunar
Tomcat:
window->preferences->server->runtime environment
To create a web APP:
file->new->other->web->Dynamic Web project
you have to install a suitable plug in for developing web appplications in luna
either you can downloadan entirely new eclipse ide for java EE or you can install a WTP plugin in the existing luna version using the eclipse marketplace.
I'm starting a new project and considering moving to Java 8 already, since newest Spring Framework 4.0 supports it, and it's not so long until final release this march.
Currently we are using STS 3.4 (Eclipse 4.3.1 based) and I have installed latest JDK8 and Java 8 (BETA) support. Simple projects seems to find themselves at home with Java 8, but not UI project (Dynamic Web Module 3.0, the one deployed on server). I'm getting error that compiler version (1.8 BETA) doesn't match installed project facet "Java" (1.7). And there is no such option "1.8" in "Java" project facet...
Have anybody succeeded running UI project with Java 8?
Thanks!
Have you tried to install WTP's org.eclipse.jst.common.fproj.enablement.jdt.feature.patch from here?
http://download.eclipse.org/webtools/patches/drops/R3.5.2/P-3.5.2-20140329045715/repository
You might also want support for Java 8 in Maven, PDE, and JDT.
For those features, use these sites:
Maven (M2E) 1.4.1 (org.eclipse.m2e.feature) http://download.eclipse.org/technology/m2e/releases/1.4/1.4.1.20140328-1905
JDT & PDE Feature patches : http://download.eclipse.org/eclipse/updates/4.3-P-builds/
If you happen to be a fan of JBoss Tools, it's coming directly to JBoss Central:
https://issues.jboss.org/browse/JBIDE-17002
I recently downloaded java7 and eclipse indigo to my computer. I am trying to create a dynamic web project but it wont let me. It will only let me create General, CVS, Java, and Maven projects.
I would like to compile a project into a WAR file and am having difficulty.
If you have downloaded the Eclipse Classic or the Eclipse for Java Developers package, you will need an additional component called Eclipse Java EE Developer Tools. I suggest you install the whole Web,XML, Java EE and OSGI Enterprise Development section.
If you download Eclipse IDE for Java EE Developers you won't need to add it.
Use this guide to install new components in your IDE.