Re: J2EE Datasources

2002-06-27 Thread Russell Castagnaro

Hello Joshua,

You might try looking up:

myhms-datasource

or
jdbc/myhms-datasource

instead of

jdbc/MysqlDS


The documentation from Orion should help you on this.  I know I did
the same thing using weblogic, but it took a couple of tries to get it
to work.

Also keep in mind that datasources can be webapp specific, so if you
haven't set up a datasource in the webapp itself, you'll never find it
using the java:comp/env/jdbc/.


I'd also recommend making getting a list of the names of all of the
objects in your JNDI tree for future reference (after reading the
Orion docs) :)

Here's some code to help:

package com.synctank.labs.jndi;

import javax.naming.*;

public class JNDILister {
public static void main(String _arg[]){
Object o = null;  InitialContext ctx= null;
String start = foo.bar;
if (_arg.length  0) start = _arg[0];
try{
ctx = getInitialContext();
Context c = (Context)ctx.lookup(start);
list(c);

} catch (ClassCastException e) {
System.out.println(Found a +o.getClass().getName() +: 
+o.toString() );
} catch (NamingException ne) {
System.out.println(We have a problem!);
ne.printStackTrace();
} finally {
try {  ctx.close(); }catch (Exception e ) {}
}
}

public static void list(Context _ctx) 
{
StringBuffer sb = new StringBuffer();
try {
NamingEnumeration enum = _ctx.listBindings();
while (enum.hasMore()) {
javax.naming.Binding binding = 
(javax.naming.Binding)enum.next();
Object obj = (Object)binding.getObject();
if (obj instanceof Context) 
{
System.out.print(--- );
System.out.print(binding.getName());
System.out.print(.);
list((Context)obj);
} else {
String name = binding.getName();
System.out.print(LEAF: +name);// +  is + 
obj.getClass().getName()) ;

}
}
} catch (NamingException e) {
System.out.println(e);
}
}
public static InitialContext getInitialContext() throws NamingException {
// use the factory from your provider, this is an LDAP
provider
String factory = com.sun.jndi.ldap.LdapCtxFactory;
// use the url of
String url = ldap://ldap.bigfoot.com:389;;
String user = null; //the user name, if any
String password = null; // password if any;

java.util.Hashtable p = new java.util.Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, factory);
p.put(Context.PROVIDER_URL, url);

if (user != null  password != null ) {
System.out.println(user:  + user);
p.put(Context.SECURITY_PRINCIPAL, user);
p.put(Context.SECURITY_CREDENTIALS, password);
}

return new InitialContext(p);
}


}

Thursday, June 27, 2002, 9:00:44 AM, you wrote:

JM Hello,

JM I'd like to know if anyone is using J2EE defined
JM datasources in Cocoon? 
JM I'm trying unsucessfully to connect to a MySQL
JM database using the Orion J2EE server. I've defined a
JM datasource in Orion:

JM data-source 
JM name=Mysql 
JM class=com.evermind.sql.DriverManagerDataSource
JM schema=database-schemas/mysql.xml 
JM location=jdbc/MysqlDS 
JM xa-location=jdbc/xa/MysqlXADS 
JM ejb-location=jdbc/MysqlDS 
JM connection-driver=org.gjt.mm.mysql.Driver 
JM username=root 
JM password= 
JM url=jdbc:mysql://localhost/myhms 
JM inactivity-timeout=30 
JM /

JM I can get a javax.sql.DataSource using the following
JM code from within a custom class called by a custom
JM Transformer:

JM DataSource ds = (DataSource) new
JM InitialContext().lookup(jdbc/MysqlDS);


JM I then defined this datasource in cocoon.xconf:

JM j2ee name=myhms-datasource
JM   dbnameMysqlDS/dbname
JM /j2ee





-- 
Best regards,
 Russellmailto:[EMAIL 

Re[2]: Does anyone remember cocoon 1.8?

2002-06-27 Thread Russell Castagnaro

Hello Paul,

I love cocoon 1.82 and still use it in production systems.  It was
incredibly simple and flexible.

the error you are getting was pretty standard.  you need to I found
the easiest way to deal with it was to change the resource url to a
file or http

resource://org/apache/cocoon/processor/xsp/library/java/util.xsl

should be
http://localhost/cocoon/src/org/apache/cocoon/processor 

I have cocoon set up as a web app, but you can just stick the source
somewhere on your server and link to that directly.


Good Luck, and don't believe that Cocoon 2 is the same product.

Thursday, June 27, 2002, 8:35:34 AM, you wrote:

PG Marty,

PG Yes I have just started with 1.8 for a production project.. not had time 
PG to look yet but get the same
PG error - I was using the 1.8.2 from the default SuSE 8 install but this 
PG gave the above error.

PG So I have downloaded the 1.8.2 lastest, build it and ran that under 
PG tomcat - now get:

PG http://om2.oyap.net/Cocoon.xml

PG or


PG   Not Found

PG The requested URL /Cocoon.xml was not found on this server.


PG http://om2.oyap.net/cocoon/samples/index.xml

PG WORKING NOW ... BUT HOW?? was not a day or so ago :) must be a cache 
PG reload issue.

PG Have not had the time to look at the other bits.. maybe weekend.

PG But to get that far I did nothing but do a build.sh!

PG Paul



PG Marty McClelland wrote:

I haven't installed 1.8 in a while - and from my memory - this looks like
the kind of error I got when I didn't follow the installation instructions
carefully ( i.e. jars not in the right directory, or not loaded in the
appropriate sequence,  )

Have you searched the archives?

marty
- Original Message -
From: Paul Gilligan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 24, 2002 11:02 AM
Subject: Does anyone remember cocoon 1.8?


  

I have switched to an out of the box cocoon 1,8 that coomes with SuSE


8.0
  

and I get:

