Index: lams_tool_laqa/db/sql/create_lams_tool_qa.sql
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_laqa/db/sql/create_lams_tool_qa.sql,v
diff -u -r1.3 -r1.4
--- lams_tool_laqa/db/sql/create_lams_tool_qa.sql 27 Jun 2005 01:49:54 -0000 1.3
+++ lams_tool_laqa/db/sql/create_lams_tool_qa.sql 28 Jun 2005 02:41:21 -0000 1.4
@@ -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 1.2 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
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/qaApplicationContext.xml,v
diff -u -r1.3 -r1.4
--- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/qaApplicationContext.xml 27 Jun 2005 01:49:53 -0000 1.3
+++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/qaApplicationContext.xml 28 Jun 2005 02:41:21 -0000 1.4
@@ -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
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/service/QaServicePOJO.java,v
diff -u -r1.3 -r1.4
--- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/service/QaServicePOJO.java 27 Jun 2005 01:49:53 -0000 1.3
+++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/service/QaServicePOJO.java 28 Jun 2005 02:41:21 -0000 1.4
@@ -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
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaStarterAction.java,v
diff -u -r1.3 -r1.4
--- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaStarterAction.java 27 Jun 2005 01:49:54 -0000 1.3
+++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaStarterAction.java 28 Jun 2005 02:41:21 -0000 1.4
@@ -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
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_laqa/web/META-INF/Attic/MANIFEST.MF,v
diff -u -r1.1 -r1.2
--- lams_tool_laqa/web/META-INF/MANIFEST.MF 21 Jun 2005 05:43:13 -0000 1.1
+++ lams_tool_laqa/web/META-INF/MANIFEST.MF 28 Jun 2005 02:42:08 -0000 1.2
@@ -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
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_laqa/web/WEB-INF/web.xml,v
diff -u -r1.1 -r1.2
--- lams_tool_laqa/web/WEB-INF/web.xml 21 Jun 2005 05:43:12 -0000 1.1
+++ lams_tool_laqa/web/WEB-INF/web.xml 28 Jun 2005 02:42:08 -0000 1.2
@@ -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
-