Re: xsp question

2003-06-26 Thread Roger I Martin PhD
I use Netbeans to check the xml.  It can also be used for performing xslt
per file rather than building the cocoon war and redeploying it on tomcat.
For some xml I've also got it to validate the xml to the dtd and xsd's.  For
xsp I've only verified checking it for wellformness.

I also recommend that you reorganise your project so that it isn't sub to
the Cocoon examples; just use what is needed, the cocoon-*.jar's and lib
dependencies for starters.  It is also possible to work on your webapp in
it's deployed directories and then eventually bring it back to a project
directory and develop a build.xml for ant at that point.  When working in
it's deployed state, out of nervousness I make sure there is no associated
war file in tomcat/webapps and constantly delete the associated tomcat work
files in the tomcat/work/Catalina/localhost/mywebapp.  When testing xsp's I
leave the work files and put a mount in Netbeans at the package root of the
generated *_xsp.java files.

A code writing cycle which includes Cocoon build and deployment can be
debilitating to say the least. Can be a real stumbling block for developers
working with Cocoon for the first time. It is completely unnecessary but it
is the way the all-to-familiar Cocoon developer's have structured their
project.  Otherwise Cocoon is a powerful servlet.

-Roger

- Original Message -
From: "Tim Bachta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 6:11 PM
Subject: RE: xsp question


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


--^


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





  2003-05-20

  

0

Somebodys, Name

0

Somebodys, Name2

0

Somebodys, Name3

  







here is the code that I am using





   String date = ;

   if(!date.equalsIgnoreCase(oldDate))

   { oldDate = date;


 



   








   }


   

 

   




   if(!date.equalsIgnoreCase(oldDate))

   {




 


   }





and here is the result that I am getting:




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

  2003-05-22 00:00:00.0


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

  }

  

  if(!date.equalsIgnoreCase(oldDate)) {

  

  


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

  2003-05-23 00:00:00.0


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

  }

  

  if(!date.equalsIgnoreCase(oldDate)) {

  

  


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

  2003-05-24 00:00:00.0


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

  }

  

  if(!date.equalsIgnoreCase(oldDate)) {

  

  





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



Thank you



Tim Bachta



  if(!selectMap && parameterNames!=null &&
parameterNames.length>0)
  {
   //System.out.println("here");
   str=mapIDValues[0];
   boolean check=false;
   int index=str.length()-1;
   while(!check && index>=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(

Re: xsp question

2003-06-25 Thread Roger I Martin PhD
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





  2003-05-20

  

0

Somebodys, Name

0

Somebodys, Name2

0

Somebodys, Name3

  







here is the code that I am using





   String date = ;

   if(!date.equalsIgnoreCase(oldDate))

   { oldDate = date;


 



   








   }


   

 

   




   if(!date.equalsIgnoreCase(oldDate))

   {




 


   }





and here is the result that I am getting:





- 

  2003-05-22 00:00:00.0



- 

  }

  

  if(!date.equalsIgnoreCase(oldDate)) {

  

  



- 

  2003-05-23 00:00:00.0



- 

  }

  

  if(!date.equalsIgnoreCase(oldDate)) {

  

  



- 

  2003-05-24 00:00:00.0



- 

  }

  

  if(!date.equalsIgnoreCase(oldDate)) {

  

  





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



Thank you



Tim Bachta



  if(!selectMap && parameterNames!=null &&
parameterNames.length>0)
  {
   //System.out.println("here");
   str=mapIDValues[0];
   boolean check=false;
   int index=str.length()-1;
   while(!check && index>=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()));
   }


 Map Locations
 Location
#XYMAP_ID

int count=1;
for(index=0;index

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="Int">number
-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:


{call
rptLocationDeviations(number, room,
beginTime,
endTime)}




(ResultSet)



















//
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: java docs?

2003-06-24 Thread Roger I Martin PhD
C:\apache\cocoon-2.1\build\cocoon-2.1m3-dev\javadocs locally;

http://cocoon.apache.org/2.1/apidocs/index.html remotely. Can get there from
http://cocoon.apache.org/2.1/developing/index.html
-Roger
- Original Message -
From: "Tim Bachta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 24, 2003 6:07 PM
Subject: java docs?


Where are the cocoon javadocs located?



Thanks



Tim






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

2003-06-24 Thread Roger I Martin PhD
Hi,

Every one that your driver supports.  The error message your getting appears
to be from the SQLServer 2000 Driver for JDBC showing java.sql.SQLException:
[Microsoft][SQLServer 2000 Driver for JDBC]Syntax
error at token t, line 0 offset 7.
 talking about a syntax error it exceptions on.  Do simple queries work in
you Cocoon based project?  Are stored procedures supported by the SQLServer
2000 Driver for JDBC? Can you test this driver directly?

If you need to explore Cocoon more, look in
cocoon-2.1\src\blocks\databases\java\org\apache\cocoon\components\language\m
arkup\xsp\java\esql.xsl at particularly

 internal. set one parameter of a callable statement



_esql_query.getCallableStatement().
registerOutParameter(, ,  );


_esql_query.getCallableStatement().




 and what it calls and does.  If you look at your generated *_xsp.java files
under tomacat (C:\Program
Files\jakarta-tomcat-5\dist\work\Catalina\localhost\wita\cocoon-files\
working mount) or other work directory of another server you will see that
they extend "org.apache.cocoon.components.language.markup.xspXSPGenerator"
but it looks like most of your parameters are direction='in' so you can look
more at the esql.xsl set-query-parameter template.  Note you can put
System.out.println() inside this esql.xsl prove to yourself that the
stylesheet is working.  You can write a lot of Java code in here to explore
the driver classes and the queries they manage.  The output from
System.out.println()'s will show up in the launch window of your server.

-Roger

- Original Message -
From: "Tim Bachta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 24, 2003 2:41 PM
Subject: RE: esql !!!HELP!!!


Does anyone know what the different types of parameters there are for
esql:parameter.  I know String and Int.

Tim Bachta

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


-Original Message-
From: Tim Bachta
Sent: Tuesday, June 24, 2003 12:56 PM
To: [EMAIL PROTECTED]
Subject: RE: esql !!!HELP!!!

Geoff,
Thanks for the help that was really helpful.  Now I was able to get a
step further in my quest.  I am running the following code:


{? = rptLocationDeviations(number,room,beginTime,endTime)}



(ResultSet)











and I am now getting this error message:

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
executing statement: {? = rptLocationDeviations(?,?,?,?)} :
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Syntax
error at token t, line 0 offset 7.

Does anyone have any ideas?  Maybee where I can find
ServerPagesGenerator or even what I am doing wrong here.  Thanks

Tim Bachta

-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 12:38 PM
To: [EMAIL PROTECTED]
Subject: RE: esql !!!HELP!!!

Yes.  The .java file is in your servlet container's work directory under

cocoon-files.  There will be an org/apache/cocoon... structure the path
and
name will mimic your xsp file's name and location after a certain point.

If you're using tomcat, the work dir is under %tomcat_home%\work

in jetty, it's in your window's temp dir (documents and
settings\your.user\...
some where.  the dir is called something like Jetty_)

HTH,
Geoff Howard

At 01:35 PM 6/24/2003, you 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.
>
>Tim Bachta
>
>
>
>-Original Message-
>From: Tim Bachta
>Sent: Tuesday, June 24, 2003 12:21 PM
>To: [EMAIL PROTECTED]
>Subject: RE: esql !!!HELP!!!
>
>I wish I could make the stored procedure easier, but unfortunately this
>is the procedure that I have been given.
>
>Tim Bachta
>
>
>-Original Message-
>From: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 24, 2003 12:07 PM
>To: [EMAIL PROTECTED]
>Subject: RE: esql !!!HELP!!!
>
>Hello Tim,
>
>your code is quite complex.
>
>I had heaps of problem with similar code.
>
>Can you break it down to 1 or 2 parameter?
>
>Your error:
>Line 702, column 45: ')' expected
>Line 707, column 65: ';' expected
>Line 710, column 6: illegal start of expression
>Line 702, column -1: inconvertible types
>
>Seeing the last error I reckon that MS SQL have a different type of
data
>then you expect.
>
>-Original Message-
>From: Tim Bachta [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 24, 2003 6:54 PM
>To: [EMAIL PROTECTED]
>Subject: esql !!!HELP!!!
>
>Ok, I am using the syntax exactly like that of the example at
>http://cocoon.apache.org/2.1/userdocs/xsp/esql.html#Stored+Procedure+Su
p
>port
>pport>  and I am getting errors.  I am really confused on why I am
>getting these errors.  Here is the code for the xsp that has the stored
>procedure in it:
>
>
>
> 
>
> {? = rptLocation

Re: integrating php with cocoon 2.0.3

2002-11-18 Thread Roger I Martin PhD
I still think you have a classpath problem; not a sitemap problem.
- Original Message -
From: "tom.troonbeeckx" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 18, 2002 6:21 AM
Subject: RE: integrating php with cocoon 2.0.3


> I have put the servlet in the webapps libarea. But still no go...
> In the sitemap.xmap i have defined the following.
>
> 
>  src="woonconsulent/content/php/test.php" type="php"/>
> 
>
> Im a newbie in the cocoonworld.  Maybe i just configured it wrong.
>
> Has anybody an idea how to configure the sitemap.xmap for php-pages.
>
> Thanx in advance
>
>
> -Original Message-
> From: Roger I Martin PhD [mailto:[EMAIL PROTECTED]]
> Sent: maandag 18 november 2002 12:09
> To: [EMAIL PROTECTED]
> Subject: Re: integrating php with cocoon 2.0.3
>
>
> Put the phpsrvlt.jar in you webapps lib area.
> - Original Message -
> From: "tom.troonbeeckx" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, November 18, 2002 5:57 AM
> Subject: integrating php with cocoon 2.0.3
>
>
> > Dear sir, madam,
> >
> >
> > I have compiled cocoon-2.0.3 as described in the HOWTO in order to work
> with
> > PHP-files.
> > I'm running a j2sdk-1.4.1 and a tomcat 4.0.6 in a Redhat 7.1 Linuxbox.
> >
> > The compilation went fluently.  I have put the cocoon.war in the
> > WEBAPPS-folder and the phpsrvlt.jar into the $TOMCAT/common/libs folder.
> >
> > Referring into the documentation i should be able to execute PHP-code.
> > However when i try to access a php-file i get the  errormessage as
> described
> > below.
> >
> > Do i have to configure something in the sitemap.xmap. or do i something
> else
> > wrong?
> >
> > Thanks in advance
> >
> >
> > type fatal
> >
> > message UnnamedSelector: ComponentSelector could not find the component
> for
> > hint: php
> >
> > description org.apache.avalon.framework.component.ComponentException:
> > UnnamedSelector: ComponentSelector could not find the component for
hint:
> > php
> >
> > sender org.apache.cocoon.servlet.CocoonServlet
> >
> > source Cocoon servlet
> >
> > stack-trace
> >
> > org.apache.avalon.framework.component.ComponentException:
UnnamedSelector:
> > ComponentSelector could not find the component for hint: php
> > at
> >
>
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca
> > liburComponentSelector.java:270)
> > at
> >
>
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.select(DefaultSite
> > mapComponentSelector.java:101)
> > at
> >
>
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.select(DefaultSite
> > mapComponentSelector.java:104)
> > at
> >
>
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.setReader(Abstr
> > actStreamPipeline.java:140)
> > at
> >
>
org.apache.cocoon.components.pipeline.CachingStreamPipeline.setReader(Cachin
> > gStreamPipeline.java:123)
> > at
> >
>
org.apache.cocoon.www.sitemap_xmap.matchN10341(/sites/SOURCES/jakarta-tomcat
>
> -4.0.6/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www
> /s
> > itemap_xmap.java:3887)
> > at
> >
>
org.apache.cocoon.www.sitemap_xmap.process(/sites/SOURCES/jakarta-tomcat-4.0
> >
>
.6/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitem
> > ap_xmap.java:2701)
> > at
> >
>
org.apache.cocoon.www.sitemap_xmap.process(/sites/SOURCES/jakarta-tomcat-4.0
> >
>
.6/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitem
> > ap_xmap.java:2538)
> > at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
> > at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
> > at
> >
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
> > at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
> > at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> > FilterChain.java:247)
> > at
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> > ain.java:193)
> > at
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> > va:243)
> > at
> >
>
org.apache.catalina.core.StandardP

Re: integrating php with cocoon 2.0.3

2002-11-18 Thread Roger I Martin PhD
Put the phpsrvlt.jar in you webapps lib area.
- Original Message -
From: "tom.troonbeeckx" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 18, 2002 5:57 AM
Subject: integrating php with cocoon 2.0.3


> Dear sir, madam,
>
>
> I have compiled cocoon-2.0.3 as described in the HOWTO in order to work
with
> PHP-files.
> I'm running a j2sdk-1.4.1 and a tomcat 4.0.6 in a Redhat 7.1 Linuxbox.
>
> The compilation went fluently.  I have put the cocoon.war in the
> WEBAPPS-folder and the phpsrvlt.jar into the $TOMCAT/common/libs folder.
>
> Referring into the documentation i should be able to execute PHP-code.
> However when i try to access a php-file i get the  errormessage as
described
> below.
>
> Do i have to configure something in the sitemap.xmap. or do i something
else
> wrong?
>
> Thanks in advance
>
>
> type fatal
>
> message UnnamedSelector: ComponentSelector could not find the component
for
> hint: php
>
> description org.apache.avalon.framework.component.ComponentException:
> UnnamedSelector: ComponentSelector could not find the component for hint:
> php
>
> sender org.apache.cocoon.servlet.CocoonServlet
>
> source Cocoon servlet
>
> stack-trace
>
> org.apache.avalon.framework.component.ComponentException: UnnamedSelector:
> ComponentSelector could not find the component for hint: php
> at
>
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca
> liburComponentSelector.java:270)
> at
>
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.select(DefaultSite
> mapComponentSelector.java:101)
> at
>
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.select(DefaultSite
> mapComponentSelector.java:104)
> at
>
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.setReader(Abstr
> actStreamPipeline.java:140)
> at
>
org.apache.cocoon.components.pipeline.CachingStreamPipeline.setReader(Cachin
> gStreamPipeline.java:123)
> at
>
org.apache.cocoon.www.sitemap_xmap.matchN10341(/sites/SOURCES/jakarta-tomcat
> -4.0.6/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www
/s
> itemap_xmap.java:3887)
> at
>
org.apache.cocoon.www.sitemap_xmap.process(/sites/SOURCES/jakarta-tomcat-4.0
>
.6/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitem
> ap_xmap.java:2701)
> at
>
org.apache.cocoon.www.sitemap_xmap.process(/sites/SOURCES/jakarta-tomcat-4.0
>
.6/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitem
> ap_xmap.java:2538)
> at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
> at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
> at
> org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
> at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
> at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:190)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
> 46)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
> at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
> )
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174)
> a

