dispatch to new window in web browser possible?

2002-05-02 Thread a000

Currently my application consists of cocoon-actions that invoke xsp/xsl
files upon requests. As normal the new output always refreshes the client's
browser view. 
Based on some calculations at the actions I'm required to delegate the
response not to the current browser window but to a newly opened browser window.
An examle would be a printable view of a web page. Is this possible with
cocoon2? How could I accomplish it?

Thanks for your comments!

Harald

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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




send pdf's per email

2002-05-02 Thread Horst Rutter

I have been looking for the following functionality which I believe is quite 
interesting:

I have a pipeline that generates a pdf file.
I have another pipeline that sends an email.
What I would like to do is pass on the pdf generated by pipeline 1 into
pipeline 2 and send off an email with the pdf file as an attachment.
Is this doable?

Really curious about any feedback over here.
Thx,
Horst



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




sendmail

2002-05-02 Thread Horst Rutter

Can someone please fill me in on the following:

I found two ways of sending an email in Cocoon:
1) the sendmail.xsp/sendmail.xsl combo
2) the SendMailAction

Is this intentional and if so in which case would I be using which one?
Maybe this is more a general question: when would I prefer an action over using xsp if 
either one is available?

Horst





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




Tomcat 4.0.4b2 Cocoon2.0.2 JDK1.3.1 HP-UX 11 Error

2002-05-02 Thread Jorge Bello

I'm a newbie in cocoon. Please help

I installed Tomcat 4.0.4b2 on a HP-UX 11
platform. Everything went OK

When I installed cocoon.war as the
install guide mentions, I get the next error

stack trace

org.apache.cocoon.ProcessingException: Error compiling sitemap:
java.lang.NoClassDefFoundError
at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
at java.lang.Thread.run(Unknown Source)
java.lang.NoClassDefFoundError
at org.apache.batik.dom.svg.SAXSVGDocumentFactory.(Unknown Source)
at org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:86)
at org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:95)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:98)
at
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:
82)
at
org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.java
:126)
at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceL
imitingPool.java:91)
at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(SoftRes
ourceLimitingPool.java:80)
at
org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(Po
olableComponentHandler.java:88)
at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponen
t(ExcaliburComponentSelector.java:467)
at
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.addComponent(Defau
ltSitemapComponentSelector.java:181)
at
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.addSitemapComponen
t(DefaultSitemapComponentSelector.java:188)
at
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.jav
a:275)
at
org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(/usr/local/t
omcat/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/si
temap_xmap.java:1129)
at
org.apache.cocoon.www.sitemap_xmap.configure(/usr/local/tomcat/work/Standalo
ne/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:470
)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:172)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:84)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
or(GeneratorSelector.java:170)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:248)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Unknown Source)

I have been following the threads about installing cocoon
and I didn't find anything useful.

Any solution or idea ?

TIA
Jorge


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




Windows 2000, PDF, and Cocoon

2002-05-02 Thread Don Wellington

I have seen the IE posts for not opening acrobat and
displaying PDF without the .pdf ending.  My problem is
slightly different. 

IE and Mozilla cannot display PDF from cocoon on
Windows 2000 regardless of extension. Netscape 4.77
with Acrobat 5 plug-in works. Mozilla tries to start
acrobat, but only shows a blank page.

Any ideas?

Thanks,
Don  

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.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: xsp-session:get-attribute not returning a String?

2002-05-02 Thread Vadim Gritsenko

> From: Zack Angelo [mailto:[EMAIL PROTECTED]]
> 
> Hey,
> 
> I have a statement along the lines of this in my XSP doc:
> 
> String test = ;
> 
> However, it won't work (I get an incompatible types compiler error)
> unless I cast it as a String. Consequently, I think it's returning an
> invalid value.  The same circumstances apply when I use
> session.getAttribute() as well. Any ideas? Thanks in advance.

See
http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/environment/Reque
st.html#getAttribute(java.lang.String):

public java.lang.Object getAttribute(java.lang.String name)


http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/environment/Sessi
on.html#getAttribute(java.lang.String):

public java.lang.Object getAttribute(java.lang.String name)


Which means that attributes are *objects*, not strings, and compiler is
right. However, xsp-request logicsheet provides you with conversion
abilities:


