Re: Class Loader problem

2001-12-27 Thread Sidharth



well if  try to put my own exception class it 
does not read the class and while reading the sitemap it throws classnotfound 
exception with unable to load the class

  - Original Message - 
  From: 
  Nuno José 
  Pires dos Santos 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, December 27, 2001 11:32 
  PM
  Subject: RE: Class Loader problem
  
  
  Can 
  you say what the exact exception tree is? 
  The 
  question you posed is not good enough for a god 
  answer!
   
      
  
     
  Nuno Santos
   
  
   
  -Mensagem 
  original-De: Sidharth 
  [mailto:[EMAIL PROTECTED]] 
  Enviada: quinta-feira, 27 de 
  Dezembro de 2001 17:01Para: 
  [EMAIL PROTECTED]Assunto: Class Loader 
  problem
   
  
  Hello 
  All
  
  I am trying to define a new action 
  in cocoon2 It gives me an exception Classloader 
  


RE: Class Loader problem

2001-12-27 Thread Nuno José Pires dos Santos









Can
you say what the exact exception tree is? 

The
question you posed is not good enough for a god answer!

 

    

   Nuno
Santos

 

 

-Mensagem original-
De: Sidharth
[mailto:[EMAIL PROTECTED]] 
Enviada: quinta-feira, 27 de
Dezembro de 2001 17:01
Para: [EMAIL PROTECTED]
Assunto: Class Loader problem

 



Hello All





I am trying to define a new action
in cocoon2 It gives me an exception Classloader 










Re: PJA Toolkit Licensing Answered

2001-12-27 Thread Berin Loritsch

Robert J. Lebowitz wrote:

> I wonder whether the whole licensing issue is a moot point.  Supposedly, the
> new jdk1.4 will be capable of running without the XServer although I haven't
> heard from anyone yet that it works properly at this time.


I have only seen empty graphics when used with JDK 1.4 (i.e. nothing rendered)

-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
 - Benjamin Franklin


-
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: PJA Toolkit Licensing Answered

2001-12-27 Thread Robert J. Lebowitz

I wonder whether the whole licensing issue is a moot point.  Supposedly, the
new jdk1.4 will be capable of running without the XServer although I haven't
heard from anyone yet that it works properly at this time.




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




PJA Toolkit Licensing Answered

2001-12-27 Thread Jeremy Crosbie

Rather than continue in the circle of determining whether or not the PJA
toolkit can be used in conjunction with Cocoon (actually Batik) given
license incompatibilities I asked the author. Here is the email
conversation:

> There has been some discussion on the Cocoon mailing list
> (xml.apache.org/cocoon) as to the legality of using the PJA within 
> Tomcat/Cocoon since PJA is released under the GPL. The GPL 
> specifically states that use of a library released under the GPL must 
> be within a GPL'd system. Since Tomcat and Cocoon are released under 
> the Apache license (which is listed as incompatible by GNU) is using 
> the PJA toolkit within these applications a violation?

I think Apache License is closer to GNU LGPL than GNU GPL, isn't it ?

I decided to change PJA license in July 2000 to distribute it under GPL. I
didn't know LGPL at that time, and GPL seemed Ok to me (I'm a developer, not
a license expert). 
As I already changed once PJA license, I won't change it again to avoid PJA
users to get confused by an unstable license policy.

Reading again the page http://www.gnu.org/philosophy/why-not-lgpl.html, I
don't regret it because one of the interpretation of the spirit of GPL for
libraries is for me : "Why would people make money with a proprietary
program using a GPL library and not the author of the library ?"

In fact, I didn't expect such a success for PJA and nowadays I'm more
concerned about people selling products that would require and include PJA
to be able to run, than free products like Cocoon. PJA is really a special
product as most people use it as a temporary patch (corrected with coming
JDK 1.4 headless system) and they need it only at runtime (not at compile
time).

The thing I would like from PJA users is to mention somewhere on their
website that they use eTeks PJA.

I hope this will help you. Don't hesitate to ask more questions...

You may quote me in Cocoon mailing list if you want to.

Regards
-- 
Emmanuel PUYBARET
Email  : [EMAIL PROTECTED]
Web: http://www.eteks.com

Jeremy Michael Crosbie
Senior Software Engineer
go2.com
go2Address: US.CA.IRV.GO2
Tel: (949) 553-0800 x131
email: [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]>




Class Loader problem

2001-12-27 Thread Sidharth



Hello All
I am trying to define a new action in cocoon2 It 
gives me an exception Classloader 


C2: Processing exception with logicsheet

2001-12-27 Thread Friedrich Schuster

Hi Cocoon Users,

I get a ProcessingException: Language Exception
when passing parameters to a logicsheet (cocoon2.0, Tomcat 4.0.1, Win2k).

This happens _only_ when passing the a parameter
within the content of a custom tag
via

0

(not as an attribute).

The generated code is invalid:

start = Strings.isDigit(this.characters("0");) ?
   ^
Strings.toInt(this.characters("0");) : 0 ;
  ^

A transformation of the same xml / xsl with Xalan-J 2.2
(without cocoon) seems to work.

Did anybody experience or solve this problem ?
Thanks in advance,

Friedrich Schuster
Heidelberg, Germany

 xml 


  0



-- xsl-logic --





  
s
true
  



  
c
true
  



  
start
false
  



  
ignoreCase
false
  



  s = ;
  c = ;
  start = Strings.isDigit() ?
Strings.toInt() : 0 ;
  ignoreCase = Strings.equals(,"true",true) ;
  indexOfAnyBut=String.valueOf(ViolinStrings.Strings.indexOfAnyBut(s, c,
start, ignoreCase));

indexOfAnyBut



 deleted ...









  

  







false
vstring


  



  
""
  
  

  

  
  ""






  

  
  ""






