[REQ] Problem deploying cocoon.war in Borland Enterprise Server

2002-12-06 Thread Cedric Picard
Title: [REQ] Problem deploying cocoon.war in Borland Enterprise Server






If you have experience with deploying cocoon in Borland AppServer or Enterprise Server, you might be able to help me with the following query:

I followed all the steps recommended in JBuilder for Cocoon developing by Michal Durdina, apart from the inclusion of the CatalogManager.properties file.

Upon deployment of my war file in Borland Enterprise Server 5.0, I get the following error in 

var\servers\\adm\properties\partitions\standard\tomcat\work\localhost\\cocoon-files\log\WEB-INF\logs

FATAL_E (2002-12-06) 09:24.26:510   [access] (Unknown-URI) Unknown-thread/CocoonServlet: Unable to get 'Cocoon-Libs' attribute from the Manifest

From looking at the CocoonServlet code, it appears to me that it expects cocoon.jar to be included in the web application in WEB-INF\lib. Is that correct?

What I then did was to specifically require Jbuilder to include cocoon.jar in the web archive (should the name given to the required library be "Cocoon-Libs" as I called mine "cocoon"?), but got the same error.

I would appreciate your help if you can spot what I am doing wrong.


Regards,

Cedric Picard,

Software Engineer

Kainos Software Ltd.



Regards,

Cedric Picard,

Software Engineer

Kainos Software Ltd.


--This e-mail is confidential and is intended for the named recipient only. Ifyou receive it in error please destroy the message and all copies. KainosSoftware Ltd. does not accept liability for damage sustained as a result ofmalicious software (e.g. viruses). Kainos does not accept liability for, orpermit, the creation of contracts on its behalf by e-mail, the publication ofany defamatory statement by its employees by e-mail, or changes subsequentlymade to the original message. The Company's registered office is located at4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.


Using alternate datasources

2002-12-04 Thread Cedric Picard
Hi,
 
in the ant build script, the cocoon war file reads the settings for the data source 
from database.properties. This sets up the data source to be used by cocoon. I was 
wondering if any data source could be substituted to this "default" data source.
 
For example, if I already have a data source declared in JBoss, can I simply reference 
this data source in an XSP query?
 
jdbc/MyDataSource
 
where jdbc/MyDataSource is declared in jboss.jcml
 
Thanks,
Cedric Picard
Software Engineer
Kainos Software Ltd


--

This e-mail is confidential and is intended for the named recipient only. If
you receive it in error please destroy the message and all copies. Kainos
Software Ltd. does not accept liability for damage sustained as a result of
malicious software (e.g. viruses). Kainos does not accept liability for, or
permit, the creation of contracts on its behalf by e-mail, the publication of
any defamatory statement by its employees by e-mail, or changes subsequently
made to the original message. The Company's registered office is located at
4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.

-
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: Cocoon deploy in JBoss 3.0.4

2002-12-02 Thread Cedric Picard
Title: Message



Hi 
GD,
 
here's how I deployed Cocoon in JBoss 
2.4.6:
- 
copy the following jars to jboss\lib\ext:

  avalon-excalibur,
  avalon-framework,
  batik-all-1.5b2.jar,
  cocoon-2.0.3.jar,
  logkit.jar,
  resolver.jar,
  velocity-1.2.jar,
- 
deploy cocoon.war to jboss\deploy
 
I 
didn't replace crimson.jar, jaxp.jar, xml-apis.jar, xercesImpl.jar, or 
xalan.jar.
 
Also, what you are deploying is a war file, should you 
not start jboss with the catalina configuration?
In 
2.4.6, I start with run_with_catalina in order for tomcat to also 
start.
 
