Cocoon 2.1 Build Problem

2002-09-20 Thread Ivelin Ivanov


For the last few nights I have been trying to build the latest code from CVS
HEAD.
build clean webapp-local
always succeeds, but the generated class files are corrupted.
Also the libraries files copied under WEB-INF/lib are corrupted.
I've tried with both JDK 1.3 and JDK 1.4. Same outcome.
I've tried building from scratch in multiple directories on my disk.
Always the same.

Has any experienced this before? How did you fix it?

Any help appreciated,

-=Ivelin=-



-
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: german umlaut!

2002-09-20 Thread Vadim Gritsenko

Wolle,

I was trying to reproduce your issue but failed. Can you put together 
small test case with short XML file, sitemap snippet, actual text 
output, and desired text output, and send this as an (zip) attachement?


Thanks,
Vadim



Wolle wrote:

>hi everybody!
>
>thank you very much for the help. but i still have the problem.
>the html and pdf output is ok. as soon as i produce text-output i get
>UTF-8 code although i forced cocoon to produce iso 8859-1 by using:
>
>  name="text" src="org.apache.cocoon.serialization.TextSerializer">
> iso-8859-1
> 
>
>the saved text-file is indeed  UTF-8 coded because the unix-command 'file'
>confirms the result.
>
>right now i am using a workaround by reencoding the saved file
>via: 'recode UTF-8 file.txt'
>
>
>i tested for quite a long time. this is a working solution without cocoon
>2.0.3.
>
>maybe there is more luck with cocoon 2.1.
>
>
>wolfgang weigel
>  
>




-
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: About Auth Framework

2002-09-20 Thread Antonio Gallardo Rivera

To answer my question: :)

From Cocoon docs:

A session is a data storage which resides on the server and records 
information about one single user. Cocoon creates a session on demand and 
from that point of time the user is tracked and information can be stored 
inside the session. Each following request of this user is linked to the one 
specific session, so there is always only one session per user on the server. 

To avoid a fast growing amount of sessions on the server and the overcome 
potential security problems, a session has usually a valid period of time. If 
during this period no new request comes in from the user, the session object 
on the server will be destroyed by the server (this period of time is called 
session timeout). The web application often allows a user to explictly 
destroy a session. 

The usual web applications create sessions during login of a user and destroy 
them when the user logs out. 

Antonio Gallardo

El Viernes, 20 de Septiembre de 2002 16:30, Antonio Gallardo Rivera escribió:
> I have a little web application with aprox. 123 pages. I need to setup the
> users and groups permisions to this pages. I am using the Authentication
> Framework. All this permisions are stored in a database in the server. The
> question is:
>
> Where are all the session data stored or mantained?
>
> I ask this because I need to know what is the cost of read once and store
> all this data inside the user session vrs. Retrieve a value from the
> database on every access (using the user ID).
>
> I know this is a trade off between database transacctions vrs. network
> bandwidth.
>
> Many thanks in advance,
>
> Antonio Gallardo.
>
> P.S: I am using XSP, Cocoon 2.1
>
> -
> 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]>

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




About Auth Framework

2002-09-20 Thread Antonio Gallardo Rivera

I have a little web application with aprox. 123 pages. I need to setup the 
users and groups permisions to this pages. I am using the Authentication 
Framework. All this permisions are stored in a database in the server. The 
question is:

Where are all the session data stored or mantained?

I ask this because I need to know what is the cost of read once and store all 
this data inside the user session vrs. Retrieve a value from the database on 
every access (using the user ID).

I know this is a trade off between database transacctions vrs. network 
bandwidth.

Many thanks in advance,

Antonio Gallardo.

P.S: I am using XSP, Cocoon 2.1

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




Problem redirecting to an XSP

2002-09-20 Thread Steven Cummings

Hello,

I have what *seems* to be a problem redirecting to an XSP after authentication. At 
first I was trying out the sunRise components per Matthew's tutorial and it seems to 
work until my login component in the pipeline is called, and the authentication 
pipeline configured in the handler is called. When this occurs I get a blank page and 
NO error message. I looked at my log files and it appears that the login pipeline uses 
the sunRise config to call my authentication component, which happens to be an XSP and 
then it just kind of stops. I don't see any error messages in the log, and the page 
returned is blank.

Then I tried the same situation with my own custom authentication components (having 
NOTHING to do with sunRise), just my own set of actions and sitemap flow-control. 
Again, all was fine and well until a redirect to my authenticate.xsp was made, and a 
blank page was returned and no information in the log file. This seems really wierd to 
me. My XSP does do work, and I would figure that some exception would be thrown at the 
very least. Does this problem sound familiar to anyone? I couldn't find this problem 
in the mailing list archives. Thanks ahead of time for any help anyone can provide.

/S

-- 
Steven Cummings
Columbia, MO
Email: [EMAIL PROTECTED]
AIM:   cummingscs
ICQ:   3330114


__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

-
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: web app design

2002-09-20 Thread Hunsberger, Peter

> My webapp is a vertical app on cocoon, specifically only oriented for
> Businesses who wants to base their e-comm-activity in CRM. 

You still didn't tell us your performance requirements, but this would
suggest that the user community is small, or can at least be physically
partitioned.  As such, a pure Cocoon architecture should be viable.

> In this sense, the result should be a Cocoon but with enhanced services
for
> the purposes mentioned, strongly based in cocoon but with developing
> future-jobs parallel to Cocoon because her high-specificity.

There are people creating web services on top of Cocoon.  There are also
people creating publishing frameworks on top of Cocoon. Again search the
mail list archives for these discussions. Neither of these areas are
particularly mature in Cocoon (but then again, where are they?), so you'll
likely run into some problems if you try to extend other initiatives. The
one thing that it sounds like you will need  is custom Cocoon serializers
and transformers.  A serializer or a transformer can grab the results of a
transformation and do with it as it pleases.  As such, they can, in a sense,
replace the requirement for components implemented directly on Avalon...

I'm not sure, but depending on your implementation time frame you might want
to consider the Cocoon 2.1 fork instead of the 2.0 versions of Cocoon.  Less
stable, but I think they might fit your requirements a little better (can
anyone validate this?).




-
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: web app design

2002-09-20 Thread Raúl Wild-Spain

thanks for your response, Peter ;-)

 difficult questions ...  I would like to explain my purposes a little
more ( although I don't know if it's necessary for me or for you ... I think
for me ;-)   )

