[Building Sakai] Sakai runs in Tomcat 7

Anthony Whyte arwhyte at umich.edu
Tue Apr 12 17:22:20 PDT 2011


I also dropped commons-el-1.0.jar into shared/lib in an instance of Tomcat 6.0.32 running sakai-2.8.x and the JSF tools now render.  There is however a dav issue on startup which I believe also afflicts Tomcat 7 (see below).

BTW, I'm playing with Tomcat 6.0.32 not because I prefer it over Tomcat 7 but because we check all options as we evaluate upgrading from Tomcat 5.5.

Cheers,

Anth
 

Apr 12, 2011 7:58:54 PM org.apache.tomcat.util.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.sakaiproject.dav.DavRealm
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
. . .
Apr 12, 2011 7:58:54 PM org.apache.catalina.startup.ContextConfig processContextConfig
SEVERE: Parse error in context.xml for /dav
java.lang.ClassNotFoundException: org.sakaiproject.dav.DavRealm
	at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2806)
	at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2832)
	at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1359)
. . .
Caused by: java.lang.ClassNotFoundException: org.sakaiproject.dav.DavRealm
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205)
	at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
	at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1356)
	... 41 more





On Apr 12, 2011, at 6:42 PM, Steve Swinsburg wrote:

> Hi David,
> 
> it looks like you've just resolved one of the issues with JSF tools. Nice work. Adding commons-el to shared/lib actually makes the JSF tools that were problematic before to render!
> 
> cheers,
> Steve
> 
> 
> 
> On 12/04/2011, at 3:52 AM, David Wafula wrote:
> 
>> 
>> 
>> On Thu, Apr 7, 2011 at 2:25 PM, Steve Swinsburg <steve.swinsburg at gmail.com> wrote:
>> Hi all,
>> 
>> I ran an experiment today in getting Sakai trunk up and running in Tomcat 7. Turns out it was easier than expected. The only modification required is to the Tomcat config to restore the 'classic' layout:
>> 
>> http://steveswinsburg.wordpress.com/2011/04/07/sakai-runs-in-tomcat-7/
>> 
>> 
>> Hi Steve,
>> 
>> Good news indeed. I got it to run  under  the following:
>> 
>> 1. Tomcat 7.0.12
>> 2. Sakai 2.8.x (build from svn)
>> 3. Java Version 1.6.0_24
>> 4. Ubuntu 10.10
>> 5. Maven2
>> 
>> The only other thing i had to do besides following your blog post was to copy commons-el.jar to to commons/lib,  as i was getting this in the logs:
>> 
>> SEVERE: Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener
>> java.lang.NoClassDefFoundError: org/apache/commons/el/Logger
>> 
>> And memory min for java 1024.
>> 
>> 
>> I have not logged into the system, yet, I just done my silly stupid dance when the portal displayed. I will  (and my colleagues) probably  comb every feature and report back how it is going.
>> 
>> Regards
>> 
>> -- 
>> David Wafula
> 
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to 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/20110412/350be6ae/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3829 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110412/350be6ae/attachment.bin 


More information about the sakai-dev mailing list