[Building Sakai] New Sakai Tool Issue

Aaron Zeckoski azeckoski at unicon.net
Mon Mar 29 09:19:49 PDT 2010


See step 7 on this page:
http://confluence.sakaiproject.org/display/BOOT/Sakai+app+and+tool+naming+tips

If those align then you should not get this error. Make sure you follow the
rest of the tips on that page as well. You might also want to start with
this instead:
https://source.sakaiproject.org/contrib/programmerscafe/trunk/samples/helloWorldUser/

:-)
-AZ


On Mon, Mar 29, 2010 at 4:44 PM, John Bentley <
John.Bentley at myknowledgemap.com> wrote:

>  Hi.
>
>
>
> I have built a simple Sakai Tool (a simple Hello World Servlet) just to get
> a hook into Sakai, before we begin development of the actual tool.
>
> The war file deploys correctly to tomcat/webapps.
>
>
>
> I have attached the deployed was file.
>
>
>
> The new tool is call CPD -  as can be seen on left hand menu of the
> screenshot below.
>
>
>
>
>
>
>
>
>
>
>
>
>
> I add the tool to my site. It appears on the left menu as ‘CPD’.
>
>
>
> When I select it I get the following error:
>
>
>
> org.sakaiproject.portal.api.PortalHandlerException:
> java.lang.IllegalArgumentException: Unable to find registered context for
> tool with ID sakai.CPD
>
>     at
> org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:768)
>
> caused by: java.lang.IllegalArgumentException: Unable to find registered
> context for tool with ID sakai.CPD
>
>     at
> org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:482)
>
>     at
> org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1216)
>
>     at
> org.sakaiproject.portal.charon.handlers.ToolHandler.doTool(ToolHandler.java:204)
>
>     at
> org.sakaiproject.portal.charon.handlers.ToolHandler.doGet(ToolHandler.java:96)
>
>     at
> org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:768)
>
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
>
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>
>     at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:641)
>
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>
>     at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>
>     at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
>
>     at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>
>     at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>
>     at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>
>     at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
>
>     at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
>
>     at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>
>     at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>
>     at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>
>     at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>
>     at java.lang.Thread.run(Thread.java:595)
>
>
>
> Any help would be most appreciated.
>
>
>
> Best Regards.
>
> John Bentley.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *From:* John Bentley
> *Sent:* 24 March 2010 15:10
> *To:* 'Steve Swinsburg'
> *Cc:* sakai-dev at collab.sakaiproject.org
> *Subject:* RE: [Building Sakai] 2.8-SNAPSHOT Unable to build Sakai Dev Env
>
>
>
> Hi.
>
>
>
> I have completed a build and deploy of the sakai-trunk.
>
>
>
> When I start up Tomcat 5.5, and connect to the sakai portal I get the
> following error.
>
>
>
> Does anyone have any suggestions?
>
>
>
> Best Regards.
>
> John Bentley.
>
>
>
> This information will automatically be included in your bug report.
>
> org.sakaiproject.portal.api.PortalHandlerException:
> java.lang.IllegalStateException: The CacheManager has been shut down. It can
> no longer be used.
>
>     at
> org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:768)
>
> caused by: java.lang.IllegalStateException: The CacheManager has been shut
> down. It can no longer be used.
>
>     at net.sf.ehcache.CacheManager.checkStatus(CacheManager.java:827)
>
>     at net.sf.ehcache.CacheManager.cacheExists(CacheManager.java:723)
>
>     at
> org.sakaiproject.memory.impl.BasicMemoryService.instantiateCache(BasicMemoryService.java:458)
>
>     at
> org.sakaiproject.memory.impl.BasicMemoryService.newCache(BasicMemoryService.java:539)
>
>     at
> org.sakaiproject.util.BaseDbFlatStorage.getCache(BaseDbFlatStorage.java:218)
>
>     at
> org.sakaiproject.util.BaseDbFlatStorage.readProperties(BaseDbFlatStorage.java:1053)
>
>     at
> org.sakaiproject.util.BaseDbFlatStorage.readProperties(BaseDbFlatStorage.java:997)
>
>     at
> org.sakaiproject.site.impl.DbSiteService$DbStorage.readSiteProperties(DbSiteService.java:1613)
>
>     at
> org.sakaiproject.site.impl.DbSiteService$DbStorage.readAllSiteProperties(DbSiteService.java:1625)
>
>     at org.sakaiproject.site.impl.BaseSite.loadAll(BaseSite.java:913)
>
>     at
> org.sakaiproject.site.impl.BaseSiteService.getDefinedSite(BaseSiteService.java:592)
>
>     at
> org.sakaiproject.site.impl.BaseSiteService.getSite(BaseSiteService.java:672)
>
>     at
> org.sakaiproject.site.impl.BaseSiteService.getSiteVisit(BaseSiteService.java:748)
>
>     at
> org.sakaiproject.site.cover.SiteService.getSiteVisit(SiteService.java:134)
>
>     at
> org.sakaiproject.portal.charon.site.PortalSiteHelperImpl.getSiteVisit(PortalSiteHelperImpl.java:899)
>
>     at
> org.sakaiproject.portal.charon.site.PortalSiteHelperImpl.getGatewaySiteId(PortalSiteHelperImpl.java:152)
>
>     at
> org.sakaiproject.portal.charon.handlers.SiteHandler.doSite(SiteHandler.java:142)
>
>     at
> org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:114)
>
>     at
> org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:768)
>
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
>
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>
>     at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:641)
>
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>
>     at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>
>     at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
>
>     at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>
>     at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>
>     at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>
>     at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
>
>     at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
>
>     at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>
>     at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>
>     at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>
>     at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>
>     at java.lang.Thread.run(Thread.java:595)
>
>
>
>
>
>
>
> *From:* Steve Swinsburg [mailto:steve.swinsburg at gmail.com]
> *Sent:* 23 March 2010 22:17
> *To:* John Bentley
> *Cc:* sakai-dev at collab.sakaiproject.org
> *Subject:* Re: [Building Sakai] 2.8-SNAPSHOT Unable to build Sakai Dev Env
>
>
>
> HI John,
>
>
>
> Cafe is a minimalist source build and may not be completely up to date for
> 2.8.
>
>
>
> Try a full source checkout:
>
> svn co https://source.sakaiproject.org/svn//sakai/trunk/<https://source.sakaiproject.org/svn/sakai/trunk/>sakai-trunk
>
>
>
> cheers,
>
> Steve
>
>
>
> On 24/03/2010, at 2:12 AM, John Bentley wrote:
>
>
>
> Hi .
>
>
>
> I wonder if anyone can help.
>
>
>
> I have followed the Development Environment Setup instructions and hit a
> problem when I try and try to build Sakai using Maven2.
>
>
>
> I get the following message:
>
>
>
>
>
> Project ID: org.sakaiproject.content:sakai-content-tool
>
> POM Location: C:\Subversion\content\content-tool\tool\pom.xml
>
> Validation Messages:
>
>     [0]  'dependencies.dependency.version' is missing for
> org.sakaiproject.conte
>
> nt:content-bundles:jar
>
> Reason: Failed to validate POM for project
> org.sakaiproject.content:sakai-conten
>
> t-tool at C:\Subversion\content\content-tool\tool\pom.xml
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Trace
>
> org.apache.maven.reactor.MavenExecutionException: Failed to validate POM
> for pro
>
> ject org.sakaiproject.content:sakai-content-tool at
> C:\Subversion\content\conten
>
> t-tool\tool\pom.xml
>
> I used svn to get the latest version from trunk ie
> https://source.sakaiproject.org/svn/cafe/trunk/
>
>
>
> The pom contains a reference to version 2.8-SNAPSHOT.
>
>
>
> Is there an issue with the trunk?
>
>
>
> Best Regards.
>
> John Bentley.
>
> _______________________________________________
> 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"
>
>
>
> _______________________________________________
> 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"
>



-- 
Aaron Zeckoski - Software Engineer - http://tinyurl.com/azprofile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100329/bb8113c1/attachment.html 


More information about the sakai-dev mailing list