java.lang.RuntimeException: Error loading logicsheet at
resource://org/apache/cocoon/processor/xsp/library/java/util.xsl due to
java.lang.Exception: Resource not found or retrieving error.

Now I am sure that this is a std problem and someone can tell me how to
sort this out without me
having to dig too deep :)

What I am working on is using the new Oracle 9.2 XML repository and a
standard cocoon production version (1.8)
and the JDK 1.3 that comes with it -hence I do not want to have todo too
much work on the cocoon side.

Then I will be adapting the docbook DTD to work with Oracle and then use
cocoon to publish.

Now here is the crunch!! I can easily do a little programming to with
Oracle to make a content management
frame work :)

Has any one else looked at Oracle 9.2 XML?

Paul






-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html

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

  





-- 
Best regards,
 Russellmailto:[EMAIL PROTECTED]


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

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




Re[2]: clob-esql-xml

2002-04-26 Thread Russell Castagnaro

Aloha,

I added clob support to the esql stylesheet, but don't know if anyone
added it to the release.  I've attached it to this message, this
allows you to use get-xml with clobs.



Thursday, April 25, 2002, 8:34:56 AM, you wrote:

SS The only tag that supports clobs is esql:get-ascii/.  Try this:

SS util:include-exprutil:expresql:get-ascii
column=myclob//util:expr/util:include-expr

SS Steve

SS -Original Message-
SS From: yuryx [mailto:[EMAIL PROTECTED]]
SS Sent: Thursday, April 25, 2002 12:03 PM
SS To: [EMAIL PROTECTED]
SS Subject: Re: clob-esql-xml


SS yuryx wrote:

 Steven Sedlmeyer wrote:

 try esql:get-ascii column=myclob/

 Steve

 Thx, but I need XML,not ascii...
 Yury