My webapp is a vertical app on cocoon, specifically only oriented for
Businesses who wants to base their e-comm-activity in CRM. The architecture
of Cocoon, based entirely on XML, makes it very good for my purposes. My
problem is that I not only need to create content on Cocoon but I need to
create a new layer of services/components on Cocoon, layers nearest to
requirements for Businesses and CRM and in other concern areas different to
cocoon but  I would like to make it as Cocoon makes it (and avalon) ( here
is my problem, you know ;-)  ),

In this sense, the result should be a Cocoon but with enhanced services for
the purposes mentioned, strongly based in cocoon but with developing
future-jobs parallel to Cocoon because her high-specificity.

In a very general overview, my webapp will need to make use of cocoon
facilities and architecture, EJB and DB (and to create XML from DB) and it
should conform her as a Business2CRM Webpublishing framework (I'll try it
;-) )

Like you said me I would appreciate any article or information that can help
me to clarify my doubts concerned to Cocoon vs webapps. Also comments about
these explanations.

Also thank's a lot for your hints about XML - XSLT concerns, Peter.

Raúl Cruz
[EMAIL PROTECTED]


-
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: Urgent: Help in XSLT ..........

2002-09-20 Thread J.Pietschmann

Chitharanjan Mohandas wrote:
> I have the following requirement.. I am sorry If I have posted
> to the woring site. Since cocoon uses XSLT a lot, I guess I
> will be better helped here 
Close, but no cigar. The best place to ask XSLT related
questions is still the XSL list:
  http://www.mulberrytech.com/xsl/xsl-list/
THey have a FAQ and an archive there.

> Consider the following XML
> 
> I need to extract the description for the language
> which appears first when sorted alphabetically.
> 
> In this case I need the description for lang "de" i.e German Descrciption...
> The script should extract only for the language de...
...
> Could any one of you please advice me on how to build
> an XSLT script to solve this issue...

The easiest way is to use
  

  
  

  

  
This is not very efficient if you have a real lot
of descriptions (run time is O(n*log(n)) instead of
O(n)), but then, I don't think there is an efficient
solution without using an extension function for
lexical string comparisions.

J.Pietschmann


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




Urgent: Help in XSLT ..........

2002-09-20 Thread Chitharanjan Mohandas

I have the following requirement.. I am sorry If I have posted
to the woring site. Since cocoon uses XSLT a lot, I guess I
will be better helped here Please do help me on this...


Consider the following XML

I need to extract the description for the language
which appears first when sorted alphabetically.

In this case I need the description for lang "de" i.e German Descrciption...
The script should extract only for the language de...





 
  en
  Description
 
 
  de
  German Description
 
 
  es
  Spanish Description
 



Could any one of you please advice me on how to build
an XSLT script to solve this issue...

Thanks and regds,
Chiths


PS: How does one return a XML node from a template


-
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: Excluding cinclude namespace thru a stylesheet following a cinclude transformation

2002-09-20 Thread Reinhard Poetz

Daniel,

http://outerthought.net/wiki/Wiki.jsp?page=RemoveNamespaces

Regards,
Reinhard

> -Original Message-
> From: Daniel Fournier [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 20, 2002 6:55 PM
> To: [EMAIL PROTECTED]
> Subject: Excluding cinclude namespace thru a stylesheet following a
> cinclude transformation
> 
> 
> Hello Carsten,
> 
> First, I'd like to congratulate you for the Cocoon book you co-wrote.
> It's a must have for any Cocoon developer. Reading it has cleared many 
> aspects of the Cocoon framework in my mind.
> 
> Second, as you're the author of the very usefull cinclude 
> transformer, could 
> you explain how to get rid of the cinclude namespace when 
> applying another 
> XSL transformation just after the cinclude transformation.
> Using the xsl:exclude-result-prefixes as no effect.
> 
> Thanks a lot,
> 
> Daniel Fournier
> 
> -
> 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]>
> 

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




Problems running latest source build on XP Professional

2002-09-20 Thread Bruce Perryman

Hello,

My environment is as follows:
JDK 1.4.01
Tomcat 4.04
XP Professional

My reasons for wanting to use the latest source is to
make use of the authentication and session handling
framework.
I downloaded the source from CVS on 9/19/02 and built
it on my dev. environment with no reported errors. I
placed the built war file in my webapps directory and
started TC.
After TC started the following error appears in the
log file:

The component instance for 'xmlmeta' has an invalid
class name.

When I try to access a working app. from cocoon 2.0.3
in the latest version, I get several errors pertaining
to not being able to find classes for itextserializer.
This points to the use of the html serializer in my
sitemap.

Any help you can give would be appreciated. I've
attached my error.log file.

ERROR   (2002-09-20) 14:21.18:224   [core.manager]
(Unknown-URI)
Unknown-thread/ExcaliburComponentSelector: The
component instance for 'xmlmeta' has an invalid class
name
(org.apache.cocoon.components.modules.input.XMLMetaModule).
java.lang.ClassNotFoundException:
org.apache.cocoon.components.modules.input.XMLMetaModule
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1406)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1254)
at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.configure(ExcaliburComponentSelector.java:352)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:185)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:158)
at
org.apache.cocoon.Cocoon.initialize(Cocoon.java:270)
at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1237)
at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:435)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3279)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
ERROR   (2002-09-20) 14:21.18:224   [core.manager]
(Unknown-URI)
Unknown-thread/ExcaliburComponentManager: Caught an
exception trying to initialize the component handler.
org.apache.avalon.framework.configuration.ConfigurationException:
The component instance for 'xmlmeta' has an invalid
class name
(org.apache.cocoon.components.modules.input.XMLMetaModule).
at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.configure(ExcaliburComponentSelector.java:365)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:185)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:158)
at
org.apache.cocoon.Cocoon.initialize(Cocoon.java:270)
at
org

RE: Password Encryption

2002-09-20 Thread Stefan Seifert

A bit off-topic, but:
A good method is using a SHA-Hash of the password like this:

  public static String encryptPassword(String pstrPassword) {
  MessageDigest sha = MessageDigest.getInstance("SHA");
  sha.update(pstrPassword.getBytes());
  byte abytHash[] = sha.digest();

  StringBuffer strEncrypt = new StringBuffer();
  for (int intIndex=0; intIndex -Original Message-
> From: Antonio Gallardo Rivera 
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 20, 2002 8:10 PM
> To: [EMAIL PROTECTED]
> Subject: Password Encryption
> 
> 
> I am using authentication against the database. I am storing 
> and geting the 
> user parameters from a database. My question is:
> 
> How can I encrypt the password to store it then in the database?
> 
> Thanks in advance :)
> 
> Antonio Gallardo
> 
> -
> 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]>
> 
> 
> 
> 
> 

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




