Web Studio - Failed to load script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2009 09:08 AM
It is not possible to create a new web site because there is not loaded the list that should appear under the text " Based on the following: ".
In the console of the tomcat the following thing appears:
[web.scripts.AbstractRuntime] Caught exception & redirecting
to status template: Failed to load script '/web-studio/api/prebuilt/list.get.js
(in classpath store file:C:/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfr
esco/webscripts)': TypeError: Cannot read property "results" from null (file:C:/
Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresco/webscripts/web-studio/ap
i/prebuilt/list.get.js#47)
I have Internet gone out across proxy.
I have removed the commentary of the block:
<config evaluator="string-compare" condition="Server">
<server>
<!– Enable and adjust the following settings to allow for external access URLs to the
WebScript Framework - to return an externally accessable address for absolute url generation.
<scheme>http</scheme>
<hostname>localhost</hostname>
<port>8080</port>
<path>alfresco</path>
–>
</server>
</config>
of the following files:
alfresco/tomcat/webapps/alfresco/webscript-framework-config.xml
alfresco/tomcat/webapps/share/webscript-framework-config.xml
alfresco/tomcat/webapps/studio/webscript-framework-config.xml
but that isn't work.
Must I add in these files an endpoint relative to the alfresco-network that is formed in the file web - framework-config-application.xml?
Any idea?
PD: excuse me for my english :cry:
- Labels:
-
Archive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2009 01:39 PM
Are you using Web Studio in Labs 3D? On another thread, some folks had noted an issue if you're connecting through a proxy. It sounds like the application may be unable to connect to the Alfresco Network service.
You shouldn't have to change any configuration files in order to get the list of sites to back. It's part of the alfresco-network endpoint which points to https://network.alfresco.com.
Can you check whether from that box you are able to access:
https://network.alfresco.com/service/webstudio/sites
That essentially retrieves a live JSON feed of the sample sites. As many have speculated, we're going to be opening up an extensions / addons library soon for community contributions. Similar mechanics will be used to automatically deploy components, sites, themes and more into Alfresco Surf applications - including Alfresco Share.
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2009 02:47 AM
I am using the version labs 3d. I understand that the problem is that I cannot enter to the route https://network.alfresco.com/extranet (if I write this URL in a browser, I cannot enter either)
To the route that you have indicated me, yes, I can accede from a browser. Must I include it in some file? There is no solution for my problem?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2009 09:22 AM
I have installed Alfresco-Labs-3Stable-Full-Setup.exe in local PC.
tomcat server as well as virtual server running .
But open web studio http://localhost:8080/studio/page
On creating a new web site, there is not loaded the list that should appear under the text " Based on the following: ".
In the console of the tomcat the following thing appears:
16:49:46,612 INFO [web.scripts.AbstractRuntime] Caught exception & redirecting
to status template: Failed to load script '/web-studio/api/prebuilt/list.get.js
(in classpath store file:C:/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfr
esco/webscripts)': TypeError: Cannot read property "results" from null (file:C:/
Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresco/webscripts/web-studio/ap
i/prebuilt/list.get.js#47)
I am able to access below site from PC
https://network.alfresco.com/service/webstudio/sites
https://network.alfresco.com.
Please suggest me ASAP.
Thanks in advance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2009 04:56 PM
Hi,
I have installed Alfresco-Labs-3Stable-Full-Setup.exe in local PC.
tomcat server as well as virtual server running .
But open web studio http://localhost:8080/studio/page
On creating a new web site, there is not loaded the list that should appear under the text " Based on the following: ".
In the console of the tomcat the following thing appears:
16:49:46,612 INFO [web.scripts.AbstractRuntime] Caught exception & redirecting
to status template: Failed to load script '/web-studio/api/prebuilt/list.get.js
(in classpath store file:C:/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfr
esco/webscripts)': TypeError: Cannot read property "results" from null (file:C:/
Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresco/webscripts/web-studio/ap
i/prebuilt/list.get.js#47)
I am able to access below site from PC
https://network.alfresco.com/service/webstudio/sites
https://network.alfresco.com.
Please suggest me ASAP.
Thanks in advance.
I am having the same issue. I have verified (using firefox with system default settings) that I can reach https://network.alfresco.com/service/webstudio/sites.
Anyone have any ideas?
Thanks,
-Roger Bowman

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2009 01:13 PM
Using wireshark, I have found that web studio is not attempting to connect back to network.alfresco.com through the proxy server.
I then tried setting the proxy server and port properties (http(s).proxyHost and http(s).proxyPort) as jvm options, but it's still not working.
My question now is can Alfresco web studio be configured to use a proxy server to connect to https://network.alfresco.com? If so, how do I configure Alfresco to use the proxy server?
Thanks in advance,
-Roger

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2009 10:46 AM
I am in need of this..
Thanks in Advance…
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2009 11:10 AM
-Dhttp.proxyHost=proxy.com -Dhttp.proxyPort=8080
in your java options. However, there may still be a problem establishing the SSL connection due to a certificate problem.
It could be that the root certificate authority of Alfresco's SSL certificate ("Starfield Class 2 Certification Authority") is not in your cacerts file.
Are you using JDK 1.5 rather than JDK 1.6 by any chance?
I notice that in JDK 1.5 "Starfield Class 2 Certification Authority" is not one of the default root CAs
http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/keytool.html#cacerts
but in Java 6 it is
http://java.sun.com/javase/6/docs/technotes/tools/solaris/keytool.html#cacerts
Please note that Alfresco 3.x is only tested on Java 6.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2009 11:15 AM
-Dhttps.proxyHost=proxy.com and -Dhttps.proxyPort=8080

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2009 05:24 AM
Sorry, I should have included
-Dhttps.proxyHost=proxy.com and -Dhttps.proxyPort=8080
I did it and can´t create a new web proyect. the error is the same.
aused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "results" from null (file:C:/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresco/webscripts/web-studio/api/prebuilt/list.get.js#47) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340) at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356) at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375) at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3388) at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1362) at org.mozilla.javascript.gen.c2._c4(file:C:/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresco/webscripts/web-studio/api/prebuilt/list.get.js:47) at org.mozilla.javascript.gen.c2.call(file:C:/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresco/webscripts/web-studio/api/prebuilt/list.get.js) at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97) at org.mozilla.javascript.gen.c2._c2(file:C:/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresco/webscripts/web-studio/api/prebuilt/list.get.js:19) at org.mozilla.javascript.gen.c2.call(file:C:/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresco/webscripts/web-studio/api/prebuilt/list.get.js) at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108) at org.mozilla.javascript.gen.c2._c0(file:C:/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresco/webscripts/web-studio/api/prebuilt/list.get.js:57) at org.mozilla.javascript.gen.c2.call(file:C:/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresco/webscripts/web-studio/api/prebuilt/list.get.js) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834) at org.mozilla.javascript.gen.c2.call(file:C:/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresco/webscripts/web-studio/api/prebuilt/list.get.js) at org.mozilla.javascript.gen.c2.exec(file:C:/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresco/webscripts/web-studio/api/prebuilt/list.get.js) at org.alfresco.web.scripts.PresentationScriptProcessor.executeScriptImpl(PresentationScriptProcessor.java:306) … 24 more
Regards