SS esql:get-xml / don't work with CLOB
SS if use VARCHAR then it work very good...
SS May be esql:get-xml / don't support CLOB?
SS Yury.


 -Original Message-
 From: yuryx [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 25, 2002 1:46 AM
 To: [EMAIL PROTECTED]
 Subject: clob-esql-xml


 Hi all!
 How to extract clob column as xml into dynamic page?
 For example:
 my CLOB: h1hello!/h1
 in sample.xsp I define:
 ...
 esql:execute-query
 esql:queryselect myclob from mytable/esql:query
 esql:results
 esql:row-results
esql:get-xml column=myclob/
 /esql:row-results
 /esql:results
 /esql:execute-query
 ...
 ?This example don't work :(
 What I'm wrong?
 Thanx.
 Yury.




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





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

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

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

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



-- 
Mahalo,
 Russellmailto:[EMAIL PROTECTED]
Distinguished Engineer

I know how hard it is for you to put food on your family.
-Our President 

?xml version=1.0?
!-- $Id: esql.xsl,v 1.3 2002/03/28 03:43:46 russell Exp $--
!--

 
   The Apache Software License, Version 1.2
 

 Copyright (C) @year@ The Apache Software Foundation. All rights reserved.

 Redistribution and use in source and binary forms, with or without modifica-
 tion, are permitted provided that the following conditions are met:

 1. Redistributions of  source code must  retain the above copyright  notice,
this list of conditions and the following disclaimer.

 2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

 3. The end-user documentation included with the redistribution, if any, must
include  the following  acknowledgment:  This product includes  software
developed  by the  Apache Software Foundation  (http://www.apache.org/).
Alternately, this  acknowledgment may  appear in the software itself,  if
and wherever such third-party acknowledgments normally appear.

 4. The names Cocoon and  Apache Software Foundation  must not be used to
endorse  or promote  products derived  from this  software without  prior
written permission. For written permission, please contact
[EMAIL PROTECTED]

 5. Products  derived from this software may not  be called Apache, nor may
Apache appear  in their name,  without prior written permission  of the
Apache Software Foundation.

 THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 FITNESS  FOR A PARTICULAR  PURPOSE ARE  

Re[2]: Cocoon 1.82 + CLOBs + Oracle + esql

2002-04-07 Thread Russell Castagnaro

Hello Andreas,

We are using the Oracle CLOBs because we can also use Oracle Text
(Intermedia) to do xpath type searches in the XML data it contains.
However, I can absolutely see a benefit to compressing the data in
many cases.

Open Source WOO WOO!


Thursday, April 4, 2002, 10:58:22 PM, you wrote:


AK Hi Russell ,

   I've had a hell of a time getting cocoon 1.82 and the esql taglib to
   pull XML data stored in CLOB fields from Oracle 8.1.7 (using the
   thin Oracle driver)
 
   I decided to fix it, and happily all I had to do was add a few things
   to the esql.xsl file under src.
AK thank you for your effort ! 
AK Ja, I truely need *LOB-Support. Thank you !

AK Furthermore I have to zip the XML data, there is giant redundancy in it ...
AK If I'll succeed, I going to give it back.

AK Does anyone uses the LONGVARBINARY type ? I would prefer it because of the lack of
AK transactionality with *LOB types.


AK Greetings from Germany

AK Andreas Kuehne

AK __
AK Do You Yahoo!?
AK Yahoo! Tax Center - online filing with TurboTax
AK http://taxes.yahoo.com/

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

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



-- 
Best regards,
 Russellmailto:[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]




Cocoon 1.82 + CLOBs + Oracle + esql

2002-04-04 Thread Russell Castagnaro

Aloha cocoon-users,

  I've had a hell of a time getting cocoon 1.82 and the esql taglib to
  pull XML data stored in CLOB fields from Oracle 8.1.7 (using the
  thin Oracle driver)

  I decided to fix it, and happily all I had to do was add a few things
  to the esql.xsl file under src.


  In the event anyone needs this (and in hopes that maybe the existing
  1.82 release download might be changed to include this, since Cocoon
  2 is all the craze now) I've attached the esql.xsl file to this
  email.


  If Cocoon 2 needs this support, its easy enough to put it in.

  Why do I use 1.82 instead of the newer version?  It comes down to
  simplicity.  We have existing J2EE applications (many webapps) that
  really benefit from the xml generation and transformation
  capabilities in cocoon, but C2 is an entire framework, that as far
  as I can see, is much more difficult to integrate with an existing
  application (Using jsp, servlets, ejbs and jms).

  Of course, if anyone has examples of C2 working well with a pretty
  extensive webapp, I'd LOVE to be proven wrong.


-- 
Mahalo,
 Russell  mailto:[EMAIL PROTECTED]
Distinguished Engineer

I'm hopeful. I know there is a lot of ambition in Washington,
obviously. But I hope the ambitious realize that they are more likely
to succeed with success as opposed to failure.

- George W. Bush

?xml version=1.0?
!-- $Id: esql.xsl,v 1.3 2002/03/28 03:43:46 russell Exp $--
!--

 
   The Apache Software License, Version 1.2
 

 Copyright (C) @year@ The Apache Software Foundation. All rights reserved.

 Redistribution and use in source and binary forms, with or without modifica-
 tion, are permitted provided that the following conditions are met:

 1. Redistributions of  source code must  retain the above copyright  notice,
this list of conditions and the following disclaimer.

 2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

 3. The end-user documentation included with the redistribution, if any, must
include  the following  acknowledgment:  This product includes  software
developed  by the  Apache Software Foundation  (http://www.apache.org/).
Alternately, this  acknowledgment may  appear in the software itself,  if
and wherever such third-party acknowledgments normally appear.

 4. The names Cocoon and  Apache Software Foundation  must not be used to
endorse  or promote  products derived  from this  software without  prior
written permission. For written permission, please contact
[EMAIL PROTECTED]

 5. Products  derived from this software may not  be called Apache, nor may
Apache appear  in their name,  without prior written permission  of the
Apache Software Foundation.

 THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
 APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,
 INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-
 DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS
 OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON
 ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
 (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

 This software  consists of voluntary contributions made  by many individuals
 on  behalf of the Apache Software  Foundation and was  originally created by
 Stefano Mazzocchi  [EMAIL PROTECTED]. For more  information on the Apache
 Software Foundation, please see http://www.apache.org/.

--

xsl:stylesheet version=1.0
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xmlns:xsp=http://www.apache.org/1999/XSP/Core;
  xmlns:esql=http://apache.org/cocoon/SQL/v2;
  xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1;

!--
--

xsl:param name=XSP-ENVIRONMENT/
xsl:param name=XSP-VERSION/
xsl:param name=filename/
xsl:param name=language/

xsl:variable name=cocoon1-environmentCocoon 1/xsl:variable
xsl:variable name=cocoon2-environmentCocoon 2/xsl:variable

xsl:variable name=cocoon1-xsp-namespace-urihttp://www.apache.org/1999/XSP/Core/xsl:variable
xsl:variable name=cocoon2-xsp-namespace-urihttp://apache.org/xsp/xsl:variable

xsl:variable name=environment
  xsl:choose
xsl:when test=starts-with($XSP-ENVIRONMENT,$cocoon1-environment)
  xsl:textcocoon1/xsl:text
/xsl:when
xsl:when 

Re[2]: Cocoon 1.8.2

2002-04-03 Thread Russell Castagnaro

Aloha Matus,

Weird it worked for me.   However I switched to resin about two months
ago.

I DO remember problems with the 'param-value/cocoon.properties/param-value'

Entry.  I think I had to change it to 'WEB-INF/coocoon.properties'  or
something like that.  You might also tru an absolute url if that
fails.

-rrc

Friday, March 29, 2002, 5:15:09 PM, you wrote:

MM I use C1.8.2 with tomcat 3.2 - i've never been able to get C1.8.2 to work with 
tomcat 4 - marty
MM   - Original Message - 
MM   From: Matus KrisztiƔn 
MM   To: [EMAIL PROTECTED] 
MM   Sent: Thursday, March 28, 2002 10:51 AM
MM   Subject: Cocoon 1.8.2


MM   *** Sender : Matus KrisztiƔn [EMAIL PROTECTED] ***

MM   Hello,



MM   I'm in need of your help. My problem with Cocoon is that I can't breath it
MM   to life. I've made a build with version 1.8.2 and put the JARs under
MM   tomcat4.0.1/lib.

MM   I've copied cocoon-1.8.2/samples to tomcat4.0.1/webapps/samples.
MM   After I've copied cocoon.properties to tomcat4.0.1/webapps/samples and made 
modifications to tomcat4.0.1/webapps/samples/web.xml:

MM   servlet
MM   servlet-nameorg.apache.cocoon.Cocoon/servlet-name
MM   servlet-classorg.apache.cocoon.Cocoon/servlet-class
MM   init-param
MM   param-nameproperties/param-name
MM   param-value/cocoon.properties/param-value
MM   /init-param
MM   /servlet
MM   servlet-mapping
MM   servlet-nameorg.apache.cocoon.Cocoon/servlet-name
MM   url-pattern*.xml/url-pattern
MM   /servlet-mapping



MM   I'm receiving the following message with URL
MM   http://localhost.8080/samples/index.xml 

MMPublishing Engine could not be 
initialized.

MM java.lang.RuntimeException: Error loading logicsheet at 
resource://org/apache/cocoon/processor/xsp/library/java/util.xsl due to 
java.lang.Exception: Resource not found or retrieving error.
MM at 
org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:302)
MM at org.apache.cocoon.framework.Manager.create(Manager.java:109)
MM at org.apache.cocoon.framework.Router.init(Router.java:80)
MM at org.apache.cocoon.framework.Manager.create(Manager.java:109)
MM at org.apache.cocoon.Engine.init(Engine.java:179)
MM at org.apache.cocoon.Engine.getInstance(Engine.java:232)
MM at org.apache.cocoon.Cocoon.init(Cocoon.java:157)
MM at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
MM at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
MM at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
MM at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
MM at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
MM at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
MM at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
MM at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
MM at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
MM at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
MM at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
MM at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
MM at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
MM at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
MM at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
MM at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
MM at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
MM at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
MM at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
MM at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
MM at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
MM at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
MM at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
MM at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
MM at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
MM at 

esql in a logicsheet problem

2002-03-12 Thread Russell Castagnaro

Aloha Cocooners,


I'm having a problem using esql in a logic sheet.  Please keep in mind
I'm using Cocoon 1.82 so cocoon 2.x solutions won't help :(


Here's the logicsheet

?xml version=1.0?
xsl:stylesheet
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:xsp=http://www.apache.org/1999/XSP/Core;
xmlns:esql=http://apache.org/cocoon/SQL/v2;
xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1;
xmlns:fourc=http://foo.4charity.com/fourc;
version=1.0
!-- This template copies the root elements for processing by --
!-- other logicsheets as necessary. Also, various class-level --
!-- code and package imports may be done here. --
xsl:template match=xsp:page
xsl:copy
xsl:apply-templates select=@*/
xsl:apply-templates/
/xsl:copy
/xsl:template
!-- This template defines the tag greeting:hello-world --
xsl:template match=fourc:test
!-- more complex XSLT is possible here as well --
xsp:logic
String msg = Poop Really Smells!;
/xsp:logic
greetingxsp:exprmsg/xsp:expr/greeting
/xsl:template


xsl:template match=fourc:categories1
xsp:logic
CategoriesThis Worked/Categories
/xsp:logic
/xsl:template


xsl:template match=fourc:categories
!-- more complex XSLT is possible here as well --
xsp:logic
xsp:content   !-- I've tried not using the content tags too--
Categories
esql:connection
esql:pooldefault/esql:pool
esql:execute-query
esql:queryselect * from AWARD_CATEGORY/esql:query
esql:results
esql:row-results
Category
CATEGORY_ID
esql:get-int 
column=CATEGORY_ID/
/CATEGORY_ID
DESCRIPTION
esql:get-string 
column=DESCRIPTION/
/DESCRIPTION
/Category
/esql:row-results
esql:no-results
userNo Results/user
/esql:no-results
/esql:results
/esql:execute-query
/esql:connection
/Categories
/xsp:content
/xsp:logic
/xsl:template

xsl:template match=@*|node() priority=-1
xsl:copy
xsl:apply-templates select=@*|node()/
/xsl:copy
/xsl:template
/xsl:stylesheet

-

both fourc:test/ and fourc:categories1/  work fine, however
fourc:categories/  just returns the raw esql xml and never hits the
database.


Any ideas out there??

---

here's the xml

?xml version=1.0?
?cocoon-process type=xsp?
?xml-logicsheet href=logicsheet.categories.xsl?
xsp:page xmlns:xsp=http://www.apache.org/1999/XSP/Core;
xmlns:fourc=http://foo.4charity.com/fourc;
page  
fourc:categories/
/page
/xsp:page




Also a WORKING XML file that does the same query as I want to do in
the logicsheet.

?xml version=1.0?
?cocoon-process type=xsp?
xsp:page xmlns:xsp=http://www.apache.org/1999/XSP/Core; 
xmlns:esql=http://apache.org/cocoon/SQL/v2;
Categories
esql:connection
esql:pooldefault/esql:pool
esql:execute-query
esql:queryselect * from AWARD_CATEGORY/esql:query
esql:results
esql:row-results
Category
CATEGORY_ID
esql:get-int 
column=CATEGORY_ID/
/CATEGORY_ID
DESCRIPTION
esql:get-string 
column=DESCRIPTION/
/DESCRIPTION
/Category
/esql:row-results
esql:no-results
userNo Results/user
/esql:no-results
/esql:results
/esql:execute-query
/esql:connection
/Categories
/xsp:page

HELP!!!

Mahalo!


Sunday, March 10, 2002, 11:17:25 PM, you wrote:

SB Yes I taje a look at this address. I 

Re: Help! Cocoon 2: Problem with connection to remote Oracle DB

2001-10-22 Thread Russell Castagnaro

Hello Victor,

The url you are using is wrong!

try:

jdbc:oracle:thin:@server.his.de:1521:mydb


;)

Monday, October 22, 2001, 6:00:38 AM, you wrote:

SV Hello friends!

SV I use Tomcat 4.0.1, Cocoon 2 on Linux (SuSe 7) and try to get a
SV connection to Oracle 8.1.6 DB, which is located on another server. SuSe
SV server has no Oracle-Client installed.
SV I've made the folllowing entries in configuration files:
SV In cocoon.xconf:

SV datasources
SV jdbc name=ConnectionName
SV   pool-controller min=5 max=10  oradb=true/
SV   dburloracle:jdbc:thin:@server.his.de:1521:mydb/dburl
SV   useradmin/user
SV   passwordpass/password
SV /jdbc
SV   /datasources

SV in web.xml:

SV   init-param
SV   param-nameload-class/param-name
SV   param-value
  
SV !-- For Oracle Database: --
SV oracle.jdbc.driver.OracleDriver

SV   /param-value
SV /init-param

SV I have renamed the Oracle-Driver zip file classes12.jar and put it in
SV WEB-INF/lib folder.

SV And I get the following message in cocoon.log file:

SV org.apache.avalon.excalibur.datasource.JdbcConnection: could not be
SV instantiated.
SV java.sql.SQLException: No suitable driver
SV at java.sql.DriverManager.getConnection(DriverManager.java:537)
SV at java.sql.DriverManager.getConnection(DriverManager.java:177)
SV at
SV org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance
SV (Unknown Source)
SV at
SV org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown
SV Source)
SV at
SV org.apache.avalon.excalibur.pool.HardResourceLimitingPool.newPoolable(Un
SV known Source)
SV at
SV org.apache.avalon.excalibur.datasource.JdbcConnectionPool.newPoolable(Un
SV known Source)
SV at
SV org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown
SV Source)
SV at
SV org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(Unknown
SV Source)
SV at
SV org.apache.avalon.excalibur.datasource.JdbcConnectionPool.run(Unknown
SV Source)
SV at java.lang.Thread.run(Thread.java:484)

SV I tried the connection also with Java-Application on the same server and
SV it runs!
SV I don't know what else I must do. Has anyone already experienced this or
SV has any idea or suggestions?
SV I would be very grateful for your help!

SV Regards,
SV Viktor Skladovs
SV mailto:[EMAIL PROTECTED]




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

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



-- 
Best regards,
 Russellmailto:[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[2]: C2.0: connection pool/ datasource problem [interbase]

2001-10-19 Thread Russell Castagnaro

Hello Mark,

Mine did start working when I changed the classes12.zip file to
classes12.jar.  I guess the class loader only loads jars.

Have you confirmed the the url works and the Driver class is loaded?

Try an XSP page that loads the driver explicitly to confirm...

Friday, October 19, 2001, 6:41:16 AM, you wrote:

MSK I'm having a similar problem with pooling setup for Interbase.  I've used
MSK the Cocoon2 sample for ESQL to edit my page, sitemap, etc. but it still
MSK won't work.

MSK I've defined the datasource cl (that's C and L -- not C and ONE) and in
MSK cocoon.xconf as:
MSK   datasources
MSK jdbc name=cl
MSK   pool-controller min=5 max=10/

MSK dburljdbc:interbase://localhost/d:/www/interbase/data/dev01.gdb/dburl
MSK   useruser/user
MSK   passwordpass/password
MSK /jdbc
MSK   /datasources

MSK and left the default cocoon2 datasource of personnel (so the C2 samples
MSK still work):
MSK   datasources
MSK jdbc name=personnel
MSK   pool-controller min=5 max=10/
MSK   dburljdbc:hsqldb:hsql://localhost:9002/dburl
MSK   usersa/user
MSK   password/password
MSK /jdbc
MSK   /datasources

MSK In my XSP page I have:
MSK ?xml version=1.0 encoding=ISO-8859-1?
MSK xsp:page
MSK language=java
MSK xmlns:xsp=http://apache.org/xsp;
MSK xmlns:esql=http://apache.org/cocoon/SQL/v2;

MSK page
MSK pagetitleEmployees Working Report/pagetitle
MSK esql:connection
MSK esql:poolcl/esql:pool
MSK esql:execute-query
MSK esql:queryselect * from employee/esql:query
MSK esql:results
MSK esql:row-results
MSK employee
MSK lastnameesql:get-string
column=last_name//lastname
MSK firstnameesql:get-string
MSK column=first_name//firstname
MSK empidesql:get-string
MSK column=employee_id//empid
MSK esql:no-results
MSK userNo one is working/user
MSK /esql:no-results
MSK /employee
MSK /esql:row-results
MSK /esql:results
MSK   /esql:execute-query
MSK /esql:connection
MSK /page
MSK /xsp:page

MSK I am getting this error in my cocoon.log file when my XSP page tries to use
MSK the pool:
MSK ExcaliburComponentSelector: datasources: ComponentSelector could not find
MSK the component for hint: cl
MSK working4_xsp: Could not get the datasource
MSK org.apache.avalon.framework.component.ComponentException: datasources:
MSK ComponentSelector could not find the component for hint: cl

MSK If I change the XSP page to use these lines in place of the esql:pool
MSK lines, it works:
MSK esql:driverinterbase.interclient.Driver/esql:driver

MSK esql:dburljdbc:interbase://localhost/d:/www/interbase/data/dev01.gdb/esql
:dburl
MSK esql:usernameuser/esql:username
MSK esql:passwordpass/esql:password

MSK Russell, did you get yours to work?

MSK Thanks!
MSK Mark

MSK -Original Message-
MSK From: Russell Castagnaro [mailto:[EMAIL PROTECTED]]
MSK Sent: Tuesday, October 16, 2001 12:21 PM
MSK To: [EMAIL PROTECTED]
MSK Subject: C2.0: connection pool/ datasource problem


MSK Aloha folks,

MSK I'm having a strange problem with C2 for All db connections

MSK I've tried using mysql and oracle and they both have the same
MSK problem..

MSK I'm preloading the driver classes and I've tested my db connections.
MSK The error I get when using the esql taglib is:

MSK org.apache.cocoon.ProcessingException: Exception in
MSK ServerPagesGenerator.generate():
MSK java.lang.RuntimeException: Could not get the datasource
MSK java.sql.SQLException:
MSK There are no connections in the pool, check your settings.
MSK at
MSK org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera
MSK tor.java:187)
MSK at
MSK org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
MSK entPipeline.java:214)
MSK at
MSK org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
MSK treamPipeline.java:364)
MSK at
MSK org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40043E(sitemap_xmap.java:57
MSK 40)
MSK at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2593)
MSK at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2205)
MSK at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)

