Index: lams_tool_laqa/db/sql/create_lams_tool_qa.sql
===================================================================
diff -u -r7473d498dd9a1beb27a3f29d9364eca13e9b8165 -r0e747c5eb46e7a7618f09aaf32c3b7cb700a76dd
--- lams_tool_laqa/db/sql/create_lams_tool_qa.sql (.../create_lams_tool_qa.sql) (revision 7473d498dd9a1beb27a3f29d9364eca13e9b8165)
+++ lams_tool_laqa/db/sql/create_lams_tool_qa.sql (.../create_lams_tool_qa.sql) (revision 0e747c5eb46e7a7618f09aaf32c3b7cb700a76dd)
@@ -88,10 +88,9 @@
-- test data for content questions table
-INSERT INTO tl_laqa11_que_content (qa_que_content_id,
- question,
+INSERT INTO tl_laqa11_que_content (question,
display_order,
- qa_content_id) VALUES (1,'What is the capital of Russia?',1,${default_content_id});
+ qa_content_id) VALUES ('What is the capital of Russia?',1,${default_content_id});
Fisheye: Tag 0e747c5eb46e7a7618f09aaf32c3b7cb700a76dd refers to a dead (removed) revision in file `lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/BasicToolVO.hbm.xml'.
Fisheye: No comparison available. Pass `N' to diff?
Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/qaApplicationContext.xml
===================================================================
diff -u -r7473d498dd9a1beb27a3f29d9364eca13e9b8165 -r0e747c5eb46e7a7618f09aaf32c3b7cb700a76dd
--- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/qaApplicationContext.xml (.../qaApplicationContext.xml) (revision 7473d498dd9a1beb27a3f29d9364eca13e9b8165)
+++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/qaApplicationContext.xml (.../qaApplicationContext.xml) (revision 0e747c5eb46e7a7618f09aaf32c3b7cb700a76dd)
@@ -39,8 +39,6 @@
/WEB-INF/QaQueContent.hbm.xml
/WEB-INF/QaQueUsr.hbm.xml
/WEB-INF/QaUsrResp.hbm.xml
-
- /WEB-INF/BasicToolVO.hbm.xml
@@ -65,84 +63,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PROPAGATION_REQUIRED,-QaApplicationException
- PROPAGATION_REQUIRED,-QaApplicationException
- PROPAGATION_REQUIRED, -QaApplicationException
- PROPAGATION_REQUIRED,-QaApplicationException
- PROPAGATION_REQUIRED,readOnly,-QacpApplicationException
- PROPAGATION_REQUIRED,-QaApplicationException
-
-
-
-
-
@@ -166,27 +86,30 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PROPAGATION_REQUIRED,-QaApplicationException
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PROPAGATION_REQUIRED,-QaApplicationException
+ PROPAGATION_REQUIRED,-QaApplicationException
+ PROPAGATION_REQUIRED, -QaApplicationException
+ PROPAGATION_REQUIRED,-QaApplicationException
+ PROPAGATION_REQUIRED,readOnly,-QacpApplicationException
+ PROPAGATION_REQUIRED,-QaApplicationException
+ PROPAGATION_REQUIRED,-QaApplicationException
+
+
-
-
-
-
Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/service/QaServicePOJO.java
===================================================================
diff -u -r7473d498dd9a1beb27a3f29d9364eca13e9b8165 -r0e747c5eb46e7a7618f09aaf32c3b7cb700a76dd
--- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/service/QaServicePOJO.java (.../QaServicePOJO.java) (revision 7473d498dd9a1beb27a3f29d9364eca13e9b8165)
+++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/service/QaServicePOJO.java (.../QaServicePOJO.java) (revision 0e747c5eb46e7a7618f09aaf32c3b7cb700a76dd)
@@ -1079,6 +1079,7 @@
public long getToolDefaultContentIdBySignature(String toolSignature) throws QaApplicationException
{
long contentId=0;
+ logger.debug(logger + " " + this.getClass().getName() + "before attempting retrieving tool with signature : " + toolSignature);
contentId=toolService.getToolDefaultContentIdBySignature(toolSignature);
logger.debug(logger + " " + this.getClass().getName() + " " + "tool default contentId : " + contentId);
return contentId;
Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaStarterAction.java
===================================================================
diff -u -r7473d498dd9a1beb27a3f29d9364eca13e9b8165 -r0e747c5eb46e7a7618f09aaf32c3b7cb700a76dd
--- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaStarterAction.java (.../QaStarterAction.java) (revision 7473d498dd9a1beb27a3f29d9364eca13e9b8165)
+++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaStarterAction.java (.../QaStarterAction.java) (revision 0e747c5eb46e7a7618f09aaf32c3b7cb700a76dd)
@@ -76,9 +76,13 @@
request.getSession().setAttribute(TOOL_SERVICE, qaService);
}
+ /**
+ * retrive the default content id based on tool signature
+ */
+
try
{
- logger.debug(logger + " " + this.getClass().getName() + "attempte retrieving tool with signatute : " + MY_SIGNATURE);
+ logger.debug(logger + " " + this.getClass().getName() + "attempt retrieving tool with signatute : " + MY_SIGNATURE);
long contentId=qaService.getToolDefaultContentIdBySignature(MY_SIGNATURE);
logger.debug(logger + " " + this.getClass().getName() + "retrieved tool default contentId: " + contentId);
if (contentId == 0)
@@ -89,16 +93,16 @@
return (mapping.findForward(LOAD_QUESTIONS));
}
}
- catch(QaApplicationException e)
+ catch(Exception e)
{
logger.debug(logger + " " + this.getClass().getName() + "error getting the default content id: " + e.getMessage());
persistError(request,"error.defaultContent.notSetup");
request.setAttribute(USER_EXCEPTION_DEAFULTCONTENT_NOTSETUP, new Boolean(true));
return (mapping.findForward(LOAD_QUESTIONS));
}
+
-
/**
* mark the http session as an authoring activity
*/
Index: lams_tool_laqa/web/META-INF/MANIFEST.MF
===================================================================
diff -u -r16e844de3f7c34b44baee1b28e67e708f42d00bf -r0e747c5eb46e7a7618f09aaf32c3b7cb700a76dd
--- lams_tool_laqa/web/META-INF/MANIFEST.MF (.../MANIFEST.MF) (revision 16e844de3f7c34b44baee1b28e67e708f42d00bf)
+++ lams_tool_laqa/web/META-INF/MANIFEST.MF (.../MANIFEST.MF) (revision 0e747c5eb46e7a7618f09aaf32c3b7cb700a76dd)
@@ -1,5 +1,5 @@
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.3
Created-By: 1.4.2_08-b03 (Sun Microsystems Inc.)
-Class-Path: ./lams.jar ./lams_contentrepository.jar ./lams-tool-questionAnswer.jar ./FCKeditor-2.1.jar
+Class-Path: ./lams.jar ./lams-tool-laqa11.jar ./FCKeditor-2.1.jar ./lams-contentrepository.jar ./lams-learning.jar
Index: lams_tool_laqa/web/WEB-INF/web.xml
===================================================================
diff -u -r16e844de3f7c34b44baee1b28e67e708f42d00bf -r0e747c5eb46e7a7618f09aaf32c3b7cb700a76dd
--- lams_tool_laqa/web/WEB-INF/web.xml (.../web.xml) (revision 16e844de3f7c34b44baee1b28e67e708f42d00bf)
+++ lams_tool_laqa/web/WEB-INF/web.xml (.../web.xml) (revision 0e747c5eb46e7a7618f09aaf32c3b7cb700a76dd)
@@ -10,8 +10,11 @@
contextConfigLocation
+ classpath:/org/lamsfoundation/lams/applicationContext.xml
+ classpath:/org/lamsfoundation/lams/lesson/lessonApplicationContext.xml
+ classpath:/org/lamsfoundation/lams/tool/toolApplicationContext.xml
+ classpath:/org/lamsfoundation/lams/learning/learningApplicationContext.xml
classpath:/org/lamsfoundation/lams/tool/qa/qaApplicationContext.xml
-