R: Logicsheet chaining

2001-07-02 Thread Marco Spinetti

yes it is possible. I suppose you are using cocoon1.8.2.
With cocoon 1.8.2 I have done a similar trasformation:
1) a.xml->b.xsl->c.xsl->page.html
where:
a.xml:
..



..

b.xsl:
...

type="xslt"
href="c.xsl"
type="text/xsl"
.

c.xsl: trasforms the page xml in a html page.

With cocoon2 the things are much more easy.

Marco


- Original Message -
From: Matteo Colombo <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 9:08 AM
Subject: Logicsheet chaining


> Hi all,
> I've this question for you:
>
> XML A with   --> XSL A (transform XML
A
> in XML B adding
>  and the instructions that are in new
> logicsheet)-->XSL
> B (format the page: output type HTML).
> Does it work?
> Is it possible to do this?
> Better, my question is: Is it possible transform
> an XML file in another XML that use a new logicsheet (that wasn't in the
> original XML file)?
>
> Ciao Matteo
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: C2 - sitemap handler's sitemap not available

2001-07-02 Thread Ling Kok Choon

hi,

   Try to rename the tomcat3.2.2/lib/parser.jar and tomcat3.2.2/lib/xml.jar to 
tomcat3.2.2/lib/zparser.jar and tomcat3.2.2/lib/zxml.jar, if still got the internal 
servlet 
error, just delete both the tomcat3.2.2/lib/parser.jar and tomcat3.2.2/lib/xml.jar 
files.

>From Kok Choon.


Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 07/03/01
Time: 14:15:53

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Exception in Cocoon

2001-07-02 Thread Victor Serrato

I try to use Cocoon 2 in Tomcat 3.2, when I call
http://localhost:8080/cocoon/ I recive the next error
message:

//Begin Message
Cocoon 2 - Internal server error



type internal-server-error

message The sitemap handler's sitemap is not
available.

description org.apache.cocoon.ProcessingException: The
sitemap handler's sitemap is not available.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stacktrace

org.apache.cocoon.ProcessingException: The sitemap
handler's sitemap is not available.
at
org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
at
org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Thread.java:479)


exception

org.apache.cocoon.ProcessingException: The sitemap
handler's sitemap is not available.

request-uri

/cocoon/

path-info
//End Message

I am very interesting in use Cocoon, please could you
tell me the error's cause.

Victor Serrato
[EMAIL PROTECTED]


_
Do You Yahoo!?
Obtenga su dirección de correo-e gratis @yahoo.com
en http://correo.espanol.yahoo.com

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: C2 - sitemap handler's sitemap not available

2001-07-02 Thread Liam MacQuarrie Morley

After going through the logs, I've got a few ideas of what might be wrong,
but I'm not sure where to go from here. Hopefully some of these things
will seem familiar to you.

I get the following every time I start Tomcat:

2001-07-02 10:15:38 - ContextManager: Adding context Ctx( /examples )
2001-07-02 10:15:38 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages
2001-07-02 10:15:38 - ContextManager: Adding context Ctx(  )
2001-07-02 10:15:38 - ContextManager: Adding context Ctx( /test )
2001-07-02 10:15:38 - ContextManager: Adding context Ctx( /cocoon )
2001-07-02 10:16:08 - PoolTcpConnector: Starting HttpConnectionHandler on
8080
2001-07-02 10:16:08 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007

There is no tomcat.log file. It does not explicitly say there is an error,
but it would be nice to know where to look.

I've done everything I can to replace references to "JaxpParser" with
"XercesParser"; there is one place where the former shows up, and I can't
tell why. I've included the following relevant messages from the log.

DEBUG   720 [cocoon  ] (Thread-10): Using parser:
org.apache.cocoon.components.parser.XercesParser
DEBUG   830 [cocoon  ] (Thread-10): Attempting to get Handler for:
org.apache.cocoon.components.parser.Parser
...
DEBUG   880 [cocoon  ] (Thread-10): ComponentHandler initialized for:
org.apache.cocoon.components.parser.XercesParser
DEBUG   880 [cocoon  ] (Thread-10): ComponentFactory creating new
instance of org.apache.cocoon.components.parser.XercesParser.
DEBUG   1050[cocoon  ] (Thread-10): ComponentFactory decommissioning
instance of org.apache.cocoon.components.parser.XercesParser.
DEBUG   1050[cocoon  ] (Thread-10): added Role
org.apache.cocoon.components.parser.Parser with shorthand parser for
org.apache.cocoon.components.parser.JaxpParser
...
DEBUG   1100[cocoon  ] (Thread-10): ComponentFactory creating new
instance of org.apache.cocoon.components.parser.XercesParser.
DEBUG   1210[cocoon  ] (Thread-10): ComponentFactory decommissioning
instance of org.apache.cocoon.components.parser.XercesParser.

I'd like to know where the reference to JaxpParser is from.

The error message is a NullPointerException, so I thought I'd include all
references to null as well if that helps.

DEBUG   1050[cocoon  ] (Thread-10): added Role
org.apache.cocoon.Processor with shorthand processor for null
...
DEBUG   1100[cocoon  ] (Thread-10): added Role
org.apache.cocoon.components.saxconnector.SAXConnector with shorthand
sax-connector for
org.apache.cocoon.components.saxconnector.NullSAXConnector (this doesn't
sound like anything, but just in case)
DEBUG   1100[cocoon  ] (Thread-10): added Role
org.apache.cocoon.components.image.ImageEncoderSelector with shorthand
image-encoder for null
...
DEBUG   2030[cocoon  ] (Thread-10): looking up shorthand sitemap,
returning null
...
DEBUG   2420[cocoon  ] (Thread-24): looking up shorthand , returning
null
...
ERROR   12310   [cocoon  ] (Thread-24): Error compiling sitemap
java.lang.NullPointerException
at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:192)


I hope that will help. I'm including the entire log file as a reference
below:

DEBUG   0   [cocoon  ] (Thread-10): Trying to load class:
org.hsqldb.jdbcDriver
DEBUG   330 [cocoon  ] (Thread-10): Using configuration file:
/cocoon.xconf
INFO330 [cocoon  ] (Thread-10): Reloading from: file:C:\Program
Files\Apache Group\jakarta-tomcat-3.2.2\webapps\cocoon\cocoon.xconf
DEBUG   610 [cocoon  ] (Thread-10): New Cocoon object.
DEBUG   610 [cocoon  ] (Thread-10): Using parser:
org.apache.cocoon.components.parser.XercesParser
DEBUG   720 [cocoon  ] (Thread-10): Attempting to get Handler for:
org.apache.cocoon.components.parser.Parser
DEBUG   880 [cocoon  ] (Thread-10): Handler type =
org.apache.avalon.excalibur.component.DefaultComponentHandler
DEBUG   880 [cocoon  ] (Thread-10): Creating Repository with this
directory: C:\Program Files\Apache
Group\jakarta-tomcat-3.2.2\work\localhost_8080%2Fcocoon
DEBUG   880 [cocoon  ] (Thread-10): Classpath = C:\Program
Files\Apache
Group\jakarta-tomcat-3.2.2\webapps\cocoon\WEB-INF\classes;C:\Program
Files\Apache
Group\jakarta-tomcat-3.2.2\webapps\cocoon\WEB-INF\lib\avalon-excalibur-4.0b1.jar;C:\Program
Files\Apache
Group\jakarta-tomcat-3.2.2\webapps\cocoon\WEB-INF\lib\avalon-framework-4.0b1.jar;C:\Program
Files\Apache
Group\jakarta-tomcat-3.2.2\webapps\cocoon\WEB-INF\lib\batik-libs.jar;C:\Program
Files\Apache
Group\jakarta-tomcat-3.2.2\webapps\cocoon\WEB-INF\lib\bsf.jar;C:\Program
Files\Apache
Group\jakarta-tomcat-3.2.2\webapps\cocoon\WEB-INF\lib\cocoon-2.0b1.jar;C:\Program
Files\Apache
Group\jakarta-tomcat-3.2.2\webapps\cocoon\WEB-INF\lib\cocoon.jar;C:\Program
Files\Apache
Group\jakarta-tomcat-3.2.2\webapps\cocoon\WEB-INF\lib\dom2.jar;C:\Program
Files\Apache
Group\jakart

Re: ESQL HACKERS: help on esql, transactions, and nested queries

2001-07-02 Thread Frans Thamura

Why don't you try create a java beans. I think this is
a better solution than esql.

esql is a feature that cocoon is support database.

But I prefer that, make a 3-tier modeling.

Frans

--- Ramsés Morales <[EMAIL PROTECTED]> wrote:
> Hi.
> 
> I'm starting a transaction on the main esql
> connection (BEGIN
> TRANSACTION). On that same connection I'm doing a
> SELECT on a table
> (table X). Inside the row-results of that SELECT I'm
> doing a nested
> connection, on that nested connection I'm doing a
> DELETE query on "table
> X".
> 
> Will the "BEGIN TRANSACTION" on the main connection
> will stop my nested
> DELETE from working? Do I have to move BEGIN
> TRANSACTION to the nested
> connection? Do I have to do a BEGIN TRANSACTION on
> the main connection
> and on the nested connection?
> 
> Thanks for your help.
> 
> 
>
-
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: funny problem with sitemap & session validator

2001-07-02 Thread java guru

Thanks very mush..now i am clear on that one..

Thanks again for ur time

 --- Vadim Gritsenko <[EMAIL PROTECTED]> wrote: >