MSK Why wouldn't any connections be available?

MSK I'm using:

MSK   datasources
MSK jdbc name=fun
MSK   pool-controller min=5 max=10 oradb=true/
MSK   dburljdbc:oracle:thin:@localhost:1521:ORCL/dburl
MSK   userscott/user
MSK   passwordtiger/password
MSK /jdbc

MSK and
MSK ?xml version=1.0 encoding=ISO-8859-1?

MSK xsp:page
MSK   language=java
MSK   xmlns:xsp=http://apache.org/xsp;
MSK   xmlns:esql=http://apache.org/cocoon/SQL/v2;


MSK   page
MSKtitleA Database Driven XSP Page/title
MSKcontent

MSK

Re[2]: [C2] Accessing CLOBs as Documents

2001-10-19 Thread Russell Castagnaro

Hello Marty,

Hmm.. So ar you saying that if my clobs didn't have the ?xml
version=1.0 encoding=UTF-8?  then get-xml would work?

When I tried:
   esql:get-xml column=doc_content/
It didn't work, but perhaps that is because it is a document.
Thursday, October 18, 2001, 7:13:50 AM, you wrote:

MM I have a similar application - but the clob is an xml fragment ( meaning
MM it doesn't have processing instruction tags ).  So I can use get-xml
MM instead of the get-ascii you use.  Then I can access data in the xml
MM fragment with the XSL stylesheet.

MM marty

 -Original Message-
 From: Russell Castagnaro [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 18, 2001 12:48 PM
 To: [EMAIL PROTECTED]
 Subject: [C2] Accessing CLOBs as Documents
 
 
 Hello cocoon-users,
 
   I've got a problem.
 
   I have a table that has a few fields and a clob in it.  I want to
   use the esql taglibs or SQLTransfromer to access this as a document.
   The column 'doc_content' is
 
   currently I'm using xml like this:
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 xsp:page
   language=java
   xmlns:xsp=http://apache.org/xsp;
   xmlns:esql=http://apache.org/cocoon/SQL/v2;
 
 
   page
titleA Database XML DOC Page/title
content
 
 esql:connection
  esql:poolfun/esql:pool
  esql:execute-query
esql:querySelect * from XML_DOC where doc_id in 
 (select max(doc_id) from xml_doc) /esql:query
esql:results 
  esql:row-results
 doc_idesql:get-string column=doc_id//doc_id
 
doc_contentesql:get-ascii 
 column=doc_content//doc_content
esql:get-columns/
  /esql:row-results
/esql:results
  /esql:execute-query
/esql:connection
 
/content
   /page
 /xsp:page
 
 
 the 'doc_content' field'  is returned escaped out:
 doc_contentlt;?xml version=1.0?gt;
 lt;Page name=Direct Donationgt;  
 lt;DefaultRootgt;/templates/seattletimes/lt;/DefaultRootgt;  
 lt;Content-Listgt;  
 lt;Content type=include 
 handleError=falsegt;header.jsplt;/Contentgt;  
 lt;MainContent type=include 
 handleError=truegt;donation2.jsplt;/MainContentgt;  
 lt;Content type=include 
 handleError=falsegt;footer.jsplt;/Contentgt;  
 lt;/Content-Listgt;  
 lt;Errorgt;error2.jsplt;/Errorgt;  
 lt;/Pagegt;/doc_content
 
 
 
 Is there any way to have this content integrated into the document?
 
 
 Thanks,
 rrc
 
 -- 
 Best regards,
  Russell  mailto:[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]
 
 

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

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




-- 
Best regards,
 Russellmailto:[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]




[C2] Accessing CLOBs as Documents

2001-10-18 Thread Russell Castagnaro

Hello cocoon-users,

  I've got a problem.

  I have a table that has a few fields and a clob in it.  I want to
  use the esql taglibs or SQLTransfromer to access this as a document.
  The column 'doc_content' is

  currently I'm using xml like this:

?xml version=1.0 encoding=ISO-8859-1?

xsp:page
  language=java
  xmlns:xsp=http://apache.org/xsp;
  xmlns:esql=http://apache.org/cocoon/SQL/v2;


  page
   titleA Database XML DOC Page/title
   content

esql:connection
 esql:poolfun/esql:pool
 esql:execute-query
   esql:querySelect * from XML_DOC where doc_id in (select max(doc_id) from 
xml_doc) /esql:query
   esql:results 
 esql:row-results
doc_idesql:get-string column=doc_id//doc_id

   doc_contentesql:get-ascii column=doc_content//doc_content
   esql:get-columns/
 /esql:row-results
   /esql:results
 /esql:execute-query
   /esql:connection

   /content
  /page
/xsp:page


the 'doc_content' field'  is returned escaped out:
doc_contentlt;?xml version=1.0?gt;
lt;Page name=Direct Donationgt;  
lt;DefaultRootgt;/templates/seattletimes/lt;/DefaultRootgt;  
lt;Content-Listgt;  
lt;Content type=include handleError=falsegt;header.jsplt;/Contentgt;  
lt;MainContent type=include handleError=truegt;donation2.jsplt;/MainContentgt; 
 
lt;Content type=include handleError=falsegt;footer.jsplt;/Contentgt;  
lt;/Content-Listgt;  
lt;Errorgt;error2.jsplt;/Errorgt;  
lt;/Pagegt;/doc_content



Is there any way to have this content integrated into the document?


Thanks,
rrc

-- 
Best regards,
 Russell  mailto:[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]




[C2] standalone example?

2001-10-04 Thread Russell Castagnaro

Aloha cocoon-users,

  I'm trying to find an example of using C2 standalone.  I actually
  want to use it in an EJB, but first things first.  I've looked at
  the environment package, which seems to have the classes all set up
  to make it happen.  If somebody could just give me a simple example
  that did this, I think I'd be fine from there.

  Much Appreciated

-- 
Mahalo,
 Russell  mailto:[EMAIL PROTECTED]
Chief Mentor

4Charity - Changing the world,
 one click at a time.


-
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: ide recommendations?

2001-10-02 Thread Russell Castagnaro

Hello Marty,

XMLSpy absolutely Rocks!

Tuesday, October 02, 2001, 6:54:14 AM, you wrote:

MM For the past six months I have been using notepad for writing xsp and xsl
MM pages. This works - but I miss the debugging tools of an ide.

MM Does anyone have experience with an ide that is useful in debugging xsp/xsl
MM pages?

MM marty


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

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



-- 
Best regards,
 Russellmailto:[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]




Setup coocoon2 w/ tomcat 4.0

2001-09-26 Thread Russell Castagnaro

Hello cocoon-users,

  I've been following 'the saga continues' and decided to try setting
  it up myself.

  I built the code using:
$  ./build.sh  -Dinclude.webapp.libs=yes -Dinstall.war=../jakarta-tomcat-4.0/webapps/ 
install

which worked and started tomcat

then I tried:
http://localhost:8080/cocoon/docs/samples/jsp/hello.jsp
which worked, however no .xml files get served...

http://localhost:8080/cocoon/docs/samples/hello-page.xml
returns the std error page with :

type internal-server-error

message Exception in Handler

description org.apache.cocoon.ProcessingException: Exception in Handler: 
org.apache.avalon.framework.component.ComponentException: Could not set up Component 
for hint: org\apache\cocoon\www\sitemap_xmap

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/docs/samples/hello-page.xml

exception

org.apache.cocoon.ProcessingException: Exception in Handler: 
org.apache.avalon.framework.component.ComponentException: Could not set up Component 
for hint: org\apache\cocoon\www\sitemap_xmap

path-info

docs/samples/hello-page.xml

stacktrace

org.apache.cocoon.ProcessingException: Exception in Handler: 
org.apache.avalon.framework.component.ComponentException: Could not set up Component 
for hint: org\apache\cocoon\www\sitemap_xmap
at org.apache.cocoon.sitemap.Handler.throwEventualException(Handler.java:244)
at org.apache.cocoon.sitemap.Handler.regenerate(Handler.java:155)
at org.apache.cocoon.sitemap.Manager.getHandler(Manager.java:232)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:109)
at org.apache.cocoon.Cocoon.process(Cocoon.java:495)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:534)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown 
Source)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)
org.apache.avalon.framework.component.ComponentException: Could not set up Component 
for hint: org\apache\cocoon\www\sitemap_xmap
at 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:152)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addCompiledComponent(ProgramGeneratorImpl.java:348)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:326)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:275)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:192)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:208)
at java.lang.Thread.run(Thread.java:484)