Hope 
that helps,
Good 
luck,
Cedric

  
  -Original Message-From: Hong Gia Dinh 
  [mailto:[EMAIL PROTECTED]] Sent: 02 December 2002 
  09:21To: [EMAIL PROTECTED]Subject: Cocoon 
  deploy in JBoss 3.0.4
  Hi 
  all,
   
  I am getting 
  crazy with the deploying Cocoon in JBoss 3.0.4 now.
  i cant find any 
  documents related for JBOss 3.0.4 so i tried :
   
  1. remove from 
  JBOSS/lib :
      - crimson.jar
      - jaxp.jar
   
  2. copy in the 
  JBOSS/lib :
      - xml-apis.jar
      - 
  xercesImpl-2.0.0.jar
      - 
  batik-all-1.5b1.jar
   
  3. copy in 
  JBOSS/server/default/lib :
      - 
  xalan-2.3.1.jar
   
  4. copy in 
  JBOSS/server/default/deploy :
     - 
  avalon-framework-4.1.2.jar
     - 
  avalon-excalibur-4.1.jar
     - 
  logkit-1.0.1.jar
     - 
  cocoon.jar
     - cocoon.war
   
  5. 
  update  the claspath in JBOSS/bin/run.sh :
   
  
  JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_BOOT_CLASSPATH:$JAVAC_JAR:../lib/xml-apis.jar:../lib/xercesImpl-2.0.0.jar"
  and when i tried 
  to call http://localhost:8080/cocoon
   
  i got 
  :
  cocoon was not 
  initialized. cannot access request
   
  and when itried 
  to remove from cocoon/lib :
  - 
  xml-apis.jar
  - 
  xercesImpl-2.0.0.jar
  - 
  xalan-2.3.1.jar
  -batik-all-1.5b1.jar
  xt19991105.jar
   
  and update in 
  web.xml of cocoon :
   
  init-param>
  
  extra-classpath
  JBOSS/lib/xml-apis.jar:JBOSS/lib/xercesImpl-2.0.0.jar:JBOSS/server/default/lib/xalan-2.3.1.jar:JBOSS/server/default/lib/batik-all-1.5b1.jar
    
  
  i also got error 
  above.
  can you all help 
  me? 
  thnks alot iin 
  advance
  GD--This e-mail is confidential and is intended for the named recipient only. Ifyou receive it in error please destroy the message and all copies. KainosSoftware Ltd. does not accept liability for damage sustained as a result ofmalicious software (e.g. viruses). Kainos does not accept liability for, orpermit, the creation of contracts on its behalf by e-mail, the publication ofany defamatory statement by its employees by e-mail, or changes subsequentlymade to the original message. The Company's registered office is located at4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.


Re: Problem integrating cocoon

2002-11-28 Thread Cedric Picard
Title: Re: Problem integrating cocoon






Hi there,


My ClassNotFoundException problem is now fixed, surprisingly enough, restarting jboss did the trick :-)


