Re: Jetty appears to die

2005-07-29 Thread Antonio Gallardo

Ron Wheeler wrote:


I had not copied the endorsed jars to the java endorsed library.

The instructions only mention the xalan libraries which had already 
done to get Lenya working(as far as it does). They do not mention that 
all of the endorsed libraries must be copied.



Can you fill a bug or point where is the document you are refering 
above? I want to fix this for other people. ;-)


Best Regards,

Antonio Gallardo.


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



Re: Maps, mapping, map projections, and Cocoon.

2005-07-29 Thread Thor Heinrichs-Wolpert

Check out:
http://geoid.cocoondev.org/

Cheers,
Thor HW - Who also lives in Victoria.


On 29-Jul-05, at 3:09 PM, Peter van Hardenberg wrote:


Is anyone aware of any work out there involving cocoon and maps? I'm
interested in creating SVG maps via Cocoon. There would be  
(obviously) some
hurdles to get over -- huge data sets, projection libraries, and so  
forth,

but I am interested nonetheless.
-pvh
--
Peter van Hardenberg ([EMAIL PROTECTED])
Victoria, BC, Canada




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



java.lang.RuntimeException: Could not get the datasource

2005-07-29 Thread Sullivan, Sean C - MWT


I inherited a Cocoon application that was written by another developer.

The developer left our company and nobody has touched this application 
in 2 years.

The application uses cocoon-2.0.3.jar and runs on JDK 1.3.1

The application connects to an Oracle database and an Informix database.

The driver jar files are located in WEB-INF/lib and I am using the
"load-class" parameter in the web.xml file.

When I try to browse one of the pages in the application, I observe 
a NoValidConnectionException.

How can I troubleshoot this?

It appears that the NoValidConnectionException 
is thrown in
org.apache.avalon.excalibur.datasource.JdbcConnectionFactory

I downloaded the source code for JdbcConnectionFactory from apache.org 
but the source file / line numbers do not appear to match the line
numbers 
in the jar that I am using.

WEB-INF/lib contains this file:  avalon-excalibur-vm12-20020705.jar

This appears to be a custom-built jar. 

(Another roadblock is the LogKit framework.  This application uses
LogKit but I am having trouble finding suitable documentation for LogKit
configuration. I want to be able to enable full DEBUG output for all
logger's.)

Here's the full stack trace:

Original exception : java.lang.RuntimeException: Could not get the
datasource
org.apache.avalon.excalibur.datasource.NoValidConnectionException: No
valid JdbcConnection class available 
at
org.apache.cocoon.www.documents.ucc.label_select_asn_xsp.generate(ucc\la
bel_select_asn_xsp.java:3398) 
at
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGe
nerator.java:258) 
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Cachi
ngEventPipeline.java:250) 
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
ingStreamPipeline.java:399) 
at
org.apache.cocoon.www.sitemap_xmap.matchN102B8(www\sitemap_xmap.java:257
6) 
at
org.apache.cocoon.www.sitemap_xmap.process(www\sitemap_xmap.java:1835) 
at
org.apache.cocoon.www.sitemap_xmap.process(www\sitemap_xmap.java:1731) 
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
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletMan
ager.java:827) 
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLife
cycleServlet.java:167) 
at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleSe
rvlet.java:297) 
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifec
ycleServlet.java:110) 
at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.jav
a:472) 
at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(Servle
tManager.java:1012) 
at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletM
anager.java:913) 
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispat
ch(WebAppRequestDispatcher.java:721) 
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppReq
uestDispatcher.java:374) 
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequ
estDispatcher.java:118) 
at
com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:13
4) 
at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvo
ker.java:239) 
at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(Cach
edInvocation.java:67) 
at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(Servlet
RequestProcessor.java:151) 
at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEList
ener.java:317) 
at
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnectio
n.java:60) 
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
477) 
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:341) 
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:144)



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



Re: Maps, mapping, map projections, and Cocoon.

2005-07-29 Thread Tony Collen
Luca Morandini is your man, but I don't know if he subscribes to this 
list! :)


Tony

Peter van Hardenberg wrote:
Is anyone aware of any work out there involving cocoon and maps? I'm 
interested in creating SVG maps via Cocoon. There would be (obviously) some 
hurdles to get over -- huge data sets, projection libraries, and so forth, 
but I am interested nonetheless.

-pvh



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



Maps, mapping, map projections, and Cocoon.

2005-07-29 Thread Peter van Hardenberg
Is anyone aware of any work out there involving cocoon and maps? I'm 
interested in creating SVG maps via Cocoon. There would be (obviously) some 
hurdles to get over -- huge data sets, projection libraries, and so forth, 
but I am interested nonetheless.
-pvh
-- 
Peter van Hardenberg ([EMAIL PROTECTED])
Victoria, BC, Canada


pgp746jPEzL6p.pgp
Description: PGP signature


