Re: excalibur-xmlutils sources

2002-12-17 Thread Ahmed
On Tue, 2002-12-17 at 19:46, Phil Shafer wrote:
 Is there an archived set of sources available for the
 contents of excalibur-xmlutil-20020820.jar? I'm getting
 a NPE in org.apache.excalibur.xmlizer.impl.XMLizerImpl.toSAX()
 and can't see what I'm doing wrong. The current sources for
 jakarta-avalon-excalibur don't have this class (but do have
 the interface XMLizer), but I may be looking in the wrong cvs
 module. Any help would be greatly appreciated.

I have got similar problems when trying to build from sources.

I think you could get what you are looking for from cvs 
(http://cvs.apache.org/viewcvs.cgi/jakarta-avalon-excalibur) with
commands like:
$ export CVSROOT=:pserver:[EMAIL PROTECTED]:/home/cvspublic
$ cvs login
$ cvs checkout -D 2002-08-20 jakarta-avalon-excalibur


I am just like you, a Cocoon user.
I have got a C/C++, CVS, Autotools background. 
I am new to Java. 
Finding jars in CVS was a great surprise for me. 
Is there .so in apache-httpd CVS?



-
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: Transforming XML with XSL and Cocoon

2002-12-16 Thread Ahmed
On Mon, 2002-12-16 at 10:14, Sorin Marti wrote:
 now I want to try to look view my XML-file in the browser 
 (http://localhost:8080/cocoon/energie/energiebericht-70-99.xml)
 and I get following error:
   Cocoon 2 - Resource not found

Try:
http://localhost:8080/cocoon/Ich_bestehe_nicht
You will get the same message.

What's in the pipelines portion  of your sitemap?

Did you put a connection between the URI and the files?

Cocoon is also about managing an URI space.



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




Where do excalibur-instrument-* jars came from?

2002-12-15 Thread Ahmed
Hello,

I am trying to package Cocoon from sources.

On Jakarta source downloads package
(http://jakarta.apache.org/site/sourceindex.html), I can not see from
where I can get core/excalibur-instrument-* jars sources.

There is no instru-whatever, in the released Excalibur 4.1 sources.
$ tar -tzf Excalibur-4.1-src.tar.gz | grep -i instru
$


Thanks.



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




What are those excalibur-instrument-* jars for?

2002-12-15 Thread Ahmed
Hello,

I am still looking for excalibur-instrument-*.jar sources.

Meanwhile, I tried to know what they are used for.

$ find src/java -type f | xargs grep -i instrument
$ 

Cocoon sources do not refer at all to those org.apache.excalibur.instrument.* 
classes...

I surely missed something.

Any clue? 

Thanks.



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




Links view recurse for ever on a SVG linearGradient element

2002-12-14 Thread Ahmed
Nagoya seems down...

---

My cocoon.xconf contains:
xml-parser class=org.apache.avalon.excalibur.xml.JaxpParser/

and my sitemap:
map:views
map:view name=links from-position=last
map:serialize type=links/
/map:view
/map:views
...
map:pipelines
map:pipeline   
map:match pattern=*.png
map:generate src=docs/{1}.svg/
map:serialize type=svg2png/  
/map:match
/map:pipeline
/map:pipelines


The Cocoon live site is OK. 
When I ask my web browser for
http://localhost:8180/simple_cocoon_site/sample.png, I get the PNG.

When I ask for a link content (same_url?cocoon-view=links), Cocoon goes
recursing until no memory is left. 
Why asking for such a view? Well I am not doing it, the command line
interface blindly does.

The problem is with a gradient definition:
linearGradient id=a_gradient  
stop offset=5% stop-color=red /  
stop offset=95% stop-color=yellow /  
/linearGradient
I have no problem with:
marker id=aTriangle
viewBox=0 0 4 4 refX=0 refY=2 
markerUnits=strokeWidth
markerWidth=1 markerHeight=1
orient=auto
path d=M 0 0 L 4 2 L 0 4/
/marker
in the SVG.

---

I dived in the sources with a debugger. 
Forgive a little, I am new to Java (4 months).

XMLTeePipe().startElement() get called for the linearGradient element.
It calls its first consumer (a LinkTranslator) startElement() method.

LinkTranslator inherits this method from ExtendedXLinkPipe.

ExtendedXLinkPipe.startElement() looks after href, src or
background. Finding none it finishes calling super.startElement() i.e.
XLinkPipe.startElement().

The attribute value for type is simple.
For all other SVG elements, type is null. 
Why is it so? I do not know.

So the simpleLink() is called. Which one? LinkTranslator one because
this is a LinkTranslator.

LinkTranslator.simpleLink() does not do much but calling
super.simpleLink(), i.e. ExtendedXLinkPipe.simpleLink().

This one looks after href, src or background. Finding none it
finishes calling super.startElement() i.e. XLinkPipe.startElement().

And here is the never ending recursion.

XMLTeePipe().startElement()
  LinkTranslator.startElement() ie. ExtendedXLinkPipe.startElement()
super.startElement() i.e. XLinkPipe.startElement() ---+
  simpleLink() i.e. LinkTranslator.simpleLink()|
super.simpleLink() ie ExtendedXLinkPipe.simpleLink()   |
  super.startElement() ie XLinkPipe.startElement() ---+

Is it a JaxpParser error? I do not know. 
Anyway. Cocoon relies heavily on external components. It should be
prepared to (unintentional) misbehaviors.

I do not know where to go from here. I am not looking for tricks. I only
want Cocon to be robust. I have got a little time.

I removed gradients from my SVGs.

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




Can not build on another directory

2002-12-10 Thread Ahmed
$ sh build.sh -Dbuild.root=somewhere
leads to errors when coming to scratchpad.

I had to modify build.xml. 
See the attached patch.


--- build.xml   2002-12-06 21:41:58.0 +0100
+++ build.xml   2002-12-11 04:27:59.0 +0100
@@ -191,7 +191,7 @@
 include name=*.jar/
   /fileset
   !-- FIXME : how to build a path that references a property set in 'init' 
target ? --
-  pathelement path=./build/cocoon/classes/
+  pathelement path=${build.root}/cocoon/classes/
 /path
 
 !-- === --


-
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: Cocoon 2 - Internal server error: Cannot get componentselector for 'generate'

2002-11-18 Thread Ahmed
On Mon, 2002-11-18 at 09:29, [EMAIL PROTECTED] wrote:
 I'm extremely new to Cocoon 2 and have so far a limited knowledge of xml
 and java technologies, but I need to configure Cocoon and Tomcat to run a
 site but keep encountering this Internal server error. How can I handle this
 error in the sitemap.xmap?
 org.apache.avalon.framework.configuration.ConfigurationException: Cannot
 get component selector for 'generate' at jndi:/localhost/sitemap.xmap:83:54

What is the sitemap? 
Examine line 83.
Also read sitemap.log.


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




Link Livesites:

2002-10-07 Thread Ahmed

On the Live Sites powered by Apache Cocoon page
(http://xml.apache.org/cocoon/link/livesites.html):

XSLTPatterns.com (http://www.xslt-patterns.com/) and

Order Up Delivery (http://www.orderupdelivery.com/) links are broken.




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




java.lang.NullPointerException: Null content handler

2002-04-05 Thread Aslam Ahmed

Hello Friends, 
  First time i'm using cocoon. 
My system configration is as follows: 
I've installed JDK1.3, cocoon2.0 and Tomcat3.3a on windows 2000 server 
machine. 
 First time i ran the cocoon from my browser using the URL: 
http://localhost:8080/cocoon then i got the following error. 
Any body help me to sort out this problem. 
   My thanks in Advance. 


type internal-server-error 

message Null content handler 

description java.lang.NullPointerException: Null content handler 

sender org.apache.cocoon.servlet.CocoonServlet 

source Cocoon servlet 

request-uri 

/cocoon/ 

exception 

java.lang.NullPointerException: Null content handler 

path-info 



stacktrace 

java.lang.NullPointerException: Null content handler 
at org.xml.sax.helpers.XMLFilterImpl.setContentHandler(Unknown Source) 
at 
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.addLogicsheet(LogicsheetCodeGenerator.java:98)
 
at 
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addLogicsheetsToGenerator(AbstractMarkupLanguage.java:304)
 
at 
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage$TransformerChainBuilderFilter.startElement(AbstractMarkupLanguage.java:511)
 
at 
org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage$SitemapTransformerChainBuilderFilter.startElement(SitemapMarkupLanguage.java:368)
 
at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source) 
at 
org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage$PreProcessFilter.startElement(SitemapMarkupLanguage.java:211)
 
at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:342) 
at 
org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:401) 
at 
org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:809)
 
at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:556) 
at 
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:2678)
 
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:782) 
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:747)
 
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1445)
 
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:328)
 
at 
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:479)
 
at 
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:521)
 
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:148) 
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:972) 
at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) 
at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) 
at 
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:130)
 
at 
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:275)
 
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:309)
 
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:271)
 
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:188)
 
at org.apache.cocoon.sitemap.Handler.run(Handler.java:208) 
at java.lang.Thread.run(Thread.java:484

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