No method matching in inner class

2001-09-17 Thread cib

Thanks to Luis Gois for correcting the first part.
it now says:
"No method matching main() found in inner class
org.apache.cocoon.www.pages.make1_xsp. make_xsl."
(I really don't know why there is a space between make1_xsp. and  make_xsl.
Is it normal?)

***
Here is my code for make1.xsp
***


http://apache.org/xsp";
  xmlns:esql="http://apache.org/cocoon/SQL/v2";>


  java.io.*



class make_xsl {
  public void main(String[] args) throws IOException {
 FileReader entree = new
FileReader(("http//:localhost/cocoon/test/make_xsl.xsp"));
  FileWriter sortie = new FileWriter("output.xsl");
 int c;
 while ( (c = entree.read()) != -1 )
sortie.write(c);
sortie.close();
entree.close();
 }
}


  


make_xsl anObject = new make_xsl();
anObject.main();


If you see this, it works.
  



Surely I didn't put the anObject call at the right place. My java is rather
experimental.
Thanks for correcting me.

Cib

France, Bordeaux,xml and gay pride.


-
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: No method matching in inner class

2001-09-17 Thread Christian Haul

On 17.Sep.2001 -- 10:16 PM, cib wrote:
> Thanks to Luis Gois for correcting the first part.
> it now says:
> "No method matching main() found in inner class
> org.apache.cocoon.www.pages.make1_xsp. make_xsl."
> (I really don't know why there is a space between make1_xsp. and  make_xsl.
> Is it normal?)
> 

> class make_xsl {
>   public void main(String[] args) throws IOException {

> anObject.main();

The signature does not match.

Chris.

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

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

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




Re: No method matching in inner class

2001-09-19 Thread cib

Thanks for answering,
unfortunately "signature does not match" sounds like a riddle to me.
I'm trying to output an xsl and save it to the disk. As nobody knows how to
do that I'm making a patchwork code of java bits I find anywhere: java
classes are far beyond my capabilities: I'm only a postman.
Thanks anyway.

Cib

France, Bordeaux, xml and gay pride.
- Original Message -
From: "Christian Haul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "cib" <[EMAIL PROTECTED]>
Sent: Monday, September 17, 2001 11:23 PM
Subject: Re: No method matching in inner class


> On 17.Sep.2001 -- 10:16 PM, cib wrote:
> > Thanks to Luis Gois for correcting the first part.
> > it now says:
> > "No method matching main() found in inner class
> > org.apache.cocoon.www.pages.make1_xsp. make_xsl."
> > (I really don't know why there is a space between make1_xsp. and
make_xsl.
> > Is it normal?)
> >
>
> > class make_xsl {
> >   public void main(String[] args) throws IOException {
>
> > anObject.main();
>
> The signature does not match.
>
> Chris.
>
> --
> C h r i s t i a n   H a u l
> [EMAIL PROTECTED]
> fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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




Re: No method matching in inner class

2001-09-19 Thread Christian Haul

On 19.Sep.2001 -- 10:09 AM, cib wrote:
> Thanks for answering,
> unfortunately "signature does not match" sounds like a riddle to me.

Sorry cib, I thought it was obvious after I pulled the lines
together. You declare a method "main(String[] args)" and call "main()"
without arguments which is a totally different method, hence "no
matching method found". Remove the argument from your method
declaration and try again. You seem not to use it anyway.

BTW I always though that "main" is used only as an entry point for
when no other method could be specified. Often it just invokes the
constructor which does the real work. Therefore you don't really need
"main(String[])". Just call class methods or put the logic into a
constructor. 

> I'm trying to output an xsl and save it to the disk. As nobody knows how to
> do that I'm making a patchwork code of java bits I find anywhere: java
> classes are far beyond my capabilities: I'm only a postman.
> Thanks anyway.

I don't know if this works, but have you tried to use the cocoon:
protocol as source for a transformer? You might be able to obtain the
xsl through that.


   



   
   


I haven't worked with this before but I understand that this should be
a valid application for it.

This way you XSL is not saved but I presume that the original
intention was to use it in a transformation with cocoon.


> > On 17.Sep.2001 -- 10:16 PM, cib wrote:
> > > Thanks to Luis Gois for correcting the first part.
> > > it now says:
> > > "No method matching main() found in inner class
> > > org.apache.cocoon.www.pages.make1_xsp. make_xsl."
> > > (I really don't know why there is a space between make1_xsp. and
> make_xsl.
> > > Is it normal?)
> > >
> >
> > > class make_xsl {
> > >   public void main(String[] args) throws IOException {
> >
> > > anObject.main();
> >
> > The signature does not match.

Chris.

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

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

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