String s = ;
Object o = ;





Same holds true for session attributes.

Vadim

> -Zack



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




xsp-session:get-attribute not returning a String?

2002-05-02 Thread Zack Angelo

Hey, 

I have a statement along the lines of this in my XSP doc:  

String test = ;

However, it won't work (I get an incompatible types compiler error)
unless I cast it as a String. Consequently, I think it's returning an
invalid value.  The same circumstances apply when I use
session.getAttribute() as well. Any ideas? Thanks in advance. 

-Zack



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




Running Cocoon as integrated app

2002-05-02 Thread Hunsberger, Peter

I'm attempting to run Cocoon 2.0.2 as an integrated application under Tomcat
4.0.4b and JBoss 2.2.4.  I can get it up and running stand alone under
Tomcat/JBoss just fine.  When I rebuild the a new War file containing the
Cocoon files combined with my files into my Ear file thing appear to deploy
properly.  The JBoss/Tomcat console shows all the usual start up messages
from Cocoon.  However, whenever I attempt to access any of the Cocoon
resources I get a 404: The requested resource (Not Found) is not available
from Tomcat, which seems to indicate Cocoon is not able to find the files in
the expanded War file.  Looking at the blown out War in the Tomcat/Jboss tmp
directory shows nothing I wouldn't expect...
The Cocoon access log seems to show that the request is in fact getting to
Cocoon.  For example, if I attempt to access
http://localhost/test/cocoon/welcome I get the following in the log:

DEBUG   (2002-05-02) 15:38.27:026   [access] (/test/cocoon/welcome)
HttpProcessor[80][4]/AbstractEnvironment: Changing Cocoon context
DEBUG   (2002-05-02) 15:38.27:026   [access] (/test/cocoon/welcome)
HttpProcessor[80][4]/AbstractEnvironment:   from
context(file:/C:/JBoss-2.4.4_Tomcat-4.0.4/jboss/tmp/deploy/Default/test.ear/
web1003/) and prefix()
DEBUG   (2002-05-02) 15:38.27:036   [access] (/test/cocoon/welcome)
HttpProcessor[80][4]/AbstractEnvironment:   to context(sitemap.xmap) and
prefix()
DEBUG   (2002-05-02) 15:38.27:036   [access] (/test/cocoon/welcome)
HttpProcessor[80][4]/AbstractEnvironment:   at URI cocoon/welcome
DEBUG   (2002-05-02) 15:38.27:036   [access] (/test/cocoon/welcome)
HttpProcessor[80][4]/AbstractEnvironment: New context is
file:/C:/JBoss-2.4.4_Tomcat-4.0.4/jboss/tmp/deploy/Default/test.ear/web1003/
DEBUG   (2002-05-02) 15:38.27:036   [access] (/test/Cocoon/welcome)
HttpProcessor[80][4]/AbstractEnvironment: Set the URI Prefix (OLD=, NEW=)
DEBUG   (2002-05-02) 15:38.27:036   [access] (/testcocoon/welcome)
HttpProcessor[80][4]/AbstractEnvironment: Reset context to
file:/C:/JBoss-2.4.4_Tomcat-4.0.4/jboss/tmp/deploy/Default/test.ear/web1003/
INFO(2002-05-02) 15:38.27:036   [access] (/test/cocoon/welcome)
HttpProcessor[80][4]/CocoonServlet: 'cocoon/welcome' Processed by Apache
Cocoon 2.0.2 in 10 milliseconds.

I don't know what the status codes [80][4] mean in the above? 

Test is the name of the Ear file and the application path for Tomcat...  The
Cocoon lib files are all being accessed out the WEB-INF/lib directory under
the War along with my application jar files (3 jar files, all internally
developed).  The integrated application has a servlet that runs just fine.

FWIW, I've also tried stripping down Cocoon, removing all extraneous web
files and using my own site map with exactly the same results.

Any ideas on why Cocoon would pass a 404 back to Tomcat?  Any ideas on how
to fix this?  I'm guessing some class loader issues but I'm seeing nothing
in the logs or on the console...

Peter Hunsberger

Phone: 901-495-5252
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: HOWTO install cocoon under JDK 1.4

2002-05-02 Thread Robert J. Lebowitz

Of course, I forgot one small detail that I culled from earlier messages.

