Re: cocoon won't deploy

2002-11-05 Thread Karl Øie
- Root Cause -
java.security.AccessControlException: access denied (java.lang.RuntimePermission createSecurityManager)
 at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
 at java.security.AccessController.checkPermission(AccessController.java:401)
 at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
 at java.lang.SecurityManager.(SecurityManager.java:298)
 at org.apache.cocoon.util.log.CocoonLogFormatter$CallStack.(CocoonLogFormatter.java:99)
 at org.apache.cocoon.util.log.CocoonLogFormatter.(CocoonLogFormatter.java:127)
 at org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:803)
 at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:282)


i just looked at your stacktrace and it looks like your appserver's runtime permissions is preventing cocoon from initializing cocoons logger, check where cocoon wants to place it's logs, and then assign permissions to your appserver for cocoon.

mvh karl øie



On Tuesday, Nov 5, 2002, at 16:39 Europe/Oslo, Kyle Koss wrote:

- Root Cause -

java.security.AccessControlException: access denied (java.lang.RuntimePermission createSecurityManager)

 at java.security.AccessControlContext.checkPermission(AccessControlContext.

java:270)

 at java.security.AccessController.checkPermission(AccessController.java:401

)

 at

java.lang.SecurityManager.checkPermission(SecurityManager.java:542)

 at java.lang.SecurityManager.(SecurityManager.java:298)

 at org.apache.cocoon.util.log.CocoonLogFormatter$CallStack.(CocoonLog

Formatter.java:99)

 at org.apache.cocoon.util.log.CocoonLogFormatter.(CocoonLogFormatter.

java:127)

 at org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:80

3)

 at

org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:282)


RE: How can i pass my request-parameter to my servlet

2002-02-25 Thread Karl Øie
Title: How can i pass my request-parameter to my servlet



you 
know, i was not answering to your question here. sorry! :-)
 
mvh 
karl

  -Original Message-From: Karl Øie 
  [mailto:[EMAIL PROTECTED]]Sent: 25. februar 2002 12:06To: 
  [EMAIL PROTECTED]; [EMAIL PROTECTED]Subject: RE: How can i 
  pass my request-parameter to my servlet
       
   
      >
      
      

   
   
  you 
  will have to add "use-request-parameters" equals "true" to the 
  transformer.
   
  mvh 
  karl øie
  
-Original Message-From: 罗鸣/eNet/技术服务事业部/系统部/总监 
[mailto:[EMAIL PROTECTED]]Sent: 25. februar 2002 
12:00To: '[EMAIL PROTECTED]'Subject: How can 
i pass my request-parameter to my servlet
Hello all, How can i pass my 
request-parameter to my servlet 
example  I send this request http://c2.mydomain.com/path/test.xml?pa=0&pb=1&pc=2 
 I want get xml file from servlet http://myservletserver/myservlet?pa=0&pb=1&pc=2 
 and use a xsl to transform it into html 

my sitemap.xmap 
...      
 
              
it cannot work how can i do ? 
Thanks 


RE: How can i pass my request-parameter to my servlet

2002-02-25 Thread Karl Øie
Title: How can i pass my request-parameter to my servlet



     
 
    >
    
    
  
 
 
you 
will have to add "use-request-parameters" equals "true" to the 
transformer.
 
mvh 
karl øie

  -Original Message-From: 罗鸣/eNet/技术服务事业部/系统部/总监 
  [mailto:[EMAIL PROTECTED]]Sent: 25. februar 2002 12:00To: 
  '[EMAIL PROTECTED]'Subject: How can i pass my 
  request-parameter to my servlet
  Hello all, How can i pass my 
  request-parameter to my servlet 
  example  I send this request http://c2.mydomain.com/path/test.xml?pa=0&pb=1&pc=2 
   I want get xml file from servlet http://myservletserver/myservlet?pa=0&pb=1&pc=2 
   and use a xsl to transform it into html 
  my sitemap.xmap 
  ...      
   
                
  it cannot work how can i do ? 
  Thanks 


RE: XML --> CSV file download to client

2002-02-15 Thread Karl Øie

>Environment:
>Cocoon 1.8.2 (sorry, despite all the gentle support on
>the list we couldn't get C2 running with X, and we don't have the time
>for experiments, right now)

btw: if you dont need the svg stuff i run rh6.2 + tomcat3.3a + c2.0.1 +
blackdown-1.3.0 without any x11 support at all by just commenting out the
"svgxml" serializer from the sitemap and remove all the examples using it...



i dont know if this fixes your problem but i can run without xvfb or pja
this way.

mvh karl øie


-
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: RE: XML --> CSV file download to client

2002-02-15 Thread Karl Øie

if i get this right, the easiest way would be to put up a new match in the
pipeline;
















then the cvs file would get the name some-page.cvs ?!?

mvh karl


-Original Message-
From: Baer Peter [mailto:[EMAIL PROTECTED]]
Sent: 15. februar 2002 11:31
To: [EMAIL PROTECTED]
Subject: Re: RE: XML --> CSV file download to client



"text/plain" works, but I still have the file name problem...

<[EMAIL PROTECTED]> wrote:
 >you could just try "test/plain" for csv ...


Peter Christoph Alexander Bär wrote:
> Thanks for the quick response. Although the two of us are German,
> obviously, let's stick to English with respect to the other users of
> this mailing list. ;-)
>
> I have this...
>
> 
>   type="text/x-csv"
> 
>
> and get that...
>
> java.lang.Exception: No formatter for type "text/x-csv"
>
> That's why I wonder, if this MIME type is supported, at all, by C1.
>
> Unfortunately we were so far unable to get C2 running the way we need
> it, which probably means that we cannot use the sitemap trick suggested
> in the thread on xml writing to a file.
>
>
> Kubanek, Petr wrote:
>
>>> (1)
>>> When a user clicks on a specific hyperlink, a CSV file should be
>>> created and sent to him. The file should not have the name of the
>>> page called. Instead of .xml the file extension must be .csv.
>>>
>>> For the moment, it is good enough to have the user right-click on
>>> the hyperlink in order to get the file downloaded instead having it
>>> displayed in their browser. But the filename is the name of the page,
>>> which is not what we want...
>>>
>>> I've read the thread "writing xml to file" and others on this list.
>>> Do I really have to change the sitemap, here? Or is there any other
>>> way to change the file name? Is changing the sitemap the only means
>>> to avoid having the content of the file enclosed in XML tags?
>>>
>>
>> You have to change mime type. How browser save file is browser
>> dependinding
>> - are you serving dynamic or static CVS files?
>>
>>
>>> (2)
>>> There's a MIME type for CSV (x-csv). What is the exact syntax to
>>> set this MIME type?
>>>
>>> type=text/x-csv
>>>
>>> results in an error message. Can it be that the type is not supported
>>> by Cocoon?
>>>
>>
>> Most probably type="text/x-csv". Hochkomas sind wichtig!
>>
>>
>>> Environment:
>>> Cocoon 1.8.2 (sorry, despite all the gentle support on
>>> the list we couldn't get C2 running with X, and we don't have the time
>>> for experiments, right now)
>>> Tomcat 3.2.4
>>> SuSE Linux 7.3.
>>> Xfree86 4.1
>>> Blackdown J2SDK 1.3.1-02a
>>>
>>> Thanks!
>>>
>>> --
>>> +---+-
>>> +
>>> |  >>>  mailto:[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]>
>>>
>
>


--
+---+-+
|Peter C. A. Bär| Siemens Business Services & Co. OHG |
|Fon  +49.911.654-2387  | Von-der-Tann-Str. 30-31 |
|Fax  +49.911.654-2108  | 90439 Nürnberg  |
|   | Deutschland |
+---+-+
|  >>>  mailto:[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]>


-
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: XML --> CSV file download to client

2002-02-15 Thread Karl Øie

you could just try "test/plain" for csv 

-Original Message-
From: Baer Peter [mailto:[EMAIL PROTECTED]]
Sent: 15. februar 2002 10:44
To: [EMAIL PROTECTED]
Subject: XML --> CSV file download to client


Hi,

I'm currently stuck with creating and sending a CSV file.


(1)
When a user clicks on a specific hyperlink, a CSV file should be
created and sent to him. The file should not have the name of the
page called. Instead of .xml the file extension must be .csv.

For the moment, it is good enough to have the user right-click on
the hyperlink in order to get the file downloaded instead having it
displayed in their browser. But the filename is the name of the page,
which is not what we want...

I've read the thread "writing xml to file" and others on this list.
Do I really have to change the sitemap, here? Or is there any other
way to change the file name? Is changing the sitemap the only means to 
avoid having the content of the file enclosed in XML tags?

(2)
There's a MIME type for CSV (x-csv). What is the exact syntax to
set this MIME type?

type=text/x-csv

results in an error message. Can it be that the type is not supported
by Cocoon?


Environment:
Cocoon 1.8.2 (sorry, despite all the gentle support on
the list we couldn't get C2 running with X, and we don't have the time
for experiments, right now)
Tomcat 3.2.4
SuSE Linux 7.3.
Xfree86 4.1
Blackdown J2SDK 1.3.1-02a

Thanks!

-- 
+---+-+
|  >>>  mailto:[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]>


-
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: Applet With cocoon

2002-01-07 Thread Karl Øie



since 
the sitemap 
servlet "takes over" "/" you might have to put up a match for 
*.class files into the sitemap just like jpg, gif, js, css and other 
files.
 
mvh 
karl øie
 

  -Original Message-From: Ferran Urgell 
  [mailto:[EMAIL PROTECTED]]Sent: 7. januar 2002 
  11:03To: [EMAIL PROTECTED]Subject: Applet With 
  cocoon
  Hi everybody!!!
   
  I'm a new user in cocoon, and I'm searching about 
  the applets in cocoon. I've tried to put an applet, but not 
  works...
  Why ? I need help about this..
  I don't have an idea about applets with 
  cocoon
   
   
  Thanks
   
  Ferran


RE: Could not load class..

2001-12-21 Thread Karl Øie

what jdk do you use? i had this exact same error while running ibm-jdk-1.3.
please tell me if you resolve this!

mvh karl øie



-Original Message-
From: Aguirre, Carlos (C.) [mailto:[EMAIL PROTECTED]]
Sent: 20. desember 2001 21:51
To: '[EMAIL PROTECTED]'
Subject: Could not load class..


i have this error when i try make a request to a xsp page,

worth to mention that xsp samples are working fine..

Tomcat 3.3
Cocoon 2
JDK 1.3

any clue



type internal-server-error

message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org\apache\cocoon\www\hola_xsp' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.hola_xsp

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/hola.xsp

exception

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org\apache\cocoon\www\hola_xsp' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.hola_xsp

path-info

hola.xsp

stacktrace

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org\apache\cocoon\www\hola_xsp' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.hola_xsp
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:274)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:188)
at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator
.java:170)
at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
stractEventPipeline.java:142)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
tPipeline.java:239)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi
ngEventPipeline.java:99)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:277)
at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400598(sitemap_xmap.java:92
32)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3046)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2476)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown
Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org\apache\cocoon\www\hola_xsp' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.hola_xsp
at
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg
ram(JavaLanguage.java:124)
at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e.load(CompiledProgrammingLanguage.java:144)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:321)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:271)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:188)
at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator
.java:170)
at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
stractEventPipeline.java:142)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
tPipeline.java:239)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi
ngEventPipeline.java:99)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.p

RE: Http 404

2001-12-13 Thread Karl Øie

please supply a stack-trace?

mvh karl øie

>  -Original Message-
> From: vishakha kulkarni [mailto:[EMAIL PROTECTED]] 
> Sent: 13. desember 2001 17:31
> To:   [EMAIL PROTECTED]
> Subject:  Http 404
> 
> Hi all,
> 
> I recently downloaded cocoon 2 and am trying to run it with tomcat 3.2.1.
> I followed all the installation instrcutions,
> However whenever I run tomcat, in the startup screen I see a message
> saying "Could not load servlet: Cocoon2:
> And when I put my browser at http://localhost:8080/cocoon
> I get Http:404.
> 
> Is there anything I need to check?
> 
> Thanks in advance,
> 
> Vishakha Kulkarni
> 
> Pace Software
> 5, Clare Street,
> Dublin
> 
> Tel: 6628170
> 
>  << File: ATT00038.txt >> 