Any ideas?


PS- I'm using jdk 1.3.0_01 on win 2k


-- 
Best regards,
 Russell  mailto:[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 

Re[2]: Tomcat 4.0 final and Cocoon 2.0rc1 again...

2001-09-26 Thread Russell Castagnaro

Hello Alexander,

You are on the money! But I'm still having problems..


I compiled the LDAPTransformer and now there are no errors, but all
xml docs I attempt to call return an empty html page:
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTMLHEAD
META content=text/html; charset=windows-1252 http-equiv=Content-Type/HEAD
BODY/BODY/HTML


From cocoon.log (old error) :

java.lang.ClassNotFoundException: org.apache.cocoon.transformation.LDAPTransformer
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:46)
at 
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:218)
at 
org.apache.cocoon.www.sitemap_xmap$Configurer.configTransformers(sitemap_xmap.java:1243)
at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:827)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown 
Source)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(Unknown 
Source)
at 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:143)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addCompiledComponent(ProgramGeneratorImpl.java:348)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:183)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:208)
at java.lang.Thread.run(Thread.java:484)


Wednesday, September 26, 2001, 10:51:31 AM, you wrote:

AS I had many times the same error. Unfotunately the error message you get in
AS the browser is incomplete and does not include the actual Exception causing
AS the fault. You Look better into cocoon.log and at the bottom of exception
AS bundle
AS you'll find the answer.

