Eclipse - Got an error console when run an ant target in Eclipse - eclipse

I am using eclipse kepler IDE. I installed JBoss Tools plugin in my eclipse IDE. When i run an ant target first time got a error console in my eclipse IDE . But it will run successfully if i run the same target on second time. Here follows the message appears on the error console
Errors occurred during the build.
Errors running builder 'Integrated External Tool Builder' on project 'MY_PROJECT'.
Launch configuration type id "org.maven.ide.eclipse.Maven2BuilderConfigurationType" does not exist.
Possible causes:
Missing specification of a launch type (missing plug-in)
Incorrect launch configuration XML
Launch configuration type id "org.maven.ide.eclipse.Maven2BuilderConfigurationType" does not exist.
Possible causes:
Missing specification of a launch type (missing plug-in)
Incorrect launch configuration XML

Related

wildfly Failed to resolve expression

I'm trying to launch a Java Web Project with Eclipse and Wildfly. When I try to run the wildfly server I recieve the following issue:
Failed to resolve expression: entornoDT
But this variable was added in "Wildfly Launch configuration properties" > "Environmet"
Environmet variable
It looks like the project doesn't take the profile correctly. The error is because of this file: jboss-web.xml
In this line:
<context-root>kroneews${entornoDT}</context-root>

Eclipse : Errors occurred during the build Groovy/Grail Project

I have installed GGTS plugin for eclipse kepler 3.5.1 RELEASE. I created simple grail project. But while building project. Its getting error
Errors occurred during the build.
Errors running builder 'Java Builder' on project 'FirstApp'.
org.codehaus.groovy.runtime.StringGroovyMethods.plus(Ljava/lang/String;Ljava/lang/CharSequence;)Ljava/lang/String;
and if we saw in markers, I found this error
Internal compiler error: java.lang.NoSuchMethodError: org.codehaus.groovy.runtime.StringGroovyMethods.plus(Ljava/lang/String;Ljava/lang/CharSequence;)Ljava/lang/String; at
org.codehaus.groovy.grails.transaction.transform.TransactionalTransform.moveOriginalCodeToNewMethod(TransactionalTransform.groovy:259)
Config.groovy /FirstApp/grails-app/conf line 0 Java Problem
I am using feroda 17. Eclipse Kepler.
We were experiencing the same error today, it turned out that the project created by GGTS had a groovy compiler level of 2.3 but the GGTS plugin only supported up to groovy compiler level 2.1.
The fix was to install the "groovy 2.3 compiler for groovy-eclipse".
The compiler can be found under the "language and support tooling" heading in the extensions browser which is opened by clicking the "IDE extensions" button in the STS dashboard.
Although the compiler states that it will automatically become the default workspace compiler in eclipse this did not happen for us. In fact we needed to set it as the workspace default in "preferrences > groovy > compiler" and then restart eclipse (maybe I restarted twice, cant remember exactly).
we also ended up installing "groovy 2.3 compiler for groovy-eclipse" twice as the first time an eclipse IDE update was installed, I think because our kepler installation was a bit old.
Hope this helps.

GGTS throwing error when building, string index out of range

I am working on a very large project, and am currently tasked to get the project to work correctly using GGTS rather than intelli-j. The project compiles and runs correctly from cygwin. However, when trying to build the project in GGTS an error occurs. The error thrown is as follows:
Errors occurred during the build.
Errors running builder 'Java Builder' on project 'project'.
String index out of range: -23
The error gets highlighted under a src/groovy package. specifically GGTS highlights the "p" in the following:
package com.bussiness.sys.rep
/* CODE */
When looking at the error thrown at this point the following is said.
The type org.joda.convert.FromString cannot be resolved. It is indirectly referenced from required .class files
I have tried multiple grails clean, refresh-dependencies, builds, looking into configuring the build path, and re-importing. I continue to get the same error. Any help would be appreciated.
Edit 1:
Using Grails 2.3.8, and GGTS 3.6.0.M1 based on eclipse 4.4, for Windows.

Error debugging Errai app in Eclipse

When I try to debug an Errai app in Eclipse, I get the following error:
[WARN] Failed startup of context org.jboss.errai.cdi.server.gwt.JettyLauncher$WebAppContextWithReload#a9acff{/,/home/matthew/git/PressGangCCMSUI/src/main/webapp}
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
How can I fix this?
I don't know the specific cause, but when the project is cleaned, I can't run it in debug mode in Eclipse. To fix that I run the project with
mvn gwt:run
and once that launcher has come up I can then run the project in debug in Eclipse again.

Eclipse doesn't show java source code

I'm running java 1.6 in Eclipse on my Intel Mac. I'm using the 1.6.0 version under System/Library/Frameworks and set the default compiler to this in Eclipse.
How do I attach the source code?
First, I downloaded the 1.6 source from oracle, thinking I could attach that 'cause the installed 1.6 didn't have source.
When I click a java class to get the Source Code Editor, there are problems:
first, the top line says Compiled from File.java (version 1.5 : 49.0, super bit)
most important, when I attach the 1.6 source jar file, it gets an error:
An error has occurred. See error log for more details.
Unable to create resource org.eclipse.ui.internal.misc.ExternalProgramImageDescriptor#50417ba8
This also appears in the error log:
java.lang.ClassNotFoundException: org.eclipse.ui.internal.views.log.LogView
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
The Eclipse version is: Eclipse Java EE IDE for Web Developers.
Version: Helios Service Release 2
Build id: 20110218-0911
When I click for installation details, I get:
An internal error occurred during: "Fetching children of _SELF_".
Registry Directory not available: /Users/rfrail/Downloads/eclipse 2/p2/org.eclipse.equinox.p2.engine/profileRegistry.
I'm running Eclipse from my Download directory (it's worked fine in the past); however, there are 2 folders for Eclipse:
eclipse, and
eclipse 2.
So that looks like a source of confusion right there. Eclipse operates fine otherwise.
Can you help, please?
http://java.decompiler.free.fr/ is your answer
it has an eclipse plugin which decompiles code in place