Logback beagle does not work under Spring tool suite - eclipse-plugin

I have STS 3.6.3 running on 64bit windows 7, java 1.8u25. According to the http://logback.qos.ch/beagle/index.html I have installed the following plugins:
Logback Beagle Feature 1.1.4.201209042005
Logback Feature 1.0.7
Nebula Grid Feature 1.0.0.201412230843
SLF4J Feature 1.6.6
Unfortunatelly the Beagle window does not show up and the following error is written in the STS log: http://pastebin.com/YpL00TZ3
Can you help ?

You'll need to clean up conflicting SLF4J libraries in eclipse, then modify the manifest of the Beagle jar to depend on the version of SLF4J already in eclipse.
In spite of the documentation, you need to remove the Logback Feature and SLF4J Feature from Eclipse (They can be removed via Help > About Eclipse > Installation Details > Install Software). You should only have "Nebula Grid Feature" and "Logback Beagle Feature" installed for Beagle.
Then you need to browse to your eclipse/plugins folder and open 'ch.qos.logback.beagle_1.1.4.201209042005.jar' in your favorite zip tool, then edit WEB-INF/MANIFEST.MF' to change the textslf4j.api;bundle-version="1.6.6"toorg.slf4j.api;bundle-version="1.7.2"`. Make sure to save the updated file back in the jar.
Finally, restart eclipse from the command line using eclipse.exe -clean.
Source: The discussion here and commit here.

Related

Dukescript plugin not in Netbeans plugin manager

I am wanting to install DukeScript plugin to my NetBeans IDE and for some reason it doesn't show as an available plugin. I can find it just fine on the NetBeans plugin listing. It even has a symbol to show that it's certified and should be available in the IDE for installation.
Attempted Solution: I tried downloading manually from the site and I get a zip with a bunch of jar files and 2 .nbm files. I tried adding the .nbm files to the plugin manager manually I get the following errors.
The plugin javax.websocket_api is requested in version 1.0.
The following plugin is affected:       
DukeScript Project Wizard
Some plugins require plugin org.netbeans.html.ko_ws_tyrus to be installed.
The plugin org.netbeans.html.ko_ws_tyrus is requested in version 1.2.3.
The following plugin is affected:       
DukeScript Project Wizard
The plugin was temporarily not available from the update center. It should be there again now, after we removed some unneeded depenedencies. Please try to install it again via the plugin manager inside NetBeans.
To explain your problem with manual install: The plugin consists of NBMs and OSGi Bundles (the jar files). You need to install all of them.

how to install ANTLR 4.5.3 tool jar for eclipse-plugin development?

I need to use ST4 for my eclipse plugin development project. As stated by antlr guys, the last version 4.5.3 is osgi ready and have st4 in his tool package.
How can I install it, so it appear in the dependencies list of my plugin manifest ?
Thanks.
Finally, I realized that :
1. only the [ANTLR 4.5.3 Java runtime binaries jar] is OSGI ready. the complete version is not OSGI ready.
2. The StringTemplate-4 is not provided as tool in that binary bundle.
To install the bundle in your plug-in is a matter of target-platform setup :
3. Copy yours osgi bundles a choosen osgi directory. e.g.: ./myProject/libs/osgi
4. Open Eclipse preferences > Plug-in Development > Target Platform.
5. Select your current platform and press , then button.
6. Select 'Directory source', then browse and select your osgi directory.
7. Apply and close the preferences panel.
You can now go to your plug-in dependencies and add those bundles to your project.
Because my main need was to use ST4, I finally choose to add the following packages :
- org.apache.servicemix.bundles.stringtemplate (4.0.8_1)
- org.apache.servicemix.bundles.antlr (3.5.2_1)
and this worked for me.

How to add facets to an IntelliJ Java/Gradle project to create a self-sufficient war

