Session-objects in Cocoon using servlets and jsp
Hi, we have a major problem and do not know if there is a simple solution. Hope that somebody has an idea. The scenario is as follows: we realized a login as well as some other things using jsp and servlets. The jsp are read by th jsp-reader map:match pattern=jsps/* map:read type=jsp mime-type=text/html src=/jsps/{1}/ /map:match Furthermore, we have an session-object that is used by the jsps and cocoon to communicate with each other. Using just jsp and cocoon it is working well, i.e., the session object can be used from both places (coccoon,jsp with same session id). We need to use a servlet to control some processes (i.e., jsp) and, therefore,have to run the servlet in the same context as the jsp or cocoon. Currently, the servlet is having it's own session object with its own session id and, therefore, the cocoon-process can not communicate with the servlet. Also, the jsps get the session-object and its id from the servlet and we can not use the seession-object anymore for the communication. Is there any way of running the servlet in the same context as cocoon/jsp? Do I have to declare the servlet in a special way in web.xml or sitemap.xmap? I am not sure if the scenario is understandable. Please let me know if you need more information about the configuration (BTW, we use cocoon 2.0.3). Thanks, Torsten - 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]
Transformer
I want to change the XSL file of a transformer according a element of the input XML. There is any way to do this? Thanks Lautaro
Re: cvs HEAD bombing out of pipeline
Copy them from the Cocoon2/lib/core jar directory. -Marc --- Anna Afonchenko [EMAIL PROTECTED] wrote: Thanks for the information, Jacob. Can you tell me where can I find the updated jars? Thanks for help Anna - Original Message - From: Jacob L E Blain Christen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 27, 2002 6:22 PM Subject: Re: cvs HEAD bombing out of pipeline that did the trick, thank you antonio. anna, you and i were having the same problem, if it still isn't fixed i think this could be the solution to your problem as well: make sure updated xerxes and xalan jars are in $JAVA_HOME/lib/jre/endorsed as well as $TOMCAT_HOME/common/endorsed -- jacob - 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] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - 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]
Designing Dialogs in XML
We have the need to do the following - and for the life of me I have not yet found anything that already does this - although I am sure there must be... 1) Define page layouts in an XML markup example: page1.xml page name=firstpage part name=toppart src=/resources/header/ part name=middlepart This is the middle /part part src=/resources/dialog /page Depending on the stylesheet used in the later formatting this would then be transformed to say a frameset (HTML) or different cards (WML). 2) Define dialog elements in an XML markup Define things like text fields, buttons etc. in a way so that a later step makes the transformation into the specific instance for the required end format. So the above link to /resources/dialog would then load an XML file containing the description of a particular dialog into the third part of the page. I really only need this in one direction at the moment (i.e. publishing stuff outwards) - so I don't need the overhead of validation etc. Apart from inventing some new XML formats for this - surely there must be something like this already out there? I've looked at XUL, XMLForms etc. but they don't seem right - but perhaps they are. Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 Weblog: http://radio.weblogs.com/0103021/ = -Original Message- From: Matthew Langham [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 30, 2002 1:53 PM To: [EMAIL PROTECTED] Subject: RE: Summary: Cocoon Stammtisch @ Frankfurt easily accessed via public transport. Michael Melhem proposed an irish pub at Frankfurt/Hauptbahnhof (@Michael: main train station, so I made an educated guess - right ? Do you have a phone number of that pub ?) which should reduce any travelling by public transport to a minimum, but I fear that we lack the possibility to reserve for up to 13 people, having a meal or a noise level suited for a decent conversation, but I The Irish pub in Paderborn would not be suited for this (very loud) - but perhaps Frankfurt-Irish are quieter :-) So -1 on that. Frankfurt/Höchst, about 3 train stations (or 9 minutes) from Frankfurt/Hauptbahnhof, which is close to the train station, large enough for us, provides good yugoslavian food and you can have a good talk over there; all this needs is using the local train towards the city - at 00:39, the latest train (S1 direction Offenbach Ost) heads towards the city. Sounds good. Is it easy to get to by car also? Carsten and I will probably be driving in to Frankfurt. So +1 on that one. (I would be +1000 for the Schnitzel place - btw. Yummmy! Still, lack of public transport is a problem) Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 Weblog: http://radio.weblogs.com/0103021/ = -Original Message- From: Michael Hartle [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 30, 2002 1:03 PM To: [EMAIL PROTECTED] Subject: OT: Summary: Cocoon Stammtisch @ Frankfurt Hello all, to finalize the planing, I'd like to sum up some aspects; I am hoping for some *quick* feedback (i.e. votes) regarding the location, so I can make a reservation at one place or another: * Who: Regarding the guests, the list has grown considerably compared to the last Stammtisch - hopefully I haven't forgot anyone, but currently it looks like Marcus Crafter, Michael Melhem, Wolfram Eisert, Christian Haul, Mariano Kamp, Torsten Curdt, Matthew Langham, Carsten Ziegeler and Andreas Fuchs plus myself are probably going to visit, making it 10 people; when our international guests can make it too, we'd be 13 - well, I am not superstitious, but anyone is invited to increase that number. * When: As a date for the Stammtisch, we more or less settled on December, 9th; we might even have some guests from the UK (Andrew Savory), Belgium (Steven Noels) and perhaps Italy (Nicola Ken Barozzi). * Where: Here, we still have to decide - due to lacking public transport connectivity and the necessity for un-alcoholized drivers for the Schnitzel armageddon, we need an alternative location (*sigh*) that is easily accessed via public transport. Michael Melhem proposed an irish pub at
Re: XMLForm and Table output
Yes. You are on the right track. Why don't you print the XML document once it is created to see what it actually contains. I suspect this might be a simple mistake due to misuse of the API. It is not very convenient. Actually if you plan writing a lot of DOM code, you may want to look at JDOM or some of the O/R mapping frameworks. Ivelin - Original Message - From: Kirchhoff, Lars [EMAIL PROTECTED] To: Cocoon-Users (E-Mail) [EMAIL PROTECTED] Sent: Thursday, November 28, 2002 4:49 AM Subject: XMLForm and Table output Hi, it's me again and I hope I'm still getting answers and not starting to bother you all with all my questions. I've tried to create an application which simple should get some user data from a database, by simply enter the name. So my first form is just a text field where the name can be inserted. If the name is found all data will be shown. so far so good. But now I would like to built something more. Because I do not look at the exact name in the database it could be possible to get more then one entry. I now want to create a page, where all possible names are shown and some more additional information about them. So what I would like to have should be looking like this: -- | name | address | city | zip| -- | name1 | address1 | city1| zip1 | | name2 | address2 | city2| zip2 | | name3 | address3 | city3| zip3 | | ...| ... | ... | ...| where the user has the possibility to click on the a name to get the full detail. So what I thought is to write a method which get me the data from the database and put this in a DOM Nodes. I thought this would enable me to use them in the xf:repeat statement, but unfortunately it didn't worked out so far. Here is the code I used to create the DOM Nodes: -- -- --- // // Use DOM nodes to store values // DOMImplementation impl; try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setNamespaceAware( false ); factory.setValidating( false ); DocumentBuilder builder = factory.newDocumentBuilder(); impl = builder.getDOMImplementation(); } catch ( Exception e ) { throw new RuntimeException( Failed to initialize DOM factory. Root cause: \n + e ); } // // Use DOM nodes to store values // Document doc = impl.createDocument( null, Users, null ); Node root = doc.getDocumentElement(); Node custname = null; Node address = null; Node zip = null; Node city = null; Node user = null; Text text; try { Class.forName( org.postgresql.Driver ); Connection con = DriverManager.getConnection( DB_URL, DB_USER, DB_PASS ); Statement stmt = con.createStatement(); String update = select custname, busname, address, city, state, zip, pobox, pocode from customer where custname like '% + name + %'; ResultSet rs = stmt.executeQuery( update ); while ( rs.next() ) { user = doc.createElement( user ); root.appendChild( user ); custname = doc.createElement( custname ); text = doc.createTextNode( rs.getString( custname ) ); custname.appendChild( text ); user.appendChild( custname ); address = doc.createElement( address ); text = doc.createTextNode( rs.getString( address ) ); address.appendChild( text ); user.appendChild( address ); zip = doc.createElement( zip ); text = doc.createTextNode( rs.getString( zip ) ); zip.appendChild( text ); user.appendChild( zip ); city = doc.createElement( city ); text = doc.createTextNode( rs.getString( city ) ); city.appendChild( text ); user.appendChild( city ); system = root; } } catch( Exception e ) { } -- -- --- I expected to create the following structure with it: users user custname/custname address/address zip/zip city/city /user user custname/custname address/address zip/zip city/city /user /users So what I'm now wondering is, if I'm on the right track and just doing some beginner mistakes or if this won't work at all. Thanks in advance that you read up to here. ciao Lars - 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: XMLForm - How to - question
Ivelin, So far your responses regarding this subject is to refer one to another link which I have already read but do not quite understand well and still have further questions that all you need is clarify it for me. If it was that simple to understand I would not be asking for more clarification. I am requesting a little more leeway as some of this concept does not sink-in yet. The most pressing one is the usage of a subdirectory wizard or howto in your example(which DOES NOT WORK). Can you take a moment to clarify what directory name should be created and to put the start.xml and most of the xml files in your sample? In regards to the {page} question, I think I understood it, but a simple yes or no answer would have suffice to confirm instead of go read the docs which put me back to no confidence in the sample. Why is this so hard to do for you experts to say yes the presumptions are correct or no its incorrect? Respectfully.. aps --- aps olute [EMAIL PROTECTED] wrote: I can not get the XMLForm Wizard How To to work, so I tried to follow the sample working and have some question. 1. In the cocoon/samples/xmlform/sitemap.xmap how does the mapping from map:match pattern=wizard.html map:act type=WizardAction ... ... map:generate src=wizard/{page}.xml/ this part I did not quite understand. A directory of wizard/ is there for it to work, so for the howto-wizard.html a corresponding howto-wizard.html/ directory must be created? But it seems not right as the descriptor file says map:generate src=howto/{page}.xml/ VERY CONFUSING. Please help. I have it like cocoon/samples/xmlform/howto/start.xml thinking it would point here and the error keeps popping it cannot find the cocoon/samples/xmlform/howto/howto-wizard.html resource can not be found. 2. Furthermore, the {page} what is this? where does the matcher find this page? I suspect from looking at the WizardAction.java the prepare() method returns page(VIEW_staticonstant), are this the same page ? 3. What was done to make this page available to the matcher? Available in all the scope? ie, page, session, application or in particular scope only? Also if I have a generic type class a servlet returns like the page how to make this available to the matcher? 4.Looking around for same HOW-TO sample, they seem to import additional classes for example on this page, http://216.239.33.100/search?q=cache:nUkMoXPuDTUC:xml.apache.org/forrest/community/howto/xmlform/step4.html+how+to+use+XMLForm+hl=enie=UTF-8 __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - 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] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - 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: Looking for help in the upcomming release
I tried all samples that didn't require scrachpad stuff. Following is the result. I've also submitted couple of patches against the 2.0.3 branch for other problems that are not included here. Enviroment: Win2k SP3 (5.00.2195) Tomcat 4.1 Cocoon 2.0.3 branch (Nov 30) JDK 1.3.1_02-b02 Pages with problems: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=- Page: http://127.0.0.1:8080/cocoon/documents/index.html there were other pages with the same error. - Error(s): NO TITLE Excepion: ERROR (2002-11-30) 12:35.43:870 [core.manager] (/cocoon/documents/index.html) Thread-2/sitemap_xmap: Sitemap org.apache.cocoon.ProcessingException: Exception during processing of file:/C:/Program Files/Apache Group/Tomcat 4.1/webapps/cocoon/documentation/xdocs/index.xml: java.net.MalformedURLException: no protocol: characters.ent at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractS treamSource.java:214) at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:1 43) Pages with problems: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=- Page: http://127.0.0.1:8080/cocoon/slides/slides - ERROR (2002-11-30) 12:45.09:604 [sitemap.transformer.xslt] (/cocoon/slides/slides) Thread-4/TraxTransformer: Error setting Browser info java.lang.NullPointerException at org.apache.cocoon.components.browser.BrowserImpl.getMedia(BrowserImpl.ja va:406) at org.apache.cocoon.transformation.TraxTransformer.getLogicSheetParameters (TraxTransformer.java:481) at org.apache.cocoon.transformation.TraxTransformer.generateKey(TraxTransfo rmer.java:321) at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(Caching EventPipeline.java:310) at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(C achingEventPipeline.java:141) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach ingStreamPipeline.java:313) at org.apache.cocoon.www.sitemap_xmap.resource_slides(C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\ sitemap_xmap.java:1895) =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=- Page: http://127.0.0.1:8080/cocoon/search/statistic - ERROR (2002-11-30) 12:48.32:706 [core.manager] (/cocoon/search/statistic) Thread-3/sitemap_xmap: Sitemap org.apache.cocoon.ProcessingException: Exception in init()!: java.io.IOException: C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\index not a directory at org.apache.cocoon.www.search.statistic_index_xsp.init(C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/ search\statistic_index_xsp.java:99) at org.apache.cocoon.www.search.statistic_index_xsp.generate(C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/ search\statistic_index_xsp.java:214) 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:395) =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=- Page: http://127.0.0.1:8080/cocoon/catalog-demo - Original exception : java.net.MalformedURLException: no protocol: testovr.xml at java.net.URL.init(URL.java:468) at java.net.URL.init(URL.java:371) at java.net.URL.init(URL.java:325) at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.jav a:796) at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.jav a:725) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEntityReferenc e(XMLDocumentFragmentScannerImpl.java:1073) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1489) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo cumentFragmentScannerImpl.java:333) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5 24) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5 80) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=- Page: Simple Internationalization http://127.0.0.1:8080/cocoon/i18n/simple.xml?locale=[anything] - None of the locale specific pages work. Only 'NO TITLE' is displayed. The XSP Internationalization works well. -Original Message-
Re: URL Theory Best Practices
Kjetil Kjernsmo wrote: So, I've got this bad feeling that IE is going to ignore the content-type header ... But I can't for the life of me understand how it can be standards-compliant... Well, IEx does not in general ignore the content-type header, and it is, more or less, standards compliant, just in a somewhat special way. From various rumours and gossip I compiled the following story: IEx uses a variety of COM components for handling content. A correct implementation would be to open the network connection, read the headers including the content type header, decide which component handles the content, and then hand over the relevant headers and the open connection to the component. It seems that handing open connections to arbitrary COM components is difficult, or was difficult at the time the architecture of IEx was decided, therefore the browser component takes a look at the URL, extracts what it thinks could be a file extension, then looks up whatever component is registered for this string in the Windows registry (note that MIME types are not keys there) and then hands the URL to the component. Obviously it's up to the component what happens if the content type does not match one of the possible types the component can handle, or whether it even honors the content-type header. In many cases a mismatch causes the connection to be closed and another component determined by the content-type gets the URL. BTW this is the mechanism the Klez virus uses to get into windows systems. Some components seem to take a second look at the URL, and sometimes they return errors or something which causes the browser component to fall back to the default HTML renderer which then most often draws a blank. Caching plays a role too. Also, the algorithms for extracting a file extension and perhaps content negotiation seem to be implemented multiple times and probably in different ways in various components, or perhaps the components don't have access to necessary data (like cookies) all the time. The user usually doesn't notice anything. Problems arise if the URL points to dynamic content where a second GET can cause different stuff to be retrieved, in particular if the content was'n completely read or wasn't cached for other reasons (like SSL). Disclaimer: most of the above is second hand knowledge. HTH J.Pietschmann - 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: Weird Saxon errors
SAXESS - Hussayn Dabbous wrote: Your stylesheet produces plain text as output. This seems to be a problem for cocoon transformers. I don't know, if this behaviour is a feature, or a bug. (Maybe the developers can tell us ;-) ? It's a feature. Plain text is not a valid XML document, therefore it wont be properly transported through the SAX pipeline to the next component. Not even if the next component in the pipeline is a text serializer. I'm not sure whether this is Saxon specific (a text serializer uses an XSLT processor too), it might work with Xalan. J.Pietschmann - 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: Question
Lautaro Brasseur wrote: I have the following entry in sitemap.xmap: map:match pattern=*. map:generate type=myGenerator/ map:transform src=c:/temp/xsl/{1}_entrada.xsl/ map:serialize/ /map:match I want to change the src parameter for the transformator, depending on a element that comes from the generator. There is any way to do this (without writing a custom transformer)? Can I modify that parameter from the generator? One possiblity is to merge both style sheets. If there are no template clashes, this is probably all you need. If there are template clashes, use modes: xsl:template match=foo mode=style1/ ... /xsl:template xsl:template match=foo mode=style2/ ... /xsl:template and decide in the root node templede which mode to use: xsl:template match=/ xsl:choose xsl:when test=//some-element xsl:apply-templates select=node() mode=style1/ /xsl:when xsl:otherwise xsl:apply-templates select=node() mode=style2/ /xsl:otherwise /xsl:choose /xsl:template HTH J.Pietschmann - 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]
[Authentication] - Generate javascript using XSP
Hi Cococoners! I am currently an application that is currently running on a test mode with a small amount of users (20) in a Intranet environment. With the following characteristics: The application is running behind a proxy. The app use the authentication framework. The app have a page called welcome that show the current user. I am currently having problem with session management: The users told me that sometimes when they are already authenticated and request the welcome page, the response present another user. The page is called with http://internalserver:8080/theapp/welcome I think that this can be done because the proxy is returning a cached page from another user. Because the request has the same URI from every user (as long as I can see). The request URI does not have info about sessions. But I read in the book from Carsten and Mathhew on page 303 (second paragraph from the end): The default is usually to use cookies, because the developer of the web application does not need to do anything special to use them. ... Please Dont let me wrong. I now that the problem is caused by me. :-D The menu of the application is a static Javascript file served with a reader. This file hs no info about sessions. Now I realized that in order to set a session into the request I need to include a parameter with the SessionID for every request. I does not include it before because the quote above. With this scenario my questions is: How I can ensure that every request URI from the user will have the SessionID included or use the default cookies? For me this is not a trivial question, because: I thinked first: OK, I will generate the menu.js on ther fly using XSP. But after think a while I realized that this issue will fall again in the same category as the http://internalserver:8080/theapp/welcome explained above. :-( Please tell me what can I do? I am currently thinking in calling the menu.js with the sessionID too. This will work or there is another easier way to do that? Many thanks in advance, Antonio Gallardo. - 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: Looking for help in the upcomming release
The build docs seems to work fine. I got BUILD SUCCESSFUL and all the docs seem to be there. As to the installation there are no instruction for installing with Tomcat 4.1 so I just dropped the cocoon.war into tomcat's webapp directory (as specified by 4.0.1b1 instructions) Artur... -Original Message- From: David Crossley [mailto:[EMAIL PROTECTED]] Sent: November 30, 2002 10:39 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: Looking for help in the upcomming release Thanks Artur. Do you get the same documents build errors when you use the build docs target? I do not get any of your problems: Environment: Linux 2.4.18-4 i686 jakarta-tomcat-4.0.1 Cocoon 2.0.3 branch 2002-12-01 Java Blackdown-1.3.1-02b-FCS You seem to have some serious problem related to your specific machine. It would be excellent if you can start afresh and follow the installation.html page explicitly. If you notice any documentation flaws on the way, then please tell. --David Artur Bialecki wrote: I tried all samples that didn't require scrachpad stuff. Following is the result. I've also submitted couple of patches against the 2.0.3 branch for other problems that are not included here. Enviroment: Win2k SP3 (5.00.2195) Tomcat 4.1 Cocoon 2.0.3 branch (Nov 30) JDK 1.3.1_02-b02 Pages with problems: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=- Page: http://127.0.0.1:8080/cocoon/documents/index.html there were other pages with the same error. - Error(s): NO TITLE Excepion: ERROR (2002-11-30) 12:35.43:870 [core.manager] (/cocoon/documents/index.html) Thread-2/sitemap_xmap: Sitemap org.apache.cocoon.ProcessingException: Exception during processing of file:/C:/Program Files/Apache Group/Tomcat 4.1/webapps/cocoon/documentation/xdocs/index.xml: java.net.MalformedURLException: no protocol: characters.ent at org.apache.cocoon.components.source.AbstractStreamSource.toSAX (AbstractS treamSource.java:214) at org.apache.cocoon.generation.FileGenerator.generate(FileGenera tor.java:1 43) Pages with problems: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=- Page: http://127.0.0.1:8080/cocoon/slides/slides - ERROR (2002-11-30) 12:45.09:604 [sitemap.transformer.xslt] (/cocoon/slides/slides) Thread-4/TraxTransformer: Error setting Browser info java.lang.NullPointerException at org.apache.cocoon.components.browser.BrowserImpl.getMedia(Brow serImpl.ja va:406) at org.apache.cocoon.transformation.TraxTransformer.getLogicSheet Parameters (TraxTransformer.java:481) at org.apache.cocoon.transformation.TraxTransformer.generateKey(T raxTransfo rmer.java:321) at org.apache.cocoon.components.pipeline.CachingEventPipeline.set up(Caching EventPipeline.java:310) at org.apache.cocoon.components.pipeline.CachingEventPipeline.gen erateKey(C achingEventPipeline.java:141) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr ocess(Cach ingStreamPipeline.java:313) at org.apache.cocoon.www.sitemap_xmap.resource_slides(C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/c ocoon/www\ sitemap_xmap.java:1895) =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=- Page: http://127.0.0.1:8080/cocoon/search/statistic - ERROR (2002-11-30) 12:48.32:706 [core.manager] (/cocoon/search/statistic) Thread-3/sitemap_xmap: Sitemap org.apache.cocoon.ProcessingException: Exception in init()!: java.io.IOException: C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\index not a directory at org.apache.cocoon.www.search.statistic_index_xsp.init(C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/c ocoon/www/ search\statistic_index_xsp.java:99) at org.apache.cocoon.www.search.statistic_index_xsp.generate(C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/c ocoon/www/ search\statistic_index_xsp.java:214) at org.apache.cocoon.generation.ServerPagesGenerator.generate(Ser verPagesGe nerator.java:258) at org.apache.cocoon.components.pipeline.CachingEventPipeline.pro cess(Cachi ngEventPipeline.java:250) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr ocess(Cach ingStreamPipeline.java:395) =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=- Page: http://127.0.0.1:8080/cocoon/catalog-demo - Original exception : java.net.MalformedURLException: no protocol:
RE: Including static images into SVG files
-Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED]] I need to include and display a static image (its a logo) on all the SVG images I produce; the only syntax I have managed to get to work is: svg:image xlink:href=http://myserver/path/logo.jpg / (plus height, width) Unfortunately this requires an absolute URL address - if I drop the http://myserver/ then it simply does not work - is there a Cocoon substitute (protocol?) I can use to get the image processed correctly, *regardless* of what machine the app. is loaded on?? Try localhost instead of myserver. You can also use a file url (so long as the path is absolute). Cheers Con - 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]