Is internal redirection from Actions possible?

2002-09-20 Thread Artur Bialecki


Is there a way to redirect internally (without going back to the browser)
from an action? Actions get a Redirector but it is a SitemapRedirector
that calls HttpEnvironment.redirect(). Is there any way
I can get a ForwardRedirector in my action.

Thanks,


Artur...

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




Password Encryption

2002-09-20 Thread Antonio Gallardo Rivera

I am using authentication against the database. I am storing and geting the 
user parameters from a database. My question is:

How can I encrypt the password to store it then in the database?

Thanks in advance :)

Antonio Gallardo

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




Livesite http://biology.bangor.ac.uk/

2002-09-20 Thread Simeon Walker

Hello all,

after nine months work our new Cocoon based website is live :-)

I have used Cocoon 2.0.3 (branch), Tomcat 4.0.4 and Apache 1.3.
The site sends table based html to older browsers and WC3
compliant code to newer browsers (Looks best in Mozilla).

Data comes from a number of sources; two different Oracle
databases, XML files, a remote page via the html generator,
listings via the directory generator.

I made extensive use of sub-sitemaps and aggregation to stop
the whole thing from getting out of hand ;-)

Thanks to all those who have contributed to Cocoon for making
this possible.

Regards,
Simeon

P.S. It's bi-lingual if you speak Welsh!

-- 
Simeon Walker,  email: [EMAIL PROTECTED]
School of Biological Sciences,  phone: +44 (0)1248 383702
University of Wales, Bangor,fax: +44 (0)1248 382569
Gwynedd, LL57 2UW, UK.  www: http://biology.bangor.ac.uk/


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




SimpleFormTransformer

2002-09-20 Thread Marcin Stefaniuk

Hello!
Where I can read about SimpleFormTransformer?

Marcin

-
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: web app design

2002-09-20 Thread Hunsberger, Peter


> Related to cocoon it seems I need to do all this through generators or
> actions ( I think), but It not seems the proper way because all my
required
> process will occurs out of SAX streams or related process (or I don't
> understand how to do it). Only in the load process my components will need
> to read some specific xml data for their configuration and initialization

> Also I will need my components make use of session management, caching,
> scheduling DB access and i18n ... should it manage it directly with java?
> cocoon? and/or avalon components?

Raul,

choosing a good application architecture even using just Cocoon can be
difficult, never mind adding Avalon components to the mix.  I think you need
to tell us some of the performance criteria: how many users max?  what kind
of data set sizes?  how many transactions per second, minute or hour
(whichever is relevant)?  The other thing that helps in this decision is
knowing how dynamic the data is and where it is sourced:  is every page
built dynamically, or are pages mostly static?  Is the data all XML, is some
of it relational DB, or does some come from other systems via EJBs?

If the answer is that performance scaling is not an issue and the data is
all XML and every page is dynamic then a pure Cocoon solution would make
sense.  If the answer is that performance is going to be a big problem, the
data comes from SJBs and everything is dynamic then pure Avalon components
might make sense.  If everything is static then just Apache might make
sense...

If you go with a pure Cocoon or mostly Cocoon implementation then I would
push for a design centered around implementing business rules via XML and
XSLT separated from data presentation (also based on XML and XSLT).  This
exploits the functional programming design of XSLT and minimizes procedural
logic coding.  This can be a hard thing to understand but is extremely
powerful and flexible if you take the time to learn how to do it (a
knowledge of LISP, Prologue and/or Haskell might help).  In such a design
you extract all business rules and all data as XML from various sources and
use the business rule data to first transform the data according to the
business rules (your interface contract) and then transform the data in a
second pass as needed for presentation.  If everything is dynamic you need
to also code metadata to determine what real data must be extracted. This
eliminates the need for logic-sheets and taglibs, using XSLT to filter the
XML instead.  You do end up coding Cocoon generators and actions to
implement such a design, but they are mostly trivial; they create the XML
and pass on or filter http response data as more XML for subsequent
processing steps.

If you're interested in pursuing this approach give me a reply back and I
can likely dig up some old threads in the archives on the topic.




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




Excluding cinclude namespace thru a stylesheet following a cinclude transformation

2002-09-20 Thread Daniel Fournier

Hello Carsten,

First, I'd like to congratulate you for the Cocoon book you co-wrote.
It's a must have for any Cocoon developer. Reading it has cleared many 
aspects of the Cocoon framework in my mind.

Second, as you're the author of the very usefull cinclude transformer, could 
you explain how to get rid of the cinclude namespace when applying another 
XSL transformation just after the cinclude transformation.
Using the xsl:exclude-result-prefixes as no effect.

Thanks a lot,

Daniel Fournier

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




Q: web app design

2002-09-20 Thread Raúl Wild-Spain

Hi!

I'm beginning in Cocoon so I've read the related documentation including the
Avalon whitepaper. Even so I've some troubles to identify the proper
implementation method for my webapp.

Starting from Av. whitepaper I've an idea for my webapp and ending to Cocoon
documentation I've another different ... I'm confused!

I hope you can guide me whether my ideas are "out" or "on the way" or
whether I should to re-orient my decisions.

In my webapp I need some "components" or "services" those which must perform
some process for each http request that is arrived (request-related or not)
always before to process the request through Cocoon (basically like a
filter). It can have more components like these, in a future.

With the Avalon whitepaper I deduced the following:

* I could create (if needed) my interfaces, contracts and roles and then for
each "component" to extend my related interfaces.

* Specifically my components seems to need to provide a method to execute
their specific process ( interface contract? ) and like it should be loaded
dynamically will be good to load all components through a componentmanager.
A servlet for my webapp could execute each method for each loaded component
(each http-request) and  then to pass the http-request to CocoonServlet to
follow the normal process ...

* Some of my components need to be configured with specific xml tags and
data, so I should implement an xsl logic-sheet which will contain all my xml
semantics. ( taglibs?)

 I explained well?, my english isn't very good :-( ...

Related to cocoon it seems I need to do all this through generators or
actions ( I think), but It not seems the proper way because all my required
process will occurs out of SAX streams or related process (or I don't
understand how to do it). Only in the load process my components will need
to read some specific xml data for their configuration and initialization
...