Background
Download and install IntelliJ 12.04 Community Edition
Create project from external source (point to Gradle build script)
Specify JDK 7 as project's SDK
Note: Project is open source at github: Netflix/karyon
Problem
Want to simply war the project. In playing on the commercial version with GAE plugin installed, I was able to specify the Web Application facet, and create the war via the artifact functionality. With the setup described above, the only available facet is Android.
Question
How can I create a self sufficient war (includes all dependencies and hence can be dropped in any container without additional classpath requirements) from within the IDE?
IntelliJ IDEA Community edition doesn't have Java EE support, you need to use some other tool for packaging the war (e.g. Maven).

FindBugs Plugin In NetBeans.

I get the following error when I try to install FindBugs plugin in Netbeans. Can anyone help me how to resolve -
The plugin org.apache.commons.lang is requested in version 2.4.0.
The following plugin is affected:       FindBugs
Some plugins require plugin Settings API to be installed.
The plugin Settings API is requested in version >= 1.33.1 but only 1.31.1 was found. The following plugin is affected:       FindBugs
Some plugins require plugin UI Utilities API to be installed.
The plugin UI Utilities API is requested in version >= 7.39.1 but only 7.31.2 was found.
The following plugin is affected:       FindBugs
Some plugins not installed to avoid potential installation problems.
As it is answered here, you might be using an old ScanOnDemand plugin, you can add the latest Development Plugins to your Plugins: Plugins > Settings Tab > Add and use the following URL to add a new NB Plugins source:
http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz
I have tried this solvation, added the source above with name 'Plugin Resource' and checked available plugins. There, Findbugs Integration plugin appeared and installed successfully. When i restarted the ide to finish the installation, it generated an error and never started again.
Thus, i have downloaded netbeans 7.3 from this link and replaced with the old one (7.0.1) on my computer. Now Findbugs plugin is availabe in the list of available plugins without any additional configuration and works flawless. I recommend you to upgrade your ide to 7.3 and solve your problem. This will fix the problems that may occure in the future because of the lack of version of your current netbeans ide.
In addition, after updating the ide, you can use the findbugs plugin installing from this source. This plugin provides to use findbugs explicitly from the inspector.

Eclipse plugin view does not show up after install

I created a sample plugin which includes a simple view in eclipse and ran the plugin from inside the workbench, my plugin is installed and I get my view showing up in Window/Show View/Other... . I packaged the plugin as a jar file and installed it under the plugins directory of eclipse and restarted my eclipse workbench. I am not able to find my plugin view. I dont know whats is wrong
I am using eclipse RCP SR2 (3.6) for developing plugins and my packaged jar file includes the code, META-INF/MANIFEST.MF and plugin.xml files.
I created the plugin from the book 'Eclipse Plug-ins, 3rd Edition'. I followed the steps outright and am not able to set up the plugin as a jar file.
I got it to work somehow? The plug-in project was created using Execution Environment JavaSE-1.6. 'It was given in the book I referred'. Now the manifest editor had the entry 'Bundle-RequiredExecutionEnvironment: JavaSE-1.6'. Now I ran the application with-in eclipse, it was working. But when I bundled the plugin as jar and copied the plug-in jar under plugins folder and restarted eclipse the plugin was not working, I dont know why, I thought my eclipse is not running under JRE1.6, but I checked my Windows->Preferences->Java->Installed JREs-> I have only jdk1.6.0_27 checked (So I assume that the eclipse is running under JavaSE1.6). This is bit confusing for me! I removed the Execution Environment entry in the Manifest editor Overview tab. Now there is no 'Bundle-RequiredExecutionEnvironment' entry in my Manifest, I created the bundle jar again and installed in eclipse plugins folder and restarted eclipse using -clean option. It started working in my eclipse. I got it to work somehow but with no understanding! I am still looking for answers from some one who can help me figure out what went wrong?
Open an OSGI console and type 'ss'. It should list all of the plugins. Can you see it? What is the state of it.
You can use Preferences/plug-in development/target platform edit running 'running platform' content tab to list and check/uncheck plugins. I hope it helps.
You could try copying your jar file to the eclipse/dropins folder.