You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Angeshwar Deepak <an...@yahoo.com> on 2004/08/25 16:47:40 UTC

BROKEN: Connection timed out: connect

Hi,

Everything works fine in my forrest build.
But sometimes I get the error

......
......
     [java] X [0]                       index.html    
 BROKEN: Connection timed out: connect
     [java] * [0]   0.171s 766b    favicon.ico
     [java] Total time: 0 minutes 30 seconds

BUILD FAILED
......
......

I had encountered such a similar problem of Connection
timed out when I was using a xalan parser to parse xml
file thro a xsl file. The reason I found out in a
forum was that 

1)I did not have an internet connection(but I did have
a connection)
2)The xsl was not able to refer to the DTD file in
w3c.org. The solution I used there was to have a copy
of the DTD files in my local machine and everything
went fine thereafter.

Is the problem I am facing a similar one? Has anyone
faced such  a similar problem? But the fun is, it
happens 'sometimes' 1/10 times my buid fails because
of the Connection timed out problem.

Can any one kindly suggest me the solution.

bye,
with regards,
Deepak.



	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

Re: BROKEN: Connection timed out: connect

Posted by David Crossley <cr...@apache.org>.
Dave Brondsema wrote:
> Angeshwar Deepak wrote:
> > Hi,
> > 
> > Everything works fine in my forrest build.
> > But sometimes I get the error
> > 
> > ......
> > ......
> >      [java] X [0]                       index.html    
> >  BROKEN: Connection timed out: connect
> >      [java] * [0]   0.171s 766b    favicon.ico
> >      [java] Total time: 0 minutes 30 seconds
> > 
> > BUILD FAILED
> > ......
> > ......
> > 
> > I had encountered such a similar problem of Connection
> > timed out when I was using a xalan parser to parse xml
> > file thro a xsl file. The reason I found out in a
> > forum was that 
> > 
> > 1)I did not have an internet connection(but I did have
> > a connection)
> > 2)The xsl was not able to refer to the DTD file in
> > w3c.org. The solution I used there was to have a copy
> > of the DTD files in my local machine and everything
> > went fine thereafter.
> > 
> > Is the problem I am facing a similar one? Has anyone
> > faced such  a similar problem? But the fun is, it
> > happens 'sometimes' 1/10 times my buid fails because
> > of the Connection timed out problem.
> > 
> > Can any one kindly suggest me the solution.
>
> Did this just start happening in the past day or so?  I made some 
> changes to the forrest catalog recently.
> 
> I don't know why it's only 1/10 times, but it shouldn't go to the web to 
> fetch the DTD at all.  Which DTD is it exactly?  If it's one that 
> doesn't come with forrest make sure you set it up right 
> http://forrest.apache.org/docs/validation.html#Validating+new+XML+types

I reckon it would be Issue FOR-255
http://issues.cocoondev.org/jira/secure/ViewIssue.jspa?key=FOR-255
"catalog entity-resolver fails and gets skinconf DTD from website when
using document()".

-- 
David Crossley


Re: BROKEN: Connection timed out: connect

Posted by Angeshwar Deepak <an...@yahoo.com>.
Hi,

The DTD used by index.xml is 

<!DOCTYPE document PUBLIC "-//APACHE//DTD
Documentation V1.2//EN"
"http://apache.org/forrest/dtd/document-v12.dtd">

i.e. document-v12.dtd is already set in the
catalog.xcat in the schema folder that is copied to
the build/tmp when forrest starts. So why should I
again make a reference to it?

My other question-why should a reference be made to
the apache.org site, when we already have a copy of
the DTD in the local drive?

So is some other DTD being referred other than the one
in the 
..\apache-forrest-0.5.1-in\context\resources\schema\dtd
folder?

bye,
with regards,
Deepak.

--- David Crossley <cr...@apache.org> wrote:

> Dave Brondsema wrote:
> > Angeshwar Deepak wrote:
> > > 
> > > I had encountered such a similar problem of
> Connection
> > > timed out when I was using a xalan parser to
> parse xml
> > > file thro a xsl file. The reason I found out in
> a
> > > forum was that 
> > > 
> > > 1)I did not have an internet connection(but I
> did have
> > > a connection)
> > > 2)The xsl was not able to refer to the DTD file
> in
> > > w3c.org. The solution I used there was to have a
> copy
> > > of the DTD files in my local machine and
> everything
> > > went fine thereafter.
> > > 
> > > Is the problem I am facing a similar one? Has
> anyone
> > > faced such  a similar problem? But the fun is,
> it
> > > happens 'sometimes' 1/10 times my buid fails
> because
> > > of the Connection timed out problem.
> > > 
> > > Can any one kindly suggest me the solution.
> 
> Normally the Catalog Entity Resolver in Forrest
> would be
> used to get local copies of the DTDs. Because of
> issue FOR-255
> it is trying to go to the Apache website.
> 
> > Did this just start happening in the past day or
> so?  I made some 
> > changes to the forrest catalog recently.
> 
> No. Everything is okay (and thanks for doing that).
> Using 'ngrep dtd' there is only the traffic to get
> the
> skinconf.dtd
> 
> -- 
> David Crossley
> 
> 



	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