Re: Dynamic XSP resource

2002-08-20 Thread Roger I Martin PhD

Just from a quick look, the map:generate src for menu.html has "cocoon:" as
a part of it relative path; do you have such a path and can such an animal
be part of a url?

--Roger
- Original Message -
From: "Tuomo Lesonen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 4:57 AM
Subject: Dynamic XSP resource


> Hi all!
>
> I have an XSP page which is extended with the Session Transformer before
> it is used as an resource for the serverpages generator. Here's my
> sitemap:
>
> 
>   
>   
>   
> 
>
> 
>   
>   
>   
> 
>
> If I open "menu.xsp" in browser, everything looks ok. Session Transformers
> does the job and everything. But when opening "menu.html" Cocoon gives a
> NullPointerException.
>
> Seems like a bug, not sure though.
>
> Thanks in advance,
>
> -Tuomo
>
> org.apache.cocoon.ProcessingException: Exception during source resolving.:
> org.apache.excalibur.source.SourceException: Exception during processing
> of cocoon://intranet/menu.xsp: org.apache.cocoon.ProcessingException:
> Failed to execute pipeline.: java.lang.NullPointerException
> at
> org.apache.cocoon.components.source.SourceUtil.handle(SourceUtil.java:136)
> at
>
org.apache.cocoon.components.source.SourceUtil.getInputSource(SourceUtil.jav
a:161)
> at
>
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eSourcecode(ProgramGeneratorImpl.java:438)
> at
>
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:285)
> at
>
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator
.java:209)
> at
>
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeli
ne(AbstractProcessingPipeline.java:368)
> at
>
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
.setupPipeline(AbstractCachingProcessingPipeline.java:297)
> at
>
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs
tractProcessingPipeline.java:475)
> at
>
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:142)
> at
>
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:83)
> at
>
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:163)
> at
>
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:83)
> at
>
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp
eNode.java:155)
> at
>
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:83)
> at
>
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:163)
> at
>
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
> at
>
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:157)
> at
>
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
> at
>
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:155)
> at
>
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:327)
> at
>
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:309)
> at
>
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:131)
> at
>
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:83)
> at
>
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:163)
> at
>
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
> at
>
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:157)
> at
>
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
> at
>
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:155)
> at
>
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:327)
> at
>
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:309)
> at org.apache.cocoon.Cocoon.process(Cocoon.java:585)
> at
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1000)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
> at
>
org.apache.ca

