You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Tran, Brenda" <BT...@citi-us.com> on 2005/05/16 16:37:17 UTC

RE: anyone else experience the build error that Brenda did?--problem solved

I removed my environment variables ANT_HOME and ANT_OPTS and it worked.
Thanks,
Brenda



-----Original Message-----
From: Berin Loritsch [mailto:bloritsch@d-haven.org] 
Sent: Friday, May 13, 2005 1:11 PM
To: users@cocoon.apache.org
Subject: Re: anyone else experience the build error that Brenda did?

Berin Loritsch wrote:
> Berin Loritsch wrote:
> 
>> I downloaded it and everything built ok for me, but it does have me 
>> concerned a bit.  She is a coworker of mine, and I'm not sure what is

>> different between the machines that we have but there is clearly a 
>> problem.
>>
>> If someone else has run into a similar issue could you throw a heads 
>> up?  I suspect it may be an XML related issue.  The question is of 
>> course where is it?  I believe she has the web services pack
installed 
>> on her machine from Sun.  Could that have messed up her environment?
>>
> 
> Oh, here's one difference:  I'm running Java 5.
> 
> Let me switch my environment to Java 4 and see if I still have issues.
> 

Ok, its still working...

Brenda, try uninstalling Sun's Web Services Development Kit and 
reinstalling Java to make sure no stray jars are littering your 
classpath.  I have a feeling that there is a conflict between the WSDK 
and Cocoon.  That should get Cocoon 2.1.7 to work.

-- 

"In socialism man exploits his fellow man;
  whereas in capitalism the reverse is true."

     Alistair Begg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: anyone else experience the build error that Brenda did?--problem solved

Posted by Upayavira <uv...@upaya.co.uk>.
Berin Loritsch wrote:
> Upayavira wrote:
> 
>> Tran, Brenda wrote:
>>
>>> I removed my environment variables ANT_HOME and ANT_OPTS and it worked.
>>> Thanks,
>>
>>
>>
>> In which case, there's a bug in the build script, as those variables 
>> shouldn't influence the build process, IMO.
>>
> 
> Those are part of the ANT build script, which I don't think the Cocoon 
> version is too different from that.  Perhaps the build.bat/build.sh file 
> should export ANT_HOME={location of cocoon ant} and ANT_OPTS={nothing}. 
>  That might be able to make everything be isolated.

Exactly my point. I'll take a look soon.

Regards, Upayavira

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: anyone else experience the build error that Brenda did?--problem solved

Posted by Berin Loritsch <bl...@d-haven.org>.
Upayavira wrote:
> Tran, Brenda wrote:
> 
>> I removed my environment variables ANT_HOME and ANT_OPTS and it worked.
>> Thanks,
> 
> 
> In which case, there's a bug in the build script, as those variables 
> shouldn't influence the build process, IMO.
> 

Those are part of the ANT build script, which I don't think the Cocoon 
version is too different from that.  Perhaps the build.bat/build.sh file 
should export ANT_HOME={location of cocoon ant} and ANT_OPTS={nothing}. 
  That might be able to make everything be isolated.

-- 

"In socialism man exploits his fellow man;
  whereas in capitalism the reverse is true."

     Alistair Begg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: running xsp from cocoon

Posted by Askild Aaberg Olsen <as...@xangeli.com>.
n. wrote:

>anyone??
>
>On 5/17/05, n. <eb...@gmail.com> wrote:
>  
>
>>      <map:match pattern="greeting">
>>       <map:generate src="greeting.xml"/>
>>       <map:transform src="greeting.xsl"/>
>>      <map:serialize/>
>>      </map:match>
>>    
>>
Did you declare "serverpages" as default generator? If not, try adding 
type="serverpages" to the map:generate-statement above.

When debugging pipelines, try to comment out the transformers to see if 
the generator produces the output exptected. If you can read "Hello 
World" in the generators xml, then the xslt is the cause of the problem.

Askild

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: running xsp from cocoon

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
n. wrote:

>>When I run this, I can only see the 'hi' but not the xsl variable.
>>anyone has any ideas what I might be doing wrong?

do yourself a favour and use JX / flow. XSP is deprecated.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: running xsp from cocoon