AS In my case there were few classes decleared in sitemap, which are not
AS compiled
AS by default with cocoon2:

AS - org.apache.cocoon.transformation.LDAPTransformer
AS - org.apache.cocoon.matching.WildcardSessionStateMatcherFactory

AS I would be very thanksfull if experienced folks could explain what are those
AS and
AS where to look for documentations.

AS Alex.



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

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



-- 
Best regards,
 Russellmailto:[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]




Fwd: Cocoon 1.8 to cocoon 2.0 docs?

2001-09-25 Thread Russell Castagnaro


Aloha all,

Are there any docs that would help converting from cocoon 1.x to
cocoon 2.  It seems so different.




-- 
Best regards,
 Russellmailto:[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[2]: Cocoon and J2EE

2001-09-21 Thread Russell Castagnaro

Aloha Jesper,

BTW this is pretty easy with standard web containers:
something like this

security-constraint
web-resource-collection
web-resource-namecocoon/web-resource-name
descriptionFun with xslt/description
   url-pattern*.xml/url-pattern
   http-methodGET/http-method
   http-methodPOST/http-method
/web-resource-collection
auth-constraint
role-namecocoonUser/role-name
/auth-constraint
/security-constraint
login-config
auth-methodBASIC/auth-method
/login-config
security-role
role-namecocoonUser/role-name
/security-role


Monday, September 17, 2001, 1:41:15 AM, you wrote:

JR im working on exactly the same thing right now so we could share our
JR thoughts.
JR I post this to the list to get others intrested, but maybe we should keep
JR the talk of the list afterwards, it might not be in the general intrest.
JR you could email if you prefere it on or of the list, if you want.
JR Warning imnew to coocoon ans is just now setting it up and trying to
JR integrate it with our J2EE system.

JR cheers
JR Jesper
JR - May the source be with you, Linux -

JR On Fri, 14 Sep 2001, Chris  Loftus wrote:

 I'm thinking about integrating Cocoon XSP and J2EE JSPs/Servlets/EJBs. What
 experience do people have with doing this? What are the pitfalls, how easy
 is it to make XSP part of a J2EE web application so that security
 constraints are applied?

 Many thanks

 Chris


 Chris Loftus
 Training Manager
 JayDee Technology Ltd

 http://www.JayDeeTechnology.co.uk

 Minerva House
 Lower Bristol Road
 Bath, BA2 9ER
 Tel:   +44 (0)1970 832554 (Teleworking office)
 Tel:   +44 (0)1225 789255 (Bath office)
 Mobile:  +44 (0)7879 897712

 Visit PlanetJava's website http://www.PlanetJava.co.uk for a wealth of free
 Java resources



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





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

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



-- 
Mahalo,
 Russellmailto:[EMAIL PROTECTED]
Chief Mentor

4Charity - Changing the world,
 one click at a time.


-
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: Cocoon 1.8.2 with BEA WLS 5.1.0

2001-09-21 Thread Russell Castagnaro

Aloha Nachiketa,

try

weblogic.httpd.webApp.cocoon=./public_html/cocoonwar


Friday, September 21, 2001, 3:18:55 AM, you wrote:

NS Hi All,

NS I am a new user of cocoon.

NS Just today I tried installing Cocoon 1.8.2 on BEA WLS
NS 5.1.0 SP9.

NS OS: Windows NT 4.0 SP6
NS Cocoon 1.8.2
NS JDK: SUN JDK1.3.1
NS WebLogic Server 5.1.0 SP9

NS I followed the following steps during installation.

NS 1. Created a folder called cocoonwar in the
NS myserver\public_html.

NS 2. Copied the web.xml and cocoon.properties from the
NS distribution to the folder.

NS 3. Modified the web.xml file to reflect the path to
NS cocoon.properties.

NS 4. Added the following line to weblogic.properties
NS file.

NS weblogic.httpd.webApp.cocoon=cocoonwar



NS 5. Then when I restart the server the following error
NS shows up.

NS java.io.FileNotFoundException: Directory cocoonwar\
NS does not contain WEB-INF/web.xml
NS at
NS weblogic.servlet.internal.dd.DescriptorLoader.init(DescriptorLoader.java:177)
NS at
NS weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:666)
NS at
NS weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:638)
NS at
NS weblogic.t3.srvr.HttpServer.start(HttpServer.java:442)
NS at
NS weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1320)
NS at
NS weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:832)
NS at java.lang.reflect.Method.invoke(Native
NS Method)
NS at
NS weblogic.Server.startServerDynamically(Server.java:131)
NS at weblogic.Server.main(Server.java:92)
NS at weblogic.Server.main(Server.java:58)

