PDF attachment using Sendmail and 2.0.4

2003-06-25 Thread Tony Edwards
Title: PDF attachment using Sendmail and 2.0.4





Hi all,
I checked out the sendmail item on wiki and tried to mail the results of a pipeline serialized as PDF.
I followed the wiki instructions to the letter.
The mail worked alright, but the PDF file was attached as uuencoded text (at least that's what it looked like). I have obviously overlooked something. Should I be using util:get-source/ as specified or something different?

I noticed in the 2.1 sendmail logicsheet that there's a sendmail:attachment/ tag which specifies a mime-type parameter, but the project I'm working on is in good old 2.0.4.

Any clues?


thanks everyone,


Tony





Re: i18n

2003-06-25 Thread Konstantin Piroumian



Take a look at i18n transformer 
configuration in your sitemap. Probably it defines the 'untranslated-text' 
parameter which is used instead of the key value.

-- Konstantin

  - Original Message - 
  From: 
  Kavitha Ramesh 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, June 24, 2003 18:30
  Subject: i18n 
  
  Hi,
  
  I read the following in a documentation:
  
  untranslated-text: text used for untranslated keys 
  (default is to output the key name).
  
  But when I dont have translations in my messages.xml, i get something 
  like "untranslated-text".Actually it should display the key name.I use IBM 
  Websphere 4.0 with Cocoon 2.0.
  If someone has any solutions pls tell me.
  
  Regards
  Kavitha Ramesh.
  
  
  Do you Yahoo!?SBC 
  Yahoo! DSL - Now only $29.95 per month!


Re: esql !!!HELP!!!

2003-06-25 Thread Frank Taffelt
you could try annother msssql jdbc driver. I'm using
http://jtds.sourceforge.net also with stored procedures and it works. The
driver from microsoft is known to have some bugs.

hth,
Frank


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



Re:i18n

2003-06-25 Thread Kavitha Ramesh
Hi Konstantin,

My sitemap configuration is as follows:
map:transformer name="i18n" src="" catalogue-namemessages/catalogue-name catalogue-locationtranslations/catalogue-location /map:transformer

I dont have anything like untranslated-text in my sitemap configuration,,,
I cannot understand where does this untranslated-text comes from??

Kavitha


Take a look at i18n transformer configuration in your sitemap. Probably it defines \the 'untranslated-text' parameter which is used instead of the key value.-- Konstantin - Original Message -  From: Kavitha Ramesh  To: [EMAIL PROTECTED]  Sent: Tuesday, June 24, 2003 18:30 Subject: i18n  Hi, I read the following in a documentation: untranslated-text: text used for untranslated keys (default is to output the key \name). But when I dont have translations in my messages.xml, i get something like \"untranslated-text".Actually it should display the key name.I use IBM Websphere 4.0 \with Cocoon 2.0. If someone has any solutions pls tell me. Regards Kavitha Ramesh.
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re:i18n

2003-06-25 Thread Stavros Kounis

i use to have untranslated texts caused by

1.wrong keys

2.cocoon caching system

1. check your key values
2. del tomcat's working directory


---stavros


On Wed, 25 Jun 2003, Kavitha Ramesh wrote:

 Hi Konstantin,

 My sitemap configuration is as follows:
 map:transformer name=i18n  
 src=org.apache.cocoon.transformation.I18nTransformer
 catalogue-namemessages/catalogue-name
 catalogue-locationtranslations/catalogue-location
/map:transformer

 I dont have anything like untranslated-text in my sitemap configuration,,,
 I cannot understand where does this untranslated-text comes from??

 Kavitha


 Take a look at i18n transformer configuration in your sitemap. Probably it defines \
 the 'untranslated-text' parameter which is used instead of the key value.

 -- Konstantin
   - Original Message -
   From: Kavitha Ramesh
   To: [EMAIL PROTECTED]
   Sent: Tuesday, June 24, 2003 18:30
   Subject: i18n


   Hi,

   I read the following in a documentation:

   untranslated-text: text used for untranslated keys (default is to output the key \
 name).

   But when I dont have translations in my messages.xml, i get something like \
 untranslated-text.Actually it should display the key name.I use IBM Websphere 4.0 \
 with Cocoon 2.0.  If someone has any solutions pls tell me.

   Regards
   Kavitha Ramesh.




 -
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!



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



ASP generator

2003-06-25 Thread Sylvain.Thevoz
Hello,

Is there a way to read a dynamic HTML page generated by a Microsoft ASP application?

Do I need the HTML generator or another asp generator?

Thanks
Sylvain

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



RE: ASP generator

2003-06-25 Thread Reinhard Pötz

 From: [EMAIL PROTECTED] 
 
 
 Hello,
 
 Is there a way to read a dynamic HTML page generated by a 
 Microsoft ASP application?
 
 Do I need the HTML generator or another asp generator?

No, the HTML generator should do it!

Reinhard


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



Re: ASP generator

2003-06-25 Thread Upayavira
Just use either the HTML or the file (xml) generator, depending upon the output of the 
ASP page. I've done this, and it is pretty trivial.

Regards, Upayavira

On 25 Jun 2003 at 11:11, [EMAIL PROTECTED] wrote:

 Hello,
 
 Is there a way to read a dynamic HTML page generated by a Microsoft
 ASP application?
 
 Do I need the HTML generator or another asp generator?
 
 Thanks
 Sylvain
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: A tranformer for sxw files

2003-06-25 Thread Denis Svishchev
24  2003 21:11 Vindevogel - van Loco (a):
 Take a look at the wiki ...
 I published a document there how you can do this ;..


Thank you! I'll try to use it.

-- 
Best regards,
Denis Svishchev
ZAO Mobicom-Kavkaz


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



Esql error?!

2003-06-25 Thread Maxime.Gheysen
what is wrong with my page? It worked before, and since I change the
version of cocoon (from 2.0 to 2.1) it doesn't work anymore (the page
make a timeout) :

...
} else {
/xsp:logic
 form action=add-param-configdb_add method=post   
 table
  thselect/th
  thcolumn name/th  
 xsp:logic
 while(mytester != null) { 
  /xsp:logic
  tr   
  esql:execute-query
  esql:query
SELECT COL_NAME(OBJECT_ID('xsp:exprmyDB/xsp:expr'),
xsp:exprmycolid/xsp:expr) as ColName
  /esql:query
  esql:results
  esql:row-results
xsp:logic
 mytester = esql:get-string column=ColName/;
 if (mytester != null) { 
  tdinput type=radio name=radiobutxsp:attribute
name=valueesql:get-string
column=ColName//xsp:attribute/input/td
  tdesql:get-string column=ColName//td

 }  
/xsp:logic
/esql:row-results 
/esql:results 
   /esql:execute-query 
   /tr
   xsp:logic
   mycolid =  mycolid + 1;
} 
/xsp:logic  
/table
...

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



Re: esql:query problem

2003-06-25 Thread Christian Haul
On 24.Jun.2003 -- 08:48 AM, Tim Bachta wrote:
 Here is what I am trying, I am getting an invalid parameter bindings
 error, do I need to register the out parameters?  

Yes -- unless your driver returns a result set. This is highly
dependent on the jdbc driver :-( 

If you know how to do it in plain java, we'll be able to help you
transfer this knowledge to esql.

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

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



Re: sendMail sample not working for Cocoon2.1M2...

2003-06-25 Thread Christian Haul
On 24.Jun.2003 -- 10:00 AM, Yan, Charlene wrote:
 Chris,
 
 Looks like that to field is not changed in the logs.  I hope this email is going to 
 go through.  After the send, the same page comes up.

Charlene, I have send a direct reply yesterday. In short, I cannot
reproduce this with a clean cvs checkout. The problem appear to be a
request parameter not getting through -- sendmail is never invoked.
Please update and try again with a fresh  clean version.

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

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



Re: Chaining pipelines --- write a file to server --- email it as an attachment -- delete the file

2003-06-25 Thread Christian Haul
On 24.Jun.2003 -- 03:41 PM, Yan, Charlene wrote:
 When I click a Send Email button on the page, the application will create a rtf 
 file on the server, and then sendMail will send email to an email address entered by 
 the user with attachment of the rtf file and idealy the rtf file should be deleted 
 from the server.  

See e.g.

http://wiki.cocoondev.org/Wiki.jsp?page=MailBodyViaPipeline

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

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



Re: esql !!!HELP!!!

2003-06-25 Thread Christian Haul
On 24.Jun.2003 -- 12:35 PM, Tim Bachta wrote:
 Does cocoon compile an xsp into a Java class file?  If so where does it
 put it.  The reason why I am asking is that my procedures that I am
 having trouble with in cocoon work fine in a java class file.

Please post relevant parts of that file. It will help to solve your
issues tremendously.

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

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



[SUMMARY] RE: Esql error?!

2003-06-25 Thread Maxime.Gheysen
I don't know why it worked like this before, but I remarked that the
error is :
 while(mytester != null) {  -wrong
 while(!mytester.equals()) { -right
Because when SQL returns a NULL value in XSP this value is not NULL, but
 !


-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
.org] 
Sent: Wednesday, June 25, 2003 2:25 PM
To: [EMAIL PROTECTED]
Subject: Esql error?!


what is wrong with my page? It worked before, and since I change the
version of cocoon (from 2.0 to 2.1) it doesn't work anymore (the page
make a timeout) :

...
} else {
/xsp:logic
 form action=add-param-configdb_add method=post   
 table
  thselect/th
  thcolumn name/th  
 xsp:logic
 while(mytester != null) { 
  /xsp:logic
  tr   
  esql:execute-query
  esql:query
SELECT COL_NAME(OBJECT_ID('xsp:exprmyDB/xsp:expr'),
xsp:exprmycolid/xsp:expr) as ColName
  /esql:query
  esql:results
  esql:row-results
xsp:logic
 mytester = esql:get-string column=ColName/;
 if (mytester != null) { 
  tdinput type=radio name=radiobutxsp:attribute
name=valueesql:get-string
column=ColName//xsp:attribute/input/td
  tdesql:get-string column=ColName//td

 }  
/xsp:logic
/esql:row-results 
/esql:results 
   /esql:execute-query 
   /tr
   xsp:logic
   mycolid =  mycolid + 1;
} 
/xsp:logic  
/table
...

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


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



RE: Pls help! not working response.encodeURL(String.valueOf(xsl:copy-of select=$href/))

2003-06-25 Thread a000
Does anybody think wrapping some other tags around xsl:copy-of 
select=$curSel/ could solve the problem? I was experimenting with
util:include-expr, util:expr and xsp:expr but no success.

Are there similar ones which I don't know yet?

I'd really appreciate some help.

Regards,

Harry

 I have extracted the relevant information into a small-scale example. As
 follows I include the logicsheet, the stacktrace and the generated Java
 file.
 I'd hope that somebody can give me a hint.
 
 Regards,
 
 Harry
 
 
 Logicsheet: Test.htm.xsp.xsl
 
 
 ?xml version=1.0 encoding=ISO-8859-1?
 xsp:page language=java
   xmlns:xsp=http://apache.org/xsp;
   xmlns:xsp-request=http://apache.org/xsp/request/2.0;
   xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
   xmlns:cinclude=http://apache.org/cocoon/include/1.0;
 
 
 xsl:stylesheet version=1.0
 
 xsp:logic
   System.out.println();
   System.out.println(calling Test.htm.xsp.xsl:);
 /xsp:logic
 
 
  xsl:variable name=curSel
xsp:attribute
 name=select'xsp:exprInteger.MIN_VALUE/xsp:expr'/xsp:attribute
  /xsl:variable
 
   xsl:template match=/
 
   a
   xsp:attribute name=href
 xsp:expr
   response.encodeURL(String.valueOf(xsl:copy-of
 select=$curSel/))
 /xsp:expr
   /xsp:attribute
   xsl:value-of select=$curSel /
   /a
 
 
 /xsl:template
 
 xsl:template match=@*|node() priority=-1
 xsl:copy
   xsl:apply-templates select=@*|node()/
 /xsl:copy
   /xsl:template
 
 
 /xsl:stylesheet
 
 /xsp:page
 
 
 Original exception :
 org.apache.cocoon.components.language.LanguageException: Error compiling
 Test_htm_xsp_xsl:
 Line 0, column 0: could not parse error message: Note:
 sun.tools.javac.Main
 has been
 deprecated.

D:\prj\_UIDL_EXAMPLE\Tomcat\work\demo\cocoon-files\org\apache\cocoon\www\button\Test_htm_xsp_xsl.java:139:
 No method matching valueOf() found in class
 java.lang.String.
 String.valueOf(response.encodeURL(String.valueOf())) + \n  + );
 ^
 
 Line 0, column 0: 
 1 error, 1 warning
 
 at

org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:205)
 
 at