<>
-
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: urgent encoding problem...

2001-12-13 Thread Karl Øie



arg, 
ok you are using cocoon1, well in cocoon1 serializers are called formatters i 
think (i have never used c1 myself), HTMLSerializer is called HTMLFormater and 
can be found at org.apache.cocoon.formatter.HTMLFormatter.
 
http://cvs.apache.org/viewcvs.cgi/xml-cocoon/src/org/apache/cocoon/formatter/
 
please note that it looks like the formatter in c1 
is not using javax.xml directly, but rather org.apache.xml 
api's.
 
 
mvh 
karl øie
 

  -Original Message-From: Arun.N 
  [mailto:[EMAIL PROTECTED]]Sent: 13. desember 2001 
  13:32To: [EMAIL PROTECTED]; 
  [EMAIL PROTECTED]Subject: Re: urgent encoding 
  problem...
  Hi karl,
      
              In cocoon 1.8.2 there 
  is no XMLSerializer ot HTMLSerializer .. can you tell which are the files 
  which does the work of these in 1.8. 2  
  please
  reg
  Arun.N
      
  
  - Original Message - 
  
From: 
    Karl Øie 
To: [EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2001 6:33 
PM
Subject: RE: urgent encoding 
problem...

erm... that code snipple was from the 
XMLSerializer, not the HTMLSerializer as i wrote, but the approach should be 
the same.. sorry!
 
    mvh karl øie

  -Original Message-From: Karl Øie 
  [mailto:[EMAIL PROTECTED]]Sent: 12. desember 2001 13:51To: 
  [EMAIL PROTECTED]; 
  Arun.NSubject: RE: urgent encoding 
  problem...
  the increasing page size does not concern me (:-) 
  because the serializer should write directly to the 
  response.getPrintWriter(). Then again, the serializer does not flush 
  before the end of the page, so users must wait till the page is 
  finished.
   
  when it comes to the missing characters. you 
  could try to create your own serializer, let's take a look at the code for 
  the HTMLSerializer 
  (org.apache.cocoon.serialization.XMLSerializer);
   
  the method for the outputstream uses javax.xml to 
  set the transformers properties
   
      public void 
  setOutputStream(OutputStream out) 
  {    try 
  {    
  super.setOutputStream(out);    
  this.handler = 
  getTransformerFactory().newTransformerHandler();    
  format.put(OutputKeys.METHOD,"xml");    
  handler.setResult(new 
  StreamResult(this.output));    
  handler.getTransformer().setOutputProperties(format);    
  this.setContentHandler(handler);    
  this.setLexicalHandler(handler);    
  } catch (Exception e) 
  {    
  getLogger().error("XMLSerializer.setOutputStream()", 
  e);    
  throw new 
  RuntimeException(e.toString());    
  }    }
   
   
  if you here force the transformer to use your 
  encoding like this;
   
   
  
      public void 
  setOutputStream(OutputStream out) 
  {    try 
  {    
  super.setOutputStream(out);    
  this.handler = 
  getTransformerFactory().newTransformerHandler();    
  format.put(OutputKeys.METHOD,"xml");
      
  format.put(OutputKeys.ENCODING,"SHIFT_JIS");    <- 
  add this
      
  handler.setResult(new 
  StreamResult(this.output));    
  handler.getTransformer().setOutputProperties(format);    
  this.setContentHandler(handler);    
  this.setLexicalHandler(handler);    
  } catch (Exception e) 
  {    
  getLogger().error("XMLSerializer.setOutputStream()", 
  e);    
  throw new 
  RuntimeException(e.toString());    
  }    }
   
  and then recompile cocoon, now try to your page 
  and tell me what happens. please also read this note from the xalan 
  faq
   
  http://xml.apache.org/xalan-j/usagepatterns.html#outputencoding
   
   
  mvh karl øie
   
   
  
-Original Message-From: Arun.N 
[mailto:[EMAIL PROTECTED]]Sent: 12. desember 2001 
13:33To: [EMAIL PROTECTED]; 
[EMAIL PROTECTED]Subject: Re: urgent encoding 
problem...
Thank you karl. 
    
    I have fixed that problem and i have followed the 
method which you have said. 
every thing is being 
displayed properly but there is still a problem in the source code. 

if the string 
contains    
‚±‚¿‚ç‚É–|–óŒã‚Ì•¶Í‚ª•\Ž¦‚³‚ê‚Ü‚·B
it is priniting 
こちらに翻訳後の文章が表示されます。
but when i look into the 
source of the output html it is showing  
こちらに翻訳後の文章が表示されます。
 
if the source has characters 
like this also ‚±‚¿‚ç‚É–|–óŒã‚Ì•¶Í‚ª•\Ž¦‚³‚ê‚Ü‚·B it 
will work fine and out

RE: urgent encoding problem...

2001-12-12 Thread Karl Øie



erm... 
that code snipple was from the XMLSerializer, not the HTMLSerializer as i wrote, 
but the approach should be the same.. sorry!
 
mvh 
karl øie

  -Original Message-From: Karl Øie 
  [mailto:[EMAIL PROTECTED]]Sent: 12. desember 2001 13:51To: 
  [EMAIL PROTECTED]; Arun.NSubject: RE: urgent encoding 
  problem...
  the 
  increasing page size does not concern me (:-) because the serializer should 
  write directly to the response.getPrintWriter(). Then again, the serializer 
  does not flush before the end of the page, so users must wait till the page is 
  finished.
   
  when 
  it comes to the missing characters. you could try to create your own 
  serializer, let's take a look at the code for the HTMLSerializer 
  (org.apache.cocoon.serialization.XMLSerializer);
   
  the 
  method for the outputstream uses javax.xml to set the transformers 
  properties
   
      public void 
  setOutputStream(OutputStream out) 
  {    try 
  {    
  super.setOutputStream(out);    
  this.handler = 
  getTransformerFactory().newTransformerHandler();    
  format.put(OutputKeys.METHOD,"xml");    
  handler.setResult(new 
  StreamResult(this.output));    
  handler.getTransformer().setOutputProperties(format);    
  this.setContentHandler(handler);    
  this.setLexicalHandler(handler);    
  } catch (Exception e) 
  {    
  getLogger().error("XMLSerializer.setOutputStream()", 
  e);    
  throw new 
  RuntimeException(e.toString());    
  }    }
   
   
  if 
  you here force the transformer to use your encoding like 
  this;
   
   
  
      public void 
  setOutputStream(OutputStream out) 
  {    try 
  {    
  super.setOutputStream(out);    
  this.handler = 
  getTransformerFactory().newTransformerHandler();    
  format.put(OutputKeys.METHOD,"xml");
      
  format.put(OutputKeys.ENCODING,"SHIFT_JIS");    <- add 
  this
      
  handler.setResult(new 
  StreamResult(this.output));    
  handler.getTransformer().setOutputProperties(format);    
  this.setContentHandler(handler);    
  this.setLexicalHandler(handler);    
  } catch (Exception e) 
  {    
  getLogger().error("XMLSerializer.setOutputStream()", 
  e);    
  throw new 
  RuntimeException(e.toString());    
  }    }
   
  and 
  then recompile cocoon, now try to your page and tell me what happens. please 
  also read this note from the xalan faq
   
  http://xml.apache.org/xalan-j/usagepatterns.html#outputencoding
   
   
  mvh 
  karl øie
   
   
  
-Original Message-From: Arun.N 
[mailto:[EMAIL PROTECTED]]Sent: 12. desember 2001 
13:33To: [EMAIL PROTECTED]; 
[EMAIL PROTECTED]Subject: Re: urgent encoding 
problem...
Thank you karl. 
    
    I have fixed that problem and i have followed the method 
which you have said. 
every thing is being displayed 
properly but there is still a problem in the source code. 
if the string 
contains    ‚±‚¿‚ç‚É–|–óŒã‚Ì•¶Í‚ª•\Ž¦‚³‚ê‚Ü‚·B
it is priniting 
こちらに翻訳後の文章が表示されます。
but when i look into the source 
of the output html it is showing  
こちらに翻訳後の文章が表示されます。
 
if the source has characters like 
this also ‚±‚¿‚ç‚É–|–óŒã‚Ì•¶Í‚ª•\Ž¦‚³‚ê‚Ü‚·B it will work fine 
and out put japanese characters will be the same . but why is cocoon 
processor replacing everything into numbers. My concern here is, it is 
increasing the page size.
any comments in this regard 
???
Thankx in advance,
Arun.N
 
 
    
      - Original Message - 
  From: 
  Karl Øie 
  To: [EMAIL PROTECTED] ; Arun.N 
  
  Sent: Wednesday, December 12, 2001 
  5:44 PM
  Subject: RE: urgent encoding 
  problem...
  
  it's not that people don't bother to answer you 
  but a lot of people here don't have any experience with shift-jis 
  encoding. as a Norwegian I have the same problem, non Scandinavians can 
  hardly reproduce problems revolving 
  Scandinavian-characters.
   
  when it comes to your string problem there can be several sources. 
  first of all you can test the dom by feeding it a string that has been 
  created with a declared encoding, like :
   
  new String( "æ e trønder æ å" ); will not work on all 
  jdks/platforms
  new 
  String( "æ e trønder æ å", 
  "UTF-16" ); will work on most sane 
  jdks/platforms
  try to create all your strings with shift_jis 
  forced, just in case. second find out weither StringWriter does support 
  shift_jis, as far as i know StringWriter are working on chars and strings 
  and should support shift_jis if all strings fed to it is shift_jis 
  created. lastly ther

RE: urgent encoding problem...

2001-12-12 Thread Karl Øie



the 
increasing page size does not concern me (:-) because the serializer should 
write directly to the response.getPrintWriter(). Then again, the serializer does 
not flush before the end of the page, so users must wait till the page is 
finished.
 
when 
it comes to the missing characters. you could try to create your own serializer, 
let's take a look at the code for the HTMLSerializer 
(org.apache.cocoon.serialization.XMLSerializer);
 
the 
method for the outputstream uses javax.xml to set the transformers 
properties
 
    public void 
setOutputStream(OutputStream out) 
{    try 
{    
super.setOutputStream(out);    
this.handler = 
getTransformerFactory().newTransformerHandler();    
format.put(OutputKeys.METHOD,"xml");    
handler.setResult(new 
StreamResult(this.output));    
handler.getTransformer().setOutputProperties(format);    
this.setContentHandler(handler);    
this.setLexicalHandler(handler);    } 
catch (Exception e) 
{    
getLogger().error("XMLSerializer.setOutputStream()", 
e);    throw 
new 
RuntimeException(e.toString());    
}    }
 
 
if you 
here force the transformer to use your encoding like this;
 
 

    public void 
setOutputStream(OutputStream out) 
{    try 
{    
super.setOutputStream(out);    
this.handler = 
getTransformerFactory().newTransformerHandler();    
format.put(OutputKeys.METHOD,"xml");
    
format.put(OutputKeys.ENCODING,"SHIFT_JIS");    <- add 
this
    
handler.setResult(new 
StreamResult(this.output));    
handler.getTransformer().setOutputProperties(format);    
this.setContentHandler(handler);    
this.setLexicalHandler(handler);    } 
catch (Exception e) 
{    
getLogger().error("XMLSerializer.setOutputStream()", 
e);    throw 
new 
RuntimeException(e.toString());    
}    }
 
and 
then recompile cocoon, now try to your page and tell me what happens. please 
also read this note from the xalan faq
 
http://xml.apache.org/xalan-j/usagepatterns.html#outputencoding
 
 
mvh 
karl øie
 
 

  -Original Message-From: Arun.N 
  [mailto:[EMAIL PROTECTED]]Sent: 12. desember 2001 
  13:33To: [EMAIL PROTECTED]; 
  [EMAIL PROTECTED]Subject: Re: urgent encoding 
  problem...
  Thank you karl. 
      
      I have fixed that problem and i have followed the method 
  which you have said. 
  every thing is being displayed 
  properly but there is still a problem in the source code. 
  if the string 
  contains    ‚±‚¿‚ç‚É–|–óŒã‚Ì•¶Í‚ª•\Ž¦‚³‚ê‚Ü‚·B
  it is priniting 
  こちらに翻訳後の文章が表示されます。
  but when i look into the source of 
  the output html it is showing  
  こちらに翻訳後の文章が表示されます。
   
  if the source has characters like 
  this also ‚±‚¿‚ç‚É–|–óŒã‚Ì•¶Í‚ª•\Ž¦‚³‚ê‚Ü‚·B it will work fine and 
  out put japanese characters will be the same . but why is cocoon processor 
  replacing everything into numbers. My concern here is, it is increasing the 
  page size.
  any comments in this regard 
  ???
  Thankx in advance,
  Arun.N
   
   
  
- Original Message - 
From: 
Karl Øie 
To: [EMAIL PROTECTED] ; Arun.N 

Sent: Wednesday, December 12, 2001 5:44 
PM
Subject: RE: urgent encoding 
problem...

it's not that people don't bother to answer you but 
a lot of people here don't have any experience with shift-jis encoding. as a 
Norwegian I have the same problem, non Scandinavians can hardly reproduce 
problems revolving Scandinavian-characters.
 
when it comes to your string problem there can be several sources. 
first of all you can test the dom by feeding it a string that has been 
created with a declared encoding, like :
 
new String( "æ e trønder æ å" ); will not work on all 
jdks/platforms
new String( "æ e trønder æ å", "UTF-16" ); will 
work on most sane jdks/platforms
try 
to create all your strings with shift_jis forced, just in case. second find 
out weither StringWriter does support shift_jis, as far as i know 
StringWriter are working on chars and strings and should support shift_jis 
if all strings fed to it is shift_jis created. lastly there is some problems 
regarding the PrintWriter that the servlet api are using to return 
serialized content to the browser, try to serialize to a file instead of to 
the browser, if the file accepts shift_jis then you should look up 
fixes/gotchas regarding shift_jis and jsp as cocoon are using the jsp 
mechanism to send the response back to the user.
the 
best place to start looking is the xalan faqs and docs because if you use 
the xml or html serializer it's using the xalan 
implementations.
mvh 
karl øie
 

  -Original Message-From: Arun.N 
  [mailto:[E

RE: urgent encoding problem...

2001-12-12 Thread Karl Øie



it's 
not that people don't bother to answer you but a lot of people here don't have 
any experience with shift-jis encoding. as a Norwegian I have the same problem, 
non Scandinavians can hardly reproduce problems revolving 
Scandinavian-characters.
 
when 
it comes to your string problem there can be several sources. first of all you 
can test the dom by feeding it a string that has been created with a declared 
encoding, like :
 
new String( "æ e trønder æ å" ); will not work on all 
jdks/platforms
new String( "æ e trønder æ å", "UTF-16" ); will work 
on most sane jdks/platforms
try to 
create all your strings with shift_jis forced, just in case. second find out 
weither StringWriter does support shift_jis, as far as i know StringWriter are 
working on chars and strings and should support shift_jis if all strings fed to 
it is shift_jis created. lastly there is some problems regarding the PrintWriter 
that the servlet api are using to return serialized content to the browser, try 
to serialize to a file instead of to the browser, if the file accepts shift_jis 
then you should look up fixes/gotchas regarding shift_jis and jsp as cocoon are 
using the jsp mechanism to send the response back to the user.
the best 
place to start looking is the xalan faqs and docs because if you use the xml or 
html serializer it's using the xalan implementations.
mvh karl 
øie
 

  -Original Message-From: Arun.N 
  [mailto:[EMAIL PROTECTED]]Sent: 12. desember 2001 
  12:48To: [EMAIL PROTECTED]Subject: Re: urgent 
  encoding problem...
  Hi all,
      
          First of all i thank everybody for not 
  bothering to reply. I corrected the second and the third problem. If the list 
  is still alive and anyone cares to give me solution for the first 
  problem please do reply.
  thankx,
  Arun.N
   
  
- Original Message - 
From: 
Arun.N 

To: [EMAIL PROTECTED] 
Sent: Tuesday, December 11, 2001 1:31 
PM
Subject: urgent encoding 
problem...

Hi all,
    I 
have some problems with the xsp pages and encoding. When i try to display 
Shift_JIS encoded characters it is not displaying properly.
when i hard code the japnese 
characters it is working properly. for example in this xsp page
 




  
language="java"  encoding="Shift_JIS"  xmlns:xsp="http://www.apache.org/1999/XSP/Core"  
xmlns:request="http://www.apache.org/1999/XSP/Request"  
xmlns:util="http://www.apache.org/1999/XSP/Util" 
 >
   melpo View 
Mail
  
    
    
‚ ‚È‚½‚ÌPC‚Ì’†‚̃[ƒ‹ƒNƒ‰ƒCƒAƒ“ƒg‚ªÄŠJ‚³‚ê‚Ü‚µ‚½B 

    


 
the display html is working fine 
and the characters are working properly .. but the source of the html shows 


    

    あなたのPCの中のメールクライアントが再開されました。 

    



 
but why is the characters 
converted into numbers. the problem i have here is this consumes more bytes 
.. so if the device has some size limitations of the source of the 
page then it is a problem. if the characters are left same way then it 
would consume less bytes for the source page.
 
 
The second problem is, 
when i dynamically include xml in my xsp it is not working. But 
the same string when hardcode in the xsp page it is working 
fine.





  
language="java"  encoding="Shift_JIS"  xmlns:xsp="http://www.apache.org/1999/XSP/Core"  
xmlns:request="http://www.apache.org/1999/XSP/Request"  
xmlns:util="http://www.apache.org/1999/XSP/Util" 
 >
   melpo View 
Mail
  
    
    
 String 
xml = (String) request.getAttribute(xml);
        
   
    
xml  
// this will append an xml string like 
‚ ‚È‚½‚ÌPC‚Ì’†‚̃[J‚³‚ê‚Ü‚µ‚½B 
  
            

        
    


 
i am getting an error 

 
org.xml.sax.SAXException: An invalid XML character (Unicode: 0x13) 
was found in the element content of the document. [FATAL ERROR] [File: 
"null" Line: 1 Column: 109] (nested exception: 
org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x13) was 
found in the element content of the document.)
But the string i am getting if hardcoded 
itzworking fine. because whrn i hardcode it, the xsp page when getting 
compiled, it is converting all the characters to those numbers. and whenever 
the string is dynamically included the it is not 
working..
 
and the third problem is ,
    when i load a 
string to a dom andthen get back the string the encoding information is 
gone.The characers displayed are ???

RE: no such method error!

2001-12-11 Thread Karl Øie

you might got a problem with crimson and xalan fighting for jaxp status in
the classpath, se the faq.

mvh karl øie



-Original Message-
From: Phillip Gibb [mailto:[EMAIL PROTECTED]]
Sent: 11. desember 2001 07:52
To: '[EMAIL PROTECTED]'
Subject: no such method error!


Hi,

I have just installed Cocoon and I get this message when I try to
view a xml page with a stylesheet

The sitemap handler's sitemap is not available. Please check logs for
the exact error

the error in cocoon.log is : java.lang.NoSuchMethodError

xml :



Hello, world!

stylesheet :


http://www.w3.org/1999/XSL/Transform>"
version="1.0">







I get the same error for other xml & xsl pages

any suggestions will be greatly appreciated

tks

Phill






**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.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]>




RE: Using document() in a stylesheet

2001-12-11 Thread Karl Øie

one approach that worked for me was to rewrite/subclass the
org.apache.cocoon.components.xslt.XSLTransformerImpl to not use the
mru-store, or even better conditionally use the store, say by checking a
"nocache" parameter (what i did).

mvh karl øie


-Original Message-
From: Lock, Fred [mailto:[EMAIL PROTECTED]]
Sent: 11. desember 2001 00:34
To: '[EMAIL PROTECTED]'
Subject: Using document() in a stylesheet


Hi,

I want to do this in a stylesheet:

http://some-server/some-doc.xml')"/>

The first time the stylesheet is run, the URL in the document() function is
accessed. After that, it appears to be cached, and any changes to
"some-doc.xml" are not reflected in the output of the document function.

Is there any way to turn off this caching so that everytime the stylesheet
is run, the URL is accessed, and changes to "some-doc.xml" are seen?

Thanks,
Fred

-
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: Cocoon War and Command line

2001-12-10 Thread Karl Øie



use 
jar to unpack your war file, inside you will find the 
cocoon.jar.
 
mvh 
karl øie
 
 

  -Original Message-From: vendo 
  [mailto:[EMAIL PROTECTED]]Sent: 8. desember 2001 
  14:52To: cocoonSubject: Cocoon War and Command 
  line
  Hi,
  I got the latest release of cocoon, for windows, 
  but how to access the command line if there isn't any cocoon.jar?
   
  Vendo


RE: Problem installing under JBoss + Tomcat (NoClassDefFoundError:Generator)

2001-12-07 Thread Karl Øie

what jdk are you using?

-Original Message-
From: Yuri Gadow [mailto:[EMAIL PROTECTED]]
Sent: 6. desember 2001 14:28
To: Cocoon Users
Subject: Problem installing under JBoss + Tomcat
(NoClassDefFoundError:Generator)


Looking for pointers on tracking down the following problem:

On trying to access any URL after cocoon/ (whether it be cocoon/blah or
a legitimate, sitemap matched URL), I'm getting the ubiquitous
"org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is
not available." with the exception java.lang.NoClassDefFoundError:
org/apache/cocoon/generation/Generator showing up in cocoon's log.

I'm a little confused here, as that interface is both available on the
classpath and is being reported as having been successfully loaded by
the (or I should say, a) class loader.

I am using Cocoon 2.0 under the integrated JBoss + Tomcat (2.4.3/3.2.3)

Full (partially mail-mangled) stack trace follows:

ERROR   (2001-12-05) 16:35.57:530   [cocoon  ]
(/cocoon/execute-service/) Thread-20/Handler: Error compiling sitemap
java.lang.NoClassDefFoundError: org/apache/cocoon/generation/Generator
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at javax.management.loading.MLet.findClass(MLet.java:775)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j
ava:446)
at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at
org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:46)
at
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.jav
a:219)
at
org.apache.cocoon.www.sitemap_xmap$Configurer.configGenerators(sitemap_xmap.
java:182)
at
org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:134)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Un
known Source)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
Unknown Source)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
or(GeneratorSelector.java:135)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addComp
iledComponent(ProgramGeneratorImpl.java:345)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:179)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:208)
at java.lang.Thread.run(Thread.java:484)