NS Fri Sep 21 18:53:53 IST 2001:E HTTP Error creating
NS servlet context for Web application 'cocoonwar

NS I will be grateful if anyone can suggest a solution or
NS point out a mistake.

NS Thanking you,

NS With Regards,

NS Nachiketa



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

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



-- 
Mahalo,
 Russellmailto:[EMAIL PROTECTED]
Chief Mentor

4Charity - Changing the world,
 one click at a time.


-
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: Cocoon and J2EE

2001-09-20 Thread Russell Castagnaro

Aloha Chris,

I'm trying to do this now.  Its not all that easy, but not impossible.

My biggest problem is trying to use cocoon in the EJB layer when you
have no access to an http request.  Sometimes you have to create a
request-like object that can be difficult.


Friday, September 14, 2001, 4:46:52 AM, you wrote:

CL I'm thinking about integrating Cocoon XSP and J2EE JSPs/Servlets/EJBs. What 
CL experience do people have with doing this? What are the pitfalls, how easy 
CL is it to make XSP part of a J2EE web application so that security 
CL constraints are applied?

CL Many thanks

CL Chris


CL Chris Loftus
CL Training Manager
CL JayDee Technology Ltd

CL http://www.JayDeeTechnology.co.uk

CL Minerva House
CL Lower Bristol Road
CL Bath, BA2 9ER
CL Tel:   +44 (0)1970 832554 (Teleworking office)
CL Tel:   +44 (0)1225 789255 (Bath office)
CL Mobile:  +44 (0)7879 897712

