while using netbeans is it necessary to have apache tomcat installed for creating a servlet?
For compiling a basic servlet you need to have the servlet-api.jar library added to the classpath and to deploy a servlet you need a servlet container.
Apache Tomcat (or Jakarta Tomcat or
simply Tomcat) is an open source
servlet container developed by the
Apache Software Foundation (ASF).
Tomcat implements the Java Servlet and
the JavaServer Pages (JSP)
specifications from Sun Microsystems,
and provides a "pure Java" HTTP web
server environment for Java code to
run.
Netbeans 6.8 includes GlassFish which will work as well.
Related
I created a brand new .net core 2.2 web application project, but I get this error when building:
I already reinstalled VS 2019 (16.3.10) and the .Net Core SDKs. Same project builds fine on other machines. Seems like razor has some global configuration for generating these cshtml.g.cs files, but reinstalling VS was not enough to fix it, these files are not being generated inside obj\Debug\netcoreapp2.2\Razor\Views folder.
What is the possible reason for this?
My Eclipse information is copied below.
upgrade the Eclipse to Eclipse Java EE IDE for Web Developers.
Version: Mars.2 Release (4.5.2)
Build id: 20160218-0600
I have installed sonarlint 2.2.0 successfully.
But it can only be found in installed software.
It can not be enabled in project configure or project properties.
SonarLint 2.2+ requires Java 8.
Make sure that you are running Eclipse with Java 8.
Context
In asp.net 5 vNext MVC6, Web.config is gone, in favor of json file as config. However, in my web.config, I have settings of WCF clients, trace listeners of System.Diagnostics and Essential.Diagnostics, and these components (WCF clients and trace listeners apparently could not read json at startup). So in vNext Microsoft has abandoned System.Configuration apparently.
Question
Are there some migration path so I don't have to totally rewrite in order to make these components read config info at startup?
Short answer: It works fine in ASP.NET Core MVC on .NET Framework (4.5.1+), put your settings in app.config, but doesn't work in ASP.NET Core MVC on .NET Core.
Longer answer:
ASP.NET Core can run on both .NET Framework and .NET Core, so I guess the migration path is to continue using .NET Framework for now.
For System.Diagnostics, and Essential.Diagnostics (which I contribute to), I have been able to at least get a demo of this working in ASP.NET Core running on .NET Framework (not .NET Core).
In the .NET Framework, TraceSource, etc still load from the config. In an ASP.NET Framework project there will be an app.config file (not web.config) where you need to put the configuration sections.
Note: Just Building (Debug > Start new instance) does not update the .exe.config file in the bin directory; you need to do a Clean or Rebuild, and then Debug (or delete the output bin folder).
You can write to TraceSource either directly (for legacy code), or via the new Microsoft.Extensions.Logging, with the Microsoft.Extensions.Logging.TraceSource provider configured. (The new interface includes some nice hierarchical support features.)
Either way, it will load and write to the configured TraceSource, which can output to system TraceListeners.
You can also configure additional listeners from Essential.Diagnostics (although the RollingFileTraceListener wasn't correctly handling the {AppData} token in the filename, so I had to hard code the path to C:\Temp\Logs).
The above also works in a console app (simpler), with the .NET Framework 4.5.1 and above.
There is some example code in Essential.Diagnostics: https://essentialdiagnostics.codeplex.com/SourceControl/latest#Examples/TestAspNetCoreOnNetFx/Controllers/HomeController.cs
I suspect it may be similar with WCF: the .NET Framework version should continue to work, using app.config, but the .NET Core implementation may be a shell only.
On .NET Core:
Note that Essential.Diagnostics will not work on .NET Core (it doesn't support it yet, as at Feb 2017), and most system TraceListener classes are also not supported.
The only one that is is the TextWriterTraceListener, which I have got working with a manually created TraceSource, however from looking at the .NET Core source code, I don't think there is a way for TraceSource to automatically load configuration yet.
Are ActiveMQ and Kaazing jms installed on local Mac OS running on any JVM by default [how can i get that info] or standalone start scripts. Please suggest.
Bee,
When you download and extract the gateway (I recommend you to get the "Gateway + Demos" packaging for Linux/Unix/Mac - it contains Apache ActiveMQ preconfigured with the gateway, in addition to the documentation and out-of-the-box demos), you'll find a README.txt file in the root directory. It lists the Java requirements.
For your convenience, here's the Java Requirements snippet from the 4.0.3 version of the gateway:
Java Requirements
* Java Developer Kit (JDK) or Java Runtime Environment (JRE)
Java 7 (version 1.7.0_21) or higher
* The JAVA_HOME environment variable must be set to the directory where
the JDK is installed, for example C:\Program Files\Java\jdk1.7.0_21
* Note:
* For information on installing JDK, see Oracle's Java SE documentation:
http://download.oracle.com/javase/.
Hope this helps!
I am using NetBeans IDE 7.2.1 version with APACHE tomcat 7.0.27.0 version server. I am trying to make a servlet file in my project but its showing the following message or error-
"Web application version is unsupported . Upgrade web.xml to version 2.4 or newer or use previous version of NetBeans."
How can i fix it please reply-
I had this Problem and I solved it in a rather curious way. I removed the web.xml file, Created the servlet and replaced the web.xml file and it worked.
I would recommend you get Better Solution from the http://forums.netbeans.org/