-
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: Installing Coccon 2

2001-12-06 Thread Karl Øie

if you don't need the hsqldb database, just comment out all references to it
in the cocoon.xconf and the sitemap.xmap and the web.xml file. cocoon lvies
happily without it. if you however need it, i think the problem is the
write/read permittions for hsqldb as it needs a place to store and work on
it's data.


mvh karl øie



-Original Message-
From: Tanzila Mohammad [mailto:[EMAIL PROTECTED]]
Sent: 6. desember 2001 15:16
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Installing Coccon 2


Thanks,

I now unfortunately have this error:

Server.run/init: java.sql.SQLException: File input/output error:
C:\tomcat\webap
ps\cocoon\WEB-INF\db\cocoondb.backup
java.sql.SQLException: File input/output error:
C:\tomcat\webapps\cocoon\WEB-INF
\db\cocoondb.backup
at org.hsqldb.Trace.getError(Trace.java:180)
at org.hsqldb.Trace.getError(Trace.java:144)
at org.hsqldb.Trace.error(Trace.java:205)
at org.hsqldb.Log.restoreBackup(Log.java:731)
at org.hsqldb.Log.open(Log.java:212)
at org.hsqldb.Database.(Database.java:96)
at org.hsqldb.Server.run(Server.java:137)
at org.hsqldb.Server.main(Server.java:78)
at
org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:10
1)
at java.lang.Thread.run(Thread.java:484)

Regards.

Tanz

-Original Message-----
From: Karl Øie [mailto:[EMAIL PROTECTED]]
Sent: 06 December 2001 14:01
To: [EMAIL PROTECTED]
Subject: RE: Installing Coccon 2


have you removed jaxp.jar as well?


mvh karl øie

-Original Message-
From: Tanzila Mohammad [mailto:[EMAIL PROTECTED]]
Sent: 6. desember 2001 14:55
To: [EMAIL PROTECTED]
Subject: Installing Coccon 2


Hello all,

I am trying to install Cocoon 2 (cocoon-2.0rc2). I am using
Tomcat 3.2.3
JDK 1.3.1_01

