Re: Cocoon 2 with jboss-3.0.4_tomcat-4.1.12
Hello! hmmm, i think i'm too stupid for this task... i have assembled my app as follows: contents of myapp.ear file: myapp.war META-INF application.xml Manifest.mf with the manifest: Manifest-Version: 1.0 Cocoon-Libs: commons-collections-1.0.jar xalan-2.3.1.jar xml-apis.jar commons-httpclient-20020423.jar logkit-20020529.jar xercesImpl-2.0.0.jar avalon-excalibur-vm12-20020705.jar jakarta-regexp-1.2.jar avalon-framework-20020627.jar deli-0.50.jar resolver-20020130.jar batik-all-1.5b2.jar hsqldb-1.61.jar jisp_1_0_2.jar lucene-1.2-rc2.jar fop-0.20.3.jar bsf-2.2.jar xmldb-api-2001.jar rhino-1.5r3.jar jena-1.3.0.jar xt-19991105.jar jakarta-poi-1.5.0-dev-20020408.jar.jar jtidy-04aug2000r7-dev.jar rdffilter.jar velocity-1.2.jar maybeupload_1-0-5pre3.jar jstyle.jar commons-logging-1.0.jar jimi-1.0.jar pizza-1.1.jar cocoon-2.0.3-eldap.jar commons-JXPath-20020320.jar castor-0.9.3.9-xml.jar krysalis-wings-0.1.0-dev-2.jar cocoon-scratchpad.jar Cocoon-Lib-commons-collections-1_0_jar: 1026722984000 Cocoon-Lib-xalan-2_3_1_jar: 1026722984000 Cocoon-Lib-xml-apis_jar: 1026722984000 Cocoon-Lib-commons-httpclient-20020423_jar: 1026722984000 Cocoon-Lib-logkit-20020529_jar: 1026722984000 ... and so on. contents of the myapp.war file: applets/ css/ reports/ stylesheets/ sitemap.xmap WEB-INF/ cocoon.xconf Manifest.mf web.xml classes/ lib/ with the manifest: Manifest-Version: 1.0 Cocoon-Libs: commons-collections-1.0.jar xalan-2.3.1.jar xml-apis.jar commons-httpclient-20020423.jar logkit-20020529.jar xercesImpl-2.0.0.jar avalon-excalibur-vm12-20020705.jar jakarta-regexp-1.2.jar avalon-framework-20020627.jar deli-0.50.jar resolver-20020130.jar batik-all-1.5b2.jar hsqldb-1.61.jar jisp_1_0_2.jar lucene-1.2-rc2.jar fop-0.20.3.jar bsf-2.2.jar xmldb-api-2001.jar rhino-1.5r3.jar jena-1.3.0.jar xt-19991105.jar jakarta-poi-1.5.0-dev-20020408.jar.jar jtidy-04aug2000r7-dev.jar rdffilter.jar velocity-1.2.jar maybeupload_1-0-5pre3.jar jstyle.jar commons-logging-1.0.jar jimi-1.0.jar pizza-1.1.jar cocoon-2.0.3-eldap.jar commons-JXPath-20020320.jar castor-0.9.3.9-xml.jar krysalis-wings-0.1.0-dev-2.jar cocoon-scratchpad.jar Cocoon-Lib-commons-collections-1_0_jar: 1026722984000 Cocoon-Lib-xalan-2_3_1_jar: 1026722984000 Cocoon-Lib-xml-apis_jar: 1026722984000 Cocoon-Lib-commons-httpclient-20020423_jar: 1026722984000 Cocoon-Lib-logkit-20020529_jar: 1026722984000 Cocoon-Lib-xercesImpl-2_0_0_jar: 1026722984000 Cocoon-Lib-avalon-excalibur-vm12-20020705_jar: 1026722984000 Cocoon-Lib-jakarta-regexp-1_2_jar: 1026722984000 ... and so on. i think i have great troubles understanding this ... thx, Chris On Tue, Feb 04, 2003 at 11:03:10PM +0100, Robert Simmons wrote: > > The manifest is located, strangely enough, in the WEB-INF directory of the > latest release version of the war. You will have to use the entries in that > manifest to create your own war. Please look at the -m option to the jar > command or, better yet, the ant jar task. -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed msg24140/pgp0.pgp Description: PGP signature
Re: Cocoon 2 with jboss-3.0.4_tomcat-4.1.12
Hello! thx for your reply. can you post an example manifest file? and where do i have to put the manifest file? into the cocoon war file or into the ear file ? thx, Chris On Tue, Feb 04, 2003 at 11:28:06AM +0100, [EMAIL PROTECTED] wrote: > > The problem is that you need the manifest file that has the Cocoon-Libs entry and >the other entries for the Jars in the cocoon.war. If oyu dont build using this >manifest than cocoon will not be able to locate anything. If you deploy as an >exploded war than you will not have this problem. > > - Original Nachricht > > > > has anybody cocoon 2 with jboss 3/tomcat 4.1 up and running? > > > > i have tried to deploy my c2 application which usually runs on jboss > > 2.4.4/tomcat 3.2 (j2sdk1.3) to the newly installed jboss3.0.4/tomcat > > 4.1.12 (j2sdk1.4) environment. i have also build an ear file with the c2 > > war file and an application.xml descriptor. > > > > in both cases i got the following exception: > > > > type fatal > > > > message Language Exception > > > > description org.apache.cocoon.ProcessingException: Language Exception: > > org.apache.cocoon.components.language.LanguageException: Error compiling -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed msg24072/pgp0.pgp Description: PGP signature
Cocoon 2 with jboss-3.0.4_tomcat-4.1.12
Hello! has anybody cocoon 2 with jboss 3/tomcat 4.1 up and running? i have tried to deploy my c2 application which usually runs on jboss 2.4.4/tomcat 3.2 (j2sdk1.3) to the newly installed jboss3.0.4/tomcat 4.1.12 (j2sdk1.4) environment. i have also build an ear file with the c2 war file and an application.xml descriptor. in both cases i got the following exception: type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 22, column 49: cannot access class Component; file org/apache/avalon/framework/component/Component.class not found Line 23, column 53: cannot access class Configurable; file org/apache/avalon/framework/configuration/Configurable.class not found Line 24, column 53: cannot access class Configuration; file org/apache/avalon/framework/configuration/Configuration.class not found Line 25, column 53: cannot access class ConfigurationException; file org/apache/avalon/framework/configuration/ConfigurationException.class not found Line 26, column 53: cannot access class DefaultConfiguration; file org/apache/avalon/framework/configuration/DefaultConfiguration.class not found Line 27, column 50: cannot access class Parameters; file org/apache/avalon/framework/parameters/Parameters.class not found Line 29, column 29: cannot access class Constants; file org/apache/cocoon/Constants.class not found Line 30, column 29: cannot access class ProcessingException; file org/apache/cocoon/ProcessingException.class not found Line 31, column 29: cannot access class ResourceNotFoundException; file org/apache/cocoon/ResourceNotFoundException.class not found Line 32, column 29: cannot access class ConnectionResetException; file org/apache/cocoon/ConnectionResetException.class not found Line 33, column 36: cannot access class Action; file org/apache/cocoon/acting/Action.class not found Line 34, column 41: cannot access class Environment; file org/apache/cocoon/environment/Environment.class not found Line 35, column 41: cannot access class Redirector; file org/apache/cocoon/components/language/markup/xsp/XSPRequestHelper.class not found Line 49, column 60: cannot access class XSPResponseHelper; file org/apache/cocoon/components/language/markup/xsp/XSPResponseHelper.class not found Line 50, column 53: cannot access class NotifyingBuilder; file org/apache/cocoon/components/notification/NotifyingBuilder.class not found Line 51, column 53: cannot access class Notifying; file org/apache/cocoon/components/notification/Notifying.class not found Line 52, column 53: cannot access class SimpleNotifyingBean; file org/apache/cocoon/components/notification/SimpleNotifyingBean.class not found Line 63, column 38: class AbstractSitemap not found in class org.apache.cocoon.www.jndi_.localhost.knp.sitemap_xmap Line 99, column 64: class Parameters not found in class org.apache.cocoon.www.jndi_.localhost.knp.sitemap_xmap Line 111, column 79: class Parameters not found in class org.apache.cocoon.www.jndi_.localhost.knp.sitemap_xmap Line 129, column 28: class Configuration not found in class org.apache.cocoon.www.jndi_.localhost.knp.sitemap_xmap Line 129, column 55: class ConfigurationException not found in class org.apache.cocoon.www.jndi_.localhost.knp.sitemap_xmap Line 1804, column 44: class StreamPipeline not found in class sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 22, column 49: cannot access class Component; file org/apache/avalon/framework/component/Component.class not found Line 23, column 53: cannot access class Configurable; file org/apache/avalon/framework/configuration/Configurable.class not found Line 24, column 53: cannot access class Configuration; file org/apache/avalon/framework/configuration/Configuration.class not found Line 25, column 53: cannot access class ConfigurationException; file org/apache/avalon/framework/configuration/ConfigurationException.class not found Line 26, column 53: cannot access class DefaultConfiguration; file org/apache/avalon/framework/configuration/DefaultConfiguration.class not found Line 27, column 50: cannot access class Parameters; file org/apache/avalon/framework/parameters/Parameters.class not found Line 67, column 8: variable dateCreated not found in class org.apache.cocoon.www.jndi_.localhost.knp.sitemap_xmap Line 100, column 8: class Selector not found in class org.apache.cocoon.www.jndi_.localhost.knp.sitemap_xmap Line 100, column 43: variable selectors not found in class org.apache.cocoon.www.jndi_.localhost.knp.sitemap_xmap Line 0, column 0: 100 errors request-uri /knp/knapp/reports/ path-info knapp/reports/ can anybody give me a hint on what is going wrong? thx, Chris -- KNAPP Logistics Automation http:
Re: ldap
Hi Brett! then you are on the lucky side ;-) I have a LDAP directory and can't switch to a database without migrating the whole infrastructure. Its a pain to change the cocoon version every few months when you realize that things are not working properly, so im thinking of using another framework for our project. (which is far away from a simple hello world website... =;-)) Chris On Fri, Dec 06, 2002 at 12:17:47AM -0800, Brett McCormick wrote: > I haven't gotten LDAPTransformer to work, and I haven't found any good > docs on it. I decided to use an SQL db for now, and switch to LDAP > later. -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed msg21496/pgp0.pgp Description: PGP signature
Re: ldap
Hi Tim! thanks for your response. I'll switch to LDAPTransformer. Chris On Fri, Dec 06, 2002 at 09:27:13AM +1100, Bentley, Tim wrote: > > Unfortunately I am no longer using Cocoon, so I haven't tested eldap with > the latest versions and am not in a position to provide much help :-( > However, there is no reason that I'm aware of why it shouldn't work. At a > guess from the logs you've posted there's something more fundamental wrong > with your XSP page - 'illegal start of expression' sounds like a problem > with the XML syntax. -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed msg21494/pgp0.pgp Description: PGP signature
Re: ldap
Hello Tim! i want to use your eldap logicsheet with cocoon 2.0.3 but get some errors which doesnt occur with cocoon 2.0.1: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling logincheck_xsp: Line 995, column 73: illegal start of expression Line 1001, column 62: illegal start of expression Line 1003, column 77: illegal start of expression Line 1004, column 80: illegal start of expression Line 1005, column 75: illegal start of expression Line 1007, column 71: illegal start of expression Line 1058, column 113: illegal start of expression Line 1074, column 148: illegal start of expression Line 995, column 56: method _eldap_getString() not found in class org.apache.cocoon.www.login.xsp.logincheck_xsp Line 1003, column 61: method _eldap_getScope() not found in class org.apache.cocoon.www.login.xsp.logincheck_xsp Line 1004, column 62: method _eldap_getBoolean() not found in class org.apache.cocoon.www.login.xsp.logincheck_xsp Line 1005, column 60: method _eldap_getLong() not found in class org.apache.cocoon.www.login.xsp.logincheck_xsp Line 1006, column 66: method _eldap_getAttrs() not found in class org.apache.cocoon.www.login.xsp.logincheck_xsp Line 1007, column 57: method _eldap_getInt() not found in class org.apache.cocoon.www.login.xsp.logincheck_xsp Line 1072, column 130: method _eldap_GetNameFromDN() not found in class org.apache.cocoon.www.login.xsp.logincheck_xsp Line 1074, column 130: method _eldap_getBoolean() not found in class org.apache.cocoon.www.login.xsp.logincheck_xsp Line 0, column 0: 16 errors at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:340) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:292) at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:198) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:202) at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:278) at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:141) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:317) at org.apache.cocoon.www.login.sitemap_xmap.matchN1002D(/usr/local/JBoss-2.4.4_Tomcat-3.2.3/tomcat/work/localhost_8080%2Fknapp/cocoon-files/org/apache/cocoon/www/login/sitemap_xmap.java:507) at org.apache.cocoon.www.login.sitemap_xmap.process(/usr/local/JBoss-2.4.4_Tomcat-3.2.3/tomcat/work/localhost_8080%2Fknapp/cocoon-files/org/apache/cocoon/www/login/sitemap_xmap.java:382) at org.apache.cocoon.www.login.sitemap_xmap.process(/usr/local/JBoss-2.4.4_Tomcat-3.2.3/tomcat/work/localhost_8080%2Fknapp/cocoon-files/org/apache/cocoon/www/login/sitemap_xmap.java:321) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.www.sitemap_xmap.matchN1030F(/usr/local/JBoss-2.4.4_Tomcat-3.2.3/tomcat/work/localhost_8080%2Fknapp/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:2369) at org.apache.cocoon.www.sitemap_xmap.process(/usr/local/JBoss-2.4.4_Tomcat-3.2.3/tomcat/work/localhost_8080%2Fknapp/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:2076) at org.apache.cocoon.www.sitemap_xmap.process(/usr/local/JBoss-2.4.4_Tomcat-3.2.3/tomcat/work/localhost_8080%2Fknapp/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:1994) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) org.apache.cocoon.components.language.LanguageException: Error compiling loginc
Re: map:when, patterns?
Hello again! sorry for that question :-( i use map:otherwise for this task... Chris On Thu, Dec 05, 2002 at 04:38:37PM +0100, Christian Joelly wrote: > > can anybody please tell me what patterns are allowed to use with the > "test" attribute? Is there a way to test for the _availability_ of an > parameter, attribute or the like? Not of a special value. Sure, i can > test for "", but the logfile says: -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed msg21477/pgp0.pgp Description: PGP signature
map:when, patterns?
Hello! can anybody please tell me what patterns are allowed to use with the "test" attribute? Is there a way to test for the _availability_ of an parameter, attribute or the like? Not of a special value. Sure, i can test for "", but the logfile says: DEBUG (2002-12-05) 16:22.29:834 [sitemap.selector.session-attribute] (/knapp/reports/logo.xml) Thread-43/SessionAttributeSelector: Session attribute 'user' not set -- failing. I have tried to use sessionstate matchers, but i can't test for the existence of an session attribute... it would be nice to use map:when like xsl:choose... thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed msg21474/pgp0.pgp Description: PGP signature
Re: esql:group
Hello! On Tue, Nov 26, 2002 at 01:41:44PM +0100, Christian Haul wrote: > This looks fine -- apart from the footer stuff. Footer does not work > and will not work (at least if the footer requires esql). For that we > would need to scroll through the result set at will which is not > supported with all drivers. ;-) but i don't get the header stuff working... but i need to get data with esql within an esql:group... Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed msg21467/pgp0.pgp Description: PGP signature
esql:group
Hello! did anybody use more than one esql:group / esql:member with Cocoon 2.0.3 in one resultset? like this: esql:row-result esql:group group-on column1 esql:member esql:group group-on column2 esql:member do some stuff /esql:member do some footer stuff for group-on column2 /esql:group /esql:member do some stuff for group-on column1 /esql:group /esql:row-result i want to know if this is the correct way to write more esql:groups AND if this is conformed to work with cocoon 2.0.3... ;-) thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed msg20969/pgp0.pgp Description: PGP signature
Use of SessionAttributeSelector
Hello! can anybody plz give me an example on how to use the SessionAttributeSelector to check if an attribute exists in the actual session? I always see the message: DEBUG (2002-11-21) 10:37.55:492 [sitemap.selector.session-attribute] (/knapp/images/icon-folder-open.gif) Thread-41/SessionAttributeSelector: Session attribute 'user' not set -- failing. in the sitemap.log when i use following sitemap config: in general: how can i construct tests or what are allowed tests? thx, Chris *lostinthefinenewcocoonbookssearchingformoredetailedinformationbutstillhavenotfoundit* ;-) -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed msg20847/pgp0.pgp Description: PGP signature
Re: Using matchers, especially sessionstate...
Hi Christian! On Mon, Nov 11, 2002 at 11:17:15AM +0100, Christian Haul wrote: > On 07.Nov.2002 -- 09:44 AM, Christian Joelly wrote: > > i have attached the error message, the sitemap and the compiled sitemap. > > i have also to tell that im not a very indepth cocoon developer so the > > error messages are looking very strange to me :o) > > Unfortunately, I can't make any out of it either. Sitemap looks OK, so > does the generated .java file. The error messages are not really > helpful :-( i have switched to cocoon 2.0.3 now and i hope i dont have to change the cocoon version for another time during this project =:-( but: sitemap compiles well and there are some other messages in the sitemap.log which i can't work around: DEBUG (2002-11-20) 15:23.06:565 [sitemap.matcher.sessionstate] (/knapp/reports/) Thread-38/WildcardSessionAttributeMatcher: Session attribute 'org.apache.cocoon.SessionState' not set i have defined the session matcher in my pipeline as follows: whats going wrong now?? and why is the session attribute matcher looking for the attribute "org.apache.cocoon.SessionState"? thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed msg20810/pgp0.pgp Description: PGP signature
Re: Using matchers, especially sessionstate...
Hi Christian! On Tue, Nov 12, 2002 at 12:09:16PM +0100, Christian Haul wrote: > Please be aware that the above code may allow a user to substitute > sNachname with a string like '"; close database; drop database somedb;' > what is probably not intended. Consider using prepared statements like > > select distinct nUserID, sUserName from users where > sNachname like sNachname+"%" unfortunately there are lots of sql statements that depend on some filters and other logic, so it's hard to implement dyn sql statements with prepared statements... another thing: i have troubles with the GET parameters with cocoon 2.0.3: the first value of a multivalued parameter occurs as the first AND the last element of this parameter ("s_kst"): METHOD: GET CONTENT LENGTH: 0 PROTOCOL: HTTP/1.1 SCHEME: http AUTH TYPE: null CURRENT ACTIVE REQUESTS: 1 REQUEST PARAMETERS: PARAM: 'Speichern' VALUES: '[Speichern]' PARAM: 's_kst' VALUES: '[4100], [4232], [4233], [4234], [4235], [4236], [4100]' PARAM: 'auftrag' VALUES: '[]' PARAM: 'timestamp' VALUES: '[1037641279723]' HEADER PARAMETERS: PARAM: 'cookie' VALUES: '[JSESSIONID=qtpqzy4ho2]' PARAM: 'connection' VALUES: '[keep-alive]' PARAM: 'accept-encoding' VALUES: '[gzip, deflate, compress;q=0.9]' PARAM: 'referer' VALUES: '[http://edvlw05.knapp.intern/knapp/reports/options.xsp?auftrag=&li=&lit=&litpos=]' PARAM: 'accept' VALUES: '[text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1]' PARAM: 'content-length' VALUES: '[0]' PARAM: 'accept-charset' VALUES: '[ISO-8859-1, utf-8;q=0.66, *;q=0.66]' PARAM: 'user-agent' VALUES: '[Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020913 Debian/1.2.6-2]' PARAM: 'keep-alive' VALUES: '[300]' PARAM: 'host' VALUES: '[edvlw05.knapp.intern]' SESSION ATTRIBUTES: PARAM: 'report' VALUE: '' PARAM: 'etft' VALUE: '' are there issues with this cocoon version and GET requests? with 2.0.1 i can't use POST, because there that way was broken... thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed msg20733/pgp0.pgp Description: PGP signature
Re: Using matchers, especially sessionstate...
Hello! On Mon, Nov 11, 2002 at 11:17:15AM +0100, Christian Haul wrote: > On 07.Nov.2002 -- 09:44 AM, Christian Joelly wrote: > > > > thanks for your answer. I'd prefer to use the version 2.0.1 for this > > application, because maybe there are some other problems rising when i > > switch the cocoon version during development... ;-) > > Fair enough. OTOH many issues have been resolved. There should be no > change in the user visible interface apart from stuff in scratchpad. i'm now working to integrate cocoon 2.0.3 with my application, but i see there are some issues that are strange: i wrote lots of sql queries in the following manner: (as i usual did with other frameworks or dev tools) sQuery = " SELECT DISTINCT nUserID, sUserName FROM users"; if (sNachname != null) { sQuery =+ " WHERE sNachname LIKE \"" + sNachname + "%\"; } which works fine with 2.0.1, but on 2.0.3 cocoon generates: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling options_xsp: Line 1754, column 74: unclosed character literal Line 1754, column 73: illegal start of expression Line 1769, column 113: unclosed character literal Line 1772, column 10: unclosed character literal Line 1775, column 89: illegal character Line 1778, column 83: unclosed character literal Line 1778, column 82: illegal start of expression Line 1780, column 96: illegal character Line 1784, column 83: unclosed character literal Line 1784, column 82: illegal start of expression Line 1786, column 97: illegal character Line 1790, column 83: unclosed character literal Line 1790, column 82: illegal start of expression Line 1792, column 100: illegal character Line 1795, column 75: unclosed character literal Line 1795, column 74: illegal start of expression Line 1797, column 89: unclosed character literal Line 0, column 0: 17 errors at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:340) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:292) the error comes from the " and the line break as i want to setup the sql query string. can i set this behavior with an config option or is this a java issue?!? > > i have attached the error message, the sitemap and the compiled sitemap. > > i have also to tell that im not a very indepth cocoon developer so the > > error messages are looking very strange to me :o) > > Unfortunately, I can't make any out of it either. Sitemap looks OK, so > does the generated .java file. The error messages are not really > helpful :-( hmmm, i don't think the generated javacode is ok, because it ends suddenly without the nessessary java code... thanks a lot, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed msg20421/pgp0.pgp Description: PGP signature
Re: Using matchers, especially sessionstate...
Hello! thanks for your answer. I'd prefer to use the version 2.0.1 for this application, because maybe there are some other problems rising when i switch the cocoon version during development... ;-) i have attached the error message, the sitemap and the compiled sitemap. i have also to tell that im not a very indepth cocoon developer so the error messages are looking very strange to me :o) thx, Chris btw: if i want to use newer matchers where are the directories in which i find the nessesary files to change? is the stuff in org/apache/cocoon/matching the right place to change the class files? On Wed, Nov 06, 2002 at 07:45:51PM +0100, Christian Haul wrote: > > On 06.Nov.2002 -- 02:52 PM, Christian Joelly wrote: > > Hello all! > > > > i have some troubles using the sessionstate matcher in a pipeline. > > I want to check for the existance of a session attribute, and when it > > doesn't exist we should be redirected to a login page: > > Hi. Without the exact error message it is difficult to help. You say > you're on 2.0.1 and can't go to 2.0.3. Try copying the java class from > a newer version and rebuild. AFAIR it is rather self-contained. It > might be necessary to copy all matchers if your version still uses > matcher factories. > > With the upcoming 2.0.4 version we have a better way to match for > session attributes. You should really consider that. -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed 2002-11-06 18:06:19 - path="/knapp" :DEBUG (2002-11-06) 18:06.19:272 [cocoon ] (/knapp/reports/) Thread-37/LogKitLogger: Returning a org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage to the pool 2002-11-06 18:06:19 - path="/knapp" :ERROR (2002-11-06) 18:06.19:278 [root] (/knapp/reports/) Thread-37/CocoonServlet: Problem with servlet org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 1704, column 78: Line 1703, column 7: Line 1487, column 76: Line 1486, column 5: Line 1478, column 40: Line 62, column 51: at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:285) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:196) at org.apache.cocoon.sitemap.Handler.run(Handler.java:228) at java.lang.Thread.run(Thread.java:484) org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 1704, column 78: Line 1703, column 7: Line 1487, column 76: Line 1486, column 5: Line 1478, column 40: Line 62, column 51: at org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:205) at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:140) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:332) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:282) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:196) at org.apache.cocoon.sitemap.Handler.run(Handler.java:228) at java.lang.Thread.run(Thread.java:484) org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 1704, column 78: Line 1703, column 7: Line 1487, column 76: Line 1486, column 5: Line 1478, column 40: Line 62, column 51: at org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:205) at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:140) at org.apache.cocoon.compon
Re: Using matchers, especially sessionstate...
getLogger().debug("Source= " + substitute(listOfMaps, "jscript/{2}.js")); getLogger().debug("Mime-type= text/javascript"); pipeline.setReader ("resource", substitute(listOfMaps, "jscript/{2}.js"), Parameters.EMPTY_PARAMETERS, "text/javascript"); if (!internalRequest) { return pipeline.process(environment); } if (true) return true; listOfMaps.remove (listOfMaps.size() - 1); this.dumpParameters(listOfMaps); } // handling "applets/**" if ((map = matches("wildcard", matcher_N101CF_expr, "applets/**", Parameters.EMPTY_PARAMETERS, objectModel)) != null) { if (debug_enabled) getLogger().debug("Matched wildcard pattern applets/**"); listOfMaps.add (map); this.dumpParameters(listOfMaps); getLogger().debug("Component reader:resource(Parameters.EMPTY_PARAMETERS)"); if (debug_enabled) getLogger().debug("Source= " + substitute(listOfMaps, "applets/{1}")); getLogger().debug("Mime-type= application/octet-stream"); pipeline.setReader ("resource", substitute(listOfMaps, "applets/{1}"), Parameters.EMPTY_PARAMETERS, "application/octet-stream"); if (!internalRequest) { return pipeline.process(environment); } if (true) return true; listOfMaps.remove (listOfMaps.size() - 1); this.dumpParameters(listOfMaps); } // handling "*/**" if ((map = matches("wildcard", matcher_N101D7_expr, "*/**", Parameters.EMPTY_PARAMETERS, objectModel)) != null) { if (debug_enabled) getLogger().debug("Matched wildcard pattern */**"); listOfMaps.add (map); this.dumpParameters(listOfMaps); if (internalRequest) return sitemapManager.invoke (this.manager, environment, substitute(listOfMaps, "{1}"), substitute(listOfMaps, "{1}/"), true, true, pipeline, eventPipeline); else if (true) return sitemapManager.invoke (this.manager, environment, substitute(listOfMaps, "{1}"), substitute(listOfMaps, "{1}/"), true, true); listOfMaps.remove (listOfMaps.size() - 1); this.dumpParameters(listOfMaps); } listOfMaps.remove (listOfMaps.size() - 1); this.dumpParameters(listOfMaps); } -snap the generated code from sitemap_.java ends here. and on the line marked with <*> i got a language exception at the character i from if and some other language exceptions after this line till the last language exception at the apprupt end of the java file... On Wed, Nov 06, 2002 at 02:52:15PM +0100, Christian Joelly wrote: > > i have some troubles using the sessionstate matcher in a pipeline. > I want to check for the existance of a session attribute, and when it > doesn't exist we should be redirected to a login page: > > But i got lots of errors when i call want to use this pipeline... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed ---
Re: Using matchers, especially sessionstate...
Hello again! i have tried to setup the pipeline another way and lokked at the compiled sitemap java code. it seems that the java code generated is far away from being complete... are the sessionstate matcher code for the sitemap broken in cocoon 2.0.1? if so, can i change only the sessionstate code parts to avoid migrating the whole application to a newer cocoon version? thx, Chris btw: sitemap and compiled sitemap attached for interest... On Wed, Nov 06, 2002 at 02:52:15PM +0100, Christian Joelly wrote: > > i have some troubles using the sessionstate matcher in a pipeline. > I want to check for the existance of a session attribute, and when it > doesn't exist we should be redirected to a login page: > > But i got lots of errors when i call want to use this pipeline... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed http://apache.org/cocoon/sitemap/1.0";> false false messages translations -//W3C//DTD HTML 4.0 Transitional//EN http://www.w3.org/TR/REC-html40/loose.dtd ISO-8859-15 yes -//WAPFORUM//DTD WML 1.1//EN http://www.wapforum.org/DTD/wml_1.1.xml ASCII yes -//W3C//DTD SVG 2303 Stylable//EN http://www.w3.org/TR/2000/03/WD-SVG-2303/ org.apache.cocoon.SessionState user next-state referer /*/ /* Copyright (C) The Apache Software Foundation. All rights reserved.*/ /* _ */ /* This software is published under the terms of the Apache Software License */ /* version 1.1, a copy of which has been included with this distribution in */ /* the LICENSE file. */ /*/ package org.apache.cocoon.www; import java.io.OutputStream; import java.io.IOException; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.util.HashMap; import java.util.Stack; import java.util.StringTokenizer; import org.apache.avalon.framework.component.Component; import org.apache.avalon.framework.configuration.Configurable; import org.apache.avalon.framework.configuration.Configuration; import org.apache.avalon.framework.configuration.ConfigurationException; import org.apache.avalon.framework.configuration.DefaultConfiguration; import org.apache.avalon.framework.parameters.Parameters; import org.apache.cocoon.Constants; import org.apache.cocoon.ProcessingException; import org.apache.cocoon.ResourceNotFoundException; import org.apache.cocoon.ConnectionResetException; import org.apache.cocoon.acting.Action; import org.apache.cocoon.environment.Environment; import org.apache.cocoon.environment.Redirector; import org.apache.cocoon.matc
Using matchers, especially sessionstate...
Hello all! i have some troubles using the sessionstate matcher in a pipeline. I want to check for the existance of a session attribute, and when it doesn't exist we should be redirected to a login page: But i got lots of errors when i call want to use this pipeline... thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed msg20203/pgp0.pgp Description: PGP signature
[C2] LDAP Taglib?
Hello! im searching on how to use LDAP queries with Cocoon 2 and found several informations in the docs and the net. Is anybody using the following taglib with Cocoon 2? http://opensource.socialchange.net.au/ldaptaglib/docs/ For me it seems that it only can used with Cocoon 1.8. Are there any other possibilities to use LDAP Queries within XSP Pages? thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed msg19889/pgp0.pgp Description: PGP signature
Re: xsp-request:get-parameter-values -> Java String[]
Hello all! sorry for that stupid question, i forgot as="array" ;-( thx for your time Chris On Thu, Oct 10, 2002 at 12:05:04PM +0200, Christian Joelly wrote: > i want to write the values from an request parameter to a String array, > but it seem that this task is too complex for my brain ;-) can anybody > tell me how to do that? > > String asKst[] = ; -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed msg19050/pgp0.pgp Description: PGP signature
xsp-request:get-parameter-values -> Java String[]
Hello! i want to write the values from an request parameter to a String array, but it seem that this task is too complex for my brain ;-) can anybody tell me how to do that? String asKst[] = ; doesn't work... thx, Chris its Cocoon 2.0.1... -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed msg19039/pgp0.pgp Description: PGP signature
Re: [C2] Using RequestSelector for redirect
Hello! On Tue, May 28, 2002 at 11:46:06AM +0200, Reinhard Pötz wrote: > I'm not familiar with the RequestSelector but an Action can do it for you. im not familar with both techniques, but as i see the requestselector is easier to handle than actions. when i use actions i have to code the login function in a seperate java class? thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg13074/pgp0.pgp Description: PGP signature
Re: [C2] Using RequestSelector for redirect
Hello! On Tue, May 28, 2002 at 10:23:17AM +0200, zze-STIENNE Nicolas FTRD/DMI/CAE wrote: > > Perhaps could you find some help on this page : > http://www.cocooncenter.de/cc/documents/resources/request-params/requestselector.html nope, this page describes using requestselector in gerneral. thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg13064/pgp0.pgp Description: PGP signature
[C2] Using RequestSelector for redirect
Hello! i want to setup a redirect to a startpage when 2 request parameters are not set and one request parameter is set (and of a certain string-length). how can i use the map:select component to check for this request parameters? my problem is the use of map:when and map:parameter i don't understand to use in my situation... ;o) thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg13055/pgp0.pgp Description: PGP signature
[C1.8] Request parameters in XSL stylesheet
Hello! is there a similar/easy mechanism for the use of request parameters in an XSL stylesheet as in C2? (of course without the usage of the sitemap :o)) thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg11349/pgp0.pgp Description: PGP signature
Got error 127 from table handler
Hello! maybe this is offtopic here... i get the following errors in my cocoon application when it is used from several hosts at the same time from different clients workstations. does anybody know how to avoid this problem? --- Cocoon 2 - Internal server error type fatal message Exception in ServerPagesGenerator.generate() description org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Error executing statement: INSERT INTO tbl8srjwz2vl2 ( ikst, skst, menge, produkt, idx, izeit, szeit ) SELECT s.ikst, s.skst, ap.menge, ap.produkt, ap.idx, s.irzt+s.iezt, sz.szeit FROM stbk_kopf=sk, stbk=s, aufpos=ap LEFT OUTER JOIN sollzeiten_kst=sz ON ( sz.produkt = ap.produkt AND sz.kst = s.skst ) WHERE ap.pk_aufpos = sk.fk_aufpos AND s.stbk = sk.stbk AND s.stbkindex = sk.stbkindex AND ap.auf = "I048A33" AND s.etft = "n" ORDER BY s.ikst : java.sql.SQLException: General error: Got error 127 from table handler sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /knapp/reports/zeitenkanr.xsp path-info reports/zeitenkanr.xsp --- thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg10891/pgp0.pgp Description: PGP signature
Re: [C2.0.1] session:set-attribute
Hi Tim! On Tue, Mar 12, 2002 at 05:35:41AM -0500, Tim Myers wrote: > > I can't find XSPRequestHelper.setSessionAttribute > > I haven't update cvs in more than a week, > but here's what i see in the relavent template: > > > > > > > > > > > > request.getSession().setAttribute( > String.valueOf(), > ); > > > > You certainly should be able to set session attributes. Try putting > ( ) around sReport like (sReport) > > I'm not promising anything, but it works for me. hmm. i tried the following: sReport and it also works :o) BUT: i have the following template: XSPRequestHelper.setSessionAttribute(objectModel, String.valueOf(), ); whats the difference between "xsp-session" and "session"? are this only different named xml namespaces or different taglibs? (#+?§$%& ;)) Chris btw: the version of cocoon i use is the distribution 2.0.1 dated 31-Jan-2002. -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg09291/pgp0.pgp Description: PGP signature
[C2.0.1] session:set-attribute
Hello! can session attributes only be set through the sitemap? if i look at the generated java code, i think it is impossible to set session attributes from java variables or from an string object... sReport XSPRequestHelper.setSessionAttribute(objectModel, String.valueOf("report"), "sReport"); Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg09285/pgp0.pgp Description: PGP signature
Re: [C2.0.1] esql:group/eqsl:member
Hello! On Mon, Mar 11, 2002 at 10:52:21AM -0500, Tim Myers wrote: > > Christian Joelly, > can you post an example? is the xsp page enough for you? if some other thing is usefull for you let me know. > If you post your code, i'll transform it manually and see where > the recursion is happening. If you want to do that with xalan > and use -T you can watch the templates get applied. where can i give xalan the -T option? > Of course, i'm assuming that the _xsp.java is never being generated > by your .xsp page. I might not understand the problem correctly though. jep, no java file... > good luck. thx, meanwhilest i have found a "workaround" using some xsp:logic... :o) Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg09240/pgp0.pgp Description: PGP signature
Re: [C2.0.1] esql:group/eqsl:member
Hello! On Fri, Mar 08, 2002 at 10:19:28AM +0100, Christian Haul wrote: > On 07.Mar.2002 -- 09:08 AM, Christian Joelly wrote: > > when i add esql:group/esql:member to my xsp page then the loop fetching > > the results from the resultset changes to an endless loop, till i get an > > java.lang.OutOfMemoryError. > > Have started to look at the code. Just one thought: Do you have enough > connections in your pool to do such deep nesting? yes. if i run the xsp page with my own group/member code then the page compiles without problems. i watched the connection pool and the app doesn't need more than 10 connections, but the pool is allowed to open up to 50 connections... Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg09231/pgp0.pgp Description: PGP signature
[C2.0.1] esql:group/eqsl:member
Hi! i have a *strange* problem with esql:group/esql:member: when i add esql:group/esql:member to my xsp page then the loop fetching the results from the resultset changes to an endless loop, till i get an java.lang.OutOfMemoryError. settings vm:-ms128m -mx256m settings: storejanitor: freememory=1000 heapsize=268435456 the logic of this page is: (simplified) page // main query esql-connection #1 esql-pool esql-query #1 esql-results #1 // nested query esql-connection #2 esql-pool esql-query #2 esql-results #2 // one more query for lookup data esql-connection #3 esql-pool esql-query #3 esql-results #3 /esql-connection #3 // add results to xml tree output esql-result #2 // xsp-logic if display-details then // esql-query with group/member esql-connection #4 esql-pool esql-query #4 esql-results #4 esql-group esql-member // add row to xml tree esql-result #4 /esql-member // add summary row to xml tree summary-line /esql-group /esql-connection #5 /if /esql-connection #2 /esql-connection #1 /page if i use esql:group/esql:member with an simpler query, all works as expected. and if i remove the esql:group, esql:member and summary line from the xsp page shown above thers also no problem... thx for any hint, chris btw: i have attached the xsp page for reference :o) -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz http://apache.org/cocoon/SQL/v2"; xmlns:xsp="http://apache.org/xsp"; xmlns:xsp-request="http://apache.org/xsp/request/2.0"; > String produkt = ""; if ( != null) { produkt = ; } String auftrag = ""; if ( != null) { auftrag = ; } String kanr = ""; if ( != null) { kanr = ; } String report = ""; if ( != null) { report = ; } String sLi = ""; if ( != null) { sLi = ; } String sLit = ""; if ( != null) { sLit = ; } String sLitPos = ""; if ( != null) { sLitPos = ; } int nKaNr; String sProdukt; float nMenge = 0; float nSollzeit = 0; float nSollzeitStk = 0; float nIstzeit = 0; float nIstzeitSchnitt = 0; float nSumMenge = 0; float nSumIstzeit = 0; float nSumSollzeit = 0; float nSumIstzeitSchnitt = 0; float nSumIstzeitKstGr = 0; float nSumSollzeitKstGr = 0; float nSumIstzeitSchnittKstGr = 0; float nSumSollzeitStkKstGr = 0; String sQuery = ""; String sQueryInner = "";
Re: [C2] esql:group, esql:member
Hello! On Tue, Mar 05, 2002 at 09:55:20PM +0100, Christian Haul wrote: > On 05.Mar.2002 -- 09:40 PM, Christian Joelly wrote: > > has anybody sucessfully used esql:group/esql:member in C2? > > i looked at the esql.xsl and the group and member templates are not in > > that taglib. maybe they are not implemented? > > Perhaps you looked at the wrong version? It should be contained in Cocoon > 2.0.1 and above. It certainly is contained in HEAD. hmmm, it seems that "my version"[tm] of c2 is always too old... ;-) thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg08919/pgp0.pgp Description: PGP signature
[C2] esql:group, esql:member
Hello! has anybody sucessfully used esql:group/esql:member in C2? i looked at the esql.xsl and the group and member templates are not in that taglib. maybe they are not implemented? thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg08917/pgp0.pgp Description: PGP signature
Re: [C2] http request parameters
Hello! On Fri, Feb 22, 2002 at 09:48:38AM +0100, Christian Haul wrote: > > > > and why are the parameters filled with 2 values? > > So, I cannot answer why your browser posts two values back (check by > setting method to "get") as your form seems to be OK in this > respect. It might be related to your javasript code, though... Because my form doesn't use javascript and the form controls have unique names i changed the form method from POST to GET and it works... ;-) thx for your hint, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg08490/pgp0.pgp Description: PGP signature
Re: Uninterruptable Sleep
Hi! On Thu, Feb 21, 2002 at 08:57:47AM -0800, Colin Hall wrote: > > I think (but I'm not positive)that this is a garbage collection issue. This > opinion is shared by one of our fellow cocoon users. > > I have been tweaking the StoreJanitor configuration which seems to have > helped in my test environment, but I still need to do some more testing to > confirm this. fine ;-) my knowledge of the cocoon internals are not so good for now, so i dont know where to look and where to tweak... > By the way, what OS are you using? Debian GNU/Linux, sid Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg08372/pgp0.pgp Description: PGP signature
[C2] http request parameters
Hello! i have a little question concerning request parameters: i have following html form: Auftrag: Produkt: Liste: Ist-Zeiten Ist-Zeiten / Kst. now, i enter the value "U019B21" into the field "auftrag". i need the old value to decide if this value has changed or not... and when i send this form to cocoon, it writes the following output: DEBUG (2002-02-21) 17:48.36:598 [cocoon ] (/knapp/reports/chooser.xsp) Thread-35/Cocoon: DEBUGGING INFORMATION: REQUEST: /knapp/reports/chooser.xsp CONTEXT PATH: /knapp SERVLET PATH: /reports/chooser.xsp PATH INFO: null REMOTE HOST: edvlw05.knapp.intern REMOTE ADDRESS: 10.17.130.106 REMOTE USER: null REQUEST SESSION ID: g5iab43c91 REQUEST PREFERRED LOCALE: de_AT SERVER HOST: edvlw05.knapp.intern SERVER PORT: 80 METHOD: POST CONTENT LENGTH: 97 PROTOCOL: HTTP/1.0 SCHEME: http AUTH TYPE: null CURRENT ACTIVE REQUESTS: 1 MAXIMUM ACTIVE REQUESTS: 4 REQUEST PARAMETERS: PARAM: 'report' VALUES: '[istzeit], [istzeit]' PARAM: 'produkt' VALUES: '[LT5], [LT5]' PARAM: 'auftrag' VALUES: '[U019B20], [U019B21]' PARAM: 'oldauftrag' VALUES: '[U019B20], [U019B20]' PARAM: 'Start' VALUES: '[Start]' PARAM: 'timestamp' VALUES: '[1014310085064], [1014310106862]' HEADER PARAMETERS: PARAM: 'cookie' VALUES: '[JSESSIONID=g5iab43c91]' PARAM: 'connection' VALUES: '[Keep-Alive]' PARAM: 'accept-encoding' VALUES: '[gzip]' PARAM: 'referer' VALUES: '[http://edvlw05.knapp.intern/knapp/reports/chooser.xsp?oldauftrag=U019B20&auftrag=U019B20&produkt=LT5&report=istzeit×tamp=1014310085064]' PARAM: 'accept' VALUES: '[image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*]' PARAM: 'content-length' VALUES: '[97]' PARAM: 'accept-charset' VALUES: '[iso-8859-1,*,utf-8]' PARAM: 'accept-language' VALUES: '[de-AT, en]' PARAM: 'user-agent' VALUES: '[Mozilla/4.77 [en] (X11; U; Linux 2.4.16 i686; Nav)]' PARAM: 'content-type' VALUES: '[application/x-www-form-urlencoded]' PARAM: 'host' VALUES: '[edvlw05.knapp.intern]' the interesting part is: PARAM: 'report' VALUES: '[istzeit], [istzeit]' PARAM: 'produkt' VALUES: '[LT5], [LT5]' PARAM: 'auftrag' VALUES: '[U019B20], [U019B21]' ^ why is the new value the second entry in this "parameter array"? PARAM: 'oldauftrag' VALUES: '[U019B20], [U019B20]' PARAM: 'Start' VALUES: '[Start]' PARAM: 'timestamp' VALUES: '[1014310085064], [1014310106862]' and why are the parameters filled with 2 values? i'm really confused, and have already bought a new mouse... ;-) thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz np: CD Audio Track 03 msg08362/pgp0.pgp Description: PGP signature
Re: Uninterruptable Sleep
Hello! i'm using cocoon 2.01 with jboss 2.4.4/tomcat 3.2.3 and have experienced almost the same problem. but i dont know if its cocoon related or jboss/tomcat... when i restart jboss the cocoon app is correctly answering requests again... the problem occurs, when i deploy my app i think more then ten times without restarting jboss/tomcat. Chris On Wed, Feb 20, 2002 at 10:04:45AM -0800, Colin Hall wrote: > > There is one serious re-occuring problem however...One or more java threads > will go into an Uninterruptable Sleep. This results in the sites being > crippled to the point that NOTHING is being served. I have observed the > dead threads coming back to life as well as staying dead until I have to > kill the java process and restart the server. > > Needless to say, this is causing us a great deal of anxiety. > Has anyone else seen this type of behaviour? Does anyone know how to deal > with it? > -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg08331/pgp0.pgp Description: PGP signature
session attributes vs. request parameters
Hi! i'm playing with the session tag lib, and have some problems with session attributes, especially when they have the same name as request parameters. have session and request parameters/attributes to be unique to avoid problems? Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg08289/pgp0.pgp Description: PGP signature
[C2] database connection pooling
Hello ppl! i have a question regarding database connection pools: i use a lvs ha server for serving static web content from apache and also for mysql db servers. the lvs maintains persistant connections with a timeout, eg. i can define a "persistance timeout" of 300sec for a connection managed by lvs (linux virtual server) to the mysql server. now, when i setup a database connection pool for cocoon2, the db connections the pool creates "expires" and where dropped on the lvs after 300sec. so, if cocoon wants to use one connection from the pool, the lvs has destroyed the connection to the mysql database server and the cocoon application "hangs". is there a possibility to setup a database connection pool which "monitors" his connections and drops lost connections and create new ones? i hope i was able to describe my problem *correct* ;-) Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg07699/pgp0.pgp Description: PGP signature
[C2] The sitemap handler's sitemap is not available
Hello! i want to run C2 on Debian unstable w/ tomcat 3.3-2 and j2sdk1.3 but run into troubles w/ the sitemap. i have carefully read all related threads on the mailarchive, installed the Xvfb in the cocoonhost because many ppl have reported that this should be a solution to this problem. Unfortunately i havent found a solution for my problem ... I have installed j2sdk, tomcat, apache, c2 and c2-example using debians apt and have made no extra stuff. i have attached the logfile data from the cocoon-log, if anyone can point me to the right direction i would be very happy :o) Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz DEBUG 73680 [cocoon ] (Thread-4): Beginning sitemap regeneration DEBUG 73680 [cocoon ] (Thread-4): Making URL from file:/var/lib/tomcat/webapps/cocoon2/sitemap.xmap DEBUG 73684 [cocoon ] (Thread-24): The instance was not accessible, creating it now. DEBUG 73684 [cocoon ] (Thread-24): ComponentFactory creating new instance of org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage. ERROR 73685 [cocoon ] (Thread-24): Error compiling sitemap java.lang.NoClassDefFoundError: javax/xml/transform/TransformerConfigurationException at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.createLogicsheet(AbstractMarkupLanguage.java:169) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.configure(AbstractMarkupLanguage.java:117) at org.apache.avalon.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:107) at org.apache.avalon.component.DefaultComponentHandler.get(DefaultComponentHandler.java:191) at org.apache.avalon.component.DefaultComponentSelector.select(DefaultComponentSelector.java:176) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:166) at org.apache.cocoon.sitemap.Handler.run(Handler.java:190) at java.lang.Thread.run(Thread.java:484) DEBUG 73686 [cocoon ] (Thread-4): Changing Cocoon context(sitemap.xmap) to prefix() DEBUG 73686 [cocoon ] (Thread-4): from context(file:/var/lib/tomcat/webapps/cocoon2/) and prefix() DEBUG 73686 [cocoon ] (Thread-4): at URI DEBUG 73686 [cocoon ] (Thread-4): New context is file:/var/lib/tomcat/webapps/cocoon2/ ERROR 73686 [cocoon ] (Thread-4): Problem with servlet org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:187) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:98) at org.apache.cocoon.Cocoon.process(Cocoon.java:258) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:426) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source) at org.apache.tomcat.core.Handler.invoke(Unknown Source) at org.apache.tomcat.core.Handler.service(Unknown Source) at org.apache.tomcat.facade.ServletHandler.service(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) INFO73687 [cocoon ] (Thread-4): '' Processed by Apache Cocoon 2.0a5 in 70 milliseconds. msg06086/pgp0.pgp Description: PGP signature
Re: [C2] The sitemap handler's sitemap is not available
Hello! On Wed, Dec 12, 2001 at 03:48:43PM +0100, Christian Schmitt wrote: > If so, are all necessary *.jar file in $TOMCAT_HOME/webapps/cocoon/WEB-INF/lib ? > Because form the error message it looks like you're missing xml-apis.jar. i have downloaded the cocoon-2.0-bin.tgz from the website now and copied the war file to the tomcat webapps directory, tomcat installs cocoon and also the xml-apis.jar is in the cocoon directory structure. but when i enter the url to cocoon, tomcat only shows the directory listing from the cocoon directory... Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg06078/pgp0.pgp Description: PGP signature
Re: [C2] The sitemap handler's sitemap is not available
On Wed, Dec 12, 2001 at 03:48:43PM +0100, Christian Schmitt wrote: > On Wed, Dec 12, 2001 at 02:40:56PM +0100, Christian Joelly wrote: > > > DEBUG 73680 [cocoon ] (Thread-4): Beginning sitemap regeneration > > DEBUG 73680 [cocoon ] (Thread-4): Making URL from >file:/var/lib/tomcat/webapps/cocoon2/sitemap.xmap > > DEBUG 73684 [cocoon ] (Thread-24): The instance was not accessible, creating >it now. > > DEBUG 73684 [cocoon ] (Thread-24): ComponentFactory creating new instance of >org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage. > > ERROR 73685 [cocoon ] (Thread-24): Error compiling sitemap > > java.lang.NoClassDefFoundError: >javax/xml/transform/TransformerConfigurationException > > at >org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.createLogicsheet(AbstractMarkupLanguage.java:169) > > at >org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.configure(AbstractMarkupLanguage.java:117) > > have you build the Cocoon webapp with the "-Dinclude.webapp.libs=true" > parameter? no, i have installed the debian packages, which comes with the debian sid distribution. in the documentation that comes with the packages, there is no information written that i have to build cocoon2 for my self. also there are no build script for ant, nor is ant installed... > If so, are all necessary *.jar file in $TOMCAT_HOME/webapps/cocoon/WEB-INF/lib ? > Because form the error message it looks like you're missing xml-apis.jar. from which packages comes this jar file? thx, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg06072/pgp0.pgp Description: PGP signature
[C2] The sitemap handler's sitemap is not available
Hello! i want to run C2 on Debian unstable w/ tomcat 3.3-2 and j2sdk1.3 but run into troubles w/ the sitemap. i have carefully read all related threads on the mailarchive, installed the Xvfb in the cocoonhost because many ppl have reported that this should be a solution to this problem. Unfortunately i havent found a solution for my problem ... I have installed j2sdk, tomcat, apache, c2 and c2-example using debians apt and have made no extra stuff. i have attached the logfile data from the cocoon-log, if anyone can point me to the right direction i would be very happy :o) Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz DEBUG 73680 [cocoon ] (Thread-4): Beginning sitemap regeneration DEBUG 73680 [cocoon ] (Thread-4): Making URL from file:/var/lib/tomcat/webapps/cocoon2/sitemap.xmap DEBUG 73684 [cocoon ] (Thread-24): The instance was not accessible, creating it now. DEBUG 73684 [cocoon ] (Thread-24): ComponentFactory creating new instance of org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage. ERROR 73685 [cocoon ] (Thread-24): Error compiling sitemap java.lang.NoClassDefFoundError: javax/xml/transform/TransformerConfigurationException at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.createLogicsheet(AbstractMarkupLanguage.java:169) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.configure(AbstractMarkupLanguage.java:117) at org.apache.avalon.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:107) at org.apache.avalon.component.DefaultComponentHandler.get(DefaultComponentHandler.java:191) at org.apache.avalon.component.DefaultComponentSelector.select(DefaultComponentSelector.java:176) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:166) at org.apache.cocoon.sitemap.Handler.run(Handler.java:190) at java.lang.Thread.run(Thread.java:484) DEBUG 73686 [cocoon ] (Thread-4): Changing Cocoon context(sitemap.xmap) to prefix() DEBUG 73686 [cocoon ] (Thread-4): from context(file:/var/lib/tomcat/webapps/cocoon2/) and prefix() DEBUG 73686 [cocoon ] (Thread-4): at URI DEBUG 73686 [cocoon ] (Thread-4): New context is file:/var/lib/tomcat/webapps/cocoon2/ ERROR 73686 [cocoon ] (Thread-4): Problem with servlet org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:187) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:98) at org.apache.cocoon.Cocoon.process(Cocoon.java:258) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:426) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source) at org.apache.tomcat.core.Handler.invoke(Unknown Source) at org.apache.tomcat.core.Handler.service(Unknown Source) at org.apache.tomcat.facade.ServletHandler.service(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) INFO73687 [cocoon ] (Thread-4): '' Processed by Apache Cocoon 2.0a5 in 70 milliseconds. msg06062/pgp0.pgp Description: PGP signature