Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
antz s franz
Integrating Liferay in Moodle
1 de Dezembro de 2008 03:02
Resposta

antz s franz

Ranking: New Member

Mensagens: 4

Data de entrada: 1 de Dezembro de 2008

Mensagens recentes

Hi,

Can you please let me know how to integrate Liferay with Moodle. I need the existing Moodle users to use the Liferay by Single Sign On method. Can you please let me know the procedure for this.

Thanks,
Antony
Andrew Tillinghast
RE: Integrating Liferay in Moodle
2 de Dezembro de 2008 06:29
Resposta

Andrew Tillinghast

Ranking: Junior Member

Mensagens: 60

Data de entrada: 5 de Setembro de 2008

Mensagens recentes

We haven't done this yet but we are heading that direction. Our plan is to CAS as our single sign on solution. There are instructions on the Moodle site for casifying Moodle and Liferay has CAS support built in out of the box.

With both apps casified you should be able to switch back and forth easily.

Also there is a uportal portlet http://sourcesup.cru.fr/projects/cmoodle/ that shows the status of moodle courses that I'm hoping we will be able to utilize in Liferay.

-Andrew Tillinghast
Brian Gormanly
RE: Integrating Liferay in Moodle
2 de Dezembro de 2008 08:30
Resposta

Brian Gormanly

Ranking: New Member

Mensagens: 18

Data de entrada: 8 de Janeiro de 2008

Mensagens recentes

We have successfully done this by modifying the standard iframe portlet to 'pass the individual users information to moodle (or any other webapp). instead of just passing the static user information that the stock portlet can pass.

Once this is done in the iframe configuration enter the url that handles moodles login script like normal ( ..moodlepath../login/index.php) and the feild names that the uservalues should be assoicated with when passed (username and password in my moodle installation) and post as the method and form as the type for moodle.

I did this by modifying the code like below (feel free to use or modify if it is helpful), it has been awhile since i made the changes so I have included the entire files as I do not remember exactly which lines I changed at the moment.

all files are from the iframe portlet.

init.jsp
 1
 2<%
 3/**
 4 * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
 5 *
 6 * Permission is hereby granted, free of charge, to any person obtaining a copy
 7 * of this software and associated documentation files (the "Software"), to deal
 8 * in the Software without restriction, including without limitation the rights
 9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 * SOFTWARE.
23 */
24%>
25
26<%@ include file="/html/portlet/init.jsp" %>
27
28<%
29PortletPreferences prefs = renderRequest.getPreferences();
30
31String portletResource = ParamUtil.getString(request, "portletResource");
32
33if (Validator.isNotNull(portletResource)) {
34    prefs = PortletPreferencesFactoryUtil.getPortletSetup(request, portletResource);
35}
36
37String src = prefs.getValue("src", StringPool.BLANK);
38boolean relative = GetterUtil.getBoolean(prefs.getValue("relative", StringPool.BLANK));
39
40boolean auth = GetterUtil.getBoolean(prefs.getValue("auth", StringPool.BLANK));
41String authType = prefs.getValue("auth-type", StringPool.BLANK);
42String formMethod = prefs.getValue("form-method", StringPool.BLANK);
43String userName = prefs.getValue("user-name", StringPool.BLANK);
44String password = prefs.getValue("password", StringPool.BLANK);
45String hiddenVariables = prefs.getValue("hidden-variables", StringPool.BLANK);
46
47String border = prefs.getValue("border", "0");
48String bordercolor = prefs.getValue("bordercolor", "#000000");
49String frameborder = prefs.getValue("frameborder", "0");
50String heightMaximized = prefs.getValue("height-maximized", "600");
51String heightNormal = prefs.getValue("height-normal", "300");
52String hspace = prefs.getValue("hspace", "0");
53String scrolling = prefs.getValue("scrolling", "auto");
54String vspace = prefs.getValue("vspace", "0");
55String width = prefs.getValue("width", "100%");
56%>