org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:140)
 
 at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:332)
 
 at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:282)
 
 at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:231)
 
 at

org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:168)
 
 at

org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:154)
 
 at

org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:238)
 
 at

org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:99)
 
 at

org.apache.cocoon.components.source.SitemapSource.refresh(SitemapSource.java:240)
 
 at

org.apache.cocoon.components.source.SitemapSource.init(SitemapSource.java:152)
 
 at

org.apache.cocoon.components.source.CocoonSourceFactory.getSource(CocoonSourceFactory.java:54)
 
 at

org.apache.cocoon.components.source.SourceHandlerImpl.getSource(SourceHandlerImpl.java:134)
 
 at

org.apache.cocoon.environment.AbstractEnvironment.resolve(AbstractEnvironment.java:293)
 
 at

org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:254)
 
 at

org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:167)
 
 at

org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:238)
 
 at

org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:99)
 
 at

org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:276)
 
 at

org.apache.cocoon.www.button.sitemap_xmap.matchN10040(sitemap_xmap.java:829)
 
 at
 org.apache.cocoon.www.button.sitemap_xmap.process(sitemap_xmap.java:414) 
 at
 org.apache.cocoon.www.button.sitemap_xmap.process(sitemap_xmap.java:320) 
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:180) 
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127) 
 at org.apache.cocoon.www.sitemap_xmap.matchN4002FA(sitemap_xmap.java:4517)
 
 at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2850) 
 at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2563) 
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:180) 
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127) 
 at
 org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144)
 
 at org.apache.cocoon.Cocoon.process(Cocoon.java:582) 
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795)
 
 at 

RE: Chaining pipelines --- write a file to server --- email it as an attachment -- delete the file

2003-06-25 Thread Yan, Charlene
Thanks, Chris.  I am looking at the example.  I think my problem is more complicated.  
When I click on Send Email button, I need to post an xml string to Cocoon pipeline 
to generate the rtf file.  Then I can use the rtf as an attachment to the email.  It 
would be easier if I had a pipeline that opens a static rtf.  The difficult thing is 
how I can do two posts at ONE button click.

Charlene

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 8:46 AM
To: [EMAIL PROTECTED]
Subject: Re: Chaining pipelines --- write a file to server --- email it
as an attachment -- delete the file


On 24.Jun.2003 -- 03:41 PM, Yan, Charlene wrote:
 When I click a Send Email button on the page, the application will create a rtf 
 file on the server, and then sendMail will send email to an email address entered by 
 the user with attachment of the rtf file and idealy the rtf file should be deleted 
 from the server.  

See e.g.

http://wiki.cocoondev.org/Wiki.jsp?page=MailBodyViaPipeline

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

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


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



Cocoon and Jbos3.0.6 configuration

2003-06-25 Thread Mitchell, Lincoln L.
I am trying to get cocoon (any version) working with Jbos-3.0.6 and have tried 
following the instruction you mentioned on the apache site but to no avail as only 
Jboss 2 is mentioned.  I also browsed the cocoon mailing list and it seems others have 
had this problem but I don't understand the solutions offered to some of these 
postings. I am new to XSLT and Java so need a simple guide. So far this is the best I 
have found and it might as well be French to me, 

1.  fix the jndi url protocol handler problem
1.1 get jboss3.0.0RC3 sources via cvs
1.2 patch the source
1.3 compile it described on jboss.org--developers
1.4 compile catalina stuff inside jboss3 (look at jboss forums for some tips if 
you are not familiar with ant)
1.5 get the resulting jboss dist running and test it. 

2.  get cocoon2.0.2 or later
2.1 put WEB-INF/lib/batik-libs*.jar in jboss/lib dir (there's an 
classloader issue in batik1.1 libs)
2.2 deploy cocoon.war as a test


Does anyone have any direction on this?

Best Regards
Lincoln Mitchell (Linc)

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



Error message not displayed

2003-06-25 Thread Dmitry Diskin
Hello

I have been struggling with blank page in my browser for a while, and 
the problem was in invalid xsl:call-template.. element - it was 
referring to non-existent template. No error message was displayed, 
except. I think that error.log is not enough for such type of error. Or 
I'm missing something and it can be configured to report such error on 
the screen?

Regards,
Dmitry.


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


problems with new coplets in my portal

2003-06-25 Thread Matthias Wessendorf
hello,

just having a problem with the portal-framework of cocoon

i wrote a new coplet

added it to coplet-profile
wrote a pipeline in the sitemap
activated in global-profile
but i did not get the information,

only the error-message of the
coplet_not_available-Tag
anyone a idea?

thx a lot

Greetings

Matthias

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


RE: esql:query problem

2003-06-25 Thread Tim Bachta
Here is my code in plain Java:

import java.util.*;
import java.sql.*;
import javax.sql.*;
import javax.naming.*;
import java.text.*;
import com.microsoft.jdbc.sqlserver.SQLServerDriver;


public class Test
{
public static void main(String args[])
{

boolean retVal = false;
try
{
Connection con = makeConnection();
if (con != null)
{

try
{

CallableStatement stmt = con.prepareCall({call
rptLocationDeviations(?,?,?,?)});
stmt.setInt(1, 199);
stmt.setString(2, Rm 130 B);
stmt.setString(3, 5-20-2003);
stmt.setString(4, 6-20-2003);
ResultSet res = stmt.executeQuery();
while (res.next())
{
System.out.println(Result set is working);
}
res.close();
stmt.close();

retVal = true;
}
catch (SQLException ex)
{
ex.printStackTrace();

}
finally
{
try {
con.close();
}
catch (SQLException ex) {
ex.printStackTrace();
}
}
}
else
{
System.out.println(noConnection);
}
}
catch(SQLException sql)
{
sql.printStackTrace();
}
System.out.println(Return val =+ retVal);
}


  

public static Connection makeConnection() throws SQLException
{

System.setProperty(jdbc.drivers,
com.microsoft.jdbc.sqlserver.SQLServerDriver);
return
DriverManager.getConnection(jdbc:microsoft:sqlserver://kopentpdc:1433;D
atabaseName=vyzo, user, password);
}
}


End Java
///

Here is what I have in my xsp:

esql:execute-query
esql:call{call
rptLocationDeviations(esql:parameter direction=in
type=Intxsp:exprnumber/xsp:expr/esql:parameter, esql:parameter
direction=in type=Stringxsp:exprroom/xsp:expr/esql:parameter,
esql:parameter direction=in
type=Stringxsp:exprbeginTime/xsp:expr/esql:parameter,
esql:parameter direction=in
type=Stringxsp:exprendTime/xsp:expr/esql:parameter)}/esql:call

esql:call-results
esql:use-results
esql:result

xsp:expr(ResultSet)esql:get-object column=1 from-call=true/

/xsp:expr
/esql:result
esql:results

esql:row-results

test

esql:get-string column=1/

/test

/esql:row-results
/esql:results
/esql:use-results
/esql:call-results
/esql:execute-query

//
End XSP
/
This procedure should return a result set. And it does in my Java
version.  I have looked at the Java code that cocoon compiles from my
xsp and everything looks fine there, granted it is a little confusing to
look through since the formatting is not the greatest.  

Thanks for the help.

Tim Bachta
 

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 7:37 AM
To: [EMAIL PROTECTED]
Subject: Re: esql:query problem

On 24.Jun.2003 -- 08:48 AM, Tim Bachta wrote:
 Here is what I am trying, I am getting an invalid parameter bindings
 error, do I need to register the out parameters?  

