You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oodt.apache.org by Thomas Bennett <lm...@gmail.com> on 2011/12/22 13:44:47 UTC

Using fmprod

Hi,

I'm quiet keen to use fmprod to download data -
https://cwiki.apache.org/OODT/getting-products-from-a-remote-filemanager.html
,

I've followed the instructions that Chris suggested in a post from earlier
this year to get the fmprod up and running-
http://mail-archives.apache.org/mod_mbox/oodt-dev/201104.mbox/%3C22E9CC53-2111-4DDC-AD60-0B3C1EEE807D@jpl.nasa.gov%3E


The steps I followed are:


1. cp fmprod/src/main/resources/cas-product-tomcat-5-5-9.xml
/usr/local/oodt/webapp/fmprod/fmprod.xml

I also copied the rdconf.xml and rssconf.xml files to the same dir.

2. edit fmprod.xml and change path to WAR file and configuration properties

<Context path="/fmprod"
docBase="/usr/local/oodt/webapp/fmprod/cas-product-0.4-SNAPSHOT.war"
debug="5"
  reloadable="true" crossContext="true">

  <Valve className="org.apache.catalina.valves.AccessLogValve"
    prefix="fmprod_access_log." suffix=".txt" pattern="common" />

  <Parameter name="filemgr.url" value="http://localhost:9000"
override="false" />
  <Parameter name="filemgr.rdfconf.file"
value="/usr/local/oodt/webapp/fmprod/rdfconf.xml" override="false"/>
  <Parameter name="filemgr.rssconf.file"
value="/usr/local/oodt/webapp/fmprod/rssconf.xml" override="false"/>
  <Parameter name="filemgr.working.dir" value="/tmp" override="false" />

</Context>

3. cp fmprod/target/cas-product-0.4-SNAPSHOT.war /usr/local/oodt/webapp/fmprod/

4. ln -s /usr/local/oodt/webapps/fmprod/fmprod.xml
/usr/local/apache-tomcat-5.5.34/conf/Catalina/localhost/fmprod.xml


5. fire up Tomcat


Here is the command I ran to get a product:
wget
http://localhost:8080/fmprod?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f

The response I got was:
--2011-12-22 14:33:28--
http://localhost:8080/fmprod?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:8080... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location:
http://localhost:8080/fmprod/?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f[following]
--2011-12-22 14:33:28--
http://localhost:8080/fmprod/?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
Connecting to localhost|::1|:8080... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-12-22 14:33:28 ERROR 404: Not Found.

I've looked at the log files in /usr/local/apache-tomcat-5.5.34/logs/
cas_filemgr0.log cas_filemgr0.log.lck cas_filemgr1.log cas_filemgr2.log
cas_filemgr3.log cas_filemgr4.log catalina.2011-12-22.log catalina.out
fmprod_access_log.2011-12-22.txt host-manager.2011-12-22.log
localhost.2011-12-22.log manager.2011-12-22.log

I've attached some of the more interesting logs.

I'm not sure where to even start debugging, but I though I would check that
I've not missed some critical configuration. Or if someone could point me
in the right direction :-)

Thanks for any help in advance,
Tom

PS: I'm running on Ubuntu Linux. I downloaded tomcat5.5.34. Using
java-6-openjdk

Re: Using fmprod

Posted by "Mattmann, Chris A (388J)" <ch...@jpl.nasa.gov>.
Thanks Tom, right back at ya!

Cheers,
Chris

On Jan 2, 2012, at 10:41 PM, Thomas Bennett wrote:

> Hi Chris and Ricky,
> 
> Happy new year and hope you guys also having/had a great holiday.
> 
> Thanks for the info and updating the wiki. Awesome.
> 
> Tom
> 
> On 23 December 2011 06:59, Nguyen, Ricky <rn...@chla.usc.edu> wrote:
> Oops, I just updated the wiki to use the correct url for DataDeliveryServlet (/data) and DatasetDeliveryServlet (/dataset).
> 
> 
> On Dec 22, 2011, at 8:27 PM, Mattmann, Chris A (388J) wrote:
> 
> > Hey Tom,
> >
> > Thanks for your email and Happy Holidays!
> >
> > Replies inline below:
> >
> > On Dec 22, 2011, at 5:44 AM, Thomas Bennett wrote:
> >
> >> Hi,
> >>
> >> I'm quiet keen to use fmprod to download data - https://cwiki.apache.org/OODT/getting-products-from-a-remote-filemanager.html,
> >>
> >> I've followed the instructions that Chris suggested in a post from earlier this year to get the fmprod up and running- http://mail-archives.apache.org/mod_mbox/oodt-dev/201104.mbox/%3C22E9CC53-2111-4DDC-AD60-0B3C1EEE807D@jpl.nasa.gov%3E
> >> [...snip...]
> >
> >> 5. fire up Tomcat
> >>
> >> Here is the command I ran to get a product:
> >> wget http://localhost:8080/fmprod?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
> >
> > I think you want to try:
> >
> >> wget http://localhost:8080/fmprod/data?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
> >
> > Here to indicate the data delivery servlet. See if that takes care of it...
> >
> > Thanks!
> >
> > Cheers,
> > Chris
> >
> >
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > Chris Mattmann, Ph.D.
> > Senior Computer Scientist
> > NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
> > Office: 171-266B, Mailstop: 171-246
> > Email: chris.a.mattmann@nasa.gov
> > WWW:   http://sunset.usc.edu/~mattmann/
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > Adjunct Assistant Professor, Computer Science Department
> > University of Southern California, Los Angeles, CA 90089 USA
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
> 
> 
> 
> 
> ---------------------------------------------------------------------
> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,
> is for the sole use of the intended recipient(s) and may contain confidential
> or legally privileged information. Any unauthorized review, use, disclosure
> or distribution is prohibited. If you are not the intended recipient, please
> contact the sender by reply e-mail and destroy all copies of this original message.
> 
> ---------------------------------------------------------------------
> 
> 


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattmann@nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Re: Using fmprod

Posted by "Mattmann, Chris A (388J)" <ch...@jpl.nasa.gov>.
Thanks Tom, right back at ya!

Cheers,
Chris

On Jan 2, 2012, at 10:41 PM, Thomas Bennett wrote:

> Hi Chris and Ricky,
> 
> Happy new year and hope you guys also having/had a great holiday.
> 
> Thanks for the info and updating the wiki. Awesome.
> 
> Tom
> 
> On 23 December 2011 06:59, Nguyen, Ricky <rn...@chla.usc.edu> wrote:
> Oops, I just updated the wiki to use the correct url for DataDeliveryServlet (/data) and DatasetDeliveryServlet (/dataset).
> 
> 
> On Dec 22, 2011, at 8:27 PM, Mattmann, Chris A (388J) wrote:
> 
> > Hey Tom,
> >
> > Thanks for your email and Happy Holidays!
> >
> > Replies inline below:
> >
> > On Dec 22, 2011, at 5:44 AM, Thomas Bennett wrote:
> >
> >> Hi,
> >>
> >> I'm quiet keen to use fmprod to download data - https://cwiki.apache.org/OODT/getting-products-from-a-remote-filemanager.html,
> >>
> >> I've followed the instructions that Chris suggested in a post from earlier this year to get the fmprod up and running- http://mail-archives.apache.org/mod_mbox/oodt-dev/201104.mbox/%3C22E9CC53-2111-4DDC-AD60-0B3C1EEE807D@jpl.nasa.gov%3E
> >> [...snip...]
> >
> >> 5. fire up Tomcat
> >>
> >> Here is the command I ran to get a product:
> >> wget http://localhost:8080/fmprod?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
> >
> > I think you want to try:
> >
> >> wget http://localhost:8080/fmprod/data?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
> >
> > Here to indicate the data delivery servlet. See if that takes care of it...
> >
> > Thanks!
> >
> > Cheers,
> > Chris
> >
> >
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > Chris Mattmann, Ph.D.
> > Senior Computer Scientist
> > NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
> > Office: 171-266B, Mailstop: 171-246
> > Email: chris.a.mattmann@nasa.gov
> > WWW:   http://sunset.usc.edu/~mattmann/
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > Adjunct Assistant Professor, Computer Science Department
> > University of Southern California, Los Angeles, CA 90089 USA
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
> 
> 
> 
> 
> ---------------------------------------------------------------------
> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,
> is for the sole use of the intended recipient(s) and may contain confidential
> or legally privileged information. Any unauthorized review, use, disclosure
> or distribution is prohibited. If you are not the intended recipient, please
> contact the sender by reply e-mail and destroy all copies of this original message.
> 
> ---------------------------------------------------------------------
> 
> 


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattmann@nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Re: Using fmprod