view.jsp
 1
 2<%
 3<%@ include file="/html/portlet/iframe/init.jsp" %>
 4
 5<%
 6String iframeSrc = StringPool.BLANK;
 7
 8if (relative) {
 9    iframeSrc = themeDisplay.getPathContext();
10}
11
12iframeSrc += (String)request.getAttribute(WebKeys.IFRAME_SRC);
13
14String iframeHeight = heightNormal;
15
16if (windowState.equals(WindowState.MAXIMIZED)) {
17    iframeHeight = heightMaximized;
18}
19%>
20<iframe border="<%= border %>" bordercolor="<%= bordercolor %>" frameborder="<%= frameborder %>" height="<%= iframeHeight %>" hspace="<%= hspace %>" name="<portlet:namespace />iframe" scrolling="<%= scrolling %>" src="<%= iframeSrc %>" vspace="<%= vspace %>" width="<%= width %>"></iframe>
21
22
23
24
25<%
26String userNameKey = StringPool.BLANK;
27String userNameValue = StringPool.BLANK;
28
29
30userNameKey = userName;
31
32// get userid
33userNameValue = PortalUtil.getUser(request).getScreenName();
34
35%>
36
37
38<%
39String passwordKey = StringPool.BLANK;
40String passwordValue = StringPool.BLANK;
41
42passwordKey = password;
43passwordValue = PortalUtil.getUserPassword(renderRequest);
44
45%>
46
47<input name="<%= passwordKey %>" type="hidden" value="<%= passwordValue %>" />
48
49
50
51
52<script language="javascript" type="text/javascript">
53                window.frames["<portlet:namespace />iframe"].window.onload = testRun;
54                function testRun() {
55                        
56                        if(window.frames["<portlet:namespace />iframe"].document.getElementById('welcomeBackBar')) {
57                                alert('testing');
58                                window.frames["<portlet:namespace />iframe"].document.forms["MAINFORM"].elements["userName"].value
59= "<%= userNameValue %>";
60                                window.frames["<portlet:namespace />iframe"].document.forms["MAINFORM"].elements["password"].value
61= "<%= passwordValue %>";
62                                window.frames["<portlet:namespace />iframe"].document.forms["MAINFORM"].elements["btnLogin"].click();
63                        }
64                }
65</script>


proxy.jsp
 1
 2
 3<%@ include file="/html/portlet/iframe/init.jsp" %>
 4
 5<%
 6String[] hiddenVariablesArray = StringUtil.split(hiddenVariables, StringPool.SEMICOLON);
 7%>
 8
 9<html dir="<liferay-ui:message key="lang.dir" />">
10
11<head>
12    <meta content="no-cache" http-equiv="Cache-Control" />
13    <meta content="no-cache" http-equiv="Pragma" />
14    <meta content="0" http-equiv="Expires" />
15</head>
16
17<body onLoad="setTimeout('document.MAINFORM.submit()', 100);">
18
19<form action="<%= src %>" method="<%= formMethod %>" name="MAINFORM">
20
21
22<%
23for (int i = 0; i < hiddenVariablesArray.length; i++) {
24    String hiddenKey = StringPool.BLANK;
25    String hiddenValue = StringPool.BLANK;
26
27    int pos = hiddenVariablesArray[i].indexOf(StringPool.EQUAL);
28
29    if (pos != -1) {
30        hiddenKey = hiddenVariablesArray[i].substring(0, pos);
31        hiddenValue = hiddenVariablesArray[i].substring(pos + 1, hiddenVariablesArray[i].length());
32    }
33%>
34
35    <input name="<%= hiddenKey %>" type="hidden" value="<%= hiddenValue %>" />
36
37<%
38}
39
40String userNameKey = StringPool.BLANK;
41String userNameValue = StringPool.BLANK;
42
43int pos = userName.indexOf("=");
44if (pos != -1) {
45    userNameKey = userName.substring(0, pos);
46    userNameValue = userName.substring(pos + 1, userName.length());
47}
48else {
49    userNameKey = userName;
50
51    // get userid
52    userNameValue = PortalUtil.getUser(request).getScreenName();
53}
54%>
55
56<input name="<%= userNameKey %>" type="hidden" value="<%= userNameValue %>" />
57
58<%
59String passwordKey = StringPool.BLANK;
60String passwordValue = StringPool.BLANK;
61
62pos = password.indexOf("=");
63if (pos != -1) {
64    passwordKey = password.substring(0, pos);
65    passwordValue = password.substring(pos + 1, password.length());
66}
67else {
68    passwordKey = password;
69    passwordValue = PortalUtil.getUserPassword(renderRequest);
70}
71%>
72
73<input name="<%= passwordKey %>" type="hidden" value="<%= passwordValue %>" />
74
75
76</form>
77
78</body>
79
80</html>