Also I will need my components make use of session management, caching,
scheduling DB access and i18n ... should it manage it directly with java?
cocoon? and/or avalon components?

...

Best Regards,

Raúl Cruz
[EMAIL PROTECTED]


-
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: Cocoon 2.0.3 under Enhydra 3.1

2002-09-20 Thread Matthew Hailstone

Interesting. It looks like the java file created by 2.0.3
creates/initializes the session object for you, but 2.0.1 generated java
file does not. (Notwithstanding they both have the create-session
attribute in the namespace definition) There were a few other null
pointer exceptions that I had to take care of that were 2.0.1 specific,
but were my personal code and not Cocoon generated stuff. But, that was
it!

Thanks so much for your help.

Matthew

> -Original Message-
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, September 20, 2002 9:42 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Cocoon 2.0.3 under Enhydra 3.1
> 
> 
> Matthew Hailstone wrote:
> 
> >Vadim,
> >  How do I _explicitly_ create a session? Isn't the 
> following supposed 
> >to do that?
> >
> >  xmlns:session="http://apache.org/xsp/session/2.0";
> >create-session="true"
> >
> 
> Yes, this will create the session. Other ways are 
> , and 
> request.getSession().
> 
> PS You might be using request or response variables before they are 
> initialized. See also generated java code.
> 
> Vadim
> 
> 
> 
> >I looked on the website for the short list of xsp-session 
> tags to use, 
> >but couldn't find anything to do this. I also have searched 
> the mailing 
> >list with no luck.
> >
> >http://xml.apache.org/cocoon/userdocs/xsp/session.html
> >
> >
> >Matthew
> >  
> >
> 
> 
> 
> 
> -
> 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]>
> 
> 

-
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: how to prevent logging passwords in request and sessionparams?

2002-09-20 Thread Marcus Crafter

Hi Timothy,

On Fri, Sep 20, 2002 at 11:43:48AM -0400, Timothy Larson wrote:
> It would be helpfull if the request parameters and session attributes
> were logged, but with certain ones not showing their values.
> 
> For example:
>   SESSION ATTRIBUTES:
> PARAM: 'username' VALUE: 'tdlarson'
> PARAM: 'password' VALUE: '*'
> 
> Ideally, I would want to be able to specify which sensitive parameters
> and attributes to hide the values of, possibly using wildcards.
> Any ideas how to do this?

To do this you probably need to write your own logkit filter to
check the LogEvent for these strings and modify them if needed:

http://jakarta.apache.org/avalon/logkit/api/org/apache/log/filter/package-summary.html

Cheers,

Marcus

-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   ManageSoft GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ &&:'   60327 Frankfurt Germany
   ' /( &&&
   \_'
  .
&&&:

-
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: Cocoon 2.0.3 under Enhydra 3.1

2002-09-20 Thread Vadim Gritsenko

Matthew Hailstone wrote:

>Vadim,
>  How do I _explicitly_ create a session? Isn't the following supposed
>to do that?
>
>  xmlns:session="http://apache.org/xsp/session/2.0";
>create-session="true"
>

Yes, this will create the session. Other ways are , and 
request.getSession().

PS You might be using request or response variables before they are 
initialized. See also generated java code.

Vadim



>I looked on the website for the short list of xsp-session tags to use,
>but couldn't find anything to do this. I also have searched the mailing
>list with no luck.
>
>http://xml.apache.org/cocoon/userdocs/xsp/session.html
>
>
>Matthew
>  
>




-
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: how to prevent logging passwords in request andsessionparams?

2002-09-20 Thread Timothy Larson

Thank you both.
I now have the logs rotating, and think I understand
the log categories, but there is still one problem.

It would be helpfull if the request parameters and session attributes
were logged, but with certain ones not showing their values.

For example:
  SESSION ATTRIBUTES:
PARAM: 'username' VALUE: 'tdlarson'
PARAM: 'password' VALUE: '*'

Ideally, I would want to be able to specify which sensitive parameters
and attributes to hide the values of, possibly using wildcards.
Any ideas how to do this?

Tim

>>> [EMAIL PROTECTED] 09/20/02 09:50AM >>>
Barbara Post wrote:

>second question : yes : see rotation tag in WEB-INF/logkit.xconf.
>

First question: use log categories. Change log level for category where 
username/pwd are logged.If this is sitemap component, you can even 
assign it separate log category.

Vadim


>Babs
>- Original Message - 
>From: "Timothy Larson" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, September 19, 2002 6:17 PM
>Subject: how to prevent logging passwords in request and sessionparams?
>
>
>How do you prevent logging of passwords held in request parameters
>and session attributes?  I do not want to turn off logging completely.
>
>By the way, is there any sort of automated log rotation for cocoon
>to prevent the logs getting too big?
>
>Tim
>  
>



-
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: Cocoon 2.0.3 under Enhydra 3.1

2002-09-20 Thread Matthew Hailstone

Vadim,
  How do I _explicitly_ create a session? Isn't the following supposed
to do that?

  xmlns:session="http://apache.org/xsp/session/2.0";
create-session="true"

I looked on the website for the short list of xsp-session tags to use,
but couldn't find anything to do this. I also have searched the mailing
list with no luck.

http://xml.apache.org/cocoon/userdocs/xsp/session.html


Matthew

-
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: Cocoon 2.0.3 and CastorTransformer

2002-09-20 Thread Werner Guttmann

Thanks, Vadim. Now, please find below the stack trace (just the root cause) from
Catalina's app specific log file. Looking at line 94  of CastorTransformer.java
(from the scratchpad of the Cocoon 2.0.3 source dist) I can see that it fails on
the line marked with --> <---, but simply woul dnot know enough to tell why ?

Is anybody actually using the CastorTransformer sucessfully ?

Werner

   /**
 * Inner class eventhandler, forward the Castor SAX events
 * to Cocoon 2 Events
 */
CastorEventAdapter = new HandlerBase(){
public void startElement(String name, AttributeList attributes) throws
SAXException
{
  AttributesImpl a= new AttributesImpl();
  for(int i=0;i 
CastorTransformer.super.contentHandler.startElement("",name,name,a);   <
}

public void characters(char[] chars, int offset, int length) throws
SAXException
{
  CastorTransformer.super.contentHandler.characters(chars, offset,
length);
}

public void endElement(String name) throws SAXException
{

  CastorTransformer.super.contentHandler.endElement("", name,name);
}
};
  }




java.lang.NoSuchMethodError
at
org.apache.cocoon.transformation.CastorTransformer$1.startElement(CastorTransformer.java:94)