Re: I hate typo-s

2002-08-19 Thread Roger I Martin PhD
Title: I hate typo-s



www.netbeans.org
 

  - Original Message - 
  From: 
  Argyn Kuketayev 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Monday, August 19, 2002 3:55 
  PM
  Subject: RE: I hate typo-s
  
  FAR 
  Manager + colorer?
  
-Original Message-From: Greg Jones 
[mailto:[EMAIL PROTECTED]]Sent: Monday, August 19, 2002 3:44 
PMTo: [EMAIL PROTECTED]Subject: 
I hate typo-s
It seems that most of my frustration with any 
programming environment is my own typing mistakes. 
This is why I'm willing to purchase an IDE that 
will check for such things and alert me of such things. 
Does anyone know of an IDE that will check XSP 
values, utilizing the LogicSheets. I'm currently using JEdit which does a 
great job at ensuring my tags are well formatted but inside the tags, it 
can't check to see if the expression is entered correctly.
Thanks. 



Re: XSP Java Class Include

2002-08-19 Thread Roger I Martin PhD

Hi Brian,

I write this for everybody.  I've sent this to my brother who works with
you.  He said he was out at meetings this morning so I thought you might
want this now.

Place all jars that torque is dependent on in your
tomcat/webapps/YOURWEBAPP/WEB-INF/lib folder.  Restart tomcat; it won't take
affect until you do.  Should work but if it doesn't it is not a Cocoon issue
but happens often for people trying to apply Cocoon.  Look in the
tomcat/logs and you should see a file similar to
"localhost_log.2002-08-19.txt". You need to shut tomcat down to be able to
read this log.  Start at the bottom and scroll up till you see a root cause
like:

- Root Cause -
java.lang.NoClassDefFoundError:org/apache/stratum/configuration/Configuratio
n
 at org.aci.om.BaseEmployeePeer.(BaseEmployeePeer.java:80)
 at org.aci.om.BaseEmployee.(BaseEmployee.java:25)
 at org.apache.cocoon.www.content.home_xml.generate(C:\Program
Files\jakarta-tomcat-4.0\work\Standalone\localhost\wita\cocoon-files\org/apa
che/cocoon/www/content\home_xml.java:344)