configuration.jsp
  1
  2<%@ include file="/html/portlet/iframe/init.jsp" %>
  3
  4<%
  5String htmlAttributes =
  6    "border=" + border + "\n" +
  7    "bordercolor=" + bordercolor + "\n" +
  8    "frameborder=" + frameborder + "\n" +
  9    "height-maximized=" + heightMaximized + "\n" +
 10    "height-normal=" + heightNormal + "\n" +
 11    "hspace=" + hspace + "\n" +
 12    "scrolling=" + scrolling + "\n" +
 13    "vspace=" + vspace + "\n" +
 14    "width=" + width + "\n";
 15%>
 16
 17<form action="<liferay-portlet:actionURL portletConfiguration="true" />" method="post" name="<portlet:namespace />fm">
 18<input name="<portlet:namespace /><%= Constants.CMD %>" type="hidden" value="<%= Constants.UPDATE %>" />
 19
 20<div class="portlet-msg-info">
 21You may enter just the field names (ie username and password) to use the users portal login info.  You may also enter field name = 'some value' (ie username=brian, password=password) to specify username and password.
 22</div>
 23
 24<table class="lfr-table">
 25<tr>
 26    <td>
 27        <liferay-ui:message key="source-url" />
 28    </td>
 29    <td>
 30        <span id="<portlet:namespace />context-path-text" style='<%= relative ? "" : "display: none;" %>'>...<%= themeDisplay.getPathContext() %></span> <input class="lfr-input-text" name="<portlet:namespace />src" type="text" value="<%= src %>" />
 31    </td>
 32</tr>
 33<tr>
 34    <td>
 35        <liferay-ui:message key="relative-to-context-path" />
 36    </td>
 37    <td>
 38
 39        <%
 40        String relativeOnClick = "jQuery(\"#" + renderResponse.getNamespace() + "context-path-text\").toggle();";
 41        %>
 42
 43        <liferay-ui:input-checkbox param="relative" defaultValue="<%= relative %>" onClick="<%= relativeOnClick %>" />
 44    </td>
 45</tr>
 46<tr>
 47    <td colspan="2">
 48        <br />
 49    </td>
 50</tr>
 51<tr>
 52    <td>
 53        <liferay-ui:message key="authenticate" />
 54    </td>
 55    <td>
 56        <liferay-ui:input-checkbox param="auth" defaultValue="<%= auth %>" />
 57    </td>
 58</tr>
 59<tr>
 60    <td>
 61        <liferay-ui:message key="authentication-type" />
 62    </td>
 63    <td>
 64        <select name="<portlet:namespace />authType">
 65            <option <%= (authType.equals("basic")) ? "selected" : "" %> value="basic">Basic</option>
 66            <option <%= (authType.equals("form")) ? "selected" : "" %> value="form">Form</option>
 67        </select>
 68    </td>
 69</tr>
 70<tr>
 71    <td>
 72        <liferay-ui:message key="form-method" />
 73    </td>
 74    <td>
 75        <select name="<portlet:namespace />formMethod">
 76            <option <%= (formMethod.equals("get")) ? "selected" : "" %> value="get">Get</option>
 77            <option <%= (formMethod.equals("post")) ? "selected" : "" %> value="post">Post</option>
 78        </select>
 79    </td>
 80</tr>
 81<tr>
 82    <td>
 83        <liferay-ui:message key="user-name" />
 84    </td>
 85    <td>
 86        <input class="lfr-input-text" name="<portlet:namespace />userName" type="text" value="<%= userName %>" />
 87    </td>
 88</tr>
 89<tr>
 90    <td>
 91        <liferay-ui:message key="password" />
 92    </td>
 93    <td>
 94        <input class="lfr-input-text" name="<portlet:namespace />password" type="text" value="<%= password %>" />
 95    </td>
 96</tr>
 97<tr>
 98    <td>
 99        <liferay-ui:message key="hidden-variables" />
