Giter Site home page Giter Site logo

Comments (6)

snallami avatar snallami commented on May 12, 2024

@takekazuomi , For third party JDK's if you are selecting storage account has "auto" , then plugin expects that user uses publish wizard for cloud deployments. If publish wizard is used then plugin takes care of generating all the files.

If the intention is to generate only .cspkg and .cscfg by using project build or "Build for Cloud" toolbar option then I suggest to select a particular storage account instead of "auto".

BTW we are planning to enhance build for cloud option to take care of scenarios where storage account is specified as "auto".

from windowsazuretoolkitforeclipsewithjava.

takekazuomi avatar takekazuomi commented on May 12, 2024

Mr. @snallami, Thank you for information.

After you have created using the plugin 2.1, which occurs when you build using the plugin 2.2.
There is no problem if you are using only 2.1 or 2.2.
I think this is only a matter of upgrading the plug-in.
I was very confused.

from windowsazuretoolkitforeclipsewithjava.

snallami avatar snallami commented on May 12, 2024

I am reopening the issue for further discussion.

Is it possible for you to repo the issue by selecting a storage account instead of "auto" option? If you need access to 2.1 binary then i will work with you offline on how to get the old version binaries.

from windowsazuretoolkitforeclipsewithjava.

takekazuomi avatar takekazuomi commented on May 12, 2024

I have a Eclipse two environments. One, Eclisep juno with you plugin 2.1. Another is Eclisep kepler with you plugin 2.2.
I can check in this environment. I'll try now.

from windowsazuretoolkitforeclipsewithjava.

takekazuomi avatar takekazuomi commented on May 12, 2024

It works fine when selecting a storage account.

1. create azure project on 2.1

use Deploy from a custom download (no auto option)

issue7-002

2. build log on 2.1

Buildfile: C:\Users\Takekazu\workplace_aztomcat012\MyAzureProject\package.xml

checkResetScript:

resetEmulator:

createwapackage:
        [move] Moving 74 files to C:\Users\Takekazu\workplace_aztomcat012\MyAzureProject
       [mkdir] Created dir: C:\Users\Takekazu\workplace_aztomcat012\MyAzureProject\deploy
      [delete] Deleting directory C:\Users\Takekazu\workplace_aztomcat012\MyAzureProject\deploy.old
