Appengine Maven Project run as wtp on local server issue

319 views Asked by At

i have been trying to run a maven project as dynamic web project in local server to get hot re-deployment feature, which is currently not available appengine maven plugin with eclipse

i referred : https://developers.google.com/appengine/docs/java/webtoolsplatform

this project works fine when running using mvn:appengine devserver command, but we i tried to run on local server, i get the following error

Error occurred during initialization of VM

agent library failed to init: instrument

Error opening zip file or JAR manifest missing : /Volumes/My

any idea what this error means?

Note: the ultimate goal was to some how synchronous changes in src war folder to be present in target directory to avoid stopping and starting server for every changes

any solutions to solve this issue is most welcome!

Thanks

2

There are 2 answers

4
alex On

To answer the ultimate goal, mvn appengine:devserver already supports reloading:

When the server is running, it continuously checks to determine whether appengine-web.xml has changed. If it has, the server does a hot reload of the application. This means that you do not need to stop and restart your application because of changes to appengine-web.xml

https://developers.google.com/appengine/docs/java/tools/maven#managing_and_running_a_project_with_the_app_engine_maven_plugin

5
Nick On

Do you have m2e-wtp installed? It handles web assets being updated in a running container (including the devserver through GPE).