100    </td>
101    <td>
102        <input class="lfr-input-text" name="<portlet:namespace />hiddenVariables" type="text" value="<%= hiddenVariables %>" />
103    </td>
104</tr>
105<tr>
106    <td colspan="2">
107        <br />
108    </td>
109</tr>
110<tr>
111    <td>
112        <liferay-ui:message key="html-attributes" />
113    </td>
114    <td>
115        <textarea class="lfr-textarea" name="<portlet:namespace />htmlAttributes" wrap="soft" onKeyDown="Liferay.Util.checkTab(this); Liferay.Util.disableEsc();"><%= htmlAttributes %></textarea>
116    </td>
117</tr>
118</table>
119
120<br />
121
122<input type="button" value="<liferay-ui:message key="save" />" onClick="submitForm(document.<portlet:namespace />fm);" />
123
124</form>
125
126<c:if test="<%= windowState.equals(WindowState.MAXIMIZED) %>">
127    <script type="text/javascript">
128        Liferay.Util.focusFormField(document.<portlet:namespace />fm.<portlet:namespace />src);
129    </script>
130</c:if>
antz s franz
RE: Integrating Liferay in Moodle
2 de Dezembro de 2008 20:49
Resposta

antz s franz

Ranking: New Member

Mensagens: 4

Data de entrada: 1 de Dezembro de 2008

Mensagens recentes

Thank You for your valuable comments Andrew.! I will try with the CAS method and see how this can be done. Happy to know about your plan on this. Great.!
antz s franz
RE: Integrating Liferay in Moodle
2 de Dezembro de 2008 20:53
Resposta

antz s franz

Ranking: New Member

Mensagens: 4

Data de entrada: 1 de Dezembro de 2008

Mensagens recentes

WOW thats Great Brian.! Nice way of achieving the integration. Thanks a lot for sharing your script. I will try to make this and see.
Robin S.
RE: Integrating Liferay in Moodle
26 de Março de 2009 02:34
Resposta

Robin S.

Ranking: Regular Member

Mensagens: 118

Data de entrada: 16 de Setembro de 2008

Mensagens recentes

Hi guys,

has anybody used this integration in 5.2? I tried it, but got a lot of Exceptions and Errormessages.
All I did was, copy paste the code for the 4 jsp files.
Anybody got this running in 5.2?

Thanks in advance
Robin S.
RE: Integrating Liferay in Moodle
26 de Março de 2009 02:44
Resposta

Robin S.

Ranking: Regular Member

Mensagens: 118

Data de entrada: 16 de Setembro de 2008

Mensagens recentes

Oh my god emoticon

Sorry to bother you guys. Look at view.jsp line 2, there's a unnecessary <% . After I removed this tag, everything works.

Thanks for code btw.

regards
Robin S.
RE: Integrating Liferay in Moodle
26 de Março de 2009 06:11
Resposta

Robin S.

Ranking: Regular Member

Mensagens: 118

Data de entrada: 16 de Setembro de 2008

