How to change context root of a dynamic web project in Eclipse?

I’m sure you’ve moved on by now, but I thought I’d answer anyway. Some of these answers give workarounds. What actually must happen is that you clean and re-publish your project to “activate” the new URI. This is done by right-clicking your server (in the Servers view) and choosing Clean. Then you start (or restart … Read more

Java / Jakarta EE web development, where do I start and what skills do I need? [closed]

(Updated Apr 2021) First of all, “Java EE” has since Sep 2019 been renamed to “Jakarta EE“, starting with version 8. Historically, there was also the term “J2EE” which covered versions 1.2 until 1.4. The “Java EE” covered versions 5 until 8. See also Java Platform, Enterprise Edition, History on Wikipedia. What exactly do I … Read more

What is Java EE? [duplicate]

Java EE is a collection of specifications for developing and deploying enterprise applications. In general, enterprise applications refer to software hosted on servers that provide the applications that support the enterprise. The specifications (defined by Sun) describe services, application programming interfaces (APIs), and protocols. The 13 core technologies that make up Java EE are: JDBC … Read more

Where to place and how to read configuration resource files in servlet based application?

It’s your choice. There are basically three ways in a Java web application archive (WAR): 1. Put it in classpath So that you can load it by ClassLoader#getResourceAsStream() with a classpath-relative path: ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); InputStream input = classLoader.getResourceAsStream(“foo.properties”); // … Properties properties = new Properties(); properties.load(input); Here foo.properties is supposed to be placed … Read more

Eclipse add Tomcat 7 blank server name

It is a bug in Eclipse. I had exactly the same problem, also on Ubuntu with Eclipse Java EE Juno. Here is the workaround that worked for me: Close Eclipse In {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings delete the following two files: org.eclipse.wst.server.core.prefs org.eclipse.jst.server.tomcat.core.prefs Restart Eclipse Source: eclipse.org Forum

Replacements for deprecated JPMS modules with Java EE APIs

Instead of using the deprecated Java EE modules, use the following artifacts. JAF (java.activation) JavaBeans Activation Framework (now Jakarta Activation) is a standalone technology (available on Maven Central): <dependency> <groupId>com.sun.activation</groupId> <artifactId>jakarta.activation</artifactId> <version>1.2.2</version> </dependency> (Source) CORBA (java.corba) From JEP 320: There will not be a standalone version of CORBA unless third parties take over maintenance of … Read more

Difference between Java SE/EE/ME?

Java SE = Standard Edition. This is the core Java programming platform. It contains all of the libraries and APIs that any Java programmer should learn (java.lang, java.io, java.math, java.net, java.util, etc…). Java EE = Enterprise Edition. From Wikipedia: The Java platform (Enterprise Edition) differs from the Java Standard Edition Platform (Java SE) in that … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)