You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Nick Airey <ni...@ihavemoved.com> on 2002/02/01 19:27:42 UTC
problem dropping cocoon into Borland App Server
Hello everyone,
I am trying to deploy the cocoon.war (2.0.1) into the Borland Enterprise
App server 5.0.
The app server starts ok and the cocoon servlet loads ok. The sitemap
compiles correctly when I deploy the core jar files as well as the war
file.
However, when I try to hit a url, it doesn't display anything, and in
the access logs there is this interesting snippet included below.
It seems that simple.xsp is being resolved to
file:/C:/localhost/cocoon/sitemap.xmap/docs/samples/xsp/simple.xsp
Of course, the server is not installed at anything like c:/localhost, so
it can't find the file, and then of course, nothing else is going to
work.
I guess the required simple.xsp is still sitting in the war file, but
can't be found by cocoon.
Borland App server doesn't explode the war file (as tomcat does).
I would really appreciate any help on this, because I am reworking a
big, public high traffic web site. It would be nice publicity for
cocoon.
Kind regards,
Nick
DEBUG (2002-01-31) 16:47.32:491 [access] (/cocoon/xsp/simple)
HttpProcessor[8080][4]/AbstractEnvironment: Changing Cocoon
context(sitemap.xmap) to prefix()DEBUG (2002-01-31) 16:47.32:491
[access] (/cocoon/xsp/simple)
HttpProcessor[8080][4]/AbstractEnvironment: from
context(jndi:/localhost/cocoon/) and prefix()
DEBUG (2002-01-31) 16:47.32:491 [access] (/cocoon/xsp/simple)
HttpProcessor[8080][4]/AbstractEnvironment: at URI xsp/simple
DEBUG (2002-01-31) 16:47.32:491 [access] (/cocoon/xsp/simple)
HttpProcessor[8080][4]/AbstractEnvironment: New context is
file:/C:/localhost/cocoon/sitemap.xmap
DEBUG (2002-01-31) 16:47.32:531 [access] (/cocoon/xsp/simple)
HttpProcessor[8080][4]/AbstractEnvironment: Resolving
'docs/samples/xsp/simple.xsp' in context
'file:/C:/localhost/cocoon/sitemap.xmap'
DEBUG (2002-01-31) 16:47.32:531 [access] (/cocoon/xsp/simple)
HttpProcessor[8080][4]/AbstractEnvironment: Resolved to
'file:/C:/localhost/cocoon/sitemap.xmap/docs/samples/xsp/simple.xsp'
DEBUG (2002-01-31) 16:47.32:531 [access] (/cocoon/xsp/simple)
HttpProcessor[8080][4]/AbstractEnvironment: Resolving
'docs/samples/xsp/simple.xsp' in context
'file:/C:/localhost/cocoon/sitemap.xmap'
DEBUG (2002-01-31) 16:47.32:531 [access] (/cocoon/xsp/simple)
HttpProcessor[8080][4]/AbstractEnvironment: Resolved to
'file:/C:/localhost/cocoon/sitemap.xmap/docs/samples/xsp/simple.xsp'
DEBUG (2002-01-31) 16:47.32:561 [access] (/cocoon/xsp/simple)
HttpProcessor[8080][4]/AbstractEnvironment: Resolving
'docs/samples/xsp/simple.xsp' in context
'file:/C:/localhost/cocoon/sitemap.xmap'
DEBUG (2002-01-31) 16:47.32:561 [access] (/cocoon/xsp/simple)
HttpProcessor[8080][4]/AbstractEnvironment: Resolved to
'file:/C:/localhost/cocoon/sitemap.xmap/docs/samples/xsp/simple.xsp'
DEBUG (2002-01-31) 16:47.32:581 [access] (/cocoon/xsp/simple)
HttpProcessor[8080][4]/AbstractEnvironment: Set the URI Prefix (OLD=,
NEW=)
DEBUG (2002-01-31) 16:47.32:581 [access] (/cocoon/xsp/simple)
HttpProcessor[8080][4]/AbstractEnvironment: Reset context to
jndi:/localhost/cocoon/
WARN (2002-01-31) 16:47.32:581 [access] (/cocoon/xsp/simple)
HttpProcessor[8080][4]/CocoonServlet: The resource was not found
org.apache.cocoon.ResourceNotFoundException: Resource not found
file:/C:/localhost/cocoon/sitemap.xmap/docs/samples/xsp/simple.xsp
at
org.apache.cocoon.components.source.URLSource.getInputStream(URLSource.java:156)
at
org.apache.cocoon.components.source.URLSource.getInputSource(URLSource.java:223)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:318)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:282)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:196)
... etc.
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: problem dropping cocoon into Borland App Server
Posted by Vadim Gritsenko <va...@verizon.net>.
Seems like there are issues resolving included stylesheets. Try simple
xsp example (attached).
PS The log files you sent to me - were you running app server with
cocoon unpacked under C:/localhost?
Vadim
> -----Original Message-----
> From: Nick Airey [mailto:nick.airey@ihavemoved.com]
> Sent: Tuesday, February 05, 2002 9:44 AM
> To: Vadim Gritsenko
> Cc: cocoon-users@xml.apache.org
> Subject: RE: problem dropping cocoon into Borland App Server
>
> Hello Vadim,
>
> I have rerun the test with your patch, and the logfiles are attached.
>
> 1) start partition (loads cocoon servlet)
> 2) hit url /cocoon/xsp/simple
> 3) hit url /cocoon/welcome
> 4) hit url /cocoon/hello.html
>
> 1,3,4 seem to work. 2 does not.
>
> Infact, as far as I can see, all the xsp based requests fail, but
> everything else works fine, (including compiling the sitemap, of
> course.)
>
> Kind regards,
> Nick
>
> On Fri, 2002-02-01 at 18:42, Vadim Gritsenko wrote:
> > Could you try with attached class - and send relevant log snippet?
> >
> > Thanks,
> > Vadim
> >
> > > -----Original Message-----
> > > From: Nick Airey [mailto:nick.airey@ihavemoved.com]
> > > Sent: Friday, February 01, 2002 1:28 PM
> > > To: cocoon-users@xml.apache.org
> > > Subject: problem dropping cocoon into Borland App Server
> > >
> > >
> > > Hello everyone,
> > >
> > > I am trying to deploy the cocoon.war (2.0.1) into the Borland
> > Enterprise
> > > App server 5.0.
> > >
> > > The app server starts ok and the cocoon servlet loads ok. The
sitemap
> > > compiles correctly when I deploy the core jar files as well as the
war
> > > file.
> > >
> > > However, when I try to hit a url, it doesn't display anything, and
in
> > > the access logs there is this interesting snippet included below.
> > >
> > > It seems that simple.xsp is being resolved to
> > > file:/C:/localhost/cocoon/sitemap.xmap/docs/samples/xsp/simple.xsp
> > >
> > > Of course, the server is not installed at anything like
c:/localhost,
> > so
> > > it can't find the file, and then of course, nothing else is going
to
> > > work.
> > >
> > > I guess the required simple.xsp is still sitting in the war file,
but
> > > can't be found by cocoon.
> > >
> > > Borland App server doesn't explode the war file (as tomcat does).
> > >
> > >
> > >
> > > I would really appreciate any help on this, because I am reworking
a
> > > big, public high traffic web site. It would be nice publicity for
> > > cocoon.
> > >
> > > Kind regards,
> > > Nick
> >
> > <snip/>
> >
RE: problem dropping cocoon into Borland App Server
Posted by Nick Airey <ni...@ihavemoved.com>.
Hello Vadim,
I have rerun the test with your patch, and the logfiles are attached.
1) start partition (loads cocoon servlet)
2) hit url /cocoon/xsp/simple
3) hit url /cocoon/welcome
4) hit url /cocoon/hello.html
1,3,4 seem to work. 2 does not.
Infact, as far as I can see, all the xsp based requests fail, but
everything else works fine, (including compiling the sitemap, of
course.)
Kind regards,
Nick
On Fri, 2002-02-01 at 18:42, Vadim Gritsenko wrote:
> Could you try with attached class - and send relevant log snippet?
>
> Thanks,
> Vadim
>
> > -----Original Message-----
> > From: Nick Airey [mailto:nick.airey@ihavemoved.com]
> > Sent: Friday, February 01, 2002 1:28 PM
> > To: cocoon-users@xml.apache.org
> > Subject: problem dropping cocoon into Borland App Server
> >
> >
> > Hello everyone,
> >
> > I am trying to deploy the cocoon.war (2.0.1) into the Borland
> Enterprise
> > App server 5.0.
> >
> > The app server starts ok and the cocoon servlet loads ok. The sitemap
> > compiles correctly when I deploy the core jar files as well as the war
> > file.
> >
> > However, when I try to hit a url, it doesn't display anything, and in
> > the access logs there is this interesting snippet included below.
> >
> > It seems that simple.xsp is being resolved to
> > file:/C:/localhost/cocoon/sitemap.xmap/docs/samples/xsp/simple.xsp
> >
> > Of course, the server is not installed at anything like c:/localhost,
> so
> > it can't find the file, and then of course, nothing else is going to
> > work.
> >
> > I guess the required simple.xsp is still sitting in the war file, but
> > can't be found by cocoon.
> >
> > Borland App server doesn't explode the war file (as tomcat does).
> >
> >
> >
> > I would really appreciate any help on this, because I am reworking a
> > big, public high traffic web site. It would be nice publicity for
> > cocoon.
> >
> > Kind regards,
> > Nick
>
> <snip/>
>
RE: problem dropping cocoon into Borland App Server
Posted by Vadim Gritsenko <va...@verizon.net>.
Could you try with attached class - and send relevant log snippet?
Thanks,
Vadim
> -----Original Message-----
> From: Nick Airey [mailto:nick.airey@ihavemoved.com]
> Sent: Friday, February 01, 2002 1:28 PM
> To: cocoon-users@xml.apache.org
> Subject: problem dropping cocoon into Borland App Server
>
>
> Hello everyone,
>
> I am trying to deploy the cocoon.war (2.0.1) into the Borland
Enterprise
> App server 5.0.
>
> The app server starts ok and the cocoon servlet loads ok. The sitemap
> compiles correctly when I deploy the core jar files as well as the war
> file.
>
> However, when I try to hit a url, it doesn't display anything, and in
> the access logs there is this interesting snippet included below.
>
> It seems that simple.xsp is being resolved to
> file:/C:/localhost/cocoon/sitemap.xmap/docs/samples/xsp/simple.xsp
>
> Of course, the server is not installed at anything like c:/localhost,
so
> it can't find the file, and then of course, nothing else is going to
> work.
>
> I guess the required simple.xsp is still sitting in the war file, but
> can't be found by cocoon.
>
> Borland App server doesn't explode the war file (as tomcat does).
>
>
>
> I would really appreciate any help on this, because I am reworking a
> big, public high traffic web site. It would be nice publicity for
> cocoon.
>
> Kind regards,
> Nick
<snip/>