[Building Sakai] Question about ksoftirqd process

Yuechuan Dai daiyuechuan at hotmail.com
Mon Apr 1 18:47:43 PDT 2013


Hi, 

We are using centos for tomcat and debain for MYSQL database. But both of
them have a process named ksoftirqd always take very high CPU usage.

And when this process take our CPU usage, our sakai will show very slow
response.

 

MYSQL DATABASE:



TOMCAT SERVER:





 

And we are using hype-v as our virtual running envrioment. 

 

Anyone can give some suggestions for handle this problem?

 

Thanks!

 

Yuechuan

 

 

-----邮件原件-----
发件人: sakai-dev-bounces at collab.sakaiproject.org
[mailto:sakai-dev-bounces at collab.sakaiproject.org] 代表
sakai-dev-request at collab.sakaiproject.org
发送时间: 2013年4月2日 3:00
收件人: sakai-dev at collab.sakaiproject.org
主题: sakai-dev Digest, Vol 50, Issue 1

 

Send sakai-dev mailing list submissions to

          <mailto:sakai-dev at collab.sakaiproject.org>
sakai-dev at collab.sakaiproject.org

 

To subscribe or unsubscribe via the World Wide Web, visit

          <http://collab.sakaiproject.org/mailman/listinfo/sakai-dev>
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

or, via email, send a message with subject or body 'help' to

          <mailto:sakai-dev-request at collab.sakaiproject.org>
sakai-dev-request at collab.sakaiproject.org

 

You can reach the person managing the list at

          <mailto:sakai-dev-owner at collab.sakaiproject.org>
sakai-dev-owner at collab.sakaiproject.org

 

When replying, please edit your Subject line so it is more specific than
"Re: Contents of sakai-dev digest..."

 

 

Today's Topics:

 

   1. Re: Build & install 2.9 - build question (Adams, David)

   2. Re: Build & install 2.9 - build question (Steve Swinsburg)

   3. Re: Quartz (Antonio mu?oz alonso)

   4. Re: javax.xml.parsers.ParserConfigurationException,

      java.lang.IllegalArgumentException and

      java.lang.NullPointerException (Sanghyun Jeon)

 

 

----------------------------------------------------------------------

 

Message: 1

Date: Sun, 31 Mar 2013 14:58:13 -0400

From: "Adams, David" <da1 at vt.edu>

Subject: Re: [Building Sakai] Build & install 2.9 - build question

To: Gregory Guthrie <guthrie at mum.edu>,

         "sakai-dev at collab.sakaiproject.org"

         <sakai-dev at collab.sakaiproject.org>

Message-ID:

 
<F0952E2BC740394C8A5A0DB303AB885C3C7A2C423C at rivendell.cc.w2k.vt.edu>

Content-Type: text/plain; charset="us-ascii"

 

Greg,

Good questions. The Sakai deploy process still puts things in places that
existed in Tomcat 5.5. But as of Tomcat 6 and now 7, the common, shared, and
server directories don't exist. And eg with common/classes, if the deployer
doesn't put anything into common/classes (which it doesn't by default),
you'll get that warning. It's nothing to worry about, best I can tell, but
you can solve the problem by either creating the directory (annoying but
safe), or removing it from catalina.properties (probably okay, but it
depends on whether anything ever does end up there).

 

-dave

________________________________________

From: sakai-dev-bounces at collab.sakaiproject.org
[sakai-dev-bounces at collab.sakaiproject.org] On Behalf Of Gregory Guthrie
[guthrie at mum.edu]

Sent: Sunday, March 31, 2013 12:41 PM

To: sakai-dev at collab.sakaiproject.org

Subject: [Building Sakai] Build & install 2.9 - build question

 

Why do the install instructions at Confluence (below) say:

    Edit conf/catalina.properties

        Add the following to the line that begins with "common.loader=..."

 