at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:876)
at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:540)
at
org.apache.cocoon.transformation.CastorTransformer.insertBean(CastorTransformer.java:225)

at
org.apache.cocoon.transformation.CastorTransformer.process(CastorTransformer.java:173)

at
org.apache.cocoon.transformation.CastorTransformer.startElement(CastorTransformer.java:132)

at
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:118)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1284)

at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)

at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)

at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)

at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:269)
at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:222)
at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:206)

at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)

at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)

at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:153)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)

at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:156)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)

at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:140)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)

at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:144)

at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:328)

at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:293)

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.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)

at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)

at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)

at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)

at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at
com.msdw.futopt.expiry.http.ExpiryActionServlet.doPost(ExpiryActionServlet.java:172)

at
com.msdw.futopt.expiry.http.ExpiryActionServlet.doGet(ExpiryActionServle

Re: XSLT snippet for handling empty cells in HTML tables

2002-09-20 Thread Ilya A. Kriveshko

Alternatively, use [snip...] or 
have the following in your 

Re: Cocoon 2.0.3 and CastorTransformer

2002-09-20 Thread Vadim Gritsenko

Werner Guttmann wrote:

>Thanks, Vadim, for pointing this out. I just changed this back to be in line
>with the CASTOR_URI declaration in CastorTransformer.java, i.e. use a
>namespace declaration of
>
>xmlns:castor="http://castor.exolab.org/cocoontransfomer";
>
>in my page. Though now I am facing the same problem as in my original email,
>iow I am still getting a NPE. Any idea why ?
>

No, I don't; and I have not read your original email: I've not worked 
with Castor (yet).

Vadim



>Werner
>
>Vadim Gritsenko wrote:
>
>  
>
>>Werner Guttmann wrote:
>>...
>>
>>
>>
>>>PS Btw, the Castor sample shipped with Cocoon 2.0.3 has an error in the
>>>namespace documentation of the test.xml file, iow it really reads
>>>
>>>
>>>http://castor.exolab.org/cocoontransfomer";>
>>>
>>>  
>>>
>>Actually, this is not error in demo; it's a typo in a transformer
>>itself. Thanks for pointing this out.
>>
>>This namespace typo can easily be fixed because this transformer is
>>still in the scratchpad (== alpha).
>>
>>Vadim
>>...
>>
>>




-
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: how to merge a XML to a XSP ?

2002-09-20 Thread Vadim Gritsenko

funing wrote:

>Hi! all:
>I want to use upload.xsp to provide uploading service and provide
>some other information got from a XML in the same page. 
>How can I make it?
>

XSP is already an XML, so it already does it. Clarify what you want. If 
you need aggregation of two files, read on aggregation and inclusion 
techniques.

Vadim


>best regards
>  
>




-
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: how to prevent logging passwords in request and sessionparams?

2002-09-20 Thread Vadim Gritsenko

Barbara Post wrote:

>second question : yes : see rotation tag in WEB-INF/logkit.xconf.
>

First question: use log categories. Change log level for category where 
username/pwd are logged.If this is sitemap component, you can even 
assign it separate log category.

Vadim


>Babs
>- Original Message - 
>From: "Timothy Larson" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, September 19, 2002 6:17 PM
>Subject: how to prevent logging passwords in request and sessionparams?
>
>
>How do you prevent logging of passwords held in request parameters
>and session attributes?  I do not want to turn off logging completely.
>
>By the way, is there any sort of automated log rotation for cocoon
>to prevent the logs getting too big?
>
>Tim
>  
>




-
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: Cocoon 2.0.3 under Enhydra 3.1

2002-09-20 Thread Vadim Gritsenko

Matthew Hailstone wrote:

>Awesome! I changed the xsp file to declare a namespace of:
>
>xmlns:session="http://apache.org/xsp/session/2.0";
>  create-session="true"
>
>instead of 
>
>xmlns:xsp-session="http://apache.org/xsp/session/2.0";
>  create-session="true"
>
>and changed all the tags in the file (of course :)
>
>Thank you Vadim.
>
>It now compiles, but I have a new problem.
>
>Forgive me for relentlessly inquiring, but I really have no clue. :)
>I am excited that I am actually getting somewhere, which I haven't been
>for some time.
>

...

>java.lang.NullPointerException
>   at
>org.apache.cocoon.components.language.markup.xsp.XSPRequestHelper.setSes
>sionAttribute(XSPRequestHelper.java:454)
>   at
>org.apache.cocoon.www.eval.logic.form_xsp.generate(form_xsp.java:265)
>   at
>org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGe
>nerator.java:226)
>   at
>  
>

...

>Thoughts?
>

Bug in your XSP. 99 out of 100 that you are using request or response 
variables before they are initialized, or session before it is created 
(you have to explicitly create session).


Vadim



>Matthew
>  
>


-
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: Error deploying cocoon.war (Version 2.0.3) to Tomcat 4.1.10

2002-09-20 Thread Vadim Gritsenko

Andrei Svirida wrote:

>Hi all,
>
>i've downloaded the Cocoon 2.0.3 and tried to deploy the file cocoon.war
>to my Tomcat server (4.1.10) using the Tomcat Manager (or 'Deployment
>tool' by Sun)
>

How did you do this? i.e., what was the url to deploy the war?



>After deployment the manager reports the Cocoon application as
>"running"
>
>whenn calling /cocoon on my Tomcat Server i get the following error:
>--
>"Cocoon 2 - Internal server error":
>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
>--
>
>In /work/Standalone/localhost/cocoon/WEB-INF/lib i can see
>all libraries which classes cocoon servlet claims not to find, e.g 
>avalon-framework-4.1.2.jar
>

Not Cocoon but compiler. Compiler did not get correct classpath.

Vadim


>for org/apache/avalon/framework/component/Component.class.
>
>When i manualy unpack cocoon.war into  /webapps everything
>works fine. Due to some circumstances this way of deployment is
>unacceptable for the firm i work in.
>
>Please cc your answer to [EMAIL PROTECTED]
>
>Thanks in advance!
>
>
>
>--
>Andrei Svirida, Projekte & Entwicklung
>MIDRAY GmbH - a debitel company
>Phone:  +49.221.8884 435 
>Fax:+49.221.8884 455
>
>http://www.midray.com/
>  
>


-
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: Cocoon 2.0.3 and CastorTransformer

2002-09-20 Thread Werner Guttmann

Thanks, Vadim, for pointing this out. I just changed this back to be in line
with the CASTOR_URI declaration in CastorTransformer.java, i.e. use a
namespace declaration of

xmlns:castor="http://castor.exolab.org/cocoontransfomer";

in my page. Though now I am facing the same problem as in my original email,
iow I am still getting a NPE. Any idea why ?

Werner

Vadim Gritsenko wrote:

> Werner Guttmann wrote:
> ...
>
> >PS Btw, the Castor sample shipped with Cocoon 2.0.3 has an error in the
> >namespace documentation of the test.xml file, iow it really reads
> >
> >
> >http://castor.exolab.org/cocoontransfomer";>
> >
>
> Actually, this is not error in demo; it's a typo in a transformer
> itself. Thanks for pointing this out.
>
> This namespace typo can easily be fixed because this transformer is
> still in the scratchpad (== alpha).
>
> Vadim
> ...
>
> -
> 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]>


