Tomcat 3.1 + IIS + Cocoon 1.8 problem - please help

2001-08-16 Thread thorsten . sommer

ERM::Event ERM::tGNetManModule::convertToERMEvent(const
ERM::TGNetMan::Event ev)
{
ERM::Event ermevent;
ERM::UserShortInfo usf;
ERM::NodeShortInfo nsf;

/*erm:
UserShortInfo assigneduser;
OB::WStrForStruct category;
OB::WStrForStruct eventclass;
CORBA::Long id;
OB::WStrForStruct message;
NodeShortInfo node;
EventSeverity severity;
OB::WStrForStruct source;
OB::WStrForStruct sourceminor;
EventStatus status;
CORBA::Boolean userdb;
OB::WStrForStruct uuidme;
CORBA::Long timestamp;

tgnetman:
CORBA::Long id;
CORBA::Long assigneduserid; // netman userid = ermuserid ?
CORBA::Long category;
CORBA::Long eventclass;
OB::WStrForStruct message;
Noderef nodeid;
EventSeverity severity;
OB::WStrForStruct netmanServer;
TimestampType timestamp;
*/

//ermevent.assigneduser = usf;

// convert category
//ermevent.category = ;

// convert eventclass
//ermevent.eventclass = ;

ermevent.id = ev.id;
ermevent.message = ev.message;

// RMS nodeid is the same
nsf.id = ev.id;
//nsf.name =;
ermevent.node = nsf;

// convert severity
switch(ev.severity)
{
case ERM::TGNetMan::esv_fatal:
ermevent.severity = ERM::fatal;
break;

case ERM::TGNetMan::esv_critical:
ermevent.severity = ERM::critical;
break;

case ERM::TGNetMan::esv_minor:
ermevent.severity = ERM::minor;
break;

case ERM::TGNetMan::esv_warning:
ermevent.severity = ERM::warning;
break;

case ERM::TGNetMan::esv_harmless:
ermevent.severity = ERM::harmless;
break;

case ERM::TGNetMan::esv_normal:
ermevent.severity = ERM::normal;
break;

case ERM::TGNetMan::esv_informal:
ermevent.severity = ERM::informal;
break;

default:
;
// severity not known
}

ermevent.source = m_source.c_str();
ermevent.sourceminor = m_sourceminor.c_str();   //ev.netmanServer

// convert status
switch(ev.status)
{
case ERM::TGNetMan::est_open:
ermevent.status = ERM::open;
break;

case ERM::TGNetMan::est_assigned:
ermevent.status = ERM::assigned;
break;

case ERM::TGNetMan::est_reopened:
ermevent.status = ERM::reopened;
break;

case ERM::TGNetMan::est_closed:
ermevent.status = ERM::closed;
break;

case ERM::TGNetMan::est_ignored:
ermevent.status = ERM::ignored;
break;

case ERM::TGNetMan::est_deleted:
// this case is mapped to 'closed' because in ERM
the status 'deleted' does not exist
ermevent.status = ERM::closed;
break;

default:
// status not known
;
}

// 
ermevent.userdb = true;

// tGNetMan don't know uuidme
ermevent.uuidme = L;

// ERM and RMS use the same timestamp
ermevent.timestamp = ev.timestamp;

return ermevent;
}

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Internal Servlet Error C2 with tomcat 3.2.3-1

2001-08-16 Thread E. Koster

Dear users,
After reading the faq and a lot of messages on this and the developers list I 
still have not found the solution.
As in many messages I have a problem with cocoon2b7, tomcat 3.2.3-1 and apache 
on a Mandrake 8 linux platform

There is no problem in compilation (not anymore, the ant problem can be solved 
by installing ant and ignoring the ant that comes with the distribution)

After moving and renaming files in the directories as mentioned in the Install 
pages I still get the error:
org.xml.sax SAXNotSupportedException Property 
http://xml.org/sax/properties/lexical-handler