Cocoon is a servlet, period.  We all are running a server such as Tomcat
with the Cocoon servlet.  Cocoon allows us to write documents with xml mixed
with logic implemented with Java (can be nasty, can be cool, it's up to us)
and let the power of Cocoon do the servlet part and serv up our dynamic
pages.  The server environment and dependency issues are prevalant problems
people encounter when trying to apply Cocoon and because they are working
with Cocoon think the problem lies in Cocoon. It lies in how the JVM that is
running the whole thing finds all the pieces/parts of everything we are
giving it to do. Check out the documentation at
http://java.sun.com/webservices/docs/1.0/tutorial/index.html.

 More on xsp import after you get up and running.  The import inclusion is a
convenience thing.  Use the full package name temporarily.

Roger




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

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




Re: [repost] MySQL no suitable driver

2002-08-16 Thread Roger I Martin PhD

Look at http://xml.apache.org/cocoon/developing/datasources.html

It's good if the pool is initialized long before your xsp's need it.

In your web.xml file. The you need the following snippet with :

...

  load-class
  

   com.mysql.jdbc.Driver


postgresql.Driver


oracle.jdbc.driver.OracleDriver

  

...
with the MySQL driver added.  Then in your cocoon.xconf you need:

...


com.mysql.jdbc.Driver


jdbc:mysql://localhost:3306/test
root
5h4p3r5


...

Then in one of your xsp's
...

  MY_POOL
  
select * from MY_DATABASE_TABLE

  
  
  

  

...

I'm using mysql-connector-java-3.0.0-beta-bin.jar. It does not appear to be
compressed.  I have found that if you want to apply a bleeding edge
technology such as Cocoon it's good if you have the audacity to go all of
the way and use the latest of every part until you get a fairly stable
environment, protect it by backing up and be willing to try the latest again
and again.  If the latest fails then go back to your backup if your at the
stage you have one but try again within a few weeks.  This actually
minimizes your time of looking at what you think your doing wrong but
aren't.

Try jdk1.4.1 and the cvs HEAD of Cocoon.  If your going to be on the edge,
then being one or two versions back can be rougher than being where the
developers are;  the developers are more likely to address any problems you
discover if your working with the cvs HEAD.

--Roger


- Original Message -
From: "Jan Willem Penterman" <[EMAIL PROTECTED]>
To: "'Cocoon'" <[EMAIL PROTECTED]>
Sent: Friday, August 16, 2002 10:38 AM
Subject: [repost] MySQL no suitable driver


> [repost] still stuck on this [/repost]
>
> I'm quite new to Cocoon but want to set up a MySQL connection using
> ESQL. I followed the directives on
> http://www.cocooncenter.de/cc/documents/resources/db-app/index.html and
> altered the settings for MySQL like I see them everwhere in the mail
> archives. So I have an XSP page generated from a subsitemap of the
> default cocoon app:
>
> 
>  language="java"
> xmlns:xsp="http://apache.org/xsp";
> xmlns:esql="http://apache.org/cocoon/SQL/v2";>
> 
> 
> 
> 
> 
>
> 
>
> org.gjt.mm.mysql.Driver
>
> jdbc:mysql://localhost:3306/test
> root
> 5h4p3r5
>
> ...
>
> 
>
> 
> 
> 
>
> As you can see it doesn't work both pooling and non-pooling. This is the
> error:
>
> error.log:
> org.apache.cocoon.ProcessingException: Exception in
> ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
> opening connection to dburl: : No suitable driver
>
> Traces I find of the driver:
>
> access.log:
> DEBUG   (2002-08-15) 02:32.20:253   [access] (Unknown-URI)
> Unknown-thread/CocoonServlet: Trying to load class:
> org.gjt.mm.mysql.Driver
>
> core.log:
> DEBUG   (2002-08-15) 02:54.03:637   [core] (Unknown-URI)
> Unknown-thread/Cocoon: Classpath =
> ;D:\apache-tomcat-4.0.4\webapps\cocoon\WEB-INF\lib\mm.mysql
> -2.0.14-bin.jar;;
>
> I can however make a jdbc:mysql connection with a regular servlet. So
> nothing wrong with that.
>
> My system:
>
> Windows XP
> j2sdk1.3.1_4
> tomcat 4.0.4
> cocoon 2.0.3
> MySQL 3.23.49-nt
> mm.mysql-2.0.14
>
> JW
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>



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

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




Re: MSFT answer to Cocoon? (Plaease don't throw stones :)

2002-06-11 Thread Roger I Martin PhD

Hi folks,

Sorry Michael.  You were looking for a solution.

I was being incredibly facetious when I typed .net. It is one of those
reasons I got a minus on my report card(parochial school) for lack of self
control .

There is nothing like Cocoon but Cocoon.

Use IIS with Jakarta Tomcat, and run Cocoon in it as Microsoft's answer to
Cocoon/Xalan/Xerces functionality?

-Roger
- Original Message -
From: "Nicola Ken Barozzi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 11, 2002 5:14 PM
Subject: Re: MSFT answer to Cocoon? (Plaease don't throw stones :)


>
>
> [EMAIL PROTECTED] wrote:
> > This sounds right - from my research with .Net it doesn't rival cocoon -
was hoping there was a snap-in to IIS that mimics Cocoon
>
> Use IIS with Jakarta Tomcat, and run Cocoon in it.
>
> --
> Nicola Ken Barozzi   [EMAIL PROTECTED]
>  - verba volant, scripta manent -
> (discussions get forgotten, just code remains)
> -
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>



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

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




Re: MSFT answer to Cocoon? (Plaease don't throw stones :)

2002-06-11 Thread Roger I Martin PhD

.net
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 11, 2002 2:08 PM
Subject: MSFT answer to Cocoon? (Plaease don't throw stones :)



  Had to ask - does Microsoft have anything for IIS that gives
Cocoon/Xalan/Xerces functionality?

  Mike

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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

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





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

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




Are torque database accessor classes of any use in Cocoon?

2002-06-11 Thread Roger I Martin PhD


Are torque database accessor classes of any use in Cocoon powered web apps?
Or is the way to go esql logic sheet and DatabaseActions?

-Roger




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

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




Re: java.lang.OutOfMemoryError ------help pls

2002-06-11 Thread Roger I Martin PhD

How much memory do you have?

Can you set the memory usage up on the tomcat command line?
-ms128M -mx256M
or higher.

-Roger
- Original Message -
From: "yuryx" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 11, 2002 6:26 AM
Subject: Re: java.lang.OutOfMemoryError --help pls


> Hi Niket.
> I have the same symptoms while access to subsitemaps :(
> (cocoon2.0.2 on tomcat4.0.4-b1)
> Yury.
>
> Niket Anand wrote:
>
> >Hi Vadim,
> >I have tried it on Tomcat 4.0.4b3. Even though it is showing same
problem.
> >How can I deal with this error as it is demotivating factor in accepting
> >cocoon higher version.
> >Thanks for replying.
> >Niket
> >- Original Message -
> >From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Monday, June 10, 2002 11:36 PM
> >Subject: RE: java.lang.OutOfMemoryError --help pls
> >
> >
> >>Try tomcat 4.0.4.
> >>
> >>
> >>Vadim
> >>
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>



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

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




Re: recompile Excalibur

2002-06-10 Thread Roger I Martin PhD

Hi,
If you don't mind a large email (~449k) I can push my Avalon builds
(Saturday cvs HEAD) to you.  Building framework and logkit is a breeze but
Excalibur is another story.  Also the HEADs of Excalibur and logkit are
missing files.

See comments below.

-Roger
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 10, 2002 11:09 AM
Subject: recompile Excalibur


> hi,
>
> I've build cocoon 2.0.3 with jdk 1.4. All run well on Tomcat 4.0.3.
> However as Vadim as me said I have to recompile Excalibur (to get JDBC3.0
> datasources)?
> I don't know how to do that. I've downloaded Excalibur source code 4.1.
>
> My questions are :
>
> Have i to download ANT to build Excalibur ?

Yes

> Where have i to set ConnectionURL and ConnectionDriverName for the
database
> to run the Employee example...

in the database.properties.  They may already be set.  I wouldn't work with
this example for long before setting up your own database connectivity.

> Have i to replace the avalon-excalibur-20020603.jar file in
> cocoon/Wen-inf/lib/ directory by the new archive obtained.

Yes.  However it is better to set up a web app project completely outside of
the %COCOON_HOME%  The only part of cocoon you really need is the cocoon.jar
and along with all of the other jars.  You can make your own build.xml small
and efficient for your web app.  I think I'll make an ant build script that
grabs only the Cocoon essentials for a new web app project so that people
can get past this part.

>
> If someone could explain me what i have to do in my special case to run
SQL
> samples
>
>
>
> Patrick PIERRA
> Linedata Services Luxembourg
> 00 352 29 56 65 282
> [EMAIL PROTECTED]
> www.linedata.com
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>



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

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




Re: To war with .WAR

2002-06-10 Thread Roger I Martin PhD

Hi,

Yep it's working! Just tried your links.

>
> QUESITION... when will we have a working c2 with jdk 1.4?
>

I've been using jdk1.4 + tomcat4.x and c2.x-dev since December; Albeit until
now by downloading the Avalon source code and modifying it's jdbc
connection:)  However, my modifications made the jdbc connections work only
with jdk1.4 so the patch was not immediately applied to the CVS HEAD.  On
Saturday I downloaded the cvs c2 HEAD, ran it's build and applied it to my
webapp projects and for the first time ran it without modification with
jdk1.4.  Well I needed blobs from my database so I modified the ESQL
logicsheet, got it working and sent the patch in.

I believe it is about ready for you to try again.  The date on the Avalon
jar is 6/3/2002 so I suspect you will need any version after that date but
I'm not certain; just this Saturday is when I tried again.

Another Cocoon applier,
Roger






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

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




more missing components

2002-06-08 Thread Roger I Martin PhD



cvs'ed the xml-cocoon2 today, compiled and ran it 
successfully.
 
copied the lib/core and lib/optional and cocoon.jar 
to one of my web app projects and built successfully.
 
But tomcat-4.0 deployment led to resource not found 
problem(Thought it was jdbc pool connectivity problems).
 
So cvs'ed the jakarta-avalon,  
jakarta-avalon-logkit  jakarta-avalon-excalibur and compiled them 
successfully.
 
Deployed with the latest cocoon.jar I just compiled 
successfully and got
 
...
- Root Cause 
-java.lang.NoClassDefFoundError: 
org/apache/log/output/ServletOutputLogTarget at 
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:765).
 
org/apache/log/output/ServletOutputLogTarget.java 
is missing from avalon-logkit HEAD
org.apache.avalon.excalibur.logger.factory.ServletTargetFactory.java is 
missing from avalon-excalibur HEAD
 
-Roger
 
BTW, building Excalibur is enough to bring a man to 
tears.
 


Re: Try this Re: Can't connect to MySQL with Cocoon 2

2002-05-10 Thread Roger I Martin PhD

Hi,

The WEB-INF/cocoon.xconf I use has the 





@database-driver@





@database-url@

@database-user@

@database-password@





where in the database.properties 

database-driver=org.gjt.mm.mysql.Driver

database-url=jdbc:mysql://localhost:3306/WITCD

database-user=martin

database-password=martin



I'm using the 

http://www.worldserver.com/mm.mysql -> http://mmmysql.sourceforge.net/

JDBC driver. And using Tomcat v4.0-b7 but usually is not a problem.

More later,

-Roger

- Original Message - 
From: "Arda Balci" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 10, 2002 12:37 AM
Subject: Re: Try this Re: Can't connect to MySQL with Cocoon 2


> Hi Roger,
> 
> I made a clean install and then did not be able to
> connect to mysql server. These are the related lines.
> What can be the reason of the error?
> 
> This is the core.log error:
> 
> WARN(2002-05-10) 07:24.46:708  
> [core.datasources.mysql_pool](/cocoon/kolon.html)
> HttpProcessor[8080][3]/LogKitLogger: Could not return
> Connection
> org.apache.avalon.excalibur.datasource.NoValidConnectionException:
> No valid JdbcConnection class available
> 
> I copied only the necessary line. It says no valid
> connection, but in the DEBUG line the Classpath
> contains "D:\Program Files\Apache Tomcat
> 4.0\webapps\cocoon\WEB-INF\lib\mysql.jar;", which i
> downloaded yesterday.
> 
> This is the web.xml section as stated in the userdocs:
> 
>   load-class
>   
> org.gjt.mm.mysql.Driver
>   
> 
> 
> This is the cocoon.xconf:
>   
>  name="mysql_pool">
>   
>   jdbc:mysql://localhost/test
>   arda
>   arda
> 
>   
> 
> This is the sitemap:
>
> 
> 
>value="mysql_pool"/>
> 
>  
> 
>
> 
> Thank you for your attention and your time.
> Arda
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Shopping - Mother's Day is May 12th!
> http://shopping.yahoo.com
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 



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

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




Re: Try this Re: Can't connect to MySQL with Cocoon 2

2002-05-09 Thread Roger I Martin PhD

Hi,

I am a fellow applier of Cocoon and MySQL.  If you haven't solved it yet
perhaps you may want to attach you mysql connection files, excerpts from the
tomcat/logs.localhost*.txt for the error, versions, etc.  I can look at it
tomorrow morning.

I had originally modified Avalon Pool connection(still using it) to get it
to work with jvm 1.4 and MySQL.  I am in the middle of getting the latest
HEAD of Cocoon2 and avalon to work with the jvm and MySQL and trying to
determine the problem there so might as well look at more of the same:)

-Roger
- Original Message -
From: "Arda Balci" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 09, 2002 11:02 AM
Subject: Re: Try this Re: Can't connect to MySQL with Cocoon 2


> I have a mysql connection problem:
> I configured cocoon.xconf, web.xml, and the xml
> content file, correctly as stated in the user docs,and
> as stated in the mailing list and double checked the
> files.
>
> But the page doesn't load, there is only a blank page,
> no error page coming, and there is no further change,
> browser tries to load, but stucks, the other cocoon
> pages are not effected, they are working properly.
>
> Why can this be?
>
>
> __
> Do You Yahoo!?
> Yahoo! Shopping - Mother's Day is May 12th!
> http://shopping.yahoo.com
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>



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

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




Re: [Newbie] Where do cocoon apps go?

2002-04-01 Thread Roger I Martin PhD

I wrote the following in answer to some other newbie questions(not far from
there myself so I understand.)  The most important thing to know is that all
you need to put into your own webapp is the cocoon.jar(not cocoon.war so
this is not a typo below).  It could stand a rewrite but here it is right
now.

Understand that what you download from the apache Cocoon site is not a
software tool or IDE but a super-powered servlet with many illustrations of
how to use it, all in one huge example webapp (much beyond a typical "Hello
World!" example).  Your starting point is getting this one huge example web
app to deploy once or twice on tomcat by placing the cocoon.war file in the
webapps folder of tomcat.  The "as is" Cocoon installation either works or
it doesn't.  There is nothing you can do right or wrong. Especially for the
Current Version System CVS revision xml-cocoon2 from the jakarta site
http://jakarta.apache.org/site/cvsindex.html.  My current tomcat revision is
Apache Tomcat/4.0.2-b1.  After I get a stable Cocoon revision running I use
it for a few months and back it up religiously when I go for the next cvs.
The command line:

 build.bat -Dinclude.webapp.libs=yes -Dinstall.war=%TOMCAT_HOME%\webapps

often will not work depending on the exact TOMCAT_HOME environment variable
you are using.  For example c:/Program Files/tomcat... has a space and can
cause age old problems.  Just copy the cocoon.war to the
%TOMCAT_HOME%\webapps yourself.  Fire tomcat up.  It either works or you got
a bum revision or copy of Cocoon.war. If it doesn't work the second time you
fire it up, delete the generated ...tomcat/work/localhost/cocoon and the
...tomcat/webapps/cocoon folders so that it has to deploy from the
cocoon.war file again.  May have to do this repeatedly until you rebuild
cocoon.war without hsqldb active or start making your own webapp
project(deployed through your own *.war file).  The problem is with the
hsqldb database example has a bug while shutting down.  The sooner that you
rebuild cocoon from its sources with






commented out in the src/webapp/cocoon.xconf file, the better.  The the rest
of the examples will start and stop just find.  Note that some of the
examples need extra jars placed in the cocoon/lib folder such as jndi.jar,
phpsrvlt.jar, etc. The important thing is to get past flopping around in
this one huge example webapp and start your own serious webapp as soon as
possible after you see Cocoon's one huge example webapp run once or twice.

Cocoon is not a typically installed software package and so to apply it to
your own web app at first is not intuitive.  The documentation has a long
way to go to catch up; remember it is a work in progress and tends to assume
that we know the small but totally baffling how-to-get-started stuff.  I
finally discovered a cool way to do it and perhaps with editing from the
Cocoon 2 Team we can put together a "How to apply Cocoon 2" for their web
site.  The most important thing is to set up your own webapp project build
area.  This takes some work but you can do it in stages.  To start, create a
project folder(sibling to the xml-cocoon2 folder), name it according to your
project, prepare your directory structure:

+->lib


//this is key because now your own build can be simplyfied
+->src //For your own custom additions to cocoon
+->documentation //At first just a copy from the xml-cocoon2/src
//You can eventually put your own or only things you need here
+->java //Only your own custom code here.  No cocoon code because
cocoon.jar already has the compiled Cocoon classes.
+->webapp//At first a copy of the webapp from xml-cocoon2/src
  //This you start modifying starting with the homepage
  //and sitemap.xmap
appendcp.bat
//classpath appender
build.bat
build.xml//A stripped down or commented out revision from the one
   //in the xml-cocoon2 folder.  Have it generate a build
folder
   // for construction of  your webapp jar and war files.
database.properties.
//set up your database initialization
//you will need to set somethings according to
//
http://xml.apache.org/cocoon/developing/datasources.html

Your custom webapp's build.xml can be pared down considerably from the huge
example cocoon webapp.  Until you make custom source code additions to your
...src/java folder you can disable the compile target.  Mostly you are
having it build the stuff it needs for your war file while applying build
variables such as
database-driver=org.gjt.mm.mysql.Driver.


The next stage is studying the ...src/webapp/sitemap.xmap file and modify
the welcome pattern matching to something you know and want.  There is no
need to pare the sitemap.xmap file down; eventually you will need more and
more of it and anything not in immediate use just lies dormant.  Find

Re: xsp-request problem

2002-03-04 Thread Roger I Martin PhD

Thank you!

http://xml.apache.org/cocoon/userdocs/xsp/request.html shows name without
the xsp-request: but of course it needs to be there!  Otherwise name is a
very lonely element.

Thanks you very much!

Roger
- Original Message -
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 04, 2002 11:39 AM
Subject: RE: xsp-request problem


> > From: Roger I Martin PhD [mailto:[EMAIL PROTECTED]]
> >
> > Hello, I'm using cvs( March 02, 2002) and having success with:
> >
> >
> > String fruit =  > name="fruit">;
> > 
> >
> > generated java code is:
> >   String fruit =
> > ((XSPRequestHelper.getParameter(objectModel, "fruit",
> > null, null, null)));
> >
> > but when I try to use
> >
> >
> > String fruit =  > >fruit;
> > 
>
> Must be:
>
> String fruit =
> fruit t:name>;
>
> See also request.xsl for implementation details.
>
> Vadim
>
> >
> > generated java code is:
> >String fruit=((XSPRequestHelper.getParameter(objectModel,
> > null, null, null, null)));
> >
> > there is no effect from the child element  so the parameter is
> not
> > found and the fruit string becomes null (Tried using 
> to set
> > it as an attribute but got null as well).
> > I'm doing this for the purpose of placing a variable holding the name
> of the
> > parameter into the request like:
> >
> >
> > String parameterName="fruit";
> > String fruit =  >
> >parameterName ter>
> > ;
> > 
> >
> >
> > Regards,
> >
> > Roger
> >
> > - Original Message -
> > From: "Istvan Beszteri" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, March 04, 2002 10:34 AM
> > Subject: xsp-request problem
> >
> >
> > > Hi All,
> > >
> > > I just started to learn XSP and I tried some examples.
> > > I have found a strange problem with xsp-request.
> > >
> > > The following xsp works properly:
> > >
> > > 
> > > 
> > >  > > xmlns:xsp="http://apache.org/xsp";
> > > xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > > >
> > > 
> > > String fruit = "apple";
> > > 
> > >
> > > 
> > >The string is: fruit
> > >
> > >The request parameter is:   > > name="fruit"/>
> > > 
> > > 
> > >
> > > with a certain request, but if I try to give value to the fruit
> string as
> > in
> > > the following example, I get a null pointer exception:
> > >
> > > 
> > > 
> > >  > > xmlns:xsp="http://apache.org/xsp";
> > > xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > > >
> > > 
> > > String fruit = ;
> > > 
> > >
> > > 
> > >The string is: fruit
> > >
> > >The request parameter is:   > > name="fruit"/>
> > > 
> > > 
> > >
> > > It seems  gives back a null
> > pointer
> > > if I use it within the  tags.
> > >
> > > Any idea?
> > >
> > > Thanks in advance!
> > >
> > > Istvan
> > >
> > >
> -
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > >
> > >
> >
> >
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>



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

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




Re: xsp-request problem

2002-03-04 Thread Roger I Martin PhD

Hello, I'm using cvs( March 02, 2002) and having success with:

   
String fruit = ;


generated java code is:
  String fruit =
((XSPRequestHelper.getParameter(objectModel, "fruit",
null, null, null)));

but when I try to use

   
String fruit = fruit;


generated java code is:
   String fruit=((XSPRequestHelper.getParameter(objectModel,
null, null, null, null)));

there is no effect from the child element  so the parameter is not
found and the fruit string becomes null (Tried using  to set
it as an attribute but got null as well).
I'm doing this for the purpose of placing a variable holding the name of the
parameter into the request like:

   
String parameterName="fruit";
String fruit = parameterName
;



Regards,

Roger

- Original Message -
From: "Istvan Beszteri" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 04, 2002 10:34 AM
Subject: xsp-request problem


> Hi All,
>
> I just started to learn XSP and I tried some examples.
> I have found a strange problem with xsp-request.
>
> The following xsp works properly:
>
> 
> 
>  xmlns:xsp="http://apache.org/xsp";
> xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> >
> 
> String fruit = "apple";
> 
>
> 
>The string is: fruit
>
>The request parameter is:   name="fruit"/>
> 
> 
>
> with a certain request, but if I try to give value to the fruit string as
in
> the following example, I get a null pointer exception:
>
> 
> 
>  xmlns:xsp="http://apache.org/xsp";
> xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> >
> 
> String fruit = ;
> 
>
> 
>The string is: fruit
>
>The request parameter is:   name="fruit"/>
> 
> 
>
> It seems  gives back a null
pointer
> if I use it within the  tags.
>
> Any idea?
>
> Thanks in advance!
>
> Istvan
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>



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

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




Re: Newbie FAQ (was Re: Just starting COCOON

2002-03-03 Thread Roger I Martin PhD

I am using 4.0.2-b1 just fine but am on a Windows 2000 box.

Are you deleting the generated jakarta-tomcat-4.0.2-b1\webapp\Cocoon
directory and the jakarta-tomcat-4.0.2-b1\work\localhost\cocoon directory
between tries?

Do the logs in jakarta-tomcat-4.0.2-b1\logs tell you anything?

Do other war files deploy such as the petstore example from j2ee?

Just thinking about it a little.  Regards,

Rog
- Original Message -
From: "Peter Schwenke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 18, 2002 6:54 PM
Subject: Re: Newbie FAQ (was Re: Just starting COCOON


> Peter Flynn writes:
>  > Peter Schwenke writes:
>  > > There has been discussions on the list that it is better to stick
>  > > with Tomcat 4.0.2 for now.
>  > >
(http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=101363193404329&w=2)
>  >
>  > But that's what I'm trying to install.
>
>  >
>  > > Is the war file OK - Can you do a jar tvf on it? Permissions OK etc
>  >
>  > Yep.
>  >
>  > -rw-r--r--1 tomcat4  tomcat4  12052601 Feb 15 16:12 cocoon.war
>  >
>  > > > I and some co-workers have also been trying to get Cocoon
>  > > > running. I was recently put on a different project, but my
>  > > > co-workers report that downgrading to Tomcat 4.0.1 made things
>  > > > work. You might try that.
>  >
>  > Ah. Should that have read 4.0.1 above? Many thanks, I'll try.
>
> Sorry.  I meant to say 4.0.1.
>
>
> ...Peter
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>



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

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




Re: Just starting COCOON

2002-01-19 Thread Roger I Martin PhD

Understand that what you download from the apache Cocoon site is not a
software tool or IDE but a super-powered servlet with many illustrations of
how to use it, all in one huge example webapp (much beyond a typical "Hello
World!" example).  Your starting point is getting this one huge example web
app to deploy once or twice on tomcat by placing the cocoon.war file in the
webapps folder of tomcat.  The "as is" Cocoon installation either works or
it doesn't.  There is nothing you can do right or wrong. Especially for the
Current Version System CVS revision xml-cocoon2 from the jakarta site
http://jakarta.apache.org/site/cvsindex.html.  My current tomcat revision is
Apache Tomcat/4.0.2-b1.  After I get a stable Cocoon revision running I use
it for a few months and back it up religiously when I go for the next cvs.
The command line:

 build.bat -Dinclude.webapp.libs=yes -Dinstall.war=%TOMCAT_HOME%\webapps

often will not work depending on the exact TOMCAT_HOME environment variable
you are using.  For example c:/Program Files/tomcat... has a space and can
cause age old problems.  Just copy the cocoon.war to the
%TOMCAT_HOME%\webapps yourself.  Fire tomcat up.  It either works or you got
a bum revision or copy of Cocoon.war. If it doesn't work the second time you
fire it up, delete the generated ...tomcat/work/localhost/cocoon and the
...tomcat/webapps/cocoon folders so that it has to deploy from the
cocoon.war file again.  May have to do this repeatedly until you rebuild
cocoon.war without hsqldb active or start making your own webapp
project(deployed through your own *.war file).  The problem is with the
hsqldb database example has a bug while shutting down.  The sooner that you
rebuild cocoon from its sources with






commented out in the src/webapp/cocoon.xconf file, the better.  The the rest
of the examples will start and stop just find.  Note that some of the
examples need extra jars placed in the cocoon/lib folder such as jndi.jar,
phpsrvlt.jar, etc. The important thing is to get past flopping around in
this one huge example webapp and start your own serious webapp as soon as
possible after you see Cocoon's one huge example webapp run once or twice.

Cocoon is not a typically installed software package and so to apply it to
your own web app at first is not intuitive.  The documentation has a long
way to go to catch up; remember it is a work in progress and tends to assume
that we know the small but totally baffling how-to-get-started stuff.  I
finally discovered a cool way to do it and perhaps with editing from the
Cocoon 2 Team we can put together a "How to apply Cocoon 2" for their web
site.  The most important thing is to set up your own webapp project build
area.  This takes some work but you can do it in stages.  To start, create a
project folder(sibling to the xml-cocoon2 folder), name it according to your
project, prepare your directory structure:

+->lib


//this is key because now your own build can be simplyfied
+->src //For your own custom additions to cocoon
+->documentation //At first just a copy from the xml-cocoon2/src
//You can eventually put your own or only things you need here
+->java //Only your own custom code here.  No cocoon code because
cocoon.jar already has the compiled Cocoon classes.
+->webapp//At first a copy of the webapp from xml-cocoon2/src
  //This you start modifying starting with the homepage
  //and sitemap.xmap
appendcp.bat
//classpath appender
build.bat
build.xml//A stripped down or commented out revision from the one
   //in the xml-cocoon2 folder.  Have it generate a build
folder
   // for construction of  your webapp jar and war files.
database.properties.
//set up your database initialization
//you will need to set somethings according to
//
http://xml.apache.org/cocoon/developing/datasources.html

Your custom webapp's build.xml can be pared down considerably from the huge
example cocoon webapp.  Until you make custom source code additions to your
...src/java folder you can disable the compile target.  Mostly you are
having it build the stuff it needs for your war file while applying build
variables such as
database-driver=org.gjt.mm.mysql.Driver.


The next stage is studying the ...src/webapp/sitemap.xmap file and modify
the welcome pattern matching to something you know and want.  There is no
need to pare the sitemap.xmap file down; eventually you will need more and
more of it and anything not in immediate use just lies dormant.  Finding the
first welcome page can require some sleuthing.  Currently it is nearly half
way down sitemap.xmap and looks like:












...

So ...src/webapp/docs/samples/samples.xml is the home page!  For those
familiar with Cocoon, this is no surprise but this was where I first started
to catch on!  What 

Re: [c1] Using Markup Symbols from a Database Field?

2002-01-09 Thread Roger I Martin PhD

Ah, just found another subject that deals with the
fName.  Look in your cocoon-users for subject for
"How best to incorporate xml from a string into XSP"

Christopher Watson posted the following on December 11:

Marvellous. I hoped it would be that easy!

-Original Message-
From: David Rosenstrauch [mailto:[EMAIL PROTECTED]]
Sent: 11 December 2001 02:52
To: [EMAIL PROTECTED]
Subject: Re: How best to incorporate xml from a string into XSP


Someone else had this same problem recently.

Use .  It will parse the text that you pass in to it, and
generate SAX calls from it (as opposed to writing the text straight to the
output - after escaping all the control chars - like it's doing now).

1) Include the namespace xmlns:util="http://apache.org/xsp/util/2.0"; in your
XSP or the  won't get called properly.

2) the call you need to make this work:
myString

myString takes the value of String  myString, which is
then passed in to .


DR


At 11:01 PM 12/10/01 +, you wrote:
>Could someone help
>
>I have a method on an object that produces XML as a string.
>I wish to incorporate it into an XSP page.
>
>myString
>doesn't work, since it kindly changes < into < etc.
>
>I have tried various approaches, each with various unwanted side effects.
>
>Could someone tell me what is the BEST way to achieve this?
>
>i.e.
>
>Parse it?
>DOM vs SAX?
>use this.contentHandler?
>use myStringAsANode?
>
>some other Cocoon technique/ generator/transformer etc
>
>Christopher
>
>

- Original Message -
From: "Luca Morandini" <[EMAIL PROTECTED]>
To: "Cocoon-users" <[EMAIL PROTECTED]>
Sent: Monday, November 26, 2001 5:27 AM
Subject: RE: [c1] Using Markup Symbols from a Database Field?


> Derek,
>
> just try to put the "disable-output-escaping" into the XSL which
> takes care of transforming the  element into HTML.
>
>  Best regards,
>
>  -
> Luca Morandini
> GIS Consultant
>[EMAIL PROTECTED]
>  http://utenti.tripod.it/lmorandini/index.html
>  -
>
> >
> > > -Original Message-
> > > From: Derek Hohls [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, November 26, 2001 11:04 AM
> > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > Subject: RE: [c1] Using Markup Symbols from a Database Field?
> > >
> > >
> > > Luca
> > >
> > > Not sure about your syntax - the ESQL sits in a XML file (not an XSL
> > > file), so I am not sure that  > > disable-output-escaping="yes"> will work there?
> > >
> > > The syntax currently looks like:
> > >
> > > 
> > >
> > > 
> > > fName=;
> > > 
> > >
> > > 
> > >
> > > fName
> > >
> > > This will be transformed by a stylesheet after the XML file is
> > > built...
> > >
> > > Thanks
> > > Derek
> > >
> > > >>> [EMAIL PROTECTED] 26/11/2001 11:42:01 >>>
> > > Derek,
> > >
> > > what about using disable-output-escaping="yes" in your xsl:value-of ?
> > >
> > > Just like in:
> > >  > > select="//sql:rowset/*[name(.)=$dbcol]"/>
> > >
> > > Anyhow, this works with SQLTransformer... no idea with ESQL.
> > >
> > >
> > > Best regards,
> > >
> > > -
> > >Luca Morandini
> > >GIS Consultant
> > >   [EMAIL PROTECTED]
> > > http://utenti.tripod.it/lmorandini/index.html
> > > -
> > >
> > >
> > > > -Original Message-
> > > > From: Derek Hohls [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, November 26, 2001 10:34 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [c1] Using Markup Symbols from a Database Field?
> > > >
> > > >
> > > > Does anyone know how to pass through markup symbols from a a
> > > Database
> > > > Field so that they do not appear in the output [HTML] file as <
> > > but
> > > > rather function as the tags they were intended to be - e.g. so that
> > > a
> > > > database field with:
> > > >
> > > > my name  your name
> > > >
> > > > appears as:
> > > >
> > > > my name
> > > > your name
> > > >
> > > > PS Am using ESQL tags to do the the database retrieval
> > > >
> > > > Thanks
> > > > Derek
> > > >
> > > >
> > > -
> > > > Please check that your question has not already been answered in the
> > > > FAQ before posting. 
> > > >
> > > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > > >
> > >
> > > -
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. 
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > >
> > >
>
> -
> Please check that your question has not already been ans

Re: [c1] Using Markup Symbols from a Database Field?

2002-01-09 Thread Roger I Martin PhD

But won't fName replace the markup again to <, etc.?

Regards,
Roger

- Original Message -
From: "Luca Morandini" <[EMAIL PROTECTED]>
To: "Cocoon-users" <[EMAIL PROTECTED]>
Sent: Monday, November 26, 2001 5:27 AM
Subject: RE: [c1] Using Markup Symbols from a Database Field?


> Derek,
>
> just try to put the "disable-output-escaping" into the XSL which
> takes care of transforming the  element into HTML.
>
>  Best regards,
>
>  -
> Luca Morandini
> GIS Consultant
>[EMAIL PROTECTED]
>  http://utenti.tripod.it/lmorandini/index.html
>  -
>
> >
> > > -Original Message-
> > > From: Derek Hohls [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, November 26, 2001 11:04 AM
> > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > Subject: RE: [c1] Using Markup Symbols from a Database Field?
> > >
> > >
> > > Luca
> > >
> > > Not sure about your syntax - the ESQL sits in a XML file (not an XSL
> > > file), so I am not sure that  > > disable-output-escaping="yes"> will work there?
> > >
> > > The syntax currently looks like:
> > >
> > > 
> > >
> > > 
> > > fName=;
> > > 
> > >
> > > 
> > >
> > > fName
> > >
> > > This will be transformed by a stylesheet after the XML file is
> > > built...
> > >
> > > Thanks
> > > Derek
> > >
> > > >>> [EMAIL PROTECTED] 26/11/2001 11:42:01 >>>
> > > Derek,
> > >
> > > what about using disable-output-escaping="yes" in your xsl:value-of ?
> > >
> > > Just like in:
> > >  > > select="//sql:rowset/*[name(.)=$dbcol]"/>
> > >
> > > Anyhow, this works with SQLTransformer... no idea with ESQL.
> > >
> > >
> > > Best regards,
> > >
> > > -
> > >Luca Morandini
> > >GIS Consultant
> > >   [EMAIL PROTECTED]
> > > http://utenti.tripod.it/lmorandini/index.html
> > > -
> > >
> > >
> > > > -Original Message-
> > > > From: Derek Hohls [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, November 26, 2001 10:34 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [c1] Using Markup Symbols from a Database Field?
> > > >
> > > >
> > > > Does anyone know how to pass through markup symbols from a a
> > > Database
> > > > Field so that they do not appear in the output [HTML] file as <
> > > but
> > > > rather function as the tags they were intended to be - e.g. so that
> > > a
> > > > database field with:
> > > >
> > > > my name  your name
> > > >
> > > > appears as:
> > > >
> > > > my name
> > > > your name
> > > >
> > > > PS Am using ESQL tags to do the the database retrieval
> > > >
> > > > Thanks
> > > > Derek
> > > >
> > > >
> > > -
> > > > Please check that your question has not already been answered in the
> > > > FAQ before posting. 
> > > >
> > > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > > >
> > >
> > > -
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. 
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > >
> > >
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>



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

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




no connections in the pool

2002-01-02 Thread Roger I Martin PhD



The current cvs of Cocoon2 produces the 
exception
 
Original exception : java.lang.RuntimeException: 
Could not get the datasource 
org.apache.avalon.excalibur.datasource.NoAvailableConnectionException: There are 
no connections in the pool, check your settings. 
for all databases I use and the hsqldb 
example as well.  I've checked my settings over and over again; looked at 
the deployed stuff as well; everything appears to be right and everything is 
compiled in the tomcat work directory.  Tried it with different types of 
databases.
 
Anybody else experiencing this?  Are there 
changes with Avalon that are causing things to break?
 
Regards,
Roger


Re: Employing, maintaining, version upgrades

2001-12-26 Thread Roger I Martin PhD

Thanks, that was quick!

I'll apply your project source tree and be able to continue working this
week.  The logkit.xconf was where I was missing some changes.

Happy New Year,

Roger
- Original Message -
From: "Peter Royal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 26, 2001 9:48 AM
Subject: Re: Employing, maintaining, version upgrades


> On Wednesday 26 December 2001 09:33 am, you wrote:
> > For applicators of Cocoon2; what is the recommended method for creating
> > multiple projects based on Cocoon? I currently create sibling project
> > folders to xml-cocoon2 and customize the projects build.xml to locate
> > Cocoon components and maintain a unique webapp folder for each project.
> > There are times when the projects become broken when I cvs update the
> > xml-cocoon2 folder and then I need to search for obsolescence in my
> > projects which can be a daunting task at times.  What project layout is
> > best?  Where should I break between Cocoon2 and Cocoon2 based projects?
>
> We have a Cocoon2-based project here. In my project source tree I have
>
> 
> |
> +- build/
> |
> +- source/
> |
> +- web/
>|
>+ WEB-INF/
>  |
>  + lib/
>
> And more, but that's the guts really. web is our version of the cocoon2
> webapp folder, source is our personal source tree, and build is where we
> build the code.
>
> I don't sync with Cocoon proper on a regular basis, but when I do I:
>
> 1) Get latest of the Cocoon source
> 2) compile as: build -Dinclude.webapp.libs=yes webapp javadocs
> 3) copy the contents of the generated webapp/WEB-INF/lib into my
> corresponding folder
> 4) manually update my cocoon.xconf and logkit.xconf to match whatever new
> constructs/log targets have been added.
>
> Thus the cocoon.jar that I am using is always local to my project in its
> web/WEB-INF/lib directory (and same with all of the other jars that Cocoon
> depends upon). It has worked out well for us.
> -pete
>
>
> --
> peter royal -> [EMAIL PROTECTED]
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>



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

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




Employing, maintaining, version upgrades

2001-12-26 Thread Roger I Martin PhD

Hi,

For applicators of Cocoon2; what is the recommended method for creating
multiple projects based on Cocoon? I currently create sibling project
folders to xml-cocoon2 and customize the projects build.xml to locate Cocoon
components and maintain a unique webapp folder for each project.  There are
times when the projects become broken when I cvs update the xml-cocoon2
folder and then I need to search for obsolescence in my projects which can
be a daunting task at times.  What project layout is best?  Where should I
break between Cocoon2 and Cocoon2 based projects?

Roger



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

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




Re: Cocoon Logging Issue...

2001-12-19 Thread Roger I Martin PhD

I am unfamiliar with HEAD branch; the default?

I just got a clean (renamed my old folder and checked out xml-cocoon2) cvs
this morning.  Had the logging error. Tried avalon 4.1. Then cvs'ed and
built clean jakarta-avalon, jakarta-avalon-excalibur, jakarta-avalon-logit
projects this morning.  Still have logging error.  I am using Apache
Tomcat/4.0-b7 server.  Should I upgrade it?  Should I be using Jdk1.4?

Roger

- Original Message -
From: "Torsten Curdt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 19, 2001 8:58 AM
Subject: Re: Cocoon Logging Issue...


>
> Assuming you are talking about Cocoon2 HEAD branch.
> When did you try? I committed new avalon jars 2 days
> ago. This should have solved the problem.
> --
> Torsten
>
> On Wed, 19 Dec 2001, Roger I Martin PhD wrote:
> > Hi,
> >
> > I see an earlier posting Sylvain Wallez
> >
> > Quote
> > {
> > Hi team,
> >
> > Cocoon can't start when using the avalon jars that were recently
> > updated. I've got the following exception at context startup (Tomcat
> > output) :
> >
> > Starting service Tomcat-Standalone
> > Apache Tomcat/4.0
> > Logging Error: Could not set up Cocoon Logger, will use screen instead
> > ...
> >
> > I couldn't find any explanation for this, neither in CocoonServlet nor
> > in Configuration. And switching back to
> > avalon-framework/excalibur-4.0.jar solves the problem.
> >
> > Any clue, someone ?
> >
> > --
> > Sylvain Wallez
> > Anyware Technologies - http://www.anyware-tech.com
> > }//Unquote
> >
> > I am experiencing the same problem.  Currently I am trying earlier
avalon
> > builds but nothing is a fix yet.
> >
> > Anyone else with this problem?
> >
> > Roger
> >
> > - Original Message -
> > From: "SANSONE, AARON M [Non-Pharmacia/1000]"
<[EMAIL PROTECTED]>
> > To: "Cocoon-Users (E-mail)" <[EMAIL PROTECTED]>
> > Sent: Thursday, December 13, 2001 3:01 PM
> > Subject: Cocoon Logging Issue...
> >
> >
> > > All,
> > >
> > > We are running C2 on JRun and seeing the following error:
> > >
> > > Logging Error: Could not set up Cocoon Logger, will use screen instead
> > > org.apache.avalon.framework.configuration.ConfigurationException:
cannot
> > > find LogTargetFactory class
org.apache.cocoon.util.log.CocoonTargetFactory
> > > at
> > >
> >
org.apache.avalon.excalibur.logger.DefaultLogTargetFactoryManager.configure(
> > > Unknown Source)
> > > at
> > >
> >
org.apache.avalon.excalibur.logger.DefaultLogKitManager.setupTargetFactoryMa
> > > nager(Unknown Source)
> > > at
> > >
org.apache.avalon.excalibur.logger.DefaultLogKitManager.configure(Unknown
> > > Source)
> > > at
> > >
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:435)
> > > at
> > > org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:132)
> > > at
> > >
> >
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JRunSe
> > > rvletLoader.java:203)
> > > at
> > >
> >
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JRunSe
> > > rvletLoader.java:161)
> > > at
> > >
> >
allaire.jrun.servlet.JRunServletLoader.loadServlet(../servlet/JRunServletLoa
> > > der.java:149)
> > > at
> > >
> >
allaire.jrun.servlet.JRunSE.getServletReference(../servlet/JRunSE.java:1705)
> > > at
> > > allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1231)
> > > at
> > >
> >
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis
> > > patcher.java:89)
> > > at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
> > > at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
> > > at
> > >
allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
> > > at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
> > > at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
> > > at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)
> > >
> > >
> > > We have all of the Jar files execpt the cocoon Jar in the Server/lib
> > > directory.  Everything else appears to be working fine, however the
> > logging
> > > is being directed to the JRun default logs as opposed to the
WEB-INF/logs
> 

