Failing to compile Maven GWT project - maven-2

Note - I will really appreciate a quick and complete answer to this question. I can't offer a bounty yet because I just published this question a few hours ago, but if someone answers this question fully, I will issue a total bounty of 150 (100 from me + 50) and award it to them.
I have tried to work my way through the GWT Archtype, but failed. Currently, I'm getting an error finding entry point class, when doing "mvn clean package"
INFO] auto discovered modules [org.test.TestGwt]
INFO] Compiling module org.test.TestGwt
INFO] Finding entry point classes
INFO] [ERROR] Unable to find type 'org.test.MyEntryPoint'
INFO] [ERROR] Hint: Previous compiler errors may have made this type unavailable
I uploaded the source code to my dropbox, would appreciate your help. This is a very stripped down project, it only contains the bare essentials - please help me figure out a working example.
My goal is to get mvn gwt:run to work, and to get a deployable war that actually works.

the property:
<source path="org/test"/>
refers to the path relative to your TestGwt.gwt.xml file itself. Also don't put server side code in your code base because GWT tries to compile it to JavaScript and will fail because it contains classes not available to compile.
I suggest you add 2 folders to you package structure:
org.test.client
org.test.server
Leave the TestGwt.gwt.xml file in the org/test folder.
and change the gwt.xml to:
<source path="client"/>

Related

IntelliJ error: cannot find symbol #javax.annotation.Generated [duplicate]

This question already has answers here:
I use gRPC to generate java code '#javax.annotation.Generated' and it reports 'Error:(20,18) java: cannot find symbol'. How to solve it?
(3 answers)
Closed 6 months ago.
This is my first time using IntelliJ so this is probably just a basic question but alas I have it anyways.
I have cloned a github project into IntelliJ that uses gradle. I import and first thing it says is that gradle is not set up right, so I set it up according to the following:
gradle prefrences Java version 14.0.1. Then it said the SDK was still not set up so I again set that up for again version even though I am not using Android.
I can successfully run a few of the grade tests but all of my java code no longer links methods and when I run the tests (directly from github without any changes yet) I get an error: cannot find symbol #javax.annotation.Generated(
Also all of the methods in my example seem to no longer link. I have a screenshot of this too.
Any guidance is appreciated, probably a problem in the set up? I found this symbol error a few times but no resolution that helped. I tried invalidating caches and restarting a few times. I deleted the .idea files a few times. tried a different repository in git and still having the same errors.
Thanks!
Simply add the javax annotation dependency into your build.gradle.
dependencies {
//...
implementation 'javax.annotation:javax.annotation-api:1.3.2'
//...
}
like so.

Why CMSAdapter and contenthub is not available?

As per Stanbol documentation, I've checked-out source code (% svn co http://svn.apache.org/repos/asf/stanbol/trunk stanbol) and after did maven build. All is fine. Now I've started executable jar (org.apache.stanbol.launchers.full-1.0.0-SNAPSHOT).
After starting this I do not see any menu option to open CMSAdapter and contenthub. I can only see /enhancer, /topic, /entityhub, /sparql, /ontonet, /rules, and /reasoners in the menu option.
Here is the localhost page -
When I saw the checked-out directory then I did not find folders corresponding to cmsadpater and contenthub.
After I tried to download complete zip from source again and now i can see cmsadpater and contenthub -
But I'm getting error during build.
Please suggest what I'm missing here.
[ERROR] Failed to execute goal on project org.apache.stanbol.launchers.full: Could not resolve dependencies for project org.apache.stanbol:org.apache.stanbol.launchers.full:jar:0.12.0: Failure to find org.apache.sling:org.apache.sling.launchpad:xml:bundlelist:8 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
ContentHub and CMSAdapter components have been discontinued from version 1.x. You can still find them at 0.12.x branch (https://svn.apache.org/repos/asf/stanbol/branches/release-0.12/)
Hope that helps

How to download dependencies from behind proxy

I've been trying to follow several different tutorials for building web APIs and web apps using clojure, but I keep receiving the same errors. From googling the errors it seems like the problem is definitely with my network, but I'm having trouble identifying the exact problem and figuring out how to resolve it.
This is the error message I receive every time when I try to run: lein run
Could not find artifact org.clojure:clojure:jar:1.2.0-beta1 in central (https://repo1.maven.org/maven2/)
Could not find artifact org.clojure:clojure:jar:1.2.0-beta1 in clojars (https://clojars.org/repo/)
Could not find artifact org.clojure:clojure-contrib:jar:1.2.0-beta1 in central (SAME AS FIRST LINK)
Could not find artifact org.clojure:clojure-contrib:jar:1.2.0-beta1 in clojars (SAME AS SECOND LINK)
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
If anyone knows how to resolve this, please let me know. Thanks!

fatal error file not found /Lexical preprocessor error IOS

I have a project deployed on the appstore(everything ok),which after 2 months on running source code gives me crazy errors.
what i tried
Build settings-> set YES to Always search user paths
Not working
Please provide some suggestions.I think i need to chang some thing in build settings.Do anyone know why this is happening?
I was able to solve it in 2 ways
1.I removed the framework and added it back again
2.In framework search paths i removed everything and added $(SRCROOT) there.

Apache Mina tutorial

I am tearing my hair out trying to figure out how to run the simplest Apache Mina tutorial.
I am running the tutorial on Netbeans 6.9 on Ubuntu and it keeps saying the following error
even I have added the necessary jar files to the compile-time libraries folders in Netbeans.
Exception in thread "main"
java.lang.ExceptionInInitializerError
at minatimeserver.MinaTimeServer.main(MinaTimeServer.java:29)
Caused by: java.lang.RuntimeException:
Uncompilable source code - package
org.slf4j does not exist
at org.apache.mina.core.service.AbstractIoService.(AbstractIoService.java:51)
... 1 more
I have downloaded slf4j-log4j12-1.6.1.jar and slf4j-api-1.6.1.jar and placed them in the compile-time libraries folder too but the error still remains. I have also tried with slf4j-1.5.11
Any person who has solved this problem? Please help me or I'm going bald in no time!
Thanks in advance!
Yakult121
slf4j-log4j12-1.6.1.jar and slf4j-api-1.6.1.jar are runtime libraries.
Add them to your class path not to your compile-time libraries else it will try to compile your jar files.
Also See
What's the difference of compile time libraries and run time libraries in java?
Apache mina uses slf4j-api-1.6.1.jar, adding slf4j-api-1.6.1.jar to class path will resolve the issue.
Well, I also had faced same problem. What I did was, I unjarred the mina-core-2.x that is on the main page of the apache project. When things failed, I changed downloaded mina-core-1.1.7 and everything worked fine. Of course, you have to make sure that you set the claspath correctly.