Giter Site home page Giter Site logo

microsoft / windowsazuretoolkitforeclipsewithjava Goto Github PK

View Code? Open in Web Editor NEW
42.0 30.0 37.0 80.91 MB

Windows Azure Toolkit for Eclipse with Java

Java 93.70% HTML 1.18% CSS 0.02% XSLT 0.20% Shell 0.01% Visual Basic 0.18% PowerShell 1.88% C# 2.21% Smalltalk 0.33% Batchfile 0.29%

windowsazuretoolkitforeclipsewithjava's Introduction

⚠️ NOTE: The work behind the Azure Toolkit for Eclipse has moved to a new repository: https://github.com/microsoft/azure-tools-for-java. This repo is no longer updated and is kept around only for archival purposes. The source code for the latest releases is at the new repo.

windowsazuretoolkitforeclipsewithjava's People

Contributors

pednekarprajakta avatar snallami avatar takekazuomi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

windowsazuretoolkitforeclipsewithjava's Issues

Gest OS 4.19 and SSLOffloading dose not work

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

Failed to install it in Ubuntu 14.04/14.10

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?

Installation failure on Ubuntu 14.04

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

SessionAffinityAgent does not works with Azure SDK 2.2

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.

incorrect JAVA_HOME in .startup.cmd on 2.2, created by 2.1

The JAVA_HOME, does not match the position of the runtime.

process
#1. Create Azure Project on 2.1

do JDK tab setting

waepj001
#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.

Failed to upload WAS war on Windows 8.1

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.

  • Move to Eclipse Project from c:\opt\workspace\HelloAzure to c:\HelloAzure
  • Run cspack.exe as command line
    `

    cspack.exe D:\HelloAzure\ServiceDefinition.csdef /role:WorkerRole1;D:\HelloAzure\WorkerRole1\approot /rolePropertiesFile:WorkerRole1;D:\HelloAzure.rolePropertiesOS3 /out:D:\HelloAzure\deploy\WindowsAzurePackage.cspkg
    `

  • Run cspack.exe as command line deleting /rolePropertiesFile
    `

    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?

.gitignore files not deleted before re-deployment

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.

Error creating project

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.

Component ANT-Task does not work on non english commandline

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)?

No way to downgrade?

  1. Seems like Azure SDK should be compatible with Azure Toolkit for Eclipse.
  2. Only Azure SDK below 2.4 contains caching components for Java Eclipse project. Say we can use Azure SDK 2.3, but we have no way to install Azure Toolkit for Eclipse. Latest(2.5) Azure Toolkit for Eclipse is installed via http://dl.msopentech.com/eclipse.

409 Conflict, when deploying in Azure

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

Tomcat 7.0.42 + JDK1.7.0_71 + SSLOffloading + >2 Instances = No longer working

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.

"Caching/Storage auto" does not works

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

eclipse004

Extract ACS security code in own artifact

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>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.