Xalan version changes with JVM (was: cinclude doesn't cinclude, only garbles its input)

2005-07-29 Thread Lars Huttar

Sorry for the mess that was supposed to be a table.
Trying again.


Joerg Heinicke wrote:


On 26.07.2005 22:06, Lars Huttar wrote:


More data:

The above weird behavior with cinclude seems to be tied to Java 1.5.

In the following environments, the weird behavior occurs:



...


So... anybody know why cinclude would misbehave under Java 1.5?
If I were to run Cocoon in a Java debugger (say, in Eclipse or JDB), 
any hints for finding the problem?



If you have different behaviours with different JVMS it looks like a 
problem with endorsed dirs. We have two pages about these problems o 
the wiki:

http://wiki.apache.org/cocoon/NoMoreDtmIdError
http://wiki.apache.org/cocoon/EndorsedLibsProblem

The first one mentions a EnvironmentCheck stylesheet. Try it out and 
report if the XSLT processor versions change with different JVMs. They 
should not if the system is configured properly.


Joerg



OK, I've tried it. Here's a table of my results. Note that when running
Tomcat 5.5.9, I could not merely switch JVMs; for Java 1.4.2 I had to
install a compatibility pack, because Tomcat 5.5.9 requires either Java
1.5.* or the compatibility pack. The compatibility pack includes
bin/jmx.jar and two jars in common/endorsed: xml-apis.jar and
xercesImpl.jar.

The "cinclude bug?" column tells whether cinclude malfunctions in this 
setup (see original post).


(This table is formatted with tabs. Sorry this won't work for everybody. 
I just couldn't figure out a quick way that would make it work in plain 
text w/o tabs.)


JavaContainer   Cocoon  OS  cinclude bug?   XSLT processor version
JDK1.4.2Jetty   2.1.7   WinXP   Yes Xalan Java 2.6.0
JDK1.4.2Tomcat 4.1  2.1.7   WinXP   No  Xalan Java 2.4.1
JDK1.4.2Tomcat 4.1  2.1.2   WinXP   No  Xalan Java 2.4.1
JDK1.4.2Tomcat 5.0.27   2.1.2   Win2K   No  Xalan Java 2.4.1
JDK1.4.2+compat Tomcat 5.5.92.1.7   Mac OSX Yes 
JDK1.4.2+compat Tomcat 5.5.92.1.7   WinXP   Yes Xalan Java 2.4.1
JDK1.5  Tomcat 5.5.92.1.2   WinXP   Yes Xalan Java 2.5.1
JDK1.5  Tomcat 5.5.92.1.7   WinXP   Yes Xalan Java 2.6.0
JDK1.5  Tomcat 4.1  2.1.2   WinXP   Yes Xalan Java 2.5.1
JDK1.5  Tomcat 4.1  2.1.7   WinXP   Yes Xalan Java 2.6.0
JDK1.5  Jetty   2.1.7   WinXP   Yes Xalan Java 2.6.0



Note that the XSLT processor version *does* change with different JVMs.
For example, the combination of Tomcat 4.1 + Cocoon 2.1.7 uses Xalan
2.4.1 if JDK is 1.4.2, but uses Xalan 2.6.0 if JDK is 1.5.
Does this mean I've configured something wrong? If so I'd love to know more.
FYI, my Cocoon 2.1.7 build\webapp\WEB-INF\lib folder has
xalan-2.6.1-dev.jar in it, and that's the only xalan jar file I can find
in Cocoon or Tomcat.

Any suggestions are welcome.

Lars



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



Xalan version changes with JVM (was: cinclude doesn't cinclude, only garbles its input)

2005-07-29 Thread Lars Huttar

Joerg Heinicke wrote:


On 26.07.2005 22:06, Lars Huttar wrote:


More data:

The above weird behavior with cinclude seems to be tied to Java 1.5.

In the following environments, the weird behavior occurs:



...


So... anybody know why cinclude would misbehave under Java 1.5?
If I were to run Cocoon in a Java debugger (say, in Eclipse or JDB), 
any hints for finding the problem?



If you have different behaviours with different JVMS it looks like a 
problem with endorsed dirs. We have two pages about these problems o 
the wiki:

http://wiki.apache.org/cocoon/NoMoreDtmIdError
http://wiki.apache.org/cocoon/EndorsedLibsProblem

The first one mentions a EnvironmentCheck stylesheet. Try it out and 
report if the XSLT processor versions change with different JVMs. They 
should not if the system is configured properly.


Joerg

OK, I've tried it. Here's a table of my results. Note that when running 
Tomcat 5.5.9, I could not merely which JVMs; for Java 1.4.2 I had to 
install a compatibility pack, because Tomcat 5.5.9 requires either Java 
1.5.* or the compatibility pack. The compatibility pack includes 
bin/jmx.jar and two jars in common/endorsed: xml-apis.jar and 
xercesImpl.jar.


*Java version*



*Container version*



*Cocoon version*



*OS*



*cinclude bug?*



*XSLT processor version*

JDK1.4.2



Jetty



2.1.7



WinXP



Yes



Xalan Java 2.6.0

JDK1.4.2



Tomcat 4.1



2.1.7



WinXP



No



Xalan Java 2.4.1

JDK1.4.2



Tomcat 4.1



2.1.2



WinXP



No



Xalan Java 2.4.1

JDK1.4.2



Tomcat 5.0.27



2.1.2



Win2K



No



Xalan Java 2.4.1

JDK1.4.2+compat



Tomcat 5.5.9



2.1.7



Mac OSX



Yes





JDK1.4.2+compat



Tomcat 5.5.9



2.1.7



WinXP



Yes



Xalan Java 2.4.1

JDK1.5



Tomcat 5.5.9



2.1.2



WinXP



Yes



Xalan Java 2.5.1

JDK1.5



Tomcat 5.5.9



2.1.7



WinXP



Yes



Xalan Java 2.6.0

JDK1.5



Tomcat 4.1



2.1.2



WinXP



Yes



Xalan Java 2.5.1

JDK1.5



Tomcat 4.1



2.1.7



WinXP



Yes



Xalan Java 2.6.0

JDK1.5



Jetty



2.1.7



WinXP



Yes



Xalan Java 2.6.0

JRE1.5



Tomcat 5.5.9



2.1.7



WinXP



Yes






Note that the XSLT processor version *does* change with different JVMs. 
For example, the combination of Tomcat 4.1 + Cocoon 2.1.7 uses Xalan 
2.4.1 if JDK is 1.4.2, but uses Xalan 2.6.0 if JDK is 1.5.

Does this mean I've configured something wrong? If so I'd love to know more.
FYI, my Cocoon 2.1.7 build\webapp\WEB-INF\lib folder has 
xalan-2.6.1-dev.jar in it, and that's the only xalan jar file I can find 
in Cocoon or Tomcat.


Any suggestions are welcome.

Lars


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



Re: XPathProcessor and Reading XML

2005-07-29 Thread Brent Johnson
Ahh well.. I just switched to using the XPathProcessor and guessed at
some of the function calls hoping they were similar to Xalan's
XPathAPI.  They were, so things are good :)

- Brent

On 7/29/05, Brent Johnson <[EMAIL PROTECTED]> wrote:
> I've seen some older posts from late 2004 that use the
> org.apache.excalibur.xml.xpath.XPathProcessor to do xpath processing
> on a document in flow.  I can't seem to find the API docs for this.
> Is the use of this class not suggested for 2.1.7 or is there a better
> way to parse XML documents and handle xpath processing in flowscript?
> 
> I've been able to do it using "Packages.org.apache.xpath.XPathAPI" but
> wondered if it was better to use a Cocoon component like the
> XPathProcessor instead.
> 
> Thanks,
> 
> - Brent
>

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



RE: JavaFlow: getting the application context

2005-07-29 Thread footh
That's exactly what I did, but the context passed in
is null.  In fact, I don't believe contextualize is
ever called as I have a System.out in there and I
never see the output.  JavaFlow classes must not be
within the Avalon framework.  I think I read somewhere
that they are just translated to javascript-based
flow.

--- Bart Molenkamp <[EMAIL PROTECTED]> wrote:

> I don't have deep knowledge about JavaFlow, but I
> guess it would be
> something like this:
> 
> public class MyFlow extends AbstractContinuable
> implements
> Contextualizable{
>  private Context ctx;
> 
>  ...
>  public void contextualize(Context ctx) {
>this.ctx = ctx;
>  }
> }
> 
> Cocoon will call the contextualize() method for you,
> and pass the
> correct context instance, which you can then use
> during the lifecycle of
> your flow class.
> 
> HTH,
> Bart.
> 
> > -Oorspronkelijk bericht-
> > Van: footh [mailto:[EMAIL PROTECTED]
> > Verzonden: vrijdag 29 juli 2005 8:06
> > Aan: users@cocoon.apache.org
> > Onderwerp: RE: JavaFlow: getting the application
> context
> > 
> > I still can't seem to get the context from a
> JavaFlow
> > class.  I tried implementing Contextualizable but
> the
> > context argument is null.
> > 
> > Can anyone offer suggestions?
> > 
> > --- Bart Molenkamp <[EMAIL PROTECTED]>
> wrote:
> > 
> > > For Java components to get the context, you need
> to
> > > implement the
> > > Contextualizable interface from Avalon.
> > >
> > > Bart.
> > >
> > > > -Oorspronkelijk bericht-
> > > > Van: footh [mailto:[EMAIL PROTECTED]
> > > > Verzonden: woensdag 27 juli 2005 6:17
> > > > Aan: users@cocoon.apache.org
> > > > Onderwerp: JavaFlow: getting the application
> > > context
> > > >
> > > > Does anyone know how to get the application
> > > context
> > > > from within a javaflow?  I'm looking for
> something
> > > > equivalent to the "cocoon.context" code in a
> > > > javascript-based flow.
> > > >
> > > >
> > > >
> > > >
> > >
> 
> > > > Start your day with Yahoo! - make it your home
> > > page
> > > > http://www.yahoo.com/r/hs
> > > >
> > > >
> > > >
> > >
> >
>
-
> > > > 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]
> > >
> > >
> > 
> > 
> > 
> > 
> >
> 
> > Start your day with Yahoo! - make it your home
> page
> > http://www.yahoo.com/r/hs
> > 
> > 
> >
>
-
> > 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]
> 
> 





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



Re: JCR question

2005-07-29 Thread Torsten Schlabach
Josias,

thank you very much for your explaination! It really helped me over the
hurdle. For the first time, I was able to get something out of my
repository.

I also start to understand the difference between a repository and a plain
filesystem and that the JCR source basically proposes a very specific view
on the repository to make it act like a filesystem again.

Gotta put some thoughts to this ... But thank you in the meanwhile. You
probably made my weekend!

Regards,
Torsten

> On Fri, 2005-07-29 at 16:20 +0200, Torsten Schlabach wrote:
>> Josias,
>>
>> >> > >>   content-prop="jcr:data"
>> >>   mimetype-prop="jcr:mimeType"
>> >>   lastmodified-prop="jcr:lastModified"
>> >>   validity-prop="jcr:lastModified"/>
>>
>> That piece was definitely missing. But I am not yet sure that I have
>> fully
>> understood this stuff. I have imported the sample as you can see it from
>>
>> http://incubator.apache.org/jackrabbit/firststeps.html
>>
>> and changed my repository config in Cocoon to find that repository which
>> Jackrabbit has created. So far that worked fine. Now I am trying to get
>> back any piece of that XML document that got imported in the first steps
>> example.
>>
>> >From reading the JCR (JSR-170) spec on page 16 I got the impression,
>> that
>> actual content is always a property, not a node. My understanding of
>> page
>> 16 of the spec was that nodes are just some kind of directory, but that
>> might be wrong.
>
> Yes, in JCR the content is always stored in a property.
> But with the jcr:// protocol, you are referring to nodes. The trick is
> that nodes have a type, and depending on the type, the jcr:// protocol
> will either regard the node as a "folder" or as a "file". Only files can
> have actual content.
> If you specifiy the path to a file-node with the jcr:// protocol, the
> corresponding content-property will be fetched and the content returned.
> Which nodetypes are folders and which are files is defined in the
> configuration of the JCRSourceFactory. You also have to define which
> property holds the content. BTW, the javadoc of this class has a good
> explanation.
>
> As far as I understood it, the JCR-block is quite filesystem-oriented.
> That means that a folder cannot have content of its own.
> In JCR, this is certainly possible, any node can have subnodes and
> properties at the same time.
> In the firststeps example of jackrabbit, all nodes in the "import"
> branch seem to have type "nt:unstructured". So I see no way to define
> which nodes are folders and which are files.
> To me it seems that you cannot really use an arbitrary repository with
> the JCR block.
>
> But I'm no JCR expert at all, and I might be wrong.
>
> Josias
>
>
>
>
>>
>> > Does your configuration match your repository?
>>
>> No, I have no idea how
>>
>> >> > >>   content-prop="jcr:data"
>> >>   mimetype-prop="jcr:mimeType"
>> >>   lastmodified-prop="jcr:lastModified"
>> >>   validity-prop="jcr:lastModified"/>
>>
>> might match my repository or not.
>>
>> Regards,
>> Torsten
>>
>>
>> > On Thu, 2005-07-28 at 17:17 +0200, Josias Thoeny wrote:
>> >> On Thu, 2005-07-28 at 16:28 +0200, Torsten Schlabach wrote:
>> >> > Hi guys,
>> >> >
>> >> > I have successfully achieved this:
>> >> >
>> >> > 1. I have built Jackrabbit and created a sample repository using
>> the
>> >> > examples (First Steps) code samples. This is a repository which is
>> >> > entirely independent of Cocoon.
>> >> >
>> >> > 2. I have imported some XML stuff into the repository, also
>> following
>> >> that
>> >> > XHTML/MathML example from the Jackrabbit First Steps page.
>> >> >
>> >> > 3. I managed to make this repository known to Cocoon's JCR block by
>> >> > editing cocoon.xconf approprietely.
>> >> >
>> >> > 4. I can generate the collections through the TraversableGenerator
>> in
>> >> > webapp/samples/blocks/jcr of Cocoon (though on the blocks overview
>> >> page it
>> >> > says the jcr block did not have any samples). I can see the
>> collection
>> >> of
>> >> > nodes that were created by the Jackrabbit example, such as
>> /xmlimport
>> >> for
>> >> > example.
>> >> >
>> >> > But this is where I am stuck.
>> >> >
>> >> > In order not to get the collections but an actual property (read:
>> >> piece of
>> >> > content) from the repository, I tried something like:
>> >> >
>> >> > > src="jcr://importxml/xhtml:html/xhtml:body/xhtml:p[2]"
>> >> />
>> >> >
>> >> > But no matter what node I try, I keep getting
>> >> >
>> >> > org.apache.cocoon.ProcessingException: Exception during source
>> >> resolving.:
>> >> > org.apache.excalibur.source.SourceException: Path
>> >> > 'jcr://importxml/xhtml:html/xhtml:body/xhtml:p[2]' is a collection
>> >> >
>> >> > What do I have to put into the jcr:// URI in order to access
>> content,
>> >> not
>> >> > meta-information.
>> >>
>> >> What is the configuration of your JCRSourceFactory?
>> >> I think to define which nodes actually contain the data, you have to
>> >> define a file-node with a content-node having a co

XPathProcessor and Reading XML

2005-07-29 Thread Brent Johnson
I've seen some older posts from late 2004 that use the
org.apache.excalibur.xml.xpath.XPathProcessor to do xpath processing
on a document in flow.  I can't seem to find the API docs for this. 
Is the use of this class not suggested for 2.1.7 or is there a better
way to parse XML documents and handle xpath processing in flowscript?

I've been able to do it using "Packages.org.apache.xpath.XPathAPI" but
wondered if it was better to use a Cocoon component like the
XPathProcessor instead.

Thanks,

- Brent

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



Re: JCR question

2005-07-29 Thread Josias Thoeny
On Fri, 2005-07-29 at 16:20 +0200, Torsten Schlabach wrote:
> Josias,
> 
> >>  >>   content-prop="jcr:data"
> >>   mimetype-prop="jcr:mimeType"
> >>   lastmodified-prop="jcr:lastModified"
> >>   validity-prop="jcr:lastModified"/>
> 
> That piece was definitely missing. But I am not yet sure that I have fully
> understood this stuff. I have imported the sample as you can see it from
> 
> http://incubator.apache.org/jackrabbit/firststeps.html
> 
> and changed my repository config in Cocoon to find that repository which
> Jackrabbit has created. So far that worked fine. Now I am trying to get
> back any piece of that XML document that got imported in the first steps
> example.
> 
> >From reading the JCR (JSR-170) spec on page 16 I got the impression, that
> actual content is always a property, not a node. My understanding of page
> 16 of the spec was that nodes are just some kind of directory, but that
> might be wrong.

Yes, in JCR the content is always stored in a property.
But with the jcr:// protocol, you are referring to nodes. The trick is
that nodes have a type, and depending on the type, the jcr:// protocol
will either regard the node as a "folder" or as a "file". Only files can
have actual content.
If you specifiy the path to a file-node with the jcr:// protocol, the
corresponding content-property will be fetched and the content returned.
Which nodetypes are folders and which are files is defined in the
configuration of the JCRSourceFactory. You also have to define which
property holds the content. BTW, the javadoc of this class has a good
explanation.

As far as I understood it, the JCR-block is quite filesystem-oriented.
That means that a folder cannot have content of its own. 
In JCR, this is certainly possible, any node can have subnodes and
properties at the same time.
In the firststeps example of jackrabbit, all nodes in the "import"
branch seem to have type "nt:unstructured". So I see no way to define
which nodes are folders and which are files.
To me it seems that you cannot really use an arbitrary repository with
the JCR block.

But I'm no JCR expert at all, and I might be wrong.

Josias




> 
> > Does your configuration match your repository?
> 
> No, I have no idea how
> 
> >>  >>   content-prop="jcr:data"
> >>   mimetype-prop="jcr:mimeType"
> >>   lastmodified-prop="jcr:lastModified"
> >>   validity-prop="jcr:lastModified"/>
> 
> might match my repository or not.
> 
> Regards,
> Torsten
> 
> 
> > On Thu, 2005-07-28 at 17:17 +0200, Josias Thoeny wrote:
> >> On Thu, 2005-07-28 at 16:28 +0200, Torsten Schlabach wrote:
> >> > Hi guys,
> >> >
> >> > I have successfully achieved this:
> >> >
> >> > 1. I have built Jackrabbit and created a sample repository using the
> >> > examples (First Steps) code samples. This is a repository which is
> >> > entirely independent of Cocoon.
> >> >
> >> > 2. I have imported some XML stuff into the repository, also following
> >> that
> >> > XHTML/MathML example from the Jackrabbit First Steps page.
> >> >
> >> > 3. I managed to make this repository known to Cocoon's JCR block by
> >> > editing cocoon.xconf approprietely.
> >> >
> >> > 4. I can generate the collections through the TraversableGenerator in
> >> > webapp/samples/blocks/jcr of Cocoon (though on the blocks overview
> >> page it
> >> > says the jcr block did not have any samples). I can see the collection
> >> of
> >> > nodes that were created by the Jackrabbit example, such as /xmlimport
> >> for
> >> > example.
> >> >
> >> > But this is where I am stuck.
> >> >
> >> > In order not to get the collections but an actual property (read:
> >> piece of
> >> > content) from the repository, I tried something like:
> >> >
> >> >  >> />
> >> >
> >> > But no matter what node I try, I keep getting
> >> >
> >> > org.apache.cocoon.ProcessingException: Exception during source
> >> resolving.:
> >> > org.apache.excalibur.source.SourceException: Path
> >> > 'jcr://importxml/xhtml:html/xhtml:body/xhtml:p[2]' is a collection
> >> >
> >> > What do I have to put into the jcr:// URI in order to access content,
> >> not
> >> > meta-information.
> >>
> >> What is the configuration of your JCRSourceFactory?
> >> I think to define which nodes actually contain the data, you have to
> >> define a file-node with a content-node having a content-prop, like e.g.:
> >
> > oops, accidentally sent...
> >
> > Here is a part of the sample configuration of the JCRSourceFactory:
> >
> > 
> > >  content-prop="jcr:data"
> >  mimetype-prop="jcr:mimeType"
> >  lastmodified-prop="jcr:lastModified"
> >  validity-prop="jcr:lastModified"/>
> >
> > It means there will be a "jcr:content" node with a property "jcr:data"
> > which will contain the actual data.
> > Does your configuration match your repository?
> >
> > hth,
> > Josias
> >
> >
> >>
> >>
> >> >
> >> > Regards,
> >> > Torsten
> >> >
> >> >
> >> > ---

Solution: Path to image file referenced from SVG file

2005-07-29 Thread Dale Frye

Derek,

Why didn't I think of that! It works!

Thanks,
Dale

Derek Hohls wrote:

Dale 


You could try an absolute URL here e.g.:

http://mysite.com/images/Salmon.jpg

That has always worked for me.  


(Also check the mail archives - the topic of linking
to images from within SVG comes up a lot...)

 


[EMAIL PROTECTED] 2005/07/29 05:23:33 AM >>>
   


All,

I am trying to embed a JPEG image inside an SVG file and then rasterize 
it (svg2jpg). I need to determine what URL to use so Batik finds the 
file. The file works fine locally using Squiggle. When I try to run it 
through Cocoon/Batik I get the 'broken image" image instead of my image. 
The rest of the file is rasterized correctly. I've tried all types of 
paths and placing the image file in different locations but no luck.


Here's the definition of the pattern in the SVG file:

   width="194" height="139">

   
   

What should the path look like in xlink:href? Or is there something I 
can/need to configure in the sitemap?


Oh, I'm running 2.1.7 in Tomcat 5.0

Thanks
Dale Frye


-
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: JCR question

2005-07-29 Thread Torsten Schlabach
Josias,

>> >   content-prop="jcr:data"
>>   mimetype-prop="jcr:mimeType"
>>   lastmodified-prop="jcr:lastModified"
>>   validity-prop="jcr:lastModified"/>

That piece was definitely missing. But I am not yet sure that I have fully
understood this stuff. I have imported the sample as you can see it from

http://incubator.apache.org/jackrabbit/firststeps.html

and changed my repository config in Cocoon to find that repository which
Jackrabbit has created. So far that worked fine. Now I am trying to get
back any piece of that XML document that got imported in the first steps
example.

>From reading the JCR (JSR-170) spec on page 16 I got the impression, that
actual content is always a property, not a node. My understanding of page
16 of the spec was that nodes are just some kind of directory, but that
might be wrong.

> Does your configuration match your repository?

No, I have no idea how

>> >   content-prop="jcr:data"
>>   mimetype-prop="jcr:mimeType"
>>   lastmodified-prop="jcr:lastModified"
>>   validity-prop="jcr:lastModified"/>

might match my repository or not.

Regards,
Torsten


> On Thu, 2005-07-28 at 17:17 +0200, Josias Thoeny wrote:
>> On Thu, 2005-07-28 at 16:28 +0200, Torsten Schlabach wrote:
>> > Hi guys,
>> >
>> > I have successfully achieved this:
>> >
>> > 1. I have built Jackrabbit and created a sample repository using the
>> > examples (First Steps) code samples. This is a repository which is
>> > entirely independent of Cocoon.
>> >
>> > 2. I have imported some XML stuff into the repository, also following
>> that
>> > XHTML/MathML example from the Jackrabbit First Steps page.
>> >
>> > 3. I managed to make this repository known to Cocoon's JCR block by
>> > editing cocoon.xconf approprietely.
>> >
>> > 4. I can generate the collections through the TraversableGenerator in
>> > webapp/samples/blocks/jcr of Cocoon (though on the blocks overview
>> page it
>> > says the jcr block did not have any samples). I can see the collection
>> of
>> > nodes that were created by the Jackrabbit example, such as /xmlimport
>> for
>> > example.
>> >
>> > But this is where I am stuck.
>> >
>> > In order not to get the collections but an actual property (read:
>> piece of
>> > content) from the repository, I tried something like:
>> >
>> > > />
>> >
>> > But no matter what node I try, I keep getting
>> >
>> > org.apache.cocoon.ProcessingException: Exception during source
>> resolving.:
>> > org.apache.excalibur.source.SourceException: Path
>> > 'jcr://importxml/xhtml:html/xhtml:body/xhtml:p[2]' is a collection
>> >
>> > What do I have to put into the jcr:// URI in order to access content,
>> not
>> > meta-information.
>>
>> What is the configuration of your JCRSourceFactory?
>> I think to define which nodes actually contain the data, you have to
>> define a file-node with a content-node having a content-prop, like e.g.:
>
> oops, accidentally sent...
>
> Here is a part of the sample configuration of the JCRSourceFactory:
>
> 
>  content-prop="jcr:data"
>  mimetype-prop="jcr:mimeType"
>  lastmodified-prop="jcr:lastModified"
>  validity-prop="jcr:lastModified"/>
>
> It means there will be a "jcr:content" node with a property "jcr:data"
> which will contain the actual data.
> Does your configuration match your repository?
>
> hth,
> Josias
>
>
>>
>>
>> >
>> > Regards,
>> > Torsten
>> >
>> >
>> > -
>> > 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]
>
>


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



