I am using eclipse. I have one Google App Engine project with spring is working locally and I am able to deploy it to google server.
Now I changed it with Maven integrity. It works locally fine. I am running it locally by maven build by setting appengine:devserver as goal.
But when try to deploy it to Google server, then it says error as follows.
Please help me.
Failed to initialize App Engine SDK at C:\Users\mviramga.m2\repository\com\google\appengine\appengine-api-1.0-sdk\1.8.6\appengine-api-1.0-sdk-1.8.6.jar
Unable to find C:\Users\mviramga.m2\repository\com\google\appengine\appengine-api-1.0-sdk\1.8.6\appengine-api-1.0-sdk-1.8.6.jar\lib\shared
pom.xml
<appengine.target.version>1.8.6</appengine.target.version>
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-api-1.0-sdk</artifactId>
<version>${appengine.target.version}</version>
</dependency>
I resolved the issue. I am using jdk7
Eclipse Project is taking appengine-api-1.0-sdk-1.8.6.jar as SDK library and search for other subfolders so it gives error. If I select sdk installed external folder then it was not setting that folder.
So I did added that folder as library in project and gave highest priority and then it worked. Thanks for your all help.
Related
I am trying to deploy my Maven project on Tomcat within Eclipse, but since I just added a new Selenium dependency I am now getting this error every time I start the server:
SEVERE: Unable to process Jar entry [module-info.class] from Jar [jar:file:/Users/ash/eclipse-workspace/my-project/target/my-project-0.0.1-SNAPSHOT/WEB-INF/lib/selenium-api-3.14.0.jar!/] for annotations
This is the dependency:
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
<version>3.14.0</version>
</dependency>
I have tried following advice given on related questions, as it seems people have had this issue with a variety of different dependencies. The advice included using the latest version of the dependency, or deleting the dependency and jar files from the lib folder, and then re-adding them and rebuilding Maven before I deploy the project, but I had no luck. Has anyone got an idea of how I can fix this? I need to use Selenium to test my web app.
(I'm using the tomcat7-maven-plugin if that makes any difference.)
We have 100% working project.
It works perfectly on 2 Windows computers, but when I clone it from repo to Mac - OS El Capitan, Eclipse with STS plugin - I can not built it, I get this error:
Archive for required library: '/Users/{username}/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar' in project '{project name}' cannot be read or is not a valid ZIP file {project name}
In Maven pom.xml I have added required dependency, but it still doesn't solve the problem:
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.47</version>
</dependency>
Any advice will be appreciated!
Delete /Users/{username}/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar, and download "bcprov-jdk15on-1.47.jar" (and verify that it downloaded correctly) then place it there manually.
I have used elastic search in nodejs. But now for a java app I need elasticsearch. So I read the documentation in elastic search official website. But I cant follow one thing
I have installed Maven plugin in Eclipse.
I have done dependency setup in pom.xml in my project.
<dependencies>
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
<version>1.5.0</version>
</dependency>
</dependencies>
But whenever I write below line in java it says cant resolve.
import static org.elasticsearch.node.NodeBuilder.*;
So I'm unable to use elastic search in java.
I have read this as source
https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/index.html
http://java.dzone.com/articles/elasticsearch-java-api
I am not sure what you are doing here, you shouldnt have to download the jar manually and add to eclipse as a project dependency. Please go through this tutorial to understand how maven dependency works. Relevant text below:
Maven connects to remote repositories (or you can set up your own
local repos) and automatically downloads all of the dependencies
needed to build your project. For example, lets say you have a project
that uses Apache's Camel routing tool, version 2.10.6, but a new
version of Camel is released, 2.11.1. Instead of having to go to
Apache's website, download the 2.11.1 distribution and replace 2.10.6
with it, you can just tell Maven to use the new distribution and the
work will be done for you.
I am trying to setup sqoop development environment in eclipse but, I do not see any instructions for sqoop 1.4.4.
I tried downloading the source from the SVN repo.
Installed ant and tried compiling the source code. But i want to set the project in eclipse.
I also tried creating a maven project under eclipse but it is giving the error
Missing artifact org.apache.sqoop:sqoop:jar:1.4.4
Any help or pointers are much appreciated.
I used the maven dependency to resolve the above issue
<dependency>
<groupId>org.apache.sqoop</groupId>
<artifactId>sqoop</artifactId>
<version>1.4.4</version>
<classifier>hadoop23</classifier>
I still want the ant related development setup. Please let me know.
I am trying to implement "JDO" in my android app.
The big step in this is to integrate it into the backend endpoints implementation of my google appengine portion of the app.
In doing so, I added "jdo-api.jar" to my classpath, which made my PMF.class file error free.
However when I try to run "mvn clean install" I am still getting the error "package javax.jdo not found" - what am I doing wrong here???
It sounds like you're modifying the classpath in an IDE (eclipse?), but when running mvn you're using the maven environment defined in pom.xml. Try adding the jdo-api dependency to the pom.xml
<dependency>
<groupId>javax.jdo</groupId>
<artifactId>jdo-api</artifactId>
<version> ...fill in version here... </version>
</dependency>