CL Visit PlanetJava's website http://www.PlanetJava.co.uk for a wealth of free 
CL Java resources



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

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



-- 
Mahalo,
 Russellmailto:[EMAIL PROTECTED]
Chief Mentor

4Charity - Changing the world,
 one click at a time.


-
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: C1: Including XML/XSL in JSP pages

2001-09-20 Thread Russell Castagnaro

Aloha Mark,

try using
jsp:forward page=test.xml  /

if you need to pass addidtional parameters use:

jsp:forward page=test.xml
 jsp:param name=foo value=bar /
/jsp:forward


Friday, September 14, 2001, 9:30:15 AM, you wrote:

MSK I'd like to include an XML page request with esql query string and
MSK report type (i.e. html, pdf, csv, etc.) as a jsp:include in a current
MSK JSP page which already has my page security and other stuff.

MSK Currently, in my JSP I have:
MSK jsp:include page=test.xml flush=true /

MSK I'm getting the message:
MSK java.lang.IllegalStateException: Writer is already being used for this
MSK request

MSK which from reading previous posts relates to the OutputStream (servlet) vs.
MSK Writer (tomcat) incompatibility (only one can control the writing).

MSK My stand-alone XML file does what I want by outputting in HTML or PDF
MSK (depending
MSK on a form choice from the previous page that calls it and xsp:pi an
MSK appropriate stylesheet filename), but I have concerns  about the XML file
MSK being able to be called without any checking to ensure the website visitor
MSK is authorized to view the page (this is for an online app). Otherwise,
MSK wouldn't they be able to just put it in the URL and view it (although they
MSK would have to know what parameters to feed it to get it to work right)?

MSK The other thing is once I've committed the output type to a JSP page,
MSK can
MSK I tell the the output to be a PDV or a CSV to be downloaded?

MSK Thanks!
MSK Mark


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

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



-- 
Mahalo,
 Russellmailto:[EMAIL PROTECTED]
Chief Mentor

4Charity - Changing the world,
 one click at a time.


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