启动liferay 6.2 tomcat之后,后台会报一大段的异常信息,主要异常信息如下:

-- :: org.apache.shindig.gadgets.http.BasicHttpFetcher fetch
信息: Got Exception fetching http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js - 5084ms
org.apache.http.conn.ConnectTimeoutException: Connect to ajax.googleapis.com/173.194.72.95: timed out
……
警告: Unable to retrieve remote library from http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
……
-- :: org.apache.shindig.gadgets.http.BasicHttpFetcher fetch
信息: Got Exception fetching http://www.google.com/ig/lib/libanalytics.js - 5015ms
org.apache.http.conn.ConnectTimeoutException: Connect to www.google.com/173.194.127.51: timed out
……
警告: Unable to retrieve remote library from http://www.google.com/ig/lib/libanalytics.js
……
-- :: org.apache.shindig.gadgets.http.BasicHttpFetcher fetch
信息: Got Exception fetching http://www.google.com/ig/lib/libga.js - 5001ms
org.apache.http.conn.ConnectTimeoutException: Connect to www.google.com/173.194.127.51: timed out
……
警告: Unable to retrieve remote library from http://www.google.com/ig/lib/libga.js
由此可以得知:
1、连接ajax.googleapis.com/173.194.72.95:80超时,导致无法加载http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
2、连接www.google.com/173.194.127.51:80超时,导致无法加载http://www.google.com/ig/lib/libanalytics.js
3、连接www.google.com/173.194.127.51:80超时,导致无法加载http://www.google.com/ig/lib/libga.js
程序猿们一看都懂的,由于某些原因,google退出中国,在国内访问google肯定是无法加载的。
接下来的问题就是找到哪些地方在加载这些文件,从异常信息中可以知道是org.apache.shindig.gadgets.http.BasicHttpFetcher这个类再取这些文件,因此我们需要找到这个类的位置。
查找下liferay自带的portlet,我们可以判断出来这个类属于opensocial-portlet,opensocial-portlet是个开放社交portlet,由于这个portlet对我们的项目也没有什么作用。
用系统管理员登录,在“控制面板”-“应用程序”-“应用程序管理器”中,找到“OpenSocial Gadget Portlet”,将其卸载即可。

重新启动Tomcat就不会提示前面的异常信息了。
如果想保留该portlet的话,也可以找找源码,将google的js换成国内CDN提供的链接地址。

[Liferay6.2]Connect to ajax.googleapis.com …… timed out的更多相关文章

  1. 解决访问ajax.googleapis.com链接失败方法

    参考文章:http://www.jianshu.com/p/690e28f7fde6 主要思路:修改hosts文件,将其网址ajax.googleapis.com指向本地服务器:本地服务器将通过aja ...

  2. 黄聪:wordpress后台加载ajax.googleapis.com导致打开速度很慢的解决方案

    打开wordpress后台,发现很卡,通过开发者工具看到是因为加载http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothn ...

  3. 谷歌的ajax.googleapis.com被墙导致访问很多国外网站很慢的解决方法

    比如访问StackOverflow, 更比如flexerasoftware.com(导致Visual Studio的打包程序InstallShield Limited Edition不能注册和下载) ...

  4. 无法从 ajax.googleapis.com 下载问题

    除FQ外的解决办法: 打开目录 C:\Windows\System32\drivers\etc,修改 hosts 文件,添加一行 : 127.0.0.1 ajax.googleapis.com 打开I ...

  5. 关于wordpress后台首页加载ajax.googleapis特别慢的解决办法

    通过审查元素发现,拖慢后台加载速度的主要是两个路径 1.https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js 2.h ...

  6. stackoverfow访问 ajax.googleapis.com

    本文实验环境:Fedora 23 先用nslookup 查看stackoverflow.com的ip -vc参数,表示用强制用TCP 查到的stackoverflow的地址似乎没错, 用本地的DNS解 ...

  7. 黄聪:wordpress后台导致fonts.googleapis.com、ajax.googleapis.com加载慢的解决方法

    方法1.使用我做的插件.[googleapis-to-useso] 方法2.在functions.php文件里面添加下面的代码就行了. if(is_admin()) { function hcsem_ ...

  8. Can't connect to any repository.Read timed out after 30,000 ms

    解决方法:

  9. perationalError: (2003, "Can't connect to MySQL server on u'192.168.1.6' (timed out)")

    在Ubuntu(192.168.1.20)中部署项目后,mysql还在另外一台windows(192.168.1.6)机子上,ping windows时可以ping通,但是访问项目提示: perati ...

随机推荐

  1. Course Schedule I & II

    There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prer ...

  2. 深入理解 Win32 PE 文件格式

    深入理解 Win32 PE 文件格式 Matt Pietrek 这篇文章假定你熟悉C++和Win32. 概述 理解可移植可执行文件格式(PE)可以更好地了解操作系统.如果你知道DLL和EXE中都有些什 ...

  3. Unity3d UGUI序列帧动画

    代码 using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEngine. ...

  4. mysql备份与还原

    一.直接拷贝数据库文件 直接拷贝数据库文件一般是使用文件系统备份工具cp,适合小型数据库,是最可靠的. 当你拷贝数据库文件时,必须保证表没有正在使用.如果服务器在你拷贝一个表的时候改变这个表,拷贝就失 ...

  5. nyoj_34_韩信点兵

     中国剩余定理: 代码: #include <iostream> #include <cstdio> using namespace std; int main() { int ...

  6. codeforces 567D.One-Dimensional Battle Ships 解题报告

    题目链接:http://codeforces.com/problemset/problem/567/D 题目意思:给出 1 * n 的 field,编号从左至右依次为 1,2,...,n.问射 m 枪 ...

  7. code vs1517 求一次函数解析式(数论 纯数学知识)

    1517 求一次函数解析式  时间限制: 1 s  空间限制: 128000 KB  题目等级 : 白银 Silver 题解  查看运行结果     题目描述 Description 相信大家都做过练 ...

  8. eclipse下使用git下载和上传项目

    简单配置,填入我们的用户名和邮箱 >>Preferences>Team>Git>Configuration 点击Add Entry,在弹出框里面输入key和value的值 ...

  9. 【leetcode】Substring with Concatenation of All Words (hard) ★

    You are given a string, S, and a list of words, L, that are all of the same length. Find all startin ...

  10. C#封装C++DLL

    1.新建一个C#-Windows-类库(用于创建C#类库(.dll)的项目)类型的工程 2.对于普通C++函数 XXXX_API void cppFun(int i); 在cs代码中添加 [DllIm ...