[Building Sakai] Site Info errors - 2.7.0
Stephen Marquard
stephen.marquard at uct.ac.za
Wed Aug 4 09:04:41 PDT 2010
If you are running into the OS open files limit, then the
NoClassDefFoundError could be because of the jvm's inability to open the
.jar file containing the class.
We start our appservers with
ulimit -n 5000
in the shell script that starts the jvm.
Regards
Stephen
>>> Robert Long <relong at svsu.edu> 8/4/2010 5:56 PM >>>
All,
I am receiving some strange errors upon loading Site Info for the first
time
after a Tomcat reboot. I am using Sakai 2.7.0, Tomcat 5.5.30, and Java
1.6.0_20.
If I go into a site and click ³Site Info² the following chain of
errors
appears:
---Begin Errors---
2010-08-04 11:45:48,513 ERROR TP-Processor2
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sakai-site-m
anage-tool].[sakai.siteinfo] - Servlet.service() for servlet
sakai.siteinfo
threw exception
java.lang.ClassNotFoundException:
org.sakaiproject.util.ParameterParser
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1436)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1282)
at
org.sakaiproject.vm.ComponentServlet.service(ComponentServlet.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
....
....
2010-08-04 11:45:48,550 WARN TP-Processor2
org.sakaiproject.portal.util.ErrorReporter - Bug Report bug-id:
eac7e5b0-7140-4634-aee2-848da62a4938 user:
189860c9-73fe-4198-87ce-e05e4ea84ff9 usage-session:
412d4030-f4d5-4540-bad2-a7ddc4dd9c05 time: Aug 4, 2010 11:45:48 user
comment: null stack trace
org.sakaiproject.portal.api.PortalHandlerException:
org.sakaiproject.tool.api.ToolException: Servlet execution threw an
exception
at
org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPo
rtal.java:768)
caused by: org.sakaiproject.tool.api.ToolException: Servlet execution
threw
an exception
at
org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCh
aronPortal.java:1216)
caused by: javax.servlet.ServletException: Servlet execution threw an
exception
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:188)
caused by: java.lang.NoClassDefFoundError:
org/sakaiproject/util/ParameterParser
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
caused by: java.lang.ClassNotFoundException:
org.sakaiproject.util.ParameterParser
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1436)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1282)
at
org.sakaiproject.vm.ComponentServlet.service(ComponentServlet.java:50)
....
....
2010-08-04 11:45:48,768 WARN TP-Processor2
org.sakaiproject.email.impl.BasicEmailService - Email.sendMail:
exception:
Could not connect to SMTP host: smtp.svsu.edu, port: 25
javax.mail.MessagingException: Could not connect to SMTP host:
smtp.svsu.edu, port: 25;
nested exception is:
java.net.SocketException: Too many open files
at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1706)
at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:525)
at javax.mail.Service.connect(Service.java:291)
....
....
2010-08-04 11:46:18,545 WARN TP-Processor4
org.apache.jk.common.ChannelSocket - Exception executing accept
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at
org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:313)
at
org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:667)
at
org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(ChannelSocket.java:8
78)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l.jav
a:689)
at java.lang.Thread.run(Thread.java:619)
....
....
---End errors---
The weird thing is, if I copy in the same copy of the
sakai-site-manage-tool.war into webapps and Tomcat redeploys it, all
is
well.
I have tried setting the lines in /etc/security/limits.conf and
rebooting
the server, but to no avail:
tomcat hard nofile 100000
tomcat soft nofile 100000
What is going on? Anyone direct me down the appropriate path??
Thanks,
Bob
----
Robert E. Long, MA
Saginaw Valley State University
Open Source Programmer / Analyst
Math / Education Technology Instructor
M.A. Instructional Technology
O: 989.964.2245
###
UNIVERSITY OF CAPE TOWN
This e-mail is subject to the UCT ICT policies and e-mail disclaimer
published on our website at
http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from
+27 21 650 4500. This e-mail is intended only for the person(s) to whom
it is addressed. If the e-mail has reached you in error, please notify
the author. If you are not the intended recipient of the e-mail you may
not use, disclose, copy, redirect or print the content. If this e-mail
is not related to the business of UCT it is sent by the sender in the
sender's individual capacity.
###
More information about the sakai-dev
mailing list