-
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: javascript in xsl

2002-09-20 Thread Ugo Cei

Gabor Bartha wrote:
> Hi,
> 
> How can I insert javascript into my generated html by xsl?
> I would like my final html like this:
> 
> 
> 
> 
> 
> 
> I have an xsp and an xsl stylesheet to generate the html.

Apart from putting the Javascript in an external file, as has already 
been suggested, you could do like follows:

  

... Javascript code goes here ...

  

Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]


-
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: javascript in xsl

2002-09-20 Thread Antonio Gallardo Rivera

There are many forms to do that.I prefer to put the javascript in another 
file, then load it with:



Then in the site map I have:





And the myscript.js is stored inside the directory:

$ROOT_OF_MY_APP/resources/styles

I think this is better because I dont need to use the CDATA tag.

Antonio Gallardo


El Viernes, 20 de Septiembre de 2002 07:11, Gabor Bartha escribió:
> Hi,
>
> How can I insert javascript into my generated html by xsl?
> I would like my final html like this:
> 
> 
> 
> 
> 
>
> I have an xsp and an xsl stylesheet to generate the html.
>
> Gabor
>
>
> -
> 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]>

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




javascript in xsl

2002-09-20 Thread Gabor Bartha

Hi,

How can I insert javascript into my generated html by xsl?
I would like my final html like this:






I have an xsp and an xsl stylesheet to generate the html.

Gabor


-
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: Deploying Cocoon 2.0.3 in JBoss 3.0.2 with Embedded Catalina4.0. 4

2002-09-20 Thread Vadim Gritsenko

Klaus Richarz wrote:

>Hello,
>
>we are using cocoon with JBoss/Catalina. We have packed the cocoon.war file
>into an .ear file to set the context-root to "/cocoon".
>Everything works fine with 3.0.0/4.0.3 & JDK 1.3.1_03.
>
>Now we have upgraded JBoss/Catalina from 3.0.0/4.0.3 to 3.0.2/4.0.4.
>Result: we cannot deploy Cocoon 2.0.3 anymore - worse: we cannot deploy our
>enterprise-application using cocoon anymore.
>
>Stack Trace:
>java.io.FileNotFoundException:
>C:\MIDDLE_TIER\jboss-3.0.2_tomcat-4.0.4\bin\jndi:\localhost\sitemap.xmap
>(Die Syntax für den Dateinamen, Verzeichnisnamen oder die
>Datenträgerbezeichnung ist falsch)
>   at java.io.FileInputStream.open(Native Method)
>   at java.io.FileInputStream.(FileInputStream.java:59)
>   at java.io.FileInputStream.(FileInputStream.java:90)
>   at
>org.apache.cocoon.components.source.FileSource.getInputStream(FileSource.jav
>a:140)
>   at
>org.apache.cocoon.components.source.AbstractStreamSource.getInputSource(Abst
>ractStreamSource.java:161)
>   at
>org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
>eResource(ProgramGeneratorImpl.java:367)
>   at
>org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
>esource(ProgramGeneratorImpl.java:333)
>   at
>org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
>ogramGeneratorImpl.java:292)
>   at org.apache.cocoon.sitemap.Handler.run(Handler.java:265)
>   at java.lang.Thread.run(Thread.java:479)
>
>Any help would be appreciated.
>

Here is any help: Check how filename was created, why "jndi:" in here. 
See in the log files how sitemap name was resolved.


Vadim



>mfg
>
>Klaus Richarz & Andre Hegerath
>Hamburger Berater Team GmbH
>Hamburg, Germany
>  
>


-
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: Cocoon 2.0.3 and CastorTransformer

2002-09-20 Thread Vadim Gritsenko

Werner Guttmann wrote:
...

>PS Btw, the Castor sample shipped with Cocoon 2.0.3 has an error in the
>namespace documentation of the test.xml file, iow it really reads
>
>
>http://castor.exolab.org/cocoontransfomer";>
>

Actually, this is not error in demo; it's a typo in a transformer 
itself. Thanks for pointing this out.

This namespace typo can easily be fixed because this transformer is 
still in the scratchpad (== alpha).

Vadim
...



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




WebDAV sitemap

2002-09-20 Thread Michael Homeijer

Has anybody developed a sitemap in which webDAV requests can be handled?
I am looking for a good start to add a webdav interface to part of my
application.

TIA,
Michael

-
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: XSLT snippet for handling empty cells in HTML tables

2002-09-20 Thread Ugo Cei

Alan Hodgkinson wrote:
>>Instead of the above use &160; (the entity, to which   is mapped 
>>in HTML). Is much shorter, better coding and does not use 
>>disable-output-escaping.

Make that  

Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]


-
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: XSLT snippet for handling empty cells in HTML tables

2002-09-20 Thread Alan Hodgkinson


1. Joerg Heinicke wrote:

> > It also contains a nice trick for outputing a non-blanking space from
> > an XSLT stylesheet:
> >
> >    
>
> sorry, but it's really a bad trick. I wonder that it's working in Cocoon,
> because a while ago disable-output-escaping was not supported in Cocoon,
> because you can create non-well-formed XML with it, what's real bad for
> pipelining.

I agree.. assuming you're using disable-output-escaping to creade
tag-like 
constructs. The reasons you describe for not using
disable-output-escaping 
are not the complete story. The more general problem is that 
disable-output-escaping can be used to create XML tags which are then
emited 
(say via a cocoon pipeline) as character data events rather than element 
events, which is probably not what the programmer indended.

In this case we're generating a space, which is text and emitted as 
character data, so we're fine. But you're right to point out that we
shouldn't provide examples which encourage bad habits.