I ran the install command and the build was displayed as being successful.

I started tomcat and got the following error:

Exception in thread "main" java.lang.NoSuchMethodError
at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder
.(DefaultConfigurationBuilder.java:38)
at
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java
:398)
at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:128)
at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)

at org.apache.tomcat.core.Handler.init(Handler.java:215)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
StartupInterceptor.java:130)
at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
:491)
at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)


I replaced the xml parser:
I renamed parser.jar and included xerces_1_4_3.jar within tomcat/lib.

Cleared the work directory and re-started.

The error still remained and no tomcat.log has been created.

Can anyone provide any suggestions?

Thanks in advance.

Tanz





-
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: Installing Coccon 2

2001-12-06 Thread Karl Øie

have you removed jaxp.jar as well?


mvh karl øie

-Original Message-
From: Tanzila Mohammad [mailto:[EMAIL PROTECTED]]
Sent: 6. desember 2001 14:55
To: [EMAIL PROTECTED]
Subject: Installing Coccon 2


Hello all,

I am trying to install Cocoon 2 (cocoon-2.0rc2). I am using
Tomcat 3.2.3
JDK 1.3.1_01

I ran the install command and the build was displayed as being successful.

I started tomcat and got the following error:

Exception in thread "main" java.lang.NoSuchMethodError
at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder
.(DefaultConfigurationBuilder.java:38)
at
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java
:398)
at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:128)
at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)

at org.apache.tomcat.core.Handler.init(Handler.java:215)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
StartupInterceptor.java:130)
at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
:491)
at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)


I replaced the xml parser:
I renamed parser.jar and included xerces_1_4_3.jar within tomcat/lib.

Cleared the work directory and re-started.

The error still remained and no tomcat.log has been created.

Can anyone provide any suggestions?

Thanks in advance.

Tanz





-
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: Inserting / Comining XML data

2001-12-06 Thread Karl Øie

>the XSLTProcessorImpl is Composable so will have access to the
>ComponentManager object at compose(), this will allow you to perform a
>lookup on all cocoon roles, also the servletsession like (ps: the session
>will perhaps not be valid at accesstime, try it out...):
>
>req =
>(HttpServletRequest)manager.lookup(HttpEnvironment.HTTP_SERVLET_CONTEXT);
>ses = req.getSession();

erm... this is ofcourse a big lie! "HttpEnvironment.HTTP_SERVLET_CONTEXT" is
not necessarily in the component manager's register by default... someone
has to put it there :-)

mvh karl øie


-
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: Inserting / Comining XML data

2001-12-06 Thread Karl Øie

>1. Can you use the new url protocol from all stylesheets, i.e. Transformers
>and logicsheets?

no this only apply for the default xslt transformer :-(, you will have to
hack each and every one if you need javax.xml.Source support, but if you
only requires org.xml.sax.InputSource support you should get it to work in
all transformers by creating the Source Handler.. (i hope)


>2. When you want to cache your data (in particular in the session object)
>how do you achieve this? I can see that in
>org.apache.cocoon.environment.Source you may have access to the request
>environment (via the factory), but with
>org.apache.cocoon.components.xslt.XSLTProcessorImpl you don't have access
to
>any such thing (although I suppose you could create your own static storage
>somehow and check for sessions being invalidated to clear out data.)
>
>I will let you know how I get on anyway.


the XSLTProcessorImpl is Composable so will have access to the
ComponentManager object at compose(), this will allow you to perform a
lookup on all cocoon roles, also the servletsession like (ps: the session
will perhaps not be valid at accesstime, try it out...):

req =
(HttpServletRequest)manager.lookup(HttpEnvironment.HTTP_SERVLET_CONTEXT);
ses = req.getSession();


if you take a look at the XSLTProcessorImpl.java

http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/org/apache/cocoon/componen
ts/xslt/XSLTProcessorImpl.java?rev=1.13&content-type=text/vnd.viewcvs-markup
 ) you will find it has it's own store implementation, but here is a problem
because the transformers are not cacheable (i think) like the generators.
you will have to produce your own caching system, but that one chould
preferably be at the other side of the protocol... (ie transparent for
cocoon)


mvh karl øie


-
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: Inserting / Comining XML data

2001-12-06 Thread Karl Øie

>OK.  This stuff is over my head :-( , but at the risk of being (more)
>annoying why couldn't you return this with http?
>
>Is the performance that much better? Is it a better architectural design?
>
>best,
>-Rob

yes performance is much better, consider that cocoon2 is totally sax driven,
so giving cocoon2 a http feed will lead to a parsing process. even with
validation off this represent a huge overhead!

mvh karl øie


-
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: Inserting / Comining XML data

2001-12-06 Thread Karl Øie

points missed again, sorry! :-)

1: javax.xml.transform.Transformer has a setURIResolver(), so this is not
adding stuff to xalan, this is using the javax.xml api.

2: it would NOT tie things down to xalan as ... again this is using the
javax.xml api.

3: as i wrote in my email response to luke's orriginal request; the cocoon
does not accept annything else than char/byte streams as source-handlers,
javax.xml does. http is only a byte/char-stream and sometimes that might not
be enough.

mvh karl øie



>I've been following this discussion.  This is not rambling, the concept
>works.  I've done it before using http:  That is, created a URIHandler or
>something similar, but then wrapped it in a servlet and made sort of an XML
>XPath requester that loads stuff from a database.  However, I think Robs
>point is that pretty most anything you'd want to do with a URIResolver
>class, you could also do with http: (i.e. a servlet)  So the calls might be
>
>http://localhost:8082/serve/catalog/cars/*
>http://localhost:8082/serve/sales/invoices/0002332
>
>(I think you could probably even get the "http:localhost/serv" put
somewhere
>else so they would have to know that, but I'm not sure how...)
>
>The XSL processor would then go get it if you used "document()".  And
that's
>a problem with the way you're viewing it I think.  The "document()"
function
>is part of the XSL processing (Xalan), not part of cocoon as far as I can
>tell.  Now, you might be able to add stuff to Xalan, but then your XSL
would
>be tied to it.
>
>Unless you're talking about in the sitemap.xmap file.  This get XSLTed down
>to java, compiled, and run so presumedly it's handled a different way.


-
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: Inserting / Comining XML data

2001-12-05 Thread Karl Øie

>Glad to know somebody has had similar thoughts/needs.
>
>I will try this. You're right this doesn't replace generators - but it does
>allow you to quite easily implement some sort of "Pull MVC" model a opposed
>to the generator push model - and will allow me to use my existing
>stylesheets mostly unchanged.
>
>Cheers
>
>Luke

i think this is quite sexy, the pull MCV is very nice for content modeling.
Say you got 4000 fragments of xml and you want to create different documents
for different users with content from some of these fragments. with the pull
consept you can just assemble a stylesheet that uses document() to include
the selected and personalized content for the user.

with push you will have to write a generator, and a really flexible one to
compete with the xsl!!!

if you get this to work, i would like to know your experiences with it as i
see this as a thing we sould try to get the xml.cocoon-dev people to
recognize! :-)

since i can see that this is what you are looking for, check out this link :
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=100611892807271&w=2 , i
found the clues to do what i did from this email, and it also contains some
source code that you can look at.

mvh karl øie


-
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: Inserting / Comining XML data

2001-12-05 Thread Karl Øie

to place the point precisely:

you can use document(), but it only accepts two kinds of urls, file: and
cocoon:, this hack enables you to get content from say, a database or
something...


mvh karl øie




-Original Message-
From: Luke Studley [mailto:[EMAIL PROTECTED]]
Sent: 5. desember 2001 17:12
To: '[EMAIL PROTECTED]'
Subject: RE: Inserting / Comining XML data


Whoosh - point missed! ;-)

That's precisely what I wanted to do - to pull dynamic XML data into the XSL
layer using the document() function. To do this though you need access to
the underlying URIResolver for the stylesheet - which Karl has kindly
provided a solution for.

Just another way to skin a cat :-)

Luke


-Original Message-
From: Robert Koberg [mailto:[EMAIL PROTECTED]]
Sent: 05 December 2001 18:09
To: [EMAIL PROTECTED]
Subject: Re: Inserting / Comining XML data

I am just coming into this thread, but couldn't you use the XSLT document
function to bring in other XML (unless I am missing the point?)?

best,
-Rob

- Original Message -
From: "Luke Studley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 05, 2001 7:38 AM
Subject: RE: Inserting / Comining XML data


> Thanks Karl.
>
> Glad to know somebody has had similar thoughts/needs.
>
> I will try this. You're right this doesn't replace generators - but it
does
> allow you to quite easily implement some sort of "Pull MVC" model a
opposed
> to the generator push model - and will allow me to use my existing
> stylesheets mostly unchanged.
>
> Cheers
>
> Luke
>
>
> -Original Message-
> From: Karl Øie [mailto:[EMAIL PROTECTED]]
> Sent: 05 December 2001 12:49
> To: [EMAIL PROTECTED]
> Subject: RE: Inserting / Comining XML data
>
> > 3. Maybe I could use some sort of custom URL protocol manager like the
> > cocoon:/ and resource:/? Is it possible to supply new instances of
these?
> >
> > 4. Or I could use my URI resolvers again? Is it possible to set Custom
URI
> > solvers in C2
>
> i have found two ways to accomplish this, but it took some time to find
out,
> mostly because this is not very well documented yet... ok here we go:
>
> in the "cocoon.xconf" file there is a "source-handler" entry, you can
create
> own protocols here:
>
> 
>  class="org.apache.cocoon.components.source.CoolSourceFactory"/>
> 
>
> then you will have to create two classes called
> "org.apache.cocoon.components.source.CoolSourceFactory" and
> "org.apache.cocoon.components.source.CoolSource". they will have to
> implement "org.apache.cocoon.components.source.SourceFactory" and
> "org.apache.cocoon.environment.Source". Where the "CoolSourceFactory"
> resolves urls with cool:/some/thing.xml and creates a "CoolSource" for it.
> now you can refere to "cool:/some/thing.xml" many places in your project.
>
> BUT this didn't work for me because the
> "org.apache.cocoon.environment.Source" interface expects a
> org.xml.sax.InputSource and it delivers a characterstream or bytestream
> back, and i had a sax/dom source and i didn't want to serialize it to text
> to get it parsed again... so i snooped around some more and found this:
>
>
> again in your "cocoon.xconf" there is an entry for your default
transformer.
> i hacked mine like this:
>
>  class="org.apache.cocoon.components.xslt.KarlsXSLTProcessorImpl"
> logger="root.xslt">
> 
> 
> 
>
>
> then i created a class "called
> org.apache.cocoon.components.xslt.KarlsXSLTProcessorImpl" containing this
> (please not that i had to create it in the
org.apache.cocoon.components.xslt
> package to be allowed to extend XSLTProcessorImpl) :
>
>
> public class XonataXSLTProcessorImpl extends XSLTProcessorImpl {
> public javax.xml.transform.Source resolve(String href, String base)
> throws
> TransformerException {
> if (!href.startsWith("karl:")) {
> return super.resolve(href,base);
> }
> else {
> SAXSource source = new SAXSource( ... );
> or
> DOMSource source = new DOMSource( ... );
> or
> StreamSource source = new StreamSource( ... );
> return source;
> }
> }
> }
>
> this way i can respond and create any SAX/DOM/Stream source for any
protocol
> for the transformer, and i can use
"document('rmi://myserver/mydatachunk')"
> in my xsl documents. this does not replace a generator thou
>
>
> i would be happy if anyone could tell me if there is an easier way to
create
> protocol handlers that can deliver SAX or DOM and not only Stream.
>
>
>
> mvh karl øie
>
>
> -

RE: Inserting / Comining XML data

2001-12-05 Thread Karl Øie

> 3. Maybe I could use some sort of custom URL protocol manager like the
> cocoon:/ and resource:/? Is it possible to supply new instances of these?
>
> 4. Or I could use my URI resolvers again? Is it possible to set Custom URI
> solvers in C2

i have found two ways to accomplish this, but it took some time to find out,
mostly because this is not very well documented yet... ok here we go:

in the "cocoon.xconf" file there is a "source-handler" entry, you can create
own protocols here:





