Error while running tomcat Ant task for the site - broadleaf-commerce

I had setup broadleaf commerce project with mysql database with successive MAVEN install. When i am going to run ant task for tomcat it gives errors like this
The archive: /home/yogesh/Downloads/.eclipse%20(3)/plugins
/org.eclipse.swt.gtk.linux.x86_64_3.104.0.v20150528-0211.jar
which is referenced by the classpath, does not exist.`

Try redownloading and re-installing Eclipse. Also make sure that you are using the latest release version, which is Eclipse Mars.

Related

Netbeans buiding Ant Project on Linux

There is a legacy project in our team, that has build.xml file, dist folder, nbproject etc in its project's folder structure. To build it on Linux machine they use Netbeans 8.2 IDE. There is no Ant installed on that machine I confirmed with ant -v command. I want to understand that :
Is Netbeans internally using ANT to build this project ?
If, yes then how ?
Where in Netbeans I can find the ANT configurations to proof/confirm that its ANT project and Netbeans internally using ant to build it.
Yes
Ant is embedded in the Netbeans installation directory. On my Netbeans 11 it's in <Netbeans_install_dir>/extide/ant.
In Netbeans IDE, menu Tools/Options/Java and there should be an Ant tab which shows the current path to Ant -which can be changed.
Netbeans official site has described about the build tools it is using internally.
Regarding ANT it says:
The default NetBeans IDE project system is built directly on top of the Ant build system. All of the project commands, such as "Build Project" and "Run File in Debugger", call targets in the project's Ant script.

Eclipse can't determine node.js version

error screenshot
When I use Eclipse to build a maven project. I need SpringBoot so now I want to edit .yml file. But it always pops this interface! I have tried version 10、12. Now the node.js version is v10.20.1. I have edit the .bash_profile and export /usr/local/bin. Should I make some changes in Eclipse?

Lombok installation in Spring Tool Suite 4 for Windows

To install Lombok on one of my spring boot project on STS 4 in Windows 10 OS, I did the following steps:
Added the lombok gradle dependency to build.gradle:
compile 'org.projectlombok:lombok'
Then to install the jar retrieved from building the above dependancy got a lombok-1.16.16.jar.
To compile the jar did a right click on the jar -> Run as Java application.
Lombok Installer appeared, but couldn't detect the IDE from the drives. So manually tried searching for the .exe file of STS4 (which I couldn't find)
So kindly help me find the .exe file of STS, so as to complete the installation
The Spring Tool Suite 4 by default has a name as SpringToolSuite4 which is the executable file. This file doesn't get detected in the Lombok installer.
After googling it for quite a long time, all I could see were results of how to install the same of Mac or Linux.
Finally, had to experiment a little. Following is the solution:
Rename the SpringToolSuite4 (Application(.exe)) file and (Configuration settings (.ini)) to sts and now it is detectable in the Lombok installer.
Complete the installation and restart STS and rebuild-clean your project and it works just fine.
You have to add the Lombok JAR file reference to the ini file. The inif file is in the STS installation directory:
-javaagent:<your-path-to-lobmok>lombok-1.16.16.jar
If you are using Spring Tool Suite4, the name of the app is no longer STS.app on MacOS, however, the installer still uses the old name, which on macOS is part of the path. So if you use the installer, check the path in the .ini file to ensure that the name of the app used in the path is correct.
After following the suggested lombok installation on the page
https://projectlombok.org/setup/eclipse
and if it doesn't work
go to C:\User\.m2\repository\org\projectlombok\lombok folder
and remove all versions of lombok contained in the folder
(do not worry maven will redo the files needed for lombok to work)
if using spring boot put in pom.xml:
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
and maven update with the force update option
I'am using
Spring Tool Suite
Version: 3.9.4.RELEASE
Build Id: 201804120943
Platform: Eclipse Neon.3 (4.6.3)

ASP.NET Core app build to target Core 2.1 fails on IIS 10 server where Core 2.1 is installed

I have just setup up IIS 10 on a clean Server 2016 hosted server, and installed the following packages that I have gleaned should be on the machine to allow IIS to host ASP.NET Core applications:
aspnetcore-runtime-2.1.0-win-x64.exe
dotnet-hosting-2.1.0-win.exe
dotnet-runtime-2.1.0-win-x64.exe
I have installed my app straight into the Default Web Site and replaced all files in C:\inetpub\wwwroot\ with my app files. I also did assign the web site an app pool with no managed code, so that isn't my problem.
Last time my app was built with 2.0, and I installed the latest versions of the above packages, which I'm sure was 2.0, and the only error I had was that the command dotnet that IIS uses to invoke Kestrel to run the site, was not in the PATH env. variable
Now when I try and browse to localhost on the Server 2016 machine, it gives me the following error, found in the Windows event log:
Application 'MACHINE/WEBROOT/APPHOST/DEFAULT WEB SITE' with physical
root 'C:\inetpub\wwwroot\' failed to start process with commandline
'dotnet .\QuickDrive.Mvc.dll', ErrorCode = '0x80004005 : 8000808c.
Initially I tried with the same build as before, which was 2.0, and when I got this error, I rebuilt the app to target 2.1. Nearly every search result and relevant SO answer I can find suggest a version conflict, but now there should at least be no version conflict between the runtime and hosting package on the server. Maybe there are other version conflicts I am not aware of though?
At very least I'm asking for some advice on how to get more detailed diagnostic information, even if I don't get an answer that tells me straight what config options and versions to check on Windows and on IIS.
You have to install the Core SDK for whatever version you want to target in Visual Studio. Installing the runtime alone won't do the trick. You may have the restart Visual Studio afterward to see it in the list.
Here is a link to the SDK 2.1 download (the latest as of this writing).
I solved the problem by running dotnet myWesite.dll in PowerShell, and first I found that dotnet.exe was not in the PATH environment variable, and after fixing that, running dotnet myWesite.dll again gave me a meaningful error message that an assembly was missing because it had not been included when I published the website.
I faced the same error on the dev machine in IIS Express. MVC App stopped working all of the sudden. Eventlog gave the 0x80004005 error code.
After trying multiple suggestions, the solution to debug the wired error code was to run the app in the console:
[Project bin folder]> dotnet [projectname].dll
It appeared that during the NuGet package update, the dotnet core version was accidentally updated to 2.1.4 where as the installed version was 2.1.3
[could be a bug in Nuget manager as the update was from there]
I edited the project file to reference the available version (2.1.3) and the app started to work properly.

Issue in associating simple java project with sonar-eclipse

I was trying to analyze a simple java project using sonar.
Following are the things I have done so far:
Installed the Sonar2.0 plugin for Eclipse helios 3.6.
Installed the Maven plugin for eclipse.
After setting up the plugins, I created a simple java project .
Then I created the POM.xml file to enable the Maven Dependency In that I have given the GroupId as <ProjectName> and ArtifactId also as <Projectname>
Then I tried to associate the project with Sonar (Using right click on Project >> Configure >> Associate with Sonar)
Here I am stuck up with a problem. When I select http://localhost:9000 as my server and I try to search this project, "project '' with key 'projectname:projectname' not found on server" is displayed as an error
Please help me to solve this issue.
You need to have an actual sonar-server installation. And the Analysis for your project must have run once.
Before those steps your project can't be found on the server, because your server doesn't know it exists.
See: Sonar plugin Eclipse

Resources