I am on 1.8.1 GAE for java using eclipse on a mac book pro mountain lion.
On trying to deploy I am getting error:
Unable to update:
com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=sakshumweb-hrd&version=3&
409 Conflict
Another transaction by user vik.ceo is already in progress for app: s~sakshumweb-hrd, version: 3. That user can undo the transaction with "appcfg rollback".
at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:293)
at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:253)
at com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:232)
at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:810)
at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:543)
at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:135)
at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:386)
at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:55)
<dx59b2s3gxmlhdp3940000gn/T/appengine-deploy2012670164492350692.log" 17L, 1449C
I have already executed the below command which succeeds but the deployment still fails with the same error. Please note that in past I have done it without any issues 100s of times.
/Users/vivekkumar/Downloads/Sakshum/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.8.1.1/appengine-java-sdk-1.8.1.1/bin/appcfg.sh rollback war
Reading application configuration data...
Oct 11, 2013 9:43:02 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed war/WEB-INF/appengine-web.xml
Oct 11, 2013 9:43:02 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed war/WEB-INF/web.xml
Oct 11, 2013 9:43:02 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed war/WEB-INF/cron.xml
Oct 11, 2013 9:43:02 PM com.google.apphosting.utils.config.IndexesXmlReader readConfigXml
INFO: Successfully processed war/WEB-INF/appengine-generated/datastore-indexes-auto.xml
Beginning interaction for server default...
0% Rolling back the update.
Success.
Cleaning up temporary files for server default...
I was the same issue (without GWT) and i solved deploy 409 error thanks this answer
Try it please, remove instance-class and automatic-scaling elements from appengine-web.xml.
You may need to cut down the number of permutations for the GWT compiler otherwise you'll end up with permutation explosion (the compiler will generate tons of files for each user agent, locale, ...etc), causing a timeout for app engine while deploying your app.
Try : Soft Permutations
OR : Controlling Permutation Explosion
Related
409 Conflict Another transaction by user XXX is already in progress for app: s~YYYY version: ZZ. That user can undo the transaction with "appcfg rollback".
Uploading a new version of the app on sep 23 2013 I got a 500 error. Since then I haven't been able to create new versions, I have followed the instructions by running:
C:\tools\appengine-java-sdk-1.8.4\bin>**appcfg.cmd rollback** c:\Users\workspace-jee\WWW\war
I get:
Sep 25, 2013 8:19:28 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed c:/Users/workspace-jee/WWW/war\WEB-INF/appengine-web.xml
Sep 25, 2013 8:19:28 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed c:/Users/workspace-jee/WWW/war\WEB-INF/web.xml
Sep 25, 2013 8:19:28 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed c:/Users/workspace-jee/WWW/war\WEB-INF/cron.xml
Sep 25, 2013 8:19:28 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed c:/Users/workspace-jee/WWW/war\WEB-INF/queue.xml
Sep 25, 2013 8:19:28 PM com.google.apphosting.utils.config.IndexesXmlReader readConfigXml
INFO: Successfully processed c:/Users/workspace-jee/WWW/war\WEB-INF/datastore-indexes.xml
Sep 25, 2013 8:19:28 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed c:/Users/workspace-jee/WWW/war\WEB-INF/backends.xml
Beginning interaction for module default...
0% Rolling back the update.
**Success**.
Cleaning up temporary files for module default...
However the error persists. Any ideas?
"If you have any settings related to modules (< instance-class >, < automatic-scaling > etc.), please remove them, rollback the previous transaction and try deploying again."
Helps for me. Just removed "< automatic-scaling >" block and then "appcfg rollback".
Same here. Please star this issue, since it seems to be a production problem given many of us are experiencing it:
https://code.google.com/p/googleappengine/issues/detail?id=10021
Here is the solution provided by Cowen ATM
Google are aware of this issue and after following their advice, deployment was successful. their advice is copied below:
"We are aware of this issue where incorrect error message is displayed during deployment. If you have any settings related to modules (, etc.), please remove them, rollback the previous transaction and try deploying again."
Note: even if you have performed the rollback many times, you will need to perform it again AFTER removing the above mentioned settings from your appengine-web.xml file.
http://appengine-application.blogspot.in/2014/09/appengine-unable-to-update.html
you need to run the rollback "project_War_Address" command in the appengine's sdk bin folder using cmd<>
If your app is built using Maven, the easier way to rollback is to point your terminal to the directory from where you run the appengine deployments, and type $appengine:rollback.
I am taking over an existing Struts-based web application and am trying to deploy it for the first time on my local machine. My predecessor told me to run it through Eclipse on a Tomcat server.
I have installed the latest tomcat and it is running fine. I have grabbed the code from their CVS server and, with a few tweaks, removed all of the errors from the Java files. I then created a new Run Configuration having it run as "Run on server".
When I run the Run Config, the tomcat server starts up without error messages in the Console and an Eclipse browser page pops up to the correct local URL. The returned page is a 404, however. Looking at my Tomcat "webaps" folder, I see that my application is not there.
My question is, how can I troubleshoot this? My tomcat error logs do not get updated when I deploy and the Console output, shown below, offers no hint that there is a problem.
May 30, 2011 3:48:07 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: <long list of paths>
May 30, 2011 3:48:07 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 30, 2011 3:48:07 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 410 ms
May 30, 2011 3:48:07 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 30, 2011 3:48:07 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
May 30, 2011 3:48:08 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor CanPost_Emil.xml
May 30, 2011 3:48:08 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 30, 2011 3:48:08 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 30, 2011 3:48:08 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31 config=null
May 30, 2011 3:48:08 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 244 ms
This is not the way to run web apps inside Eclipse.
Go to the Server view panel instead, and choose Add server. Here install the Tomcat adapter according to the instructions, and then add the projects you have (if they are Dynamic Web Projects). You can now start and stop the server and have the projects chosen updated when you change.
Do it this way. Do not try to create a Run Configuration launching Tomcat.
I have exactly the same problem.
While this is not a solution to the problem itself (running the project on Tomcat from within Eclipse), it is a way to run the project:
Pack(age) the project (I use maven: 'mvn clean package')
Copy the .war file into the webapps dir inside your tomcat installation.
(if not already running) Start up tomcat.
This works for me. I'm still looking for the proper answer to your question, but until I find it I'll just continue to manually package/deploy the project.
I have a java application (spring mvc, jpa) and i am trying to deploy it on google app engine.
For some reason I get the following error when deployment is done
........................
20% Scanning files on local disk.
25% Initiating update.
Error Details:
Feb 26, 2011 10:43:58 AM org.apache.jasper.JspC processFile
INFO: Built File: \about.jsp
Feb 26, 2011 10:45:41 AM org.apache.jasper.JspC processFile
INFO: Built File: \faq.jsp
Feb 26, 2011 10:47:23 AM org.apache.jasper.JspC processFile
INFO: Built File: \footer.jsp
Feb 26, 2011 10:49:05 AM org.apache.jasper.JspC processFile
INFO: Built File: \synchronize.jsp
java.io.IOException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=subsconvertor&version=0.1&
500 Internal Server Error
Server Error (500)
A server error has occurred.
Please see the logs [C:\Users\CRISTI~1.POP\AppData\Local\Temp\appcfg6738798550184437418.log] for further information.
And int he log I have:
Server Error (500)
A server error has occurred.
at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java:149)
at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java:82)
at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:579)
at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:397)
at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:112)
at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:56)
at com.google.appengine.tools.admin.AppCfg$UpdateAction.execute(AppCfg.java:547)
at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:138)
at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:61)
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:57)
com.google.appengine.tools.admin.AdminException: Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=subsconvertor&version=0.1&
500 Internal Server Error
Any idea what can be wrong?
Cheers,
Cristian
It's possible that the '.' in your version number is mucking things up.
The version identifier can only contain "letters, digits, and hyphens" (from google documentation).
I am trying to create my first webservice using eclipse javaEE under Axis2,
i am following this turorial eclipse tutorial
to learn how to make it.I make the webservice but when i want to assure that the ws has been deployed through viewing it through URL, an HTTP status 400 occure. How can I know what is the error??
here what i make exactly:
i make the settings in preferences [ ant , axis2, tomcat and java ].
New -> New dynamic web page
new ->java (I create the class i want to convert to ws)
new ->web service (i want to create bottom up ws).
type http://localhost:8080/Axis2/services/listservices in the url of browser
this what return HTTP Status 404 - /services/listservices
can some one tell me how can i know what is the error? or how can i define it?
EDIT:
an exception happen in the console of eclipse which is :
org.apache.axis2.transport.http.AxisAdminServlet java.lang.ClassNotFoundException: org.apache.axis2.transport.http.AxisAdminServlet
what should I do ,in the configuration i specify where is axis2 and eclipse shows
Axis2 runtime loaded successfully
after creating new work space and create webservice again, this is the output appears in console
Dec 20, 2010 8:32:04 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path: C:\Program
Files\Java\jdk1.6.0_18\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;F:/alaa college/year 4/1st
semester/Advance sw/Libraries/eclipse/jre/bin/client;F:/alaa college/year 4/1st
semester/Advance sw/Libraries/eclipse/jre/bin;D:\app\AloOoSh\product\11.1.0\db_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.6.0_18\bin;%ANT_HOME%\bin;%AXIS2_HOME%\bin;%CATALINA_HOME%\bin;C:\Program Files\MATLAB\R2008a\bin;C:\Program Files\MATLAB\R2008a\bin\win32;
Dec 20, 2010 8:32:05 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source'
to 'org.eclipse.jst.jee.server:testFirst' did not find a matching property.
Dec 20, 2010 8:32:05 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 20, 2010 8:32:05 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 401 ms
Dec 20, 2010 8:32:05 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 20, 2010 8:32:05 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
[INFO] Deploying module: addressing-1.4 - file:/D:/EclipseExcercises/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/testF
irst/WEB-INF/modules/addressing-1.4.mar
[INFO] Deploying module: metadataExchange-1.4 -
file:/D:/EclipseExcercises/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/testFirst/WEB-INF/modules/mex-1.4.mar
[INFO] Deploying module: ping-1.4 -
file:/D:/EclipseExcercises/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/testFirst/WEB-INF/modules/ping-1.4.mar
[INFO] Deploying module: script-1.4 - file:/D:/EclipseExcercises/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/testFirst/WEB-INF/modules/scripting-1.4.mar
[INFO] Deploying module: smtpfault - file:/D:/EclipseExcercises/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/testFirst/WEB-INF/modules/smtpfault.mar
[INFO] Deploying module: soapmonitor-1.4 - file:/D:/EclipseExcercises/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/testFirst/WEB-INF/modules/soapmonitor-1.4.mar
[INFO] Deploying Web service: Converter - file:/D:/EclipseExcercises/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/testFirst/WEB-INF/services/Converter/
[INFO] Deploying Web service: version.aar - file:/D:/EclipseExcercises/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/testFirst/WEB-INF/services/version.aar
Dec 20, 2010 8:32:06 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 20, 2010 8:32:06 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Dec 20, 2010 8:32:06 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/19 config=null
Dec 20, 2010 8:32:06 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1383 ms
These is my own post to creating webservice and use that service in android. its
work properly.
Try this once below link
http://lukencode.com/2010/04/27/calling-web-services-in-android-using-httpclient/#comment-179
The 404 error occurs because there is nothing at the desired url. So there must have been something wrong with your deployment.
Have you set up a server in eclipse and actually published the WS at all? Note that this is different from running Tomcat from a directory somewhere else on your computer! You can add a server instance by selecting New => Server.
If the server configuration is otherwise correct, the server output should appear in eclipse's console, and if anything is wrong with your WS setup, there should be error messages you can use to track down the problem.
You probably extracted the contents of axis2.war (renamed to app.zip) into the wrong folder or deployed files to the wrong folder. Look for the WEB-INF folder directly under the app.war folder that you deployed. If you have another folder of WEB-INF for the axis2 extracted folders, then JBoss cannot locate them. The WEB-INF folder must be a folder as a 1st level descendant. Along with the following folders: axis2-web, META-INF and org.
I've been running Tomcat 6 on my pc for some time now, and it has been running successfully...up until today. I just tried to start it, and now for some reason it won't start.
I start it from a command line prompt. The second prompt that appears after I enter 'startup' in the first prompt is exiting quickly, whereas it usually stays open and shows the status of the server.
Here's what the log file logged -
Dec 3, 2010 4:00:00 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Java\jdk1.5.0_16\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;c:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Java\jdk1.5.0_16\bin;C:\jakarta-tomcat\bin;C:\MYSQL\MySQL Server 5.1\bin
Dec 3, 2010 4:00:01 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 3, 2010 4:00:01 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 424 ms
Dec 3, 2010 4:00:01 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 3, 2010 4:00:01 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
Dec 3, 2010 4:00:01 PM org.apache.tomcat.util.modeler.Registry registerComponent
SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/MyWebApp,J2EEApplication=none,J2EEServer=none
I never saw this before, where it says SEVERE: Null component... - what does it mean? What's causing it?
Here's what I ended up doing. I made a backup of my server.xml and web.xml files, along with my apps under the webapps folder, and removed jakarta-tomcat, and then reinstalled it. I restored the server.xml and web.xml file, threw my webapps back in, and started Tomcat up. This time, I got the same error as before, but it pinpointed that a particular servlet under one of my folders had a "bad version number". So I went through my servlet folders and recompiled the classes.
I started Tomcat again, and its running as it used to.
The problem was that a class had been compiled under a different version of the JDK, and it was causing an error.
Have you changed anything recently with regard to your Tomcat installation, configuration or deployments? Do you have a web application running under Tomcat called "MyWebApp"? If so, I would remove it and see if that fixes the problem. Otherwise, you might have to reinstall Tomcat.