,${catalina.base}/common/classes/,${catalina.base}/common/lib/*.jar

 

Yet in my fresh install of tomcat  7.0.37 there is no such tomcat/common
directory?

Then I get associated error from tomcat on shutdown:

       org.apache.catalina.startup.ClassLoaderFactory validateFile

      WARNING: Problem with directory

           [/usr/share/apache-tomcat-7.0.37/common/classes], exists:
[false], isDirectory: [false], canRead: [false]

 

Is this something to worry about?

-----------------------------------------------------

(
<https://confluence.sakaiproject.org/pages/viewpage.action?pageId=82249316>
https://confluence.sakaiproject.org/pages/viewpage.action?pageId=82249316)

-------------------------------------------

_______________________________________________

sakai-dev mailing list

 <mailto:sakai-dev at collab.sakaiproject.org>
sakai-dev at collab.sakaiproject.org

 <http://collab.sakaiproject.org/mailman/listinfo/sakai-dev>
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

 

TO UNSUBSCRIBE: send email to
<mailto:sakai-dev-unsubscribe at collab.sakaiproject.org>
sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
"unsubscribe"

 

 

------------------------------

 

Message: 2

Date: Mon, 1 Apr 2013 07:32:19 +1100

From: Steve Swinsburg <steve.swinsburg at gmail.com>

Subject: Re: [Building Sakai] Build & install 2.9 - build question

To: Gregory Guthrie <guthrie at mum.edu>

Cc: "sakai-dev at collab.sakaiproject.org"

         <sakai-dev at collab.sakaiproject.org>

Message-ID: <AE8DFCE5-EB5E-4853-B05D-59AC500AB507 at gmail.com>

Content-Type: text/plain;         charset=us-ascii

 

You can either create the directory that tomcat is warning about, or
disregard it, or alter the property to not have the common/classes entry
since it is currently unused. Likewise with shared/classes. Though that may
change  in the future, although unlikely.

 

Either way, you need to set those properties due to class loader reasons.

 

Cheers,

Steve 

 

Sent from my iPad

 

On 01/04/2013, at 3:41, Gregory Guthrie < <mailto:guthrie at mum.edu>
guthrie at mum.edu> wrote:

 

> Why do the install instructions at Confluence (below) say:

>    Edit conf/catalina.properties

>        Add the following to the line that begins with "common.loader=..."

>               

> ,${catalina.base}/common/classes/,${catalina.base}/common/lib/*.jar

> 

> Yet in my fresh install of tomcat  7.0.37 there is no such tomcat/common
directory?

> Then I get associated error from tomcat on shutdown:

>       org.apache.catalina.startup.ClassLoaderFactory validateFile

>      WARNING: Problem with directory

>           [/usr/share/apache-tomcat-7.0.37/common/classes], exists: 

> [false], isDirectory: [false], canRead: [false]

> 

> Is this something to worry about?

> -----------------------------------------------------

> ( <https://confluence.sakaiproject.org/pages/viewpage.action?pageId=8224>
https://confluence.sakaiproject.org/pages/viewpage.action?pageId=8224

> 9316)

> -------------------------------------------

> _______________________________________________

> sakai-dev mailing list

>  <mailto:sakai-dev at collab.sakaiproject.org> sakai-dev at collab.sakaiproject.
org

>  <http://collab.sakaiproject.org/mailman/listinfo/sakai-dev>
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

> 

> TO UNSUBSCRIBE: send email to
<mailto:sakai-dev-unsubscribe at collab.sakaiproject.org>
sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
"unsubscribe"

 

 

------------------------------

 

Message: 3

Date: Mon, 1 Apr 2013 00:02:26 +0200

From: Antonio mu?oz alonso          <antoniovalenciaspain at hotmail.com>

Subject: Re: [Building Sakai] Quartz

To: Steve Swinsburg <steve.swinsburg at gmail.com>

Cc: "sakai-dev at collab.sakaiproject.org"

         <sakai-dev at collab.sakaiproject.org>

Message-ID: <DUB121-W69BE90666C1093E926C29CDDD0 at phx.gbl>

Content-Type: text/plain; charset="iso-8859-1"

 

Get compile this project:
<https://source.sakaiproject.org/svn/msub/anu.edu.au/alliance/2.8.x/quartz/>
https://source.sakaiproject.org/svn//msub/anu.edu.au/alliance/2.8.x/quartz/

compiled and executed correctly.

After, I added Impl and Api (for SakaiProxy and Spring JDBC).compiled when
restart Tomcat this error:- Stopping Hibernate Cache Cache
------------------------------- 2013-03-31 23:58:47,056  INFO main
org.sakaiproject.db.impl.BasicSqlService - destroy()2013-03-31 23:58:47,171
INFO main org.sakaiproject.log.impl.Log4jConfigurationManager -
destroy()2013-03-31 23:58:47,171  INFO main org.sakaiproject.component.impl.
BasicConfigurationService - destroy() I just recompiled the basic project(
<https://source.sakaiproject.org/svn/msub/anu.edu.au/alliance/2.8.x/quartz/>
https://source.sakaiproject.org/svn//msub/anu.edu.au/alliance/2.8.x/quartz/)
but still the same error.I can not find the application to delete in
/opt/tomcat/webapps.

any ideas??

 

 

 

 

 

Subject: Re: Quartz

From: steve.swinsburg at gmail.com

Date: Wed, 27 Mar 2013 23:23:35 +1100

CC: sakai-dev at collab.sakaiproject.org

To: antoniovalenciaspain at hotmail.com

 

Have a look at one of the modules in your Sakai 2.8 release, and change the
parent in this module to suit that one.

This was a custom module for ANU so you need to change it for your build.

cheers,Steve

On 27/03/2013, at 11:14 PM, Antonio mu?oz alonso <
<mailto:antoniovalenciaspain at hotmail.com> antoniovalenciaspain at hotmail.com>
wrote:original Parent:

<parent>

        <groupId>org.sakaiproject.msub</groupId>

        <artifactId>alliance-quartz</artifactId>

        <version>2.8-SNAPSHOT</version>

    </parent>

 

Change for <version>2.8.1</version>,same mistake, ??

 

 

 

From: steve.swinsburg at gmail.com

Subject: Re: Spring JDBC in Maven Archetype Sakai

Date: Wed, 27 Mar 2013 21:53:08 +1100

To: antoniovalenciaspain at hotmail.com

 

Yeah you gotta change that parent.

On 27/03/2013, at 9:51 PM, Antonio mu?oz alonso <
<mailto:antoniovalenciaspain at hotmail.com> antoniovalenciaspain at hotmail.com>
wrote:OK.

 

 

I use Sakai 2.8.1, problem when compile.

 

 

Trace:

 

[INFO] Trace

org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.sakaiproject.msub:alliance for project:
org.sakaiproject.msub:alliance-quartz:pom:null for project org.sakaiproject.
msub:alliance-quartz:pom:null

    at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)

    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)

    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

    at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

    at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)

    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find
parent: org.sakaiproject.msub:alliance for project:
org.sakaiproject.msub:alliance-quartz:pom:null for project org.sakaiproject.
msub:alliance-quartz:pom:null

    at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultM
avenProjectBuilder.java:1396)

    at
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMav
enProjectBuilder.java:823)

    at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInter
nal(DefaultMavenProjectBuilder.java:508)

    at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjec
tBuilder.java:200)

    at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)

    at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)

    at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)

    ... 12 more

Caused by: org.apache.maven.project.ProjectBuildingException: POM
'org.sakaiproject.msub:alliance' not found in repository: Unable to download
the artifact from any repository

 

  org.sakaiproject.msub:alliance:pom:2.8-SNAPSHOT

 

from the specified remote repositories:

  central ( <http://repo1.maven.org/maven2> http://repo1.maven.org/maven2)

 

for project org.sakaiproject.msub:alliance

    at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(
DefaultMavenProjectBuilder.java:605)

    at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultM
avenProjectBuilder.java:1392)

    ... 18 more

Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to download the artifact from any repository

 

 org.sakaiproject.msub:alliance:pom:2.8-SNAPSHOT

 

from the specified remote repositories:

  central ( <http://repo1.maven.org/maven2> http://repo1.maven.org/maven2)

 

 

    at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultAr
tifactResolver.java:228)

    at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultAr
tifactResolver.java:90)

    at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(
DefaultMavenProjectBuilder.java:558)

    ... 19 more

Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to
download the artifact from any repository

    at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWag
onManager.java:404)

    at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultAr
tifactResolver.java:216)

    ... 21 more

[INFO]
------------------------------------------------------------------------

[INFO] Total time: < 1 second

[INFO] Finished at: Wed Mar 27 10:50:48 CET 2013 [INFO] Final Memory:
1M/508M [INFO]
------------------------------------------------------------------------

root at pc-System-Product-Name:/home/pc/quartz# 

 

Date: Wed, 27 Mar 2013 11:35:06 +1100

Subject: Re: Spring JDBC in Maven Archetype Sakai

From: steve.swinsburg at gmail.com

To: antoniovalenciaspain at hotmail.com

 

Use this as a base. its
better:https://source.sakaiproject.org/svn//msub/anu.edu.au/alliance/2.8.x/q
uartz/

 

You need to adjust parent to be your sakai version.

You then need to create classes that do what you need. And if they are
outside of this quartz bundle, you need to inject them in. I would recommend
you look at the Sakai programmers manual to figure out what you need to do.
And post on the dev list.\

 

On Wed, Mar 27, 2013 at 10:12 AM, Antonio mu?oz alonso <
<mailto:antoniovalenciaspain at hotmail.com>
antoniovalenciaspain at hotmail.com>wrote:

I have to create SakaiProxy and ProjectLogic, as in Sakai Maven Archetype,
no??.

 

 

Error when mvn clean install sakai:deploy

org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.sakaiproject:base for project:
uk.ac.lancs.e_science:example-scheduler-base:pom:1.0 for project
uk.ac.lancs.e_science:example-scheduler-base:pom:1.0

    at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)

    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)

    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

    at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

    at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 

 

 

Subject: Re: Spring JDBC in Maven Archetype Sakai

From: steve.swinsburg at gmail.com

Date: Wed, 27 Mar 2013 07:14:12 +1100

To: antoniovalenciaspain at hotmail.com

 

You need to inject beans into your quartz app. 

 

Sent from my iPhone

On 27/03/2013, at 5:31, Antonio mu?oz alonso <
<mailto:antoniovalenciaspain at hotmail.com> antoniovalenciaspain at hotmail.com>
wrote:

 

I created this project:

svn cohttps://source.sakaiproject.org/contrib/swinsburg/quartz-example/

 

I need to get all the notes and then insert or update the table.

Do I have to export the code(Function in SakaiProxy) I have for the project
quartz?

Do I have to export Spring JDBC to this new project?

 

I totally lost :( , You should come to Spain :)

 

Thanks.

 

 

From: steve.swinsburg at gmail.com

Subject: Re: Spring JDBC in Maven Archetype Sakai

Date: Tue, 26 Mar 2013 22:27:06 +1100

To: antoniovalenciaspain at hotmail.com

 

Yes you can do it with quartz. 

On 26/03/2013, at 10:03 PM, Antonio mu?oz alonso <
<mailto:antoniovalenciaspain at hotmail.com> antoniovalenciaspain at hotmail.com>
wrote:

I have watched this
tutorial,https://confluence.sakaiproject.org/display/DOC/Quartz+in+Sakai ,
but do not understand.

 

In SakaiProxy, there is work to get the notes of all assignment.

I want to run this function periodically, Should I do it with quartz?.

 

 

thanks

 

Subject: Re: Spring JDBC in Maven Archetype Sakai

From: steve.swinsburg at gmail.com

Date: Fri, 22 Mar 2013 23:39:01 +1100

To: antoniovalenciaspain at hotmail.com

 

Ok then you can use quartz. Google quartz in Sakai and you'll find a page
about how to set it up.  

 

Sent from my iPhone

On 22/03/2013, at 22:09, Antonio mu?oz alonso <
<mailto:antoniovalenciaspain at hotmail.com> antoniovalenciaspain at hotmail.com>
wrote:

 

I've managed to fill the notes to a table, and then read from the table.

But I want to create a process that updates the table at a certain frequency

 

Subject: Re: Spring JDBC in Maven Archetype Sakai

From: steve.swinsburg at gmail.com

Date: Fri, 22 Mar 2013 19:32:32 +1100

To: antoniovalenciaspain at hotmail.com

 

Quartz and cron? Start with the basics, learn spring jdbc then add other
things into the application. 

 

Sent from my iPhone

On 22/03/2013, at 10:16, Antonio mu?oz alonso <
<mailto:antoniovalenciaspain at hotmail.com> antoniovalenciaspain at hotmail.com>
wrote:

 

Ok,

@SpringBean(name="org.sakaiproject.logic.ProjectLogic")

ProjectLogic ProjectLogic;

 

I want to populate a table with notes of tasks.

As seen, should use quartz and cron.

I have little idea of who they are.

How should I do?

 

thanks for help.

 

 

Subject: Re: Spring JDBC in Maven Archetype Sakai

From: steve.swinsburg at gmail.com

Date: Thu, 21 Mar 2013 21:51:12 +1100

To: antoniovalenciaspain at hotmail.com

 

Ps the dao is injected into the logic layer it's not designed to be accessed
from the tool. You need to create logic methods to call from the tool to
access the dao. 

 

Sent from my iPhone

On 21/03/2013, at 20:52, Antonio mu?oz alonso <
<mailto:antoniovalenciaspain at hotmail.com> antoniovalenciaspain at hotmail.com>
wrote:

 

Yes, auto.ddl= true, the table PROJECT_THINGS is created.

I manually inserted a row to the table. ('1','Hello World');

 

I try to access row: 

----------------------------------------------------------------------------
-----------------------------

import org.sakaiproject.dao.ProjectDao;

import org.springframework.context.ApplicationContext;

import org.springframework.context.support.ClassPathXmlApplicationContext;

----------------------------------------------------------------------------
----------------------------

 

ApplicationContext context = 

                new ClassPathXmlApplicationContext("components.xml");

        ProjectDao dao = (ProjectDao)context.getBean("ProjectDao");

        System.out.println(dao.getThing(1).getName()");

 

 

I try code in FirstPage and MyAplicacion, but not compile

but when compiling:

 

ERROR] COMPILATION ERROR : 

[INFO] -------------------------------------------------------------

[ERROR]
/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[45,
27] package org.sakaiproject.dao does not exist

[ERROR]
/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[46,
34] package org.springframework.context does not exist

[ERROR]
/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[47,
42] package org.springframework.context.support does not exist

[ERROR]
/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[45,
27] package org.sakaiproject.dao does not exist

[ERROR]
/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[46,
34] package org.springframework.context does not exist

[ERROR]
/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[47,
42] package org.springframework.context.support does not exist

[ERROR]
/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[45,
27] package org.sakaiproject.dao does not exist

[ERROR]
/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[46,
34] package org.springframework.context does not exist

[ERROR]
/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[47,
42] package org.springframework.context.support does not exist

[ERROR]
/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[88,
5] cannot find symbol

symbol  : class ApplicationContext

location: class org.sakaiproject.tool.pages.FirstPage

[ERROR]
/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[89,
11] cannot find symbol

symbol  : class ClassPathXmlApplicationContext

location: class org.sakaiproject.tool.pages.FirstPage

[ERROR]
/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[90,
2] cannot find symbol

symbol  : class ProjectDao

location: class org.sakaiproject.tool.pages.FirstPage

[ERROR]
/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[90,
20] cannot find symbol

symbol  : class ProjectDao

location: class org.sakaiproject.tool.pages.FirstPage

[INFO] 13 errors 

[INFO] -------------------------------------------------------------

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD FAILURE

[INFO]
------------------------------------------------------------------------

[INFO] Compilation failure

 

/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[45,
27] package org.sakaiproject.dao does not exist

/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[46,
34] package org.springframework.context does not exist

/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[47,
42] package org.springframework.context.support does not exist

/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[45,
27] package org.sakaiproject.dao does not exist

/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[46,
34] package org.springframework.context does not exist

/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[47,
42] package org.springframework.context.support does not exist

/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[45,
27] package org.sakaiproject.dao does not exist

/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[46,
34] package org.springframework.context does not exist

/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[47,
42] package org.springframework.context.support does not exist

/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[88,
5] cannot find symbol

symbol  : class ApplicationContext

location: class org.sakaiproject.tool.pages.FirstPage

/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[89,
11] cannot find symbol

symbol  : class ClassPathXmlApplicationContext

location: class org.sakaiproject.tool.pages.FirstPage

/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[90,
2] cannot find symbol

symbol  : class ProjectDao

location: class org.sakaiproject.tool.pages.FirstPage

/opt/sakai/app/tool/src/java/org/sakaiproject/tool/pages/FirstPage.java:[90,
20] cannot find symbol

symbol  : class ProjectDao

location: class org.sakaiproject.tool.pages.FirstPage

 

 

 

 

 

Date: Thu, 21 Mar 2013 10:21:14 +1100

Subject: Re: Spring JDBC in Maven Archetype Sakai

From: steve.swinsburg at gmail.com

To: antoniovalenciaspain at hotmail.com

 

Yep I think thats what its called. is auto.ddl=true in sakai properties?

 

On Thu, Mar 21, 2013 at 8:41 AM, Antonio mu?oz alonso<
<mailto:antoniovalenciaspain at hotmail.com> antoniovalenciaspain at hotmail.com>
wrote:

ok,

In my sakai.properties:

 

# MySQL settings

 <mailto:vendor at org.sakaiproject.db.api.SqlService=mysql>
vendor at org.sakaiproject.db.api.SqlService=mysql

 <mailto:driverClassName at javax.sql.BaseDataSource=com.mysql.jdbc.Driver>
driverClassName at javax.sql.BaseDataSource=com.mysql.jdbc.Driver

hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect

 
<mailto:url at javax.sql.BaseDataSource=jdbc:mysql://127.0.0.1:3306/sakai?useUn
icode=true&characterEncoding=UTF-8>
url at javax.sql.BaseDataSource=jdbc:mysql://127.0.0.1:3306/sakai?useUnicode=tr
ue&characterEncoding=UTF-8

 <mailto:validationQuery at javax.sql.BaseDataSource=select>
validationQuery at javax.sql.BaseDataSource=select 1 from DUAL

 
<mailto:defaultTransactionIsolationString at javax.sql.BaseDataSource=TRANSACTI
ON_READ_COMMITTED>
defaultTransactionIsolationString at javax.sql.BaseDataSource=TRANSACTION_READ_
COMMITTED

 

Should there be a table PROJECT_THINGS?

 

 

Subject: Re: Spring JDBC in Maven Archetype Sakai

From: steve.swinsburg at gmail.com

Date: Thu, 21 Mar 2013 07:29:34 +1100

To: antoniovalenciaspain at hotmail.com

 

The values come from Sakai.properties. If you build the tool and deploy it,
it works, it connects to the database and has tables created etc.

 

Sent from my iPad

On 21/03/2013, at 7:08, Antonio mu?oz alonso <
<mailto:antoniovalenciaspain at hotmail.com> antoniovalenciaspain at hotmail.com>
wrote:

 

But the example that leads the project,is used?.

 

In components.xml, 

But that database is connected?

 

Example: beans.xml

   <!-- Initialization for data source -->

   <bean id="dataSource" 

      class="org.springframework.jdbc.datasource.DriverManagerDataSource">

      <property name="driverClassName" value="com.mysql.jdbc.Driver"/>

      <property name="url" value="jdbc:mysql://localhost:3306/TEST"/>

      <property name="username" value="root"/>

      <property name="password" value="password"/>

   </bean>

From: steve.swinsburg at gmail.com

Subject: Re: Spring JDBC in Maven Archetype Sakai

Date: Thu, 21 Mar 2013 06:09:04 +1100

To: antoniovalenciaspain at hotmail.com

 

Look in components.xml. Its injected from there (the DataSource) into the
DAO class.

 

On 20/03/2013, at 11:53 PM, Antonio mu?oz alonso <
<mailto:antoniovalenciaspain at hotmail.com> antoniovalenciaspain at hotmail.com>
wrote:

I have reviewed this example:

 <http://www.mkyong.com/spring/maven-spring-jdbc-example/>
http://www.mkyong.com/spring/maven-spring-jdbc-example/

archetype but does not appear spring configuration bean.

 

 

Can you help?

Subject: Re: Spring JDBC in Maven Archetype Sakai

From:steve.swinsburg at gmail.com

Date: Wed, 20 Mar 2013 22:35:49 +1100

To:antoniovalenciaspain at hotmail.com

 

You might want to review some docs on spring jdbc, the connection is there ,
it's an injected bean provided by Sakai kernel. 

CheersSteve

 

Sent from my iPhone

On 20/03/2013, at 21:25, Antonio mu?oz alonso <
<mailto:antoniovalenciaspain at hotmail.com> antoniovalenciaspain at hotmail.com>
wrote:

 

Hi Steve,

 

I have seen an example of Spring JDBC,

how I can use?.

Missing file to use it?, Eg connection to the DB.

 

I have no idea how to use it.

 

thanks

                                         

-------------- next part --------------

An HTML attachment was scrubbed...

URL:
<http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130401/3bb
99645/attachment-0001.html>
http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130401/3bb9
9645/attachment-0001.html 

 

------------------------------

 

Message: 4

Date: Mon, 1 Apr 2013 10:05:32 -0700

From: Sanghyun Jeon <euksa99 at gmail.com>

Subject: Re: [Building Sakai]

         javax.xml.parsers.ParserConfigurationException,

         java.lang.IllegalArgumentException and
java.lang.NullPointerException

To: SamuelGJ <samuelgutierrezjimenez at gmail.com>

Cc: sakai-dev <sakai-dev at collab.sakaiproject.org>

Message-ID:

 
<CAOtsy=o8_udBEjjz6z0de9PBDr4V6FgONu2pZz23jhVPDbCpkg at mail.gmail.com>

Content-Type: text/plain; charset="iso-8859-1"

 

These errors occurs after we applied security patch. If we reverted our

security patch, all issues are resolved. However, we cannot give up our

security patch obviously. Would you mind telling me which version are you

using?

 

S

 

 

 

On Fri, Mar 29, 2013 at 10:28 AM, SamuelGJ <samuelgutierrezjimenez at gmail.com

> wrote:

 

> Hi Sanghyun,

> 

> I had trouble while making certain changes to the code Samigo tool.

> 

> I don't know where the error may arise, but I recommend that if you aren't

> making any changes to the code that you reinstall the tool from:

> 

> /https://source.sakaiproject.org/svn/sam/tags/samigo-2.7.0//

> 

> Hope you fix the error.

> 

> Regards, Samuel.

> 

> 

> 

> --

> View this message in context:

>
<http://sakai-project-mail-list-archives.1343168.n2.nabble.com/Building-Saka
i-javax-xml-parsers-ParserConfigurationException-java-lang-IllegalArgumentEx
ception-andn-tp7587735p7587758.html>
http://sakai-project-mail-list-archives.1343168.n2.nabble.com/Building-Sakai
-javax-xml-parsers-ParserConfigurationException-java-lang-IllegalArgumentExc
eption-andn-tp7587735p7587758.html

> Sent from the DG: Development / Buidling Sakai (

>  <mailto:sakai-dev at collab.sakaiproject.org> sakai-dev at collab.sakaiproject.
org) mailing list archive at Nabble.com.

> _______________________________________________

> sakai-dev mailing list

>  <mailto:sakai-dev at collab.sakaiproject.org> sakai-dev at collab.sakaiproject.
org

>  <http://collab.sakaiproject.org/mailman/listinfo/sakai-dev>
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

> 

> TO UNSUBSCRIBE: send email to

>  <mailto:sakai-dev-unsubscribe at collab.sakaiproject.org>
sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of

> "unsubscribe"

> 

-------------- next part --------------

An HTML attachment was scrubbed...

URL:
<http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130401/a61
bc0cb/attachment-0001.html>
http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130401/a61b
c0cb/attachment-0001.html 

 

------------------------------

 

_______________________________________________

sakai-dev mailing list

 <mailto:sakai-dev at collab.sakaiproject.org>
sakai-dev at collab.sakaiproject.org

 <http://collab.sakaiproject.org/mailman/listinfo/sakai-dev>
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

 

 

End of sakai-dev Digest, Vol 50, Issue 1

****************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130402/bc92ef59/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 39844 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130402/bc92ef59/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 41860 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130402/bc92ef59/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 50584 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130402/bc92ef59/attachment-0002.png 


More information about the sakai-dev mailing list