cancel
Showing results for 
Search instead for 
Did you mean: 

Web Studio - Failed to load script

sbarcena
Champ in-the-making
Champ in-the-making
Hello to all,

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:
16 REPLIES 16

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

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

sbarcena
Champ in-the-making
Champ in-the-making
Hello Michael, the first thing, thanks for your response. I tell you…
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?

testcit01
Champ in-the-making
Champ in-the-making
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.

rbowman
Champ in-the-making
Champ in-the-making
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

rbowman
Champ in-the-making
Champ in-the-making
Ok….so I think I have narrowed it down a little bit.

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

prethi
Champ in-the-making
Champ in-the-making
Has anyone found the solution for this.. Is yes please post it..
I am in need of this..

Thanks in Advance…

dward
Champ on-the-rise
Champ on-the-rise
You were indeed right to include

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

dward
Champ on-the-rise
Champ on-the-rise
Sorry, I should have included

-Dhttps.proxyHost=proxy.com and -Dhttps.proxyPort=8080

pjcaracuel
Champ in-the-making
Champ in-the-making
Hi,

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