Mensagens recentes

Sorry for spamming this thread, but now I faced another problem.
Here's the whole stacktrace.

  113:05:47,520 ERROR [[jsp]:711] Servlet.service() for servlet jsp threw exception
  2org.apache.jasper.JasperException: Unable to compile class for JSP:
  3
  4An error occurred at line: 27 in the jsp file: /html/portlet/iframe/proxy.jsp
  5Cannot invoke indexOf(String) on the array type String[]
  624:     String hiddenKey = StringPool.BLANK;
  725:     String hiddenValue = StringPool.BLANK;
  826:
  927:     int pos = hiddenVariablesArray.indexOf(StringPool.EQUAL);
 1028:     if (pos != -1) {
 1129:         hiddenKey = hiddenVariablesArray.substring(0, pos);
 1230:         hiddenValue = hiddenVariablesArray.substring(pos + 1, hiddenVariablesArray.len
 13gth());
 14
 15
 16An error occurred at line: 29 in the jsp file: /html/portlet/iframe/proxy.jsp
 17Cannot invoke substring(int, int) on the array type String[]
 1826:
 1927:     int pos = hiddenVariablesArray.indexOf(StringPool.EQUAL);
 2028:     if (pos != -1) {
 2129:         hiddenKey = hiddenVariablesArray.substring(0, pos);
 2230:         hiddenValue = hiddenVariablesArray.substring(pos + 1, hiddenVariablesArray.len
 23gth());
 2431:     }
 2532: %>
 26
 27
 28An error occurred at line: 30 in the jsp file: /html/portlet/iframe/proxy.jsp
 29Cannot invoke length() on the array type String[]
 3027:     int pos = hiddenVariablesArray.indexOf(StringPool.EQUAL);
 3128:     if (pos != -1) {
 3229:         hiddenKey = hiddenVariablesArray.substring(0, pos);
 3330:         hiddenValue = hiddenVariablesArray.substring(pos + 1, hiddenVariablesArray.len
 34gth());
 3531:     }
 3632: %>
 3733:
 38
 39
 40Stacktrace:
 41        at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.j
 42ava:93)
 43        at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
 44
 45        at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
 46        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
 47        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
 48        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
 49        at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
 50
 51        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
 52
 53        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
 54        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
 55        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 56        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
 57terChain.java:269)
 58        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
 59.java:188)
 60        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.jav
 61a:679)
 62        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispat
 63cher.java:461)
 64        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.
 65java:399)
 66        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.ja
 67va:301)
 68        at com.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:90)
 69        at com.liferay.portal.struts.PortalRequestProcessor.doForward(PortalRequestProcess
 70or.java:264)
 71        at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(Request
 72Processor.java:1023)
 73        at org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(Til
 74esRequestProcessor.java:345)
 75        at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:
 76572)
 77        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:221)
 78        at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor
 79.java:159)
 80        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 81        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
 82        at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
 83        at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:505)
 84        at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:732)
 85        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 86        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
 87terChain.java:269)
 88        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
 89.java:188)
 90        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 91
 92        at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilt
 93er.java:282)
 94        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 95        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
 96terChain.java:215)
 97        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
 98.java:188)
 99        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