Re: BROKEN: Connection timed out: connect

Posted by David Crossley <cr...@apache.org>.
Dave Brondsema wrote:
> Angeshwar Deepak wrote:
> > 
> > I had encountered such a similar problem of Connection
> > timed out when I was using a xalan parser to parse xml
> > file thro a xsl file. The reason I found out in a
> > forum was that 
> > 
> > 1)I did not have an internet connection(but I did have
> > a connection)
> > 2)The xsl was not able to refer to the DTD file in
> > w3c.org. The solution I used there was to have a copy
> > of the DTD files in my local machine and everything
> > went fine thereafter.
> > 
> > Is the problem I am facing a similar one? Has anyone
> > faced such  a similar problem? But the fun is, it
> > happens 'sometimes' 1/10 times my buid fails because
> > of the Connection timed out problem.
> > 
> > Can any one kindly suggest me the solution.

Normally the Catalog Entity Resolver in Forrest would be
used to get local copies of the DTDs. Because of issue FOR-255
it is trying to go to the Apache website.

> Did this just start happening in the past day or so?  I made some 
> changes to the forrest catalog recently.

No. Everything is okay (and thanks for doing that).
Using 'ngrep dtd' there is only the traffic to get the
skinconf.dtd

-- 
David Crossley


Re: BROKEN: Connection timed out: connect

Posted by Angeshwar Deepak <an...@yahoo.com>.
Hi,

I solved the problem, but I am not sure if my approch
is right. Instead of using a index.xml file, I used a
index.ehtml or index.ihtml file. So there is no
checking of dtd. The file is well formed since I use
tidy.jar to make a index.html well formed and then
rename it as .ehtml or .ihtml then send it to forrest.
Forrest again converts it to index.html.

So finally I get what I want. But is this approch
right? 

bye,
with regards,
Deepak.

--- David Crossley <cr...@apache.org> wrote:

> Angeshwar Deepak wrote:
> > > What makes you think that it has anything to do
> with
> > > the DTD?
> > 
> > I had faced the same problem when using a xalan
> parser
> > and i solved it by having a local copy of dtd.
> 
> Let us not leap to the conclusion that this is the
> same issue.
> 
> > > Use 'ngrep' ...  ngrep.sf.net to see why your
> build
> > > is going onto the network.
> > 
> > Iam yet to try it. Will mail back 1ce its done.
> >
> > > Perhaps there is something wrong with your
> index.xml
> > > file.
> > 
> > the same file works fine sometimes but fails
> otherwise
> >
> > > Do these same issues happen when you build a
> fresh
> > > seed site?
> > > ... i.e. do 'build test'.
> > 
> > In my project I dont do a seed at all, I manually
> > create the src/documentation folder. copy the
> > index.xml, tabs.xml, skincof.xml from a common
> > (setup)folder. and manually generate a site.xml
> from
> > the ant build(because I know the content of
> site.xml
> > only at runtime). 
> 
> Sorry, i was not clear.
> 
> Please run 'build test' and see if you get the same
> problem there.
> 
> -- 
> David Crossley
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

Re: BROKEN: Connection timed out: connect

Posted by David Crossley <cr...@apache.org>.
Angeshwar Deepak wrote:
> > What makes you think that it has anything to do with
> > the DTD?
> 
> I had faced the same problem when using a xalan parser
> and i solved it by having a local copy of dtd.

Let us not leap to the conclusion that this is the same issue.

> > Use 'ngrep' ...  ngrep.sf.net to see why your build
> > is going onto the network.
> 
> Iam yet to try it. Will mail back 1ce its done.
>
> > Perhaps there is something wrong with your index.xml
> > file.
> 
> the same file works fine sometimes but fails otherwise
>
> > Do these same issues happen when you build a fresh
> > seed site?
> > ... i.e. do 'build test'.
> 
> In my project I dont do a seed at all, I manually
> create the src/documentation folder. copy the
> index.xml, tabs.xml, skincof.xml from a common
> (setup)folder. and manually generate a site.xml from
> the ant build(because I know the content of site.xml
> only at runtime). 

Sorry, i was not clear.

Please run 'build test' and see if you get the same
problem there.

-- 
David Crossley


Re: BROKEN: Connection timed out: connect

Posted by Angeshwar Deepak <an...@yahoo.com>.
> What makes you think that it has anything to do with
> the DTD?

I had faced the same problem when using a xalan parser
and i solved it by having a local copy of dtd.

> 
> Use 'ngrep' ...  ngrep.sf.net to see why your build
> is going onto the network.

Iam yet to try it. Will mail back 1ce its done.

> 
> Perhaps there is something wrong with your index.xml
> file.

the same file works fine sometimes but fails otherwise

> 
> Do these same issues happen when you build a fresh
> seed site?
> ... i.e. do 'build test'.

In my project I dont do a seed at all, I manually
create the src/documentation folder. copy the
index.xml, tabs.xml, skincof.xml from a common
(setup)folder. and manually generate a site.xml from
the ant build(because I know the content of site.xml
only at runtime). 

