Robby, Thank you for your reply. I don't see how the issue relates to the typo. Assuming this my current sitemap:
<?xml version="1.0" encoding="UTF-8"?> <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap" xmlns:servlet="http://apache.org/cocoon/servlet" xmlns:controller="http://apache.org/cocoon/controller"> <map:pipelines> <map:pipeline> <map:match pattern="article/{id}"> <map:generate src="${base.path}/workspace/pipelines/repo/articles/{map:id}.xml" /> <map:transform src="sheets/article.xsl" /> <map:serialize /> </map:match> <!--<map:match pattern="book/{id}"> <map:transform src="${base.path}/workspace/pipelines/docbook-xsl-snapshot/html/docbook.xsl" /> <map:generate src="/home/mansour/workspace/pipelines/repo/books/{map:id}.xml" /> <map:transform src="sheets/book.xsl" /> <map:serialize/> </map:match> --> </map:pipeline> </map:pipelines> </map:sitemap> The error I am recieving is : DEBUG MemoryResourceStore - reading resource com/sun/org/apache/xalan/internal/xsltc/trax/TransformerFactoryImpl.class DEBUG MemoryResourceStore - reading resource com/sun/org/apache/xalan/internal/xsltc/dom/XSLTCDTMManager.class WARN URLConnectionUtils - Can't close input stream from file:/home/mansour/workspace/pipelines/contents/src/main/resources/COB-INF/${base.path}/workspace/pipelines/repo/articles/ex.xml java.io.FileNotFoundException: /home/mansour/workspace/pipelines/contents/src/main/resources/COB-INF/${base.path}/workspace/pipelines/repo/articles/ex.xml (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:138) at java.io.FileInputStream.<init>(FileInputStream.java:97) at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90) at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188) at org.apache.cocoon.pipeline.util.URLConnectionUtils.closeQuietly(URLConnectionUtils.java:44) at org.apache.cocoon.sax.util.XMLUtils.toSax(XMLUtils.java:119) at org.apache.cocoon.sax.component.XMLGenerator$URLGenerator.execute(XMLGenerator.java:385) at org.apache.cocoon.sax.component.XMLGenerator.execute(XMLGenerator.java:104) ========================== If you notice, the property is never substituted for its value. The property is specified in META-INF/cocoon/properties/dev/app.properties base.path=/home/mansour/ Thank you for your time. On Mon, Nov 5, 2012 at 2:58 AM, Robby Pelssers <[email protected]> wrote: > Sorry... > > I will rephrase this ;-) > > In your property you used 'documenation' --> typo > > Robby > > -----Original Message----- > From: Robby Pelssers [mailto:[email protected]] > Sent: Monday, November 05, 2012 8:54 AM > To: [email protected] > Subject: RE: Cocoon 3.0-alpha sitemap properties > > =/home/mansour/docs/documentation (value of property you defined) > =/home/mansour/docs/documentation (correct path i assume) > > -----Original Message----- > From: Mansour Al Akeel [mailto:[email protected]] > Sent: Saturday, November 03, 2012 10:10 PM > To: [email protected] > Subject: Cocoon 3.0-alpha sitemap properties > > I created a block for C3.0 and tried to use properties defined in a > *.properties file. The logs show that the file has been found and I can see > that properties are found loaded, > > for example: > > > 935 2012-11-03 20:53:12,369 btpool0-1 DEBUG > impl.SettingsBeanFactoryPostProcessor - Property: > base.path=/home/mansour/docs/documenation > 936 2012-11-03 20:53:12,369 btpool0-1 DEBUG > impl.SettingsBeanFactoryPostProcessor - Property: sun.cpu.isalist= > 937 2012-11-03 20:53:12,369 btpool0-1 DEBUG > impl.SettingsBeanFactoryPostProcessor - ===== Settings End ===== > 938 2012-11-03 20:53:12,369 btpool0-1 DEBUG > support.DefaultListableBeanFactory - Finished creating instance of bean > 'org.apache.cocoon.configuration.Settings' > > However, doing this in my sitemap.xmap: > > <map:match pattern="doc/{1}"> > <map:read src="${base.path}/welcome.html" /> > </map:match> > </map:pipeline> > > Does not work, and it reports that file is not found. > > Any idea or documentation for this ?? > > --------------------------------------------------------------------- > 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]
