[Building Sakai] Samigo not appearing in customizer/tools

Steve Swinsburg steve.swinsburg at gmail.com
Tue Aug 9 00:10:20 PDT 2011


Hi,

> 
>    You are saying that there should be unique tool id's, but there is
> nothing written in web.xml. It is a blank page.

The web.xml you attached to the original message is here:
http://old.nabble.com/file/p32215899/web.xml

It's full of content, part of which is used to register itself as a tool. But it's setup for amigo and untouched for your app.


> What can i write there? Do i
> need to copy all the code in to that web.xml what u send and change the tool
> id? or i need to change in some other place? Please help me.
> 

This is your issue, you need to understand what needs to go there. 

See part 1 and 7 of:
https://confluence.sakaiproject.org/display/BOOT/Sakai+app+and+tool+naming+tips


Steve



> Thanks & regards
> Bhanu.
> 
> Steve Swinsburg-3 wrote:
>> 
>> Hi,
>> 
>> Your issue is in web.xml. You are still declaring the sakai.samigo
>> servlet, so Tomcat is seeing two registrations for the same servlet and
>> not liking it. They must be unique to other tool id's but also indentical
>> to the tool registration, AND point to your own servlet:
>> 
>> <servlet>
>> <servlet-name>sakai.samigo</servlet-name>
>> <servlet-class>org.sakaiproject.jsf.util.SamigoJsfTool</servlet-class>
>> <init-param>
>> <param-name>default</param-name>
>> <param-value>jsf/index/mainIndex</param-value>
>> </init-param>
>> <init-param>
>> <param-name>path</param-name>
>> <param-value>/</param-value>
>> </init-param>
>> <init-param>
>> <param-name>default.last.view</param-name>
>> <param-value>false</param-value>
>> </init-param>
>> <load-on-startup>1</load-on-startup>
>> </servlet>
>> 
>> See part 1 and 7 of:
>> https://confluence.sakaiproject.org/display/BOOT/Sakai+app+and+tool+naming+tips
>> 
>> cheers,
>> Steve
>> 
>> 
>> On 08/08/2011, at 5:27 PM, Bhanu Teja Motupalli wrote:
>> 
>>> 
>>> Hi Steve,
>>> 
>>>       Please find the attachments. I am sending you dealer.tool.xml and
>>> web.xml.
>>> 
>>> Regards
>>> Bhanu.
>>> 
>>> Steve Swinsburg-3 wrote:
>>>> 
>>>> Hi,
>>>> 
>>>> Thats because there is an issue with the tool registration. Please send
>>>> the dealter.xml in the webapp/tools folder and your web.xml
>>>> 
>>>> cheers,
>>>> Steve
>>>> 
>>>> 
>>>> 
>>>> On 08/08/2011, at 5:13 PM, Bhanu Teja Motupalli wrote:
>>>> 
>>>>> 
>>>>> Hi Steve,
>>>>> 
>>>>>   The new tool i have added to a site in course. but when i am trying
>>>>> to
>>>>> access that tool i am getting this following error. I have checked in
>>>>> db
>>>>> in
>>>>> sakai_site_tool there is a record with this id. And what is the problem
>>>>> now. 
>>>>> 
>>>>> org.sakaiproject.portal.api.PortalHandlerException:
>>>>> java.lang.IllegalArgumentException: Unable to find registered context
>>>>> for
>>>>> tool with ID dealer
>>>>>  at
>>>>> org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:772)
>>>>> caused by: java.lang.IllegalArgumentException: Unable to find
>>>>> registered
>>>>> context for tool with ID dealer
>>>>>  at
>>>>> org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:483)
>>>>>  at
>>>>> org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1261)
>>>>>  at
>>>>> org.sakaiproject.portal.charon.handlers.ToolHandler.doTool(ToolHandler.java:196)
>>>>>  at
>>>>> org.sakaiproject.portal.charon.handlers.ToolHandler.doGet(ToolHandler.java:95)
>>>>>  at
>>>>> org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:772)
>>>>>  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:642)
>>>>>  at
>>>>> com.rsmart.sakai.kernel.request.BrandRequestFilter.doFilter(BrandRequestFilter.java:79)
>>>>>  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.Http11AprProcessor.process(Http11AprProcessor.java:837)
>>>>>  at
>>>>> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
>>>>>  at
>>>>> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1287)
>>>>>  at java.lang.Thread.run(Thread.java:662)
>>>>> 
>>>>> Regards
>>>>> Bhanu.
>>>>> 
>>>>> 
>>>>> Steve Swinsburg-3 wrote:
>>>>>> 
>>>>>> Hi,
>>>>>> 
>>>>>> Check the tomcat logs and see whats happening when it deploys them.
>>>>>> Also,
>>>>>> send your web.xml for both.
>>>>>> 
>>>>>> cheers,
>>>>>> Steve
>>>>>> 
>>>>>> 
>>>>>> On 04/08/2011, at 8:53 PM, Bhanu Teja Motupalli wrote:
>>>>>> 
>>>>>>> 
>>>>>>> Hi Steve,
>>>>>>> 
>>>>>>>         Very Thanks for your replay. I have made changes as you said
>>>>>>> it
>>>>>>> is working fine in customizer. But when i am trying to add a tool for
>>>>>>> a
>>>>>>> site
>>>>>>> in sitesetup this samigo tool and new tool are not appearing. Samigo
>>>>>>> tool
>>>>>>> is
>>>>>>> not appearing form initially. But when i create a new tool with sakai
>>>>>>> app
>>>>>>> builder the tools are appearing in sitesetup tools menu. I need this
>>>>>>> new
>>>>>>> tool also should appear as per my requirement. So, Please tell do i
>>>>>>> need
>>>>>>> to
>>>>>>> do any changes to appear in sitesetup tools menu?
>>>>>>> 
>>>>>>> regrads
>>>>>>> bhanu. 
>>>>>>> 
>>>>>>> Steve Swinsburg-3 wrote:
>>>>>>>> 
>>>>>>>> Hi,
>>>>>>>> 
>>>>>>>> In the webapp itself there will be a 'tools' directory and in there,
>>>>>>>> a
>>>>>>>> specially named xml file. The name of that file, the ID within that
>>>>>>>> file,
>>>>>>>> and also the main Sakai servlet name in the web.xml for the webapp,
>>>>>>>> must
>>>>>>>> all match and be unique to any others. So you'd call it dealer.xml,
>>>>>>>> and
>>>>>>>> then update the appropriate IDs in the file and also in web.xml.
>>>>>>>> 
>>>>>>>> Note that the servlet mapping will need to refer to YOUR class, not
>>>>>>>> the
>>>>>>>> Samigo one. Then rebuild and redeploy.
>>>>>>>> 
>>>>>>>> However, I advise against taking this course of action and instead
>>>>>>>> modify
>>>>>>>> the existing Samigo app to suit your needs, renaming as you go. 
>>>>>>>> 
>>>>>>>> cheers,
>>>>>>>> Steve
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On 04/08/2011, at 4:33 PM, Bhanu Teja Motupalli wrote:
>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> Hi all,
>>>>>>>>> i have changed the samigo tool source folder name sam to "dealer"
>>>>>>>>> to
>>>>>>>>> create another tool same as samigo. I have changed "samigo" to
>>>>>>>>> "dealer"
>>>>>>>>> in
>>>>>>>>> all pom.xml files. Now i can able to generate all jar and war files
>>>>>>>>> with
>>>>>>>>> the
>>>>>>>>> name dealer. I have checked in components, shared and webapps also.
>>>>>>>>> And
>>>>>>>>> i
>>>>>>>>> have not created any database scripts for this new tool. I need to
>>>>>>>>> use
>>>>>>>>> old
>>>>>>>>> data that was in samigo. Now new tool is not appearing in customer.
>>>>>>>>> I
>>>>>>>>> can
>>>>>>>>> not able to see the tool name in sakai_site_tool also. Can u please
>>>>>>>>> tell
>>>>>>>>> me
>>>>>>>>> what i can do to get new tool as samigo with out disturbing that
>>>>>>>>> existing
>>>>>>>>> tool. 
>>>>>>>>> 
>>>>>>>>> Thanks & Regards
>>>>>>>>> Bhanu.
>>>>>>>>> -- 
>>>>>>>>> View this message in context:
>>>>>>>>> http://old.nabble.com/Samigo-not-appearing-in-customizer-tools-tp32191938p32191938.html
>>>>>>>>> Sent from the Sakai - Development mailing list archive at
>>>>>>>>> Nabble.com.
>>>>>>>>> 
>>>>>>>>> _______________________________________________
>>>>>>>>> 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"
>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>>> -- 
>>>>>>> View this message in context:
>>>>>>> http://old.nabble.com/Samigo-not-appearing-in-customizer-tools-tp32191938p32193364.html
>>>>>>> Sent from the Sakai - Development mailing list archive at Nabble.com.
>>>>>>> 
>>>>>>> _______________________________________________
>>>>>>> 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"
>>>>>> 
>>>>>> 
>>>>> 
>>>>> -- 
>>>>> View this message in context:
>>>>> http://old.nabble.com/Samigo-not-appearing-in-customizer-tools-tp32191938p32215843.html
>>>>> Sent from the Sakai - Development mailing list archive at Nabble.com.
>>>>> 
>>>>> _______________________________________________
>>>>> 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"
>>>> 
>>>> 
>>> http://old.nabble.com/file/p32215899/dealer.tool.xml dealer.tool.xml 
>>> http://old.nabble.com/file/p32215899/web.xml web.xml 
>>> -- 
>>> View this message in context:
>>> http://old.nabble.com/Samigo-not-appearing-in-customizer-tools-tp32191938p32215899.html
>>> Sent from the Sakai - Development mailing list archive at Nabble.com.
>>> 
>>> _______________________________________________
>>> 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"
>> 
> 
> -- 
> View this message in context: http://old.nabble.com/Samigo-not-appearing-in-customizer-tools-tp32191938p32223674.html
> Sent from the Sakai - Development mailing list archive at Nabble.com.
> 
> _______________________________________________
> 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/20110809/6fb4b435/attachment.html 


More information about the sakai-dev mailing list