then you will have to create two classes called
"org.apache.cocoon.components.source.CoolSourceFactory" and
"org.apache.cocoon.components.source.CoolSource". they will have to
implement "org.apache.cocoon.components.source.SourceFactory" and
"org.apache.cocoon.environment.Source". Where the "CoolSourceFactory"
resolves urls with cool:/some/thing.xml and creates a "CoolSource" for it.
now you can refere to "cool:/some/thing.xml" many places in your project.

BUT this didn't work for me because the
"org.apache.cocoon.environment.Source" interface expects a
org.xml.sax.InputSource and it delivers a characterstream or bytestream
back, and i had a sax/dom source and i didn't want to serialize it to text
to get it parsed again... so i snooped around some more and found this:


again in your "cocoon.xconf" there is an entry for your default transformer.
i hacked mine like this:







then i created a class "called
org.apache.cocoon.components.xslt.KarlsXSLTProcessorImpl" containing this
(please not that i had to create it in the org.apache.cocoon.components.xslt
package to be allowed to extend XSLTProcessorImpl) :


public class XonataXSLTProcessorImpl extends XSLTProcessorImpl {
public javax.xml.transform.Source resolve(String href, String base) throws
TransformerException {
if (!href.startsWith("karl:")) {
return super.resolve(href,base);
}
else {
SAXSource source = new SAXSource( ... );
or
DOMSource source = new DOMSource( ... );
or
StreamSource source = new StreamSource( ... );
return source;
}
}
}

this way i can respond and create any SAX/DOM/Stream source for any protocol
for the transformer, and i can use "document('rmi://myserver/mydatachunk')"
in my xsl documents. this does not replace a generator thou


i would be happy if anyone could tell me if there is an easier way to create
protocol handlers that can deliver SAX or DOM and not only Stream.



mvh karl øie


-
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: C2.0 New package

2001-12-03 Thread Karl Øie
Title: RE: C2.0 New package



you 
will have to download the src package if you want to compile c2 yourself, else 
you can unpack the war file manually with jar.
 
mvh 
karl øie

  -Original Message-From: Jon Hawkesworth 
  [mailto:[EMAIL PROTECTED]]Sent: 3. desember 2001 11:20To: 
  [EMAIL PROTECTED]Subject: RE: C2.0 New 
  package
  Hi 
  I don't know what servlet engine you are using but if it is 
  Tomcat just put the cocoon.war into your webapps directory - cocoon will 
  deployed automatically.  
  There isn't any need to build with the 'binary' version that 
  you have downloaded, unless you want to pick and choose bits of the software 
  (someone else would have to help with that because I am new to cocoon 
  too).
  Hope this helps, 
  Jon 
  -Original Message- From: 
  Olivier MOUGEL [mailto:[EMAIL PROTECTED]] 
  Sent: 01 December 2001 09:03 To: 
  [EMAIL PROTECTED] Subject: C2.0 New 
  package 
  Hi every body, 
  I've just download the zip package. I've just found docs files 
  and cocoon.war. 
  How can I build my app ? 
  Thank's Olivier 
  - 
  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]> 
  
  _ 
  This message has been checked for all known viruses by Star 
  Internet delivered through the MessageLabs Virus 
  Scanning Service. For further information visit http://www.star.net.uk/stats.asp 
  or alternatively call Star Internet for details on the 
  Virus Scanning Service. 
  _This 
  message has been checked for all known viruses by Star Internet 
  deliveredthrough the MessageLabs Virus Control Centre. For further 
  information visithttp://www.star.net.uk/stats.asp_Any 
  views or personal opinions expressed within this email may not be those of 
  Talis Information Ltd.The content of this email message and any files that 
  may be attached are confidential, and for the usage of the intended recipient 
  only. If you are not the intended recipient, then please return this message 
  to the sender and delete it. Any use of this e-mail by an unauthorised 
  recipient is prohibited.


RE: cocoon2 dont run .. Please HELP

2001-11-22 Thread Karl Øie

and by the way, i can see that you have crimson in your classpath somewhere,
remove it, it causes a lot of problems with cocoon2

>   at
>org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReaderImpl.java:248)
>   at
>org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:67)

mvh karl øie


-Original Message-
From: Sebastian Mäder [mailto:[EMAIL PROTECTED]]
Sent: 22. november 2001 17:04
To: [EMAIL PROTECTED]
Subject: cocoon2 dont run .. Please HELP


Hola,

I have installed tomcat 3.2.3, cocoon 2.0b2, JDK 1.3.1 with linux 2.4.10
(Suse).
Then I have delete jaxp.jar, and renamed parser.jar into zparser.jar.
After this I have copied xerces-1.4.1.jar into cocoon/lib directory.

Tomcat is running correctly, but cocoon return always the same f***ing
error. I have tried it many times again and reinstalled.. But always the
same error.

Please Help !!

THX
greetings
Seb.

PS: With Windows no Problems :-( But I want a Server and not Windows :-)
PSS:cocoon.log stand the same as here ("error trying to load
configurations")



 type internal-servlet-error
 message Internal servlet error

 description Cocoon was not initialized.

 sender org.apache.cocoon.servlet.CocoonServlet

 source Cocoon servlet

 request-uri

 /cocoon/

 embedded exception

 org.xml.sax.SAXNotSupportedException: Property:
 http://xml.org/sax/properties/lexical-handler

 embedded exception stacktrace

 org.xml.sax.SAXNotSupportedException: Property:
 http://xml.org/sax/properties/lexical-handler
at
 org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReaderImpl.java:248)
at
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:67)
at org.apache.cocoon.Cocoon.configure(Cocoon.java:216)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
at

org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at org.apache.tomcat.core.Handler.init(Handler.java:215)
at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at

org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
 Interceptor.java:130)
at
 org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)


 exception

 org.apache.avalon.framework.configuration.ConfigurationException: Error
 trying to load configurations

 stacktrace

 org.apache.avalon.framework.configuration.ConfigurationException: Error
 trying to load configurations
at org.apache.cocoon.Cocoon.configure(Cocoon.java:220)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
at

org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at org.apache.tomcat.core.Handler.init(Handler.java:215)
at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at

org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
 Interceptor.java:130)
at
 org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)



-
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: cocoon2 dont run .. Please HELP

2001-11-22 Thread Karl Øie

try to add this to the top of the bin/tomcat.sh script, it will force tomcat
to use xerces, whatever is in the classpath.

TOMCAT_OPTS="$TOMCAT_OPTS -Djavax.xml.parsers.DocumentBuilderFactory=org.apa
che.xerces.jaxp.DocumentBuilderFactoryImpl"
TOMCAT_OPTS="$TOMCAT_OPTS -Djavax.xml.parsers.SAXParserFactory=org.apache.xe
rces.jaxp.SAXParserFactoryImpl"

i allways start my tomcat with this bootstrap.

mvh karl øie



-Original Message-
From: Sebastian Mäder [mailto:[EMAIL PROTECTED]]
Sent: 22. november 2001 17:04
To: [EMAIL PROTECTED]
Subject: cocoon2 dont run .. Please HELP


Hola,

I have installed tomcat 3.2.3, cocoon 2.0b2, JDK 1.3.1 with linux 2.4.10
(Suse).
Then I have delete jaxp.jar, and renamed parser.jar into zparser.jar.
After this I have copied xerces-1.4.1.jar into cocoon/lib directory.

Tomcat is running correctly, but cocoon return always the same f***ing
error. I have tried it many times again and reinstalled.. But always the
same error.

Please Help !!

THX
greetings
Seb.

PS: With Windows no Problems :-( But I want a Server and not Windows :-)
PSS:cocoon.log stand the same as here ("error trying to load
configurations")



 type internal-servlet-error
 message Internal servlet error

 description Cocoon was not initialized.

 sender org.apache.cocoon.servlet.CocoonServlet

 source Cocoon servlet

 request-uri

 /cocoon/

 embedded exception

 org.xml.sax.SAXNotSupportedException: Property:
 http://xml.org/sax/properties/lexical-handler

 embedded exception stacktrace

 org.xml.sax.SAXNotSupportedException: Property:
 http://xml.org/sax/properties/lexical-handler
at
 org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReaderImpl.java:248)
at
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:67)
at org.apache.cocoon.Cocoon.configure(Cocoon.java:216)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
at

org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at org.apache.tomcat.core.Handler.init(Handler.java:215)
at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at

org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
 Interceptor.java:130)
at
 org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)


 exception

 org.apache.avalon.framework.configuration.ConfigurationException: Error
 trying to load configurations

 stacktrace

 org.apache.avalon.framework.configuration.ConfigurationException: Error
 trying to load configurations
at org.apache.cocoon.Cocoon.configure(Cocoon.java:220)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
at

org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at org.apache.tomcat.core.Handler.init(Handler.java:215)
at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at

org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
 Interceptor.java:130)
at
 org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)



-
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: log messages ?

2001-11-21 Thread Karl Øie

try /webapps/cocoon/WEB-INF/logs/

you can also adjust the log setting in the file
/webapps/cocoon/WEB-INF/logkit.xconf


mvh karl øie

-Original Message-
From: Andreas Gruenhagen
[mailto:[EMAIL PROTECTED]]
Sent: 21. november 2001 15:12
To: [EMAIL PROTECTED]
Subject: log messages ?


Hello cocoon experts,
I trying to use cocoon for some time now.
If something does not work I sometimes get this nice formated error-page
but most of the times I get an empty-webpage.
the log-file in $TOMCAT_HOME/log does not contain anything.
Where can I find some sensefull error-messages

thanks

-
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: Cocoon2 and Javascript

2001-11-20 Thread Karl Øie



are 
you placing the javascript in a cdata section?
 
<BR><xsl:comment><![CDATA[<BR>function 
hahaha() {</SPAN></FONT></DIV>
<DIV><FONT color=#ff face=Arial size=2><SPAN 
class=533210716-20112001>    
}    <BR>]]><BR></xsl:comment><BR>
 
mvh 
karl øie

  -Original Message-From: Jose de Miguel 
  [mailto:[EMAIL PROTECTED]]Sent: 20. november 2001 
  17:00To: [EMAIL PROTECTED]Subject: Cocoon2 and 
  Javascript
  Hi !
   
  I´m developing with Cocoon2 and 
  Tomcat 4.0.1 and I get bad text in the browser when I 
  write in, for example, a confirm of Javascript characters like ?, ¿ , 
  etc...
   
  Do you know something about that 

   
  Can anybody tell me how to solve this problem 
  
   
   
  Jose de miguel Jiménez
  email: [EMAIL PROTECTED]
  Madrid 
  (España)
   
   


RE: SAX tree?

2001-11-13 Thread Karl Øie

i see what you are getting at and i guess you'll need to wrap your SAXSource
into a XMLFragment first... but i don't really know because i cannot find
anywhere xsp documentation except the little pieces of documentation for
cocoon1.8.

This is pseudo code, i havent even tried to run it but it should give
you an idea...




public class myFragment implements XMLFragment {

private SAXSource source = null;

public myFragment(SAXSource source ) {
this.source = source;
}

public void toSAX( ContentHandler handler ) {
try {
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();
transformer.transform( this.source, new SAXResult(handler) );
}
catch( Exception e ) {
arg!!!
}
}
}


SAXSource msg = Controller.execute();
myFragment myfrag = new myFragment( msg );



myfrag



mvh karl øie/gan media


-
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: SAX tree?

2001-11-13 Thread Karl Øie

obviously I cant type right, the SAXSource msg is supposed to be used in the
transform command, not the undeclared mystic source variable

transformer.transform( msg, result );

mvh karl øie



-Original Message-
From: Karl Øie [mailto:[EMAIL PROTECTED]]
Sent: 13. november 2001 13:50
To: [EMAIL PROTECTED]
Subject: RE: SAX tree?


yes, the SAX source is useless without any handler, what you are looking for
is perhaps to serialize this to xml. i havent yet looked at xsp actually,
but here is one approach that might create xml from a SAX source inside a
xsp page:


try {
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();

SAXSource msg = Controller.execute();
StreamResult result = new StreamResult( new PrintWriter(System.out) );
//SAXResult result = new SAXHandler( xspsuperparent.handler );

transformer.transform( source, result );
}
catch( Exception e ) {
arg!!!
}


as i said, i havent yet written one single line of xsp myself, but this
might work, what happens here is that the sax source msg is transformed
without a stylesheet to the system.out pipe, this should be replaced with
the offical writer that can write to the xsp page, or even better, the
parent SAXHandler for the xsp page. you might find some info here in the
list or at the homepage how to get tre transformation to stream directly
into your xsp page.