Re: Jetty appears to die

2005-07-29 Thread Ron Wheeler

I had not copied the endorsed jars to the java endorsed library.

The instructions only mention the xalan libraries which had already done 
to get Lenya working(as far as it does). They do not mention that all of 
the endorsed libraries must be copied.


I abandoned Jetty and focused on Tomcat because the logging is better.
Once I did that and copied the jars, cocoon works except for a missing 
sdocbook file which prevents the docbook samples from working. At least 
that it what I found so far.


Now to start mucking about and breaking the application side of things. 
Aligators killed - I think I originally came here to drain the swamp.


Ron



Christoph Hermann wrote:


Ron Wheeler schrieb:

Hello,

 


When I run cocoon.bat from the command line in Windows 2000, it opens a
second window and outputs some lines indicating that it is loading
things and then the window closes and connections from the browser or
telnet are refused.

If I go to my Lenya directory and run the Lenya.bat, it works correctly.

How do I figure out what is wrong with the Cocoon setup?
   



Change some lines in the Cocoon.bat:

from

set EXEC=start "Cocoon" /D.

to

:: set EXEC=start "Cocoon" /D.
set EXEC=

and have a look at the error-messages (if there are any).

HTH
Christoph

-
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: Jetty appears to die

2005-07-29 Thread Christoph Hermann
Ron Wheeler schrieb:

Hello,

> When I run cocoon.bat from the command line in Windows 2000, it opens a
> second window and outputs some lines indicating that it is loading
> things and then the window closes and connections from the browser or
> telnet are refused.
> 
> If I go to my Lenya directory and run the Lenya.bat, it works correctly.
> 
> How do I figure out what is wrong with the Cocoon setup?

Change some lines in the Cocoon.bat:

from

set EXEC=start "Cocoon" /D.

to

:: set EXEC=start "Cocoon" /D.
set EXEC=

and have a look at the error-messages (if there are any).

HTH
Christoph

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



Re: Passing Session XML as Parameter

2005-07-29 Thread Zbigniew Bomert OP

Look at:

http://wiki.apache.org/cocoon/ModuleSource

and

http://wiki.apache.org/cocoon/InputModules

zb

Stewart, Gary wrote:

Hi there,

Sorry to keep bugging people with really simple queries I just couldn't find the appropriate documentation on dealing with sessions from the site map (quite a bit on dealing with it in XSP). 


Anyway I've got a session authenticated and the user data is all there in an 
XML format. I'll now looking for a way of passing that XML as a parameter to an 
XSLT file (using a transformer) from the sitemap.

Anyone have any ideas on how to do this?

Thanks,

Gary

**
The information contained in this message may be confidential or legally 
privileged and is intended for the addressee only, If you have received this 
message in error or there are any problems please notify the originator 
immediately. The unauthorised use, disclosure, copying or alteration of this 
message is strictly forbidden.
**

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