Posted by "n." <eb...@gmail.com>.
OK i found the problem to this.
we need to add type="serverpages" in the sitemap.xmap.
eg :
        <map:match pattern="dbtest">
                <map:generate type="serverpages" src="dbtest.xsp"/>
                <map:serialize type="xml"/>
        </map:match>

will process dbtest.xsp as an xsp page.

hope this helps others stuck with my problem.

On 5/17/05, n. <eb...@gmail.com> wrote:
> anyone??
> 
> On 5/17/05, n. <eb...@gmail.com> wrote:
> > I am trying to run the following sample from the cocoon tutorial but
> > it doesnt seem to be working:
> >
> > greeting.xml
> > <?xml version="1.0"?>
> >
> > <xsp:page xmlns:xsp="http://apache.org/xsp">
> >
> >         <xsp:logic>
> >                 //this could be arbitrarily complex Java code, JDBC
> > queries, etc.
> >                 String msg = "Hello, World!";
> >         </xsp:logic>
> >
> >         <greeting>
> >                 <xsp:expr>msg</xsp:expr>
> >         </greeting>
> >
> > </xsp:page>
> >
> > greeting.xsl
> > <?xml version="1.0"?>
> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
> >
> > <xsl:template match="/">
> >         <html>
> >                 <body>
> >         hi
> >                         <h1>
> >                                 <xsl:value-of select="greeting"/>
> >                         </h1>
> >                 </body>
> >         </html>
> > </xsl:template>
> >
> > </xsl:stylesheet>
> >
> > I am using cocoon 2.1.7 on tomcat 5.8 as a servlet. I created my own
> > sample directory in the "samples" directory. My sitemap.xmap file
> > looks like this:
> > sitemap.xmap:
> > <?xml version="1.0"?>
> >
> > <!-- CVS $Id: sitemap.xmap 30938 2004-07-29 19:08:16Z vgritsenko $ -->
> >
> > <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
> >
> >   <map:pipelines>
> >
> >     <map:pipeline>
> >
> >       <map:match pattern="greeting">
> >        <map:generate src="greeting.xml"/>
> >        <map:transform src="greeting.xsl"/>
> >       <map:serialize/>
> >       </map:match>
> >
> >       <map:match pattern="request.xml">
> >        <map:generate src="request.xml"/>
> >       <map:serialize/>
> >       </map:match>
> >
> >      </map:pipeline>
> >
> >   </map:pipelines>
> >
> > </map:sitemap>
> >
> > When I run this, I can only see the 'hi' but not the xsl variable.
> > anyone has any ideas what I might be doing wrong?
> >
> > thanks
> >
> > nayeem
> >
> 
> --
> Want to be a Chess Artist? - groups-beta.google.com/group/ChessCombinations/
> Whats it like to dance in London? -
> groups-beta.google.com/group/LondonDanceNetwork/
> 


-- 
Want to be a Chess Artist? - groups-beta.google.com/group/ChessCombinations/
Whats it like to dance in London? -
groups-beta.google.com/group/LondonDanceNetwork/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: running xsp from cocoon

Posted by "n." <eb...@gmail.com>.
anyone??

On 5/17/05, n. <eb...@gmail.com> wrote:
> I am trying to run the following sample from the cocoon tutorial but
> it doesnt seem to be working:
> 
> greeting.xml
> <?xml version="1.0"?>
> 
> <xsp:page xmlns:xsp="http://apache.org/xsp">
> 
>         <xsp:logic>
>                 //this could be arbitrarily complex Java code, JDBC
> queries, etc.
>                 String msg = "Hello, World!";
>         </xsp:logic>
> 
>         <greeting>
>                 <xsp:expr>msg</xsp:expr>
>         </greeting>
> 
> </xsp:page>
> 
> greeting.xsl
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
> 
> <xsl:template match="/">
>         <html>
>                 <body>
>         hi
>                         <h1>
>                                 <xsl:value-of select="greeting"/>
>                         </h1>
>                 </body>
>         </html>
> </xsl:template>
> 
> </xsl:stylesheet>
> 
> I am using cocoon 2.1.7 on tomcat 5.8 as a servlet. I created my own
> sample directory in the "samples" directory. My sitemap.xmap file
> looks like this:
> sitemap.xmap:
> <?xml version="1.0"?>
> 
> <!-- CVS $Id: sitemap.xmap 30938 2004-07-29 19:08:16Z vgritsenko $ -->
> 
> <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
> 
>   <map:pipelines>
> 
>     <map:pipeline>
> 
>       <map:match pattern="greeting">
>        <map:generate src="greeting.xml"/>
>        <map:transform src="greeting.xsl"/>
>       <map:serialize/>
>       </map:match>
> 
>       <map:match pattern="request.xml">
>        <map:generate src="request.xml"/>
>       <map:serialize/>
>       </map:match>
> 
>      </map:pipeline>
> 
>   </map:pipelines>
> 
> </map:sitemap>
> 
> When I run this, I can only see the 'hi' but not the xsl variable.
> anyone has any ideas what I might be doing wrong?
> 
> thanks
> 
> nayeem
> 


