Re: quering multiple databases

2003-08-12 Thread Geoff Howard
Ian Ross wrote:
Hi
Im working on a project that is meant to extract information from three 
different
databases; each on different servers. Is this possible with cocoon? I 
have only
worked with one database before and I'm not sure if this will work.
The three databases are mysql,ingres and cache. Do you install the jdbc 
drivers the
usual way??
Any help would be greatly appreciated. Thanks in advance for your time.
Ian
Yes - very possible.  Just make sure each driver class is in your 
web.xml, each datasource is set up in cocoon.xconf, and each driver jar 
is in web.xml.

Geoff

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


Xpath limitations in 2.0rc2

2003-08-12 Thread Miguel Carvalho
Hi, i'm working under cocoon 2.0rc2 and i would like to ask if anyone knows
if this particular version has any kind of limitations or bugs wiht XPath.

I ask this question because i canĀ“t put a trasnformer in XSL to work and i'm
running out of solutions to put it to work. Ihave updated Xalan and Xerces
to the latest versions (2.5.1 and 2.5.0 respectively) but still no good.. :(

Thanks in advance
Miguel Carvalho



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



Re: conflicting batik versions in cocoon-2.1rc1 and its version offop

2003-08-12 Thread Joerg Heinicke
Carsten,

is it already to late?

Joerg

neil wrote:
Hi,
Before the final cocoon-2.1 release
is it possible to get the same version of batik used in cocoon and in its version of 
fop?
Details...
I've been trying out cocoon/fins/jfreechart/fop/batik to produce charts using scalable 
pdf drawing commands so that the charts look
good over a wide range of resolutions (e.g. screen and printer).
cocoon-2.1rc1 includes fop-0.20.5 and batik-1.5b5
but fop-0.20.5 was built with batik-1.5b4
and I think because of this I got in 
C:\jakarta-tomcat-4.1.24-LE-jdk14\logs/localhost_log.2003-08-12.txt:
- Root Cause -
java.lang.NoSuchMethodError:
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Ljava/lang/String;Ljava/io/InputStream;)Lorg/apache/batik/dom/svg/SVGO
MDocument;
at org.apache.fop.image.analyser.SVGReader.loadImage(Unknown Source)
I got it working by rebuilding fop-0.20.5 from source after replacing its 
batik-1.5b4.jar with cocoon's batik-1.5b5.jar
(for good measure I also replaced its older xerces and xalan jars with cocoon's 
versions).


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


SourceWritingTransformer error

2003-08-12 Thread Ferenc Kiraly
	Hi!

I'm trying to use the SourceWritingTransformer to generate a file,
but I consistently get the following error:
java.lang.RuntimeException: Errors in XSLT transformation:
Fatal: org.apache.cocoon.ProcessingException: Cannot get 'xml' serializer
The error occures if I specify a serializer in the sitemap or not.

Im using cocoon 2.0.5. here is the relevant snippet from my XSP:

  source:write
source:pathpage/source:path
source:sourcevolatile/my.xml/source:source
source:fragment
  content
Stuff.
  /content
/source:fragment
  /source:write


	feri.





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


FW: link livesites: Massachusetts Alliance for Families

2003-08-12 Thread Ashe, Shawn J
http://www.kidsnetmaff.org

 -Original Message-
 From: Ashe, Shawn J 
 Sent: Wednesday, August 06, 2003 8:05 AM
 To:   '[EMAIL PROTECTED]'
 Subject:  link livesites: Massachusetts Alliance for Families
 
 Provides communications and advocacy support for foster, adoptive and
 kinship parents in Massachusetts... helping to provide for the needs of
 those who work with the most vulnerable in our society: lost, neglected or
 abused children.  Cocoon 2.0.4

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



ReSend: resources in Cocoon 2.0.4

2003-08-12 Thread Gould, Troy (ELS)
First, can you even use Resources in Cocoon 2.0.4?