hope this helped a little! :-)

mvh karl


-Original Message-
From: Søren Neigaard [mailto:[EMAIL PROTECTED]]
Sent: 13. november 2001 22:32
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: SV: SAX tree?


Oh - Thanks for clearing this out for me :)

Now my Java method returns a "javax.xml.transform.sax.SAXSource", and I put
this in my logicsheet like this:

--


SAXSource msg = Controller.execute();

msg

--

But this prints out "javax.xml.transform.sax.SAXSource@7b56e", which looks
like a reference the object. Do you have any idea what I'm doing wrong here?

Best regards
Søren

-Oprindelig meddelelse-
Fra: Karl Øie [mailto:[EMAIL PROTECTED]]
Sendt: 13. november 2001 03:03
Til: [EMAIL PROTECTED]
Emne: RE: SAX tree?


there is no such thing as a SAX tree, if it is a tree it is a DOM tree.

SAX is an interface that generates event streams, like when you parse a xml
file with sax the sax parser would fire events like startDocument(),
startElement(), endElement(), endDocument() in a succession of function
calls.

DOM creates a tree of nodes much like an unbalanced b-tree where every node
represents a element, atrribute and visa versa.

DOM is then again mosty buildt up by a SAX parser, because you could taje
the events from the SAX parser and create the corresponding nodes when the
event functions tells you so.

the javax.xml.transform.sax.SAXSource is junction between thes two ways of
processing xml because a SAXSource could be a stream of
ascii(javax.xml.transform.stream.StreamSource), a stream of SAX events
(javax.xml.transform.sax.SAXSource) or a DOM tree
javax.xml.transform.dom.DOMSource. all of these can be a
javax.xml.transform.Source to create SAX events which is what cocoon2 likes
to eat.

Cocoon2s generators are in general just routines that creates SAX events
from various sources. if you have a Document object in memory, you can pass
it to cocoon2 through "DOMStreamer", a utility class in cocoon2 that
generates SAX events from a DOM source.


to make a long story short, DOM is xml nodes in memory as nodes in a b-tree,
while SAX is just function events that pass by a api and never leaves
anything in memory, SAX leaves the responsability of creating memory objects
if required to the SAX Handler.


hope this helped a bit! :-)

mvh karl øie



-Original Message-
From: Søren Neigaard [mailto:[EMAIL PROTECTED]]
Sent: 13. november 2001 20:30
To: [EMAIL PROTECTED]
Subject: SAX tree?


This subject is a little offtopic :)

Ok I will try to return a SAX tree to C2 instead of a stream of XML. I found
the following link that talks about this:
http://www.aoindustries.com/docs/cocoon-1.8.2/faqs.html#faq-xspinsertxml

Now I'm not a XML shark, so I could need some help doing this. I guess I
will be using this API to create a SAX tree:
http://java.sun.com/xml/jaxp/dist/1.1/docs/api/, but what object should I
return? What is it excactly C2 accepts as input? Is it a
"javax.xml.transform.sax.SAXSource"?

Please just give a few pointers :)

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk



---

RE: SAX tree?

2001-11-13 Thread Karl Øie

yes, the SAX source is useless without any handler, what you are looking for
is perhaps to serialize this to xml. i havent yet looked at xsp actually,
but here is one approach that might create xml from a SAX source inside a
xsp page:


try {
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();

SAXSource msg = Controller.execute();
StreamResult result = new StreamResult( new PrintWriter(System.out) );
//SAXResult result = new SAXHandler( xspsuperparent.handler );

transformer.transform( source, result );
}
catch( Exception e ) {
arg!!!
}


as i said, i havent yet written one single line of xsp myself, but this
might work, what happens here is that the sax source msg is transformed
without a stylesheet to the system.out pipe, this should be replaced with
the offical writer that can write to the xsp page, or even better, the
parent SAXHandler for the xsp page. you might find some info here in the
list or at the homepage how to get tre transformation to stream directly
into your xsp page.

hope this helped a little! :-)

mvh karl


-Original Message-
From: Søren Neigaard [mailto:[EMAIL PROTECTED]]
Sent: 13. november 2001 22:32
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: SV: SAX tree?


Oh - Thanks for clearing this out for me :)

Now my Java method returns a "javax.xml.transform.sax.SAXSource", and I put
this in my logicsheet like this:

--


SAXSource msg = Controller.execute();

msg

--

But this prints out "javax.xml.transform.sax.SAXSource@7b56e", which looks
like a reference the object. Do you have any idea what I'm doing wrong here?

Best regards
Søren

-Oprindelig meddelelse-
Fra: Karl Øie [mailto:[EMAIL PROTECTED]]
Sendt: 13. november 2001 03:03
Til: [EMAIL PROTECTED]
Emne: RE: SAX tree?


there is no such thing as a SAX tree, if it is a tree it is a DOM tree.

SAX is an interface that generates event streams, like when you parse a xml
file with sax the sax parser would fire events like startDocument(),
startElement(), endElement(), endDocument() in a succession of function
calls.

DOM creates a tree of nodes much like an unbalanced b-tree where every node
represents a element, atrribute and visa versa.

DOM is then again mosty buildt up by a SAX parser, because you could taje
the events from the SAX parser and create the corresponding nodes when the
event functions tells you so.

the javax.xml.transform.sax.SAXSource is junction between thes two ways of
processing xml because a SAXSource could be a stream of
ascii(javax.xml.transform.stream.StreamSource), a stream of SAX events
(javax.xml.transform.sax.SAXSource) or a DOM tree
javax.xml.transform.dom.DOMSource. all of these can be a
javax.xml.transform.Source to create SAX events which is what cocoon2 likes
to eat.

Cocoon2s generators are in general just routines that creates SAX events
from various sources. if you have a Document object in memory, you can pass
it to cocoon2 through "DOMStreamer", a utility class in cocoon2 that
generates SAX events from a DOM source.


to make a long story short, DOM is xml nodes in memory as nodes in a b-tree,
while SAX is just function events that pass by a api and never leaves
anything in memory, SAX leaves the responsability of creating memory objects
if required to the SAX Handler.


hope this helped a bit! :-)

mvh karl øie



-Original Message-
From: Søren Neigaard [mailto:[EMAIL PROTECTED]]
Sent: 13. november 2001 20:30
To: [EMAIL PROTECTED]
Subject: SAX tree?


This subject is a little offtopic :)

Ok I will try to return a SAX tree to C2 instead of a stream of XML. I found
the following link that talks about this:
http://www.aoindustries.com/docs/cocoon-1.8.2/faqs.html#faq-xspinsertxml

Now I'm not a XML shark, so I could need some help doing this. I guess I
will be using this API to create a SAX tree:
http://java.sun.com/xml/jaxp/dist/1.1/docs/api/, but what object should I
return? What is it excactly C2 accepts as input? Is it a
"javax.xml.transform.sax.SAXSource"?

Please just give a few pointers :)

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk



-
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 y

RE: SAX tree?

2001-11-13 Thread Karl Øie

there is no such thing as a SAX tree, if it is a tree it is a DOM tree.

SAX is an interface that generates event streams, like when you parse a xml
file with sax the sax parser would fire events like startDocument(),
startElement(), endElement(), endDocument() in a succession of function
calls.

DOM creates a tree of nodes much like an unbalanced b-tree where every node
represents a element, atrribute and visa versa.

DOM is then again mosty buildt up by a SAX parser, because you could taje
the events from the SAX parser and create the corresponding nodes when the
event functions tells you so.

the javax.xml.transform.sax.SAXSource is junction between thes two ways of
processing xml because a SAXSource could be a stream of
ascii(javax.xml.transform.stream.StreamSource), a stream of SAX events
(javax.xml.transform.sax.SAXSource) or a DOM tree
javax.xml.transform.dom.DOMSource. all of these can be a
javax.xml.transform.Source to create SAX events which is what cocoon2 likes
to eat.

Cocoon2s generators are in general just routines that creates SAX events
from various sources. if you have a Document object in memory, you can pass
it to cocoon2 through "DOMStreamer", a utility class in cocoon2 that
generates SAX events from a DOM source.


to make a long story short, DOM is xml nodes in memory as nodes in a b-tree,
while SAX is just function events that pass by a api and never leaves
anything in memory, SAX leaves the responsability of creating memory objects
if required to the SAX Handler.


hope this helped a bit! :-)

mvh karl øie



-Original Message-
From: Søren Neigaard [mailto:[EMAIL PROTECTED]]
Sent: 13. november 2001 20:30
To: [EMAIL PROTECTED]
Subject: SAX tree?


This subject is a little offtopic :)

Ok I will try to return a SAX tree to C2 instead of a stream of XML. I found
the following link that talks about this:
http://www.aoindustries.com/docs/cocoon-1.8.2/faqs.html#faq-xspinsertxml

Now I'm not a XML shark, so I could need some help doing this. I guess I
will be using this API to create a SAX tree:
http://java.sun.com/xml/jaxp/dist/1.1/docs/api/, but what object should I
return? What is it excactly C2 accepts as input? Is it a
"javax.xml.transform.sax.SAXSource"?

Please just give a few pointers :)

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk



-
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: The encoding "Cp1252" is not supported. Xerces/Jaxp problem induces by cocoon, under jboss ?

2001-11-12 Thread Karl Øie

i had the same problem.

the problem is that the tomcat-test.ear file contains xml files with the
Cp1252 encoding, and somehow it doesn't work with xerces, just remove the
tomcat-test.ear file, or repack it with iso8859-1 encoding in the xml files.



-Original Message-
From: Coetmeur, Alain [mailto:[EMAIL PROTECTED]]
Sent: 12. november 2001 16:23
To: '[EMAIL PROTECTED]'
Subject: The encoding "Cp1252" is not supported. Xerces/Jaxp problem
induces by cocoon, under jboss ?
Sensitivity: Private



I've installed cocoon2rc1 on jboss2.4.3+tomcat4.0,
as a .war.

but after the deployment of cocoon,
the following ear cannot be deployed because
the sax parser bump on the message
The encoding "Cp1252" is not supported

my impression is that cocoon.war changes a global setting
about XML, and this prevent jboss to works.

note that, in order to make cocoon2 works, I have (as told here)
changed the XML configuration of jboss...
this is probably the key...

I have installed the xerces 1.4.3 library packaged with cocoon,
to replace the jaxp.jar and crimson.jar

I've removed the
set
JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.Docu
mentBuilderFactoryImpl
set JAXP=%JAXP%
-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactor
yImpl

and even tested by replacing with the explicit
set JAXP=
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBu
ilderFactoryImpl
set JAXP=%JAXP%
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactory
Impl
(but this change nothing, ie: cocoon is ok, but further .EAR deployment
fails)


is this a known problem...
does cocoon set a particular global properties...
how to make xerces support cp1252...

--
Alain Coetmeur

-
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: Deploying Cocoon2 in JBoss under Linux

2001-11-12 Thread Karl Øie

another thing to try when you want to couple jboss and cocoon2 is to comment
out all hsqldb references because i found that to be the last obstacle(after
xerces/crimson and xfvb was sorted out) to get cocoon2rc1 to run on jboss.

of reasons that i haven't yet looked carefully at the hsqldb server wants an
absolut path to a work directory it has access to, but jboss autodeploys all
wars in a temp directory, and hsql cannot live under these conditions, so it
has to be boostrapped with a working directory. i solved this by hunting
down and commenting out all references to hsqldb as well, but that's because
i don't use it.