Posted by Thomas Bennett <lm...@gmail.com>.
Hi Chris and Ricky,

Happy new year and hope you guys also having/had a great holiday.

Thanks for the info and updating the wiki. Awesome.

Tom

On 23 December 2011 06:59, Nguyen, Ricky <rn...@chla.usc.edu> wrote:

> Oops, I just updated the wiki to use the correct url for
> DataDeliveryServlet (/data) and DatasetDeliveryServlet (/dataset).
>
>
> On Dec 22, 2011, at 8:27 PM, Mattmann, Chris A (388J) wrote:
>
> > Hey Tom,
> >
> > Thanks for your email and Happy Holidays!
> >
> > Replies inline below:
> >
> > On Dec 22, 2011, at 5:44 AM, Thomas Bennett wrote:
> >
> >> Hi,
> >>
> >> I'm quiet keen to use fmprod to download data -
> https://cwiki.apache.org/OODT/getting-products-from-a-remote-filemanager.html
> ,
> >>
> >> I've followed the instructions that Chris suggested in a post from
> earlier this year to get the fmprod up and running-
> http://mail-archives.apache.org/mod_mbox/oodt-dev/201104.mbox/%3C22E9CC53-2111-4DDC-AD60-0B3C1EEE807D@jpl.nasa.gov%3E
> >> [...snip...]
> >
> >> 5. fire up Tomcat
> >>
> >> Here is the command I ran to get a product:
> >> wget
> http://localhost:8080/fmprod?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
> >
> > I think you want to try:
> >
> >> wget
> http://localhost:8080/fmprod/data?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
> >
> > Here to indicate the data delivery servlet. See if that takes care of
> it...
> >
> > Thanks!
> >
> > Cheers,
> > Chris
> >
> >
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > Chris Mattmann, Ph.D.
> > Senior Computer Scientist
> > NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
> > Office: 171-266B, Mailstop: 171-246
> > Email: chris.a.mattmann@nasa.gov
> > WWW:   http://sunset.usc.edu/~mattmann/
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > Adjunct Assistant Professor, Computer Science Department
> > University of Southern California, Los Angeles, CA 90089 USA
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
>
>
>
>
> ---------------------------------------------------------------------
> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,
> is for the sole use of the intended recipient(s) and may contain
> confidential
> or legally privileged information. Any unauthorized review, use, disclosure
> or distribution is prohibited. If you are not the intended recipient,
> please
> contact the sender by reply e-mail and destroy all copies of this original
> message.
>
> ---------------------------------------------------------------------
>
>

Re: Using fmprod

Posted by Thomas Bennett <lm...@gmail.com>.
Hi Chris and Ricky,

Happy new year and hope you guys also having/had a great holiday.

Thanks for the info and updating the wiki. Awesome.

Tom

On 23 December 2011 06:59, Nguyen, Ricky <rn...@chla.usc.edu> wrote:

> Oops, I just updated the wiki to use the correct url for
> DataDeliveryServlet (/data) and DatasetDeliveryServlet (/dataset).
>
>
> On Dec 22, 2011, at 8:27 PM, Mattmann, Chris A (388J) wrote:
>
> > Hey Tom,
> >
> > Thanks for your email and Happy Holidays!
> >
> > Replies inline below:
> >
> > On Dec 22, 2011, at 5:44 AM, Thomas Bennett wrote:
> >
> >> Hi,
> >>
> >> I'm quiet keen to use fmprod to download data -
> https://cwiki.apache.org/OODT/getting-products-from-a-remote-filemanager.html
> ,
> >>
> >> I've followed the instructions that Chris suggested in a post from
> earlier this year to get the fmprod up and running-
> http://mail-archives.apache.org/mod_mbox/oodt-dev/201104.mbox/%3C22E9CC53-2111-4DDC-AD60-0B3C1EEE807D@jpl.nasa.gov%3E
> >> [...snip...]
> >
> >> 5. fire up Tomcat
> >>
> >> Here is the command I ran to get a product:
> >> wget
> http://localhost:8080/fmprod?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
> >
> > I think you want to try:
> >
> >> wget
> http://localhost:8080/fmprod/data?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
> >
> > Here to indicate the data delivery servlet. See if that takes care of
> it...
> >
> > Thanks!
> >
> > Cheers,
> > Chris
> >
> >
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > Chris Mattmann, Ph.D.
> > Senior Computer Scientist
> > NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
> > Office: 171-266B, Mailstop: 171-246
> > Email: chris.a.mattmann@nasa.gov
> > WWW:   http://sunset.usc.edu/~mattmann/
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > Adjunct Assistant Professor, Computer Science Department
> > University of Southern California, Los Angeles, CA 90089 USA
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
>
>
>
>
> ---------------------------------------------------------------------
> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,
> is for the sole use of the intended recipient(s) and may contain
> confidential
> or legally privileged information. Any unauthorized review, use, disclosure
> or distribution is prohibited. If you are not the intended recipient,
> please
> contact the sender by reply e-mail and destroy all copies of this original
> message.
>
> ---------------------------------------------------------------------
>
>

Re: Using fmprod

Posted by "Nguyen, Ricky" <rn...@chla.usc.edu>.
Oops, I just updated the wiki to use the correct url for DataDeliveryServlet (/data) and DatasetDeliveryServlet (/dataset).


On Dec 22, 2011, at 8:27 PM, Mattmann, Chris A (388J) wrote:

> Hey Tom,
> 
> Thanks for your email and Happy Holidays!
> 
> Replies inline below:
> 
> On Dec 22, 2011, at 5:44 AM, Thomas Bennett wrote:
> 
>> Hi,
>> 
>> I'm quiet keen to use fmprod to download data - https://cwiki.apache.org/OODT/getting-products-from-a-remote-filemanager.html, 
>> 
>> I've followed the instructions that Chris suggested in a post from earlier this year to get the fmprod up and running- http://mail-archives.apache.org/mod_mbox/oodt-dev/201104.mbox/%3C22E9CC53-2111-4DDC-AD60-0B3C1EEE807D@jpl.nasa.gov%3E
>> [...snip...]
> 
>> 5. fire up Tomcat
>> 
>> Here is the command I ran to get a product:
>> wget http://localhost:8080/fmprod?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
> 
> I think you want to try:
> 
>> wget http://localhost:8080/fmprod/data?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
> 
> Here to indicate the data delivery servlet. See if that takes care of it...
> 
> Thanks!
> 
> Cheers,
> Chris
> 
> 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Chris Mattmann, Ph.D.
> Senior Computer Scientist
> NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
> Office: 171-266B, Mailstop: 171-246
> Email: chris.a.mattmann@nasa.gov
> WWW:   http://sunset.usc.edu/~mattmann/
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Adjunct Assistant Professor, Computer Science Department
> University of Southern California, Los Angeles, CA 90089 USA
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 




---------------------------------------------------------------------
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, 
is for the sole use of the intended recipient(s) and may contain confidential
or legally privileged information. Any unauthorized review, use, disclosure
or distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of this original message.  

---------------------------------------------------------------------