Does a resource have to follow the same rules of a pipeline (1 Generator, 0
or more Transformers, and 1 Serializer?  I've seen different docs saying
different things.

When making a call to a resource from inside a pipeline, is it an include to
the resource or a forward to the resource?  I've seen different docs saying
different things.

I'm also getting an error when trying to use a resource.
Resource definitions:
map:resources
map:resource name=links
map:transform
src=WEB-INF/stylesheets/uri_filter_local.xsl /
/map:resource
/map:resources

Pipeline using resource:
map:pipeline
map:match pattern=myContent/list type=wildcard
map:generate type=ListGenerator /
map:transform src=WEB-INF/stylesheets/list.xsl 
map:parameter name=use-request-parameters
value=true/
/map:transform
map:call resource=links /
map:serialize type=html /
/map:match
/map:pipeline

I've defined my ListGenerator in my Generators section.  I know this works
because I've been using it for weeks before trying to also use resources in
my pipeline.  Everything in the pipeline worked fine before trying to make a
call to a resource.

The Exception I'm getting is the following:
org.apache.cocoon.ProcessingException: Sitemap: resource 'links' not found:
java.lang.NoSuchMethodException: resource_links
at
org.apache.cocoon.sitemap.AbstractSitemap.invokeMethod(AbstractSitemap.java:
492)
at
org.apache.cocoon.www.sitemap_xmap.matchN125(sitemap_xmap.java:1410)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:911)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:832)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)
at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)
at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)
at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)
at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:913)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:678)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:331)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:117)
at
com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:239)
at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)
at
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cacheabl
eInvocationContext.java:106)
at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:154)
at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:315)
at
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.ja
va:60)
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:137)


Thanks in advance to whoever can answer my questions.

-
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: 2.1rc1 build error

2003-08-12 Thread rufio
on Wed, 06 Aug 2003 19:18:47 -0400 Geoff Howard [EMAIL PROTECTED] wrote:

 rufio wrote:
  on Wed, 6 Aug 2003 18:05:11 +0100 Cedric Picard [EMAIL PROTECTED] wrote:
  
  
 I just checked my own version 2.1m2 and ResolverImpl.java does not exist
 in src/java/org/apache/cocoon/components/resolver.
 
 You'll need to get this class from CVS if you downloaded the release
 version.
  
  
  I found this class in depreated, which means this test is outdated;
  I also found problems with other tests
 
 This was cleaned up recently - I thought right before rc1, but maybe it 
 was right after.  Before the cleanup it should only have happened when
 excluding the deprecated classes from the build.

That explains everything.
I excluded deprecated classes.
I didn't think I'd need them to go through the tests.

 After the cleanup,
 it should never happened.  If you're curious, looking through the 
 archives for [EMAIL PROTECTED] and [EMAIL PROTECTED] should
 clear the timing up, and give more explanation of what was going wrong.
 

Well, the tests are suited for the deprecated classes so it's pretty obvious that
the code wasn't cleaned before the rc1.
Thanx for the explanation.

 Geoff Howard


Regards, Rufio

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



Re: [Solution] Re: SimpleFormTransformer - invalid XML generated?

2003-08-12 Thread Christian Haul
Steve Schwarz wrote:
Christian

My bad. It looks like the form validation action is the one that doesn't 
like the enctype=multipart/form-data together with method=post but 
multipart with put is fine as is no enctype with post. In the 
sitemap.log it reports all fields as null with that encoding/post.
Since I'm using simpleform in both the success and failure cases for the 
validation action I wrongly thought simpleform wasn't working.
Since 2.1 processing of uploads needs to be enabled in web.xml. The 
default case is disabled and you've seen the result :-)

Although I think I will try to put a wiki together for the very simple 
use case; the added complexity of sfinstance in the simpleform sample 
really had me scratching my head for a while about the simple-form 
transformer declaration (as a newbie I still haven't gotten my head 
around the modular mechanism and the classes implementating it).
Right. So it ain't simple anymore :-| But agreed, the sample is crap. 
I will try to come up with a better one.

I also think I'll try to write a transformer that can transform the 
descriptor.xml file and into all the error entries for each of the 
parameter validation attributes (min-len, max-len, nullable, etc). I'd 
hate to enter that info for each error type manually for all my 
validating forms. To me this is the real power of Cocoon; define the 
model(s) and drive the site's views entirely from the data models 
through actions/transformations.
A very good idead. And by using the cocoon: protocol this can easily be 
done with XSLT in an internal pipeline!

	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]


parameters

2003-08-12 Thread Andrzej Radzki
Hello!

I want to add to the all links (a href=.../) in my site additional
parameter (eg. ?param=value), without changing all files... is it
possible do this in the sitemap?

ar


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