a last knirk with jboss+tomcat4 is that the tomcat-test.ear that is bundled
in the dist doesn't work when you have bootstrapped jboss to run with xerces
and xalan, so i removed this ear file from the deploy dir, restarted jboss
and copied the cocoon.war file into it. it works very well, except that
tomcat4 still has a troubles with removing stale work files, so sometimes i
have to kill jboss/tomcat/work/* to allow changes to take place.

mvh karl øie



-Original Message-
From: Parc Place [mailto:[EMAIL PROTECTED]]
Sent: 11. november 2001 21:19
To: [EMAIL PROTECTED]
Subject: Re: Deploying Cocoon2 in JBoss under Linux


Hi, sorry about the delay, just catching up on my email this afternoon.

I managed to get this somewhat functional a few weeks ago - as you
mention, there are a number of exceptions during startup about the
unsupported codepage - I agree that it's not a critical problem, and can
confirm that it isn't preventing cocoon from running.

>>I've read and followed all instructions when trying to deploy
>>Cocoon-2.0rc1a into JBoss-2.4.3_Tomcat-3.2.3 (the bundled edition) under
my
>>Debian linux (sid). I've removed the JAXP and Crimson parsers, had put
>>xerces instead of it, modified the run.sh script according to the guide,
and
>>even replaced jaxp/crimson with xerces+xalan in my ant installation.
>>
Ok, here is a difference in our setup - I used the version bundled with
tomcat 4
One thing that I needed help with was getting JBoss to use Xerces - I
read on this mailing list (a very informative email from karl øie, email
title was "FAQ: cocoon2 parser errors +tomcat/jboss/whatever", you can
try searching for it) that you have to tell it which SAX parser and DOM
builder to use - my run.sh for jboss has been modified so that it
contains this:
...
JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/xerces_1_4_3.jar
JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.Docum
entBuilderFactoryImpl
JAXP="$JAXP
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactory
Impl"
...

Although it was a nice challange getting all this working together, I've
decided to switch back to plain Tomcat for Cocoon, and experiment with
EJB seperately. For now, at least.

Good luck,
Adam


-
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: Unable to pass a parameter

2001-10-02 Thread Karl Øie

have you included "use-request-parameters" in your pipeline?





mvh karl



-Original Message-
From: Hewko, Doug [mailto:[EMAIL PROTECTED]]
Sent: 2. oktober 2001 16:26
To: '[EMAIL PROTECTED]'
Subject: Unable to pass a parameter


Can someone please help me pass a parameter to a XSL stylesheet?

I have been trying without luck and do not know why this will not work with
Cocoon2. I've been told it should be possible, but no luck and I can't find
anything in the archives to help me. I know that this is a Cocoon2 problem
because others have validated that the XSL is correct with non-Cocoon
processors.

In my examples below, I was hoping that clicking on the "click here" text
would change the value of my parameter. But no luck. If I add
"?paramtest=something" after my URL, I also get no parameter passed.

Here's my XML:



xml file value



Here's my XSL:

http://www.w3.org/1999/XSL/Transform";>









parameter value=

xml value=


test.html?paramtest=12
Click here







-
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]>




DOM Generator problem (again)

2001-10-02 Thread Karl Øie

I tried to write a DOM generator using the DOMStreamer that takes a in
memory DOM as a source for an cocoon2 generator, it all works fine except a
strange problem with further transformation.

The problem is:
ID declared elements in the DTD is no longer accessible as ID elements in
the XSLT transformer. A select="id('25')" will no longer return the correct
node. The same stylesheet used with the FileGenerator works, so I suspect
something is missing here!?!?!

All other xslt functions i have tried works fine so if I use
select="//*[@id='25']" I will get the correct result.


anyone have a idea about what I am doing wrong?


I would be really grateful for any advice!


mvh karl øie


-
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]>




Generators and DTD/Schemas

2001-09-24 Thread Karl Øie

I tried to write a DOM generator using the DOMStreamer that takes a in
memory DOM as a source for an cocoon2 generator, it all works fine except a
strange problem with further transformation.

The problem is:
ID declared elements in the DTD is no longer accessible as ID elements in
the XSLT transformer. A select="id('25')" will no longer return the correct
node. The same stylesheet used with the FileGenerator works, so I suspect
something is missing here!?!?!

All other xslt functions i have tried works fine so if I use
select="//*[@id='25']" I will get the correct result.

anyone have a idea about what I am doing wrong?


secondly, what would be the recommended approach to converting a dom to sax?
I have tried two ways (both fond digging in the cocoon source):

1:Traverse the DOM tree and fire sax events to the xmlconsumer

2:create a DOMSource of the DOM and pass it to the xsl transformer.

both works with the exception of the above mentioned problem.


I would be really grateful for any advice!


mvh karl øie


-
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: everything down

2001-09-24 Thread Karl Øie

I just looked at the code, and there can be 2 possible problems;

a: tomcat's security won't allow you to write to disk, check your policy
file

b: the "http://www.localhost/cocoon/test/a1.html"; url will get you maany
problems because you most certainly haven't registered www.localhost :-) and
secondly it doesn't state the port tomcat is running on (then again you
might have tomcat running on port 80, or you might be using apache to server
static files...) anyway, try "http://localhost:8080/cocoon/test/a1.html";
instead, and if you are running a machine without loopback(both linux and
win should have...) you could try your ip adress instead
"http://111.222.333.444:8080/cocoon/test/a1.html";

see if this helps!

mvh karl

> -Original Message-
> From: cib [mailto:[EMAIL PROTECTED]]
> Sent: 23. september 2001 16:18
> To: Cocoon User Mail List
> Subject: everything down
>
>
> Hi,
> In my attempts to write the output of an xsp to the disk,
> my code makes Tomcat/4.0-b5 and Cocoon2b2 go completely down
> (every page is
> 404), the only message I get is in the dos window (nothing in log files):
>
> CheckedIODemo: java.net.UnknownHostException: www.localhost
>
> The only way is to restart Tomcat.
> Here is my make2.xsp (mainly from Karl Øie in his answer in thread "RE:
> Nobody Knows HOW TO SAVE STREAM ON DISK!!"):
>
> 
>
>language="java"
>   xmlns:xsp="http://apache.org/xsp";
>   xmlns:esql="http://apache.org/cocoon/SQL/v2";>
>
> 
>   java.io.*
>   java.net.*
> 
>
>
>
> 
>
>
>
> class make_xsl {
>public void main() {
>
> try {
> URL myurl = new URL( "http://www.localhost/cocoon/test/a1.html"; );
> BufferedInputStream inn = new BufferedInputStream(myurl.openStream());
> BufferedWriter out = new BufferedWriter( new OutputStreamWriter( new
> FileOutputStream("output2.txt") ) );
> for(;;) {
>  int data = inn.read();
> if (data == -1) {
> break;
> }
> else {
> out.write((char) data);
> }
> }
> out.flush();
>
>
>} catch (FileNotFoundException e) {
>System.err.println("CheckedIODemo: " + e);
>System.exit(-1);
>} catch (java.io.IOException e) {
>System.err.println("CheckedIODemo: " + e);
>System.exit(-1);
>  } catch (NoSuchMethodError e) {
>System.err.println("CheckedIODemo: " + e);
>System.exit(-1);
>  } catch (Exception e) {
>System.err.println("CheckedIODemo: " + e);
>System.exit(-1);
>   }
>  }
> }
>
> 
>
>
>   
> 
> make_xsl anObject = new make_xsl();
> anObject.main();
> 
>
>
> If you see this, it works.
>
>   
> 
>
> My previous attempt (many thanks to Christian Haul) worked but only if the
> input file (a1.html) was in Tomcat/bin directory , otherwise, everything
> would get down, and  the only solution was to restart Tomcat:
>
> class make_xsl {
>public void main() throws IOException {
>  try {
>  FileReader entree = new FileReader("a1.html");
>   FileWriter sortie = new FileWriter("output.txt");
>  int c;
>  while ( (c = entree.read()) != -1 )
> sortie.write(c);
> sortie.close();
> entree.close();
>  } catch (FileNotFoundException e) {
>System.err.println("CheckedIODemo: " + e);
>System.exit(-1);
>} catch (java.io.IOException e) {
>System.err.println("CheckedIODemo: " + e);
>System.exit(-1);
>}
>
>  }
> }
>
> Mario Muja also mentioned his interest in finding a way of saving
> output of
> xsp on the disk.
> Thanks to anyone helping us.
> I'll maybe give this mail a try on tomcat users mailing list.
> Cib
>
> France, Bordeaux, xml and gay pride.
>
>
> -
> 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: Nobody Knows HOW TO SAVE STREAM ON DISK!!

2001-09-11 Thread Karl Øie

there are ways to do this, but it involves a bit java hacking as i don't
know so much about cocoon.

1: make your own serializer
---
that sends the resulting stream to a file object instead of back to cocoon

this should be pretty easy for 'poc' but a little harder for a production
version. a good start would be to copy the source of the
org.apache.cocoon.serialization.TextSerializer or
org.apache.cocoon.serialization.XMLSerializer give it your own name, modify
it to save to disk instead of stream back to cocoon and then set this up as
you end serializer in the pipeline


2: use saxon as a xslt transformer
--

as it has a feature to save output to disk (tip: )

regretfuly you will have to read manuals about saxon and see if its possible
to use saxon as a transformer in cocoon.


3: make a jsp or servlet catcher (easy, but not very smart to do)
-
make a jsp site that relays the output from your original pipeline, and
writes parts of it to disk with the File object, this will work in a
quickhack maner, but is not very clever as it imposes a big overhead.

try something like this in a jspfile:
<%
try { //try to read from url
URL myurl = new URL( "http://www.karl.no/"; ); //<- your
http://someserver:8080/cocoon/test.xsp
BufferedInputStream inn = new BufferedInputStream(myurl.openStream());
BufferedWriter out = new BufferedWriter( new OutputStreamWriter( new
FileOutputStream("output.txt") ) );
for(;;) {
int data = inn.read();
if (data == -1) {
break;
}
else {
out.write((char) data);
}
}
out.flush();
}
catch(MalformedURLException mue) { System.out.println("Invalid URL");}
catch(IOException ioe) { System.out.println("I/O Error - " + ioe);}
%>

NB: this is pseudo-code, i haven't testet if it's compiling! :-) buy a book
about java programming, it will be well spent time/money if you are to work
with cocoon!


mvh karl øie


> -Original Message-
> From: cib [mailto:[EMAIL PROTECTED]]
> Sent: 10. september 2001 20:30
> To: Cocoon User Mail List
> Subject: Nobody Knows HOW TO SAVE STREAM ON DISK!!
>
>
> Hi,
> I've been sending message everywhere and reading any book on jsp,
> and nowhere it's told how I can get an xsp to record, or update a file.
> It's crazy!!

hey man, beta software IS crazy :-) !!!


-
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: Apache/tomcat : Q about C2 and C1 ?

2001-08-24 Thread Karl Øie

under Linux it is quite simple to duplicate cocoon into more webapps, what I
have done is:

in the webapps directory of tomcat I mkdir a new folder for a new webapp,
then inside that I mkdir a WEB-INF folder. inside that folder I have created
a softlink ln -s to the lib folder in the cocoon/WEB_INF/lib and then copy
the web.xml file.

finally I copy the sitemap.xmap and the cocoon.xconf from the original
cocoon/ folder into the new webapp folder. this way I can keep the c2b up to
synch and have several webapps using the cocoon2 system.

next time you start tomcat the new webapp context will be created and the
softlink to the lib folder makes it behave just like the original cocoon/
webapp.

this is for testing only, I haven't tried to create wars from this setup.

mvh karl xie


> 1/ Is it possible to use several sitemap files within Tomcat/C2 ?
> Do i need
> one sitemap for each web application ? Is it possible to have a
> sitemap file
> in each directory containing XML and XSL documents ? It doesn't seems that
> c2 is always handling xml-stylesheets/cocoon-process instructions
> within XML
> documents. Am i wrong ?
>
> 2/ Is it possible de define a new wep application
> (webapps/myapp/) using the
> c2 functionnalities (without duplicating c2) ? Or do i have to install my
> XML documents within the webapps/cocoon directory ?
>
> 3/ Is it possible to put some XML documents (containing
> xml-stylesheets and
> cocoon-process instructions ala c1) within the Apache htdocs directory and
> ask c2 to do the transformation (a la c1). Is it possible to define a
> Handler for XML document linked to c2 within Apache httpd.conf
> (and mod_jk)
> ? Or do i have to install also c1 ? Is it possible to have c2 and
> c1 working
> together on apache/Tomcat/mod_jk ?
>
> Thanks for your help,
> Pat
>
>
> -
> 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: performance tuning... (match="id(xxx)" versus match="//*[@id=xxx]")

2001-08-24 Thread Karl Øie

wget timings of match="id(xxx)" versus match="//*[@id=xxx]":


time wget http://saturn.gan.no:/mup/xpath.xsp?xpath=KAP1 - 0m14.686s
(first hit)
time wget http://saturn.gan.no:/mup/xpath.xsp?xpath=KAP1 - 0m0.030s
(second hit)

time wget http://saturn.gan.no:/mup/id.xsp?id=KAP1 - 0m5.882s (first
hit)
time wget http://saturn.gan.no:/mup/id.xsp?id=KAP1 - 0m0.012s (second
hit)


these stats show that Joerg's tips about using a id() lookup instead of a
xpath lookup upon id attributes was correct, id() performed 2,5 times better
on first hit, and also on cached result. I will now start to edit all my XML
files and use id() lookup instead! thanks!!!

mvh Karl Xie



> Can you give us a feed back? ;)
>
> Thanks,
>
> --Arnaud



> If you have a DTD for your XML and your @id is really unique in the whole
> XML, you can use the id()-function of XPATH. Instead of "//*[@id='1222']"
> use "id('1222')". This takes much less time than your statement (around
> factor 10; of course dependent on the size of the XML, my XML was
> 150 KB ->
> maybe better factor for you).
>
> Joerg


-
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: separation of content and logic

2001-08-23 Thread Karl Øie

oufcourse, i'll give you wget timings tomorrow!

mvh karl


> btw: I'll try the "id(xxx)" tip you gave me, perhaps it can speed up
> things a lot! :-)

Can you give us a feed back? ;)

Thanks,

--Arnaud

-
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: separation of content and logic

2001-08-23 Thread Karl Øie

I agree to your point that jsp/java is not a standard like XSLT, but my
point here is that the jsp page comes at the end of the pipeline so it must
be regarded as a "serializer" of the strange kind.

but since my pipeline (xml->xsl->jsp) is pure up to the end point it is easy
to re-use the xml-xsl-somethingdifferent pipeline and not be dependent on a
specialized xsp as the generator. as jsp at the end of the pipe takes care
of all treeview specific code the rest of the toc pipeline is pure and can
be used to create other forms of toc's

btw: I'll try the "id(xxx)" tip you gave me, perhaps it can speed up things
a lot! :-)


mvh karl


-Original Message-
From: Jörn Heid [mailto:[EMAIL PROTECTED]]
Sent: 23. august 2001 15:02
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: AW: separation of content and logic


It really looks nice but I wouldn't use a jsp for rendering. I think using
XSLT is the 'standard' for rendering in different output formats. JSP is
only a Sun/Java standard not a W3C standard. You can use XSLT without Java -
JSP not. But that's believing.

Is XSP->XSLT->HTML that much slower?

-Ursprüngliche Nachricht-
Von: Karl Oie [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 23. August 2001 14:44
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: RE: separation of content and logic


I did manage to create a working treeview by creating the structure with a
xsl-sheet and then use the result in a xsp page, but after a little
experimentation I found it was easier to use a jsp page that requested the
"toc.html" stream from the pipeline.







jsp performed a little better that xsp when it came to code the required
functionality for the treeview, the result was quite good and the jsp page
that reads the structure from the c2 pipeline takes only 0.028s to process
(depending of levels of recursion of course). See enclosed screenshot!

mvh karl



-Original Message-
From: Max Larsson [mailto:[EMAIL PROTECTED]]
Sent: 23. august 2001 08:00
To: [EMAIL PROTECTED]
Subject: AW: separation of content and logic


Hi,

> Now I want to generate a Menuestructure from database
> entries in the way a filebrowser works, expand an entry on mouseclick,
> on the second mouseclick collapse them (html links).
> My first guess was to use nested select statements
> to only get those entries I want to show (expanded or collapsed).

I am trying to do the same. At the moment i am trying to use
the nested set model from "SQL for smarties". See:

http://www.dbmsmag.com/9603d06.html
http://www.dbmsmag.com/9604d06.html
http://www.dbmsmag.com/9605d06.html

> As I thought further may be it would be better in the xsp
> to always retrieve all items from the database
> and then decide in the stylesheet which entries to
> show and which not (e.g. by session attributes).
> But in a xsl I cann't use 

After thinking a lot i decided to let xsp retrieve
the complete menu structure and let the xsl stylesheet
decide which menu items are collapsed or expandended.
To that i will give the xsl stylesheet a parameter,
which contains all the ids of the menuitems, wich shall
be expanded. That's my idea, if it works have to
be proved.

Max

-
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: performance tuning...

2001-08-23 Thread Karl Øie

how do i set up c2 to precompile?

mvh karl



Hi.,
  I am not sure about everything else but the "first
hit stuff"..

  It is possible to greatly reduce the "first hit"
time by having the c2 pre-compiled...This reduced the
"first-hit" time greately for me...(specially i have
lots of xsps)..



 --- Karl_Øie <[EMAIL PROTECTED]> wrote: > I am sorry, I
really should have thought of that!,
> here we go:-)
>
> my system is:
> -
> - dual Pentium 1ghz
> - 4 gb ram
> - 2 speedraided ldv 9gb scsi disks
> - linux slackware 8
> - sun sdk 1.3.1
> - tomcat 3.2.3
> - xalan 2.2.d9
> - xerces 1.4.3
>
>
> wget timing:
> 
> first run of "toc.html" -> 41.879s
> second run of "toc.html" -> 0.013s (!!!)
>
> first run of "page.html?xpath=//*[@id='1222']" ->
> 58.031s
> second run of "page.html?xpath=//*[@id='1222']" ->
> 0.017s (!!!)
>
>
> questions:
> --
> as you can see the cache works great for a few
> pages, but the first hit
> takes a lot of time, so is it possible to hit every
> page at startup so the
> first visitors don't have to suffer?
>
> how can I tune my cache settings? I have tried with
> this:
>
>   
class="org.apache.cocoon.components.store.MRUMemoryStore">
>  
>  
>   value="10"/>
>  
>   value="true"/>
>  
>  
>   
>
> but it doesn't really cut the cheese, after a some
> usage the site starts to
> regenerate the pages again, and the visitors will
> have to wait for nearly a
> minute for each call...
>
> am I doing something wrong here?
>
>
>
> mvh karl øie
>
>
>
>
>
> -Original Message-
> From: Berin Loritsch [mailto:[EMAIL PROTECTED]]
> Sent: 22. august 2001 21:53
> To: [EMAIL PROTECTED]
> Subject: Re: performance tuning...
>
>
> Karl Øie wrote:
> >
> > Hi, I have a very standard pipeline for my
> project. The file
> > "oversikten.xml" is filtered through the
> stylesheet
> > "oversikten.xsl" which uses parameters sent to it
> to filter/rearrange the
> > output.
> >
> > 
> >  src="sources/oversikten.xml"/>
> >  src="oversikten.xsl">
> >  name="use-request-parameters"
> value="true"/>
> > 
> > 
> > 
> >
> > The file "oversikten.xml" is about 4mb large, and
> the site performs quite
> > badly. Is there any tips for improving the
> performance short of splitting
> > the file into smaller parts as this I am not
> allowed to do that.
>
>
> What are the numbers your are targeting?  (i.e. how
> fast do you need it?)
> What kind of hardware are you using?
> What are the current numbers you are getting? (i.e.
> how slow is it now?)
>
> To really help you, we need these questions
> answered.
>
> If you are using the Caching Pipeline, you should be
> able to experience
> better
> performance each time you request it.  However, if
> your cache is set too
> small
> to keep the entire XML in memory, the cache will be
> of no benefit.
>
> How complicated are the XSLT stylesheets?  If you
> are not using global
> variables
> or parameters, that speeds things up.
>
>
-
> 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]>
>

=
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]>


-
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: performance tuning...

2001-08-23 Thread Karl Øie

I am sorry, I really should have thought of that!, here we go:-)

my system is:
-
- dual Pentium 1ghz
- 4 gb ram
- 2 speedraided ldv 9gb scsi disks
- linux slackware 8
- sun sdk 1.3.1
- tomcat 3.2.3
- xalan 2.2.d9
- xerces 1.4.3


wget timing:

first run of "toc.html" -> 41.879s
second run of "toc.html" -> 0.013s (!!!)

first run of "page.html?xpath=//*[@id='1222']" -> 58.031s
second run of "page.html?xpath=//*[@id='1222']" -> 0.017s (!!!)


questions:
--
as you can see the cache works great for a few pages, but the first hit
takes a lot of time, so is it possible to hit every page at startup so the
first visitors don't have to suffer?

how can I tune my cache settings? I have tried with this:

  
 
 
 
 
 
 
 
  

but it doesn't really cut the cheese, after a some usage the site starts to
regenerate the pages again, and the visitors will have to wait for nearly a
minute for each call...

am I doing something wrong here?



mvh karl øie





-Original Message-
From: Berin Loritsch [mailto:[EMAIL PROTECTED]]
Sent: 22. august 2001 21:53
To: [EMAIL PROTECTED]
Subject: Re: performance tuning...


Karl Øie wrote:
>
> Hi, I have a very standard pipeline for my project. The file
> "oversikten.xml" is filtered through the stylesheet
> "oversikten.xsl" which uses parameters sent to it to filter/rearrange the
> output.
>
> 
> 
> 
> 
> 
> 
> 
>
> The file "oversikten.xml" is about 4mb large, and the site performs quite
> badly. Is there any tips for improving the performance short of splitting
> the file into smaller parts as this I am not allowed to do that.


What are the numbers your are targeting?  (i.e. how fast do you need it?)
What kind of hardware are you using?
What are the current numbers you are getting? (i.e. how slow is it now?)

To really help you, we need these questions answered.

If you are using the Caching Pipeline, you should be able to experience
better
performance each time you request it.  However, if your cache is set too
small
to keep the entire XML in memory, the cache will be of no benefit.

How complicated are the XSLT stylesheets?  If you are not using global
variables
or parameters, that speeds things up.

-
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]>




performance tuning...

2001-08-22 Thread Karl Øie

Hi, I have a very standard pipeline for my project. The file
"oversikten.xml" is filtered through the stylesheet
"oversikten.xsl" which uses parameters sent to it to filter/rearrange the
output.









The file "oversikten.xml" is about 4mb large, and the site performs quite
badly. Is there any tips for improving the performance short of splitting
the file into smaller parts as this I am not allowed to do that.

mvh karl øie


-
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: JRE 1.3.1 problem

2001-08-17 Thread Karl Øie

I run w2k+apache+tomcat.3.2.3+cocoon2.0b2+jdk1.3.1 and it works fine, what
cind of errors do you get?

mvh k

-Original Message-
From: Luca Morandini [mailto:[EMAIL PROTECTED]]
Sent: 17. august 2001 14:30
To: Cocoon-users
Subject: JRE 1.3.1 problem



Anyone having problems with SUN's JRE 1.3.1 and Cocoon 2.0b2 ?

I tried it, but I had to go back to JRE 1.3.0... disappointing, isn't ?


Best regards,

P.S.
Complete configuration is:
- Windows 2000 Professional SP2
- IIS 5.0
- SUN JRE 1.3.1 (to make the whole thing work, I had to use 1.3.0)
- Tomcat 3.2.2
- Cocoon 2.0 b2

-
   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
-

-
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: Forms pseudo and passwd encryption

2001-08-17 Thread Karl Øie



ssl 
now secures the actual connection between your server and the client, but it is 
still uncrypted on both the client and server machine.
 
to 
further secure your form data you should use an encryption on whatever medium 
you store the data in on the server, and preferably an encryption that can 
create a public key to send to the user, and a private key to store data on the 
server. (f.eks PGP)
 
then 
comes the problem that your application will have to contain your public and 
private key, so now it is very very very important to secure the operating 
system and network you run your application on.
 
mvh 
karl
 

  -Original Message-From: cib 
  [mailto:[EMAIL PROTECTED]]Sent: 16. august 2001 23:22To: 
  Cocoon User Mail ListSubject: Forms pseudo and passwd 
  encryption
  Hi, 
  With help of tomcat user list, I've got my ssl 
  working .
  I wonder now how to completely secure my forms 
  datas? 
  How should I encrypt names and password from the 
  register form?
   
  Thanks for any help,
  I'm learning a lot, but still a newbie in 
  security things.
   
  Cib
   
  France, Bordeaux, xml and gay 
pride.


C2:Xpath and generators...

2001-08-15 Thread Karl Øie

i know this is some really newbie questions, but is it possible to:

- filter a generator through xpath?
- create a custom serializer that can access session variables?

in advance thanks!

mvh karl

-
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]>