microsoft / windowsazuretoolkitforeclipsewithjava Goto Github PK
View Code? Open in Web Editor NEWWindows Azure Toolkit for Eclipse with Java
Windows Azure Toolkit for Eclipse with Java
When I deploy an application to the cloud to a cloud service, which already has an instance, I get the error message 409 Conflict. (This also happens, if there is just one instance in production and no instance in staging.)
In my mind, this should not happen. It should be possible to deploy to a cloud service, which only has instances running in production.
The stack trace from the eclipse log is:
!ENTRY WAEclipsePlugin 4 0 2013-10-18 10:16:53.303
!MESSAGE Error
!STACK 0
com.gigaspaces.azure.deploy.DeploymentException: Failed : HTTP error code : 409
Conflict
at com.gigaspaces.azure.deploy.DeploymentManager.deploy(DeploymentManager.java:239)
at com.gigaspaces.azure.wizards.WindowsAzureDeploymentJob.doTask(WindowsAzureDeploymentJob.java:133)
at com.gigaspaces.azure.wizards.WindowsAzureDeploymentJob.access$1(WindowsAzureDeploymentJob.java:131)
at com.gigaspaces.azure.wizards.WindowsAzureDeploymentJob$3.run(WindowsAzureDeploymentJob.java:121)
at java.lang.Thread.run(Unknown Source)
Caused by: com.gigaspaces.azure.rest.RestAPIConflictException: Failed : HTTP error code : 409
Conflict
at com.gigaspaces.azure.rest.WindowsAzureServiceImpl.validateResponse(WindowsAzureServiceImpl.java:109)
at com.gigaspaces.azure.rest.WindowsAzureServiceManagement.createDeployment(WindowsAzureServiceManagement.java:423)
at com.gigaspaces.azure.deploy.DeploymentManager.createDeployment(DeploymentManager.java:393)
at com.gigaspaces.azure.deploy.DeploymentManager.deploy(DeploymentManager.java:210)
... 4 more
Seems like it doesn't make sense to install this tool in Linux, cuz it depends on Azure SDK which only has windsows Version when publishing Java to Azure Cloud service. However, when following https://msdn.microsoft.com/library/azure/hh690946/, I am told that we can install it in Ubuntu 14.04. But When I tried that, I got the following error:
Cannot complete the install because some dependencies are not satisfiable com.microsoftopentechnologies.windowsazure.tools.sdk.feature.feature.group
[0.7.0.201501291852] cannot be installed in this environment because its filter is not applicable.
Any ideas?
Hi, as I mentioned on the title, there is a problem that appeared the March 21th in an Azure Cloud Service, EAST US region, I have an application deployment using the Eclipse Plugin Version 2.5.0.201411120147, including a Tomcat Server, Java JDK and some settings that mmake use of SSL Offloading and the service has 2 instances configured, nobody makes changes to that configuration in a long time, so, for an unknow reason for us, in March 21 at 4:45 pm +6 (Mexico Central Time) the azure cloud service was automatically restarted and when it appears in Available Status, the IIS services are down, the internal Tomcat Service with the Java application is UP and working internally, checked thru the remote desktop connection, it looks like something related to the ARR configuration included in the plug-in and is not compatible with the last windows 20XX image used as template for cloud services. I may appreciate so much if you can do a test with a generic deployment with some setting as I mentioned and see what is the result. Thank you.
The component task does not work on non english commandlines cause the given parameters are locale specific.
echo f | xcopy /y /q "MyHelloWorld.war" "\WorkerRole1\apache-tomcat-7.0.42\webapps\MyHelloWorld.war"
must be
echo d | xcopy /y /q "MyHelloWorld.war" "\WorkerRole1\apache-tomcat-7.0.42\webapps\MyHelloWorld.war"
for german commandlines cause the question in german is:
Ist das Ziel \WorkerRole1\apache-tomcat-7.0.42\webapps\MyHelloWorld.war ein Dateiname
oder ein Verzeichnisname
(D = Datei, V = Verzeichnis)?
If select auto in storage setting then I can't build package.
Buildfile: C:\ws\azurecache001\MyAzureProject\package.xml
checkResetScript:
resetEmulator:
createwapackage:
[mkdir] Created dir: C:\ws\azurecache001\MyAzureProject\deploy
[delete] Deleting directory C:\ws\azurecache001\MyAzureProject\deploy.old
BUILD FAILED
C:\ws\azurecache001\MyAzureProject\package.xml:124: Project build failed due to below validation errors
Missing storage account information for the caching feature enabled in role 'WorkerRole1'
Total time: 442 milliseconds
When deploying (and re-deploying) a tomcat web application in the emulator, I had trouble deploying an application as ROOT. The problem turned out to be that my project contained a .gitignore file under the WebContent folder. This file wasn't deleted between re-deployments, so the entire webapps/ROOT folder remained undeleted. When the application was re-deployed, tomcat didn't redeploy ROOT.war since it already existed.
My solution was to add <defaultexcludes remove="**/.gitignore"/>
to package.xml under taskdef windowsazurepackage
This might happen not just git users since ant ignores other dot files as well - http://ant.apache.org/manual/dirtasks.html#defaultexcludes.
Note that leaving the deployment directory dirty might cause all kinds of problems, not just the issue I experienced. I suggest modifying the default package.xml template to account for that (or adding a convenient GUI option for doing so), plus documenting this issue.
According to MSDN, https://msdn.microsoft.com/en-us/library/azure/hh690946 , this toolkit could be installed on Ubuntu 14.04
but when we actually try to install it, we would encounter failures.
Cannot complete the install because some dependencies are not satisfiable com.microsoftopentechnologies.windowsazure.tools.sdk.feature.feature.group
[0.7.0.201501291852] cannot be installed in this environment because its filter is not applicable.
could you clarify if this toolkit could be installed on Ubuntu 14.04 or not ?
Many Thanks
I can't build it.
Please extract the sources for the ACS based authentication in an extra Java artifact. With a Maven build. This makes it possible to use ACS in 'normal' Java web applications without the need of having to use a Windows Azure Deployment project. Other possibility would be to include it in the Azure Java SDK.
I've done this for a demo, we're currently preparing for the GOTO Conference in Zurich. It's accessible by using the following Maven dependency:
<dependency>
<groupId>com.microsoft.windowsazure</groupId>
<artifactId>microsoft-windowsazure-web</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
and the repository:
<repository>
<id>jm-internal</id>
<url>http://jmmvn.azurewebsites.net/repo/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
I can't upload *.cspkg file when I select WebSphere 8.5 as my AppServer and I got below error.
[windowsazurepackage] cspack.exe: Error : 指定されたパス、ファイル名、またはその両方が長すぎます。完全限定型名は 260 文字未満で指定し、ディレクトリ名は 248 未満で指定してください。
This error is same with below error log
The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
After I got this error, I have tried below ways, but I got same error like as the first.
cspack.exe D:\HelloAzure\ServiceDefinition.csdef /role:WorkerRole1;D:\HelloAzure\WorkerRole1\approot /rolePropertiesFile:WorkerRole1;D:\HelloAzure.rolePropertiesOS3 /out:D:\HelloAzure\deploy\WindowsAzurePackage.cspkg
`
cspack.exe D:\HelloAzure\ServiceDefinition.csdef /role:WorkerRole1;D:\HelloAzure\WorkerRole1\approot /out:D:\HelloAzure\deploy\WindowsAzurePackage.cspkg
`
I guess this error is caused by the copying WAS profile into WorkerRole1\approot. How can I upload *cspack file using WAS?
The JAVA_HOME, does not match the position of the runtime.
process
#1. Create Azure Project on 2.1
do JDK tab setting
#2. Open Project on 2.2 and build packacge
Buildfile: C:\Users\Takekazu\workplace_aztomcat010\MyAzureProject\package.xml
checkResetScript:
resetEmulator:
createwapackage:
[mkdir] Created dir: C:\Users\Takekazu\workplace_aztomcat010\MyAzureProject\deploy
[delete] Deleting directory C:\Users\Takekazu\workplace_aztomcat010\MyAzureProject\deploy.old
[windowsazurepackage] Verified attributes.
[windowsazurepackage] Role "WorkerRole1": Verifying the approot "C:\Users\Takekazu\workplace_aztomcat010\MyAzureProject\WorkerRole1\approot"
[windowsazurepackage] Copying 1 file to C:\Users\Takekazu\workplace_aztomcat010\MyAzureProject\WorkerRole1\approot\util
[windowsazurepackage] Role "WorkerRole1": Importing components...
[windowsazurepackage] Copying 1238 files to C:\Users\Takekazu\workplace_aztomcat010\MyAzureProject\WorkerRole1\approot\jdk1.7.0_25
[windowsazurepackage] Copied 78 empty directories to 1 empty directory under C:\Users\Takekazu\workplace_aztomcat010\MyAzureProject\WorkerRole1\approot\jdk1.7.0_25
[windowsazurepackage] Imported as 'jdk1.7.0_25' from "C:\opt\Java\jdk1.7.0_25"
[windowsazurepackage] Copying 575 files to C:\Users\Takekazu\workplace_aztomcat010\MyAzureProject\WorkerRole1\approot\apache-tomcat-7.0.42
[windowsazurepackage] Copied 104 empty directories to 2 empty directories under C:\Users\Takekazu\workplace_aztomcat010\MyAzureProject\WorkerRole1\approot\apache-tomcat-7.0.42
[windowsazurepackage] Imported as 'apache-tomcat-7.0.42' from "C:\opt\apache-tomcat-7.0.42-windows-x64\apache-tomcat-7.0.42"
[windowsazurepackage] Role "WorkerRole1": Finished importing components
[windowsazurepackage] Role "WorkerRole1": Generating component deployment script...
[windowsazurepackage] Role "WorkerRole1": Created internal startup script
[windowsazurepackage] Starting package generation...
[windowsazurepackage] Executing '[C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\v2.2\bin\cspack.exe, C:\Users\Takekazu\workplace_aztomcat010\MyAzureProject\ServiceDefinition.csdef, /role:WorkerRole1;C:\Users\Takekazu\workplace_aztomcat010\MyAzureProject\WorkerRole1\approot, /rolePropertiesFile:WorkerRole1;C:\Users\Takekazu\workplace_aztomcat010\MyAzureProject\.rolePropertiesOS3, /out:C:\Users\Takekazu\workplace_aztomcat010\MyAzureProject\deploy\WindowsAzurePackage.cspkg]'...
[windowsazurepackage] Process started
[windowsazurepackage] Windows(R) Azure(TM) Packaging Tool version 2.2.0.0
[windowsazurepackage] for Microsoft(R) .NET Framework 4.0
[windowsazurepackage] Copyright c Microsoft Corporation. All rights reserved.
[windowsazurepackage] C:\Users\Takekazu\workplace_aztomcat010\MyAzureProject\ServiceDefinition.csdef: Warning CloudServices040 : The 'schemaVersion' attribute is unspecified. Please set the attribute to avoid this warning.
[windowsazurepackage] Waiting for process to exit...
[windowsazurepackage] Completed package generation.
[windowsazurepackage] Copying 1 file to C:\Users\Takekazu\workplace_aztomcat010\MyAzureProject\deploy
BUILD SUCCESSFUL
Total time: 59 seconds
#3. see .startup.cmd in cspkg
rd "\%ROLENAME%"
if defined DEPLOYROOT_PATH set DEPLOYROOT=%DEPLOYROOT_PATH%
if defined DEPLOYROOT (
mklink /J "\%ROLENAME%" "%DEPLOYROOT%"
) else (
mklink /J "\%ROLENAME%" "%ROLEROOT%\approot"
)
set DEPLOYROOT=\%ROLENAME%
set SERVER_APPS_LOCATION=%DEPLOYROOT%
set JAVA_HOME=%DEPLOYROOT%\zulu1.7.0_25-7.0.0.0-win64
set PATH=%JAVA_HOME%\bin;%PATH%
set CATALINA_HOME=%DEPLOYROOT%\apache-tomcat-7.0.42
set SERVER_APPS_LOCATION=%CATALINA_HOME%\webapps
cscript /NoLogo util\unzip.vbs "jdk1.7.0_25" "%DEPLOYROOT%"
cscript /NoLogo util\unzip.vbs "apache-tomcat-7.0.42" "%DEPLOYROOT%"
if not "%SERVER_APPS_LOCATION%" == "\%ROLENAME%" if exist "HelloWorld.war"\* (echo d | xcopy /y /e /q "HelloWorld.war" "%SERVER_APPS_LOCATION%\HelloWorld.war" 1>nul) else (echo f | xcopy /y /q "HelloWorld.war" "%SERVER_APPS_LOCATION%\HelloWorld.war" 1>nul)
start "Windows Azure" /D"%CATALINA_HOME%\bin" startup.bat
...
after resetting in JDK tab, works fine.
I have problems similar to #16 .
Cause seems is that ARR can not be installed.
I determine to continue
The excerpt of the log below
% ROLEROOT% \ plugins \ WebDeploy \ WebpiCmd.exe / Install / accepteula / Products: ARR >> logs.txt 2> & 1
The license agreement to 'URL Rewrite 2.0' is available at 'http://download.microsoft.com/download/6/9/C/69C1195A-123E-4BE8-8EDF-Starting Installation
Started downloading products...
Started downloading: 'Web Farm Framework 1.1'
Downloaded: 'Web Farm Framework 1.1'
Started downloading: 'External Cache 1.0'
Started installing Products...
Started installing: 'Web Farm Framework 1.1'
Downloaded: 'External Cache 1.0'
Install completed (Success): 'Web Farm Framework 1.1'
Web Farm Framework 1.1 : Installed
Started downloading: 'Hotfix for External Cache 1.0'
Started installing: 'External Cache 1.0'
Downloaded: 'Hotfix for External Cache 1.0'
Started downloading: 'URL Rewrite 2.0'
Install completed (Success): 'External Cache 1.0'
External Cache 1.0 : Installed
Started installing: 'Hotfix for External Cache 1.0'
Downloaded: 'URL Rewrite 2.0'
Started downloading: 'Application Request Routing 2.5'
Install completed (Success): 'Hotfix for External Cache 1.0'
Hotfix for External Cache 1.0 : Installed
Started installing: 'URL Rewrite 2.0'
Downloaded: 'Application Request Routing 2.5'
Started downloading: 'KB2589179 for Application Request Routing 2.5'
Downloaded: 'KB2589179 for Application Request Routing 2.5'
Started downloading: 'Application Request Routing 2.5 with KB2589179'
Downloaded: 'Application Request Routing 2.5 with KB2589179'
Install completed (Failure): 'URL Rewrite 2.0'
UrlRewrite2 : Failed.
A newer version of IIS URL Rewrite Module 2 was found on this machine.
DependencyFailed: Application Request Routing 2.5
DependencyFailed: KB2589179 for Application Request Routing 2.5
DependencyFailed: Application Request Routing 2.5 with KB2589179
Verifying successful installation...
Web Farm Framework 1.1 True
External Cache 1.0 True
Hotfix for External Cache 1.0 True
URL Rewrite 2.0 False
Log Location: D:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\Web Platform Installer\logs\install\2015-04-26T01.37.50\rewrite_amd64_en-US.txt
Application Request Routing 2.5 False
KB2589179 for Application Request Routing 2.5 False
Application Request Routing 2.5 with KB2589179 False
Install of Products: FAILURE
SessionAffinityAgent does not support https endpoint.
Not usefull.
SessionAffinityAgent depend Microsoft.WindowsAzure.ServiceRuntime.dll
2.1. then SessionAffinityAgent does works with Azure SDK 2.2.
not found ServiceRuntime 2.2 error
After install Azure SDK 2.2 SessionAffinityAgent always failed.
I've installed the plugin from the update site on a fresh eclipse.
Clicking on "New windows azure ..." shows a "Error creating project" box followed by the parameter dialog with the only "Cancel" button active.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.