cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Studio - Create website Error

torms
Champ in-the-making
Champ in-the-making
I try to create a new website, When i select green energy or toy store, tomcat generate the next error.

01:00:24,093  WARN  [web.framework.ImportTask] Unable to import archive from zip
: C:\Alfresco\tomcat\temp\Alfresco\d7d3dc5698.zip
java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:203)
        at java.util.zip.ZipFile.<init>(ZipFile.java:84)
        at org.alfresco.web.framework.ImportTask.importArchive(ImportTask.java:1
81)
        at org.alfresco.web.framework.ImportTask.execute(ImportTask.java:149)
        at org.alfresco.web.framework.TaskWorkerThread.run(TaskWorkerThread.java
:115)
01:00:24,703  INFO  [web.scripts.AbstractRuntime] Caught exception & redirecting
to status template: Script url /api/importer/statuscheck does not map to a Web
Script.


Any idea??
24 REPLIES 24

danjackson77
Champ in-the-making
Champ in-the-making
I am also getting the same error no matter which template I attempt to use. Seem like the templates can not be located as the template zip files are not within the tomcat\temp\Alfresco directory…

Should the templates have been packaged with the latest Alfresco 3d??? The Green Energy tutorial states
The Alfresco Green Energy Site is currently archived on Alfresco Network as a zip file.

uzi
Champ in-the-making
Champ in-the-making
Hello,

Web Studio actually downloads sites from a community share on Alfresco Network.  The idea being that we would like to encourage our community to build interesting components and sites and share them with each other.  We haven't yet put in place all of the facilities to enable this but they are coming.

That said, the sites that you see from the site creation wizard are a few "stock" sites that we put in place so that people can try out the tool and play around with the general concept.

There may be a couple of reasons why the wizard fails in the way described.  One fundamental reason may be that the server cannot reach alfresco.network.com.  If it can reach the server, then I would test the following URL to see if it can be accessed:

https://network.alfresco.com/service/webstudio/sites

This is the main remote hook for pulling back a list of web sites.  It is the URL that Web Studio calls out to in order to retrieve the list of available sites.  It's a JSON formatted feed and you be able to see the three sites in it.

Inside of that, you'll see the archive URL:

https://network.alfresco.com/extranet/proxy/alfresco-noauth/api/path/content/workspace/SpacesStore/C...

You can try either of those from your machines.  If there is an issue retrieving the URL due to network connectivity (perhaps a proxy or firewall), then that surely is the reason.  We will need to empower Web Studio with better error reporting.

Please let me know what you find out.  If there is a non-network-related issue, then I'd like to help you get to the bottom of it right away.

Michael

chrisdav
Champ in-the-making
Champ in-the-making
I am getting this error too. Do not think i got it with 3C.

Used your URL and got this

{
    "results": {
        "quickstart": {
            "title": "Web Studio Quick Start",
            "description": "Web Studio Quick Start",
            "previewImageUrl": "https://network.alfresco.com/extranet/proxy/alfresco-noauth/api/path/content/workspace/SpacesStore/C...",
            "archiveUrl": "https://network.alfresco.com/extranet/proxy/alfresco-noauth/api/path/content/workspace/SpacesStore/C..."
        }
        ,
        "powertoys": {
            "title": "Power Toys - Sample",
            "description": "Power Toys - Sample",
            "previewImageUrl": "https://network.alfresco.com/extranet/proxy/alfresco-noauth/api/path/content/workspace/SpacesStore/C...",
            "archiveUrl": "https://network.alfresco.com/extranet/proxy/alfresco-noauth/api/path/content/workspace/SpacesStore/C..."
        }
        ,
        "greenenergy": {
            "title": "Green Energy - Sample ",
            "description": "Green Energy - Sample",
            "previewImageUrl": "https://network.alfresco.com/extranet/proxy/alfresco-noauth/api/path/content/workspace/SpacesStore/C...",
            "archiveUrl": "https://network.alfresco.com/extranet/proxy/alfresco-noauth/api/path/content/workspace/SpacesStore/C..."
        }
    }
}

Tried to download the zip and that worked as well I got a 594Kb greenenergy.zip file.

uzi
Champ in-the-making
Champ in-the-making
Hi Chris,

Which browser are you using?

Just for reference, I'd like to check against that because the calls are triggered out of JavaScript.
I'd like to give it a shot on your exact browser.

Thanks,

Michael

chrisdav
Champ in-the-making
Champ in-the-making
IE  7.0.5730.13

But I just tried it on Firefox 3.0.5 and that had the same error

raju_myadam
Champ in-the-making
Champ in-the-making
Hello,

I am also facing the same issue.
I tried with both IE 7.0 and Firefox 3.0.4.
Please find below the error -
15:55:59,229  WARN  [web.framework.ImportTask] Unable to import archive from zip: C:\Alfresco\tomcat\temp\Alfresco\2a138a3f25.zip
java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:203)
        at java.util.zip.ZipFile.<init>(ZipFile.java:84)
        at org.alfresco.web.framework.ImportTask.importArchive(ImportTask.java:181)
        at org.alfresco.web.framework.ImportTask.execute(ImportTask.java:149)
        at org.alfresco.web.framework.TaskWorkerThread.run(TaskWorkerThread.java:115)

Regards,
Raju

hbf
Champ on-the-rise
Champ on-the-rise
I would test the following URL to see if it can be accessed:

https://network.alfresco.com/service/webstudio/sites

This is the main remote hook for pulling back a list of web sites.  It is the URL that Web Studio calls out to in order to retrieve the list of available sites.  It's a JSON formatted feed and you be able to see the three sites in it.

Inside of that, you'll see the archive URL:

https://network.alfresco.com/extranet/proxy/alfresco-noauth/api/path/content/workspace/SpacesStore/C...

I experience the same problems as the others in the thread. And both of the above links were for me when visited in a web browser.

Regards,
Hbf

bogemans
Champ in-the-making
Champ in-the-making
I tried a couple of times to create a new website using the greenenergy template as well. The JSON and https link both work and result in a correct result and a zip file if I use them from the browser. I noticed that the zip file gets a new file name each time, but I cannot find the file in the alfresco\tomcat\temp\alfresco, in any of the subdirectories, or for that matter nowhere on the filesystem (including in the IE cache). It looks as if the application is trying to locate the file, but does not manage to write it there in the first place. I am using IE 7 on Windows Vista ,downloaded the full final labs version and installed on a clean machine.

Happy to assist in testing or send you the log files if it helps solving the issue  Smiley Happy

uzi
Champ in-the-making
Champ in-the-making
Hello,

We investigated this a little further and I think we've solved this.  It turns out that Alfresco Network (which consists of the backend services on Alfresco's side) was mishandling an HTTP call to download the web site bundle.

If you tried it to call the URL manually within a browser, things downloaded fine because the URL redirects were well-handled within the browser.  The Web Studio site-creation wizard apparently got somewhat confused.

Would you be able to give it another shot?  Try creating a site using the Power-Toys site, for example, to see if things download and create correctly for you.  I expect things are now in good shape.  If not, we can take it from there.

Thanks!

Michael