100
101        at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.j
102ava:193)
103        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
104        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
105terChain.java:215)
106        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
107.java:188)
108        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
109
110        at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(Virtu
111alHostFilter.java:188)
112        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
113terChain.java:215)
114        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
115.java:188)
116        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
117
118        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
119        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
120terChain.java:215)
121        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
122.java:188)
123        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.ja
124va:738)
125        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
126terChain.java:215)
127        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
128.java:188)
129        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
130213)
131        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
132172)
133        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.ja
134va:433)
135        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
136        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
137        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:10
1388)
139        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
140        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
141        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConn
142ection(Http11BaseProtocol.java:665)
143        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:5
14428)
145        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorke
146rThread.java:81)
147        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:6
14889)
149        at java.lang.Thread.run(Thread.java:595)
15013:05:47,536 ERROR [jsp:668] User ID 10376
15113:05:47,536 ERROR [jsp:669] Current URL /c/iframe/proxy?p_l_id=10382&p_p_id=48_INSTANCE_N
152d9l
15313:05:47,536 ERROR [jsp:670] Referer http://localhost:8080/web/john/profile
15413:05:47,536 ERROR [jsp:671] Remote address 127.0.0.1
15513:05:47,536 ERROR [jsp:673]
15613:05:47,536 ERROR [[jsp]:711] Servlet.service() for servlet jsp threw exception
157java.lang.NullPointerException
158        at org.apache.jsp.html.common.error_jsp._jspService(error_jsp.java:676)
159        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
160        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
161        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
162
163        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
164        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
165        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
166        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
167terChain.java:269)
168        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
169.java:188)
170        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.jav
171a:679)
172        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispat
173cher.java:461)
174        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.
175java:399)
176        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.ja
177va:301)
178        at com.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:108)
179        at com.liferay.portal.struts.PortalRequestProcessor.doForward(PortalRequestProcess
180or.java:264)
181        at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(Request
182Processor.java:1023)
183        at org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(Til
184esRequestProcessor.java:345)
185        at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:
186572)
187        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:221)
188        at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor
189.java:159)
190        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
191        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
192        at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
193        at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:505)
194        at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:732)
195        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
196        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
197terChain.java:269)
198        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
199.java:188)
200        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
201
202        at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilt
203er.java:282)
204        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
205        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
206terChain.java:215)
207        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
208.java:188)
209        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
210
211        at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.j
212ava:193)
213        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
214        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
215terChain.java:215)
216        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
217.java:188)
218        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
219
220        at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(Virtu
221alHostFilter.java:188)
222        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
223terChain.java:215)
224        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
225.java:188)
226        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
227
228        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
229        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
230terChain.java:215)
231        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
232.java:188)
233        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.ja
234va:738)
235        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
236terChain.java:215)
237        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
238.java:188)
239        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
240213)
241        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
242172)
243        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.ja
244va:433)
245        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
246        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
247        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:10
2488)
249        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
250        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
251        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConn
252ection(Http11BaseProtocol.java:665)
253        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:5
25428)
255        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorke
256rThread.java:81)
257        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:6
25889)
259        at java.lang.Thread.run(Thread.java:595)


Anyone knows, whats my mistake?

kind regards
Robin S.
RE: Integrating Liferay in Moodle
27 de Março de 2009 00:55
Resposta

Robin S.

Ranking: Regular Member

Mensagens: 118

Data de entrada: 16 de Setembro de 2008

Mensagens recentes

OK, I promise this is my last post in here emoticon

Again, this was a simple mistake.

You need to append the [ i ] to the hiddenVariablesArray. So just replace hiddenVariablesArray with hiddenVariablesArray[ i ], where i is the counter of the loop.

regards
Jonas Yuan
RE: Integrating Liferay in Moodle
17 de Janeiro de 2011 16:36
Resposta

Jonas Yuan

Ranking: Liferay Master

Mensagens: 993

Data de entrada: 26 de Abril de 2007

Mensagens recentes

Any updates on Moodle fully integrated with Liferay?

any examples on both Moodle and Liferay sharing same user accounts?

Thanks

Jonas Yuan
Manuel Hoyos
RE: Integrating Liferay in Moodle
24 de Abril de 2013 02:04
Resposta

Manuel Hoyos

Ranking: Junior Member

Mensagens: 58

Data de entrada: 10 de Junho de 2012

Mensagens recentes

Jonas Yuan:
Any updates on Moodle fully integrated with Liferay?

any examples on both Moodle and Liferay sharing same user accounts?

Thanks

Jonas Yuan


There are any change in the status of this integration?

Thanks