Re: Using fmprod

Posted by "Nguyen, Ricky" <rn...@chla.usc.edu>.
Oops, I just updated the wiki to use the correct url for DataDeliveryServlet (/data) and DatasetDeliveryServlet (/dataset).


On Dec 22, 2011, at 8:27 PM, Mattmann, Chris A (388J) wrote:

> Hey Tom,
> 
> Thanks for your email and Happy Holidays!
> 
> Replies inline below:
> 
> On Dec 22, 2011, at 5:44 AM, Thomas Bennett wrote:
> 
>> Hi,
>> 
>> I'm quiet keen to use fmprod to download data - https://cwiki.apache.org/OODT/getting-products-from-a-remote-filemanager.html, 
>> 
>> I've followed the instructions that Chris suggested in a post from earlier this year to get the fmprod up and running- http://mail-archives.apache.org/mod_mbox/oodt-dev/201104.mbox/%3C22E9CC53-2111-4DDC-AD60-0B3C1EEE807D@jpl.nasa.gov%3E
>> [...snip...]
> 
>> 5. fire up Tomcat
>> 
>> Here is the command I ran to get a product:
>> wget http://localhost:8080/fmprod?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
> 
> I think you want to try:
> 
>> wget http://localhost:8080/fmprod/data?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
> 
> Here to indicate the data delivery servlet. See if that takes care of it...
> 
> Thanks!
> 
> Cheers,
> Chris
> 
> 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Chris Mattmann, Ph.D.
> Senior Computer Scientist
> NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
> Office: 171-266B, Mailstop: 171-246
> Email: chris.a.mattmann@nasa.gov
> WWW:   http://sunset.usc.edu/~mattmann/
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Adjunct Assistant Professor, Computer Science Department
> University of Southern California, Los Angeles, CA 90089 USA
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 




---------------------------------------------------------------------
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, 
is for the sole use of the intended recipient(s) and may contain confidential
or legally privileged information. Any unauthorized review, use, disclosure
or distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of this original message.  

---------------------------------------------------------------------


Re: Using fmprod

Posted by "Mattmann, Chris A (388J)" <ch...@jpl.nasa.gov>.
Hey Tom,

Thanks for your email and Happy Holidays!

Replies inline below:

On Dec 22, 2011, at 5:44 AM, Thomas Bennett wrote:

> Hi,
> 
> I'm quiet keen to use fmprod to download data - https://cwiki.apache.org/OODT/getting-products-from-a-remote-filemanager.html, 
> 
> I've followed the instructions that Chris suggested in a post from earlier this year to get the fmprod up and running- http://mail-archives.apache.org/mod_mbox/oodt-dev/201104.mbox/%3C22E9CC53-2111-4DDC-AD60-0B3C1EEE807D@jpl.nasa.gov%3E
> [...snip...]

> 5. fire up Tomcat
> 
> Here is the command I ran to get a product:
> wget http://localhost:8080/fmprod?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f

I think you want to try:

> wget http://localhost:8080/fmprod/data?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f

Here to indicate the data delivery servlet. See if that takes care of it...

Thanks!

Cheers,
Chris


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattmann@nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Re: Using fmprod

Posted by Thomas Bennett <lm...@gmail.com>.
s/quiet/quite :)

On 22 December 2011 14:44, Thomas Bennett <lm...@gmail.com> wrote:

> Hi,
>
> I'm quiet keen to use fmprod to download data -
> https://cwiki.apache.org/OODT/getting-products-from-a-remote-filemanager.html
> ,
>
> I've followed the instructions that Chris suggested in a post from earlier
> this year to get the fmprod up and running-
> http://mail-archives.apache.org/mod_mbox/oodt-dev/201104.mbox/%3C22E9CC53-2111-4DDC-AD60-0B3C1EEE807D@jpl.nasa.gov%3E
>
>
> The steps I followed are:
>
>
> 1. cp fmprod/src/main/resources/cas-product-tomcat-5-5-9.xml /usr/local/oodt/webapp/fmprod/fmprod.xml
>
> I also copied the rdconf.xml and rssconf.xml files to the same dir.
>
> 2. edit fmprod.xml and change path to WAR file and configuration properties
>
> <Context path="/fmprod" docBase="/usr/local/oodt/webapp/fmprod/cas-product-0.4-SNAPSHOT.war" debug="5"
>   reloadable="true" crossContext="true">
>
>   <Valve className="org.apache.catalina.valves.AccessLogValve"
>     prefix="fmprod_access_log." suffix=".txt" pattern="common" />
>
>   <Parameter name="filemgr.url" value="http://localhost:9000" override="false" />
>   <Parameter name="filemgr.rdfconf.file" value="/usr/local/oodt/webapp/fmprod/rdfconf.xml" override="false"/>
>   <Parameter name="filemgr.rssconf.file" value="/usr/local/oodt/webapp/fmprod/rssconf.xml" override="false"/>
>   <Parameter name="filemgr.working.dir" value="/tmp" override="false" />
>
> </Context>
>
> 3. cp fmprod/target/cas-product-0.4-SNAPSHOT.war /usr/local/oodt/webapp/fmprod/
>
> 4. ln -s /usr/local/oodt/webapps/fmprod/fmprod.xml /usr/local/apache-tomcat-5.5.34/conf/Catalina/localhost/fmprod.xml
>
>
> 5. fire up Tomcat
>
>
> Here is the command I ran to get a product:
> wget
> http://localhost:8080/fmprod?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
>
> The response I got was:
> --2011-12-22 14:33:28--
> http://localhost:8080/fmprod?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
> Resolving localhost... ::1, 127.0.0.1
> Connecting to localhost|::1|:8080... connected.
> HTTP request sent, awaiting response... 302 Moved Temporarily
> Location:
> http://localhost:8080/fmprod/?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f[following]
> --2011-12-22 14:33:28--
> http://localhost:8080/fmprod/?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
> Connecting to localhost|::1|:8080... connected.
> HTTP request sent, awaiting response... 404 Not Found
> 2011-12-22 14:33:28 ERROR 404: Not Found.
>
> I've looked at the log files in /usr/local/apache-tomcat-5.5.34/logs/
> cas_filemgr0.log cas_filemgr0.log.lck cas_filemgr1.log cas_filemgr2.log
> cas_filemgr3.log cas_filemgr4.log catalina.2011-12-22.log catalina.out
> fmprod_access_log.2011-12-22.txt host-manager.2011-12-22.log
> localhost.2011-12-22.log manager.2011-12-22.log
>
> I've attached some of the more interesting logs.
>
> I'm not sure where to even start debugging, but I though I would check
> that I've not missed some critical configuration. Or if someone could point
> me in the right direction :-)
>
> Thanks for any help in advance,
> Tom
>
> PS: I'm running on Ubuntu Linux. I downloaded tomcat5.5.34. Using
> java-6-openjdk
>
>
>
>

Re: Using fmprod

Posted by Thomas Bennett <lm...@gmail.com>.
s/quiet/quite :)

On 22 December 2011 14:44, Thomas Bennett <lm...@gmail.com> wrote:

> Hi,
>
> I'm quiet keen to use fmprod to download data -
> https://cwiki.apache.org/OODT/getting-products-from-a-remote-filemanager.html
> ,
>
> I've followed the instructions that Chris suggested in a post from earlier
> this year to get the fmprod up and running-
> http://mail-archives.apache.org/mod_mbox/oodt-dev/201104.mbox/%3C22E9CC53-2111-4DDC-AD60-0B3C1EEE807D@jpl.nasa.gov%3E
>
>
> The steps I followed are:
>
>
> 1. cp fmprod/src/main/resources/cas-product-tomcat-5-5-9.xml /usr/local/oodt/webapp/fmprod/fmprod.xml
>
> I also copied the rdconf.xml and rssconf.xml files to the same dir.
>
> 2. edit fmprod.xml and change path to WAR file and configuration properties
>
> <Context path="/fmprod" docBase="/usr/local/oodt/webapp/fmprod/cas-product-0.4-SNAPSHOT.war" debug="5"
>   reloadable="true" crossContext="true">
>
>   <Valve className="org.apache.catalina.valves.AccessLogValve"
>     prefix="fmprod_access_log." suffix=".txt" pattern="common" />
>
>   <Parameter name="filemgr.url" value="http://localhost:9000" override="false" />
>   <Parameter name="filemgr.rdfconf.file" value="/usr/local/oodt/webapp/fmprod/rdfconf.xml" override="false"/>
>   <Parameter name="filemgr.rssconf.file" value="/usr/local/oodt/webapp/fmprod/rssconf.xml" override="false"/>
>   <Parameter name="filemgr.working.dir" value="/tmp" override="false" />
>
> </Context>
>
> 3. cp fmprod/target/cas-product-0.4-SNAPSHOT.war /usr/local/oodt/webapp/fmprod/
>
> 4. ln -s /usr/local/oodt/webapps/fmprod/fmprod.xml /usr/local/apache-tomcat-5.5.34/conf/Catalina/localhost/fmprod.xml
>
>
> 5. fire up Tomcat
>
>
> Here is the command I ran to get a product:
> wget
> http://localhost:8080/fmprod?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
>
> The response I got was:
> --2011-12-22 14:33:28--
> http://localhost:8080/fmprod?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
> Resolving localhost... ::1, 127.0.0.1
> Connecting to localhost|::1|:8080... connected.
> HTTP request sent, awaiting response... 302 Moved Temporarily
> Location:
> http://localhost:8080/fmprod/?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f[following]
> --2011-12-22 14:33:28--
> http://localhost:8080/fmprod/?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f
> Connecting to localhost|::1|:8080... connected.
> HTTP request sent, awaiting response... 404 Not Found
> 2011-12-22 14:33:28 ERROR 404: Not Found.
>
> I've looked at the log files in /usr/local/apache-tomcat-5.5.34/logs/
> cas_filemgr0.log cas_filemgr0.log.lck cas_filemgr1.log cas_filemgr2.log
> cas_filemgr3.log cas_filemgr4.log catalina.2011-12-22.log catalina.out
> fmprod_access_log.2011-12-22.txt host-manager.2011-12-22.log
> localhost.2011-12-22.log manager.2011-12-22.log
>
> I've attached some of the more interesting logs.
>
> I'm not sure where to even start debugging, but I though I would check
> that I've not missed some critical configuration. Or if someone could point
> me in the right direction :-)
>
> Thanks for any help in advance,
> Tom
>
> PS: I'm running on Ubuntu Linux. I downloaded tomcat5.5.34. Using
> java-6-openjdk
>
>
>
>

Re: Using fmprod

Posted by "Mattmann, Chris A (388J)" <ch...@jpl.nasa.gov>.
Hey Tom,

Thanks for your email and Happy Holidays!

Replies inline below:

On Dec 22, 2011, at 5:44 AM, Thomas Bennett wrote:

> Hi,
> 
> I'm quiet keen to use fmprod to download data - https://cwiki.apache.org/OODT/getting-products-from-a-remote-filemanager.html, 
> 
> I've followed the instructions that Chris suggested in a post from earlier this year to get the fmprod up and running- http://mail-archives.apache.org/mod_mbox/oodt-dev/201104.mbox/%3C22E9CC53-2111-4DDC-AD60-0B3C1EEE807D@jpl.nasa.gov%3E
> [...snip...]

> 5. fire up Tomcat
> 
> Here is the command I ran to get a product:
> wget http://localhost:8080/fmprod?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f

I think you want to try:

> wget http://localhost:8080/fmprod/data?productID=17be0f0b-16a2-11e1-8a8f-772c84efd90f

Here to indicate the data delivery servlet. See if that takes care of it...

Thanks!

Cheers,
Chris


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattmann@nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++