[windowsazurepackage] Verified attributes.
[windowsazurepackage] Role "WorkerRole1": Verifying the approot "C:\Users\Takekazu\workplace_aztomcat012\MyAzureProject\WorkerRole1\approot"
[windowsazurepackage] Role "WorkerRole1": Importing components...
[windowsazurepackage]   Not importing component 'jdk1.7.0_25' because it will be downloaded during deployment in the cloud
[windowsazurepackage]   Not importing component 'apache-tomcat-7.0.42' because it will be downloaded during deployment in the cloud
[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_aztomcat012\MyAzureProject\ServiceDefinition.csdef, /role:WorkerRole1;C:\Users\Takekazu\workplace_aztomcat012\MyAzureProject\WorkerRole1\approot, /rolePropertiesFile:WorkerRole1;C:\Users\Takekazu\workplace_aztomcat012\MyAzureProject\.rolePropertiesOS3, /out:C:\Users\Takekazu\workplace_aztomcat012\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_aztomcat012\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_aztomcat012\MyAzureProject\deploy
[windowsazurepackage] Verifying blob availability (https://foobaromipf001.blob.core.windows.net/eclipsedeploy/zulu1.7.0_25-7.0.0.0-win64.zip)...
[windowsazurepackage] Verifying blob availability (http://foobaromipf001.blob.core.windows.net/eclipsedeploy/apache-tomcat-7.0.42.zip)...
BUILD SUCCESSFUL
Total time: 12 seconds

3. .startup.cmd 2.1

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


cmd /c util\wash.cmd blob download "zulu1.7.0_25-7.0.0.0-win64.zip" "zulu1.7.0_25-7.0.0.0-win64.zip" eclipsedeploy foobaromipf001 "9JgF+iA3Wf+IpEie+DpxCO70++9j6VTjG5rKN2ML7NDYIb9m5qtV9Le2CkvUoHRSV3vbucZJ8o+ycYsYwGIV8w==" "https://core.windows.net"
if not exist "zulu1.7.0_25-7.0.0.0-win64.zip" exit 1
cscript /NoLogo util\unzip.vbs "zulu1.7.0_25-7.0.0.0-win64.zip" "%DEPLOYROOT%"
del /Q /F "zulu1.7.0_25-7.0.0.0-win64.zip"
cmd /c util\wash.cmd blob download "apache-tomcat-7.0.42.zip" "apache-tomcat-7.0.42.zip" eclipsedeploy foobaromipf001 "9JgF+iA3Wf+IpEie+DpxCO70++9j6VTjG5rKN2ML7NDYIb9m5qtV9Le2CkvUoHRSV3vbucZJ8o+ycYsYwGIV8w==" "http://core.windows.net"
if not exist "apache-tomcat-7.0.42.zip" exit 1
cscript /NoLogo util\unzip.vbs "apache-tomcat-7.0.42.zip" "%DEPLOYROOT%"
del /Q /F "apache-tomcat-7.0.42.zip"
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

--- cut here ---

It's works.

4. start to use 2.2. open and build

Buildfile: C:\Users\Takekazu\workplace_aztomcat012\MyAzureProject\package.xml

checkResetScript:

resetEmulator:

createwapackage:
        [move] Moving 75 files to C:\Users\Takekazu\workplace_aztomcat012\MyAzureProject
       [mkdir] Created dir: C:\Users\Takekazu\workplace_aztomcat012\MyAzureProject\deploy
      [delete] Deleting directory C:\Users\Takekazu\workplace_aztomcat012\MyAzureProject\deploy.old
[windowsazurepackage] Verified attributes.
[windowsazurepackage] Role "WorkerRole1": Verifying the approot "C:\Users\Takekazu\workplace_aztomcat012\MyAzureProject\WorkerRole1\approot"
[windowsazurepackage] Role "WorkerRole1": Importing components...
[windowsazurepackage]   Not importing component 'jdk1.7.0_25' because it will be downloaded during deployment in the cloud
[windowsazurepackage]   Not importing component 'apache-tomcat-7.0.42' because it will be downloaded during deployment in the cloud
[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_aztomcat012\MyAzureProject\ServiceDefinition.csdef, /role:WorkerRole1;C:\Users\Takekazu\workplace_aztomcat012\MyAzureProject\WorkerRole1\approot, /rolePropertiesFile:WorkerRole1;C:\Users\Takekazu\workplace_aztomcat012\MyAzureProject\.rolePropertiesOS3, /out:C:\Users\Takekazu\workplace_aztomcat012\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_aztomcat012\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_aztomcat012\MyAzureProject\deploy
[windowsazurepackage] Verifying blob availability (https://foobaromipf001.blob.core.windows.net/eclipsedeploy/zulu1.7.0_25-7.0.0.0-win64.zip)...
[windowsazurepackage] Verifying blob availability (http://foobaromipf001.blob.core.windows.net/eclipsedeploy/apache-tomcat-7.0.42.zip)...
BUILD SUCCESSFUL

5. .satrtup.cmd on 2.2


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


cmd /c util\wash.cmd blob download "zulu1.7.0_25-7.0.0.0-win64.zip" "zulu1.7.0_25-7.0.0.0-win64.zip" eclipsedeploy foobaromipf001 "9JgF+iA3Wf+IpEie+DpxCO70++9j6VTjG5rKN2ML7NDYIb9m5qtV9Le2CkvUoHRSV3vbucZJ8o+ycYsYwGIV8w==" "https://core.windows.net"
if not exist "zulu1.7.0_25-7.0.0.0-win64.zip" exit 0
cscript /NoLogo util\unzip.vbs "zulu1.7.0_25-7.0.0.0-win64.zip" "%DEPLOYROOT%"
del /Q /F "zulu1.7.0_25-7.0.0.0-win64.zip"
cmd /c util\wash.cmd blob download "apache-tomcat-7.0.42.zip" "apache-tomcat-7.0.42.zip" eclipsedeploy foobaromipf001 "9JgF+iA3Wf+IpEie+DpxCO70++9j6VTjG5rKN2ML7NDYIb9m5qtV9Le2CkvUoHRSV3vbucZJ8o+ycYsYwGIV8w==" "http://core.windows.net"
if not exist "apache-tomcat-7.0.42.zip" exit 0
cscript /NoLogo util\unzip.vbs "apache-tomcat-7.0.42.zip" "%DEPLOYROOT%"
del /Q /F "apache-tomcat-7.0.42.zip"
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

--- cut here ---

It's works too.

from windowsazuretoolkitforeclipsewithjava.

snallami avatar snallami commented on May 12, 2024

Thanks for confirmation. I am marking this has enhancement(The one i talked about enhancing build for cloud option) and closing this issue now.

from windowsazuretoolkitforeclipsewithjava.

Related Issues (16)

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.