Re: Cocoon Logging Issue...

2001-12-19 Thread Roger I Martin PhD

Hi,

I see an earlier posting Sylvain Wallez

Quote
{
Hi team,

Cocoon can't start when using the avalon jars that were recently
updated. I've got the following exception at context startup (Tomcat
output) :

Starting service Tomcat-Standalone
Apache Tomcat/4.0
Logging Error: Could not set up Cocoon Logger, will use screen instead
...

I couldn't find any explanation for this, neither in CocoonServlet nor
in Configuration. And switching back to
avalon-framework/excalibur-4.0.jar solves the problem.

Any clue, someone ?

--
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com
}//Unquote

I am experiencing the same problem.  Currently I am trying earlier avalon
builds but nothing is a fix yet.

Anyone else with this problem?

Roger

- Original Message -
From: "SANSONE, AARON M [Non-Pharmacia/1000]" <[EMAIL PROTECTED]>
To: "Cocoon-Users (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, December 13, 2001 3:01 PM
Subject: Cocoon Logging Issue...


> All,
>
> We are running C2 on JRun and seeing the following error:
>
> Logging Error: Could not set up Cocoon Logger, will use screen instead
> org.apache.avalon.framework.configuration.ConfigurationException: cannot
> find LogTargetFactory class org.apache.cocoon.util.log.CocoonTargetFactory
> at
>
org.apache.avalon.excalibur.logger.DefaultLogTargetFactoryManager.configure(
> Unknown Source)
> at
>
org.apache.avalon.excalibur.logger.DefaultLogKitManager.setupTargetFactoryMa
> nager(Unknown Source)
> at
> org.apache.avalon.excalibur.logger.DefaultLogKitManager.configure(Unknown
> Source)
> at
> org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:435)
> at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:132)
> at
>
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JRunSe
> rvletLoader.java:203)
> at
>
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JRunSe
> rvletLoader.java:161)
> at
>
allaire.jrun.servlet.JRunServletLoader.loadServlet(../servlet/JRunServletLoa
> der.java:149)
> at
>
allaire.jrun.servlet.JRunSE.getServletReference(../servlet/JRunSE.java:1705)
> at
> allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1231)
> at
>
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis
> patcher.java:89)
> at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
> at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
> at
> allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
> at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
> at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
> at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)
>
>
> We have all of the Jar files execpt the cocoon Jar in the Server/lib
> directory.  Everything else appears to be working fine, however the
logging
> is being directed to the JRun default logs as opposed to the WEB-INF/logs
> directory that I have specified with the logkit.xconf.
>
> Has anyone else experienced this error?
>
>
> Aaron M. Sansone
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>



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

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




