Re: JDK 1.3.1 is driving me MAD!
Tried every thing i know. I downloaded the latest Tomcat and cocoon both built with jdk 1.4. Now Tomcat doesn't even run. cocoon just take up too much memory it keep throwing out of memory error. set catalina ops to 32 and 64 and it still doesn't work. does anyone know latest j-connector is built with what? jdk 1.4 let say the classes is built with jdk 1.4 it should run using jdk 1.3 right? From: [EMAIL PROTECTED] [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: JDK 1.3.1 is driving me MAD! Date: Fri, 27 Sep 2002 15:43:59 -0400 As Booby pointed out ... did you try and rebuild C 2.0.3 with the new JDK 1.4? I had to rebuild and it worked for me. If you don't have the old mysql jdbc driver, I can dig it up and send to your email directly. Conrad Original Message: - From: Roger Ting [EMAIL PROTECTED] Date: Fri, 27 Sep 2002 19:29:10 + To: [EMAIL PROTECTED] Subject: Re: JDK 1.3.1 is driving me MAD! yeah i agree.. i am using cocoon 2.0.3 built with jdk 1.3. So you are saying i can't use j-connector supplied by mysql? Is there any driver that i can use with cocoon built on jdk1.3? more specifically jdk1.3.1 This would help me a lot THX! From: Bobby Mitchell [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: JDK 1.3.1 is driving me MAD! Date: Fri, 27 Sep 2002 15:08:45 -0400 Roger Ting wrote: Have anyone got the prolem of using ESQL when using cocoon 2.0.3 and Tomcat 4.0.4 and jdk 1.3.1 on unix solaris? i follow all the correct instruction and cocoon just keep throwing me no suitable driver error. I have put in the j connector jar file into WEB-INF/lib directory. configure cocoon.xconf and web.xml. The weird thing is i did the same thing on my pc except my jdk is jdk 1.4 . It works perfectly okay. When i do it on a unix machine with jdk 1.3.1 it throws no suitable driver error. I can't use jdk 1.4 on the unix server because it keep throwing java.lang.OutOfMemoryError error when i fire up tomcat. As it is a share machine each user have limited memory. I asked about this before Apparently, Tomcat is memory starved. Is it a know issue that the setup of Solaris , jdk 1.3.1 or lower ,mysql, cocoon 2.0.3 and Tomcat 4.0.4 doesn't work for ESQL? all the xsp is fine as long we don't need to connect to mysql database. Anyone? According to http://xml.apache.org/cocoon/installing/index.html Due to changes in JDBC between JDK 1.3 and JDK 1.4, it is not possible to use Cocoon build on JDK 1.3 with JDK 1.4 when it comes to database connections. _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.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] -- Robert J. (Bobby) Mitchell Systems Administrator NASA Institute for Advanced Concepts 555A 14th St Atlanta, Ga. 30318 Phone: (404)347-9633 Fax: (404)347-9638 - 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] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx - 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] mail2web - Check your email from the web at http://mail2web.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] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx - 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]
Master-Detail form using Cocoon
Hi folks, Can someone provide an example of a lets said a invoice or something similar using Cocoon and database? 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]
post data in XML format
think about how POST work. with POST we can send data (single values) from a form to server over HTTP is it possible to send data from a client (IE) using a form(or anything else) in XML format and how can cocoon recieve this xml stuctured data and handle them (create the .xml file local or parse this file in memory) any suggestion about the technologies i have to look ? thank i dont know if this is the right list kounis stavros - 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]
Cocoon 2, Docbook and Norman Walsh's Stylesheets
I have succeded in transforming Docbook to pdf and to html on cocoon 2.0.3 using the stylesheet by Norman Walsh on the official docbook repository (http://docbook.sourceforge.net/projects/xsl/index.html). Cocoon has some weakness in doing this and I spent 15 days to make it work properly, so if you want save some time and you want to do something similar you are interested in this mail. What I learned is that: 1. While xalan can do docbook transformation to xslfo correctly from the command line, on cocoon it can't. 2. If you use Saxon instead of xalan the transformation is almost successful but not completly: ie. I lost all the sect1/title. 3. If you use Saxon you loose all the xsp capabilities in cocoon (I want to make sql transformation with as400 and Oracle) 4. Incremental processing is not suggested for docbook to pdf transformation The solutions I have found to this problems thanks to all I have read on the mailing lists and on the official site is: 1. Setting up cocoon to use xalan and saxon in alternative (defult: xalan) and set incremental processing to false in Saxon 2. Renaming saxon.jar to z-saxon.jar (I am not sure if is necessary but in this way works) 3. Modifying Saxon to make it use the parser xerces instead of aelfred Let'see theese points in detail 1. Setting up cocoon to use xalan and saxon in alternative (defult: xalan) and set incremental processing to false in Saxon. To do this: 1.1 Put saxon652.jar WEB-INF/lib ( in the cocoon directory of course) 1.2 Here are extracts of what you have to add in cocoon.xconf and sitemap.xmap: # cocoon.xconf component role=org.apache.cocoon.components.xslt.XSLTProcessor/Saxon class=org.apache.cocoon.components.xslt.XSLTProcessorImpl logger=core.xslt-processor parameter name=use-store value=true/ parameter name=incremental-processing value=false/ parameter name=transformer-factory value=com.icl.saxon.TransformerFactoryImpl/ /component # sitemap.xmap map:transformer name=xslt-saxon pool-grow=2 pool-max=32 pool-min=8 src=org.apache.cocoon.transformation.TraxTransformer use-request-parametersfalse/use-request-parameters use-browser-capabilities-dbfalse/use-browser-capabilities-db xslt-processor-roleorg.apache.cocoon.components.xslt.XSLTProcessor/Saxon/xslt-processor-role /map:transformer /citationFromAMail.SeeTheReferences in yor pipeline when you do a transformation from docbook to pdf you will use something similar: map:match pattern=*.pdf map:generate src={1}.docbook/ map:tranform type=xslt-saxon src=WhereverYouPutIt/fo/docbook.xsl/ map:serialize type=fo2pdf/ /map:match map:match pattern=*.html map:generate src={1}.docbook/ map:tranform type=xslt-saxon src=WhereverYouPutIt/html/docbook.xsl/ map:serialize type=fo2pdf/ /map:match In this way if you will leave xslt as the default type of transformation, you will use use xalan and all his xsp capabilities for all the the other cocoon functions. 2. Renaming saxon.jar z-saxon.jar (I am not sure that is necessary but in this way works) 3. Modifying Saxon to make it use xerces instead of aelfred as parser Change the content of META-INF/services/javax.xml.parsers.SAXParserFactory from com.icl.saxon.aelfred.SAXParserFactoryImpl to org.apache.xerces.jaxp.SAXParserFactoryImpl. That tells Saxon to use xerces instead of aelfred as parser. Don't be worried it is not so complicated: you have to extract the file (javax.xml.parsers.SAXParserFactory) from saxon.jar edit it (is a text file) and to put it again in the same place in saxon.jar Conclusion: I must say that the Saxon and xalan problems in using Norman Walsh's stylesheets should be addressed inside cocoon developing activity. It shouldn't be so hard to make docbook to pdf transformation work. Comments are welcome. Gabriele Domenichini References: To use different xslt processors or different behaviour of the same: http://xml.apache.org/cocoon/snippet/snippet-xslt-options.html To use saxon in alternative the mail from which I took the solution is: (http://www.mail-archive.com/cocoon-users@xml.apache.org/msg15968.html) which tell exactly what to do: To change the behavior of saxon there's a mail (http://sources.redhat.com/ml/docbook-apps/2002-q2/msg00397.html) which explain three workaround. I have choosen the third - 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: Source Writing Transformer: Adding namespaces
--- Vadim Gritsenko [EMAIL PROTECTED] wrote: Alex Romayev wrote: I'm still struggling with this problem. Let me try to state it more clearly: I would like to write XML to a file. My XML contain namespaces. I declare the namespaces in the root element, just the way I would like it to be in the file and surround my XML with source:write tag. However, SourceWritingTransformer seems to be dropping the namespace declarations and writing everything else! Is this is a bug within the transformer or is there another way of getting the namespace declarations written out? Could be a bug. Try moving ns declaration into the root tag of the document you are writing, i.e. moving declaration inside the write tag. Vadim I have, still the same result... Any other ideas? Alex I would appreciate any help. -Alex --- Alex Romayev [EMAIL PROTECTED] wrote: Not sure how I would do that, here is an example: What I would like to get is: news xmlns:pub=http://www.romayev.com/publication/1.0; item id=N100AE pub:publication pub:published-date2001-11-06/pub:published-date ... /pub:publication /item /news Here is the code I use for SourceWritingTransformer: source:write src=content/news.xml news xmlns:pub=http://www.romayev.com/publication/1.0; item id=N100AE pub:publication pub:published-date2001-11-06/pub:published-date ... /pub:publication /item /news /source:write --- funing [EMAIL PROTECTED] wrote: Can you use the insert tag? On Thu, 26 Sep 2002 02:17:56 -0700 (PDT) Alex Romayev [EMAIL PROTECTED] wrote: Hi, I'm using Source Writing Transformer to write XML to file. I need to add namespace declarations to the root node, does anyone know how to do this? Thanks, -Alex -- funing [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] - 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]
how to access without cocoon
Hi! I can run my webapp by http://host:8080/cocoon/xxx correctly. How to access it without cocoon by http://host:8080/xxx ? I change the map:pattern but it doesn't work :( best regards -- funing [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]
Re: how to access without cocoon
The easiest way is coping all the files that you find in $CATALINA_HOME/webapps/cocoon/WEB-INF into: $CATALINA_HOME/webapps/myapp but you will need a new sitemap into this new location Antonio Gallardo El Sábado, 28 de Septiembre de 2002 03:07, funing escribió: Hi! I can run my webapp by http://host:8080/cocoon/xxx correctly. How to access it without cocoon by http://host:8080/xxx ? I change the map:pattern but it doesn't work :( best regards - 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: how to access without cocoon
Funing, what about reading the Cocoon FAQ at: http://xml.apache.org/cocoon/faq/faq-configure-environment.html ? Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: funing [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 28, 2002 11:08 AM To: [EMAIL PROTECTED] Subject: how to access without cocoon Hi! I can run my webapp by http://host:8080/cocoon/xxx correctly. How to access it without cocoon by http://host:8080/xxx ? I change the map:pattern but it doesn't work :( best regards -- funing [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] - 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: post data in XML format
El Sábado, 28 de Septiembre de 2002 01:57, Cocoon User escribió: think about how POST work. with POST we can send data (single values) from a form to server over HTTP is it possible to send data from a client (IE) using a form(or anything else) in XML format In 2.1-CVS There is XMLForm for form handling and webservices. Antonio Gallardo and how can cocoon recieve this xml stuctured data and handle them (create the .xml file local or parse this file in memory) webservices. any suggestion about the technologies i have to look ? thank i dont know if this is the right list kounis stavros - 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]
XMLform DEMO
hi guys do u know where can i find tutorial or demostrations or a reference about XMLforms in cocoon? thanks kounis stavros - 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 DEMO
In the CVS of the next comming version 2.1 are some simple examples of XMLForms. Antonio Gallardo El Sábado, 28 de Septiembre de 2002 03:37, Cocoon User escribió: hi guys do u know where can i find tutorial or demostrations or a reference about XMLforms in cocoon? thanks kounis stavros - 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]
Re: XMLform DEMO
Cocoon User wrote: hi guys do u know where can i find tutorial or demostrations or a reference about XMLforms in cocoon? http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard.html Ross thanks kounis stavros - 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]
Re: Master-Detail form using Cocoon
forms: http://xml.apache.org/cocoon/userdocs/concepts/xmlform.html (follow the howto link for examples) databases: http://xml.apache.org/cocoon/userdocs/concepts/databases.html - Original Message - From: Antonio Gallardo Rivera [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 28, 2002 2:27 AM Subject: Master-Detail form using Cocoon Hi folks, Can someone provide an example of a lets said a invoice or something similar using Cocoon and database? 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] - 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: [Q] Cocoon 2.1 on JBoss+Tomcat
A slight advancement: The problem is still there with JBoss 3.0, but with JBoss 2.4.9 I got to a point where Cocoon is reported deployed but the when I try to hit the home page, the server returns a 302 redirect to the home page, which of course causes an infinite loop. GET /cocoon/ HTTP/1.0 HTTP/1.1 302 Moved Temporarily Content-Type: text/html Connection: close Date: Sat, 28 Sep 2002 15:27:05 GMT X-Cocoon-Version: @version@ Location: http://localhost:8080/cocoon/ Server: Apache Tomcat/4.0.4 (HTTP/1.1 Connector) htmlheadtitleApache Tomcat/4.0.4 - Error report/titleSTYLE!--H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color : white;ba ckground-color : #0086b2;} HR{color : #0086b2;} --/STYLE /headbodyh1Apache To mcat/4.0.4 - HTTP Status 302 - Moved Temporarily/h1HR size=1 noshadepbtype/ b Status report/ppbmessage/b uMoved Temporarily/u/ppbdescription/b uThe requested resource (Moved Temporarily) has moved temporarily to a new locatio n./u/pHR size=1 noshade/body/html - Original Message - From: Ivelin Ivanov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 28, 2002 9:56 AM Subject: [Q] Cocoon 2.1 on JBoss+Tomcat I have tried to run the latest C2.1 with JBoss + Tomcat. I get the same error with both JBoss 3.0 + Tomcat 4.0.4 and JBoss 2.4.9 + Tomcat 4.0.4 It appears like a JNDI misconfiguration. Has someone done it before, that can give me a clue? I would like to get this working and add a section on the Installation page. - Cocoon 2 - Internal server error type fatal message Failed to load sitemap from file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema p.xmap description org.apache.cocoon.ProcessingException: Failed to load sitemap from file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema p.xmap: org.apache.cocoon.ResourceNotFoundException: Resource not found.: org.apache.excalibur.source.SourceNotFoundException: Resource not found file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema p.xmap sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/ path-info stack-trace org.apache.cocoon.ProcessingException: Failed to load sitemap from file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema p.xmap: org.apache.cocoon.ResourceNotFoundException: Resource not found.: org.apache.excalibur.source.SourceNotFoundException: Resource not found file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema p.xmap at org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(DefaultT reeBuilder.java:393) at org.apache.cocoon.components.treeprocessor.TreeProcessor.setupRootNode(TreeP rocessor.java:401) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:320) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:308) at org.apache.cocoon.Cocoon.process(Cocoon.java:595) -=Ivelin=- - 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]
RE: Master-Detail form using Cocoon
-Original Message- From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]] Sent: September 28, 2002 11:20 AM To: [EMAIL PROTECTED] Subject: Re: Master-Detail form using Cocoon forms: http://xml.apache.org/cocoon/userdocs/concepts/xmlform.html (follow the howto link for examples) databases: http://xml.apache.org/cocoon/userdocs/concepts/databases.html - Original Message - From: Antonio Gallardo Rivera [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 28, 2002 2:27 AM Subject: Master-Detail form using Cocoon Hi folks, Can someone provide an example of a lets said a invoice or something similar using Cocoon and database? 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] - 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]
jndi, oracle, generator
hello, I have a wierd problem. I am almost about to kill myself for this. It would seem this has nothing to with cocoon but it has. String ln = jdbc/db; Hashtable env = new Hashtable (5); env.put (Context.INITIAL_CONTEXT_FACTORY, com.sun.jndi.fscontext.RefFSContextFactory); env.put (Context.PROVIDER_URL, file:/rertn/JNDI); ctx = new InitialContext(env); OracleOCIConnectionPool cpool = new OracleOCIConnectionPool(apurva,apffapz, jdbc:oracle:oci:@RERTNDB, null); ctx.unbind(ln); ctx.bind (ln,cpool); This is a snippet of code from a java file that i use to bind a OracleOCIConnectionPool obj with JNDI. In the same class i also do a look up like this: OracleOCIConnectionPool cpool = (OracleOCIConnectionPool) ctx.lookup (ln); OracleOCIConnection conn = (OracleOCIConnection) cpool.getConnection(); works fine. I used this lookup code from the cocoon generator for months not a problem. Everything worked fine. It is a windows 2000 server with oracle 9i DB. Tomcat,cocoon,oracle on the same server. I uninstalled oracle 9i and installed oracle 9i second release. Since orcale did not let me keep the same oracle instance name, I changed the instance name from rertn to rertndb. I made the obcious changes like env.put (Context.PROVIDER_URL, file:/rertndb/JNDI); in binding. I compiled the application and none of the generator works anymore. I almost got a stroke for a moment nothing in the application works. What is wierd is that the class file which does the binbing, as you know also has a look-up, the look-up for the obj works there and i can fire queries. So it seems there is nuthing wrong with the OCI driver. When i say the generator do not work means: it stops excecution at OracleOCIConnectionPool cpool = (OracleOCIConnectionPool) ctx.lookup (ln); throws no exception. I tried to do a look-up from an independent jsp page. No exception in caught but the page shows java.lang.UnsatisfiedLinkError: make_c_state error. (which is runtime i believe) HELP! -Apurva Zaveri __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.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: jndi, oracle, generator
opps! I made the obcious changes like env.put (Context.PROVIDER_URL, file:/rertndb/JNDI); in binding. read this in below as: I made the obvious changes like OracleOCIConnectionPool cpool = new OracleOCIConnectionPool(apurva,apffapz, jdbc:oracle:oci:@RERTNDB, null); it was RERTN before. --- apurva zaveri [EMAIL PROTECTED] wrote: hello, I have a wierd problem. I am almost about to kill myself for this. It would seem this has nothing to with cocoon but it has. String ln = jdbc/db; Hashtable env = new Hashtable (5); env.put (Context.INITIAL_CONTEXT_FACTORY, com.sun.jndi.fscontext.RefFSContextFactory); env.put (Context.PROVIDER_URL, file:/rertn/JNDI); ctx = new InitialContext(env); OracleOCIConnectionPool cpool = new OracleOCIConnectionPool(apurva,apffapz, jdbc:oracle:oci:@RERTNDB, null); ctx.unbind(ln); ctx.bind (ln,cpool); This is a snippet of code from a java file that i use to bind a OracleOCIConnectionPool obj with JNDI. In the same class i also do a look up like this: OracleOCIConnectionPool cpool = (OracleOCIConnectionPool) ctx.lookup (ln); OracleOCIConnection conn = (OracleOCIConnection) cpool.getConnection(); works fine. I used this lookup code from the cocoon generator for months not a problem. Everything worked fine. It is a windows 2000 server with oracle 9i DB. Tomcat,cocoon,oracle on the same server. I uninstalled oracle 9i and installed oracle 9i second release. Since orcale did not let me keep the same oracle instance name, I changed the instance name from rertn to rertndb. I made the obcious changes like env.put (Context.PROVIDER_URL, file:/rertndb/JNDI); in binding. I compiled the application and none of the generator works anymore. I almost got a stroke for a moment nothing in the application works. What is wierd is that the class file which does the binbing, as you know also has a look-up, the look-up for the obj works there and i can fire queries. So it seems there is nuthing wrong with the OCI driver. When i say the generator do not work means: it stops excecution at OracleOCIConnectionPool cpool = (OracleOCIConnectionPool) ctx.lookup (ln); throws no exception. I tried to do a look-up from an independent jsp page. No exception in caught but the page shows java.lang.UnsatisfiedLinkError: make_c_state error. (which is runtime i believe) HELP! -Apurva Zaveri __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.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!? New DSL Internet Access from SBC Yahoo! http://sbc.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]
subsitemap and JSP
I have JSP generator and Reader sample in the cocoon page working fine from the main sitemap. However, when I try the exact sample in subsitemap, it throws errror. I even tried by declaring JSP generator and reader in subsitemap, hoping that was the problem. Has anyone used JSP in subsitemap successfully ?? Any suggestions on how I can fix it ? Thanks Sushil _ Chat with friends online, try MSN Messenger: http://messenger.msn.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: [Q] Cocoon 2.1 on JBoss+Tomcat
Another advancement. The cocoon.war build for JDK 1.4 from C2.1 HEAD, works great with JBoss-2.4.9_Tomcat-4.0.4 after following the instructions on the Cocoon Install page for c2.0.3. JBoss 3.0 is still a challenge. - Original Message - From: Ivelin Ivanov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 28, 2002 9:56 AM Subject: [Q] Cocoon 2.1 on JBoss+Tomcat I have tried to run the latest C2.1 with JBoss + Tomcat. I get the same error with both JBoss 3.0 + Tomcat 4.0.4 and JBoss 2.4.9 + Tomcat 4.0.4 It appears like a JNDI misconfiguration. Has someone done it before, that can give me a clue? I would like to get this working and add a section on the Installation page. - Cocoon 2 - Internal server error type fatal message Failed to load sitemap from file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema p.xmap description org.apache.cocoon.ProcessingException: Failed to load sitemap from file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema p.xmap: org.apache.cocoon.ResourceNotFoundException: Resource not found.: org.apache.excalibur.source.SourceNotFoundException: Resource not found file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema p.xmap sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/ path-info stack-trace org.apache.cocoon.ProcessingException: Failed to load sitemap from file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema p.xmap: org.apache.cocoon.ResourceNotFoundException: Resource not found.: org.apache.excalibur.source.SourceNotFoundException: Resource not found file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema p.xmap at org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(DefaultT reeBuilder.java:393) at org.apache.cocoon.components.treeprocessor.TreeProcessor.setupRootNode(TreeP rocessor.java:401) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:320) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:308) at org.apache.cocoon.Cocoon.process(Cocoon.java:595) -=Ivelin=- - 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]
post data in XML format
The other answer you received about using standard HTML forms is probably the way you should go, but as to the specific question you asked about generating xml at the browser, there is a way to do this if your situation allows you to stay IE only - The XMLHTTPConnection ActiveXObject. The following links should get you started: http://jibbering.com/2002/4/httprequest.html http://www.15seconds.com/issue/991125.htm Disclaimer: there have been security problems related to this feature and I haven't followed whether it has been disabled in default configurations, or also whether it has been removed from IE 6 generation. That part was not a cocoon question. Handling the data once it gets in is. If you do the XMLHTTPConnection, you'll get at the data as part of the request body, most likely in the POST body - this has been discussed before and you can search the mail list archives for specific instructions. HTH, Geoff Howard __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.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]