-- 
Want to be a Chess Artist? - groups-beta.google.com/group/ChessCombinations/
Whats it like to dance in London? -
groups-beta.google.com/group/LondonDanceNetwork/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


running xsp from cocoon

Posted by "n." <eb...@gmail.com>.
I am trying to run the following sample from the cocoon tutorial but
it doesnt seem to be working:

greeting.xml
<?xml version="1.0"?>

<xsp:page xmlns:xsp="http://apache.org/xsp">

        <xsp:logic>
                //this could be arbitrarily complex Java code, JDBC
queries, etc.
                String msg = "Hello, World!";
        </xsp:logic>

        <greeting>
                <xsp:expr>msg</xsp:expr>
        </greeting>

</xsp:page>

greeting.xsl
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:template match="/">
        <html>
                <body>
        hi
                        <h1>
                                <xsl:value-of select="greeting"/>
                        </h1>
                </body>
        </html>
</xsl:template>

</xsl:stylesheet>

I am using cocoon 2.1.7 on tomcat 5.8 as a servlet. I created my own
sample directory in the "samples" directory. My sitemap.xmap file
looks like this:
sitemap.xmap:
<?xml version="1.0"?>

<!-- CVS $Id: sitemap.xmap 30938 2004-07-29 19:08:16Z vgritsenko $ -->

<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">

  <map:pipelines>

    <map:pipeline>
        
      <map:match pattern="greeting">
       <map:generate src="greeting.xml"/>
       <map:transform src="greeting.xsl"/>
      <map:serialize/>
      </map:match>

      <map:match pattern="request.xml">
       <map:generate src="request.xml"/>
      <map:serialize/>
      </map:match>


     </map:pipeline>                

  </map:pipelines>

</map:sitemap>

When I run this, I can only see the 'hi' but not the xsl variable.
anyone has any ideas what I might be doing wrong?

thanks

nayeem

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: anyone else experience the build error that Brenda did?--problem solved

Posted by Upayavira <uv...@upaya.co.uk>.
Tran, Brenda wrote:
> I removed my environment variables ANT_HOME and ANT_OPTS and it worked.
> Thanks,

In which case, there's a bug in the build script, as those variables 
shouldn't influence the build process, IMO.

Regards, Upayavira

> -----Original Message-----
> From: Berin Loritsch [mailto:bloritsch@d-haven.org] 
> Sent: Friday, May 13, 2005 1:11 PM
> To: users@cocoon.apache.org
> Subject: Re: anyone else experience the build error that Brenda did?
> 
> Berin Loritsch wrote:
> 
>>Berin Loritsch wrote:
>>
>>
>>>I downloaded it and everything built ok for me, but it does have me 
>>>concerned a bit.  She is a coworker of mine, and I'm not sure what is
> 
> 
>>>different between the machines that we have but there is clearly a 
>>>problem.
>>>
>>>If someone else has run into a similar issue could you throw a heads 
>>>up?  I suspect it may be an XML related issue.  The question is of 
>>>course where is it?  I believe she has the web services pack
> 
> installed 
> 
>>>on her machine from Sun.  Could that have messed up her environment?
>>>
>>
>>Oh, here's one difference:  I'm running Java 5.
>>
>>Let me switch my environment to Java 4 and see if I still have issues.
>>
> 
> 
> Ok, its still working...
> 
> Brenda, try uninstalling Sun's Web Services Development Kit and 
> reinstalling Java to make sure no stray jars are littering your 
> classpath.  I have a feeling that there is a conflict between the WSDK 
> and Cocoon.  That should get Cocoon 2.1.7 to work.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org