Help - Applying Cocoon2 for equipment remote monitoring

2001-12-17 Thread Roger I Martin PhD

Would anyone recommend using Cocoon to transfer and render data from
server-side connections to stand-alone applications automatically running
equipment for monitoring and administration purposes?  Does the framework
have functionality to connect with a local port on the server  and keep the
connection open for multiple transfers and rendering?  Similar to pooling
for database connections, but instead pooling the socket connection for
mulitple requests for current data in memory from another server-side
application.  Some data I can put into a database and use esql in xsp but
there is a need to check on data inside the running application which is
aquiring data from external hardware devices.  The purpose of looking at the
data inside the running application instead of just the database is to
determine if the application is processing data correctly and observe
intermediate data (Intermediate data is data either too large or there is no
reason to store in a database).

We are looking for a remote solution because the equipment is running inside
a environmental clean room.  We have done it with stand-alone-client/server
sockets but are now wanting to use a browser interface published from a
Cocoon-like framework.

Roger





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

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




esql logicsheet get-column-name column=?

2001-10-25 Thread Roger I Martin PhD



Hello,
 
I am new to Cocoon. Using version 2.
 
I am trying to use the esql:get-column-name 
template and am having difficulty supplying the numerical index.
 

 
causes
 
java.lang.NumberFormatException: sun.tools.javac.Main has been 
deprecated.
 
Also I want to supply an index variable like
 

for(int 
_esql_i=1;_esql_i<=;_esql_i++)
{
  
    
  
    
  
    
  
}

 
How?
 
Thanks.  I want to get my stuff going and also want to build some 
examples to put with the http://xml.apache.org/cocoon2/logicsheet-esql.html page.
 
Roger


The requested resource (/welcome) is not available

2001-08-29 Thread Roger I Martin PhD



when accessing cocoon at
 
http://localhost:8080/cocoon
 
using tomcat 4.0 build 8 and Cocoon-2.0b2 on 
Windows 2000, I get 
 
HTTP Status 404 - /welcome The requested resource (/welcome) is not 
available. 
 
However 
 
http://localhost:8080/cocoon/xsp/simple works and yields the "A Simple XSP Page" page.
 
Any ideas?
 
Roger