Yes -- unless your driver returns a result set. This is highly
dependent on the jdbc driver :-( 

If you know how to do it in plain java, we'll be able to help you
transfer this knowledge to esql.

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

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


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



RE: esql:query problem

2003-06-25 Thread Tim Bachta
Forgot to add that I am getting an invalid parameter bindings error from
cocoon.

Tim Bachta
 
(913)693-0538 Office
(913)486-5213 Mobile
 

-Original Message-
From: Tim Bachta 
Sent: Wednesday, June 25, 2003 9:53 AM
To: [EMAIL PROTECTED]
Subject: RE: esql:query problem

Here is my code in plain Java:

import java.util.*;
import java.sql.*;
import javax.sql.*;
import javax.naming.*;
import java.text.*;
import com.microsoft.jdbc.sqlserver.SQLServerDriver;


public class Test
{
public static void main(String args[])
{

boolean retVal = false;
try
{
Connection con = makeConnection();
if (con != null)
{

try
{

CallableStatement stmt = con.prepareCall({call
rptLocationDeviations(?,?,?,?)});
stmt.setInt(1, 199);
stmt.setString(2, Rm 130 B);
stmt.setString(3, 5-20-2003);
stmt.setString(4, 6-20-2003);
ResultSet res = stmt.executeQuery();
while (res.next())
{
System.out.println(Result set is working);
}
res.close();
stmt.close();

retVal = true;
}
catch (SQLException ex)
{
ex.printStackTrace();

}
finally
{
try {
con.close();
}
catch (SQLException ex) {
ex.printStackTrace();
}
}
}
else
{
System.out.println(noConnection);
}
}
catch(SQLException sql)
{
sql.printStackTrace();
}
System.out.println(Return val =+ retVal);
}


  

public static Connection makeConnection() throws SQLException
{

System.setProperty(jdbc.drivers,
com.microsoft.jdbc.sqlserver.SQLServerDriver);
return
DriverManager.getConnection(jdbc:microsoft:sqlserver://kopentpdc:1433;D
atabaseName=vyzo, user, password);
}
}


End Java
///

Here is what I have in my xsp:

esql:execute-query
esql:call{call
rptLocationDeviations(esql:parameter direction=in
type=Intxsp:exprnumber/xsp:expr/esql:parameter, esql:parameter
direction=in type=Stringxsp:exprroom/xsp:expr/esql:parameter,
esql:parameter direction=in
type=Stringxsp:exprbeginTime/xsp:expr/esql:parameter,
esql:parameter direction=in
type=Stringxsp:exprendTime/xsp:expr/esql:parameter)}/esql:call

esql:call-results
esql:use-results
esql:result

xsp:expr(ResultSet)esql:get-object column=1 from-call=true/

/xsp:expr
/esql:result
esql:results

esql:row-results

test

esql:get-string column=1/

/test

/esql:row-results
/esql:results
/esql:use-results
/esql:call-results
/esql:execute-query

//
End XSP
/
This procedure should return a result set. And it does in my Java
version.  I have looked at the Java code that cocoon compiles from my
xsp and everything looks fine there, granted it is a little confusing to
look through since the formatting is not the greatest.  

Thanks for the help.

Tim Bachta
 

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 7:37 AM
To: [EMAIL PROTECTED]
Subject: Re: esql:query problem

On 24.Jun.2003 -- 08:48 AM, Tim Bachta wrote:
 Here is what I am trying, I am getting an invalid parameter bindings
 error, do I need to register the out parameters?  

Yes -- unless your driver returns a result set. This is highly
dependent on the jdbc driver :-( 

If you know how to do it in plain java, we'll be able to help you
transfer this knowledge to esql.

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

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



Re: Cocoon and Jbos3.0.6 configuration

2003-06-25 Thread Ryan Hoegg
Hi,

I got Cocoon 2.1 pre-M1 working on JBoss 3.0.7 with nothing like this 
kind of complication.  You have to get accustomed to the new Cocoon 
build process (since we don't have a binary distribution anymore) but 
once its built I simply put my cocoon app into the cocoon WAR and drop 
it in $JBOSS_HOME/server/$MY_SERVER/deploy .  Works like a charm.

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net
Mitchell, Lincoln L. wrote:

I am trying to get cocoon (any version) working with Jbos-3.0.6 and have tried following the instruction you mentioned on the apache site but to no avail as only Jboss 2 is mentioned.  I also browsed the cocoon mailing list and it seems others have had this problem but I don't understand the solutions offered to some of these postings. I am new to XSLT and Java so need a simple guide. So far this is the best I have found and it might as well be French to me, 
 



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


Re: esql:query problem

2003-06-25 Thread Roger I Martin PhD
Guessing a little; should it be little case int instead of Int at
esql:parameter direction=in
type=Intxsp:exprnumber/xsp:expr/esql:parameter
-Roger
- Original Message - 
From: Tim Bachta [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 10:53 AM
Subject: RE: esql:query problem


Here is my code in plain Java:

import java.util.*;
import java.sql.*;
import javax.sql.*;
import javax.naming.*;
import java.text.*;
import com.microsoft.jdbc.sqlserver.SQLServerDriver;


public class Test
{
public static void main(String args[])
{

boolean retVal = false;
try
{
Connection con = makeConnection();
if (con != null)
{

try
{

CallableStatement stmt = con.prepareCall({call
rptLocationDeviations(?,?,?,?)});
stmt.setInt(1, 199);
stmt.setString(2, Rm 130 B);
stmt.setString(3, 5-20-2003);
stmt.setString(4, 6-20-2003);
ResultSet res = stmt.executeQuery();
while (res.next())
{
System.out.println(Result set is working);
}
res.close();
stmt.close();

retVal = true;
}
catch (SQLException ex)
{
ex.printStackTrace();

}
finally
{
try {
con.close();
}
catch (SQLException ex) {
ex.printStackTrace();
}
}
}
else
{
System.out.println(noConnection);
}
}
catch(SQLException sql)
{
sql.printStackTrace();
}
System.out.println(Return val =+ retVal);
}


  

public static Connection makeConnection() throws SQLException
{

System.setProperty(jdbc.drivers,
com.microsoft.jdbc.sqlserver.SQLServerDriver);
return
DriverManager.getConnection(jdbc:microsoft:sqlserver://kopentpdc:1433;D
atabaseName=vyzo, user, password);
}
}


End Java
///

Here is what I have in my xsp:

esql:execute-query
esql:call{call
rptLocationDeviations(esql:parameter direction=in
type=Intxsp:exprnumber/xsp:expr/esql:parameter, esql:parameter
direction=in type=Stringxsp:exprroom/xsp:expr/esql:parameter,
esql:parameter direction=in
type=Stringxsp:exprbeginTime/xsp:expr/esql:parameter,
esql:parameter direction=in
type=Stringxsp:exprendTime/xsp:expr/esql:parameter)}/esql:call

esql:call-results
esql:use-results
esql:result

xsp:expr(ResultSet)esql:get-object column=1 from-call=true/

/xsp:expr
/esql:result
esql:results

esql:row-results

test

esql:get-string column=1/

/test

/esql:row-results
/esql:results
/esql:use-results
/esql:call-results
/esql:execute-query

//
End XSP
/
This procedure should return a result set. And it does in my Java
version.  I have looked at the Java code that cocoon compiles from my
xsp and everything looks fine there, granted it is a little confusing to
look through since the formatting is not the greatest.  

Thanks for the help.

Tim Bachta
 

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 7:37 AM
To: [EMAIL PROTECTED]
Subject: Re: esql:query problem

On 24.Jun.2003 -- 08:48 AM, Tim Bachta wrote:
 Here is what I am trying, I am getting an invalid parameter bindings
 error, do I need to register the out parameters?  

Yes -- unless your driver returns a result set. This is highly
dependent on the jdbc driver :-( 

If you know how to do it in plain java, we'll be able to help you
transfer this knowledge to esql.

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

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


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




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



RE: esql:query problem

2003-06-25 Thread Tim Bachta
I thought the same but that did not work.  The Int declares the types so
if you look in the java code it is transformed into
_esql_query.getCallableStatement().setInt(1,(number));

Tim Bachta
 
(913)693-0538 Office
(913)486-5213 Mobile
 

-Original Message-
From: Roger I Martin PhD [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 10:11 AM
To: [EMAIL PROTECTED]
Subject: Re: esql:query problem

Guessing a little; should it be little case int instead of Int at
esql:parameter direction=in
type=Intxsp:exprnumber/xsp:expr/esql:parameter
-Roger
- Original Message - 
From: Tim Bachta [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 10:53 AM
Subject: RE: esql:query problem


Here is my code in plain Java:

import java.util.*;
import java.sql.*;
import javax.sql.*;
import javax.naming.*;
import java.text.*;
import com.microsoft.jdbc.sqlserver.SQLServerDriver;


public class Test
{
public static void main(String args[])
{

boolean retVal = false;
try
{
Connection con = makeConnection();
if (con != null)
{

try
{

CallableStatement stmt = con.prepareCall({call
rptLocationDeviations(?,?,?,?)});
stmt.setInt(1, 199);
stmt.setString(2, Rm 130 B);
stmt.setString(3, 5-20-2003);
stmt.setString(4, 6-20-2003);
ResultSet res = stmt.executeQuery();
while (res.next())
{
System.out.println(Result set is working);
}
res.close();
stmt.close();

retVal = true;
}
catch (SQLException ex)
{
ex.printStackTrace();

}
finally
{
try {
con.close();
}
catch (SQLException ex) {
ex.printStackTrace();
}
}
}
else
{
System.out.println(noConnection);
}
}
catch(SQLException sql)
{
sql.printStackTrace();
}
System.out.println(Return val =+ retVal);
}


  

public static Connection makeConnection() throws SQLException
{

System.setProperty(jdbc.drivers,
com.microsoft.jdbc.sqlserver.SQLServerDriver);
return
DriverManager.getConnection(jdbc:microsoft:sqlserver://kopentpdc:1433;D
atabaseName=vyzo, user, password);
}
}


End Java
///

Here is what I have in my xsp:

esql:execute-query
esql:call{call
rptLocationDeviations(esql:parameter direction=in
type=Intxsp:exprnumber/xsp:expr/esql:parameter, esql:parameter
direction=in type=Stringxsp:exprroom/xsp:expr/esql:parameter,
esql:parameter direction=in
type=Stringxsp:exprbeginTime/xsp:expr/esql:parameter,
esql:parameter direction=in
type=Stringxsp:exprendTime/xsp:expr/esql:parameter)}/esql:call

esql:call-results
esql:use-results
esql:result

xsp:expr(ResultSet)esql:get-object column=1 from-call=true/

/xsp:expr
/esql:result
esql:results

esql:row-results

test

esql:get-string column=1/

/test

/esql:row-results
/esql:results
/esql:use-results
/esql:call-results
/esql:execute-query

//
End XSP
/
This procedure should return a result set. And it does in my Java
version.  I have looked at the Java code that cocoon compiles from my
xsp and everything looks fine there, granted it is a little confusing to
look through since the formatting is not the greatest.  

Thanks for the help.

Tim Bachta
 

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 7:37 AM
To: [EMAIL PROTECTED]
Subject: Re: esql:query problem

On 24.Jun.2003 -- 08:48 AM, Tim Bachta wrote:
 Here is what I am trying, I am getting an invalid parameter bindings
 error, do I need to register the out parameters?  

Yes -- unless your driver returns a result set. This is highly
dependent on the jdbc driver :-( 

If you know how to do it in plain java, we'll be able to help you
transfer this knowledge to esql.

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

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


-
To unsubscribe, e-mail: [EMAIL 

Re: esql:query problem

2003-06-25 Thread Christian Haul
On 25.Jun.2003 -- 09:53 AM, Tim Bachta wrote:
 Here is my code in plain Java:

snip/

 CallableStatement stmt = con.prepareCall({call 
 rptLocationDeviations(?,?,?,?)});
 stmt.setInt(1, 199);
 stmt.setString(2, Rm 130 B);
 stmt.setString(3, 5-20-2003);
 stmt.setString(4, 6-20-2003);
 ResultSet res = stmt.executeQuery();
 while (res.next())
 {
 System.out.println(Result set is working);
 }

snip/

Mmmh, this looks very simple. You have no out parameters and you get a
result set back.

 Here is what I have in my xsp:
 
 esql:execute-query
   esql:call{call
 rptLocationDeviations(esql:parameter direction=in
 type=Intxsp:exprnumber/xsp:expr/esql:parameter, esql:parameter
 direction=in type=Stringxsp:exprroom/xsp:expr/esql:parameter,
 esql:parameter direction=in
 type=Stringxsp:exprbeginTime/xsp:expr/esql:parameter,
 esql:parameter direction=in
 type=Stringxsp:exprendTime/xsp:expr/esql:parameter)}/esql:call
 
   esql:call-results
   esql:use-results
   esql:result
   
 xsp:expr(ResultSet)esql:get-object column=1 from-call=true/
   
 /xsp:expr
   /esql:result

You should not need the esql:use-results/ tag. Try removing the tag
and report back.

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

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



RE: esql:query problem

2003-06-25 Thread Tim Bachta
My code now looks like this w/out the user-results tag:
esql:execute-query
esql:call{call rptLocationDeviations(esql:parameter direction=in
type=Intxsp:exprnumber/xsp:expr/esql:parameter, esql:parameter
direction=in type=Stringxsp:exprroom/xsp:expr/esql:parameter,
esql:parameter direction=in
type=Stringxsp:exprbeginTime/xsp:expr/esql:parameter,
esql:parameter direction=in
type=Stringxsp:exprendTime/xsp:expr/esql:parameter)}/esql:call

esql:call-results
esql:resultxsp:expr(ResultSet)esql:get-object column=1
from-call=true//xsp:expr/esql:result
esql:results
esql:row-results
testesql:get-string column=1//test
/esql:row-results
/esql:results
/esql:call-results
/esql:execute-query

and I get back a different error message now:

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate():
org.apache.avalon.framework.CascadingRuntimeException: Error getting
ascii data for column 1

We may be getting closer?  Thanks for all the help.

Tim Bachta
 

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 10:20 AM
To: [EMAIL PROTECTED]
Subject: Re: esql:query problem

On 25.Jun.2003 -- 09:53 AM, Tim Bachta wrote:
 Here is my code in plain Java:

snip/

 CallableStatement stmt = con.prepareCall({call
rptLocationDeviations(?,?,?,?)});
 stmt.setInt(1, 199);
 stmt.setString(2, Rm 130 B);
 stmt.setString(3, 5-20-2003);
 stmt.setString(4, 6-20-2003);
 ResultSet res = stmt.executeQuery();
 while (res.next())
 {
 System.out.println(Result set is working);
 }

snip/

Mmmh, this looks very simple. You have no out parameters and you get a
result set back.

 Here is what I have in my xsp:
 
 esql:execute-query
   esql:call{call
 rptLocationDeviations(esql:parameter direction=in
 type=Intxsp:exprnumber/xsp:expr/esql:parameter,
esql:parameter
 direction=in
type=Stringxsp:exprroom/xsp:expr/esql:parameter,
 esql:parameter direction=in
 type=Stringxsp:exprbeginTime/xsp:expr/esql:parameter,
 esql:parameter direction=in

type=Stringxsp:exprendTime/xsp:expr/esql:parameter)}/esql:call
 
   esql:call-results
   esql:use-results
   esql:result
   
 xsp:expr(ResultSet)esql:get-object column=1 from-call=true/
   
 /xsp:expr
   /esql:result

You should not need the esql:use-results/ tag. Try removing the tag
and report back.

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

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


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



RE: esql:query problem

2003-06-25 Thread Tim Bachta
Well I tried that and no error, the only problem is I get no results
either.  I was looking at the example that I am working from
http://cocoon.apache.org/2.1/userdocs/xsp/esql.html#Stored+Procedure+Sup
port
And it uses the call-results tag as well as the use-results tag.  I
guess this may be bad documentation?  I don't know I just wish I could
get this to work.  Thanks again for the help it is really appreciated.

Tim Bachta
 
 

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 10:38 AM
To: [EMAIL PROTECTED]
Subject: Re: esql:query problem

On 25.Jun.2003 -- 10:32 AM, Tim Bachta wrote:
 My code now looks like this w/out the user-results tag:
 esql:execute-query
 esql:call{call rptLocationDeviations(esql:parameter direction=in
 type=Intxsp:exprnumber/xsp:expr/esql:parameter,
esql:parameter
 direction=in
type=Stringxsp:exprroom/xsp:expr/esql:parameter,
 esql:parameter direction=in
 type=Stringxsp:exprbeginTime/xsp:expr/esql:parameter,
 esql:parameter direction=in

type=Stringxsp:exprendTime/xsp:expr/esql:parameter)}/esql:call
 
 esql:call-results
 esql:resultxsp:expr(ResultSet)esql:get-object column=1
 from-call=true//xsp:expr/esql:result

Sorry, I should have been more verbose, try:

 esql:execute-query
   esql:call{call rptLocationDeviations(
  esql:parameter
direction=intype=Intxsp:exprnumber/xsp:expr/esql:parameter, 
  esql:parameter direction=in
type=Stringxsp:exprroom/xsp:expr/esql:parameter,
  esql:parameter direction=in
type=Stringxsp:exprbeginTime/xsp:expr/esql:parameter,
  esql:parameter direction=in
type=Stringxsp:exprendTime/xsp:expr/esql:parameter)}/esql:call

  esql:results
esql:row-results
  testesql:get-string column=1//test
/esql:row-results
   /esql:results
 /esql:execute-query

(In addition, call-results does not apply when a result set is returned)

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

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


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



Re: esql:query problem

2003-06-25 Thread Christian Haul
On 25.Jun.2003 -- 10:48 AM, Tim Bachta wrote:
 Well I tried that and no error, the only problem is I get no results
 either.  I was looking at the example that I am working from

Maybe you need to add the needs-query attribute. Some drivers don't
like it if a CallableStatement is just execute()'ed and your java code
uses executeQuery(). So, try

  esql:execute-query
esql:call needs-query=true{call rptLocationDeviations(
  esql:parameter 
direction=intype=Intxsp:exprnumber/xsp:expr/esql:parameter, 
  esql:parameter direction=in 
type=Stringxsp:exprroom/xsp:expr/esql:parameter,
   esql:parameter direction=in 
type=Stringxsp:exprbeginTime/xsp:expr/esql:parameter,
   esql:parameter direction=in 
type=Stringxsp:exprendTime/xsp:expr/esql:parameter)}
/esql:call
   esql:results
 esql:row-results
   testesql:get-string column=1//test
 /esql:row-results
/esql:results
  /esql:execute-query

 http://cocoon.apache.org/2.1/userdocs/xsp/esql.html#Stored+Procedure+Sup
 port
 And it uses the call-results tag as well as the use-results tag.  I
 guess this may be bad documentation?  I don't know I just wish I could
 get this to work.  Thanks again for the help it is really appreciated.

This topic is difficult because each and every driver bahaves
differently in this respect. But documentation is indeed slim. Please
feel free to add to http://wiki.cocoondev.org

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

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



Re: PDF attachment using Sendmail and 2.0.4

2003-06-25 Thread Christian Haul
On 25.Jun.2003 -- 04:12 PM, Tony Edwards wrote:
 Hi all,
 I checked out the sendmail item on wiki and tried to mail the results of a
 pipeline serialized as PDF.
 I followed the wiki instructions to the letter.
 The mail worked alright, but the PDF file was attached as uuencoded text (at
 least that's what it looked like). I have obviously overlooked something.
 Should I be using util:get-source/ as specified or something different?
 I noticed in the 2.1 sendmail logicsheet that there's a
 sendmail:attachment/ tag which specifies a mime-type parameter, but the
 project I'm working on is in good old 2.0.4.
 Any clues?

The sendmail stuff in 2.1 is a complete overhaul, the 2.0 version does
not support attachments :-( You might be able to backport the relevant
classes, though. I believe there are not many dependencies to other
parts but since the sources bits in avalon have changed, it's not just
copy  paste.

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

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



RE: esql:query problem

2003-06-25 Thread Tim Bachta
Chris,

That was it, thank you for the help. All of you that helped thank you.

Tim Bachta
 
 

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 10:56 AM
To: [EMAIL PROTECTED]
Subject: Re: esql:query problem

On 25.Jun.2003 -- 10:48 AM, Tim Bachta wrote:
 Well I tried that and no error, the only problem is I get no results
 either.  I was looking at the example that I am working from

Maybe you need to add the needs-query attribute. Some drivers don't
like it if a CallableStatement is just execute()'ed and your java code
uses executeQuery(). So, try

  esql:execute-query
esql:call needs-query=true{call rptLocationDeviations(
  esql:parameter
direction=intype=Intxsp:exprnumber/xsp:expr/esql:parameter, 
  esql:parameter direction=in
type=Stringxsp:exprroom/xsp:expr/esql:parameter,
   esql:parameter direction=in
type=Stringxsp:exprbeginTime/xsp:expr/esql:parameter,
   esql:parameter direction=in
type=Stringxsp:exprendTime/xsp:expr/esql:parameter)}
/esql:call
   esql:results
 esql:row-results
   testesql:get-string column=1//test
 /esql:row-results
/esql:results
  /esql:execute-query


http://cocoon.apache.org/2.1/userdocs/xsp/esql.html#Stored+Procedure+Sup
 port
 And it uses the call-results tag as well as the use-results tag.  I
 guess this may be bad documentation?  I don't know I just wish I could
 get this to work.  Thanks again for the help it is really appreciated.

This topic is difficult because each and every driver bahaves
differently in this respect. But documentation is indeed slim. Please
feel free to add to http://wiki.cocoondev.org

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

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


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



Re: problems with new coplets in my portal

2003-06-25 Thread hgadm
Hi Matthias,

please check whether your sitemap entry for that
particular coplet is corresponding to the respective
entry in \profiles\copletprofile.xml (compare every
single character - I trapperd into a misspelling once).
Otherwise please try flushing the cache.

Regards,

Holger

On Wed, 25 Jun 2003 16:26:43 +0200, Matthias Wessendorf
wrote:

 
 hello,
 
 just having a problem with the portal-framework of
 cocoon
 
 i wrote a new coplet
 
 added it to coplet-profile
 wrote a pipeline in the sitemap
 activated in global-profile
 
 but i did not get the information,
 
 only the error-message of the
 coplet_not_available-Tag
 
 anyone a idea?
 
 thx a lot
 
 Greetings
 
 Matthias
 
 

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

___
The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!
 http://www.compuserve.com/trycsrv/cs2000/webmail/





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



wildcard matcher broken?

2003-06-25 Thread Sully
greetings

I have just checked 2.1 out of cvs and built without any 
local.b*.properties files using ./build.sh webapp

I am running ./cocoon.sh servlet for my quick testing. I'm trying to 
generate a list of thumbnails from a directory of images, the directory 
generator is working without any trouble, however it appears that there 
is a problem with the matcher for the reader.

The samples appear to be working correctly.

I'm using the following pipeline at the beginning of all the pipelines 
in the root sitemap.

map:match pattern=test/th-*
  map:read type=imageresource mime-type=image/jpg src={0}
map:parameter name=width value=50/
map:parameter name=height value=20/
  /map:read
/map:match
the url I'm accessing is: http://localhost:/test/th-011.jpg

the error I'm receiving is:

org.apache.cocoon.ResourceNotFoundException: Error during resolving of 
the input stream: org.apache.excalibur.source.SourceNotFoundException: 
file:/home/sully/cvs/cocoon-2.1/build/webapp/test/th-011.jpg doesn't exist.

making it a standard reader doesn't fix the problem.

if I modify the matcher to something like test/* (and access 
/test/011.jpg) then it works perfectly.

I'm running Gentoo Linux with Java(TM) 2 Runtime Environment, Standard 
Edition (build 1.4.1_03-b02)

it's quite late, so possibly I just need some sleep :)

Regards
Sully


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


Parameter in a hidden field in xsp

2003-06-25 Thread Yan, Charlene
Hi,

I would like to have the value of a parameter Foo put in a hidden filed.  The 
parameter is passed over from previous page.  Obviously input type=hidden 
name=from value=xsp-request:get-parameter 
xmlns:xsp-request=http://apache.org/xsp/request/2.0; name=Foo// is not working.  
Can anyone help me out here please?

Thanks.

Charlene

?xml version=1.0 encoding=UTF-8?
xsp:page language=java
  xmlns:xsp=http://apache.org/xsp;
  xmlns:xsp-request=http://apache.org/xsp/request/2.0;
page

  titleSend EMail/title

   p style=color:red;
 xsp-request:get-attribute name=org.apache.cocoon.acting.Sendmail default=/
 xsp-request:get-parameter xmlns:xsp-request=http://apache.org/xsp/request/2.0; 
name=Foo/
   /p

  table cellpadding=2 cellspacing=2 border=0
tbody
  form method=POST enctype=multipart/form-data

input type=hidden name=smtphost value=localhost/

input type=hidden name=from value=[EMAIL PROTECTED]/
input type=hidden name=from value=xsp-request:get-parameter 
xmlns:xsp-request=http://apache.org/xsp/request/2.0; name=Foo//
  /form
/tbody
  /table

/page
/xsp:page

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



Re: Parameter in a hidden field in xsp

2003-06-25 Thread JD Daniels
Try:

input type=hidden name=from
xsp:attribute name=value
xsp-request:get-parameter
xmlns:xsp-request=http://apache.org/xsp/request/2.0; name=Foo/
/xsp:attribute/


JD


- Original Message - 
From: Yan, Charlene [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 10:45 AM
Subject: Parameter in a hidden field in xsp


 Hi,

 I would like to have the value of a parameter Foo put in a hidden filed.
The parameter is passed over from previous page.  Obviously input
type=hidden name=from value=xsp-request:get-parameter
xmlns:xsp-request=http://apache.org/xsp/request/2.0; name=Foo// is not
working.  Can anyone help me out here please?

 Thanks.

 Charlene

 ?xml version=1.0 encoding=UTF-8?
 xsp:page language=java
   xmlns:xsp=http://apache.org/xsp;
   xmlns:xsp-request=http://apache.org/xsp/request/2.0;
 page

   titleSend EMail/title

p style=color:red;
  xsp-request:get-attribute name=org.apache.cocoon.acting.Sendmail
default=/
  xsp-request:get-parameter
xmlns:xsp-request=http://apache.org/xsp/request/2.0; name=Foo/
/p

   table cellpadding=2 cellspacing=2 border=0
 tbody
form method=POST enctype=multipart/form-data

  input type=hidden name=smtphost value=localhost/

  input type=hidden name=from
value=[EMAIL PROTECTED]/
  input type=hidden name=from
value=xsp-request:get-parameter
xmlns:xsp-request=http://apache.org/xsp/request/2.0; name=Foo//
   /form
 /tbody
   /table

 /page
 /xsp:page

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





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



RE: Parameter in a hidden field in xsp

2003-06-25 Thread Yan, Charlene
Thank you very much!  The syntax is like xsl.  But it would take me longer to find out 
how if you had not helped me.  Appreciate it!

Charlene

input type=hidden name=from
xsp:attribute name=value
xsp-request:get-parameter
xmlns:xsp-request=http://apache.org/xsp/request/2.0; name=Foo/
/xsp:attribute
/input
-Original Message-
From: JD Daniels [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 1:50 PM
To: [EMAIL PROTECTED]
Subject: Re: Parameter in a hidden field in xsp


Try:

input type=hidden name=from
xsp:attribute name=value
xsp-request:get-parameter
xmlns:xsp-request=http://apache.org/xsp/request/2.0; name=Foo/
/xsp:attribute/


JD


- Original Message - 
From: Yan, Charlene [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 10:45 AM
Subject: Parameter in a hidden field in xsp


 Hi,

 I would like to have the value of a parameter Foo put in a hidden filed.
The parameter is passed over from previous page.  Obviously input
type=hidden name=from value=xsp-request:get-parameter
xmlns:xsp-request=http://apache.org/xsp/request/2.0; name=Foo// is not
working.  Can anyone help me out here please?

 Thanks.

 Charlene

 ?xml version=1.0 encoding=UTF-8?
 xsp:page language=java
   xmlns:xsp=http://apache.org/xsp;
   xmlns:xsp-request=http://apache.org/xsp/request/2.0;
 page

   titleSend EMail/title

p style=color:red;
  xsp-request:get-attribute name=org.apache.cocoon.acting.Sendmail
default=/
  xsp-request:get-parameter
xmlns:xsp-request=http://apache.org/xsp/request/2.0; name=Foo/
/p

   table cellpadding=2 cellspacing=2 border=0
 tbody
form method=POST enctype=multipart/form-data

  input type=hidden name=smtphost value=localhost/

  input type=hidden name=from
value=[EMAIL PROTECTED]/
  input type=hidden name=from
value=xsp-request:get-parameter
xmlns:xsp-request=http://apache.org/xsp/request/2.0; name=Foo//
   /form
 /tbody
   /table

 /page
 /xsp:page

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





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


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



Random ArrayIndexOutOfBoundsException

2003-06-25 Thread Gabriel Egolf
Hello all.

I'm in the last stages of development on a rather large project, and for 
some time now have been plagued by a rather annoying problem.  I'm not 
sure even how the problem began, but I'll try to give as much 
information as possible and hopefully one of you has run across it in 
the past.  Generally, the problem manifests itself as a blank page 
containing nothing but the XML PI (?xml version=1.0 
encoding=utf-8?).  Occasionally, I'll get the contents of 2 unrelated 
pages together.  Unfortunately, this problem seems to be a completely 
random occurence, and usually a server restart will solve it temporarily.

Here's my software environment:
JDK 1.4.1_02
Jetty 4.2.9
Cocoon 2.0.4
I've supplied an error trace from my error.log at the end of this 
message.  If you've seen this before, please let me know how you fixed it.

Thanks.

Gabriel Egolf
Developer
Bob Jones University
[EMAIL PROTECTED]
ERROR   (2003-06-25) 14:24.36:802   [access] (/giving/index) 
PoolThread-9/CocoonServlet: Problem with Cocoon servlet
 11535 org.apache.cocoon.ProcessingException: Exception during 
processing of cocoon://giving/index.html: 
java.lang.ArrayIndexOutOfBoundsException: -3
 11536 at 
org.apache.cocoon.components.source.SitemapSource.toSAX(SitemapSource.java:393)
 11537 at 
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
 11538 at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
 11539 at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:395)
 11540 at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:154)
 11541 at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
 11542 at 
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:158)
 11543 at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
 11544 at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:166)
 11545 at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
 11546 at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:151)
 11547 at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
 11548 at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:145)
 11549 at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:332)
 11550 at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:293)
 11551 at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:124)
 11552 at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
 11553 at 
org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectNode.java:140)
 11554 at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
 11555 at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:151)
 11556 at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
 11557 at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:145)
 11558 at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:332)
 11559 at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:293)
 11560 at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
 11561 at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
 11562 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 11563 at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
 11564 at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
 11565 at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
 11566 at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
 11567 at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
 11568 at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
 11569 at org.mortbay.http.HttpServer.service(HttpServer.java:863)
 11570 at 
org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
 11571 at 
org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:252)
 11572 at 

Re: wildcard matcher broken?

2003-06-25 Thread Geoff Howard
You don't say explicitly what the file is really named.  If it's 011.jpg, 
then you
need to use src={1} which is the first sub expression.  {0} is the whole 
matched  expression, as you see in the specifics of the file not 
found.  The matcher is working exactly as designed.

Geoff Howard

At 01:17 PM 6/25/2003, you wrote:
greetings

I have just checked 2.1 out of cvs and built without any 
local.b*.properties files using ./build.sh webapp

I am running ./cocoon.sh servlet for my quick testing. I'm trying to 
generate a list of thumbnails from a directory of images, the directory 
generator is working without any trouble, however it appears that there is 
a problem with the matcher for the reader.

The samples appear to be working correctly.

I'm using the following pipeline at the beginning of all the pipelines in 
the root sitemap.

map:match pattern=test/th-*
  map:read type=imageresource mime-type=image/jpg src={0}
map:parameter name=width value=50/
map:parameter name=height value=20/
  /map:read
/map:match
the url I'm accessing is: http://localhost:/test/th-011.jpg

the error I'm receiving is:

org.apache.cocoon.ResourceNotFoundException: Error during resolving of the 
input stream: org.apache.excalibur.source.SourceNotFoundException: 
file:/home/sully/cvs/cocoon-2.1/build/webapp/test/th-011.jpg doesn't exist.

making it a standard reader doesn't fix the problem.

if I modify the matcher to something like test/* (and access 
/test/011.jpg) then it works perfectly.

I'm running Gentoo Linux with Java(TM) 2 Runtime Environment, Standard 
Edition (build 1.4.1_03-b02)

it's quite late, so possibly I just need some sleep :)

Regards
Sully


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



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


RE: Chaining pipelines --- write a file to server --- email it as an attachment -- delete the file

2003-06-25 Thread Yan, Charlene
Let me try to explain my problem again.  

http://wiki.cocoondev.org/Wiki.jsp?page=MailBodyViaPipeline is only part of what I'm 
trying to do. When Send Email button is clicked, an xml String named Foo is passed 
to pipeline processOrder and a rtf file is generated.  Then pipeline send will 
send the rtf file as an attachment.  processOrder has to happen before the send.  
I found a thread talking about this 
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=105609808514142w=2 (pipeline 
dependencies).  But it is different from what I'm trying to do.  processOrder is 
invoked only when sendmail:attachment url=cocoon:/// name=processOrder/ is 
called from mail.xsp. So my question is how I can start processOrder pipeline and 
attach the result to the send pipeline.  How can I chain these two pipelines 
together?  Or is it possible to write the file to the server and then to get the 
attachment thereafter?  In either way, I need to invoke processOrder first.  

Thanks!
Charlene


map:match pattern=send
  map:generate type=serverpages src=mail.xsp /
  map:serialize /
/map:match


map:match pattern=processOrder
 map:generate type=stream
   map:parameter name=form-name value=Foo/
 /map:generate
 map:transform src=context://stylesheets/system/simple-page2fo.xsl/
 map:serialize type=fo2rtf/
   /map:match

On 24.Jun.2003 -- 03:41 PM, Yan, Charlene wrote:
 When I click a Send Email button on the page, the application will create a rtf 
 file on the server, and then sendMail will send email to an email address entered by 
 the user with attachment of the rtf file and idealy the rtf file should be deleted 
 from the server.  

See e.g.

http://wiki.cocoondev.org/Wiki.jsp?page=MailBodyViaPipeline

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

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


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


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



xsp question

2003-06-25 Thread Tim Bachta
I am trying to use logic in an xsp page to get the output formatted
correctly, here is what I want the output to look like

 

taskanddate

  date2003-05-20/date

  tasks

deviation0/deviation

completed-bySomebodys, Name/completed-by

deviation0/deviation

completed-bySomebodys, Name2/completed-by

deviation0/deviation

completed-bySomebodys, Name3/completed-by

  /tasks

/taskanddate

 

 

here is the code that I am using

 

xsp:logic

   String date = esql:get-string column=3/;

   if(!date.equalsIgnoreCase(oldDate))

   { oldDate = date;

 taskanddate

date

   esql:get-string column=3/

/date

tasks



   }

   compleated-by

 esql:get-string column=4/

   /compleated-by

   

   if(!date.equalsIgnoreCase(oldDate))

   {

/tasks

 /taskanddate

   } 

/xsp:logic 

 

and here is the result that I am getting:

 

 
http://localhost:8080/cocoon/vyzo/Room_Report_pdf?cocoon-view=debug1##
- taskanddate

  date2003-05-22 00:00:00.0/date 

 
http://localhost:8080/cocoon/vyzo/Room_Report_pdf?cocoon-view=debug1##
- tasks

  } 

  compleated-by / 

  if(!date.equalsIgnoreCase(oldDate)) { 

  /tasks

  /taskanddate

 
http://localhost:8080/cocoon/vyzo/Room_Report_pdf?cocoon-view=debug1##
- taskanddate

  date2003-05-23 00:00:00.0/date 

 
http://localhost:8080/cocoon/vyzo/Room_Report_pdf?cocoon-view=debug1##
- tasks

  } 

  compleated-by / 

  if(!date.equalsIgnoreCase(oldDate)) { 

  /tasks

  /taskanddate

 
http://localhost:8080/cocoon/vyzo/Room_Report_pdf?cocoon-view=debug1##
- taskanddate

  date2003-05-24 00:00:00.0/date 

 
http://localhost:8080/cocoon/vyzo/Room_Report_pdf?cocoon-view=debug1##
- tasks

  } 

  compleated-by / 

  if(!date.equalsIgnoreCase(oldDate)) { 

  /tasks

  /taskanddate

 

 

If anyone knows of a way to do this correctly I would greatly appreciate
the help.

 

Thank you

 

Tim Bachta

 

 


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



cocoon on Dynamo

2003-06-25 Thread Barback, Lisa R
I am trying to Install Cocoon on Dynamo 5.1.1.

I have created am EAR file from the Cocoon WAR file.  I have also  created a
DAR file from the EAR file.  When I start the dynamo server, the DAR file
appears to load correctly.

-loadingApplication : Loading J2EE application from:
D:\ATG\Dynamo5.1.1\J2EE-E
xamples\Cocoon2\j2ee-apps\cocoon2.dar


When I try to access the j2ee application, I get the following error:

Forbidden (403)
You have requested data that the server has decided not to provide to you.
Your request was understood and denied. 
Has anyone run into this error, I am not an expert on j2ee.
Lisa


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



cocoon interface for HSQLDB

2003-06-25 Thread Bruno Pierre



Hi everybody,

I'm looking for a cocoon interface (mounted subsitemap) for 
managing a HSQLDB like phpmyadmin for mysql.

Has anyone heard about this? Do I have to do it by 
myself?
if i have to, does someone have a good reference for the SQL 
of HSQLDB because everything i found is really not complete.

Thanks.


RE: xsp question

2003-06-25 Thread Tim Bachta
I tried using more tags like you suggested and I get an error:

The XML page cannot be displayed 
Cannot view XML input using XSL style sheet. Please correct the error
and then click the Refresh button, or try again later. 





End tag 'content' does not match the start tag 'tasks'. Error processing
resource
'http://localhost:8080/cocoon/vyzo/Room_Report_pdf?cocoon-view=debug1'.
Line 167, Position 3 

/content
--^


Thanks

Tim Bachta
 
 

-Original Message-
From: Roger I Martin PhD [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 4:51 PM
To: [EMAIL PROTECTED]
Subject: Re: xsp question

You need to put more starts and stops(only where your doing Java) to the
xsp:logic...see below. at the bottom I pasted some xsp with logic that I
know is working.
- Original Message -
From: Tim Bachta [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 4:33 PM
Subject: xsp question


I am trying to use logic in an xsp page to get the output formatted
correctly, here is what I want the output to look like



taskanddate

  date2003-05-20/date

  tasks

deviation0/deviation

completed-bySomebodys, Name/completed-by

deviation0/deviation

completed-bySomebodys, Name2/completed-by

deviation0/deviation

completed-bySomebodys, Name3/completed-by

  /tasks

/taskanddate





here is the code that I am using



xsp:logic

   String date = esql:get-string column=3/;

   if(!date.equalsIgnoreCase(oldDate))

   { oldDate = date;
/xsp:logic

 taskanddate

date

   esql:get-string column=3/

/date

tasks


xsp:logic

   }
/xsp:logic

   compleated-by

 esql:get-string column=4/

   /compleated-by


xsp:logic

   if(!date.equalsIgnoreCase(oldDate))

   {
/xsp:logic

/tasks

 /taskanddate

xsp:logic
   }

/xsp:logic



and here is the result that I am getting:




http://localhost:8080/cocoon/vyzo/Room_Report_pdf?cocoon-view=debug1##
- taskanddate

  date2003-05-22 00:00:00.0/date


http://localhost:8080/cocoon/vyzo/Room_Report_pdf?cocoon-view=debug1##
- tasks

  }

  compleated-by /

  if(!date.equalsIgnoreCase(oldDate)) {

  /tasks

  /taskanddate


http://localhost:8080/cocoon/vyzo/Room_Report_pdf?cocoon-view=debug1##
- taskanddate

  date2003-05-23 00:00:00.0/date


http://localhost:8080/cocoon/vyzo/Room_Report_pdf?cocoon-view=debug1##
- tasks

  }

  compleated-by /

  if(!date.equalsIgnoreCase(oldDate)) {

  /tasks

  /taskanddate


http://localhost:8080/cocoon/vyzo/Room_Report_pdf?cocoon-view=debug1##
- taskanddate

  date2003-05-24 00:00:00.0/date


http://localhost:8080/cocoon/vyzo/Room_Report_pdf?cocoon-view=debug1##
- tasks

  }

  compleated-by /

  if(!date.equalsIgnoreCase(oldDate)) {

  /tasks

  /taskanddate





If anyone knows of a way to do this correctly I would greatly appreciate
the help.



Thank you



Tim Bachta


xsp:logic
  if(!selectMap amp;amp; parameterNames!=null amp;amp;
parameterNames.lengthgt;0)
  {
   //System.out.println(here);
   str=mapIDValues[0];
   boolean check=false;
   int index=str.length()-1;
   while(!check amp;amp; indexgt;=0)
   {
if(!Character.isDigit(str.charAt(index)))
{
  check=true;
  index++;
}
else if(index==0)
{
 check=true;
}
else
{
 index--;
}
   }
   if(check)
   {
  mapIDPrefix=str.substring(0,index);

mapIDIndex=Integer.parseInt(str.substring(index,str.length()));
   }
/xsp:logic
table border=1
 CAPTIONMap Locations/CAPTION
 trthLocation
#/ththX/ththY/ththMAP_ID/th/tr
xsp:logic
int count=1;
for(index=0;indexlt;xValues.length;index++)
  {

   if(removeRowSet.elementAt(index)==null)
   {
str=xValues[index];
/xsp:logic
   trtdxsp:exprcount/xsp:expr/td
   tdinput type=text
xsp:attribute name=nameX/xsp:attribute
xsp:attribute
name=valuexsp:exprstr/xsp:expr/xsp:attribute
  /input/td
  xsp:logic
str=yValues[index];
  /xsp:logic
   tdinput type=text
xsp:attribute name=nameY/xsp:attribute
xsp:attribute
name=valuexsp:exprstr/xsp:expr/xsp:attribute
  /input/td
  xsp:logic
str=mapIDPrefix+mapIDIndex;
  /xsp:logic
   tdinput type=text
xsp:attribute name=nameMAP_ID/xsp:attribute
xsp:attribute

Re: Random ArrayIndexOutOfBoundsException

2003-06-25 Thread Joerg Heinicke
Hello Gabriel,

you seem to have the infamous endorsed libs problem. Try the environment 
check mentioned at 
http://wiki.cocoondev.org/Wiki.jsp?page=NoMoreDtmIdError to be sure. 
Also a short overview about solutions is given. A more complete 
description of the problem can be found at 
http://wiki.cocoondev.org/Wiki.jsp?page=EndorsedLibsProblem.

Joerg

Gabriel Egolf wrote:
Hello all.

I'm in the last stages of development on a rather large project, and for 
some time now have been plagued by a rather annoying problem.  I'm not 
sure even how the problem began, but I'll try to give as much 
information as possible and hopefully one of you has run across it in 
the past.  Generally, the problem manifests itself as a blank page 
containing nothing but the XML PI (?xml version=1.0 
encoding=utf-8?).  Occasionally, I'll get the contents of 2 unrelated 
pages together.  Unfortunately, this problem seems to be a completely 
random occurence, and usually a server restart will solve it temporarily.

Here's my software environment:
JDK 1.4.1_02
Jetty 4.2.9
Cocoon 2.0.4
I've supplied an error trace from my error.log at the end of this 
message.  If you've seen this before, please let me know how you fixed it.

Thanks.

Gabriel Egolf
Developer
Bob Jones University
[EMAIL PROTECTED]
...

 11587 java.lang.ArrayIndexOutOfBoundsException: -3
 11588 at org.apache.xml.utils.IntStack.pop(IntStack.java:127)
 11589 at 
org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.endElement(SAX2DTM.java:1889)
 11590 at 
org.apache.xml.dtm.ref.IncrementalSAXSource_Filter.endElement(IncrementalSAXSource_Filter.java:287) 

 11591 at 
org.apache.xalan.transformer.TransformerHandlerImpl.endElement(TransformerHandlerImpl.java:552) 

 11592 at 
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
 11593 at 
org.apache.cocoon.sitemap.ContentAggregator.endElem(ContentAggregator.java:329) 

 11594 at 
org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:156) 

 11595 at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250) 

 11596 at 
org.apache.cocoon.components.source.SitemapSource.toSAX(SitemapSource.java:381) 

 11597 at 
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
 11598 at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250) 

 11599 at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:395) 

 11600 at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:154)


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


Re: cocoon on Dynamo

2003-06-25 Thread Joerg Heinicke
No, but I guess it's more an issue with Dynamo than with Cocoon. So it 
would be better to ask on a Dynamo forum, wouldn't it? I'm not a J2EE 
expert, but we use JBoss and AFAIK we simply deploy (uncompressed, no 
WAR) Cocoon as it is.

Joerg

Barback, Lisa R wrote:
I am trying to Install Cocoon on Dynamo 5.1.1.

I have created am EAR file from the Cocoon WAR file.  I have also  created a
DAR file from the EAR file.  When I start the dynamo server, the DAR file
appears to load correctly.
-loadingApplication : Loading J2EE application from:
D:\ATG\Dynamo5.1.1\J2EE-E
xamples\Cocoon2\j2ee-apps\cocoon2.dar
When I try to access the j2ee application, I get the following error:

Forbidden (403)
You have requested data that the server has decided not to provide to you.
Your request was understood and denied. 
Has anyone run into this error, I am not an expert on j2ee.
Lisa


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


Re: Error message not displayed

2003-06-25 Thread Joerg Heinicke
That's a logging issue, so should be configurable in logkit.xconf. If 
you want to see it in the browser, you should add an error handler to 
the pipe. You can find samples in the Cocoon samples I guess.

Joerg

Dmitry Diskin wrote:
Hello

I have been struggling with blank page in my browser for a while, and 
the problem was in invalid xsl:call-template.. element - it was 
referring to non-existent template. No error message was displayed, 
except. I think that error.log is not enough for such type of error. Or 
I'm missing something and it can be configured to report such error on 
the screen?

Regards,
Dmitry.


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


Re: Cocoon and Jbos3.0.6 configuration

2003-06-25 Thread Joerg Heinicke
Hello Lincoln,

we deploy Cocoon 2.0.4 as it is (not as War, but uncompressed, setting a 
symlink named cocoon.war to our webapps/ROOT directory) in JBoss 3.0.6 
+ Tomcat 4.1.18. The symlink allows changes in Cocoon without redeploy.

Joerg

Mitchell, Lincoln L. wrote:
I am trying to get cocoon (any version) working with Jbos-3.0.6 and have tried following the instruction you mentioned on the apache site but to no avail as only Jboss 2 is mentioned.  I also browsed the cocoon mailing list and it seems others have had this problem but I don't understand the solutions offered to some of these postings. I am new to XSLT and Java so need a simple guide. So far this is the best I have found and it might as well be French to me, 

1.	fix the jndi url protocol handler problem
1.1	get jboss3.0.0RC3 sources via cvs
1.2	patch the source
1.3	compile it described on jboss.org--developers
1.4	compile catalina stuff inside jboss3 (look at jboss forums for some tips if you are not familiar with ant)
1.5	get the resulting jboss dist running and test it. 

2.	get cocoon2.0.2 or later
2.1	put WEB-INF/lib/batik-libs*.jar in jboss/lib dir (there's an 
	classloader issue in batik1.1 libs)
2.2	deploy cocoon.war as a test

Does anyone have any direction on this?

Best Regards
Lincoln Mitchell (Linc)


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


Re: XHTML+DTD problem

2003-06-25 Thread Joerg Heinicke
Hello Joel,

yes, we had this issue already on the mailing lists, but IIRC no 
solution was provided. Is following simple solution an option for you?

Add a map:transform src=copy.xsl/ to the pipeline.
The copy.xsl looks like following:
xsl:template match=/
  xsl:copy-of select=//
/xsl:template
There is no default for matcher for comment(), so these SAX events 
should not be let through.

Joerg

Joel Ekstrand wrote:
I have problems reading xhtml-files. The problem occours when I have a 
DTD specified. I tried this just to see what is going on:
 
map:match pattern=**.xml
  map:generate src=documents/{1}.html /
  map:serialize type=xml/
/map:match
 
 
I then request test.xml and I have a file like this in documents/test.html:
 
?xml version=1.0 ?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html xmlns=http://www.w3.org/TR/REC-html40;
head
/head
body 
test
/body
/html
 
The generated output is:
 
?xml version=1.0 encoding=UTF-8?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;!--== 
Imported Names --!-- media type, 
as per [RFC2045] --!-- comma-separated list of media types, as per 
[RFC2045] --!-- a character
 
and so on. All the comments in the DTD is included. And its one  to 
much. So the output is not accepted as xml.
 
Am I doing something wrong? Or is it a bug?  I am a newbie on cocoon...
 
Thanks.
Joel


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


RE: PDF attachment using Sendmail and 2.0.4

2003-06-25 Thread Tony Edwards
thanks Christian,
I'll try and see if I can retro fit the new stuff otherwise I'll bite the
bullet and get into 2.1!
Its probably the incentive I need to move up!

Tony
-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]
Sent: Thursday, 26 June 2003 2:36 AM
To: [EMAIL PROTECTED]
Subject: Re: PDF attachment using Sendmail and 2.0.4


On 25.Jun.2003 -- 04:12 PM, Tony Edwards wrote:
 Hi all,
 I checked out the sendmail item on wiki and tried to mail the results of a
 pipeline serialized as PDF.
 I followed the wiki instructions to the letter.
 The mail worked alright, but the PDF file was attached as uuencoded text
(at
 least that's what it looked like). I have obviously overlooked something.
 Should I be using util:get-source/ as specified or something different?
 I noticed in the 2.1 sendmail logicsheet that there's a
 sendmail:attachment/ tag which specifies a mime-type parameter, but the
 project I'm working on is in good old 2.0.4.
 Any clues?

The sendmail stuff in 2.1 is a complete overhaul, the 2.0 version does
not support attachments :-( You might be able to backport the relevant
classes, though. I believe there are not many dependencies to other
parts but since the sources bits in avalon have changed, it's not just
copy  paste.

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

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

- 
This email is from Civica Pty Limited and it, together with any attachments,
is confidential to the intended recipient(s) and the contents may be legally
privileged or contain proprietary and private information. It is intended
solely for the person to whom it is addressed. If you are not an intended
recipient, you may not review, copy or distribute this email. If received in
error, please notify the sender and delete the message from your system
immediately.Any views or opinions expressed in this email and any files
transmitted with it are those of the author only and may not necessarily
reflect the views of Civica and do not create any legally binding rights or
obligations whatsoever. Unless otherwise pre-agreed by exchange of hard copy
documents signed by duly authorised representatives, contracts may not be
concluded on behalf of Civica by email. Please note that neither Civica nor
the sender accepts any responsibility for any viruses and it is your
responsibility to scan the email and the attachments (if any). All email
received and sent by Civica may be monitored to protect the business
interests of Civica. 
- 


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



RE: Random ArrayIndexOutOfBoundsException

2003-06-25 Thread Geoff Howard
Really?  I don't recognize that error as the typical endorsed lib
problem, and thought Jetty handled endorsed libs differently and
so didn't suffer this problem.  Gabriel, did this work?

Geoff

 -Original Message-
 From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 25, 2003 6:42 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Random ArrayIndexOutOfBoundsException


 Hello Gabriel,

 you seem to have the infamous endorsed libs problem. Try the environment
 check mentioned at
 http://wiki.cocoondev.org/Wiki.jsp?page=NoMoreDtmIdError to be sure.
 Also a short overview about solutions is given. A more complete
 description of the problem can be found at
 http://wiki.cocoondev.org/Wiki.jsp?page=EndorsedLibsProblem.

 Joerg

 Gabriel Egolf wrote:
  Hello all.
 
  I'm in the last stages of development on a rather large
 project, and for
  some time now have been plagued by a rather annoying problem.  I'm not
  sure even how the problem began, but I'll try to give as much
  information as possible and hopefully one of you has run across it in
  the past.  Generally, the problem manifests itself as a blank page
  containing nothing but the XML PI (?xml version=1.0
  encoding=utf-8?).  Occasionally, I'll get the contents of 2
 unrelated
  pages together.  Unfortunately, this problem seems to be a completely
  random occurence, and usually a server restart will solve it
 temporarily.
 
  Here's my software environment:
  JDK 1.4.1_02
  Jetty 4.2.9
  Cocoon 2.0.4
 
  I've supplied an error trace from my error.log at the end of this
  message.  If you've seen this before, please let me know how
 you fixed it.
 
  Thanks.
 
  Gabriel Egolf
  Developer
  Bob Jones University
  [EMAIL PROTECTED]
 

 ...

   11587 java.lang.ArrayIndexOutOfBoundsException: -3
   11588 at org.apache.xml.utils.IntStack.pop(IntStack.java:127)
   11589 at
  org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.endElement(SAX2DTM.java:1889)
   11590 at
 
 org.apache.xml.dtm.ref.IncrementalSAXSource_Filter.endElement(Incr
 ementalSAXSource_Filter.java:287)
 
   11591 at
 
 org.apache.xalan.transformer.TransformerHandlerImpl.endElement(Tra
 nsformerHandlerImpl.java:552)
 
   11592 at
 
 org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
   11593 at
 
 org.apache.cocoon.sitemap.ContentAggregator.endElem(ContentAggrega
 tor.java:329)
 
   11594 at
 
 org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggreg
 ator.java:156)
 
   11595 at
 
 org.apache.cocoon.components.pipeline.CachingEventPipeline.process
 (CachingEventPipeline.java:250)
 
   11596 at
 
 org.apache.cocoon.components.source.SitemapSource.toSAX(SitemapSou
 rce.java:381)
 
   11597 at
 
 org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.
 java:143)
   11598 at
 
 org.apache.cocoon.components.pipeline.CachingEventPipeline.process
 (CachingEventPipeline.java:250)
 
   11599 at
 
 org.apache.cocoon.components.pipeline.CachingStreamPipeline.proces
 s(CachingStreamPipeline.java:395)
 
   11600 at
 
 org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.i
 nvoke(SerializeNode.java:154)


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





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



xindice exception on startup

2003-06-25 Thread John Rundle
I am trying to use Xindice 1.0 with Cocoon 2.0.4, on tomcat 3.2.4.  I =
added the appropriate lines to sitemap.xmap and cocoon.xconf as =
suggested in=20

http://www.cocooncenter.de/cc/documents/resources/xindice/index.html 
http://www.cocooncenter.de/cc/documents/resources/xindice/index.html 

and added the xindice.jar and xml*.jar files to WEB-INF/lib

when I startup tomcat, it gives me this exception:

Exception in thread main java.lang.NoClassDefFoundError: =
org/xmldb/api/base/Co
nfigurable
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at =
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
1)
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 java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at =
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
1)
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 java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at =
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassL
oader.java:446)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at =
org.apache.cocoon.components.source.XMLDBSourceFactory.configure(XMLD
BSourceFactory.java:119)
at =
org.apache.cocoon.components.source.SourceHandlerImpl.init(SourceHand
lerImpl.java:236)
at =
org.apache.cocoon.components.source.SourceHandlerImpl.configure(Sourc
eHandlerImpl.java:119)
at =
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInst
ance(DefaultComponentFactory.java:264)
at =
org.apache.avalon.excalibur.component.DefaultComponentHandler.doGet(D
efaultComponentHandler.java:126)
at =
org.apache.avalon.excalibur.component.ComponentHandler.get(ComponentH
andler.java:234)
at =
org.apache.avalon.excalibur.component.ExcaliburComponentManager.looku
p(ExcaliburComponentManager.java:262)
at =
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComp
onentManager.java:235)
at =
org.apache.avalon.excalibur.component.DefaultComponentFactory$Compone
ntManagerProxy.lookup(DefaultComponentFactory.java:393)
at org.apache.cocoon.sitemap.Handler.compose(Handler.java:129)
at =
org.apache.cocoon.sitemap.Manager.createHandler(Manager.java:236)
at =
org.apache.cocoon.sitemap.SitemapManager.configure(SitemapManager.jav
a:135)


Any Idea what Im forgetting, Im sure its something simple. I will try it =
on another machine with Tomcat 4.0 and the CVS version of Cocoon =
tonight, but I would really like to get it working with 3.2.4.  Thanks

John



RE: xindice exception on startup

2003-06-25 Thread John Rundle
actually I was able to get this to work on Apache Tomcat 4.0, maybe its an out of data 
xml jar file?

-Original Message- 
From: John Rundle 
Sent: Wed 6/25/2003 8:18 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: xindice exception on startup



I am trying to use Xindice 1.0 with Cocoon 2.0.4, on tomcat 3.2.4.  I =
added the appropriate lines to sitemap.xmap and cocoon.xconf as =
suggested in=20

http://www.cocooncenter.de/cc/documents/resources/xindice/index.html 
http://www.cocooncenter.de/cc/documents/resources/xindice/index.html

and added the xindice.jar and xml*.jar files to WEB-INF/lib

when I startup tomcat, it gives me this exception:

Exception in thread main java.lang.NoClassDefFoundError: =
org/xmldb/api/base/Co
nfigurable
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at =
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
1)
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 java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at =
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
1)
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 java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at =
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassL
oader.java:446)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at =
org.apache.cocoon.components.source.XMLDBSourceFactory.configure(XMLD
BSourceFactory.java:119)
at =
org.apache.cocoon.components.source.SourceHandlerImpl.init(SourceHand
lerImpl.java:236)
at =
org.apache.cocoon.components.source.SourceHandlerImpl.configure(Sourc
eHandlerImpl.java:119)
at =
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInst
ance(DefaultComponentFactory.java:264)
at =
org.apache.avalon.excalibur.component.DefaultComponentHandler.doGet(D
efaultComponentHandler.java:126)
at =
org.apache.avalon.excalibur.component.ComponentHandler.get(ComponentH
andler.java:234)
at =
org.apache.avalon.excalibur.component.ExcaliburComponentManager.looku
p(ExcaliburComponentManager.java:262)
at =
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComp
onentManager.java:235)
at =
org.apache.avalon.excalibur.component.DefaultComponentFactory$Compone
ntManagerProxy.lookup(DefaultComponentFactory.java:393)
at org.apache.cocoon.sitemap.Handler.compose(Handler.java:129)
at =
org.apache.cocoon.sitemap.Manager.createHandler(Manager.java:236)
at =
org.apache.cocoon.sitemap.SitemapManager.configure(SitemapManager.jav
a:135)


Any Idea what Im forgetting, Im sure its something simple. I will try it =
on another machine with Tomcat 4.0 and the CVS version of Cocoon =
tonight, but I would really like to get it working with 3.2.4.  Thanks

John




Re: Error message not displayed

2003-06-25 Thread Dmitry Diskin
Hi Joerg,

Thanks for your answer. Would you mind to show me the example - I was 
unable to find it..

Dmitry.

Joerg Heinicke wrote:

That's a logging issue, so should be configurable in logkit.xconf. If 
you want to see it in the browser, you should add an error handler to 
the pipe. You can find samples in the Cocoon samples I guess.

Joerg

Dmitry Diskin wrote:

Hello

I have been struggling with blank page in my browser for a while, and 
the problem was in invalid xsl:call-template.. element - it was 
referring to non-existent template. No error message was displayed, 
except. I think that error.log is not enough for such type of error. 
Or I'm missing something and it can be configured to report such error 
on the screen?

Regards,
Dmitry.


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