Sitemap have list of maps, every map have name -
> value pairs, values can be accessed
> from sitemap as {name}.
> Every , , and some other
> tags pushes extra map into list,
> and closing tags () pops this extra map.
> 
> if you use just {1}, or {2}, etc, it uses map which
> is on top of the list.
> if you need to access map which is underneath, you
> need to use "../".
> 
> Example:
> 
> 
>   
>   
>
> 
> 
> 
> 
>   
>   
>   
> 
>   
> 
> 
> Hope this helps.
> 
> Vadim
> 
> > -Original Message-
> > From: java guru [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 02, 2001 17:18
> > To: [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> > Subject: RE: funny problem with sitemap & session
> validator
> > 
> > 
> > Thanks for the reply..it worked..but can u please
> > explain why?..
> > 
> > Thanks for u time..
> > 
> >  --- Vadim Gritsenko <[EMAIL PROTECTED]> wrote: >
> > Looks like that instead of  > > src="docs/images/{1}.gif"
> mime-type="image/gif"/>
> > > you need to use  > > src="docs/images/{../1}.gif"
> mime-type="image/gif"/>
> > > 
> > > Note: {1} replaced with {../1}.
> > > 
> > > If it does not help, post your entire pipeline.
> > > 
> > > Vadim
> > > 
> > > > -Original Message-
> > > > From: java guru
> [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, July 02, 2001 16:37
> > > > To: [EMAIL PROTECTED]
> > > > Subject: funny problem with sitemap & session
> > > validator
> > > > 
> > > > 
> > > > Hi.,
> > > > 1. The following match pattern is used in
> examples
> > > to
> > > > read/generate the image/file requested as {1} 
> > > > 
> > > >
> > > >  > > > mime-type="image/gif"/>
> > > >
> > > > 
> > > > 
> > > > 2. Say for example, i need to serve the
> page/image
> > > > after i validate the user session. So I have
> > > included
> > > > the above match pattern inside the session
> > > validator
> > > > action.
> > > > 
> > > > 3. But i am having problem serving the
> page/image.
> > > > Cocoon2 is not able to get the name of
> page/image
> > > > requested by {1} anymore and its looking for
> > > something
> > > > like ".xsp" or ".gif" and failing to locate
> > > obviously.
> > > > 
> > > > Any input in this regard is highly
> appreciated..
> > > > 
> > > > 
> > > >   
> > > > 
> > > >
> > >
> >
>

> > > > Do You Yahoo!?
> > > > For regular News updates go to
> > > http://in.news.yahoo.com
> > > 
> > > 
> > >
> >
>
-
> > > Please check that your question has not already
> been
> > > answered in the
> > > FAQ before posting.
> > > 
> > > 
> > > To unsubscribe, e-mail:
> > > <[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <[EMAIL PROTECTED]>
> > >  
> > 
> >
>

> > Do You Yahoo!?
> > For regular News updates go to
> http://in.news.yahoo.com
> > 
> >
>
-
> > Please check that your question has not already
> been answered in the
> > FAQ before posting.
> 
> > 
> > To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <[EMAIL PROTECTED]>
> > 
> > 
> 
>
-
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <[EMAIL PROTECTED]>
>  


Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.com

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: Newbie Question: can't access some of Cocoon2's samples

2001-07-02 Thread Scott N. Smith

This has been a known bug with Weblogic 6.0 and Cocoon 2 only for several
weeks.

HTH,

Scott Smith

-Original Message-
From: Mercier Xavier [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 4:28 AM
To: '[EMAIL PROTECTED]'
Subject: Newbie Question: can't access some of Cocoon2's samples


Hi Cocooners,

How's the craic?

I'd been working so far with Cocoon1.8 but was very intrigued by Cocoon2 and
decided eventually to give it a chance.

Here is my environment:
OS = Windows NT 4
Java = JDK 1.3
Application Server: BEA WebLogic 6

I built Cocoon2, then followed the installation instructions to the letter
(http://xml.apache.org/cocoon2/install.html) and finally managed to access
the Welcome Page after starting WebLogic. So far so good.

Naturally, my first reaction is to try out the samples provided. Because I
was essentially interested in XSP, I click on the Simple XSP Example link.
No problemo. Actually, I can access everything related to Dynamic Content.

When I try the simplest example though, named "Multimedia Hello World HTML"
that transforms a simple XML page into an HTML page, I constantly obtain the
following error:


--
Error 404--Not Found
>From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: 
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is
given of whether the condition is temporary or permanent.
If the server does not wish to make this information available to the
client, the status code 403 (Forbidden) can be used instead. The 410 (Gone)
status code SHOULD be used if the server knows, through some internally
configurable mechanism, that an old resource is permanently unavailable and
has no forwarding address.

--
I tried to modify the sitemap.xmap file but with no success. I found nothing
in the FAQ related to that. I'm surprised to see that Cocoon2 seems to work
with more complicated examples. I'm baffled.
Has anybody else ever experienced the same problem? If so, how did you solve
it? Do you have suggestions?
Please help me, and I'll drink a glass of Jameson tonight in your honor!!
Thanks a bunch,
Xavier

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




HTML to XSL:FO stylesheet?

2001-07-02 Thread Wes Morgan

Slightly offtopic, but does anyone know of any existing effort to write 
an HTML to XSL:FO XSLT stylesheet? If not, I'd like to look into doing 
this. I am going to have to do this transformation for a project I'm 
working on (it involves transformming some XML files whose DTD is a 
superset of HTML, er XHTML I guess), and I would like to minimize 
duplication of effort if possible. Thanks.

-- 
Wes Morgan

[EMAIL PROTECTED]
[EMAIL PROTECTED]

Debian: apt-get into it.


-BEGIN PGP PUBLIC KEY BLOCK-
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

mQGiBDrckPYRBACX731+mhYmj3oFUCGclJFn3YfM3FCmuLoPxGCy5QtRzHZY4XtM
gQ54gSLkTNafhpLC0S+/BfYVpsumLrkif2AGTg0Dnuww0/xDSLKdWhFZUhcopRy5
xXBnz1PZQCJnCjDcSHl4RaVoywmKcZ3TfaDNnu1/RLtlr9tx5XNbWBnw3wCgntC+
lbCBz+LidCrRrEC2N/PlYpMD/0Icn7Uex7jRYcDx2R78cFKDpUGHMtx7VCzGyQbC
L3kz94mm1/aXt0ELqbq5k8qKPq80kXhJkx7jwSqn0V6XO9GAk85Dkk3GHm/iCli6
KhSzC4m485ZKvPKnEU3Nue9hgvC08YSjrfvXosEZsm5kwcniHphugbviW0C+AdmA
BWEoA/9qoxeIntesKq1MsUAXTgDCkT1BCBGn9YoxWhbiyz5iLPn4nTq2hwR1xqhQ
xztHYJkmSlBHeUIhAicPsk3U8gd9L5S3FEWrelm+1GRBhy1/HRBam33ypgg9U5i6
IDST1hqExj3WPG68pJsRl6TwKkrUGNIXi8/yl2ximBOYooFx7rQrV2VzIE1vcmdh
biAoQmFzc0hvbWJyZSkgPHdlc21Ac2xhY2tuZXQub3JnPohXBBMRAgAXBQI63JD2
BQsHCgMEAxUDAgMWAgECF4AACgkQVHVnnbHtaCXu9wCfQBJ5Vsep8waEZEP7cT5/
el7CIF4AoI3dZamvLWsMK7YPdatRNObsf6/guQENBDrckPoQBADZpcFo6MyA0rhP
q43mNdpfMJm4JnmD5kMnRSli/HDdLk2Epa3EY1wgMB6NovLr8fV/2cp/5KdXg8j/
V780qOZhpQpTL8AXvIw9yMAIwwpARpFl//VVK+3l1+IgzHRWiQC7SWhTsqIk4ppP
kRafwefx8r3KYFxljAmlV2zKNSiQrwADBQP+KDV3Lh/k3IHORiX1FV5fZALbJi+X
TTs+onMndtZyhIPpZ6Z6AMygdXa2WQy2U24tkvmMQdMuIOTCZiCuXsbnBw5FwwvL
tfSloF1R6xfvme8yATDZXJnPFUW5jFwwMto3Hnoh95MqJLfXTpu1FrBXVE4YVSJa
eA1FuaQJnnllGu+IRgQYEQIABgUCOtyQ+gAKCRBUdWedse1oJbQIAJ9uDRktfJHP
5veOAfncvrX99hnHKQCgmdySczcSbc9/YxTAJ+GfA1/OOtU=
=PCOv
-END PGP PUBLIC KEY BLOCK-





-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




ESQL HACKERS: help on esql, transactions, and nested queries

2001-07-02 Thread Ramsés Morales

Hi.

I'm starting a transaction on the main esql connection (BEGIN
TRANSACTION). On that same connection I'm doing a SELECT on a table
(table X). Inside the row-results of that SELECT I'm doing a nested
connection, on that nested connection I'm doing a DELETE query on "table
X".

Will the "BEGIN TRANSACTION" on the main connection will stop my nested
DELETE from working? Do I have to move BEGIN TRANSACTION to the nested
connection? Do I have to do a BEGIN TRANSACTION on the main connection
and on the nested connection?

Thanks for your help.


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: redirect to port 80

2001-07-02 Thread Luca Morandini

Pierre,

you should tell Apache to redirect to port 8080 when something related to a
Cocoon context is called in.

For instance, inerting the following line in mod_jk.conf redirect to port
8080 everything in the "cocoon" context:

JkMount /cocoon/* ajp12

Best regards,
 
-
   Luca Morandini
   GIS Consultant
    [EMAIL PROTECTED]
  +39 0744 59  85  1 Office
  +39 0335 681 02 12 Mobile
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Pierre-Henry Perret
> Sent: lunedì 2 luglio 2001 11.13
> To: [EMAIL PROTECTED]
> Subject: redirect to port 80
>
>
> Bonjour,
>
> I have installed cocoon and made it serving corretly xml pages, well
> it's nice!
>
> I would like to register my site as a cocoon user but i can't serve on
> other
> port than 8080 (e.g i must give an address as
> 'http://localhost:8080/cocoon..') - all other network stuff working
> correctly
> , i mean DNS - i don't have to do this with tomcat jserv because i can
> directly see a working servlet as in
> 'http://localhost/servlets/examples...'
>
> i guess no idea to manage this,
>
> Pierre-Henry Perret
> Cocoon user
> StDenis, France
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: funny problem with sitemap & session validator

2001-07-02 Thread Vadim Gritsenko

Sitemap have list of maps, every map have name - value pairs, values can be accessed
from sitemap as {name}.
Every , , and some other tags pushes extra map into list,
and closing tags () pops this extra map.

if you use just {1}, or {2}, etc, it uses map which is on top of the list.
if you need to access map which is underneath, you need to use "../".

Example:


  
  
   




  
  
  

  


Hope this helps.

Vadim

> -Original Message-
> From: java guru [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 17:18
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: funny problem with sitemap & session validator
> 
> 
> Thanks for the reply..it worked..but can u please
> explain why?..
> 
> Thanks for u time..
> 
>  --- Vadim Gritsenko <[EMAIL PROTECTED]> wrote: >
> Looks like that instead of  > src="docs/images/{1}.gif" mime-type="image/gif"/>
> > you need to use  > src="docs/images/{../1}.gif" mime-type="image/gif"/>
> > 
> > Note: {1} replaced with {../1}.
> > 
> > If it does not help, post your entire pipeline.
> > 
> > Vadim
> > 
> > > -Original Message-
> > > From: java guru [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, July 02, 2001 16:37
> > > To: [EMAIL PROTECTED]
> > > Subject: funny problem with sitemap & session
> > validator
> > > 
> > > 
> > > Hi.,
> > > 1. The following match pattern is used in examples
> > to
> > > read/generate the image/file requested as {1} 
> > > 
> > >
> > >  > > mime-type="image/gif"/>
> > >
> > > 
> > > 
> > > 2. Say for example, i need to serve the page/image
> > > after i validate the user session. So I have
> > included
> > > the above match pattern inside the session
> > validator
> > > action.
> > > 
> > > 3. But i am having problem serving the page/image.
> > > Cocoon2 is not able to get the name of page/image
> > > requested by {1} anymore and its looking for
> > something
> > > like ".xsp" or ".gif" and failing to locate
> > obviously.
> > > 
> > > Any input in this regard is highly appreciated..
> > > 
> > > 
> > >   
> > > 
> > >
> >
> 
> > > Do You Yahoo!?
> > > For regular News updates go to
> > http://in.news.yahoo.com
> > 
> > 
> >
> -
> > Please check that your question has not already been
> > answered in the
> > FAQ before posting.
> > 
> > 
> > To unsubscribe, e-mail:
> > <[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <[EMAIL PROTECTED]>
> >  
> 
> 
> Do You Yahoo!?
> For regular News updates go to http://in.news.yahoo.com
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: funny problem with sitemap & session validator

2001-07-02 Thread java guru

Thanks for the reply..it worked..but can u please
explain why?..

Thanks for u time..

 --- Vadim Gritsenko <[EMAIL PROTECTED]> wrote: >
Looks like that instead of  src="docs/images/{1}.gif" mime-type="image/gif"/>
> you need to use  src="docs/images/{../1}.gif" mime-type="image/gif"/>
> 
> Note: {1} replaced with {../1}.
> 
> If it does not help, post your entire pipeline.
> 
> Vadim
> 
> > -Original Message-
> > From: java guru [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 02, 2001 16:37
> > To: [EMAIL PROTECTED]
> > Subject: funny problem with sitemap & session
> validator
> > 
> > 
> > Hi.,
> > 1. The following match pattern is used in examples
> to
> > read/generate the image/file requested as {1} 
> > 
> >
> >  > mime-type="image/gif"/>
> >
> > 
> > 
> > 2. Say for example, i need to serve the page/image
> > after i validate the user session. So I have
> included
> > the above match pattern inside the session
> validator
> > action.
> > 
> > 3. But i am having problem serving the page/image.
> > Cocoon2 is not able to get the name of page/image
> > requested by {1} anymore and its looking for
> something
> > like ".xsp" or ".gif" and failing to locate
> obviously.
> > 
> > Any input in this regard is highly appreciated..
> > 
> > 
> >   
> > 
> >
>

> > Do You Yahoo!?
> > For regular News updates go to
> http://in.news.yahoo.com
> 
> 
>
-
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <[EMAIL PROTECTED]>
>  


Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.com

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: funny problem with sitemap & session validator

2001-07-02 Thread Vadim Gritsenko

Looks like that instead of 
you need to use 

Note: {1} replaced with {../1}.

If it does not help, post your entire pipeline.

Vadim

> -Original Message-
> From: java guru [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 16:37
> To: [EMAIL PROTECTED]
> Subject: funny problem with sitemap & session validator
> 
> 
> Hi.,
> 1. The following match pattern is used in examples to
> read/generate the image/file requested as {1} 
> 
>
>  mime-type="image/gif"/>
>
> 
> 
> 2. Say for example, i need to serve the page/image
> after i validate the user session. So I have included
> the above match pattern inside the session validator
> action.
> 
> 3. But i am having problem serving the page/image.
> Cocoon2 is not able to get the name of page/image
> requested by {1} anymore and its looking for something
> like ".xsp" or ".gif" and failing to locate obviously.
> 
> Any input in this regard is highly appreciated..
> 
> 
>   
> 
> 
> Do You Yahoo!?
> For regular News updates go to http://in.news.yahoo.com


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




funny problem with sitemap & session validator

2001-07-02 Thread java guru

Hi.,
1. The following match pattern is used in examples to
read/generate the image/file requested as {1} 

   

   


2. Say for example, i need to serve the page/image
after i validate the user session. So I have included
the above match pattern inside the session validator
action.

3. But i am having problem serving the page/image.
Cocoon2 is not able to get the name of page/image
requested by {1} anymore and its looking for something
like ".xsp" or ".gif" and failing to locate obviously.

Any input in this regard is highly appreciated..


  


Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.com

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




installing Cocoon

2001-07-02 Thread Joop van der Star

Dear sir,

When I try to run Cocoon.xml nothing works. I inspected the installation and
it seems to be correct.
I'm running Windows 98 with PWS and ServletExec 2.2
The servletengine seems to work OK

I think someting with the cocoon.properties file is wrong. Is there a
special place where I should put that file and if not is there a special
notation in the rules.properties file for it??

 Joop van der Star
***
[EMAIL PROTECTED] / Universiteits Bibliotheek Utrecht
  Wittevrouwenstraat 7-11  / Postbus 16007 / 3500 DA  Utrecht
tel.(+31)30 253 6624   / fax.(+31)30 253 9292



-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Newbie Question: can't access some of Cocoon2's samples

2001-07-02 Thread Mercier Xavier

Hi Cocooners,

How's the craic?

I'd been working so far with Cocoon1.8 but was very intrigued by Cocoon2 and
decided eventually to give it a chance.

Here is my environment:
OS = Windows NT 4
Java = JDK 1.3
Application Server: BEA WebLogic 6

I built Cocoon2, then followed the installation instructions to the letter
(http://xml.apache.org/cocoon2/install.html) and finally managed to access
the Welcome Page after starting WebLogic. So far so good.

Naturally, my first reaction is to try out the samples provided. Because I
was essentially interested in XSP, I click on the Simple XSP Example link.
No problemo. Actually, I can access everything related to Dynamic Content.

When I try the simplest example though, named "Multimedia Hello World HTML"
that transforms a simple XML page into an HTML page, I constantly obtain the
following error:


--
Error 404--Not Found
>From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: 
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is
given of whether the condition is temporary or permanent.
If the server does not wish to make this information available to the
client, the status code 403 (Forbidden) can be used instead. The 410 (Gone)
status code SHOULD be used if the server knows, through some internally
configurable mechanism, that an old resource is permanently unavailable and
has no forwarding address.

--
I tried to modify the sitemap.xmap file but with no success. I found nothing
in the FAQ related to that. I'm surprised to see that Cocoon2 seems to work
with more complicated examples. I'm baffled.
Has anybody else ever experienced the same problem? If so, how did you solve
it? Do you have suggestions?
Please help me, and I'll drink a glass of Jameson tonight in your honor!!
Thanks a bunch,
Xavier

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




redirect to port 80

2001-07-02 Thread Pierre-Henry Perret

Bonjour,

I have installed cocoon and made it serving corretly xml pages, well
it's nice! 

I would like to register my site as a cocoon user but i can't serve on
other
port than 8080 (e.g i must give an address as
'http://localhost:8080/cocoon..') - all other network stuff working
correctly
, i mean DNS - i don't have to do this with tomcat jserv because i can
directly see a working servlet as in
'http://localhost/servlets/examples...' 

i guess no idea to manage this,

Pierre-Henry Perret
Cocoon user
StDenis, France

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




cocoon2 pre-compilation

2001-07-02 Thread java guru

Hi.,
  I tried to follow instruction on pre-compilation of
cocoon2 stuff as mentioned in the faq..but the build
process hangs after the a while..

I remember this problem was posted by couple of other
users but with NO suggestions...


Can someone help please...

Thanks in advance



Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.com

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: The File Cocoon.xml is not generated!

2001-07-02 Thread Drasko Kokic

Are you thinking about the C1 "status page" ?!
This is dynamicaly created page.
HTH

--- [EMAIL PROTECTED] wrote:
> 
> 
> 
> Hi,
> I have a problem!
> I can not find the solution.
> 
> The File Cocoon.xml is not generated!
> 
> My System:
> Windows 2000 Professional SP1
> IE 6.0
> Apache httpd Server 1.3.20
> jakarta-tomcat-3.2.2.
> Cocoon-1.8.2.
> 
> I´m starting Tomcat: I can not see any problems.
> I´m starting Apache: I can not see any problems.
> 
> In the IE I write: http://bhinzmann/cocoon/
> The index.html is working:
> All Examples are working.
> The docs are working.
> 
> But, I can´t find the Cocoon.xml.
> 
> My Files are:
> (See attached file: wrapper.properties)(See attached
> file: mod_jk.config)
> (See attached file: tomcat.bat)(See attached file:
> uriworkermap.properties)
> (See attached file: web.xml)(See attached file:
> workers.properties)(See
> attached file: httpd.conf)
> 
> The directory-structure is
> 
> Verzeichnis von C:\JBert\Tomcat\webapps
> 
> 29.06.2001  09:24 .
> 29.06.2001  09:24 ..
> 28.05.2001  18:527.041 admin.war
> 28.05.2001  18:52  122.214 examples.war
> 28.05.2001  18:521.069.272 ROOT.war
> 28.05.2001  18:52   89.567 test.war
> 29.06.2001  09:39 admin
> 29.06.2001  09:39 examples
> 29.06.2001  09:39 ROOT
> 29.06.2001  09:39 test
> 29.06.2001  10:36 cocoon
> 29.06.2001  12:190 dir.txt
>5 Datei(en)  1.288.094 Bytes
>7 Verzeichnis(se), 434.237.440
> Bytes frei
> 
> Datentr"ger in Laufwerk C: hat keine Bezeichnung.
>  Datentr"gernummer: 2C86-33D6
> 
>  Verzeichnis von C:\JBert\Tomcat\webapps\cocoon
> 
> 29.06.2001  10:36 .
> 29.06.2001  10:36 ..
> 29.06.2001  10:37 WEB-INF
> 29.06.2001  10:45 samples
> 26.01.2001  18:171.227 index.html
> 29.06.2001  11:04 docs
> 29.06.2001  11:05 skins
> 28.06.2001  14:01  648 bert1.xml
> 28.06.2001  13:551.058 bert1html.xsl
> 28.06.2001  13:50  550 bert1wml.xsl
> 28.06.2001  14:03  380 bert2.xml
> 26.06.2001  15:20  193 fo01.xml
> 26.06.2001  15:231.491 fo01.xsl
> 25.06.2001  18:50  908 index.wml
> 29.06.2001  12:190 dir.txt
>9 Datei(en)  6.455 Bytes
>6 Verzeichnis(se), 434.233.344
> Bytes frei
> 
> Whats wrong?
> 
> Bert
> 
> 
> 

> ATTACHMENT part 2 application/octet-stream
name==?iso-8859-1?Q?wrapper.properties?=


> ATTACHMENT part 3 application/octet-stream
name==?iso-8859-1?Q?mod=5Fjk.config?=


> ATTACHMENT part 4 application/octet-stream
name==?iso-8859-1?Q?tomcat.bat?=


> ATTACHMENT part 5 application/octet-stream
name==?iso-8859-1?Q?uriworkermap.properties?=


> ATTACHMENT part 6 application/octet-stream
name==?iso-8859-1?Q?web.xml?=


> ATTACHMENT part 7 application/octet-stream
name==?iso-8859-1?Q?workers.properties?=


> ATTACHMENT part 8 application/octet-stream
name==?iso-8859-1?Q?httpd.conf?=
>
-
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
<[EMAIL PROTECTED]>


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: form-validator?

2001-07-02 Thread Christian Haul

On 02.Jul.2001 -- 02:35 PM, java guru wrote:
> hi.,
>   I was trying the form-validator example with
> validator-set (car-reservation) but the type=long
> doent seem to work out...the form-validator is
> throwing the null-pointer exception even when the
> parameter is present..and also the regular-expression
> doent seem to work for me either...

Hi. You've been bitten by bug 2414. Go to
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2414 get get the
patch for it. The patch will appear shortly in CVS.

Quick fix: set a max value for any long parameter.

What's wrong with the regular expression?

Chris.

-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: [C2] Extending AbstractTransformer

2001-07-02 Thread Mariano Kamp

startPrefixMapping() and endPrefixMapping() did the job. I am not sure what I 
am doing, but at least it works ;-)

Mariano


On Monday 02 July 2001 03:50 pm, Torsten Curdt wrote:
> > Hi there,
> >
> >   I extended AbstractTransformer and tried to user
> > super.startElement/endElement etc, to produce nodes (events). This is
> > working fine besides that the name spaces I pass into startElement is
> > ignored. Any thoughts?
> >
> >   Below is a sample to demonstrate what I mean: excecute-query (needed by
> > SQL Transformer) shows up in the resulting stream, but without
> > namespaces?!
> >
> > String sqlUri = "http://apache.org/cocoon/SQL/2.0";;
> > try {
> > char[] data = query.getSQL().toCharArray();
> > super.startElement(sqlUri, "execute-query", "execute-query", new
> > AttributesImpl() );
>
> One is the local tagname and one is the raw tagname including the ns
> prefix. I guess it should be something like:
>
>   super.startElement(sqlUri, "execute-query", "sql:execute-query", ...
>
> --
> Torsten
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Using Producers

2001-07-02 Thread Jim Urban

I wrote a producer based on the class DummyProducer.  How do I invoke this
producer from the browser?  I can't find any instructions on how to invoke a
producer in the documentation.  Even the user guide doesn't tell you how to
invoke it.  

Will producers be supported in Cocoon 2?  The concept of producers works
real well with the product I am building and using them with Cocoon could
save me a lot of time developing a framework for my product..

Thanks,

Jim Urban
Product Manager
Netsteps Inc.
Suite 505E
1 Pierce Pl.
Itasca, IL  60143
Voice:  (630) 250-3045 x2164
Fax:  (630) 250-3046


<>
-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>


form-validator?

2001-07-02 Thread java guru

hi.,
  I was trying the form-validator example with
validator-set (car-reservation) but the type=long
doent seem to work out...the form-validator is
throwing the null-pointer exception even when the
parameter is present..and also the regular-expression
doent seem to work for me either...


Any input is appreciated..




Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.com

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: C2 - sitemap handler's sitemap not available

2001-07-02 Thread Martin Benda

Perhaps this will help you. I had the same problem and I solved it like
discribed
in this message.

http://mailman.real-time.com/pipermail/cocoon-users/2001-June/016232.html

Benda Martin
- Original Message -
From: "Glenn Rioux" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 02, 2001 3:30 AM
Subject: C2 - sitemap handler's sitemap not available


> I'm trying to set up Apache/Tomcat/Cocoon and am having problems getting
> Cocoon working right.
>
> I'm using Apache 1.3.14, Tomcat 3.2.2, and Cocoon 2.0b1.  When I go to
> localhost:8080 with a browser, it brings up the tomcat intro page fine.
> When I go to localhost:8080/cocoon I get an internal server error.  At the
> end of this message is the web page that gets displayed.
>
> Thanks,
> Glenn
>
>
>
>
>
> Cocoon 2 - Internal server error
>
>
>
> type internal-server-error
>
> message The sitemap handler's sitemap is not available.
>
> description org.apache.cocoon.ProcessingException: The sitemap handler's
> sitemap is not available.
>
> sender org.apache.cocoon.servlet.CocoonServlet
>
> source Cocoon servlet
>
> request-uri
>
> /cocoon/
>
> exception
>
> org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is
not
> available.
>
> path-info
>
> stacktrace
>
> org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is
not
> available.
> at
org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
> at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
> at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
> at
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:213)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> at java.lang.Thread.run(Thread.java:484)
>
>
>
> ~~
> http://grioux.net.dhis.org
> ~~
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: Segmentation fault on install

2001-07-02 Thread Ben Young

Hey Marcus,

Thanks for your help.  I'm going to give that a try.  I haven't tried
building it with CVS versions of Ant and/or jdk 1.3.1.  I've had
trouble getting cvs through the firewall here at work, so I usually
download release builds or nightlies.  I'll probably try the jdk
1.3.0_02 first.  Do you want to let the dev guys know or should I?

Thanks for your help,
Ben

>>> [EMAIL PROTECTED] 07/02/01 09:48AM >>>
Hi Ben,

On Mon, 2 Jul 2001, Ben Young wrote:

> Sounds identical.  I'm using jdk 1.3.1.  The segfault happens at
the
> very beginning of install.  Do you think backing up to jdk
1.3.0_02
> would fix this?  Do the developers know about this yet?

Backing up will fix it - We're using jdk 1.3.0_02 at the
moment at
work and it builds cocoon2 fine.

I don't think the developers know about it yet, perhaps we
should
resolve whether its a cocoon or ant issue.

Have you attempted building c2 with the CVS version of
ant/jdk1.3.1 ?

Cheers,

Marcus

-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   Open Software Associates GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ &&:'   60327 Frankfurt Germany
   ' /( &&&
   \_' Email : [EMAIL PROTECTED] 
  .Business Hours : +49 69 9757 200
&&&:   After Hours: +49 69 49086750


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: [C2] Extending AbstractTransformer

2001-07-02 Thread Torsten Curdt

> Hi there, 
> 
>   I extended AbstractTransformer and tried to user 
> super.startElement/endElement etc, to produce nodes (events). This is working 
> fine besides that the name spaces I pass into startElement is ignored. Any 
> thoughts? 
> 
>   Below is a sample to demonstrate what I mean: excecute-query (needed by SQL 
> Transformer) shows up in the resulting stream, but without namespaces?! 
> 
>   String sqlUri = "http://apache.org/cocoon/SQL/2.0";;
>   try {
>   char[] data = query.getSQL().toCharArray();
>   super.startElement(sqlUri, "execute-query", "execute-query", new 
> AttributesImpl() );

One is the local tagname and one is the raw tagname including the ns prefix.
I guess it should be something like:

  super.startElement(sqlUri, "execute-query", "sql:execute-query", ...

--
Torsten

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: Segmentation fault on install

2001-07-02 Thread Marcus Crafter

Hi Ben,

On Mon, 2 Jul 2001, Ben Young wrote:

> Sounds identical.  I'm using jdk 1.3.1.  The segfault happens at the
> very beginning of install.  Do you think backing up to jdk 1.3.0_02
> would fix this?  Do the developers know about this yet?

Backing up will fix it - We're using jdk 1.3.0_02 at the moment at
work and it builds cocoon2 fine.

I don't think the developers know about it yet, perhaps we should
resolve whether its a cocoon or ant issue.

Have you attempted building c2 with the CVS version of ant/jdk1.3.1 ?

Cheers,

Marcus

-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   Open Software Associates GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ &&:'   60327 Frankfurt Germany
   ' /( &&&
   \_' Email : [EMAIL PROTECTED]
  .Business Hours : +49 69 9757 200
&&&:   After Hours: +49 69 49086750


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




[C2] Extending AbstractTransformer

2001-07-02 Thread Mariano Kamp

Hi there, 

  I extended AbstractTransformer and tried to user 
super.startElement/endElement etc, to produce nodes (events). This is working 
fine besides that the name spaces I pass into startElement is ignored. Any 
thoughts? 

  Below is a sample to demonstrate what I mean: excecute-query (needed by SQL 
Transformer) shows up in the resulting stream, but without namespaces?! 

String sqlUri = "http://apache.org/cocoon/SQL/2.0";;
try {
char[] data = query.getSQL().toCharArray();
super.startElement(sqlUri, "execute-query", "execute-query", new 
AttributesImpl() );
super.characters(data, 0, data.length); 
super.endElement(sqlUri, "execute-query", "execute-query");

System.out.println("
 
endDocument() mark1.");
}catch (Throwable t) {
t.printStackTrace();
}


http://www.codamax.com/vis";>

   [...]

  SELECT
FROM
facts,
WHERE
ORDER BY
;


mariano

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: Segmentation fault on install

2001-07-02 Thread Ben Young

Sounds identical.  I'm using jdk 1.3.1.  The segfault happens at the
very beginning of install.  Do you think backing up to jdk 1.3.0_02
would fix this?  Do the developers know about this yet?

Thanks,
Ben

>>> [EMAIL PROTECTED] 07/02/01 09:14AM >>>
On Mon, 2 Jul 2001, Ben Young wrote:

> Whenever I try to install Cocoon 2 on my RedHat 7.0 box I get a
> segmentation fault.  Could this be a problem with my Java or Ant
> installs or a problem with Cocoon2?

I was getting a segfault yesterday when using jdk 1.3.1 on my
debian
box at c2 build time (right at the beginning when ant is
invoked).

Is this the segfault you're getting too ?

In the office we've still got jdk 1.3.0_02 on our systems
which
builds c2 fine.

Cheers,

Marcus

-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   Open Software Associates GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ &&:'   60327 Frankfurt Germany
   ' /( &&&
   \_' Email : [EMAIL PROTECTED] 
  .Business Hours : +49 69 9757 200
&&&:   After Hours: +49 69 49086750


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: Segmentation fault on install

2001-07-02 Thread Marcus Crafter

On Mon, 2 Jul 2001, Ben Young wrote:

> Whenever I try to install Cocoon 2 on my RedHat 7.0 box I get a
> segmentation fault.  Could this be a problem with my Java or Ant
> installs or a problem with Cocoon2?

I was getting a segfault yesterday when using jdk 1.3.1 on my debian
box at c2 build time (right at the beginning when ant is invoked).

Is this the segfault you're getting too ?

In the office we've still got jdk 1.3.0_02 on our systems which
builds c2 fine.

Cheers,

Marcus

-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   Open Software Associates GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ &&:'   60327 Frankfurt Germany
   ' /( &&&
   \_' Email : [EMAIL PROTECTED]
  .Business Hours : +49 69 9757 200
&&&:   After Hours: +49 69 49086750


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Segmentation fault on install

2001-07-02 Thread Ben Young

Whenever I try to install Cocoon 2 on my RedHat 7.0 box I get a
segmentation fault.  Could this be a problem with my Java or Ant
installs or a problem with Cocoon2?

Thanks,
Ben

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: C2 - sitemap handler's sitemap not available

2001-07-02 Thread java guru

Hi.,
   This start-up sitemap handler's problem is so
general that it has been discussed many times in this
forum..you may search in the mail archieve..

Anyway, following briefing should help..

1. Sitemap handler exception is throws whenever there
is problem compiling sitemap at c2 startup. The
reasons could be anything from sitemap syntax error to
improper jars to classpath problems to svg display not
set(in linux systems invoking c2 NOT from gui
environment)..

2. So please, 
   (i) stop c2
   (ii) delete the cocoon.log 
   (iii) restart the c2
   (iv) try to access c2
   (v) if error occurs, goto cocoon.log and go thru it
patiently. You will find all the debug messages there
explaining what went on..
   (vi) some problems like jdbc classloading and
webshphere class loading can be ignored initially..
   (vii) if the problem is still not figured...then
post the message with log and your environment details

good luck

 --- Glenn Rioux <[EMAIL PROTECTED]> wrote: > I'm
trying to set up Apache/Tomcat/Cocoon and am
> having problems getting
> Cocoon working right.
> 
> I'm using Apache 1.3.14, Tomcat 3.2.2, and Cocoon
> 2.0b1.  When I go to
> localhost:8080 with a browser, it brings up the
> tomcat intro page fine.
> When I go to localhost:8080/cocoon I get an internal
> server error.  At the
> end of this message is the web page that gets
> displayed.
> 
> Thanks,
> Glenn
> 
> 
> 
> 
> 
> Cocoon 2 - Internal server error
> 
> 
> 
> type internal-server-error
> 
> message The sitemap handler's sitemap is not
> available.
> 
> description org.apache.cocoon.ProcessingException:
> The sitemap handler's
> sitemap is not available.
> 
> sender org.apache.cocoon.servlet.CocoonServlet
> 
> source Cocoon servlet
> 
> request-uri
> 
> /cocoon/
> 
> exception
> 
> org.apache.cocoon.ProcessingException: The sitemap
> handler's sitemap is not
> available.
> 
> path-info
> 
> stacktrace
> 
> org.apache.cocoon.ProcessingException: The sitemap
> handler's sitemap is not
> available.
> at
>
org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
> at
>
org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
> at
> org.apache.cocoon.Cocoon.process(Cocoon.java:293)
> at
>
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
> at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at
>
org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
>
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
> at
>
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:213)
> at
>
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
>
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> at java.lang.Thread.run(Thread.java:484)
> 
> 
> 
> ~~
> http://grioux.net.dhis.org
> ~~
> 
> 
> 
>
-
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <[EMAIL PROTECTED]>
>  


Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.com

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: I'm confused about XSP , variables and session

2001-07-02 Thread Christian Haul

On 29.Jun.2001 -- 12:21 PM, [EMAIL PROTECTED] wrote:
> For instance , I have a XSP logicsheet that declares:
> 
> String person = request.getParameter("person");
> 
> I then use this variable in a custom XSP tag library that is declared in
> the namespace of the XSP logicsheet. Is this possible because the "person"
> variable is static?
> 
> Also, In my XSP tag library that I created, I have instantiated several
> variables:
> 
> private String sPrefix;
> private String sFirstName;
> private String sLastName;
> private String sMiddleName;
> 
> These variables are behaving like static variables. Every session on the
> webserver will be looking at the same variable in the tag library. I wanted
> to use tag library because I really like the notion of separating content
> and logic and tag library made this very easy by just dropping in dynamic
> data place holders in your XML. But if every session is looking at one
> static variable in my tag library, then I can't use tag libraries the way I
> want.
> I was hoping somebody could explain the scope of variables declared in XSP
> taglibs versus variables declared in logicsheets.
> I basically want variables that persist only in a specific session.

Think of logicsheets aka TagLibs as macros -- that's what they
are. They are no functions to call. Tags on your XSP get *replaced* by
the contents of the tag definition in your logicsheet (this is not
100% accurate since it is possible to do some simple programming
e.g. ).

At the end of the process, one file (a java class) is produced that
combines the code snippets from your XSP and the logicsheets used.
Looking at this file is very interesting and will help you
understand. I believe the "concepts" section describes this very
well. Thus variables in logicsheets and XSPs basically have the same
scope.

BTW this is the reason why it is no good idea to declare variables in
logicsheets -- clashes might appear e.g. when a tag that declares a
variable is used more than once on a XSP. Extra care must be taken to
do this safely.

All variables that have not been declared "static" should be
reinitialized for every request.

For variables to persist in a specific session, they must be added and
retrieved from the session. There's a taglib provided with cocoon2
that does that.

Chris.

-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




SOAP and session

2001-07-02 Thread Matteo Colombo

Hi,
I need your help!!!
I try to implement a Soap client with Cocoon (using soap taglib
http:\\ulim.cocoonhost.com), I've this problem:
I sent to a server a "user id" and the server sent me back via SOAP some
data about this user for example

UserName
UserAge
...

now I want put those data in the HTTPsession (using session taglib), and I
will use them to have a personalized view of my xml page.
How can I do? Have someone solved this problem? Some example?


XML A (make soapcall)--> XSL A (transform XML A in XML B adding
 and the session instructions)-->XSL
B (format the page: output type HTML).
Is it possible to do this? Better my question is: Is it possible transform
an XML file in another XML that use a new logicsheet (that wasn't in the
original XML file)?

Thanks for help

Ciao Matteo


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>