When compiling the cocoon sources for release 2.02, several errors will
appear in conjunction with the ESQLConnection.java class.

Towards the bottom of the file are a number of methods that are commented
out in order to make the source compile under JDK 1.3.1.  You'll have to
uncomment these to get it to compile under JDK 1.4.

Rob


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




SQLTransformer returning empty XML tags

2002-05-02 Thread Fabricio Chalub

Hello,

I'm using SQLTransformer to convert this simple piece of SQL:

http://apache.org/cocoon/SQL/2.0";>
http://apache.org/cocoon/SQL/2.0";>
  
SELECT name
FROM listing
  



into XML file using this code from the DocBook XSLT that prints all unknown
tags in red:


  
<

>


  


(the query comes from an Oracle data source)

The problem is that, instead of getting an output like:

- - - - - - - - - -

http://apache.org/cocoon/SQL/2.0";>

Programmers


Loungers



- - - - - - - - - -

I'm getting this:

- - - - - - - - - -

<>
<>
<>Programmers

<>
<>Loungers



- - - - - - - - - -

That is, all XML tags are empty!  My sitemap is simple:





  



[...]

Does anyone know what is causing this?  All other unknown XML tags are
corretly printed by the XSLT code, so I don't thing the problem is there.

fc

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




HOWTO install cocoon under JDK 1.4

2002-05-02 Thread Robert J. Lebowitz

 I've noted how often this question comes up.  I'm probably just asking for
trouble by writing this follow-up HOWTO (someone will highlight something
that I forgot to mention), but I thought it might keep poor Vadim's
responses to a minimum (assuming my information is accurate).

My installation environment consists of a Redhat 7.2 Linux server, with all
the latest "upgrade" packages installed.  I'm running a "headless" server,
implying that I don't require the XServer or the Xvfb to render SVGs, PDFs,
and anything else that employs the batik classes used in Cocoon 2.

Here are the various Apache and Sun RPMs and packages I've installed:

Tomcat 4.0.3 RPM (I decided it was too much work to build the sources
myself).
Cocoon 2.0.2 distribution (this I compiled myself).
Ant 1.4.1 (I compiled the distribution myself)
Batik 1.5 beta distribution (I compiled this myself)
Sun J2SDK 1.4.0 RPM

I like using the tomcat RPMs because they provide all the necessary startup
scripts.  With very little modification you can usually start Tomcat up.
You also don't have to go and collect all those jar files needed for Tomcat
yourself.  The only major things I had to do were:

1.  To add the bin directory of the J2SDK to my PATH variable.
2.  Set the JAVA_HOME environmental variable to the correct location for my
system.  This meant editing the tomcat4.conf file that is part of the RPM
distribution since it defaults to the IBM JDK 1.3 JVM.
3.  Edited the /usr/sbin/dtomcat4 script, specifying the option
"-Djava.awt.headless=true"  when tomcat4 starts up, so that I can avoid
using the XServer or Xvfb.

When compiling the batik 1.5 package, I ran ant and specified the "all-jar"
option so that it would build the batik-all.jar file.

When compiling cocoon 2.0, I built the cocoon.war file, installed it in an
appropriate location under my tomcat webapps subdirectory, and unjarred it.
I then removed the xalan, xerces and xml-apis jar files, as well as the xt
and batik files.

Presumably because JDK 1.4 includes versions of xerces, xalan and the jaxp
stuff, you don't need any of these to get cocoon to run with this version.
I've seen references to removing xt in previous notes, besides, I see it as
just an "extra" jar (no offense to James Clark) that can be eliminated.