> Instead of the above use &160; (the entity, to which   is mapped 
> in HTML). Is much shorter, better coding and does not use 
> disable-output-escaping.

Yup.. much shorter. I'll update the page with a note about this. 

--

2. Jens Lorenz wrote:

> > P.S. Is there a Wiki expert that can explain to me how to embed
> > ' ' and '&' in a Wiki page so that it display correctly?
>
> Did you just try to simply double your trick ? 
>
>   & 
>
> This worked for me in preview mode ... (didn't dare to save though)

Nice one... and it didn't even break the Wiki! It works, but has that
problem that if you re-edit the page then all the leading &'s get 
lost and you have to re-enter them all again. This is particularly
nasty if some else edits a page and doesn't know to do this.

It'd be nice if the Wiki had a way of ascaping characters that didn't 
get lost on re-editing. Coolest would be if we could enter \&
and have it come back when we edit again.

---

Thanks to you both and best wishes,

Alan.

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




how to merge a XML to a XSP ?

2002-09-20 Thread funing

Hi! all:
I want to use upload.xsp to provide uploading service and provide
some other information got from a XML in the same page. 
How can I make it?

best regards
-- 
funing <[EMAIL PROTECTED]>


-
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: XMLForm stylesheet change suggestion

2002-09-20 Thread Simon Price

XForms 1.0 also includes  and  elements for every control. 
They can be used to give the user extra information about a control. Its 
up to the UI renderer as to how this information is displayed, although 
the spec gives some guidance.

Simon


Ivelin Ivanov wrote:
> Phil,
> 
> Sorry it took me a while to respond, I am having some problems with the 2.1
> build.
> 
> The XForms spec mandates one  sub element.
> I think if you need additional text, you can use other custom tags from your
> own namespace.
> 
> 
>   My field
>   Custom Text
> 
> 
> Another option is to not set display text directly in the caption tag, but
> instead specify a lookup key like my.field which is then replaced via i18n
> tags.
> 
> 
> As far as wizard2html.xsl is concerned, it is only intended as a demo.
> xmlform2html.xsl on the other hand should be generic.
> 
> 
> Looking forward to your comments,
> 
> Ivelin
> 
> 
> 
> - Original Message -
> From: "Phil" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 16, 2002 11:09 PM
> Subject: Re: XMLForm stylesheet change suggestion
> 
> 
> That does take care of the phantom text, but what if someone wanted some
> additional text on the form.  The patch that I posted is based on the
> assumption that someone would not want a double post of the first caption,
> but any additional captions they would want to see.  With the patch that is
> in cvs, what element would you use to go about getting additional text into
> the form (current problem I am working on)?
> 
> Also, is the wizard2html.xsl supposed to be app specific or general to all
> xmlform apps?
> 
> Thanks,
> Phil
> 
> On Monday 16 September 2002 08:41 pm, Ivelin Ivanov wrote:
> 
>>Thanks for reminding me that this is an outstanding bug.
>>
>>I have applied a patch and closed it. It is a little different than yours,
>>but it achieves the same effect.
>>
>>Please do a diff and let me know if you think the patch won't work.
>>
>>http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9716
>>
>>
>>Best,
>>
>>Ivelin
>>
>>
>>- Original Message -
>>From: <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Sent: Monday, September 16, 2002 9:46 PM
>>Subject: XMLForm stylesheet change suggestion
>>
>>
>>I have a change for the file wizard2html.xsl which will remove the caption
>>that appears on the side of the page.  If someone would tell me the proper
>>way to submit this information in the future, I would be happy to comply.
>>
>>original code:
>> 
>>  
>>
>>
>>
>>
>>
>>
>>
>>   
>> 
>>
>>
>>modified code:
>> 
>>  
>>
>>
>>
>>  
>>
>>  
>>
>>  
>>
>>  
>>  
>>
>>
>>  
>>
>>  
>>
>>
>>
>>
>>
>>
>>
>>
>>   
>> 
>>
>>  
>>
>>  
>>   
>>
>>
>>
>>-
>>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]>
>>
>>
>>
>>-
>>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]>
> 
> 
> 
> -
> 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]>
> 
> 
> 
> -
> 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]>
> 
> 


-- 

---
Simon Price
Institute for Learning and Research Technology
University of Bristol
8-10 Berkeley Square
Bristol BS8 1HH
United Kingdom

Direct: +44 (0)7071 226 720
Office: +44 (0)117 928 7193
Fax: +44 (0)117 928 7112
[EMAIL PROTECTED]
http://www.ilrt.bristol.ac.uk


-
Please check

Re: XSLT snippet for handling empty cells in HTML tables

2002-09-20 Thread Joerg Heinicke

> It also contains a nice trick for outputing a non-blanking space from 
> an XSLT stylesheet:
> 
>    
> 
> Enjoy,
> 
> Alan.

Hi Alan,

sorry, but it's really a bad trick. I wonder that it's working in Cocoon, 
because a while ago disable-output-escaping was not supported in Cocoon, 
because you can create non-well-formed XML with it, what's real bad for 
pipelining.

Instead of the above use &160; (the entity, to which   is mapped in 
HTML). Is much shorter, better coding and does not use disable-output-escaping.

Regards,

Joerg

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.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]>




XSLT snippet for handling empty cells in HTML tables

2002-09-20 Thread Alan Hodgkinson


Dear All,

Here's a quick XSLT code snippet that shows how to automatically 
insert non-blanking spaces in empty cells in HTML tables:

  http://outerthought.net/wiki/Wiki.jsp?page=HtmlTableCellNonBlanking

It also contains a nice trick for outputing a non-blanking space from 
an XSLT stylesheet:

   

Enjoy,

Alan.

P.S. Is there a Wiki expert that can explain to me how to embed
' ' and '&' in a Wiki page so that it display correctly?

-
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: Install problems WAS3.5.5

2002-09-20 Thread Michael Zehrer

Hi Dan,

add the path to cocoon.xconf (and logkit.xconf) as an servlet parameter,
try an relative path from the webapp directory. As WAS355 doesn't know
anything about WEB-INF directories, put the xconfs in the servlet
directory. So the parameter would be:

name: configurations
value: /../servlets/cocoon.xconf

It is generally a good idea to add all servlet parameters from web.xml
to the servlet... .-)

Contact me for more questions.

Cheers, Michael

