[Building Sakai] new Sakai tool Deployment descripter(web.xml) issue(project. xml added)

Steve Swinsburg steve.swinsburg at gmail.com
Sat Dec 3 01:02:29 PST 2011


Is this message thread really 5 years old? Can you send your current web.xml, tool config and versions of everything you are using? 


Sent from my iPhone

On 03/12/2011, at 10:35, Mustansar Mehmood <mustansar at rice.edu> wrote:

> Dear Aaron,
>                    This is not a straight up servlet as I mentioned before that I could get it work independent of sakai.       Once I made modifications to make it part of sakai it stopped working. I did change the web.xml file and    
> On Jul 17, 2006, at 12:20 PM, Zeckoski, Aaron wrote:
> 
>> What is this supposed to do?
>> <form action="/org/sakaiproject/tool/cnx/SearchEngines">
>> 
>> It doesn't seem to line up with your url-pattern for your tool:
>> <url-pattern>/connexions/*</url-pattern>
>> 
>> I don't think that is actually going to point to anything real in Sakai. It looks like your tool might be a straight up servlet so I suggest you take a look at the programmer café docs (focus on the simplest possible sakai tool code examples)
>> 
>> http://bugs.sakaiproject.org/confluence/display/BOOT/Home
>> 
>> -AZ
>> 
>> --
>> Aaron Zeckoski (aaronz at vt.edu)
>> Lead Developer - Learning Technologies - Virginia Tech
>> 
>>> -----Original Message-----
>>> From: Mustansar Mehmood [mailto:mustansar at rice.edu]
>>> Sent: Monday, July 17, 2006 12:53 PM
>>> To: Zeckoski, Aaron
>>> Cc: sakai-dev at collab.sakaiproject.org
>>> Subject: Re: new Sakai tool Deployment descripter(web.xml) issue(project.
>>> xml added)
>>> 
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> 
>>> <project>
>>>          <pomVersion>3</pomVersion>
>>>          <extend>../../master/project.xml</extend>
>>>          <name>Connexions Contenent Management Systemt</name>
>>>          <groupId>sakaiproject</groupId>
>>>          <id>connexions</id>
>>>          <currentVersion>${sakai.version}</currentVersion>
>>>          <organization>
>>>                  <name>Sakai Foundation</name>
>>>                  <url>http://sakaiproject.org/</url>
>>>          </organization>
>>>          <inceptionYear>2006</inceptionYear>
>>> 
>>>          <properties>
>>>                  <deploy.type>war</deploy.type>
>>>          </properties>
>>> 
>>>          <dependencies>
>>>                  <!-- Java Servlets -->
>>>                  <dependency>
>>>                          <groupId>servletapi</groupId>
>>>                          <artifactId>servletapi</artifactId>
>>>                          <version>2.4</version>
>>>                  </dependency>
>>> 
>>>                  <dependency>
>>>                            <groupId>rome</groupId>
>>>                            <artifactId>rome</artifactId>
>>>                            <version>0.8</version>
>>>                 </dependency>
>>>                <dependency>
>>>                            <groupId>rome</groupId>
>>>                            <artifactId>purl-org-content</artifactId>
>>>                            <version>0.3</version>
>>>                 </dependency>
>>>                  <dependency>
>>>                            <groupId>rome</groupId>
>>>                            <artifactId>jdom</artifactId>
>>> 
>>>                 </dependency>
>>>          </dependencies>
>>> 
>>>          <build>
>>>                  <sourceDirectory>src/java</sourceDirectory>
>>>          </build>
>>> 
>>> </project>
>>> 
>>> On Jul 17, 2006, at 11:44 AM, Zeckoski, Aaron wrote:
>>> 
>>>> Attach your project.xml(s) so we can see where you are deploying
>>>> stuff.
>>>> -AZ
>>>> 
>>>> --
>>>> Aaron Zeckoski (aaronz at vt.edu)
>>>> Lead Developer - Learning Technologies - Virginia Tech
>>>> 
>>>>> -----Original Message-----
>>>>> From: Mustansar Mehmood [mailto:mustansar at rice.edu]
>>>>> Sent: Monday, July 17, 2006 12:11 PM
>>>>> To: sakai-dev at collab.sakaiproject.org
>>>>> Cc: markjnorton at earthlink.net
>>>>> Subject: new Sakai tool Deployment descripter(web.xml) issue
>>>>> 
>>>>> HI all,
>>>>> I am writing a small tool for sakai. its working find
>>>>> independently but once i deploy the tool into
>>>>> sakai. It gets registered with sakai and appears as one of  sakai
>>>>> tools and once i attempt to use it i get to  see   the welcome page
>>>>> of the tool((normal behavior so far)) but after that my tool i get a
>>>>> tomcat error saying . I dont see any error/warning in catalina.out
>>>>> ----------TOMCAT ERROR  MESSAGE on the browser
>>>>> HTTP Status 404 - /org/sakaiproject/tool/cnx/SearchEngines
>>>>> 
>>>>> type Status report
>>>>> 
>>>>> message /org/sakaiproject/tool/cnx/SearchEngines
>>>>> 
>>>>> description The requested resource (/org/sakaiproject/tool/cnx/
>>>>> SearchEngines) is not available.
>>>>> 
>>>>> -----------------------WAR FILE STRUCTURE-----------------
>>>>> jar -tf connexions.war
>>>>> META-INF/
>>>>> META-INF/MANIFEST.MF
>>>>> tools/
>>>>> WEB-INF/
>>>>> WEB-INF/classes/
>>>>> WEB-INF/classes/org/
>>>>> WEB-INF/classes/org/sakaiproject/
>>>>> WEB-INF/classes/org/sakaiproject/tool/
>>>>> WEB-INF/classes/org/sakaiproject/tool/cnx/
>>>>> WEB-INF/lib/
>>>>> WEB-INF/tld/
>>>>> SearchEngines.html
>>>>> tools/sakai.connexions.xml
>>>>> WEB-INF/classes/org/sakaiproject/tool/cnx/FeedWarmer.class
>>>>> WEB-INF/classes/org/sakaiproject/tool/cnx/SearchEngines.class
>>>>> WEB-INF/classes/org/sakaiproject/tool/cnx/SearchSpec.class
>>>>> WEB-INF/classes/org/sakaiproject/tool/cnx/ServletUtilities.class
>>>>> WEB-INF/web.xml
>>>>> ===================================
>>>>> ----------------------------------------------
>>>>> WEB.XML-----------------------
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <web-app id="Cafe1WebApp" version="2.4" xmlns="http://java.sun.com/
>>>>> xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://
>>>>> java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
>>>>> <display-name>Connexions</display-name>
>>>>> <description>Connexions Content Management System</description>
>>>>> 
>>>>> <!-- Sakai request filter -->
>>>>> <filter>
>>>>> <filter-name>sakai.request</filter-name>
>>>>> <filter-class>org.sakaiproject.util.RequestFilter</filter-
>>>>> class>
>>>>> <!-- Portal URLs encode the placement, so we don't need it
>>>>> added -->
>>>>> <init-param>
>>>>> <param-name>tool.placement</param-name>
>>>>> <param-value>none</param-value>
>>>>> </init-param>
>>>>> </filter>
>>>>> 
>>>>> <filter-mapping>
>>>>> <filter-name>sakai.request</filter-name>
>>>>> <servlet-name>sakai.connexions</servlet-name>
>>>>> <dispatcher>REQUEST</dispatcher>
>>>>> <dispatcher>FORWARD</dispatcher>
>>>>> <dispatcher>INCLUDE</dispatcher>
>>>>> </filter-mapping>
>>>>> <welcome-file-list>
>>>>> <welcome-file>/connexions/SearchEngines.html </welcome-file>
>>>>> </welcome-file-list>
>>>>> <servlet>
>>>>> <servlet-name>sakai.connexions</servlet-name>
>>>>> <servlet-class>org.sakaiproject.tool.cnx.SearchEngines</
>>>>> servlet-class>
>>>>> <load-on-startup>1</load-on-startup>
>>>>> </servlet>
>>>>> <servlet-mapping>
>>>>> <servlet-name> sakai.connexions</servlet-name>
>>>>> <url-pattern>/connexions/*</url-pattern>
>>>>> </servlet-mapping>
>>>>> <!-- too l listener is required -->
>>>>> <listener>
>>>>> <listener-class>org.sakaiproject.util.ToolListener</listener-
>>>>> class>
>>>>> </listener>
>>>>> 
>>>>> </web-app>
>>>>> -----------------------
>>>>> ---------------Welcome File-----------------
>>>>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>>>>> <html><head>
>>>>> 
>>>>> <title>Content Crawler</title></head><body bgcolor="#FFFFFF">
>>>>> <h1 align="center">Content Crawler</h1>
>>>>> 
>>>>> <form action="/org/sakaiproject/tool/cnx/SearchEngines">
>>>>> <center>
>>>>> Search String:
>>>>> <input name="searchString" type="text"><br>
>>>>> <!--   Results to Show Per Page:
>>>>> <input name="numResults" value="10" size="3" type="text"><br>
>>>>> -->
>>>>> <input name="searchEngine" value="Connexions" type="radio">
>>>>> 
>>>>> Connexions
>>>>> <input name="searchEngine" value="Mdid" type="radio">
>>>>> Mdid
>>>>> <input name="searchEngine" value="Dspace" type="radio">
>>>>> Dspace
>>>>> 
>>>>> <br>
>>>>> <input value="Search" type="submit">
>>>>> </center>
>>>>> </form>
>>>>> 
>>>>> </body></html>
>>>>> ------------------------------------------------
>>>>> I have tried this aplication with both sakai 2-1-2 as well as
>>>>> 2-2-014. i was wondering if some one could look  help me with web.xml
>>>>> which seems erratic to me. There might be some other issue as well
>>>>> but i am not sure. Any help will be apprciated. Thanks in advance.
>>>>> 
>>>>> Regards
>>>>> Mustansar Mehmood
>>>>> Research Support Programmer
>>>>> Rice University
>>>>> 
>>>>> [see attachment: "message0.html", size: 8141 bytes]
>>>>> 
>>>>> 
>>>>> Attachments:
>>>>> 
>>>>> message0.html
>>>>> 
>>>> http://collab.sakaiproject.org/access/content/attachment/
>>>> fa11c50b-7abc-
>>>>> 4c6c-809b-b463f6bbac8d/message0.html
>>>>> 
>>>>> ----------------------
>>>>> This automatic notification message was sent by Sakai Collab
>>>>> (http://collab.sakaiproject.org/portal) from the DG: Development
>>>>> site.
>>>>> You can modify how you receive notifications at My Workspace >
>>>>> Preferences.
>>>> 
>>>> 
>>>> 
>> 
>> 
>> !DSPAM:44bbc6e7184813023227668!
> 
> _______________________________________________
> 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/20111203/09fc7855/attachment.html 


More information about the sakai-dev mailing list