At 06:42 01/31/01, Jain, Deepak wrote:
>Thanks for the reply. I tried it but could not get it working. I got the
>same error and the datasources.properties file was created again.
>
>I connect to the internet via a proxy on my LAN. Do I have to maintain the
>proxy settings somewhere?

Ok, this might be a problem. Jetspeed isn't using a proxy right now. I 
posted a (dirty) fix to make it work some weeks ago, but wanted to commit a 
clean implementation only. I think it'll take a few more days as I'm busy 
with other things right now.
I'll repost the dirty pacht below, just to give you the possibility of 
checking whether this is really your problem or not.

ingo.

(dirty) Proxy Patch
===================================================================

Define in JR.p:

services.URLManager.HTTPProxy.host=proxy.boeblingen.de.ibm.com
services.URLManager.HTTPProxy.port=80

Change class org apache.jetspeed.services.urlmanager.URLFetcher:

@@ -159,8 +159,26 @@
              addRealtimeURL( url );
          }
          try {
-            URL content = new URL( url );
+            URL content;
+
+            String proxyName = 
TurbineResources.getString("services.URLManager.HTTPProxy.host", null);
+            if (proxyName != null)
+            {
+                int proxyPort = Integer.parseInt( 
TurbineResources.getString("services.URLManager.HTTPProxy.port", "-1") );
+                content = new URL("http", proxyName, proxyPort, url);
+            }
+            else
+            {
+                content = new URL( url );
+            }
+
              URLConnection conn = content.openConnection();
              return getReader( conn );

@@ -217,8 +235,25 @@

             //only update this if the URL on which it is based is newer
             //than the one on disk.
-           URL sock = new URL( url );
+           URL sock;
+
+           String proxyName = 
TurbineResources.getString("services.URLManager.HTTPProxy.host", null);
+           if (proxyName != null)
+           {
+               int proxyPort = Integer.parseInt( 
TurbineResources.getString("services.URLManager.HTTPProxy.port", "-1") );
+               sock = new URL("http", proxyName, proxyPort, url);
+           }
+           else
+           {
+               sock = new URL( url );
+           }

           DiskCacheEntry dce = null;
           if( DiskCacheUtils.isCached(url) ) {


>Regards,
>Deepak
>
>
>-----Original Message-----
>From: Santiago Gala [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 30, 2001 8:56 PM
>To: JetSpeed
>Subject: Re: External Resources with Jetspeed
>
>
>"Jain, Deepak" escribió:
> >
> > Hello,
> >
> > I am working with Jetspeed 1.3a1 working on tomcat 3.2.1/Apache 1.3.14 on
> > Windows 2000.
> >
> > I get the following error in the console window when the Jetspeed context
>is
> > loaded by Tomcat.
> >
> > Can anyone help with this?
> >
> > *********************************************
> > Error=The following URL couldn't be downloaded
> > http://www.apacheweek.com/issues/apacheweek-headlines.xml and took 0
>seconds
> > to download.
> > Error=The following URL couldn't be downloaded
> > http://www.mozilla.org/news.rdf and took 0 seconds to download.
> > Error=The following URL couldn't be downloaded
> > http://www.slashdot.org/slashdot.rdf and took 0 seconds to download.
> > Error=The following URL couldn't be downloaded
> > http://www.xmlhack.com/rsscat.php and took 0 seconds to download.
> > Error=The following URL couldn't be downloaded
> > http://xml.com/xml/xmlnews.rdf and took 0 seconds to download.
> > Error=FeedDaemon:  Couldn't process URL:
> > http://java.apache.org/jetspeed/channels/apache.ocs
> > **********************************************
>
>The WEB-INF/conf/datasources.properties includes a list of the external
>URLs that gave an error trying to access them. If somehow valid URLs
>entered the list, you should stop, delete the file, restart. The
>BadURLManagerDaemon can be started from the Admin screen, but I think it
>does not work.
>
> >
> > Thanks and regards,
> > Deepak Jain
> >
>
>
>--
>--------------------------------------------------------------
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>Search: <http://www.mail-archive.com/jetspeed@list.working-dogs.com/>
>List Help?:          [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/jetspeed@list.working-dogs.com/>
List Help?:          [EMAIL PROTECTED]

Reply via email to