Passing Session XML as Parameter

2005-07-29 Thread Stewart, Gary
Hi there,

Sorry to keep bugging people with really simple queries I just couldn't find 
the appropriate documentation on dealing with sessions from the site map (quite 
a bit on dealing with it in XSP). 

Anyway I've got a session authenticated and the user data is all there in an 
XML format. I'll now looking for a way of passing that XML as a parameter to an 
XSLT file (using a transformer) from the sitemap.

Anyone have any ideas on how to do this?

Thanks,

Gary

**
The information contained in this message may be confidential or legally 
privileged and is intended for the addressee only, If you have received this 
message in error or there are any problems please notify the originator 
immediately. The unauthorised use, disclosure, copying or alteration of this 
message is strictly forbidden.
**

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



Several Questions regarding Cocoon + Lucene

2005-07-29 Thread Christoph Hermann
Hello,

is there a way to specify where the index should be created and what its
name is?
In the samples/blocks/lucene sitemap there is a search done on some
index called "index2":





and my question is, how is that index created?

The example (flow.js) crawls the pages like this:

var util = cocoon.createObject("org.apache.cocoon.samples.LuceneUtil");
util.createIndex(baseURL, create );

There is no way to specify the index location or name. How is that done?

And one more question, is it possible to define several crawler and
indexer? (i.e. some crawler would only craw pdf's (*.pdf) and nothing
else and some othere would only crawl html pages. Then i would have two
indices which i could search separately (i.e. because pdfs and
html-pages have different fields in their content).

If someone could help me with that i'd be happy.

With kind regards
Christoph Hermann

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



Why isn't it possible to clone the cocoon.request

2005-07-29 Thread Alexander Malic

hi all,

in flowscript for some reasons i want
to use the cocoon.request what i got before a continuation.

but when i store it in a local variable
befora a continuation i allways get the new cocoon.request.

so i thought i'm gonna clone the object
(var cr=cocoon.request.clone();).
but i get following error-message:

TypeError: clone is not a function. (file:/C:/JavaDevelopment/jakarta-tomcat-5.0.28/webapps/webdesk3/webdesk/./actions/Groups/Groups.js#9)

can someone help me please:

thanx in advance,
alexander malic

here's my code:
~~
function showGroups(){
        .
        .
        .
     
  var cr=cocoon.request;
        .
        .
        .
     
  //continuation
     
  var bkm = cocoon.createWebContinuation();
        .
        .
        .
        cocoon.sendPageAndWait("views/Groups",
{
     
          continuationid:
bkm.id,
         
      groups: groups,
         
      actpage: (actpage+""),
         
      maxpage: (maxpage+""),
         
      pagesize: (pagesize+""),
         
      maxelements: (page.getTotalNumberOfElements()+""),
         
      oldrequest: cr
     
  });
}
~~

Re: Error in forms-field-styling.xsl in svn

2005-07-29 Thread Sylvain Wallez

Joerg Heinicke wrote:


On 26.07.2005 13:54, Christoph Hermann wrote:




where it should be



Becaus using the line above with "-input" cocoon will tell:
Invalid submit id (no such widget): upload-input (for a widget called
"upload").



Sylvain? It was introduced with 
http://svn.apache.org/viewcvs.cgi/cocoon/blocks/core/forms/trunk/samples/resources/forms-field-styling.xsl?rev=161264&r1=157119&r2=161264&diff_format=h. 
The both  are indeed different. Should the @id and 
@name differ?



Yes, because of the Ajax stuff. The tag that has an @id equal to the 
widget's id should enclose everything that's used to render a widget. In 
this case, it's an enclosing span.


The input's id is [EMAIL PROTECTED] so that we can produce for="[EMAIL PROTECTED]"> tags that effectively link the label to the right input.


I will commit the fix ASAP (SVN is currently down).

Thanks for reporting!

Sylvain

--
Sylvain WallezAnyware Technologies
http://people.apache.org/~sylvain http://www.anyware-tech.com
Apache Software Foundation Member Research & Technology Director


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



RE: JavaFlow: getting the application context

2005-07-29 Thread Bart Molenkamp
I don't have deep knowledge about JavaFlow, but I guess it would be
something like this:

public class MyFlow extends AbstractContinuable implements
Contextualizable{
 private Context ctx;

 ...
 public void contextualize(Context ctx) {
   this.ctx = ctx;
 }
}

Cocoon will call the contextualize() method for you, and pass the
correct context instance, which you can then use during the lifecycle of
your flow class.

HTH,
Bart.

> -Oorspronkelijk bericht-
> Van: footh [mailto:[EMAIL PROTECTED]
> Verzonden: vrijdag 29 juli 2005 8:06
> Aan: users@cocoon.apache.org
> Onderwerp: RE: JavaFlow: getting the application context
> 
> I still can't seem to get the context from a JavaFlow
> class.  I tried implementing Contextualizable but the
> context argument is null.
> 
> Can anyone offer suggestions?
> 
> --- Bart Molenkamp <[EMAIL PROTECTED]> wrote:
> 
> > For Java components to get the context, you need to
> > implement the
> > Contextualizable interface from Avalon.
> >
> > Bart.
> >
> > > -Oorspronkelijk bericht-
> > > Van: footh [mailto:[EMAIL PROTECTED]
> > > Verzonden: woensdag 27 juli 2005 6:17
> > > Aan: users@cocoon.apache.org
> > > Onderwerp: JavaFlow: getting the application
> > context
> > >
> > > Does anyone know how to get the application
> > context
> > > from within a javaflow?  I'm looking for something
> > > equivalent to the "cocoon.context" code in a
> > > javascript-based flow.
> > >
> > >
> > >
> > >
> > 
> > > Start your day with Yahoo! - make it your home
> > page
> > > http://www.yahoo.com/r/hs
> > >
> > >
> > >
> >
> -
> > > 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]
> >
> >
> 
> 
> 
> 
> 
> Start your day with Yahoo! - make it your home page
> http://www.yahoo.com/r/hs
> 
> 
> -
> 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]