Re: pdf serializer encoding
Le 16 nov. 05, à 08:30, Myriam Delperier a écrit : ...I'm creating pdf files with something like : the result is a pdf page with ISO-8859-1 encoding, and I need an UTF-8 encoding What do you mean by that, what symptoms do you see? If it's the accented characters which are wrong in your PDF output, it usually means that your *data* is garbled, not the PDF. Trying instead of fo2pdf should show you the problem, if the characters are still wrong you have an encoding problem upstream, either in myfile.xsp, in myfile.xsl or in your data. -Bertrand smime.p7s Description: S/MIME cryptographic signature
Re: pdf serializer encoding
Geert Josten wrote: | | Isn't the PDF format written in low-ascii? So it shouldn't matter. | | If you want unicode characters to be shown, use character | | references or utf-8 in the FO document and reference to a Unicode | | capable font supported by FOP. in fact the characters are well displayed, but I've in my file some external links like : external-destination="resultats-in.html?q=finstitutiontype:|Service général|">Service général and the result of the link is : resultats-in.html?q=finstitutiontype:|Service%20g%e9n%e9ral| whereas I'm waiting for : resultats-in.html?q=finstitutiontype:|Service%20g%C3%A9n%C3%A9ral| - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pdf serializer encoding
Isn't the PDF format written in low-ascii? So it shouldn't matter. If you want unicode characters to be shown, use character references or utf-8 in the FO document and reference to a Unicode capable font supported by FOP. Regards, Geert Myriam Delperier wrote: Hi, I'm creating pdf files with something like : the result is a pdf page with ISO-8859-1 encoding, and I need an UTF-8 encoding. I've tried in the xsl file, mime-type="application/pdf" src="org.apache.cocoon.serialization.FOPSerializer"/> UTF-8 in the sitemap but none of those solutions work. Does somebody knows how to fix this? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is the cocoon portal redirection mandatory ?
Jean-Christophe Kermagoret wrote: > > I think I solve partly my problem. > > To tell Tomcat not to use cookies, I just put a cookies attribute to > false in my context definition : > > cookies="false"> > > I still have my portal redirection problem > > Any ideas ? It's hard to tell without seeing your sitemap :) Now, I guess, you have a somewhere in the case if the user is not logged in. Try replacing it with . HTH Carsten -- Carsten Ziegeler - Open Source Group, S&N AG http://www.s-und-n.de http://www.osoco.org/weblogs/rael/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
pdf serializer encoding
Hi, I'm creating pdf files with something like : the result is a pdf page with ISO-8859-1 encoding, and I need an UTF-8 encoding. I've tried in the xsl file, mime-type="application/pdf" src="org.apache.cocoon.serialization.FOPSerializer"/> UTF-8 in the sitemap but none of those solutions work. Does somebody knows how to fix this? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANNOUNCE] Stylus Studio 2006 XML Enterprise Edition Now Available
[ANNOUNCE] Dear Apache Cocoon Users, Stylus Studio has released Stylus Studio 2006 XML Enterprise Edition, an XML IDE with full support for editing, validating and debugging XML/XSLT using Apache XML processing components is now available for a free trial download at: http://www.stylusstudio.com/xml_download.html The following are some of the highlights of Stylus Studio 2006 XML Enterprise Edition: * EDI Tools - Convert thousands of X12 / EDIFACT message formats to XML and validate converted documents using a new X12 / EDIFACT to XML Schema Generation Wizard. Access X12 data as bi-directional XML data sources using Stylus Studio 2006 XML Adapter Modules: http://www.stylusstudio.com/edi/ * XML Schema-Aware XSLT 2.0 Processing - Write more robust XSLT 2.0 stylesheets and eliminate common programming mistakes, simplifying XSLT debugging and improving XSLT performance. * XML Schema-Aware XQuery 1.0 Processing - Simplify troubleshooting and XQuery debugging, and enhance XQuery code performance. * Updated XQuery Support - Updated support for the W3C XQuery 1.0 Candidate Recommendation of November 2005: http://www.stylusstudio.com/xquery.html * Updated XSLT 2.0 Support - Updated support for the W3C XSLT 2.0 Candidate Recommendation of November 2005: http://www.stylusstudio.com/xslt.html * Tools Support for DataDirect XQuery - Develop XQuery expressions that access most relational databases including Microsoft SQL Server, Oracle, and IBM DB2. Includes integrated support generating Java code that invokes DataDirect XQuery for deploying XQuery applications with the click of a button: http://www.stylusstudio.com/videos/ddxqdemo/datadirectxquery.html * Integrated support for Saxon SA 8.6 - The Stylus Studio XQuery and XSLT tools have been updated to support the Saxon SA 8.6 processor, a leading Java-based XSLT and XQuery processing component: http://www.stylusstudio.com/saxon_xquery_processor.html * Folding XML Code support - The Stylus Studio XML, XQuery, XML Schema, XSLT, and Java Editors now support folding XML code to simplify XML editing: http://www.stylusstudio.com/xml_code_folding.html * Hundreds of usability and performance enhancements. For more information, visit: http://www.stylusstudio.com/xml_product_new_features.html Sincerely, The Stylus Studio Team http://www.stylusstudio.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Connection Pooling for Spring and Hibernate3
You could also setup the datasource in JNDI then set the hibernate.connection.datasource property in your hibernate properties. Example: java:comp/env/jdbc/mydb . . . . . . It's better to be hated for who you are than loved for who you are not Ian D. Stewart Appl Dev Analyst-Advisory, DCS Automation JPMorganChase Global Technology Infrastructure Phone: (614) 244-2564 Pager: (888) 260-0078 William Moore <[EMAIL PROTECTED]To: users@cocoon.apache.org .com>cc: Subject: Re: Connection Pooling for Spring and Hibernate3 11/15/2005 04:47 PM Please respond to users Johannes On 15 Nov, 2005, at 8:17 pm, Johannes Textor wrote: > William Moore schrieb: > >> Is it possible to use the Cocoon database connection pool inside an >> application based on Cocoon, Spring and Hibernate? >> >> I have looked at CHS (http://www.cocoondev.org/main/117/43.html) and >> CocoonAndHibernateTutorial >> (http://wiki.apache.org/cocoon/CocoonAndHibernateTutorial), but the >> former does not use the Cocoon connection pool and the latter does not >> use Spring. >> >> In my attempts I have found that Spring seems to create the DataSource >> and SessionFactory objects defined in it's applicationContext.xml file >> very early in the start-up process and outside the Cocoon framework. >> This means the classes cannot operate as Cocoon Components and >> consequently they cannot access the Cocoon connection pools. >> >> Is this correct or am I missing something obvious? I'm fairly new to >> programming at this level. > > This is aboslutely correct. When using Spring, you should not use the > Cocoon connection pool since that would mean a dependancy on the view > layer (Cocoon in that case) for data persistency. The tutorial is meant > to get you started quickly and with no requirements besides cocoon and > hibernate, so it uses the Cocoon connection pool, but that is not the > end of the story. OK, I interpret that as meaning I should use org.apache.commons.dbcp.BasicDataSource to build a DataSource either by defining it inside Spring's applicationContext.xml file or by defining it inside Tomcat. Is that correct? If it is, I'll probably use the former as it does not tie me to Tomcat. Thanks William - 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: Connection Pooling for Spring and Hibernate3
Johannes On 15 Nov, 2005, at 8:17 pm, Johannes Textor wrote: William Moore schrieb: Is it possible to use the Cocoon database connection pool inside an application based on Cocoon, Spring and Hibernate? I have looked at CHS (http://www.cocoondev.org/main/117/43.html) and CocoonAndHibernateTutorial (http://wiki.apache.org/cocoon/CocoonAndHibernateTutorial), but the former does not use the Cocoon connection pool and the latter does not use Spring. In my attempts I have found that Spring seems to create the DataSource and SessionFactory objects defined in it's applicationContext.xml file very early in the start-up process and outside the Cocoon framework. This means the classes cannot operate as Cocoon Components and consequently they cannot access the Cocoon connection pools. Is this correct or am I missing something obvious? I'm fairly new to programming at this level. This is aboslutely correct. When using Spring, you should not use the Cocoon connection pool since that would mean a dependancy on the view layer (Cocoon in that case) for data persistency. The tutorial is meant to get you started quickly and with no requirements besides cocoon and hibernate, so it uses the Cocoon connection pool, but that is not the end of the story. OK, I interpret that as meaning I should use org.apache.commons.dbcp.BasicDataSource to build a DataSource either by defining it inside Spring's applicationContext.xml file or by defining it inside Tomcat. Is that correct? If it is, I'll probably use the former as it does not tie me to Tomcat. Thanks William - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to start pipeline processing from dom element
hello, I've e dom Element and like to start the pipeline processing from this Element. How can I do that? Do I have to write a Generator? Regards Mike QuickLine WebMail - http://www.QuickLine.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Connection Pooling for Spring and Hibernate3
Hi William, William Moore schrieb: > Hello, > > Is it possible to use the Cocoon database connection pool inside an > application based on Cocoon, Spring and Hibernate? > > I have looked at CHS (http://www.cocoondev.org/main/117/43.html) and > CocoonAndHibernateTutorial > (http://wiki.apache.org/cocoon/CocoonAndHibernateTutorial), but the > former does not use the Cocoon connection pool and the latter does not > use Spring. > > In my attempts I have found that Spring seems to create the DataSource > and SessionFactory objects defined in it's applicationContext.xml file > very early in the start-up process and outside the Cocoon framework. > This means the classes cannot operate as Cocoon Components and > consequently they cannot access the Cocoon connection pools. > > Is this correct or am I missing something obvious? I'm fairly new to > programming at this level. This is aboslutely correct. When using Spring, you should not use the Cocoon connection pool since that would mean a dependancy on the view layer (Cocoon in that case) for data persistency. The tutorial is meant to get you started quickly and with no requirements besides cocoon and hibernate, so it uses the Cocoon connection pool, but that is not the end of the story. Regards, Johannes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Authentication problem
We have a problem with Cocoon Authentication We have created the following in our sitemap: We have the following login-page: If authentication was succesfull it should be able to give use the following "secure" pages... If a user uses the login page and passes the right username and password he/she will see the: Because this is succesfull he/she should be able to connect to "secure" pages, but this fails and user gets: In our test situation all works fine, but we get the problem on our live site. The live site is different from test site : Test site url like localhost:8080/cocoon/cdls/info_index.html Live site url like www..org/info_index.html (using mod_proxy, see configuration below) Also in our sitemap we had to change the uri's; adding a '/' ; so "/ aanmeldfout.html"/> on live site, "aanmeldfout.html"/> on test site We suspect a COOKIE problem, because the cookie from our live site contains a path /cocoon Our site runs under Cocoon on a pc that hosts six websites, three of which are Cocoon based sites and the other three are plain Apache sites. All sites are declared as virtual hosts within Apache. For the Cocoon sites, mod_proxy is used to let Apache serve the Cocoon pages, as explained in this wiki page: http://wiki.apache.org/cocoon/ApacheModProxy Here's the Apache 2.0 config file for the virtual host: ServerAdmin [EMAIL PROTECTED] ServerName www.cdls-nl.org # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. DocumentRoot /var/sitecopy/cdls_content # if not specified, the global error log is used ErrorLog /var/log/apache2/cdls-nl.org-error_log CustomLog /var/log/apache2/cdls-nl.org-access_log combined # log IP addresses HostnameLookups Off UseCanonicalName Off ServerSignature On # # Deny access to any request that doesn't start with a '/' # This makes it impossible to use this server or virtual host # as an open proxy. # Deny from all # # Make sure that the virtual host name is passed through to the # backend servlet container for virtual host support. # ProxyPreserveHost On # # Pass /cgi-bin/ to Apache: # ProxyPass /cgi-bin/ ! # # Pass requests to this site to another port at this machine. # ProxyPass/ http://localhost:8085/cocoon/cdls/ ProxyPassReverse / http://localhost:8085/cocoon/cdls/ # Based on: http://wiki.apache.org/cocoon/ApacheModProxy In Tomcat's server.xml a connector is declared for every cocoon site like this: maxThreads="20" minSpareThreads="5" maxSpareThreads="10"/> Tomcat listens to port 8080. If the proxy rules are changed into ProxyPass/ http://localhost:8080/cocoon/cdls/ ProxyPassReverse / http://localhost:8080/cocoon/cdls/ and Apache is restarted, the problem still exists. I don't know if we need these connectors. The site runs SuSE Linux 9.2 on a Pentium pc with Sun Java 1.4.2, Tomcat 5.0 and Cocoon 2.1.7 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Values in the XML in the Pipeline
Stewart, Gary napisał(a): This is probably a long shot as I haven't seen it mentioned in the documentation. Is it possible to get a particular value from a transform, say, and use that in the pipeline. Say I've got a transform that results in the XML: 86E72DC6-7EDA-47F2-8A3F-D2DA7E121EF0 I want to use that to either generate a using a resource call or to do a redirect (I've taken into account the redirection in pipelines note; http://cocoon.apache.org/2.1/userdocs/concepts/redirection.html). Passing that value to fetch a document (I can do that in a cinclude though so it can be part of the same pipe without starting a new generate). It would be handy to do but my current solution would be to transform to a cinclude based on that returned document structure and carry on the pipeline to get the intended end result. I think you should use XMLFile Module[1]. Just add to your cocoon.xconf class="org.apache.cocoon.components.modules.input.XMLFileModule" logger="core.modules.xml" name="primary_guid"> Then in your second pipeline you can use everywhere you want, for example: [..] Hope this helps. -- g[R]eK smime.p7s Description: S/MIME Cryptographic Signature
Connection Pooling for Spring and Hibernate3
Hello, Is it possible to use the Cocoon database connection pool inside an application based on Cocoon, Spring and Hibernate? I have looked at CHS (http://www.cocoondev.org/main/117/43.html) and CocoonAndHibernateTutorial (http://wiki.apache.org/cocoon/CocoonAndHibernateTutorial), but the former does not use the Cocoon connection pool and the latter does not use Spring. In my attempts I have found that Spring seems to create the DataSource and SessionFactory objects defined in it's applicationContext.xml file very early in the start-up process and outside the Cocoon framework. This means the classes cannot operate as Cocoon Components and consequently they cannot access the Cocoon connection pools. Is this correct or am I missing something obvious? I'm fairly new to programming at this level. Thanks for any help. William Moore - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is the cocoon portal redirection mandatory ?
Jean-Christophe Kermagoret a écrit : The first time you go to the cocoon portal, when you are not connected, you are redirected to the portal with a sessionid. This way, the server sets up a cookie to your browser. I want to suppress this redirection. Is it possible ? Jean-Christophe Jean-Baptiste Quenot a écrit : * Jean-Christophe Kermagoret: When you try to connect to the portal when not connected : * the server sends you a new URL to connect to through a 302 response with a new location that contains a cookie Just to be sure, redirection from where to where? I think I solve partly my problem. To tell Tomcat not to use cookies, I just put a cookies attribute to false in my context definition : cookies="false"> I still have my portal redirection problem Any ideas ? -- BlueXML Jean-Christophe Kermagoret Directeur associé [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is the cocoon portal redirection mandatory ?
The first time you go to the cocoon portal, when you are not connected, you are redirected to the portal with a sessionid. This way, the server sets up a cookie to your browser. I want to suppress this redirection. Is it possible ? Jean-Christophe Jean-Baptiste Quenot a écrit : * Jean-Christophe Kermagoret: When you try to connect to the portal when not connected : * the server sends you a new URL to connect to through a 302 response with a new location that contains a cookie Just to be sure, redirection from where to where? -- BlueXML Jean-Christophe Kermagoret Directeur associé [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is the cocoon portal redirection mandatory ?
* Jean-Christophe Kermagoret: > When you try to connect to the portal when not connected : * the > server sends you a new URL to connect to through a 302 response > with a new location that contains a cookie Just to be sure, redirection from where to where? -- Jean-Baptiste Quenot Systèmes d'Information ANYWARE TECHNOLOGIES Tel : +33 (0)5 61 00 52 90 Fax : +33 (0)5 61 00 51 46 http://www.anyware-tech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is the cocoon portal redirection mandatory ?
Hello, When you try to connect to the portal when not connected : * the server sends you a new URL to connect to through a 302 response with a new location that contains a cookie * you then make this connection with this cookie and you are connected For me, we made one trip (go and back) too much. Is there a way to oblige tomcat or cocoon to use jsession id without cookies ? I can simulate this by prohibiting my browser to accept cookies, but I have still this process of portal redirection. Any ideas to reduce this overhead ? It it possible ? Is it a tomcat problem or cocoon portal one ? a authentication fw ? Thanks for any help -- BlueXML Jean-Christophe Kermagoret Directeur associé [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Values in the XML in the Pipeline
This is probably a long shot as I haven't seen it mentioned in the documentation. Is it possible to get a particular value from a transform, say, and use that in the pipeline. Say I've got a transform that results in the XML: 86E72DC6-7EDA-47F2-8A3F-D2DA7E121EF0 I want to use that to either generate a using a resource call or to do a redirect (I've taken into account the redirection in pipelines note; http://cocoon.apache.org/2.1/userdocs/concepts/redirection.html). Passing that value to fetch a document (I can do that in a cinclude though so it can be part of the same pipe without starting a new generate). It would be handy to do but my current solution would be to transform to a cinclude based on that returned document structure and carry on the pipeline to get the intended end result. 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]
How to reset profile information without restarting
Hello, When I use the profiler, I presently need to restart the server if I don't want any previous data collected. Is there another way to reset profiler information ? Thanks -- BlueXML Jean-Christophe Kermagoret Directeur associé [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CForms, databinding and databases
On 11/15/05, Marc Salvetti <[EMAIL PROTECTED]> wrote: > > > > > Because... because... don't know why!! I think I need two widgets > > because of the need to have two kinds of telephone number... How I can > > use just one widget for both of them? > > Sorry if this is a dummy question... > > I think i see your problem now, i didn't understand you need to have several > different tel numbers stored for each contact, and not only one, but of a > different type > So i think, but it's just a guess, that you could have two repeaters on your > template, one for office numbers and one for mobile, and map them both a > different named resultset. > For instance, you get a resultset named officeNums, and a resultset named > mobileNums > Then in your form, you create to repeaters matching theses names. > > HTH, > > Marc Hi Marc, thanks for your answer, I think your solution will work... can you help me whit the code i need? Can you give me a snippet of the code you told me about? thanks again for your help -- Omar Adobati [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Existing XSP "not found" by Cocoon (only on Linux)
Hi, just adding another question: Is the protocol file:[pathname] like this OK? file:/var/www/dynaprism/lib/exist/webapp/../../../webapp/./search/highlight.xsp Or should that be file://, like this: file:///var/www/dynaprism/lib/exist/webapp/../../../webapp/./search/highlight.xsp I noticed in the cocoon-access log file that Cocoon can't find the XSP page, although it exists at the indicated location. The other XSP page which loads fine (search.xsp) doesn't leave a trace in the cocoon access log, however. Alfred suggested to get rid of the ../../../ and ./ in the path, but I do not know how to do this. Thanks, Jakob. WARN(2005-11-15) 12:51.49:356 [access] (/dy/highlight/bv/nr216/nr216_05/doc/n0001000200010007.xml) SocketListener0-1/CocoonServlet: The resource was not found org.apache.cocoon.ResourceNotFoundException: Resource not found.: org.apache.excalibur.source.SourceNotFoundException: file:/var/www/dynaprism/lib/exist/webapp/../../../webapp/./search/highlight.xsp doesn't exist. at org.apache.cocoon.components.source.SourceUtil.handle(SourceUtil.java:403) at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:174) at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:100) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:139) On 27/10/05, Nathaniel Alfred <[EMAIL PROTECTED]> wrote: > You should get rid of the /../ and /./ in > file:/var/www/dynaprism/lib/exist/webapp/../../../webapp/./search/highlight.xsp. > It seems to confuse the package name generation once deducing it from the > verbatim path and from a canonical form. > > If you look into the generated highligh_xsp.java file (I think for Jetty the > default tempdir is under /var/tmp) you should find a package name like > org.apache.cocoon.www.webapp.search. > > HTH, Alfred. > > -Original Message- > From: Jakob Fix [mailto:[EMAIL PROTECTED] > Sent: Donnerstag, 27. Oktober 2005 14:08 > To: users@cocoon.apache.org > Subject: Existing XSP "not found" by Cocoon (only on Linux) > > > Hello, > > I'm having a weird problem porting a web application to Linux. The > application itself consists of Java 1.5 / Jetty / Cocoon 2.1.7 / Exist > XML database. It was developped in a Windows environment, but now we > want to deploy it on a Linux server. Almost everything went very > well, it's Java after all. > > However, one persisting problem I have is this: Cocoon appears to not > be able to compile one of the two XSP pages saying that it can't be found, > although it absolutely positively exists at the location indicated > (see attached core.log and access.log extracts). > > I've added the tools.jar to my jre's lib/ directory because I read on > the cocoon website its absence may not allow to compile certain > jsp/xsp pages. However, I have two XSP pages of which one functions > correctly while the other one cannot apparently be found and thus > compiled. > > I've tested this on another Linux server (also Debian) with the same results. > > I'm not really sure what other information I should provide (is the > actual XSP code interesting?). > > This problem really puzzles me. Any help is greatly appreciated. > > -- > cheers, > Jakob. > > > > core.log -8<-8<-8<-8<- > > INFO(2005-10-27) 13:56.04:386 [core.program-generator] > (/dy/highlight/bv/rules/en_2005/doc/n00010001000100020004.xml) > SocketListener0-1/ProgramGeneratorImpl: The serverpage > [file:/var/www/dynaprism/lib/exist/webapp/../../../webapp/./search/highlight.xsp > ] could not be preloaded, will be re-created > (org.apache.cocoon.components.language.LanguageException: Unable to > preload program org/webapp/__/search/highlight_xsp_: > org.apache.cocoon.components.language.LanguageException: Could not > load class for program 'org/webapp/__/search/highlight_xsp_' due to a > java.lang.ClassNotFoundException: org.webapp.__.search.highlight_xsp_) > INFO(2005-10-27) 13:56.04:567 [core.program-generator] > (/dy/highlight/bv/rules/en_2005/doc/n00010001000100020004.xml) > SocketListener0-1/ProgramGeneratorImpl: The serverpage > [file:/var/www/dynaprism/lib/exist/webapp/../../../webapp/./search/highlight.xsp > ] could not be preloaded, will be re-created > (org.apache.cocoon.components.language.LanguageException: Unable to > preload program org/webapp/__/search/highlight_xsp_: > org.apache.cocoon.components.language.LanguageException: Could not > load class for program 'org/webapp/__/search/highlight_xsp_' due to a > java.lang.ClassNotFoundException: org.webapp.__.search.highlight_xsp_) > INFO(2005-10-27) 13:56.04:953 [core.program-generator] > (/dy/highlight/bv/rules/en_2005/ext/n00010001000100020004000100040003.xml) > SocketListener0-1/ProgramGeneratorImpl: The serverpage > [file:/var/www/dynaprism/lib/exist/webapp/../../../webapp/./search/highlight.xsp > ] cou
Re: Existing XSP "not found" by Cocoon (only on Linux)
Lars, thanks for your reply. It's been quite some time, but I still have the problem I described originally. The most astonishing is that out of two XSP pages, one ("search.xsp") is compiled correctly, while the other one ("highlight.xsp") is not. Although we had some problems with case sensitivity when moving from Windows to Linux, this was unrelated to the XSP pages (some javascript files were named using CamelCase, but called using simple Capitalcase). The temporary directory for Cocoon's compiled XSP pages on the Linux machine is: /tmp/Jetty__8080__/cocoon-files/org/webapp/__/search/ BTW, where is this temporary directory configured? Currently, it contains only the search_xsp.class and search_xsp.java files. I tried to manually copy the two corresponding highlight_xsp.(java,class) files from the Windows to this directory, however they disappeared almost instantly when trying to access the XSP page. The two XSP pages are quite similar. I can attach them if this would help to analyse the problem. On 04/11/05, Lars Huttar <[EMAIL PROTECTED]> wrote: > Jakob Fix wrote: > > >Hello, > > > >I'm having a weird problem porting a web application to Linux. The > >application itself consists of Java 1.5 / Jetty / Cocoon 2.1.7 / Exist > >XML database. It was developped in a Windows environment, but now we > >want to deploy it on a Linux server. Almost everything went very > >well, it's Java after all. > > > >However, one persisting problem I have is this: Cocoon appears to not > >be able to compile one of the two XSP pages saying that it can't be found, > >although it absolutely positively exists at the location indicated > >(see attached core.log and access.log extracts). > > > >I've added the tools.jar to my jre's lib/ directory because I read on > >the cocoon website its absence may not allow to compile certain > >jsp/xsp pages. However, I have two XSP pages of which one functions > >correctly while the other one cannot apparently be found and thus > >compiled. > > > >I've tested this on another Linux server (also Debian) with the same results. > > > >I'm not really sure what other information I should provide (is the > >actual XSP code interesting?). > > > >This problem really puzzles me. Any help is greatly appreciated. > > [snip] > > > I haven't looked at your details or log, but the problem sounds like one > we had, based on case sensitivity issues: > The compiled XSP page exists but has the wrong casing; the piece of > Cocoon thath would compile missing files case-insensitively recognizes > its presence and therefore doesn't recompile it, but the piece of Cocoon > that would execute the compile file case-sensitively declares it's not > there. (The casing of the compiled file was wrong because we had changed > the casing of the xsp file after having it compiled once; Cocoon was > never able to handle that.) > This problem could be affected by having developed on Windows (which has > more case insensitivity) and run on Linux. > > We solved the problem under Tomcat by deleting the work/ folder, forcing > a recompile of all XSP pages. Sounds like you would do this by deleting > > /var/www/dynaprism/lib/exist/tools/jetty/work > > > If that doesn't help, let us know... I'm doing it right now :-) Thanks. -- cheers, Jakob. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CForms, databinding and databases
Because... because... don't know why!! I think I need two widgetsbecause of the need to have two kinds of telephone number... How I can use just one widget for both of them?Sorry if this is a dummy question... I think i see your problem now, i didn't understand you need to have several different tel numbers stored for each contact, and not only one, but of a different type So i think, but it's just a guess, that you could have two repeaters on your template, one for office numbers and one for mobile, and map them both a different named resultset. For instance, you get a resultset named officeNums, and a resultset named mobileNums Then in your form, you create to repeaters matching theses names. HTH, Marc thanks in advance - is right now? ;)--Omar Adobati [EMAIL PROTECTED]-To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CForms, databinding and databases
> I might be wrong, but if telephoneNumber is a table, i think it > should be mapped to a repeater, not to a field. > > Yes, maybe it was just a mistake, but anyway I could understand... > Why do you need 2 widgets if you have only 1 field in your > table ? Can't you make a conditional validation based on the > value of your idType widget ? > > Marc > Because... because... don't know why!! I think I need two widgets because of the need to have two kinds of telephone number... How I can use just one widget for both of them? Sorry if this is a dummy question... thanks in advance - is right now? ;) -- Omar Adobati [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CForms, databinding and databases
> > How's that a problem? works perfectly! > This is right, I know this and I try it with the name and last name fields, but they are unique (I have just one name and just on last name for any contact)... but I have two (or more) telephon numbers to store... so the way you suggest to me will work if in my DB shema I'll have a fiels for any telephone number I need... but, as i saied, it isn't so... > I had the same kind of application (a small helpdesk system) >when I wrote this flowscript/jdbi stuff. > > To use the automatic binding used in this sample, your form has > to reflect the structure of your database, i.e. have a repeater to > represent the list of phone numbers. You can then iterate on the > rows of the repeater to read/write them from/to the database. can you tell me how to use the repeater? Where I can find a sample? > That should be "thanks for any advice", or "thanks in advance" :-) > > Sylvain Yes, it should be thanks in advance, sorry my english is not good, im Italian... I hope to improve it!!! -- Dr. Omar Adobati [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Extending the XML Serializer [solved]
Found the answer on http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/sax/package-summary.html: Use super.processingInstruction(Result.PI_DISABLE_OUTPUT_ESCAPING, ""); and super.processingInstruction(Result.PI_ENABLE_OUTPUT_ESCAPING, ""); :-) Geert Geert Josten wrote: Hi, I have extended the XML Serializer to make it write named entities. But they come out like "&ent;". Is there a way to disable the 'output escaping'? Or is there another convenient way of making this work? Regards, Geert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]