Even after moving the cocoon.jar to the tomcat/lib directory (I found out that 
with some users this solved the problem I am still stuck in the same stage...

Who helps?

Elwin
___
ARCHITECTURAL HISTORY, MORPHOLOGY and URBAN INFORMATION-SYSTEMS
  drs. Elwin A. Koster, [EMAIL PROTECTED]  
Architectural History  Humanities Computing department, 
Faculty of Arts, Groningen University, The Netherlands
PO.Box 716, 9700 AS Groningen, phone: (+31) 50 3636099  fax: (+31) 50 3637362
http://www.let.rug.nl/~ekoster cell.phone: (+31) 6 18474305
International Seminar on Urban Form -  see http://www.let.rug.nl/isuf/
___

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Using Markup from a Database Field (was:disable-output-escaping=yes)

2001-08-16 Thread Derek Hohls



Following on from this - 

if I have data in a database field which contains HTML markup and I want 
this carried through after wrappingthe field datain an XML tag... 
how exactly do I do this?

Thanks
Derek [EMAIL PROTECTED] 10/08/2001 05:55:32 
Roger,Xalan supports this feature just fine. It's Cocoon 
that does not (pleasecorrect me if I am mistaken). I face a problem similar 
to yours - I need tograb small HTML fragments (which may or may not be 
well-formed) from a DBand drop them into a page, and disable-output-escaping 
would be the perfectsolution. Alas, it is not supported. 
risking-flame-war-and-being-shunned-by-peersAfter asking for 
help on this list, I received lots of references to "badprogramming style" 
and "better ways of doing it", but have yet to receive a*practical* 
alternative to disable-output-escaping. I am a vocal proponentof Cocoon 
among my peers. I absolutely love it, and I recommend it toeveryone. 
But this 'minor detail' has become a rather large thorn in myside. 
/risking-flame-war-and-being-shunned-by-peersWilliam 
Bagby.-Original Message-From: Roger Brooks 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 18, 2001 10:40 
AMTo: '[EMAIL PROTECTED]'Subject: 
disable-output-escaping="yes"We are migrating text data from a 
legacy system to one which uses Cocoon forpresentation. In some 
cases the legacy data contain line breaks, which wewish to reproduce on 
the new system. The easiest way to do this appears tobe to embed 
"br" in the data where the line breaks should occur. 
Theseare then output to XML as "lt;brgt;" Some XSLT engines 
(such asInstantSAXON 6.1) will then obligingly issue the required br 
in the HTMLoutput stream, provided one includes 
disable-output-escaping="yes" in theappropriate xsl 
directive.Unfortunately, Xalan does not support this attribute. 
Furthermore, Cocoonwishes to discourage this (seehttp://xml.apache.org/cocoon/faqs.html#faq-disableescapinghttp://xml.apache.org/cocoon/faqs.html#faq-disableescaping 
). Onealternative which occurred to us is to embed p and 
/p tags in the dataand then handle these in XSL on output. 
This solution requires quite a bitmore effort than the above solution, 
however, particularly as the text inquestion is presently output in XML 
as an ATTRIBUTE and not as the contentof an ELEMENT.In view of 
the effort involved for the implementation described above, I amsorely 
tempted to replace Xalan with another 
XSLT-transformer.Questions:1. Where can I download 
a copy 
oforg.apache.cocoon.transformer.SAXONTransformer?2. 
Will this solve the problem?3. Can someone recommend an 
alternative solution we haven't thought of?Thanks in 
advance!Löwenfels Partner AGRoger BrooksHaldenstrasse 6 
6006 LuzernTelefon +41-41-418 44 
00 Fax +41-41-418 44 
44Direkt +41-41-418 44 64E-mail 
mailto:[EMAIL PROTECTED] 
[EMAIL PROTECTED]www http://www.loewenfels.ch http://www.loewenfels.ch*** 
 http://www.loewenfels.ch/d/news/indexwettbewerb.htm 
NEHMEN SIE ANUNSERER UMFRAGE TEIL UND GEWINNEN SIE EINEN 
PALM  
***-Please 
check that your question has not already been answered in theFAQ before 
posting. http://xml.apache.org/cocoon/faqs.htmlTo 
unsubscribe, e-mail: [EMAIL PROTECTED]For 
additional commands, e-mail: 
[EMAIL PROTECTED]-Please 
check that your question has not already been answered in theFAQ before 
posting. http://xml.apache.org/cocoon/faqs.htmlTo 
unsubscribe, e-mail: [EMAIL PROTECTED]For 
additional commands, e-mail: 
[EMAIL PROTECTED]


AW: session-invalidator and back-button?

2001-08-16 Thread Jorn Heid

I think it could be archived by setting the expiration-date in the
http-header.

There are some meta-tags you can set in the html.

-Ursprungliche Nachricht-
Von: Enke Michael [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 16. August 2001 12:46
An: [EMAIL PROTECTED]
Betreff: session-invalidator and back-button?


Hi,
I tryed the web-application demo from cocoon2
where a login and logout can be performed.
But after logout if I press the back button of my browser
I get back into protected area without authorization.
How can this be avoided?

Michael

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Why doesn't Cocoon2 recognize [position() lt; last()] ??

2001-08-16 Thread Morrison, John

Cocoon itself doesn't understand xml.  All it knows is how to hand it off to
a parser/transformer.  There _may_ be some settings which can be sent to
xalan which Cocoon doesn't know/send, if you can tell us what it is I'm sure
we can accomodate it...?

If you look in the /lib directory you'll find all the jar files Cocoon
relies on to work.  If you want more details find the document 'jars' (xml
in cvs, html when built, available on the website).

J.

 -Original Message-
 From: Hewko, Doug [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, 16 August 2001 12:17 pm
 To: '[EMAIL PROTECTED]'
 Subject: RE: Why doesn't Cocoon2 recognize [position() lt; last()] ??
 
 
 I would like to find out why it doesn't work.. I am running 
 Cocoon2. Why
 would I need Xalan?  Cocoon should be able to handle the code since it
 handled everything else I've given it.
 
 I do not understand John's question through. The output would 
 be set from
 the sitemap.xmap. I just plugged in my XML and XSL there, 
 and let Cocoon
 do the work.
 
 Is this a bug with Cocoon2?
 
 -Original Message-
 From: Morrison, John [mailto:[EMAIL PROTECTED]]
 Sent: August 13, 2001 10:49 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Why doesn't Cocoon2 recognize [position() lt; last()] ??
 
 
 Also, check versions - is C2 running with the version you 
 manually generated
 the output from?
 
  -Original Message-
  From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
  Sent: Monday, 13 August 2001 3:47 pm
  To: [EMAIL PROTECTED]
  Subject: AW: Why doesn't Cocoon2 recognize [position() lt; 
 last()] ??
  
  
  Well, you should try it with xalan standalone, to make sure 
  thats really
  a cocoon and not a xalan bug.
  Im quite sure its a xalan bug, not from cocoon, because all XSLT
  processing is managed throgh xalan (as far as i know).
  
   -Ursprüngliche Nachricht-
   Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
   Gesendet: Montag, 13. August 2001 16:42
   An: Stefan Seifert
   Betreff: RE: Why doesn't Cocoon2 recognize [position() lt; 
  last()] ??
   
   
   Thanks for the reply. FYI. From a XSL list which says that 
   this is a Cocoon2
   bug...
   
   I get the following outputs.
   
   Xalan:
   
 Jeff/555-1234/555-4321/lightgrey#13;
 David/383-1234/383-4321/lightblue#13;
 Roger/888-1234/888-4321/lightyellow#13;
   
   MSXML:
 Jeff/555-1234/555-4321/lightgrey
 David/383-1234/383-4321/lightblue
 Roger/888-1234/888-4321/lightyellow
   
   I'm not sure why this isn't working for you. It may be a bug 
   in Cocoon's
   position() function. I don't have Cocoon here, but you might 
   want to try
   playing around with the predicate and see.
   
   Also, the xsl:text#xD;#xA;/xsl:text node inserts
   carriage-return/line-feed characters, which are usually 
  stripped by a
   browser, so br/ is probably more appropriate for your 
 environment.
   
   hope this helps some...
   
   -Original Message-
   From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
   Sent: August 13, 2001 10:37 AM
   To: Hewko, Doug
   Subject: AW: Why doesn't Cocoon2 recognize [position() lt; 
  last()] ??
   
   
   I think in this case, this is not a cocoon-bug, but a 
  xalan-bug (which
   cocoon uses internally for XSLT), and xalan has its own 
  mailing lists,
   too (see apache website).
   
   Stefan
  
  
 -
  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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 ==
 =
 Information in this email and any attachments are 
 confidential, and may
 not be copied or used by anyone other than the addressee, nor 
 disclosed
 to any third party without our permission.  There is no intention to
 create any legally binding contract or other commitment 
 through the use
 of this email.
 
 Experian Limited (registration number 653331).  
 Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
 
 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
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: [EMAIL 

RE: testing against different versions of browsers

2001-08-16 Thread Morrison, John

Browser agent strings are listed in the webapp/sitemap.xmap around line
75ish

map:selectors default=browser
 map:selector name=browser
src=org.apache.cocoon.selection.BrowserSelectorFactory
  !-- # NOTE: The appearance indicates the search order. This is very
important since
   #   some words may be found in more than one browser description.
(MSIE is
   #   presented as Mozilla/4.0 (Compatible; MSIE 4.01; ...)
  --
  browser name=explorer useragent=MSIE/
  browser name=pocketexplorer useragent=MSPIE/
  browser name=handweb useragent=HandHTTP/
  browser name=avantgo useragent=AvantGo/
  browser name=imode useragent=DoCoMo/
  browser name=opera useragent=Opera/
  browser name=lynx useragent=Lynx/
  browser name=java useragent=Java/
  browser name=wap useragent=Nokia/
  browser name=wap useragent=UP/
  browser name=wap useragent=Wapalizer/
  browser name=mozilla5 useragent=Mozilla/5/
  browser name=mozilla5 useragent=Netscape6//
  browser name=netscape useragent=Mozilla/
 /map:selector
/map:selectors

If there's any more or any comments you would like added, please submit a
patch to the dev list :)

 -Original Message-
 From: java guru [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, 16 August 2001 12:56 pm
 To: [EMAIL PROTECTED]
 Subject: Re: testing against different versions of browsers
 
 
 Hi.,
   As i understand, the c2 functionality to operate
 with different browsers depends simply on the
 User-Agent string passed with http headers..(browser
 can send multiple strings for user-agent like
 mozilla..ie something like that)..
 
 I had hell of time trying to make it work as i had to
 know
 
 1. What user-agent string are sent by various browsers
 2. How to order them in-order to get prompt effect..
 
 Best thing i think is to change the user-agent sent by
 each browser(or each version)(and you can code any
 string you want and map that in sitemap)..
 
 Now issue of how to change the user-agent..so far i
 have only succeeded with Opera browser, which
 facilitates to change the user-agent to various
 browser imitations(fixed number)...
 
 May be new mozilla browser could be customized to
 imitate also..
 
 Good luck
 
  --- Liam Morley [EMAIL PROTECTED] wrote:  I
 understand that Cocoon gives you the power to use
  different stylesheets
  for different browsers (code is included at bottom
  of email). However, I
  don't see how you can test between different
  versions, ie between IE4,
  IE5, IE5.5, NS4, or NS6. Is there a way to do this
  as well?
  
  Thank you...
  
  map:select type=browser
!-- you could insert parameters here as well
  --
map:when test=explorer
   map:transform
  src=stylesheets/w3c-2-msie.xsl/
/map:when
map:when test=lynx
   map:transform
  src=stylesheets/dynamic-page2html-text.xsl/
   map:serialize/
/map:when
map:when test=netscape
   map:transform
  src=stylesheets/ns4.xsl/
/map:when
map:otherwise
   map:transform
  src=stylesheets/w3c.xsl/
/map:otherwise
 /map:select
  
  
  ---
  Liam Morley
  
  light the deep, and bring silence to the world.
  light the world, and bring depth to the silence.
  
  
  
  
 
 -
  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:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
   
 
 =
 Thanks and have great day
 srini
 
 
 Do You Yahoo!?
 Send a newsletter, share photos  files, conduct polls, 
 organize chat events. Visit http://in.groups.yahoo.com.
 
 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




[C2] cache XInclude problem (fwd)

2001-08-16 Thread Alexander Petrov

Sorry for sending this again;
I wasn't subscribed to mailing list and, maybe, lost
some reply on my message.
If so, can anyone reply once more ?

and, by the way, how can I access most recent messages ?
cocooun-users-index seems not working :(

-- Forwarded message --
Date: Wed, 15 Aug 2001 20:48:25 +0400 (MSK/MSD)
From: Alexander Petrov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [C2] cache XInclude problem

I use Apache Cocoon 2.0b2 on Tomcat 3.2.3, Linux.

sitemap contains:
   map:match pattern=info
 map:generate src=info.xml/
 map:transform type=xinclude/
 map:transform src=info.xsl/
 map:serialize/
   /map:match

info.xml contains:
?xml version=1.0?

page
xinclude:include xmlns:xinclude=http://www.w3.org/2001/XInclude;
href=a.xml parse=xml/
/page

First time accessed info outputs fine results.
Next time, Cocoon2 returns 404 code; cocoon.log contains

org.apache.cocoon.ProcessingException: Failed to execute 
pipeline.:java.lang.NullPointerException
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:189)

and plenty lines of stack trace.

I don't want to refuse from caching, because result of this xinclude
is going to be compiled as XSP.

what should I do : use map:aggregate instead or fix this somehow ?

/Alexander




-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: session-invalidator and back-button?

2001-08-16 Thread Adrian Geissel

Hi Michael,

I believe that the only way to solve such an issue is to 'run' the protected
portion of your website in a spawned browser window, and then when the user
log's out, to close that window. This will ensure that the Back history,
which is local to a browser window, cannot be access with permission.

Hope that this helps,
Adrian


- Original Message -
From: Enke Michael [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 11:46 AM
Subject: session-invalidator and back-button?


 Hi,
 I tryed the web-application demo from cocoon2
 where a login and logout can be performed.
 But after logout if I press the back button of my browser
 I get back into protected area without authorization.
 How can this be avoided?

 Michael

 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Getting read of the X server dependency

2001-08-16 Thread Jon Peterson

Xvfb is what you need.  If you're running Linux, you may already have it
available (do which Xvfb or slocate Xvfb to check).  If not, go to
Xfree86.org and download either the Xvfb component of X (if you have XServer
installed) or grab the entire X Server and run Xinstall.sh.  If you're
running Solaris, go to
http://tmap.pmel.noaa.gov/home/ferret/FAQ/graphics/Solaris_Xvfb.html for the
binaries.

Once installed, on the command-line run

/usr/X11R6/bin/Xvfb :1 -screen 0 1152x900x8 

and then set the DISPLAY variable to :1.0

This should take care of your problem and allow you to keep batik's
functionality.

Regards,
Jon

- Original Message -
From: Carlos [EMAIL PROTECTED]
To: cocoon users xml.apache.org [EMAIL PROTECTED]
Sent: Wednesday, August 15, 2001 4:49 PM
Subject: Getting read of the X server dependency


 A while back some people gave solutions as to how to remove the dependency
 on a running X server. Some of them included removing all the references
to
 Batik from the site map, others included downloading a library that would
 make X unnecessary, what's the name of the library and where can I
download
 it from?


 TIA
 Carlos

 --
 ---
 P  |Carlos Araya
 _  |WebCT Administrator/Trainer
 G  |California Virtual Campus, Region 1
  C/O De Anza College
 10650 Bubb Road
 Cupertino, CA 95014

 mail:   [EMAIL PROTECTED]
 web:http://www.cvc1.org (work)
 http://www.silverwolf-net.net (personal)
 PGP Fingerprint: E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756

 Don't let the fact that you can't do all you want to do Keep you from
 doing what you can do.

 And oftentimes, excusing of a fault doth make the fault the worse by the
 excuse; As patches set upon a little breach discredit more in
 hiding of the fault than did the fault before it was so patched.
 --Wm. Shakespeare



 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: session-invalidator and back-button?

2001-08-16 Thread Enke Michael

But if I use e-mail or banking over internet,
it is not possible to get the last page back.
And there is no extra window, the back button is selectable.
The server answers that an error occured or that
I have to login again.

Is there a way in cocoon other than spawning another browser window?

Michael

Adrian Geissel wrote:
 
 Hi Michael,
 
 I believe that the only way to solve such an issue is to 'run' the protected
 portion of your website in a spawned browser window, and then when the user
 log's out, to close that window. This will ensure that the Back history,
 which is local to a browser window, cannot be access with permission.
 
 Hope that this helps,
 Adrian
 
 - Original Message -
 From: Enke Michael [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 16, 2001 11:46 AM
 Subject: session-invalidator and back-button?
 
  Hi,
  I tryed the web-application demo from cocoon2
  where a login and logout can be performed.
  But after logout if I press the back button of my browser
  I get back into protected area without authorization.
  How can this be avoided?
 
  Michael
 
  -
  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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Getting read of the X server dependency

2001-08-16 Thread Berin Loritsch

Jon Peterson wrote:
 
 Xvfb is what you need.  If you're running Linux, you may already have it
 available (do which Xvfb or slocate Xvfb to check).  If not, go to
 Xfree86.org and download either the Xvfb component of X (if you have XServer
 installed) or grab the entire X Server and run Xinstall.sh.  If you're
 running Solaris, go to
 http://tmap.pmel.noaa.gov/home/ferret/FAQ/graphics/Solaris_Xvfb.html for the
 binaries.

That takes care of part of the problem.  Please, I highly recommend stress
testing that setup.  Any time you are dependant on the interactions between
two highly complex beasts (JVM and X windows server), there are bound to be
synchronization issues and other bugs that are beyond the control of Cocoon!

Consider the load you are expecting, and test for twice that number.  It is
more important that you test for concurrency than for sequential access.  If
you expect 100 simultaneous users during peek time, test for 200 users.  Use
realistic settings, but test nonetheless.

Keep in mind that any time you incorporate SVG using FOP or Batik, then you
are going to use the X windows server.

If you have _any_ serializers that use Batik (i.e. svg2png, svg2jpg), you are
going to require the use of Batik.

In some instances the setup will be perfectly stable--but some platforms will
prove unstable.  It all depends on the implementation of X Windows and the
implementation of the JVM.

When JDK 1.4 becomes stable, the promise of Headless servers will be realized,
and Batik can be used without precaution.

 
 Once installed, on the command-line run
 
 /usr/X11R6/bin/Xvfb :1 -screen 0 1152x900x8 
 
 and then set the DISPLAY variable to :1.0
 
 This should take care of your problem and allow you to keep batik's
 functionality.
 
 Regards,
 Jon
 
 - Original Message -
 From: Carlos [EMAIL PROTECTED]
 To: cocoon users xml.apache.org [EMAIL PROTECTED]
 Sent: Wednesday, August 15, 2001 4:49 PM
 Subject: Getting read of the X server dependency
 
  A while back some people gave solutions as to how to remove the dependency
  on a running X server. Some of them included removing all the references
 to
  Batik from the site map, others included downloading a library that would
  make X unnecessary, what's the name of the library and where can I
 download
  it from?
 
 
  TIA
  Carlos
 
  --
  ---
  P  |Carlos Araya
  _  |WebCT Administrator/Trainer
  G  |California Virtual Campus, Region 1
   C/O De Anza College
  10650 Bubb Road
  Cupertino, CA 95014
 
  mail:   [EMAIL PROTECTED]
  web:http://www.cvc1.org (work)
  http://www.silverwolf-net.net (personal)
  PGP Fingerprint: E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756
 
  Don't let the fact that you can't do all you want to do Keep you from
  doing what you can do.
 
  And oftentimes, excusing of a fault doth make the fault the worse by the
  excuse; As patches set upon a little breach discredit more in
  hiding of the fault than did the fault before it was so patched.
  --Wm. Shakespeare
 
 
 
  -
  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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: session-invalidator and back-button?

2001-08-16 Thread Morrison, John

No reason - if you expire the page then it will try and get it again from
the server, if the session is still OK which keeps your password you won't
be asked for it again.  T'was just a though...

 -Original Message-
 From: java guru [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, 16 August 2001 2:02 pm
 To: [EMAIL PROTECTED]
 Subject: RE: session-invalidator and back-button?
 
 
 Hi.,
   Correct me if i am wrong...why not use page
 expiration time in http headers?..
 
 
  --- Morrison, John [EMAIL PROTECTED]
 wrote:  If you use the javascript:location.replace (I
  *think* that's what its
  called) I don't *believe* that the new page is added
  to the history...
  
   -Original Message-
   From: Enke Michael
  [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, 16 August 2001 1:54 pm
   To: [EMAIL PROTECTED]
   Subject: Re: session-invalidator and back-button?
   
   
   But if I use e-mail or banking over internet,
   it is not possible to get the last page back.
   And there is no extra window, the back button is
  selectable.
   The server answers that an error occured or that
   I have to login again.
   
   Is there a way in cocoon other than spawning
  another browser window?
   
   Michael
   
   Adrian Geissel wrote:

Hi Michael,

I believe that the only way to solve such an
  issue is to 
   'run' the protected
portion of your website in a spawned browser
  window, and 
   then when the user
log's out, to close that window. This will
  ensure that the 
   Back history,
which is local to a browser window, cannot be
  access with 
   permission.

Hope that this helps,
Adrian

- Original Message -
From: Enke Michael
  [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 11:46 AM
Subject: session-invalidator and back-button?

 Hi,
 I tryed the web-application demo from cocoon2
 where a login and logout can be performed.
 But after logout if I press the back button of
  my browser
 I get back into protected area without
  authorization.
 How can this be avoided?

 Michael

 
  
 
 -
 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:
  [EMAIL PROTECTED]
 For additional commands, e-mail: 
   [EMAIL PROTECTED]




  
 
 -
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:
  [EMAIL PROTECTED]
For additional commands, e-mail:
  [EMAIL PROTECTED]
   
  
 
 -
   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:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
   
  
  
 
 ==
 =
  Information in this email and any attachments are
  confidential, and may
  not be copied or used by anyone other than the
  addressee, nor disclosed
  to any third party without our permission.  There is
  no intention to
  create any legally binding contract or other
  commitment through the use
  of this email.
  
  Experian Limited (registration number 653331).  
  Registered office: Talbot House, Talbot Street,
  Nottingham NG1 5HF
  
 
 -
  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:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
   
 
 =
 Thanks and have great day
 srini
 
 
 Do You Yahoo!?
 Send a newsletter, share photos  files, conduct polls, 
 organize chat events. Visit http://in.groups.yahoo.com.
 
 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: 

RE: session-invalidator and back-button?

2001-08-16 Thread java guru

What do u mean?..the original question was once he
logged out(which means the session is expired
purposefully) and push back button, the page is still
diplayed(from browser cache)..

According to this the session is programatically
expired on logout so there is no session information
stored on server..and even if the browser try to get
the page from server, it would fail as the session is
already expired...

This is done very frequently in banking and public
email systems...

Again correct me if wrong..




 --- Morrison, John [EMAIL PROTECTED]
wrote:  No reason - if you expire the page then it
will try
 and get it again from
 the server, if the session is still OK which keeps
 your password you won't
 be asked for it again.  T'was just a though...
 
  -Original Message-
  From: java guru [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, 16 August 2001 2:02 pm
  To: [EMAIL PROTECTED]
  Subject: RE: session-invalidator and back-button?
  
  
  Hi.,
Correct me if i am wrong...why not use page
  expiration time in http headers?..
  
  
   --- Morrison, John
 [EMAIL PROTECTED]
  wrote:  If you use the
 javascript:location.replace (I
   *think* that's what its
   called) I don't *believe* that the new page is
 added
   to the history...
   
-Original Message-
From: Enke Michael
   [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 16 August 2001 1:54 pm
To: [EMAIL PROTECTED]
Subject: Re: session-invalidator and
 back-button?


But if I use e-mail or banking over internet,
it is not possible to get the last page back.
And there is no extra window, the back button
 is
   selectable.
The server answers that an error occured or
 that
I have to login again.

Is there a way in cocoon other than spawning
   another browser window?

Michael

Adrian Geissel wrote:
 
 Hi Michael,
 
 I believe that the only way to solve such an
   issue is to 
'run' the protected
 portion of your website in a spawned browser
   window, and 
then when the user
 log's out, to close that window. This will
   ensure that the 
Back history,
 which is local to a browser window, cannot
 be
   access with 
permission.
 
 Hope that this helps,
 Adrian
 
 - Original Message -
 From: Enke Michael
   [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 16, 2001 11:46 AM
 Subject: session-invalidator and
 back-button?
 
  Hi,
  I tryed the web-application demo from
 cocoon2
  where a login and logout can be performed.
  But after logout if I press the back
 button of
   my browser
  I get back into protected area without
   authorization.
  How can this be avoided?
 
  Michael
 
  
   
  
 

-
  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:
   [EMAIL PROTECTED]
  For additional commands, e-mail: 
[EMAIL PROTECTED]
 
 
 
 
   
  
 

-
 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:
   [EMAIL PROTECTED]
 For additional commands, e-mail:
   [EMAIL PROTECTED]

   
  
 

-
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:
   [EMAIL PROTECTED]
For additional commands, e-mail:
   [EMAIL PROTECTED]

   
   
  
 

==
  =
   Information in this email and any attachments
 are
   confidential, and may
   not be copied or used by anyone other than the
   addressee, nor disclosed
   to any third party without our permission. 
 There is
   no intention to
   create any legally binding contract or other
   commitment through the use
   of this email.
   
   Experian Limited (registration number 653331).  
   Registered office: Talbot House, Talbot Street,
   Nottingham NG1 5HF
   
  
 

-
   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:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]

  
  =
  Thanks and have great day
  srini
  
 


  Do You Yahoo!?
  Send a newsletter, share photos  files, conduct
 polls, 
  organize chat events. Visit
 http://in.groups.yahoo.com.
  

RE: session-invalidator and back-button?

2001-08-16 Thread java guru

Hi buddy.,
   This is community project...so nothing is
personal:-)..i apologize is my words sounded so...

Have good time..


 --- Morrison, John [EMAIL PROTECTED]
wrote:  Ah, my apologies - I missed the 'logged out'
bit...
 
  -Original Message-
  From: java guru [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, 16 August 2001 2:12 pm
  To: [EMAIL PROTECTED]
  Subject: RE: session-invalidator and back-button?
  
  
  What do u mean?..the original question was once
 he
  logged out(which means the session is expired
  purposefully) and push back button, the page is
 still
  diplayed(from browser cache)..
  
  According to this the session is programatically
  expired on logout so there is no session
 information
  stored on server..and even if the browser try to
 get
  the page from server, it would fail as the session
 is
  already expired...
  
  This is done very frequently in banking and public
  email systems...
  
  Again correct me if wrong..
  
 
 Hey, please take it easy - it wasn't anything
 personal!
 
  
  
   --- Morrison, John
 [EMAIL PROTECTED]
  wrote:  No reason - if you expire the page then
 it
  will try
   and get it again from
   the server, if the session is still OK which
 keeps
   your password you won't
   be asked for it again.  T'was just a though...
   
-Original Message-
From: java guru
 [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 16 August 2001 2:02 pm
To: [EMAIL PROTECTED]
Subject: RE: session-invalidator and
 back-button?


Hi.,
  Correct me if i am wrong...why not use page
expiration time in http headers?..


 --- Morrison, John
   [EMAIL PROTECTED]
wrote:  If you use the
   javascript:location.replace (I
 *think* that's what its
 called) I don't *believe* that the new page
 is
   added
 to the history...
 
  -Original Message-
  From: Enke Michael
 [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, 16 August 2001 1:54 pm
  To: [EMAIL PROTECTED]
  Subject: Re: session-invalidator and
   back-button?
  
  
  But if I use e-mail or banking over
 internet,
  it is not possible to get the last page
 back.
  And there is no extra window, the back
 button
   is
 selectable.
  The server answers that an error occured
 or
   that
  I have to login again.
  
  Is there a way in cocoon other than
 spawning
 another browser window?
  
  Michael
  
  Adrian Geissel wrote:
   
   Hi Michael,
   
   I believe that the only way to solve
 such an
 issue is to 
  'run' the protected
   portion of your website in a spawned
 browser
 window, and 
  then when the user
   log's out, to close that window. This
 will
 ensure that the 
  Back history,
   which is local to a browser window,
 cannot
   be
 access with 
  permission.
   
   Hope that this helps,
   Adrian
   
   - Original Message -
   From: Enke Michael
 [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Thursday, August 16, 2001 11:46 AM
   Subject: session-invalidator and
   back-button?
   
Hi,
I tryed the web-application demo from
   cocoon2
where a login and logout can be
 performed.
But after logout if I press the back
   button of
 my browser
I get back into protected area without
 authorization.
How can this be avoided?
   
Michael
   

 

   
  
 

-
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:
 [EMAIL PROTECTED]
For additional commands, e-mail: 
  [EMAIL PROTECTED]
   
   
   
   
 

   
  
 

-
   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:
 [EMAIL PROTECTED]
   For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 

   
  
 

-
  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:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
=== message truncated === 

=
Thanks and have great day
srini


Do You Yahoo!?
Send a newsletter, share photos  files, conduct polls, organize chat events. Visit 
http://in.groups.yahoo.com.


Re: session-invalidator and back-button?

2001-08-16 Thread Adrian Geissel

The solution presented is not a Cocoon specific solution, but rather
addressess the issue of the client-side browser keeping a history.
In a past life, we coded an application to do this using JavaScript that the
browser used to spawn the protected window. All pages accessed and presented
within the window are basically unchanged, therefore only requiring
JavaScript on the Login and Logout pages.

This is not an elegant solution, but it can work once you cater for the
major browsers (script variances).
Cheers
Adrian

- Original Message -
From: Enke Michael [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 1:53 PM
Subject: Re: session-invalidator and back-button?


 But if I use e-mail or banking over internet,
 it is not possible to get the last page back.
 And there is no extra window, the back button is selectable.
 The server answers that an error occured or that
 I have to login again.

 Is there a way in cocoon other than spawning another browser window?

 Michael

 Adrian Geissel wrote:
 
  Hi Michael,
 
  I believe that the only way to solve such an issue is to 'run' the
protected
  portion of your website in a spawned browser window, and then when the
user
  log's out, to close that window. This will ensure that the Back history,
  which is local to a browser window, cannot be access with permission.
 
  Hope that this helps,
  Adrian
 
  - Original Message -
  From: Enke Michael [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, August 16, 2001 11:46 AM
  Subject: session-invalidator and back-button?
 
   Hi,
   I tryed the web-application demo from cocoon2
   where a login and logout can be performed.
   But after logout if I press the back button of my browser
   I get back into protected area without authorization.
   How can this be avoided?
  
   Michael
  
   -
   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: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  -
  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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: session-invalidator and back-button?

2001-08-16 Thread Adrian Geissel

Hi,

I should have mentioned in my last reply that it is still the responsibility
of your application to ensure that sensitive content is protected - using
session parameters, or whatever. The solution I presented is for the
client-side issue.

Cheers
Adrian

- Original Message -
From: Enke Michael [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 1:53 PM
Subject: Re: session-invalidator and back-button?


 But if I use e-mail or banking over internet,
 it is not possible to get the last page back.
 And there is no extra window, the back button is selectable.
 The server answers that an error occured or that
 I have to login again.

 Is there a way in cocoon other than spawning another browser window?

 Michael

 Adrian Geissel wrote:
 
  Hi Michael,
 
  I believe that the only way to solve such an issue is to 'run' the
protected
  portion of your website in a spawned browser window, and then when the
user
  log's out, to close that window. This will ensure that the Back history,
  which is local to a browser window, cannot be access with permission.
 
  Hope that this helps,
  Adrian
 
  - Original Message -
  From: Enke Michael [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, August 16, 2001 11:46 AM
  Subject: session-invalidator and back-button?
 
   Hi,
   I tryed the web-application demo from cocoon2
   where a login and logout can be performed.
   But after logout if I press the back button of my browser
   I get back into protected area without authorization.
   How can this be avoided?
  
   Michael
  
   -
   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: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  -
  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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: AW: session-invalidator and back-button?

2001-08-16 Thread Enke Michael

konqueror is ignoring both ;-(

Jörn Heid wrote:
 
 As I know there are two meta-tags.
 The one with expires and another with nocache.
 
 Perhaps it works if you are using both.
 
 JOERN_HEID
 ...

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Error with Coccon2b2 and Jakarta Tomcat 4 b7

2001-08-16 Thread dom

I cannot get Cocoon 2 beta2 to to work with C:\jakarta-tomcat-4.0-b7 on a
Win2k machine.  Following is my web log.

Please help!

Thanks in advance




DEBUG   99785   [cocoon  ] (main): Using configuration file: /cocoon.xconf
DEBUG   99785   [cocoon  ] (main): extraClassPath is absolute:
C:\jakarta-tomcat-4.0-b7\common\lib\servlet.jar
DEBUG   99785   [cocoon  ] (main): Trying to load class:
org.hsqldb.jdbcDriver
INFO99785   [cocoon  ] (main): Reloading from:
jndi:/localhost/cocoon/cocoon.xconf
DEBUG   99785   [cocoon  ] (main): New Cocoon object.
DEBUG   99785   [cocoon  ] (main): = System Properties Start =
DEBUG   99785   [cocoon  ] (main): java.runtime.name=Java(TM) 2 Runtime
Environment, Standard Edition
DEBUG   99785   [cocoon  ] (main): sun.boot.library.path=C:\jdk1.3.1\jre\bin
DEBUG   99785   [cocoon  ] (main): java.vm.version=1.3.1-b24
DEBUG   99785   [cocoon  ] (main): java.vm.vendor=Sun Microsystems Inc.
DEBUG   99785   [cocoon  ] (main): java.vendor.url=http://java.sun.com/
DEBUG   99785   [cocoon  ] (main): path.separator=;
DEBUG   99785   [cocoon  ] (main): java.vm.name=Java HotSpot(TM) Client VM
DEBUG   99785   [cocoon  ] (main): file.encoding.pkg=sun.io
DEBUG   99785   [cocoon  ] (main): java.vm.specification.name=Java Virtual
Machine Specification
DEBUG   99785   [cocoon  ] (main): user.dir=C:\jakarta-tomcat-4.0-b7\bin
DEBUG   99785   [cocoon  ] (main):
org.xml.sax.driver=org.apache.xerces.parsers.SAXParser
DEBUG   99785   [cocoon  ] (main): java.runtime.version=1.3.1-b24
DEBUG   99785   [cocoon  ] (main):
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
DEBUG   99785   [cocoon  ] (main): os.arch=x86
DEBUG   99785   [cocoon  ] (main):
java.io.tmpdir=C:\DOCUME~1\dsisnero\LOCALS~1\Temp\
DEBUG   99785   [cocoon  ] (main): line.separator=

DEBUG   99785   [cocoon  ] (main): java.vm.specification.vendor=Sun
Microsystems Inc.
DEBUG   99785   [cocoon  ] (main): java.awt.fonts=
DEBUG   99785   [cocoon  ] (main):
java.naming.factory.url.pkgs=org.apache.naming
DEBUG   99785   [cocoon  ] (main): os.name=Windows 2000
DEBUG   99785   [cocoon  ] (main):
java.library.path=C:\jdk1.3.1\bin;.;C:\WINNT\System32;C:\WINNT;C:\Program
Files\IBM\IBMDebug\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\
PROGRAM
FILES\THINKPAD\UTILITIES;C:\PROGRA~1\COMMON~1\AUTODE~1;C:\jdk1.3.1\bin;C:\IM
Nnq_NT;C:\jakarta\ant1.4.b1\bin;c:\jakarta\fop-0_15_0;c:\cygwin\bin;c:\Progr
am Files\emacs207\bin;c:\Program Files\emacsen\bin;c:\Program
Files\Ghostgum\gsview;c:\jakarta\fop-0_16_0\bin;C:\mysql\bin
DEBUG   99785   [cocoon  ] (main): java.specification.name=Java Platform API
Specification
DEBUG   99785   [cocoon  ] (main): java.class.version=47.0
DEBUG   99785   [cocoon  ] (main): os.version=5.0
DEBUG   99785   [cocoon  ] (main): user.home=C:\Documents and
Settings\dsisnero
DEBUG   99785   [cocoon  ] (main): user.timezone=America/Denver
DEBUG   99785   [cocoon  ] (main): catalina.useNaming=true
DEBUG   99785   [cocoon  ] (main):
java.awt.printerjob=sun.awt.windows.WPrinterJob
DEBUG   99785   [cocoon  ] (main): file.encoding=Cp1252
DEBUG   99785   [cocoon  ] (main): java.specification.version=1.3
DEBUG   99785   [cocoon  ] (main): catalina.home=C:\jakarta-tomcat-4.0-b7
DEBUG   99785   [cocoon  ] (main): user.name=dsisnero
DEBUG   99785   [cocoon  ] (main):
java.class.path=C:\jakarta-tomcat-4.0-b7\bin\bootstrap.jar;C:\jdk1.3.1\lib\t
ools.jar
DEBUG   99785   [cocoon  ] (main):
java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory
DEBUG   99785   [cocoon  ] (main): java.vm.specification.version=1.0
DEBUG   99785   [cocoon  ] (main): java.home=C:\jdk1.3.1\jre
DEBUG   99785   [cocoon  ] (main): java.specification.vendor=Sun
Microsystems Inc.
DEBUG   99785   [cocoon  ] (main): user.language=en
DEBUG   99785   [cocoon  ] (main): awt.toolkit=sun.awt.windows.WToolkit
DEBUG   99785   [cocoon  ] (main): java.vm.info=mixed mode
DEBUG   99785   [cocoon  ] (main): java.version=1.3.1
DEBUG   99785   [cocoon  ] (main): java.ext.dirs=C:\jdk1.3.1\jre\lib\ext
DEBUG   99785   [cocoon  ] (main):
sun.boot.class.path=C:\jdk1.3.1\jre\lib\rt.jar;C:\jdk1.3.1\jre\lib\i18n.jar;
C:\jdk1.3.1\jre\lib\sunrsasign.jar;C:\jdk1.3.1\jre\classes
DEBUG   99785   [cocoon  ] (main): java.vendor=Sun Microsystems Inc.
DEBUG   99785   [cocoon  ] (main): file.separator=\
DEBUG   99785   [cocoon  ] (main):
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
DEBUG   99785   [cocoon  ] (main): sun.cpu.endian=little
DEBUG   99785   [cocoon  ] (main): sun.io.unicode.encoding=UnicodeLittle
DEBUG   99785   [cocoon  ] (main): user.region=US
DEBUG   99785   [cocoon  ] (main): sun.cpu.isalist=pentium i486 i386
DEBUG   99785   [cocoon  ] (main): = System Properties End =
DEBUG   99785   [cocoon  ] (main): Using parser:
org.apache.cocoon.components.parser.JaxpParser
DEBUG   99785   [cocoon  ] (main): Attempting to get Handler for:
org.apache.cocoon.components.parser.Parser
DEBUG   99785   [cocoon  ] (main): Handler type =

Re: [c1]esql:get-int ... as param for xsl:call-template ...

2001-08-16 Thread Christopher Painter-Wakefield


Hubert,

you are mixing two different things.  Keep in mind that when you are
writing a logicsheet, you are writing an XSLT stylesheet that will
transform based only on what is available to it in your XML file.  This
happens once and only once, statically, to generate Java code which will
then be compiled.  The output of the Java code will then be run to produce
the actual XML which feeds into the rest of the pipeline (stylesheets and
so forth).

The ESQL taglib is also a logicsheet, so it produces Java code.  The
results of the esql:get-int ... operation won't be available until after
it is transformed by the esql logicsheet into Java code, compiled, then
run.  Your logicsheet, however, is trying to use the result long before any
of that happens.  In other words, you are not passing the results of a
database operation as a parameter into your xsl:call-template, you are
passing XML that happens to look like esql:get-int   Or, if the esql
logicsheet happens to be applied first, then you are passing Java code,
*not* the results of running that code.

Hope this helps.

-Christopher





Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  [c1]esql:get-int ... as param for xsl:call-template ...


Hi all,

I want to get something like this:

elem id=top_el_id
sub_elements count=sub_cnt
elem id=sub_el_id_1/elem
elem id=sub_el_id_2/elem
elem id=sub_el_id_3/elem
elem id=sub_el_id_4/elem
/sub_elements
/elem

XML file:
?xml version=1.0 encoding=iso-8859-2?
?xml-logicsheet href=my_taglib.xsl?
?cocoon-process type=xsp?
xsp:page
xmlns:my_taglib=http://my_host/my_taglib;
xmlns:xsp=http://www.apache.org/1999/XSP/Core;
xmlns:esql=http://apache.org/cocoon/SQL/v2;
...
my_taglib:loc id=1/
...
/xso:page

logcsheet: my_taglib.xsl:
?xml version=1.0 encoding=iso-8859-2?
xsl:stylesheet version=1.1

xmlns:my_taglib=http://my_host/my_taglib;
xmlns:esql=http://apache.org/cocoon/SQL/v2;
xmlns:xsp=http://www.apache.org/1999/XSP/Core;
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

xsl:template match=xsp:page
...
/xls:template

xsl:template match=my_taglib:loc name=loc-tag
!-- selecting data from DB, based on parameter id,
parameter id is set to attribute id if attribute id is valid
number,
if element has any subelements, i want them to be in
sub_element
tag,
but ids of this subelements are stored in DB and are depending
on id of current
element, so i try: --

xsl:call-template name=loc-tag
xsl:with-param name=idesql:get-int
column=sl//xsl:with-param
/xsl:call-template

!-- unfortunetly esql:get-int column=sl/ is not substituted
with any value
and i get infinite recursion, beacause if id param or attribute
are not provided
i try to work, and process all elements in DB, but some
elements
have subelements,
and again xsl:call-template name=loc-tag with no param --
/xsl:template

I think error may be in order of inclusion taglibs, but can't find good
one,

Thanks in advance,
Hubert.







-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




esql database results and XSL

2001-08-16 Thread Brent L Johnson

Is it possible to process XML that comes from database results?  I'm not
sure this would be possible or not - but here's an example...
select Title from MyInfo order by Title;

The resulting titles could be like:
The Cocoon Mailing List myImage name=blah/

Is there some XSLT tag or something that could process that esql results?
Some like:
xsl:processesql:get-string column=Title//xsl:process

That way it would return the actual HTML results from the myImage XSL
template.

Thanks,

- Brent


-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: esql database results and XSL

2001-08-16 Thread Christian Haul

On 16.Aug.2001 -- 11:15 AM, Brent L Johnson wrote:
 Is it possible to process XML that comes from database results?  I'm not
 sure this would be possible or not - but here's an example...
 select Title from MyInfo order by Title;
 
 The resulting titles could be like:
 The Cocoon Mailing List myImage name=blah/
 
 Is there some XSLT tag or something that could process that esql results?
 Some like:
 xsl:processesql:get-string column=Title//xsl:process

Try
esql:get-xml column=Title/


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. http://xml.apache.org/cocoon/faqs.html

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




Re: esql database results and XSL

2001-08-16 Thread Brent L Johnson

Sorry about that - just ran across it on the newsgroups :)  Thanks for the
help!

- Brent

- Original Message -
From: Christian Haul [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 11:56 AM
Subject: Re: esql database results and XSL


 On 16.Aug.2001 -- 11:15 AM, Brent L Johnson wrote:
  Is it possible to process XML that comes from database results?  I'm not
  sure this would be possible or not - but here's an example...
  select Title from MyInfo order by Title;
 
  The resulting titles could be like:
  The Cocoon Mailing List myImage name=blah/
 
  Is there some XSLT tag or something that could process that esql
results?
  Some like:
  xsl:processesql:get-string column=Title//xsl:process

 Try
 esql:get-xml column=Title/


 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. http://xml.apache.org/cocoon/faqs.html

 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. http://xml.apache.org/cocoon/faqs.html

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




transfering variable values from the java side to the xsl side

2001-08-16 Thread Markus Reckwerth

Hi to all,

I'm wondering what's wrong with a code like this in an xsp/xsl
stylesheet (both processing instructions are used):

xsp:logic
String str = foo;
/xsp:logic
xsl:variable name=var
xsp:exprstr/xsp:expr
/xsl:variable

The xsp:expr-tag is completely ignored and the textual value str
assigned to the variable var.

Can anybody help?

I'm still using Cocoon 1.8.2.

Regards,
Markus.

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: reg c2 documentation HOW DO I

2001-08-16 Thread Luca Morandini


I beg your pardon, but... why set up another site, while we can easily add
entries to the official Cocoon FAQ ?

Best regards,
 
P.S.
I wrote a couple of FAQ entries myself... I've just sent them to Davanum
Srinivas [[EMAIL PROTECTED]] and he took care of putting it (in style :) ) into
the Cocoon2 FAQ: real easy.

-
   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: java guru [mailto:[EMAIL PROTECTED]]
 Sent: giovedì 16 agosto 2001 16.01
 To: cocoon users
 Subject: reg c2 documentation HOW DO I


 Hi Guys.,
This is regarding quick HOW DO I documentation for
 cocoon2.

   I would like to contribute/host documentation on
 various topics related to c2. I thank the c2 team for
 keeping up with the clear and vast documentation and
 faq on the xml.apache.org site. But as human nature,
 we tend to look for *something-in-one-hour* quick
 receipe books/material.
   So I thought how about compiling our cocoon-users
 experiences with c2 into HOW DO I receipe.

 All of you interested in sharing your experience with
 community are welcomed to write your own story about
 HOW DO I..and send to me for hosting..

 Please advice if any such efforts are on the way so
 that the work is not duplicated...

 If you decide to give back something to our
 community..please follow few tips

 1. Write the document in any style you want.
 2. Please dont hesitate to write little details also..
 3. Please mail to [EMAIL PROTECTED] with subject
 HOW DO I.
 4. Please mention your name and/or contact email as i
 can mention that HOW DO I as your experience.
 5. Please take some time and provide some solid
 examples(code prefered)..

 And finally all advices regarding this are highly
 appreciated..

 Thanks everyone..


 =
 Thanks and have great day
 srini

 
 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. http://xml.apache.org/cocoon/faqs.html

 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. http://xml.apache.org/cocoon/faqs.html

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




Cannot get a Poolable before pool initialized

2001-08-16 Thread Sergio

Hi
I'm working with Cocoon 2

I receive this message when I try to create a connection with a datasource.
The configuration of datasource in cocoon.xconf is:

  datasources
jdbc name=dbpccom
  pool-controller min=5 max=10/
  auto-commitfalse/auto-commit
  dburljdbc:mysql://localhost:3306/pccom/dburl
  userpccom/user
  password/password
/jdbc
  /datasources

When I try to access to DB without any datasource it works fine:

esql:connection
  esql:driverorg.gjt.mm.mysql.Driver/esql:driver
  esql:dburljdbc:mysql://localhost:3306/pccom/esql:dburl
  esql:usernamepccom/esql:username
  esql:password/esql:password
  esql:autocommitfalse/esql:autocommit
  ...
  ...
  ...
/esql:connection

But if I try to use the datasource:

esql:connection
  esql:pooldbpccom/esql:pool
  ...
  ...
  ...
/esql:connection

that is the error:

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate():java.lang.RuntimeException: Could not get
the datasource java.sql.SQLException: You cannot get a Poolable before the
pool is initialized

¿how can I initialize the pool?


-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Why doesn't Cocoon2 recognize [position() lt; last()] ??

2001-08-16 Thread Hewko, Doug

Sure, that would be great. As I've said before, I am new to all of this,
especially setting up a server. It was a major accomplishment just getting
Tomcat to work. :)

The only things I installed was JDK 1.3.1 (which will not have an impact
here) and Xerces, which I installed so I can create XML documents. (Primarly
for the new people and to correct any errors I may have, Xerces in a XML
parser.) On my failed attempt for Cocoon1, I did install Xalan (because it
sounded good) but since my XML and XSL works fine without it, I didn't
bother for Cocoon2. 

This is probably a very stupid question, but how would one know what add-ons
are required? Assuming that I need Xalan, how would you know given my other
XSL transformations work? And I am having another XSL problem (tables in
FO), so how would I know what to install? I do not want to install
everything blindly, nor do I yet intuitively know what does what. This might
be beyond the scope of this list, and if so, please respond privately but I
suspect others may benefit from the discussion.

Thanks for your help.

-Original Message-
From: Morrison, John [mailto:[EMAIL PROTECTED]]
Sent: August 16, 2001 7:21 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Why doesn't Cocoon2 recognize [position() lt; last()] ??


Cocoon itself doesn't understand xml.  All it knows is how to hand it off to
a parser/transformer.  There _may_ be some settings which can be sent to
xalan which Cocoon doesn't know/send, if you can tell us what it is I'm sure
we can accomodate it...?

If you look in the /lib directory you'll find all the jar files Cocoon
relies on to work.  If you want more details find the document 'jars' (xml
in cvs, html when built, available on the website).

J.

 -Original Message-
 From: Hewko, Doug [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, 16 August 2001 12:17 pm
 To: '[EMAIL PROTECTED]'
 Subject: RE: Why doesn't Cocoon2 recognize [position() lt; last()] ??
 
 
 I would like to find out why it doesn't work.. I am running 
 Cocoon2. Why
 would I need Xalan?  Cocoon should be able to handle the code since it
 handled everything else I've given it.
 
 I do not understand John's question through. The output would 
 be set from
 the sitemap.xmap. I just plugged in my XML and XSL there, 
 and let Cocoon
 do the work.
 
 Is this a bug with Cocoon2?
 
 -Original Message-
 From: Morrison, John [mailto:[EMAIL PROTECTED]]
 Sent: August 13, 2001 10:49 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Why doesn't Cocoon2 recognize [position() lt; last()] ??
 
 
 Also, check versions - is C2 running with the version you 
 manually generated
 the output from?
 
  -Original Message-
  From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
  Sent: Monday, 13 August 2001 3:47 pm
  To: [EMAIL PROTECTED]
  Subject: AW: Why doesn't Cocoon2 recognize [position() lt; 
 last()] ??
  
  
  Well, you should try it with xalan standalone, to make sure 
  thats really
  a cocoon and not a xalan bug.
  Im quite sure its a xalan bug, not from cocoon, because all XSLT
  processing is managed throgh xalan (as far as i know).
  
   -Ursprüngliche Nachricht-
   Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
   Gesendet: Montag, 13. August 2001 16:42
   An: Stefan Seifert
   Betreff: RE: Why doesn't Cocoon2 recognize [position() lt; 
  last()] ??
   
   
   Thanks for the reply. FYI. From a XSL list which says that 
   this is a Cocoon2
   bug...
   
   I get the following outputs.
   
   Xalan:
   
 Jeff/555-1234/555-4321/lightgrey#13;
 David/383-1234/383-4321/lightblue#13;
 Roger/888-1234/888-4321/lightyellow#13;
   
   MSXML:
 Jeff/555-1234/555-4321/lightgrey
 David/383-1234/383-4321/lightblue
 Roger/888-1234/888-4321/lightyellow
   
   I'm not sure why this isn't working for you. It may be a bug 
   in Cocoon's
   position() function. I don't have Cocoon here, but you might 
   want to try
   playing around with the predicate and see.
   
   Also, the xsl:text#xD;#xA;/xsl:text node inserts
   carriage-return/line-feed characters, which are usually 
  stripped by a
   browser, so br/ is probably more appropriate for your 
 environment.
   
   hope this helps some...
   
   -Original Message-
   From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
   Sent: August 13, 2001 10:37 AM
   To: Hewko, Doug
   Subject: AW: Why doesn't Cocoon2 recognize [position() lt; 
  last()] ??
   
   
   I think in this case, this is not a cocoon-bug, but a 
  xalan-bug (which
   cocoon uses internally for XSLT), and xalan has its own 
  mailing lists,
   too (see apache website).
   
   Stefan
  
  
 -
  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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 ==
 

Re: Cannot get a Poolable before pool initialized

2001-08-16 Thread Xavier Haurie

Hi,

I just joined the list, searched the archive, but didn't find an answer to this
question:

The download Cocoon-2.0b2.tar.gz gives me a directory checksum error when I
untar it
on Solaris 8. Am I doing something wrong, or is this a Linux-specific archive?

Thanks in advance

--xavier


---[excerpt from my shell] ---
 gunzip Cocoon-2.0b2.tar.gz
 tar -xvf Cocoon-2.0b2.tar 
x announcement.xml, 1702 bytes, 4 tape blocks
x appendcp.bat, 18 bytes, 1 tape blocks
...
...
x
docs/api/org/apache/cocoon/components/language/markup/AbstractMarkupLanguage.CachedURL.html,
16470 bytes, 33 tape blocks
x
docs/api/org/apache/cocoon/components/language/markup/AbstractMarkupLanguage.html,
32870 bytes, 65 tape blocks
tar: directory checksum error
--

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Java variable inside of document() function?

2001-08-16 Thread Christopher Painter-Wakefield


Martin,

first, are you trying to do this in a logicsheet or in a stylesheet?  In a
logicsheet, this won't work because your logicsheet exists to generate Java
code.  The Java code doesn't exist and hasn't been compiled and can't run
yet.  Only your XSL transformations are being applied.  The xsl:for-each
select=document([the Java variable]) can't use the value stored in the
Java variable, because it doesn't exist yet.

In a stylesheet, you can't do this, because you can't use XSP Java code in
a stylesheet.  It is too late.  All XSP code has already been run,
producing XML which is being processed by your stylesheet.  You can,
however, do this:

In your XML file:
...
xsp:logic
!-- do something here to set your variable, e.g. --
String doc = info.xml;
/xsp:logic

docxsp:exprdoc/xsp:expr/doc
...

then in your XSL stylesheet:
xsl:variable name=thefile select=doc/
xsl:for-each select=document($thefile)
...

-Christopher




Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Java variable inside of document() function?


How can I use a Java variable in the document() funkction?

i.e.
xsl:for-each select=document([the Java variable])
 ...
/xsl:for-each

I have tried it with the help of

xsl:variable name=srcxsp:expr[the Java
variable]/xsp:expr/xsl:variable
xsl:for-each select=document([$src])
 ...
/xsl:for-each

but this doesn't work. xsp:expr/ won't be processed and so the value of
$name is
the String src. When I use xsp:exprsrc/xsp:expr outside of
xsl:variable/ it
works fine.

How can I solve this problem? Is there any workaround?

Thanks,
Martin





-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: transfering variable values from the java side to the xsl side

2001-08-16 Thread Christopher Painter-Wakefield


See my reply to Martin.  You have the same problem: you can't mix XSP and
XSL.  You can use XSL in a logicsheet to generate XSP code, or you can run
XSP code to generate XML and then transform the output with XSL.

-Christopher




Please respond to [EMAIL PROTECTED]

Sent by:  [EMAIL PROTECTED]


To:   [EMAIL PROTECTED]
cc:

Subject:  transfering variable values from the java side to the xsl side


Hi to all,

I'm wondering what's wrong with a code like this in an xsp/xsl
stylesheet (both processing instructions are used):

xsp:logic
 String str = foo;
/xsp:logic
xsl:variable name=var
 xsp:exprstr/xsp:expr
/xsl:variable

The xsp:expr-tag is completely ignored and the textual value str
assigned to the variable var.

Can anybody help?

I'm still using Cocoon 1.8.2.

Regards,
Markus.




-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Error with Coccon2b2 and Jakarta Tomcat 4 b7

2001-08-16 Thread Calvin Cheng

I realized the hard way that JDK 1.4 and Cocoon 2 don't work together,
thanks to the new XML APIs in JDK 1.4. Maybe that's what you have.

 -Original Message-
 From: dom [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 14, 2001 11:08 PM
 To: [EMAIL PROTECTED]
 Subject: Error with Coccon2b2 and Jakarta Tomcat 4 b7


 I cannot get Cocoon 2 beta2 to to work with C:\jakarta-tomcat-4.0-b7 on a
 Win2k machine.  Following is my web log.

 Please help!

 Thanks in advance




 DEBUG   99785   [cocoon  ] (main): Using configuration file: /cocoon.xconf
 DEBUG   99785   [cocoon  ] (main): extraClassPath is absolute:
 C:\jakarta-tomcat-4.0-b7\common\lib\servlet.jar
 DEBUG   99785   [cocoon  ] (main): Trying to load class:
 org.hsqldb.jdbcDriver
 INFO99785   [cocoon  ] (main): Reloading from:
 jndi:/localhost/cocoon/cocoon.xconf
 DEBUG   99785   [cocoon  ] (main): New Cocoon object.
 DEBUG   99785   [cocoon  ] (main): = System Properties Start =
 DEBUG   99785   [cocoon  ] (main): java.runtime.name=Java(TM) 2 Runtime
 Environment, Standard Edition
 DEBUG   99785   [cocoon  ] (main):
 sun.boot.library.path=C:\jdk1.3.1\jre\bin
 DEBUG   99785   [cocoon  ] (main): java.vm.version=1.3.1-b24
 DEBUG   99785   [cocoon  ] (main): java.vm.vendor=Sun Microsystems Inc.
 DEBUG   99785   [cocoon  ] (main): java.vendor.url=http://java.sun.com/
 DEBUG   99785   [cocoon  ] (main): path.separator=;
 DEBUG   99785   [cocoon  ] (main): java.vm.name=Java HotSpot(TM) Client VM
 DEBUG   99785   [cocoon  ] (main): file.encoding.pkg=sun.io
 DEBUG   99785   [cocoon  ] (main): java.vm.specification.name=Java Virtual
 Machine Specification
 DEBUG   99785   [cocoon  ] (main): user.dir=C:\jakarta-tomcat-4.0-b7\bin
 DEBUG   99785   [cocoon  ] (main):
 org.xml.sax.driver=org.apache.xerces.parsers.SAXParser
 DEBUG   99785   [cocoon  ] (main): java.runtime.version=1.3.1-b24
 DEBUG   99785   [cocoon  ] (main):
 java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
 DEBUG   99785   [cocoon  ] (main): os.arch=x86
 DEBUG   99785   [cocoon  ] (main):
 java.io.tmpdir=C:\DOCUME~1\dsisnero\LOCALS~1\Temp\
 DEBUG   99785   [cocoon  ] (main): line.separator=

 DEBUG   99785   [cocoon  ] (main): java.vm.specification.vendor=Sun
 Microsystems Inc.
 DEBUG   99785   [cocoon  ] (main): java.awt.fonts=
 DEBUG   99785   [cocoon  ] (main):
 java.naming.factory.url.pkgs=org.apache.naming
 DEBUG   99785   [cocoon  ] (main): os.name=Windows 2000
 DEBUG   99785   [cocoon  ] (main):
 java.library.path=C:\jdk1.3.1\bin;.;C:\WINNT\System32;C:\WINNT;C:\Program
 Files\IBM\IBMDebug\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System3
 2\Wbem;C:\
 PROGRAM
 FILES\THINKPAD\UTILITIES;C:\PROGRA~1\COMMON~1\AUTODE~1;C:\jdk1.3.1
 \bin;C:\IM
 Nnq_NT;C:\jakarta\ant1.4.b1\bin;c:\jakarta\fop-0_15_0;c:\cygwin\bi
 n;c:\Progr
 am Files\emacs207\bin;c:\Program Files\emacsen\bin;c:\Program
 Files\Ghostgum\gsview;c:\jakarta\fop-0_16_0\bin;C:\mysql\bin
 DEBUG   99785   [cocoon  ] (main): java.specification.name=Java
 Platform API
 Specification
 DEBUG   99785   [cocoon  ] (main): java.class.version=47.0
 DEBUG   99785   [cocoon  ] (main): os.version=5.0
 DEBUG   99785   [cocoon  ] (main): user.home=C:\Documents and
 Settings\dsisnero
 DEBUG   99785   [cocoon  ] (main): user.timezone=America/Denver
 DEBUG   99785   [cocoon  ] (main): catalina.useNaming=true
 DEBUG   99785   [cocoon  ] (main):
 java.awt.printerjob=sun.awt.windows.WPrinterJob
 DEBUG   99785   [cocoon  ] (main): file.encoding=Cp1252
 DEBUG   99785   [cocoon  ] (main): java.specification.version=1.3
 DEBUG   99785   [cocoon  ] (main): catalina.home=C:\jakarta-tomcat-4.0-b7
 DEBUG   99785   [cocoon  ] (main): user.name=dsisnero
 DEBUG   99785   [cocoon  ] (main):
 java.class.path=C:\jakarta-tomcat-4.0-b7\bin\bootstrap.jar;C:\jdk1
 .3.1\lib\t
 ools.jar
 DEBUG   99785   [cocoon  ] (main):
 java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory
 DEBUG   99785   [cocoon  ] (main): java.vm.specification.version=1.0
 DEBUG   99785   [cocoon  ] (main): java.home=C:\jdk1.3.1\jre
 DEBUG   99785   [cocoon  ] (main): java.specification.vendor=Sun
 Microsystems Inc.
 DEBUG   99785   [cocoon  ] (main): user.language=en
 DEBUG   99785   [cocoon  ] (main): awt.toolkit=sun.awt.windows.WToolkit
 DEBUG   99785   [cocoon  ] (main): java.vm.info=mixed mode
 DEBUG   99785   [cocoon  ] (main): java.version=1.3.1
 DEBUG   99785   [cocoon  ] (main): java.ext.dirs=C:\jdk1.3.1\jre\lib\ext
 DEBUG   99785   [cocoon  ] (main):
 sun.boot.class.path=C:\jdk1.3.1\jre\lib\rt.jar;C:\jdk1.3.1\jre\lib
 \i18n.jar;
 C:\jdk1.3.1\jre\lib\sunrsasign.jar;C:\jdk1.3.1\jre\classes
 DEBUG   99785   [cocoon  ] (main): java.vendor=Sun Microsystems Inc.
 DEBUG   99785   [cocoon  ] (main): file.separator=\
 DEBUG   99785   [cocoon  ] (main):
 java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
 DEBUG   99785   [cocoon  ] (main): sun.cpu.endian=little
 DEBUG   99785   [cocoon  ] (main): sun.io.unicode.encoding=UnicodeLittle
 DEBUG   99785   

using XSP : element ???

2001-08-16 Thread Kazi the P i R @ t {-

i am trying to use the xsp:attribute thing to put attributes into a
statically marked element. but ever since i put those in... i am getting an
error messge from the browser when i try to call the page... Has anyone ever
used these xsp elements b4?? maybe you can give me some pointers on its
use...

My code:
product
   xsp:attribute name=id
 xsp:exprtemp_bullet/xsp:expr
/*temp_bullet is a java variable of course*/
   /xsp:attribute


My Error:

org.xml.sax.SAXParseException: The content of elements must consist of
well-formed character
data or markup.
 at
org.apache.cocoon.parser.AbstractParser.fatalError(AbstractParser.java:105)
 at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1037)
 at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocume
ntScanner.java:625)
 at
org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentScanne
r.java:679)
 at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1245)
 at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:380)
 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
 at org.apache.cocoon.parser.XercesParser.parse(XercesParser.java:85)
 at
org.apache.cocoon.parser.AbstractParser.parse(AbstractParser.java:83)
 at
org.apache.cocoon.producer.ProducerFromFile.getDocument(ProducerFromFile.jav
a:78)
 at org.apache.cocoon.Engine.handle(Engine.java:359)
 at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 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:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)


-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: using XSP : element ???

2001-08-16 Thread Greg Murphy

This looks like a problem with the parsing not the tag, try sticking to XML 
comments inside XML files e.g.

product
  xsp:attribute name=id
xsp:exprtemp_bullet/xsp:expr
!-- temp_bullet is a java variable of course --
  /xsp:attribute


From: Kazi the P i R @ t {- [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: using XSP : element  ???
Date: Thu, 16 Aug 2001 16:30:11 +0800

i am trying to use the xsp:attribute thing to put attributes into a
statically marked element. but ever since i put those in... i am getting an
error messge from the browser when i try to call the page... Has anyone 
ever
used these xsp elements b4?? maybe you can give me some pointers on its
use...

My code:
 product
xsp:attribute name=id
  xsp:exprtemp_bullet/xsp:expr
/*temp_bullet is a java variable of course*/
/xsp:attribute


My Error:

org.xml.sax.SAXParseException: The content of elements must consist of
well-formed character
 data or markup.
  at
org.apache.cocoon.parser.AbstractParser.fatalError(AbstractParser.java:105)
  at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1037)
  at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocume
ntScanner.java:625)
  at
org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentScanne
r.java:679)
  at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1245)
  at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:380)
  at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
  at org.apache.cocoon.parser.XercesParser.parse(XercesParser.java:85)
  at
org.apache.cocoon.parser.AbstractParser.parse(AbstractParser.java:83)
  at
org.apache.cocoon.producer.ProducerFromFile.getDocument(ProducerFromFile.jav
a:78)
  at org.apache.cocoon.Engine.handle(Engine.java:359)
  at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
  at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
  at org.apache.tomcat.core.Handler.service(Handler.java:286)
  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:210)
  at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
  at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
  at java.lang.Thread.run(Thread.java:484)


-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Cannot get a Poolable before pool initialized

2001-08-16 Thread Berin Loritsch

If you have a version of Cocoon that is compiled with the latest
Avalon jars (Excalibur/Framework/LogKit), you can add in the element
drivercom.company.jdbc.CompanyDriver/driver and have it loaded
that way.  Otherwise, you _must_ load your driver with the load-class
initial parameter specified in web.xml.

Check the FAQ.

Also, with the next version of Excalibur, you will get better error
reporting so that it will tell you what to do.

Sergio wrote:
 
 Hi
 I'm working with Cocoon 2
 
 I receive this message when I try to create a connection with a datasource.
 The configuration of datasource in cocoon.xconf is:
 
   datasources
 jdbc name=dbpccom
   pool-controller min=5 max=10/
   auto-commitfalse/auto-commit
   dburljdbc:mysql://localhost:3306/pccom/dburl
   userpccom/user
   password/password
 /jdbc
   /datasources
 
 When I try to access to DB without any datasource it works fine:
 
 esql:connection
   esql:driverorg.gjt.mm.mysql.Driver/esql:driver
   esql:dburljdbc:mysql://localhost:3306/pccom/esql:dburl
   esql:usernamepccom/esql:username
   esql:password/esql:password
   esql:autocommitfalse/esql:autocommit
   ...
   ...
   ...
 /esql:connection
 
 But if I try to use the datasource:
 
 esql:connection
   esql:pooldbpccom/esql:pool
   ...
   ...
   ...
 /esql:connection
 
 that is the error:
 
 org.apache.cocoon.ProcessingException: Exception in
 ServerPagesGenerator.generate():java.lang.RuntimeException: Could not get
 the datasource java.sql.SQLException: You cannot get a Poolable before the
 pool is initialized
 
 ¿how can I initialize the pool?
 
 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]