Am Don, 2002-09-19 um 18.18 schrieb [EMAIL PROTECTED]:
> Hello,
>   I searched the archives, and google, and haven't found a good
> explanation about how to go about getting Cocoon working in Websphere
> 3.5.x. I am close I think. I used the WAR file converter in the Admin
> Console, but I get an exception during init of the Cocoon servlet:
> 
> javax.servlet.ServletException: Init parameter 'configuration' doesn't name
> an existing resource : /web-inf/cocoon.xconf
> 
> I have tried different paths, I tried adding cocoon.xconf as a web
> resource, I added the SimpleFileServlet. Doesn't seem to fix it.
> 
> I am considering modifying the servlet to use the real path instead of the
> URI.
> 
> Anyone have any pointers or info that can help me out before I go
> re-writting things? Thanks!
> 
> Dan Feather
> Sr. Programmer/Analyst
> [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> -
> 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]>
-- 
Mit freundlichen Grüßen

Michael Zehrer


OPTIMAL SYSTEMS
Gesellschaft für innovative Computertechnologien mbH
Cicerostraße 26, 10709 Berlin
Tel.:   030 - 8 95 70 80
Fax:030 - 8 95 70 88 88
E-Mail: [EMAIL PROTECTED] 
Web:www.optimal-systems.de, www.epa.de, www.optimal-AS.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]>




Re: redirect-to error causes Cocoon servlet exception

2002-09-20 Thread Barbara Post

The error on closing stream is due to some timeout factors, it may not
affect anything but may not be correctible. Maybe there is a possibility not
to log it ? I get only this one in my error.log when my program works ;-)

2.1 version still has this problem, it is java-dependant I think.
- Original Message -
From: "Amanda Drake" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 7:59 PM
Subject: redirect-to error causes Cocoon servlet exception


> Cocoon users,
>
> I am using Cocoon 2.0.3 and Tomcat 4.0.4.  I have a redirect-to in place
in my
> sitemap that looks like this:
>
> 
> 
> 
> 
>
> Everytime I hit the page http://localhost:8080/gwd_webapp/ I get the
following
> error message in access.log:
> .
> .
> .
>
> DEBUG   (2002-09-19) 13:36.25:108   [access] (/gwd_webapp/)
HttpProcessor[8080]
> [4]/AbstractEnvironment:   from context
> (file:/C:/java/tomcat404/webapps/gwd_webapp/) and prefix()
> DEBUG   (2002-09-19) 13:36.25:108   [access] (/gwd_webapp/)
HttpProcessor[8080]
> [4]/AbstractEnvironment:   to context(sitemap.xmap) and prefix()
> DEBUG   (2002-09-19) 13:36.25:108   [access] (/gwd_webapp/)
HttpProcessor[8080]
> [4]/AbstractEnvironment:   at URI
> DEBUG   (2002-09-19) 13:36.25:108   [access] (/gwd_webapp/)
HttpProcessor[8080]
> [4]/AbstractEnvironment: New context is
> file:/C:/java/tomcat404/webapps/gwd_webapp/
> DEBUG   (2002-09-19) 13:36.25:118   [access] (/gwd_webapp/)
HttpProcessor[8080]
> [4]/HttpEnvironment: Sending redirect to 'index'
> DEBUG   (2002-09-19) 13:36.25:118   [access] (/gwd_webapp/)
HttpProcessor[8080]
> [4]/AbstractEnvironment: Set the URI Prefix (OLD=, NEW=)
> DEBUG   (2002-09-19) 13:36.25:118   [access] (/gwd_webapp/)
HttpProcessor[8080]
> [4]/AbstractEnvironment: Reset context to
> file:/C:/java/tomcat404/webapps/gwd_webapp/
> INFO(2002-09-19) 13:36.25:118   [access] (/gwd_webapp/)
HttpProcessor[8080]
> [4]/CocoonServlet: '' Processed by Apache Cocoon 2.0.3 in 30 milliseconds.
> ERROR   (2002-09-19) 13:36.25:118   [access] (Unknown-URI) Unknown-
> thread/CocoonServlet: Cocoon servlet threw an Exception while trying to
close
> stream.
> java.io.IOException: The stream has been closed
> at org.apache.catalina.connector.ResponseStream.flush
> (ResponseStream.java:237)
> at org.apache.cocoon.servlet.CocoonServlet.service
> (CocoonServlet.java:1126)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (ApplicationFilterChain.java:247)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterChain.java:193)
> at org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperValve.java:243)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:566)
> at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at org.apache.catalina.core.StandardContextValve.invoke
> (StandardContextValve.java:190)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:566)
> at org.apache.catalina.valves.CertificatesValve.invoke
> (CertificatesValve.java:246)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:564)
> at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at org.apache.catalina.core.StandardContext.invoke
> (StandardContext.java:2347)
> at org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java:180)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:566)
> at org.apache.catalina.valves.ErrorDispatcherValve.invoke
> (ErrorDispatcherValve.java:170)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:564)
> at org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:170)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:564)
> at org.apache.catalina.valves.AccessLogValve.invoke
> (AccessLogValve.java:468)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:564)
> at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at org.apache.catalina.core.StandardEngineValve.invoke
> (StandardEngineValve.java:174)
> at org.apache.catalina.core.StandardPipeline.invokeNext
> (StandardPipeline.java:566)
> at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at org.apache.catalina.connector.http.HttpProcessor.process
> (HttpProcessor.java:1027)
> at org.apache.catalina.connector.http.HttpProcessor.run
> (HttpProcessor.java:1125)
> at java.lang.Thread.run(Thread.java

Re: FormValidatorAction on database

2002-09-20 Thread William Moore


On Wednesday, September 18, 2002, at 05:24  pm, Christian Haul wrote:

> On 17.Sep.2002 -- 04:19 PM, William Moore wrote:
>> Hello
>>
>> I am trying to use FormValidatorAction to check data before inserting it
>> into a database.
>>
>> The key on the database is one of the values on the form, and I want to
>> check if it already exists on the database so I can tell the user to 
>> enter
>> a different value.
>>
>> I cannot work out how to do this. The documentation suggests I should be
>> doing something with a DatabaseAction, but I do not know what.
>
> You could
> a) wait for an error and chose a different pipeline
> b) chaeck with a DatabaseSelectAction whether the key
>already exists
>
>   Chris.
> --

a) makes me think my code is not clean.
b) I identified as a solution, but could not see how to make it work. I 
want to identify the duplicate key and any other errors on the form and 
report them back to the user in the same way as the formvalidation sample.
  I'll have to try some more.

William


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