-
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: problems with Jtidy

2001-12-27 Thread Robert J. Lebowitz

I'd also recommend looking at the dom4j framework which is similar to JDOM,
but with many enhancements.  It's currently be used as part of the first
JAXM release from Sun, btw.

There are some good samples illustrating who to combine jtidy, xslt, etc.
with dom4j to perform the kinds of operations you describe.

Rob
- Original Message -
From: "lucas" <[EMAIL PROTECTED]>
To: "COCOON" <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 4:41 AM
Subject: problems with Jtidy


> Hi All,
>
> I have a problem integrating Jtidy into my cocoon application. Any Help is
> appreciated.
>
> I am using Cocoon and JDOM to generate the XML at the server and applying
a
> certain XSLT stylesheet to it. At a certain point of the transformation, I
> need to insert a mal-formed HTML into the XSLT output stream. I believe I
> can use JTidy to actually convert this to a well-formed HTML and then have
> it inserted into the output. My problem is that I just cant start off.
>
> How do I reference the XSLT to call the Jtidy application. Can Jtidy
accept
> a ill-formed HTML on the fly, generate a XHTML and send the XHTML and the
> control back to the XSLT for further processing.
>
> If anybody has done this, a small piece of code will be nice.
>
> Thanks
>
> Lucas Pons Bayarri
> Etra I+D
> Valencia, Spain
> +34 96 330 40 82
>
>
> -
> 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: problems with Jtidy

2001-12-27 Thread lucas

thanks a lot! , this works fine.


-Mensaje original-
De: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 27 de diciembre de 2001 14:21
Para: [EMAIL PROTECTED]
Asunto: Re: problems with Jtidy


On Friday 27 July 2001 12:41, lucas wrote:

> At a certain point of the transformation, I need to insert a
> mal-formed HTML into the XSLT output stream.

You could use the standard Cocoon "HTMLGenerator" to do this, for example:

http://somehost/file.html"/>

And maybe aggregate this with your XML using map:aggregate, to have both XML
trees in a single document for further processing.

--
 -- Bertrand Delacrétaz, www.codeconsult.ch
 -- web technologies consultant - OO, Java, XML, C++






-
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: problems with Jtidy

2001-12-27 Thread Bertrand Delacretaz

On Friday 27 July 2001 12:41, lucas wrote:

> At a certain point of the transformation, I need to insert a 
> mal-formed HTML into the XSLT output stream. 

You could use the standard Cocoon "HTMLGenerator" to do this, for example:

http://somehost/file.html"/>

And maybe aggregate this with your XML using map:aggregate, to have both XML 
trees in a single document for further processing.

-- 
 -- Bertrand Delacrétaz, www.codeconsult.ch
 -- web technologies consultant - OO, Java, XML, C++






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




SVG2JPEG

2001-12-27 Thread Bobby Koya

Is there anyway of getting rid of this error displayed within tomcat
that originates from batik? 

"ERROR: The JPEG quality has not been specified. Use the default one: no
compression"

It appears when the fragment extractor is used to extract the SVG code
from the pipeline and converts it into a jpeg. There must be a way of
setting the quality?

Thanks

Sharat Koya






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




User authentication [was Re: Cocoon2 & mySQL database ...]

2001-12-27 Thread Arnaud Vandyck

"Uwe Stelzer" <[EMAIL PROTECTED]> wrote:

> Now I only need a good user authentification against the database.

You have  an example "Session XSP  - Sample Session  XSP to illustrate
session handling." on the demo of Cocoon. You also have the "Protected
Area  -  An  example  web-application built  around  db-authenticator,
form-validator, session-validator and session-invalidator actions."

These two examples should be enough to start. 

Have fun,

-- Arnaud, STE-Formations Informatiques, fapse, ULg, .BE

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




problems with Jtidy

2001-12-27 Thread lucas

Hi All,

I have a problem integrating Jtidy into my cocoon application. Any Help is
appreciated.

I am using Cocoon and JDOM to generate the XML at the server and applying a
certain XSLT stylesheet to it. At a certain point of the transformation, I
need to insert a mal-formed HTML into the XSLT output stream. I believe I
can use JTidy to actually convert this to a well-formed HTML and then have
it inserted into the output. My problem is that I just cant start off.

How do I reference the XSLT to call the Jtidy application. Can Jtidy accept
a ill-formed HTML on the fly, generate a XHTML and send the XHTML and the
control back to the XSLT for further processing.

If anybody has done this, a small piece of code will be nice.

Thanks

Lucas Pons Bayarri
Etra I+D
Valencia, Spain
+34 96 330 40 82


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




sendRedirect() problem

2001-12-27 Thread lucas

Hi all of you !
I'm performing a site for both html and wml clients.
The logic of the system is performed by servlets (Tomcat 3.2.3). C2 is used
to render this data properly for each client.
This Works fine (90% finished) if the client directly requests the pages or
calls the logic, the problem appears when a wap client calls a servlet which
makes 'something', and then redirects the output to another pipeline:

class myServlet
{
doGet()
{
 
res.sendRedirect("http://myserver/cocoon/anotherServlet";);
}
}

the pipeline of this last servlet generates the xml, but fails rendering the
output, because it detects that the user is an html user (WRONG!),and
formats the output appropiately, and then my WAP client could not show the
output.
I think my problem is that the second call (the redirect call) is performed
by a 'fixed' user, cocoon, and then the second pipeline does not detect any
wap client in this call.

I know i can make another pipeline, which does not make any client type
comparation, and directly renders it  into a wml page, let's call it
anotherServletWAP. But i prefer not to use much more pipelines and keep both
html and wap not very differents.

thank's all of you in advance.
regards

Lucas Pons Bayarri
Etra I+D
Valencia, Spain
+34 96 330 40 82


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