However, the problem with stylesheets (*.css) and images is causing me some concern. All jsp pages use a stylesheet (stylesheets/kainos_styles.css) as well as images (images/*) which are not being picked up since integrating with cocoon.

Would cocoon automatically pick up files from the stylesheets folder by any (lack of) chance? If so, is there any way of preventing this from happening?

Regards,

Cedric Picard,

Software Engineer

Kainos Software Ltd.


--This e-mail is confidential and is intended for the named recipient only. Ifyou receive it in error please destroy the message and all copies. KainosSoftware Ltd. does not accept liability for damage sustained as a result ofmalicious software (e.g. viruses). Kainos does not accept liability for, orpermit, the creation of contracts on its behalf by e-mail, the publication ofany defamatory statement by its employees by e-mail, or changes subsequentlymade to the original message. The Company's registered office is located at4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.


Re: Problem integrating cocoon

2002-11-28 Thread Cedric Picard
Title: Re: Problem integrating cocoon






Hi there,


I eventually managed to find the root cause of my problem. Basically, cocoon.xconf needed to be updated in the following way:

  

    

  

  

  

    

  


As the parameter "compiler" was not defined.


However, I now run into a different error:

org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.NoClassDefFoundError: org/apache/cocoon/sitemap/AbstractSitemap 

Although cocoon-2.0.3.jar is deployed in jboss/lib/ext and definitely contains the AbstractSitemap class.


Any ideas?


Regards,

Cedric Picard,

Software Engineer

Kainos Software Ltd.


--This e-mail is confidential and is intended for the named recipient only. Ifyou receive it in error please destroy the message and all copies. KainosSoftware Ltd. does not accept liability for damage sustained as a result ofmalicious software (e.g. viruses). Kainos does not accept liability for, orpermit, the creation of contracts on its behalf by e-mail, the publication ofany defamatory statement by its employees by e-mail, or changes subsequentlymade to the original message. The Company's registered office is located at4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.


Cocoon integration problem

2002-11-27 Thread Cedric Picard
Title: Cocoon integration problem






Hi all,


I am now able to deploy a sitemap as part of a web application. This web application contains jsp pages which are to run outside cocoon (ie, cocoon does not control the execution of the pages), but instead some pages invoke cocoon to obtain generated reports.

In order to "free" the jsp from cocoon's control, simply remove:

  

    Cocoon2

    *.jsp

  

From web.xml

(could this cause any problems with the execution of xsp files by the way?)


Accessing the jsp pages is not a problem (although the stylesheets & images seem to be ignored), but I am no longer able to access my pipeline.

http://localhost:8080/workflowclient/CMReports/CMUsers.html


org.apache.avalon.framework.component.ComponentException: Could not access the Component


The error seems to indicate that the sitemap is indeed being used, but no pipeline matches the requested url.


I assumed the extra level added by including the sitemap inside a web application might require extra settings, so I changed to match pattern in the root sitemap from "CMReports/**" to "workflowclient/CMReports/**".

Basically, the application is deployed as workflowclient.war, which contains:

- *.jsp

- *.tld

- sitemap.xmap

- CMReports/sitemap.xmap -> sub-sitemap mounted as follows:

  

    

  

    

    

  

  

    

  


- stylesheets/

- images/

- javascript/

- WEB-INF/


I would guess the problem resides in the correct matching of the requested url, but cannot figure out what matching to apply. If anyone has an idea, that would be greatly appreciated.

Regards,

Cedric Picard,

Software Engineer

Kainos Software Ltd.


--This e-mail is confidential and is intended for the named recipient only. Ifyou receive it in error please destroy the message and all copies. KainosSoftware Ltd. does not accept liability for damage sustained as a result ofmalicious software (e.g. viruses). Kainos does not accept liability for, orpermit, the creation of contracts on its behalf by e-mail, the publication ofany defamatory statement by its employees by e-mail, or changes subsequentlymade to the original message. The Company's registered office is located at4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.


XConfTools reports a NullPointerException

2002-11-25 Thread Cedric Picard
Title: XConfTools reports a NullPointerException






Hi,


Still trying to merge cocoon into our own web application, I seem to be getting a NullPointerException when running the XConfTools ant task.

Basically, here is the file hierarchy:

webapp\

    - sitemap.xmap (default generators/transformers/serializers/matchers + mounting of CMReports\sitemap.xmap - that is, the original sitemap but with only one pipeline which mounts the sub-sitemap)

    - CMReports\

        - sitemap.xmap

        - documents\CMUsers.xsp

        - stylesheets\CMUsers.xsl

    - *.jsp (our own pages)

    - *.tld

    - src\ (contains all built-in cocoon actions, as well as jsp actions, helper classes)

    - WEB-INF\

        - web.xml

        - cocoon.xconf

        - logkit.xconf


When invoking XConfTools, I get the following stack trace:

java.lang.NullPointerException

    at XConfToolTask.process(XConfToolTask.java:113)

    at XConfToolTask.execute(XConfToolTask.java:84)

    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:104)

    at org.apache.tools.ant.Task.perform(Task.java:217)

    at org.apache.tools.ant.Target.execute(Target.java:184)

    at org.apache.tools.ant.Target.performTasks(Target.java:202)

    at org.apache.tools.ant.Project.executeTarget(Project.java:601)

    at org.apache.tools.ant.Project.executeTargets(Project.java:560)

    at org.apache.tools.ant.Main.runBuild(Main.java:454)

    at org.apache.tools.ant.Main.start(Main.java:153)

    at org.apache.tools.ant.Main.main(Main.java:176)


And here are the basic targets for the generation of the war file:


    

        

            

            

            

            

            

            

        


    

    

        

        

    


    

                             classesLocale, classesUtils" unless="wwc.skip">

        

        

        extension="xmap"

        configuration="${webclient.root}/sitemap.xmap" />

        

        extension="xmap"

        configuration="${webclient.root}/sitemap.xmap" />

        

        extension="xconf"

        configuration="${webclient.root}/cocoon.xconf" />

        

            deprecation="${build.compiler.deprecationInfo}" debug="${build.compiler.debug}"

            optimize="${build.compiler.optimize}">

            

            

            

        

    


    

    

        unless="wwc.skip">

        

            

                

            

            

                    

                 

        

    


Any idea what seems to be missing/incorrect?


Regards,

Cedric Picard,

Software Engineer

Kainos Software Ltd.


--This e-mail is confidential and is intended for the named recipient only. Ifyou receive it in error please destroy the message and all copies. KainosSoftware Ltd. does not accept liability for damage sustained as a result ofmalicious software (e.g. viruses). Kainos does not accept liability for, orpermit, the creation of contracts on its behalf by e-mail, the publication ofany defamatory statement by its employees by e-mail, or changes subsequentlymade to the original message. The Company's registered office is located at4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.


Building a web application

2002-11-22 Thread Cedric Picard
Title: Building a web application






Hi,


I am currently trying to integrate cocoon into another web application, and was wondering if there was any tutorial/how-to on this? Basically, this application is built into a war file, and the sitemap information would need to be included in this war.

So far, I have always deployed our application as 2 separate war files. 


Regards,

Cedric Picard,

Software Engineer

Kainos Software Ltd.


--This e-mail is confidential and is intended for the named recipient only. Ifyou receive it in error please destroy the message and all copies. KainosSoftware Ltd. does not accept liability for damage sustained as a result ofmalicious software (e.g. viruses). Kainos does not accept liability for, orpermit, the creation of contracts on its behalf by e-mail, the publication ofany defamatory statement by its employees by e-mail, or changes subsequentlymade to the original message. The Company's registered office is located at4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.


RE: developing/installing custom actions without restarting app server?

2002-11-14 Thread Cedric Picard
The only way I know to get round this problem is to actually use jboss
rather than tomcat.

When a jar/war is deployed in jboss, it automatically removes the
previous jar/war.

Regards,
Cedric

-Original Message-
From: Reinhard Poetz [mailto:reinhard_poetz@;gmx.net] 
Sent: 14 November 2002 16:48
To: [EMAIL PROTECTED]
Subject: RE: developing/installing custom actions without restarting app
server?


> I'm wondering, is being cached somewhere? Is there a way to install 
> the action and make it work without restarting the server?

No, as far as I know there is no way

Regards,
Reinhard
 

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



--

This e-mail is confidential and is intended for the named recipient only. If
you receive it in error please destroy the message and all copies. Kainos
Software Ltd. does not accept liability for damage sustained as a result of
malicious software (e.g. viruses). Kainos does not accept liability for, or
permit, the creation of contracts on its behalf by e-mail, the publication of
any defamatory statement by its employees by e-mail, or changes subsequently
made to the original message. The Company's registered office is located at
4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: esql / xsp <- query for date

2002-11-13 Thread Cedric Picard
This is because your query is looking for an exact match on the date, although the 
date field in your database probably holds the time as well as the date. You need to 
narrow your date in the database query to the date only.
By this, I mean that if Info_datum is '11/11/2002 17:12:05.000', it will not equal 
'11/11/2002 00:00:00.000' which is the date you are passing as argument.

How to actually narrow the date depends on the type of database you are using in the 
background.

Good luck,
Cedric

-Original Message-
From: Scherler, Thorsten [mailto:Thorsten.Scherler@;weidmueller.de] 
Sent: 13 November 2002 17:09
To: [EMAIL PROTECTED]
Subject: AW: esql / xsp <- query for date


Jepp!

That way I don't an error but neither any result!

-Ursprüngliche Nachricht-
Von: Cedric Picard [mailto:C.Picard@;kainos.com]
Gesendet: Mittwoch, 13. November 2002 18:03
An: [EMAIL PROTECTED]
Betreff: RE: esql / xsp <- query for date


Have you tried '11/11/2002' instead?

I would expect esql to use a Java Date class to wrap the date string into a Date 
object, which is then converted to the format used in the database by the JDBC driver.

Cedric

-Original Message-
From: Scherler, Thorsten [mailto:Thorsten.Scherler@;weidmueller.de] 
Sent: 13 November 2002 17:00
To: Cocoon-Users (E-Mail)
Subject: esql / xsp <- query for date


Hello group,

I have a big problem!

I want to do the following:

I have a query on a database. It is working fine!

I can do the following with every field but the date:
e.g.
http//...?id=1

but as soon as I but ?date='11.11.2002'

it blows!

So trying the following blows it too:

select * from IDM_info where Info_datum = '11.11.02' 

My db is access 97 but that should be ok because I use the odbc:jdbc - bridge.

So how can I get all data where the date is e.g. 13.11.2002?

> Mit freundlichem Gruss,
> 
> Thorsten Scherler
> Marketing / Telefonmarketing
> 
> Weidmüller GmbH & Co.
> P.O. Box 2807
> 33058 Paderborn
> Tel.:+ 49 - 5252-960-350
> Fax:+ 49 - 5252-960-116
> eMail: [EMAIL PROTECTED] http://www.weidmueller.de
> 
> 

-
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]>



--

This e-mail is confidential and is intended for the named recipient only. If you 
receive it in error please destroy the message and all copies. Kainos Software Ltd. 
does not accept liability for damage sustained as a result of malicious software (e.g. 
viruses). Kainos does not accept liability for, or permit, the creation of contracts 
on its behalf by e-mail, the publication of any defamatory statement by its employees 
by e-mail, or changes subsequently made to the original message. The Company's 
registered office is located at 4-6 Upper Crescent, Belfast, BT7 1NT, Northern 
Ireland, Tel +44 28 9057 1100.

-
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]>



--

This e-mail is confidential and is intended for the named recipient only. If
you receive it in error please destroy the message and all copies. Kainos
Software Ltd. does not accept liability for damage sustained as a result of
malicious software (e.g. viruses). Kainos does not accept liability for, or
permit, the creation of contracts on its behalf by e-mail, the publication of
any defamatory statement by its employees by e-mail, or changes subsequently
made to the original message. The Company's registered office is located at
4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.

-
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: esql / xsp <- query for date

2002-11-13 Thread Cedric Picard
Have you tried '11/11/2002' instead?

I would expect esql to use a Java Date class to wrap the date string into a Date 
object, which is then converted to the format used in the database by the JDBC driver.

Cedric

-Original Message-
From: Scherler, Thorsten [mailto:Thorsten.Scherler@;weidmueller.de] 
Sent: 13 November 2002 17:00
To: Cocoon-Users (E-Mail)
Subject: esql / xsp <- query for date


Hello group,

I have a big problem!

I want to do the following:

I have a query on a database. It is working fine!

I can do the following with every field but the date:
e.g.
http//...?id=1

but as soon as I but ?date='11.11.2002'

it blows!

So trying the following blows it too:

select * from IDM_info where Info_datum = '11.11.02' 

My db is access 97 but that should be ok because I use the odbc:jdbc - bridge.

So how can I get all data where the date is e.g. 13.11.2002?

> Mit freundlichem Gruss,
> 
> Thorsten Scherler
> Marketing / Telefonmarketing
> 
> Weidmüller GmbH & Co.
> P.O. Box 2807
> 33058 Paderborn
> Tel.:+ 49 - 5252-960-350
> Fax:+ 49 - 5252-960-116
> eMail: [EMAIL PROTECTED] http://www.weidmueller.de
> 
> 

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



--

This e-mail is confidential and is intended for the named recipient only. If
you receive it in error please destroy the message and all copies. Kainos
Software Ltd. does not accept liability for damage sustained as a result of
malicious software (e.g. viruses). Kainos does not accept liability for, or
permit, the creation of contracts on its behalf by e-mail, the publication of
any defamatory statement by its employees by e-mail, or changes subsequently
made to the original message. The Company's registered office is located at
4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: [REQ] Validation actions

2002-11-13 Thread Cedric Picard
> If you had looked at your sitemap.log you would have seen

I had a look at the sitemap.log and it does not contain any reference to
a sitemap level.
This is the content of the sitemap.log:

DEBUG   (2002-11-13) 12:36.00:288   [sitemap] (Unknown-URI)
Unknown-thread/SitemapManager: Sitemap location = sitemap.xmap
DEBUG   (2002-11-13) 12:36.00:288   [sitemap] (Unknown-URI)
Unknown-thread/SitemapManager: Checking sitemap reload = true
DEBUG   (2002-11-13) 12:36.00:288   [sitemap] (Unknown-URI)
Unknown-thread/SitemapManager: Reloading sitemap asynchron = false
DEBUG   (2002-11-13) 12:36.00:288   [sitemap] (Unknown-URI)
Unknown-thread/SitemapManager: Sitemap check delay = 1 sec
DEBUG   (2002-11-13) 12:36.00:699   [sitemap] (Unknown-URI)
Unknown-thread/DefaultRoleManager: added Role
org.apache.cocoon.acting.ActionSelector with shorthand action for
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector
DEBUG   (2002-11-13) 12:36.00:699   [sitemap] (Unknown-URI)
Unknown-thread/DefaultRoleManager: added Role
org.apache.cocoon.selection.SelectorSelector with shorthand selector for
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector
DEBUG   (2002-11-13) 12:36.00:699   [sitemap] (Unknown-URI)
Unknown-thread/DefaultRoleManager: added Role
org.apache.cocoon.matching.MatcherSelector with shorthand matcher for
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector
DEBUG   (2002-11-13) 12:36.00:699   [sitemap] (Unknown-URI)
Unknown-thread/DefaultRoleManager: added Role
org.apache.cocoon.generation.GeneratorSelector with shorthand generator
for org.apache.cocoon.sitemap.DefaultSitemapComponentSelector
DEBUG   (2002-11-13) 12:36.00:709   [sitemap] (Unknown-URI)
Unknown-thread/DefaultRoleManager: added Role
org.apache.cocoon.transformation.TransformerSelector with shorthand
transformer for
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector
DEBUG   (2002-11-13) 12:36.00:709   [sitemap] (Unknown-URI)
Unknown-thread/DefaultRoleManager: added Role
org.apache.cocoon.serialization.SerializerSelector with shorthand
serializer for org.apache.cocoon.sitemap.DefaultSitemapComponentSelector
DEBUG   (2002-11-13) 12:36.00:709   [sitemap] (Unknown-URI)
Unknown-thread/DefaultRoleManager: added Role
org.apache.cocoon.reading.ReaderSelector with shorthand reader for
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector
DEBUG   (2002-11-13) 12:36.00:719   [sitemap] (Unknown-URI)
Unknown-thread/DefaultRoleManager: added Role
org.apache.cocoon.components.notification.NotifyingBuilder with
shorthand notifying-builder for
org.apache.cocoon.components.notification.DefaultNotifyingBuilder

> You could attach a debugger.
>
> You could issue debug statements. See other actions on how to do it.

Cheers for that,
Cedric


--

This e-mail is confidential and is intended for the named recipient only. If
you receive it in error please destroy the message and all copies. Kainos
Software Ltd. does not accept liability for damage sustained as a result of
malicious software (e.g. viruses). Kainos does not accept liability for, or
permit, the creation of contracts on its behalf by e-mail, the publication of
any defamatory statement by its employees by e-mail, or changes subsequently
made to the original message. The Company's registered office is located at
4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




[REQ] Validation actions

2002-11-13 Thread Cedric Picard
Title: [REQ] Validation actions






Hi there,


I am currently trying to integrate cocoon 2.0.3 with a web application. The idea is to use cocoon as a reports engine to generate printable HTML documents.

I have basically downloaded cocoon-2.0.3-src.zip, built on Windows 2K (JDK 1.3.1), and deployed in Jboss 2.4.6 with tomcat 4.0.3.

In a first step, I chose to deploy cocoon as standalone, and simply add my own sitemap to the existing webapp:



  

    

  

    

  

  …




And access the reports pages at http://localhost:8080/cocoon/Reports/myreport.html


In a second step, I added an action in my own sitemap, to perform session validation, so that reports can only be accessible via our web application, passing our session object to the pipeline.

CMReports/sitemap.xmap:



http://apache.org/cocoon/sitemap/1.0">


   

 

 

 

 

 

 

 

   

    src=""com.kainos.cocoon.action.EnsureLoggedInAction"" />

 

   

   

   

 

 

   

 

   

   

   

 

   

 

      




And here is the code for the action:

public class EnsureLoggedInAction extends AbstractAction

{

    public Map act(Redirector redirector_p,

                   SourceResolver resolver_p,

                   Map objectModel_p,

                   String sSource_p,

                   Parameters params_p)

    {

        Map map = null;


        Request request = (Request) objectModel_p.get(Constants.REQUEST_OBJECT);


        CSessionSB sessionSB = null;


        // extract the session object passed as an attribute to the request object

        sessionSB = (CSessionSB) request.getAttribute("coreSessionSB");


        if (null == sessionSB)

        {

            return null;

        }


        try

        {

            sessionSB.ensureLoggedIn();


            // the user is logged in, set the map to an empty map

            map = EMPTY_MAP;

        }

        catch(CNotPermittedException e)

        {

            // nothing to do, map already equals to null

        }

        catch(RemoteException e)

        {

            // nothing we can do about it

        }

        finally

        {

            return map;

        }

    }

}


I also modified build.xml to include EnsureLoggedIn.class in web-inf/classes, but upon accessing the page via our web application, I get a resource not found exception

The requested URI "/cocoon/CMReports/CMUsers.html" was not found


I can only assume the addition of the login validation caused the problem, as the page was generated successfully prior to the addition of the action, but cannot see what is going wrong,

Is there any way of debugging actions?

Cedric Picard,

Software Engineer

Kainos Software Ltd.


--This e-mail is confidential and is intended for the named recipient only. Ifyou receive it in error please destroy the message and all copies. KainosSoftware Ltd. does not accept liability for damage sustained as a result ofmalicious software (e.g. viruses). Kainos does not accept liability for, orpermit, the creation of contracts on its behalf by e-mail, the publication ofany defamatory statement by its employees by e-mail, or changes subsequentlymade to the original message. The Company's registered office is located at4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.