I'm aware that there are newer versions of xerces, xalan, etc.  than those
included in the jdk 1.4.  I believe that the new standard mechanism for
substituting alternate jaxp implementations is to specify an "endorsed"
class path when you are running a java application (correct me if I'm wrong
about this, I haven't tried it).  Presumably you could override the default
classes following this approach if you wanted to do this.

In the WEB-INF subdirectory where my unjarred cocoon.war appears, I edited
the web.xml file.  I added the following like under the extra-classpath
parameter:  /batik.jar .  I made sure that I copied my
batik-all.jar to that same location.

I made a few minor changes to the server.xml file in the conf subdirectory
of my tomcat installation with regards to host names, and the context and
paths where to find the cocoon installation.  These will obviously vary with
the user.  Then I started up tomcat and lo and behold, it actually ran just
fine.

I didn't test every single example since my particular uses for Cocoon are
rather mundane (document delivery, basically) but I think most of them are
working just fine.

I hope I haven't left anything "vital" out.  You should be able to compile
your own apache packages using Ant, I found that I just had to be careful to
set and export my JAVA_HOME and ANT_HOME environment variables to get
everything work.  About the only thing I always seem to have problems with
is generating the javadocs for these packages... I get a lot of error
messages, but since the docs are usually available on-line, I don't worry
about it too much.

Good luck...

Rob


-
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: Is there any performance monitoring tool?

2002-05-02 Thread Lai, Harry

Hi Steven,

I don't know if this will give you the level of detail you're looking for,
but Cocoon 2 does have a basic profiler built in that tells you how many
milliseconds each pipeline component takes.  Here's a post from Vadim that
explains how to use it:

http://www.mail-archive.com/cocoon-users@xml.apache.org/msg07748.html

Harry


-Original Message-
From: Berin Loritsch [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 1:36 PM
To: [EMAIL PROTECTED]
Subject: Re: Is there any performance monitoring tool?


Steven Punte wrote:
> Dear Cocoon User Group:
> 
>   Does anyone know if there is any performance
>   monitoring tool built into Cocoon2?  Something
>   that would report the number of ms 
>   consumed by each component for a particular
>   request.
> 
>   Thanks in advance:

Not yet.

Excalibur has a new Instrumentation package that will be
good for this and other jobs.  Unfortunately, it is not yet
integrated into Cocoon.

The documenation is not up on the site yet :(
But hopefully soon.


-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
 - Benjamin Franklin


-
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: Is there any performance monitoring tool?

2002-05-02 Thread Berin Loritsch

Steven Punte wrote:
> Dear Cocoon User Group:
> 
>   Does anyone know if there is any performance
>   monitoring tool built into Cocoon2?  Something
>   that would report the number of ms 
>   consumed by each component for a particular
>   request.
> 
>   Thanks in advance:

Not yet.

Excalibur has a new Instrumentation package that will be
good for this and other jobs.  Unfortunately, it is not yet
integrated into Cocoon.

The documenation is not up on the site yet :(
But hopefully soon.


-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
 - Benjamin Franklin


-
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 there any performance monitoring tool?

2002-05-02 Thread Steven Punte

Dear Cocoon User Group:

  Does anyone know if there is any performance
  monitoring tool built into Cocoon2?  Something
  that would report the number of ms 
  consumed by each component for a particular
  request.

  Thanks in advance:

Steve Punte

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.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]>




Never Mind (Re: error on Mac OS X + Tomcat 4.0.1 + Cocoon 2.0.2)

2002-05-02 Thread Noah Mittman

Never mind... I finally found the thread in the list-archive on 
MARC that said to delete the tomcat/work directory and restart, 
which solved the problem.

Sorry for the repeat.

On Thursday, May 2, 2002, at 01:43  PM, Noah Mittman wrote:

> I got this error when first running after the install (trying to 
> get /cocoon/):
>
> type fatal
> message Error compiling sitemap
> description org.apache.cocoon.ProcessingException: Error compiling 
> sitemap: java.lang.NoSuchFieldError: generators


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




error on Mac OS X + Tomcat 4.0.1 + Cocoon 2.0.2

2002-05-02 Thread Noah Mittman

I got this error when first running after the install (trying to 
get /cocoon/):

type fatal
message Error compiling sitemap
description org.apache.cocoon.ProcessingException: Error compiling 
sitemap: java.lang.NoSuchFieldError: generators

FYI The log contained this (I don't know if it's relevant but it 
seems important):

ERROR   (2002-05-02) 13:29.26:860   
[sitemap.generator.velocity](/cocoon/) 
HttpProcessor[8080][4]/VelocityGenerator: ResourceManager : unable 
to find resource 'VM_global_library.vm' in any resource loader.

Anyone know what that's about?

This was a config that supported a perfectly fine Cocoon 2.0.1... 
All I did was drop in the new .war...


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




i18n throws exception if locale does not match exactly

2002-05-02 Thread Volker Schneider

Hi colleagues,

when my browser is using the locale configuration "en-gb" and I have a
i18n-catalog for lang="en" it works fine, but there is an error exception
reported in the log, because there is a "file not found" exception coming up
(messages_en_gb was not found). I think there is no need to have an error
being reported. No web application supports all possible languages. If an
arabian user wants to use the site, he will get the fallback ("en" for
example), but that's no error.

Please think about changing this, maybe it could be a warning, but if he
have thousands of users with a locale "en_us" uses our site and we only
support "en" or thousands of users uses the fallback locale, logging the
stack trace will reduce perfomance.

Best regards
- Volker -


-
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: Request to external XML server in pipeline

2002-05-02 Thread Zack Angelo

Bryce,

On a side note, it sounds like you may also benefit from the use of SOAP,
have you checked it out yet?

-Zack

On 5/2/02 4:27 AM, "Ewing, Bryce" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> Just started working with Cocoon and I have a question in regards to reading
> XML content from a XML server probably within a pipeline.  What I have at
> present is a backend XML server that given a XML formatted packet does some
> processing, including database access, legacy etc. then replies with an
> answer XML packet.  This is totally outside of Cocoon.
> 
> What I have inside Cocoon at present is an html form that has the request
> parameters that would make up the inwards XML packet.  I have a pipeline
> that has a request generator, then a xslt transformation to get the XML into
> the required format.  What I would like to do is post this packet to the XML
> server, with the reply packet being available to the pipeline, maybe a
> transformer that changes the input XML to the output via the post.  Then
> process this reply XML packet to create the next HTML page.
> 
> If anyone has any help on this, or can think of a better way this could be
> performed your help would be greatly appreciated.
> 
> Cheers
> Bryce
> 
> -
> 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: Cocoon generated Java throwing SQLException

2002-05-02 Thread Zack Angelo

Hmm, well, I don't think there are problems with my XSP syntax because the
Java seems to be generating correctly, but I guess you're right. It could be
something obscure. So here it is:



http://www.w3.org/1999/XSL/Transform";
xmlns:xsp="http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-session="http://apache.org/session/2.0";
xmlns:malin-auth="http://nostromo.com/malin-auth";
version="1.0">


  


  




String userLogin = ;
String userPass = ;


mySql


select ID,count(ID) as count from Users where LoginUser='zack'
and Password='password' group by ID




int rescount = ;
int userID = 0;
if (rescount > 0)
{
userID = ;
}

userID

  

  

   

   

   

 
   
 


  



On 5/2/02 2:12 AM, "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]> wrote:

> Zack,
> 
> Please provide the whole XSP.
> 
> Regards,
> 
> Edgar
> 
> -Oorspronkelijk bericht-
> Van: Zack Angelo [mailto:[EMAIL PROTECTED]]
> Verzonden: donderdag 2 mei 2002 4:55
> Aan: [EMAIL PROTECTED]
> Onderwerp: Cocoon generated Java throwing SQLException
> 
> 
> Hey,
> 
> I'm having some really peculiar behavior with the ESQL logicsheet. I
> have the following XSP (in my own logicsheet):
> 
>  select ID,count(ID) as count from Users where
> LoginUser='zack' and Password='password' group by ID
> 
> The corresponding Java seems to be generating just fine:
> 
> _esql_query = new EsqlQuery( _esql_connection, String.valueOf("select
> ID,count(ID) as count from Users where LoginUser='zack' and
> Password='password' group by ID") );
> 
> But, upon execution, I get this exception:
> 
> org.apache.cocoon.ProcessingException: Exception in
> ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
> executing statement: select ID,count(ID) as count from Users where
> LoginUser='zack' and Password='password' group by ID:
> java.sql.SQLException: Column not found: Unknown column 'LoginUser' in
> 'where clause'
> 
> For some reason it's saying that one of the columns doesn't exist...I
> have no idea why. I've also copied and pasted the SQL query from the
> Java into the mysql client, and it works fine. Any ideas? This just
> seems really strange to me. Thanks in advance.
> 
> -Zack Angelo
> Nostromo Corporation
> 
> 
> 
> 
> -
> 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]>




Re: Cocoon generated Java throwing SQLException

2002-05-02 Thread Zack Angelo

On 5/2/02 2:26 AM, "Christian Haul" <[EMAIL PROTECTED]>
wrote:

> On 01.May.2002 -- 09:54 PM, Zack Angelo wrote:
>> Hey,
>> 
>> I'm having some really peculiar behavior with the ESQL logicsheet. I
>> have the following XSP (in my own logicsheet):
>> 
>>  select ID,count(ID) as count from Users where
>> LoginUser='zack' and Password='password' group by ID
>> 
>> The corresponding Java seems to be generating just fine:
>> 
>> _esql_query = new EsqlQuery( _esql_connection, String.valueOf("select
>> ID,count(ID) as count from Users where LoginUser='zack' and
>> Password='password' group by ID") );
>> 
>> But, upon execution, I get this exception:
>> 
>> org.apache.cocoon.ProcessingException: Exception in
>> ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
>> executing statement: select ID,count(ID) as count from Users where
>> LoginUser='zack' and Password='password' group by ID:
>> java.sql.SQLException: Column not found: Unknown column 'LoginUser' in
>> 'where clause'
>> 
>> For some reason it's saying that one of the columns doesn't exist...I
>> have no idea why. I've also copied and pasted the SQL query from the
>> Java into the mysql client, and it works fine. Any ideas? This just
>> seems really strange to me. Thanks in advance.
> 
> It seems to be a problem with the mySQL jdbc driver. I believe we had
> another user reporting similar problems with mySQL. I *think* a solution
> was using only lower case coulmn names. According to the SQL standard,
> case does not matter because everything is converted to uppercase internally,
> except for strings within quotes.
> 
> If the table belongs to another user / schema, you might need to qualify it
> with the user name.
> 
> Please check with a small java program that the driver is OK.
> 
> HTH.
> 
> Chris.

Chris, 

Yeah, I've written entire applications with the mm mySQL driver before. I'm
pretty certain it works. The lower-case solution also comes off a little
strange because I've written a small XSP script (the one you helped me with
before) and it worked great (also had capitalized column names).

I also tried changing the user to root in the esql connection pool, still no
good.  Thanks for the input.

- Zack



-
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: Multiple Pipelines Advantages?

2002-05-02 Thread Vadim Gritsenko

internal-only=true


PS This one was asked several times already... FAQ?

Vadim

> From: David Trammell [mailto:[EMAIL PROTECTED]]
> 
> I was wondering what the advantages were for using multiple pipelines
in
> a sitemap.  It looks like being able to have a different error page is
> one, are there others?
> 
> David


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




cann't run sql examples

2002-05-02 Thread Olivier GUCKERT

Hello all,

I have a problem to run example cocoon with SQL database.
In the : http://localhost:8080/cocoon/welcome page, if i try the "simple
SQL" example, i become a white page. If i uncomment the execute-query in
the sql-page-xml, i botain a html page (without the data).

When i click on the "ESQL" example, it works fine : so i think my
database connexion is well.

What's wrong ?

-
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: Request to external XML server in pipeline

2002-05-02 Thread Carsten Ziegeler

In the case of a POST, you can use the session transformer (only available
in the latest CVS) instead of the cinclude transformer:

 

   
   
   
 

The session transformer is able to use post for HTTP requests. The following
XML should get something from http://itsunshine/test by using POST:

http://ocoon.apache.org/session/1.0";>
  
  
  
  http://itsunshine/test

  
  

  method
  POST
  
   

   
   
 
  message
  Hi there

  
  
   


But I must confess that I'm not sure if this works with the lastest CVS,
as we changed the source resolving - I will have a look at it asap.

HTH
Carsten

> -Original Message-
> From: Matthew Langham [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 11:47 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Request to external XML server in pipeline
>
>
> Hi Bryce,
>
> here's one way of doing this:
>
> 
>   
>   
>   
>   
> 
> So you use the cinclude transformer to fetch the external data. Check out
> the cinclude documentation for more details.
>
> Matthew
>
> --
> Open Source Group   sunShine - Lighting up e:Business
> =
> Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
>Weblogging at: http://www.need-a-cake.com
>  Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352
> =
>
>
>
> -Original Message-
> From: Ewing, Bryce [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 11:27 AM
> To: '[EMAIL PROTECTED]'
> Subject: Request to external XML server in pipeline
>
>
> Hi,
>
> Just started working with Cocoon and I have a question in regards
> to reading
> XML content from a XML server probably within a pipeline.  What I have at
> present is a backend XML server that given a XML formatted packet
> does some
> processing, including database access, legacy etc. then replies with an
> answer XML packet.  This is totally outside of Cocoon.
>
> What I have inside Cocoon at present is an html form that has the request
> parameters that would make up the inwards XML packet.  I have a pipeline
> that has a request generator, then a xslt transformation to get
> the XML into
> the required format.  What I would like to do is post this packet
> to the XML
> server, with the reply packet being available to the pipeline, maybe a
> transformer that changes the input XML to the output via the post.  Then
> process this reply XML packet to create the next HTML page.
>
> If anyone has any help on this, or can think of a better way this could be
> performed your help would be greatly appreciated.
>
> Cheers
> Bryce
>
> -
> 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]>




RE: Request to external XML server in pipeline

2002-05-02 Thread Matthew Langham

Hi Bryce,

here's one way of doing this:



  
  
  

So you use the cinclude transformer to fetch the external data. Check out
the cinclude documentation for more details.

Matthew

--
Open Source Group   sunShine - Lighting up e:Business
=
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
   Weblogging at: http://www.need-a-cake.com
 Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352
=



-Original Message-
From: Ewing, Bryce [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 11:27 AM
To: '[EMAIL PROTECTED]'
Subject: Request to external XML server in pipeline


Hi,

Just started working with Cocoon and I have a question in regards to reading
XML content from a XML server probably within a pipeline.  What I have at
present is a backend XML server that given a XML formatted packet does some
processing, including database access, legacy etc. then replies with an
answer XML packet.  This is totally outside of Cocoon.

What I have inside Cocoon at present is an html form that has the request
parameters that would make up the inwards XML packet.  I have a pipeline
that has a request generator, then a xslt transformation to get the XML into
the required format.  What I would like to do is post this packet to the XML
server, with the reply packet being available to the pipeline, maybe a
transformer that changes the input XML to the output via the post.  Then
process this reply XML packet to create the next HTML page.

If anyone has any help on this, or can think of a better way this could be
performed your help would be greatly appreciated.

Cheers
Bryce

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




Request to external XML server in pipeline

2002-05-02 Thread Ewing, Bryce

Hi,

Just started working with Cocoon and I have a question in regards to reading
XML content from a XML server probably within a pipeline.  What I have at
present is a backend XML server that given a XML formatted packet does some
processing, including database access, legacy etc. then replies with an
answer XML packet.  This is totally outside of Cocoon.

What I have inside Cocoon at present is an html form that has the request
parameters that would make up the inwards XML packet.  I have a pipeline
that has a request generator, then a xslt transformation to get the XML into
the required format.  What I would like to do is post this packet to the XML
server, with the reply packet being available to the pipeline, maybe a
transformer that changes the input XML to the output via the post.  Then
process this reply XML packet to create the next HTML page.

If anyone has any help on this, or can think of a better way this could be
performed your help would be greatly appreciated.

Cheers
Bryce

-
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 while extending the cocoon servlet

2002-05-02 Thread manish

 Hello,
I want to extend the cocoon servlet and want to initialize some variable
in init of servlet. How can i do thisI also don't find any example to
handle this issue, please help me...



Regards,

Manish




-
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 generated Java throwing SQLException

2002-05-02 Thread Graaf, Edgar de (fin)

Zack,

Please provide the whole XSP.

Regards,

Edgar

-Oorspronkelijk bericht-
Van: Zack Angelo [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 2 mei 2002 4:55
Aan: [EMAIL PROTECTED]
Onderwerp: Cocoon generated Java throwing SQLException


Hey,

I'm having some really peculiar behavior with the ESQL logicsheet. I
have the following XSP (in my own logicsheet):

 select ID,count(ID) as count from Users where
LoginUser='zack' and Password='password' group by ID

The corresponding Java seems to be generating just fine: 

_esql_query = new EsqlQuery( _esql_connection, String.valueOf("select
ID,count(ID) as count from Users where LoginUser='zack' and
Password='password' group by ID") );

But, upon execution, I get this exception:

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
executing statement: select ID,count(ID) as count from Users where
LoginUser='zack' and Password='password' group by ID:
java.sql.SQLException: Column not found: Unknown column 'LoginUser' in
'where clause'

For some reason it's saying that one of the columns doesn't exist...I
have no idea why. I've also copied and pasted the SQL query from the
Java into the mysql client, and it works fine. Any ideas? This just
seems really strange to me. Thanks in advance.

-Zack Angelo
 Nostromo Corporation




-
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: Cocoon not recognizing Kannel headers

2002-05-02 Thread snodx

Johannes Koch wrote

>Cocoon 1.8.2 only uses the User-Agent header for mapping clients to
>device client classes. As the Kannel doesn't add something to the
>client's User-Agent header, you can't recognize the Kannel

Thanks for the input.

I have to apologize but I did'nt understand.

What's this User-agent header? And does it
mean that Nokia, UPSDK and R380 send such
User-Agent headers (whatever it means)?

In short what I want is just as
cocoon is able to recognize that the
request is coming from Nokia, UPSDK
or Ericsson R380, cocoon should also
be able to recognize that the request
is coming from Kannel. I can make- if
so desired- changes in the coding of
both Cocoon and Kannel (I have the
source code of both available).

So what modifications should I make
on either side (Kannel or Cocoon)
including any modifications in coding
(if necessary) to make Cocoon
recognize that the request is coming
from Kannel

Awaiting a reply.

Thanks in advance.
  SNODX

-
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 not recognizing Kannel headers

2002-05-02 Thread Johannes Koch

[EMAIL PROTECTED] schrieb:
>It is very time-consuming to add each and every
>phone model in the cocoon.properties and then
>restart Apache each time. So I decided to install
>Kannel which is supposedly a WAP gateway. My plan
>is to write one line in the cocoon.properties file
> 
>browser.1 = wap=kannel
> 
>and then tell all my clients to connect to
>my site using the Kannel gateway.
> 
>I tried to add the header X-WAP-Gateway: which
>I believe kannel appends to any of its request:
>in cocoon.properties but cocoon did not recognize
>this header and refused to deliver WAP content
> 
>browser.1=wap=X-WAP-Gateway
> 
>Next I tried:
> 
>browser.1=wap=Kannel/1.0.3 (I have this
>version installed)

Cocoon 1.8.2 only uses the User-Agent header for mapping clients to
device client classes. As the Kannel doesn't add something to the
client's User-Agent header, you can't recognize the Kannel.
-- 
Johannes Koch  . IT Developer
Pixelpark AG   . http://www.pixelpark.com
Rotherstraße 8 . 10245 Berlin  .  Germany
phone: +49 30 5058 - 1288  .  fax: - 1355

-
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 generated Java throwing SQLException

2002-05-02 Thread Christian Haul

On 01.May.2002 -- 09:54 PM, Zack Angelo wrote:
> Hey,
> 
> I'm having some really peculiar behavior with the ESQL logicsheet. I
> have the following XSP (in my own logicsheet):
> 
>  select ID,count(ID) as count from Users where
> LoginUser='zack' and Password='password' group by ID
> 
> The corresponding Java seems to be generating just fine: 
> 
> _esql_query = new EsqlQuery( _esql_connection, String.valueOf("select
> ID,count(ID) as count from Users where LoginUser='zack' and
> Password='password' group by ID") );
> 
> But, upon execution, I get this exception:
> 
> org.apache.cocoon.ProcessingException: Exception in
> ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
> executing statement: select ID,count(ID) as count from Users where
> LoginUser='zack' and Password='password' group by ID:
> java.sql.SQLException: Column not found: Unknown column 'LoginUser' in
> 'where clause'
> 
> For some reason it's saying that one of the columns doesn't exist...I
> have no idea why. I've also copied and pasted the SQL query from the
> Java into the mysql client, and it works fine. Any ideas? This just
> seems really strange to me. Thanks in advance.

It seems to be a problem with the mySQL jdbc driver. I believe we had
another user reporting similar problems with mySQL. I *think* a solution
was using only lower case coulmn names. According to the SQL standard,
case does not matter because everything is converted to uppercase internally,
except for strings within quotes.

If the table belongs to another user / schema, you might need to qualify it
with the user name.

Please check with a small java program that the driver is OK.

HTH.

Chris.

-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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