with regards,
Deepak.


		
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

Re: BROKEN: Connection timed out: connect

Posted by David Crossley <cr...@apache.org>.
Angeshwar Deepak wrote:

> I was not clear the lat time. Its not 1/10 times but
> rather for a brief period of time the build fails.
> Then aagin it works fine.
> 
> The problem is with the index.xml file. The DTD it
> refers is
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE document PUBLIC "-//APACHE//DTD
> Documentation V1.2//EN"
> "http://apache.org/forrest/dtd/document-v12.dtd">
> 
> How can I solve the problem?

What makes you think that it has anything to do with
the DTD?

Use 'ngrep' ...  ngrep.sf.net to see why your build
is going onto the network.

Perhaps there is something wrong with your index.xml file.

Do these same issues happen when you build a fresh seed site?
... i.e. do 'build test'.

-- 
David Crossley


Re: BROKEN: Connection timed out: connect

Posted by Angeshwar Deepak <an...@yahoo.com>.
Hi,

I was not clear the lat time. Its not 1/10 times but
rather for a brief period of time the build fails.
Then aagin it works fine.

The problem is with the index.xml file. The DTD it
refers is

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//APACHE//DTD
Documentation V1.2//EN"
"http://apache.org/forrest/dtd/document-v12.dtd">

How can I solve the problem?

bye,
with regards,
Deepak.
--- Dave Brondsema <da...@brondsema.net> wrote:

> Angeshwar Deepak wrote:
> > Hi,
> > 
> > Everything works fine in my forrest build.
> > But sometimes I get the error
> > 
> > ......
> > ......
> >      [java] X [0]                       index.html
>    
> >  BROKEN: Connection timed out: connect
> >      [java] * [0]   0.171s 766b    favicon.ico
> >      [java] Total time: 0 minutes 30 seconds
> > 
> > BUILD FAILED
> > ......
> > ......
> > 
> > I had encountered such a similar problem of
> Connection
> > timed out when I was using a xalan parser to parse
> xml
> > file thro a xsl file. The reason I found out in a
> > forum was that 
> > 
> > 1)I did not have an internet connection(but I did
> have
> > a connection)
> > 2)The xsl was not able to refer to the DTD file in
> > w3c.org. The solution I used there was to have a
> copy
> > of the DTD files in my local machine and
> everything
> > went fine thereafter.
> > 
> > Is the problem I am facing a similar one? Has
> anyone
> > faced such  a similar problem? But the fun is, it
> > happens 'sometimes' 1/10 times my buid fails
> because
> > of the Connection timed out problem.
> > 
> > Can any one kindly suggest me the solution.
> > 
> > bye,
> > with regards,
> > Deepak.
> > 
> 
> Did this just start happening in the past day or so?
>  I made some 
> changes to the forrest catalog recently.
> 
> I don't know why it's only 1/10 times, but it
> shouldn't go to the web to 
> fetch the DTD at all.  Which DTD is it exactly?  If
> it's one that 
> doesn't come with forrest make sure you set it up
> right 
>
http://forrest.apache.org/docs/validation.html#Validating+new+XML+types
> 
> -- 
> Dave Brondsema : dave@brondsema.net
> http://www.splike.com : programming
> http://csx.calvin.edu : student org
> http://www.brondsema.net : personal
> 

> ATTACHMENT part 2 application/pgp-signature
name=signature.asc




		
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

Re: BROKEN: Connection timed out: connect

Posted by Dave Brondsema <da...@brondsema.net>.
Angeshwar Deepak wrote:
> Hi,
> 
> Everything works fine in my forrest build.
> But sometimes I get the error
> 
> ......
> ......
>      [java] X [0]                       index.html    
>  BROKEN: Connection timed out: connect
>      [java] * [0]   0.171s 766b    favicon.ico
>      [java] Total time: 0 minutes 30 seconds
> 
> BUILD FAILED
> ......
> ......
> 
> I had encountered such a similar problem of Connection
> timed out when I was using a xalan parser to parse xml
> file thro a xsl file. The reason I found out in a
> forum was that 
> 
> 1)I did not have an internet connection(but I did have
> a connection)
> 2)The xsl was not able to refer to the DTD file in
> w3c.org. The solution I used there was to have a copy
> of the DTD files in my local machine and everything
> went fine thereafter.
> 
> Is the problem I am facing a similar one? Has anyone
> faced such  a similar problem? But the fun is, it
> happens 'sometimes' 1/10 times my buid fails because
> of the Connection timed out problem.
> 
> Can any one kindly suggest me the solution.
> 
> bye,
> with regards,
> Deepak.
> 

Did this just start happening in the past day or so?  I made some 
changes to the forrest catalog recently.

I don't know why it's only 1/10 times, but it shouldn't go to the web to 
fetch the DTD at all.  Which DTD is it exactly?  If it's one that 
doesn't come with forrest make sure you set it up right 
http://forrest.apache.org/docs/validation.html#Validating+new+XML+types

-- 
Dave Brondsema : dave@brondsema.net
http://www.splike.com : programming
http://csx.calvin.edu : student org
http://www.brondsema.net : personal