RE: 2.0.2 - 2.0.3: ClassNotFoundException on startup

2002-07-26 Thread Mark S. Kent

 0. Do you use the *same* JRE to compile and run Cocoon?

Yes.

 1. Check that user you use to launch tomcat can read jars:
 chmod 666 $TOMCAT_HOME/webapps/cocoon/WEB-INF/*

 Or even: chmod -R 666 $TOMCAT_HOME/webapps/cocoon

All files/folders are owned by tomcat.dev.  I left the permissions alone
(for now).

 2. Check that your java can read these jars:
 java -cp $TOMCAT_HOME/webapps/cocoon/WEB-INF/cocoon-2.0.3.jar:...

I think it should be: .../WEB-INF/lib/coc

 org.apache.cocoon.Cocoon

 If all is ok, should say:

   Exception in thread main java.lang.NoSuchMethodError: main

 Repeat same for org.hsqldb.jdbcDriver.

I chnged to the $TOMCAT_HOME/webapps/cocoon/WEB-INF/lib folder
and this is what I got:
===
[root@x lib]$ java -cp hsqldb-1.61.jar org.hsqldb.jdbcDriver
Exception in thread main java.lang.NoSuchMethodError: main
[this one worked as expected...]

[while the next one did not...]
[root@x lib]$ java -cp cocoon-2.0.3.jar org.apache.cocoon.Cocoon
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/avalon/framework/logger/AbstractLoggable
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:496)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:117)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$300(URLClassLoader.java:69)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:544)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:203)
at java.lang.ClassLoader.loadClass(ClassLoader.java:325)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:257)

I did the build from the source version of the 2.0.3 distribution and I use
JDK 1.3.  Should I have gotten the bin for the JDK 1.2/1.3?

mark

 Vadim



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: caching strategy

2002-07-25 Thread Mark S. Kent

I got sidetracked and am now trying (once again) to get Cocoon2 running on
our Linux server.  We are using Cocoon 2.0.2, Tomcat 3.2.2 (with Apache),
RedHat 7.1, and IBM JDK 1.3.0.

My last post (12 Apr 2002) left me with this error message on Cocoon
startup:

message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap

sender org.apache.cocoon.servlet.CocoonServlet

Vadim suggested to check for the existence of the
'org/apache/cocoon/www/sitemap.xmap' files, of which I have:
 79221 Jul 25 10:44 sitemap_xmap.class
 15470 Jul 25 10:44 sitemap_xmap$Configurer.class
339625 Jul 25 10:44 sitemap_xmap.java

He then suggested I also try to compile the sitemap_xmap.java file to ensure
that it is not damaged.  I'm not sure how to do this.

To test the validity of the cocoon files I'm trying, I took the cocoon.war
file from the 2.0.2 build folder and ran it with Tomcat 3.2.2 on my Windows
laptop with success (less headless head-aches), so I feel confident that
the code within the .war file on the Linux server is fine.  However, I'm
still getting the 'Language Exception' error on startup.

I regards to the X display stuff, I commented out the SVG stuff in
sitemap.xmap but ALL OTHER files are in their original state (no changes by
me).  i.e. cocoon.xconf, web.xml, etc.

Any other suggestions?

mark


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




LanguageException errors on startup

2002-07-25 Thread Mark S. Kent

Sorry about the previous post with a misleading subject... I'm re-posting
this with a 'proper' subject line...

I got sidetracked and am now trying (once again) to get Cocoon2 running on
our Linux server.  We are using Cocoon 2.0.2, Tomcat 3.2.2 (with Apache),
RedHat 7.1, and IBM JDK 1.3.0.

My last post (12 Apr 2002) left me with this error message on Cocoon
startup:

message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap

sender org.apache.cocoon.servlet.CocoonServlet

Vadim suggested to check for the existence of the
'org/apache/cocoon/www/sitemap.xmap' files, of which I have:
 79221 Jul 25 10:44 sitemap_xmap.class
 15470 Jul 25 10:44 sitemap_xmap$Configurer.class
339625 Jul 25 10:44 sitemap_xmap.java

He then suggested I also try to compile the sitemap_xmap.java file to ensure
that it is not damaged.  I'm not sure how to do this.

To test the validity of the cocoon files I'm trying, I took the cocoon.war
file from the 2.0.2 build folder and ran it with Tomcat 3.2.2 on my Windows
laptop with success (less headless head-aches), so I feel confident that
the code within the .war file on the Linux server is fine.  However, I'm
still getting the 'Language Exception' error on startup.

I regards to the X display stuff, I commented out the SVG stuff in
sitemap.xmap but ALL OTHER files are in their original state (no changes by
me).  i.e. cocoon.xconf, web.xml, etc.

Any other suggestions?

mark


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: LanguageException errors on startup

2002-07-25 Thread Mark S. Kent

OK.  I stopped Tomcat and removed the entire $TOMCAT_HOME/work folder and
restarted Tomcat.  Everything looked fine in the Cocoon log files after
starting Tomcat until I attempt the first access of the main Cocoon start
page, then the log files start showing the following error lines (not all
are shown for brevity and bandwidth's sake):

in access.log:

ERROR   (2002-07-25) 13:44.38:280   [access](/cocoon/)
Thread-13/CocoonServlet: Problem with servlet
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:335)
 ... remaining (mostly duplicate-type) lines removed ...

in core.log:

DEBUG   (2002-07-25) 13:44.30:392   [core.language.java](/cocoon/)
Thread-13/JavaLanguage: Compiling
/usr/local/jakarta-tomcat-3.2.2/work/localhost_8080%2Fcocoon/cocoon-files/or
g/apache/cocoon/www/sitemap_xmap.java
DEBUG   (2002-07-25) 13:44.38:122   [core.program-generator](/cocoon/)
Thread-13/ProgramGeneratorImpl: Language Exception
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg
ram(JavaLanguage.java:186)

in error.log:

ERROR   (2002-07-25) 13:44.38:215[sitemap](/cocoon/) Thread-13/Handler:
Error compiling sitemap
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:335)
 ... remaining (mostly duplicate-type) lines removed ...

in sitemap.log:

DEBUG   (2002-07-25) 13:44.20:938   [sitemap](/cocoon/) Thread-13/Handler:
Beginning sitemap regeneration
ERROR   (2002-07-25) 13:44.38:151   [sitemap](/cocoon/) Thread-13/Handler:
Error compiling sitemap
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:335)
 ... remaining (mostly duplicate-type) lines removed ...


Obviously these error messages in the log files are related to one another.
I double-checked the
'work/localhost_8080%2Fcocoon/cocoon-files/org/apache/cocoon/www' folder for
the sitemap_xmap files and found:

 79221 Jul 25 13:44 sitemap_xmap.class
 15470 Jul 25 13:44 sitemap_xmap$Configurer.class
339625 Jul 25 13:44 sitemap_xmap.java

These file appear to be fine.  The file sizes are maintained through
delete/restarts.

I've commented out the X server stuff in sitemap.xmap.

I've followed the installation instructions on the Cocoon for 'Installing on
Tomcat 3.2.X' adding/removing lib files in Tomcat.  My $TOMCAT_HOME/lib
folder has:
==
 330474 May 28  2001 ant.jar
 217923 May 28  2001 jasper.jar
  40810 May 28  2001 servlet.jar
   4096 Jul 25 09:05 test
 430434 May 28  2001 webserver.jar
1730053 Apr 11 14:30 xercesImpl-2.0.0.jar
 108484 Apr  9 09:20 xml-apis.jar
 136133 May 28  2001 zparser.jar

I've tried using a unpackaged Cocoon set of files as well as just copying
over the cocoon.war file (removing the /work/cocoon folder in between each
time).  The only file I've changed is the sitemap.xmap to comment out the
SVG stuff (for now).

What else can I try?  It has to be something simple at this point or a
conflicting pathname/library/jar with an existing app.  *sigh*

Setup:
Cocoon 2.0.2
Tomcat 3.2.2 (with Apache)
JBoss 2.4.3
RedHat 7.1
IBM JDK 1.3.0

mark

-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 1:11 PM
To: [EMAIL PROTECTED]; Mark Kent
Subject: RE: LanguageException errors on startup


 From: Mark S. Kent [mailto:[EMAIL PROTECTED]]

 Sorry about the previous post with a misleading subject... I'm
re-posting
 this with a 'proper' subject line...

 I got sidetracked and am now trying (once again) to get Cocoon2
running on
 our Linux server.  We are using Cocoon 2.0.2, Tomcat 3.2.2 (with
Apache),
 RedHat 7.1, and IBM JDK 1.3.0.

 My last post (12 Apr 2002) left me with this error message on Cocoon
 startup

RE: LanguageException errors on startup

2002-07-25 Thread Mark S. Kent
)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:328)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:291)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:498)

We are looking at going to Tomcat 4 so maybe that will take care of things.
However, for now I'd like to see it working on 3.2.2 so I can complete the
integration with my existing app.

mark

-Original Message-
From: Vadim Gritsenko
Sent: Thursday, July 25, 2002 2:33 PM
To: [EMAIL PROTECTED]; Mark Kent
Subject: RE: LanguageException errors on startup


 From: Mark S. Kent [mailto:[EMAIL PROTECTED]]

 OK.  I stopped Tomcat and removed the entire $TOMCAT_HOME/work folder
and
 restarted Tomcat.  Everything looked fine in the Cocoon log files
after
 starting Tomcat until I attempt the first access of the main Cocoon
start
 page, then the log files start showing the following error lines (not
all
 are shown for brevity and bandwidth's sake):

 in access.log:
 
 ERROR   (2002-07-25) 13:44.38:280   [access](/cocoon/)
 Thread-13/CocoonServlet: Problem with servlet
 org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Could not
load
 class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
 java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
 at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.cre
ateR
 esource(ProgramGeneratorImpl.java:335)

This is ProcessingException thrown in the ProgramGenerator. Original
exception is java.lang.ClassNotFoundException. Can you find its
stacktrace? It should be right below stacktrace of the
ProcessingException.

...

 What else can I try?  It has to be something simple at this point or a
 conflicting pathname/library/jar with an existing app.  *sigh*

You can try Tomcat 4.0.4

Vadim



 Setup:
 Cocoon 2.0.2
 Tomcat 3.2.2 (with Apache)
 JBoss 2.4.3
 RedHat 7.1
 IBM JDK 1.3.0

 mark
...


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




2.0.2 - 2.0.3: ClassNotFoundException on startup

2002-07-25 Thread Mark S. Kent

I decided to get the src for 2.0.3 and did a build on it instead of the
2.0.2 I couldn't get to work.  Now I'm getting different (but somewhat less
arcane) errors when starting.

in access.log:
=
DEBUG   (2002-07-25) 16:47.28:377   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Trying to load class: org.hsqldb.jdbcDriver
WARN(2002-07-25) 16:47.28:396   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Could not force-load class:
org.hsqldb.jdbcDriver
java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)

  ... extra removed ...

INFO(2002-07-25) 16:47.28:411   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Reloading from:
file:/usr/local/jakarta-tomcat-3.2.2/we
ERROR   (2002-07-25) 16:47.28:412   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Exception reloading
java.lang.ClassNotFoundException: org.apache.cocoon.Cocoon
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)

  ... extra removed ...

ERROR   (2002-07-25) 17:01.08:814   [access] (/cocoon/)
Thread-7/CocoonServlet: Problem with Cocoon servlet
java.lang.NullPointerException
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)

  ... extra removed ...

INFO(2002-07-25) 17:01.08:972   [access] (/cocoon/)
Thread-7/CocoonServlet: '' Processed by Apache Cocoon 2.0.3 in 510
milliseconds.
ERROR   (2002-07-25) 17:02.09:203   [access] (/cocoon/)
Thread-8/CocoonServlet: Problem with Cocoon servlet
java.lang.NullPointerException
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)


Is this an easier one to eradicate?  :)


mark s. kent - web dev
vistyx corp. - www.vistyx.com
972.755.0447 x 107

-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 3:27 PM
To: [EMAIL PROTECTED]; Mark Kent
Subject: RE: LanguageException errors on startup


 From: Mark S. Kent [mailto:[EMAIL PROTECTED]]

 All of the .log files have the same sequence of messages starting with
the
 ProcessingException:
...

Here is the second stacktrace:

 org.apache.cocoon.components.language.LanguageException: Could not
load
 class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
 java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
 at

org.apache.cocoon.components.language.programming.java.JavaLanguage.load
Prog
 ram(JavaLanguage.java:186)

Unfortunately (for you), I don't have redhat to experiment with and ran
out of suggestions... No, wait a second. I've got several more (assuming
you don't want to move to 4.0.4 right now):

1. Try with X running. Launch X and start tomcat under same user, and
(IIRC) not root.

2. Remove lib/optional/batik, build clean, build  It will create
totally X-less setup.

3. Try Cocoon 2.0.3 release

These are all guesses because I can't imagine why class could not be
loaded.

PS I have Cocoon running with tomcat 4.0.4, mandrake, some Sun jdk.

Vadim

...

 We are looking at going to Tomcat 4 so maybe that will take care of
things.
 However, for now I'd like to see it working on 3.2.2 so I can complete
the
 integration with my existing app.

 mark
...


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: Cocoon 2.0.2 and JBoss 3.0.0RC3

2002-06-05 Thread Mark S. Kent

Troels/Chris,

I'd also like to see this working, but without the pre-packaged
Tomcat/JBoss.  We are using Tomcat 3.2.3 and JBoss 2.4.4 with each running
as their own user so that each can be restarted independently (for future
scalability issues).

I'd like to hear from anyone whose been able to integrate
Tomcat/JBoss/Cocoon without using the packaged Tomcat/JBoss.

mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 3:19 AM
To: [EMAIL PROTECTED]
Subject: RE: Cocoon 2.0.2 and JBoss 3.0.0RC3


I've been battling with this for ages...

The war file just won't deploybut when I created an ear file and added
cocoon.war then I found it worked!
(I also added Xalan, xerces, xml-apis and batik-libs to catalina/common/lib)

But can't get my own pipelines working at the mo.

Chris
-=-=

Troels Ejsing [EMAIL PROTECTED] wrote:

Has anybody installed cocoon 2.0.2 on JBoss 3.0.0RC3 successfully?

Best Regards

Troels Ejsing

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




__
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/

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. http://xml.apache.org/cocoon/faqs.html

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


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: hsqldb - how do I get rid of this error message (and turn off hsqldb)

2002-05-29 Thread Mark S. Kent

I've seen this on our Linux 7.1 servers when Tomcat didn't completely
shut-down and left some stuff in memory.  Try 'kill'-ing the Tomcat process
and restarting Tomcat.

mark

-Original Message-
From: daniel robinson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 4:04 PM
To: [EMAIL PROTECTED]
Subject: hsqldb - how do I get rid of this error message (and turn off
hsqldb)


List,

Is there some comprehensive DB configure doc for C2?  I've looked
throught the listserv but its very piecemeal (sp?).  I keep getting this
error from tomcat:

Loading catalog: /localhost/cocoon/resources/entities/catalog
Server.run/init: java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
at java.net.ServerSocket.init(ServerSocket.java:170)
at java.net.ServerSocket.init(ServerSocket.java:82)
at org.hsqldb.Server.run(Server.java:131)
at org.hsqldb.Server.main(Server.java:78)
at
org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:101)
at java.lang.Thread.run(Thread.java:484)
Starting service Tomcat-Apache
Apache Tomcat/4.0.3

help appreciated.

Dan



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: LanguageException error on startup (Coc2.0.2,Tomcat3.2.2)

2002-04-12 Thread Mark S. Kent

I'm still seeing this error message about the sitemap although I see sitemap
files in the work folder (buried in org.apache).  Is there a way to put
debug crumbs in the sitemap to write to the logs during generation to help
me find out exactly what is causing the
  LanguageException: Could not load class for program
   'org/apache/cocoon/www/sitemap_xmap' due to a
   java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
error?  (shown below in most of it's entirety)

I have XML/XSL files ready to deploy on the Linux server, but can't get
Cocoon running...

Linux 7.2
IBM Java 1.3
Tomcat 3.2.2
Cocoon 2.0.2
JBoss 2.4.3

Mark

-Original Message-
From: Mark S. Kent [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 10:27 AM
To: [EMAIL PROTECTED]
Subject: LanguageException error on startup (Coc2.0.2,Tomcat3.2.2)


We are trying to start Cocoon 2.0.2 using Tomcat 3.2.2 and getting the
following error upon the first attempted load of the default samples page:

--  begin snip  --
Cocoon 2 - Internal server error


type fatal
message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:335)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:291)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:498)
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg
ram(JavaLanguage.java:186)

--  end snip  --

The files in the webapps/cocoon folder are the originals from the build (no
changes made).

Can anyone help? I've checked the FAQ and install notes and followed the
instructions and have provided a listing of tomcat/lib here:

-rw-r--r--1 tomcat   dev330474 May 28  2001 ant.jar
-rw-r--r--1 tomcat   dev217923 May 28  2001 jasper.jar
-rw-r--r--1 root root  1808883 Apr  4 22:34 parser.jar
-rw-r--r--1 tomcat   dev 40810 May 28  2001 servlet.jar
drwxr-xr-x3 tomcat   dev  4096 Apr  9 09:58 test
-rw-r--r--1 tomcat   dev430434 May 28  2001 webserver.jar
-rw-r--r--1 root root   108484 Apr  9 09:20 xml-apis.jar

Is there any plans to create a true forum for these discussions as opposed
to a mailing list?  I'd prefer forums for ease of use (not to mention how
much it cuts down on emails...)

Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: LanguageException error on startup (Coc2.0.2,Tomcat3.2.2)

2002-04-12 Thread Mark S. Kent
(ProgramGeneratorImpl.java:383)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:328)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:291)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:498)

-  end ---

I did not perform the build on the cocoon files myself but more and more I
think it's coming back around to something not being include in the build
process that it needs. I've commented out all of the SVG references in the
sitemap thinking it was an X11 server deal, but the problem persists.

I appreciate the help and suggestions.

Mark


-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 3:00 PM
To: [EMAIL PROTECTED]; Mark Kent
Subject: RE: LanguageException error on startup (Coc2.0.2,Tomcat3.2.2)


 From: Mark S. Kent [mailto:[EMAIL PROTECTED]]

 I'm still seeing this error message about the sitemap although I see
sitemap
 files in the work folder (buried in org.apache).  Is there a way
to put
 debug crumbs in the sitemap to write to the logs during generation
to help
 me find out exactly what is causing the
   LanguageException: Could not load class for program
'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException:
org.apache.cocoon.www.sitemap_xmap
 error?  (shown below in most of it's entirety)

Look into the Cocoon log files, under tomcat/work/.../cocoon/
Chances are that cause exception is logged there.

If this does not help... Do you have sitemap_xmap.class or only
sitemap_xmap.java? Might be that sitemap_xmap.java was not generated
correctly - take a look at it (or try to compile manually).

Vadim


 I have XML/XSL files ready to deploy on the Linux server, but can't
get
 Cocoon running...

 Linux 7.2
 IBM Java 1.3
 Tomcat 3.2.2
 Cocoon 2.0.2
 JBoss 2.4.3

 Mark

 -Original Message-
 From: Mark S. Kent [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 09, 2002 10:27 AM
 To: [EMAIL PROTECTED]
 Subject: LanguageException error on startup (Coc2.0.2,Tomcat3.2.2)


 We are trying to start Cocoon 2.0.2 using Tomcat 3.2.2 and getting the
 following error upon the first attempted load of the default samples
page:

 --  begin snip  --
 Cocoon 2 - Internal server error



 
 type fatal
 message Language Exception

 description org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Could not
load
 class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
 java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap

 sender org.apache.cocoon.servlet.CocoonServlet

 source Cocoon servlet

 stack-trace

 org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Could not
load
 class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
 java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
   at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.cre
ateR
 esource(ProgramGeneratorImpl.java:335)
   at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(Pr
 ogramGeneratorImpl.java:291)
   at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
   at java.lang.Thread.run(Thread.java:498)
 org.apache.cocoon.components.language.LanguageException: Could not
load
 class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
 java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
   at

org.apache.cocoon.components.language.programming.java.JavaLanguage.load
Prog
 ram(JavaLanguage.java:186)

 --  end snip  --

 The files in the webapps/cocoon folder are the originals from the
build (no
 changes made).

 Can anyone help? I've checked the FAQ and install notes and followed
the
 instructions and have provided a listing of tomcat/lib here:

 -rw-r--r--1 tomcat   dev330474 May 28  2001 ant.jar
 -rw-r--r--1 tomcat   dev217923 May 28  2001 jasper.jar
 -rw-r--r--1 root root  1808883 Apr  4 22:34 parser.jar
 -rw-r--r--1 tomcat   dev 40810 May 28  2001 servlet.jar
 drwxr-xr-x3 tomcat   dev  4096 Apr  9 09:58 test
 -rw-r--r--1 tomcat   dev430434 May 28  2001 webserver.jar
 -rw-r--r--1 root root   108484 Apr  9 09:20 xml-apis.jar

 Is there any plans to create a true forum for these discussions as
opposed
 to a mailing list?  I'd prefer forums for ease of use (not to mention
how
 much it cuts down on emails...)

 Mark


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

using C2 to read sessions from JBoss/Tomcat

2002-04-11 Thread Mark S. Kent

I'm testing the JBoss-2.4.4_Tomcat-4.0.1 package with Cocoon2 and I'm trying
to get Cocoon to read an user's session name variable (employeeData) created
by the login process.  Can Cocoon2 read the session information from the
JB/TC instance? (sorry if that is not the right terminology)

I can see where Cocoon can perform tasks using it's own session variables,
but I would like to use the ones created in Tomcat to get the current user's
employee profile (i.e. company_id, etc.) that was created when they logged
in.

This version of JBoss/Tomcat has Cocoon2 running as a cocoon.war file from
the $JBOSS_HOME/deploy folder.

If this is the wrong place to post this, I understand and will post
elsewhere, but I'm trying to understand how these all work together and
since they are all used through the jboss/deploy folder, whether they share
any common variables/memory/jvm data/etc.

Thanks!
Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: using C2 to read sessions from JBoss/Tomcat

2002-04-11 Thread Mark S. Kent

Vadim,

Using the JBoss-2.4.4_Tomcat-4.0.1 package starts Tomcat within the JBoss
instance (I think).  The jboss/deploy folder has:

+ cocoon.war (folder)
  -- (contains same contents as standard tomcat/webapps/cocoon folder)
+ lib (folder)
  -- jbosspool-jdbc.jar
  -- jms-ra.jar
+ web.war (folder)
  -- (contains all my JSP and webfiles [images/css/etc] )
cl.jar (file -- a jar with my ejbs)
deploy.txt (text file)

So, I would think that these two (cocoon.war and cl.jar) are deployed
separately within the JBoss context so that they would not see each
other's session variables.  Does that sound right to you?

If so, is there a way to start the cl.jar within the web.war webapp (or
vice versa) so that they can share session variables?

I'm trying to get a similar question answered as well on the JBoss forum,
and can take this discussion there if need be.  Thanks for your help!

Mark

-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 2:49 PM
To: [EMAIL PROTECTED]; Mark Kent
Subject: RE: using C2 to read sessions from JBoss/Tomcat


 From: Mark S. Kent [mailto:[EMAIL PROTECTED]]

 I'm testing the JBoss-2.4.4_Tomcat-4.0.1 package with Cocoon2 and I'm
trying
 to get Cocoon to read an user's session name variable (employeeData)
created
 by the login process.  Can Cocoon2 read the session information from the
 JB/TC instance? (sorry if that is not the right terminology)

(IIRC) Yes, if login process resides in the *same* webapp where cocoon
is deployed.


 I can see where Cocoon can perform tasks using it's own session
variables,

Cocoon's session is servlet session.

Vadim

 but I would like to use the ones created in Tomcat to get the current
user's
 employee profile (i.e. company_id, etc.) that was created when they
logged
 in.

 This version of JBoss/Tomcat has Cocoon2 running as a cocoon.war file from
 the $JBOSS_HOME/deploy folder.

 If this is the wrong place to post this, I understand and will post
 elsewhere, but I'm trying to understand how these all work together and
 since they are all used through the jboss/deploy folder, whether they
share
 any common variables/memory/jvm data/etc.

 Thanks!
 Mark



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: using C2 to read sessions from JBoss/Tomcat

2002-04-11 Thread Mark S. Kent

Thanks, Vadim. I'll check it out.

-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 4:11 PM
To: [EMAIL PROTECTED]; Mark Kent
Subject: RE: using C2 to read sessions from JBoss/Tomcat


 From: Mark S. Kent [mailto:[EMAIL PROTECTED]]
 
 Vadim,
 
 Using the JBoss-2.4.4_Tomcat-4.0.1 package starts Tomcat within the
JBoss
 instance (I think).  The jboss/deploy folder has:
 
 + cocoon.war (folder)
   -- (contains same contents as standard tomcat/webapps/cocoon folder)
 + lib (folder)
   -- jbosspool-jdbc.jar
   -- jms-ra.jar
 + web.war (folder)
   -- (contains all my JSP and webfiles [images/css/etc] )
 cl.jar (file -- a jar with my ejbs)
 deploy.txt (text file)
 
 So, I would think that these two (cocoon.war and cl.jar) are deployed
 separately within the JBoss context so that they would not see
each
 other's session variables.  Does that sound right to you?

Almost. You wrote that cl.jar contains EJBs. How do you access servlet
container session object from an EJB? AFAIR, this is not possible.

I would assume that you mean session created in your web.war file.


 If so, is there a way to start the cl.jar within the web.war
webapp (or
 vice versa) so that they can share session variables?

You just need to merge both of your web applications into one web
application (read: one session manager, see also
jakarta-tomcat\webapps\tomcat-docs\config\manager.html), which includes
merging of classes, libs, web.xml, and all other resources in one web
application file (or directory: you always can work with directory
instead of huge file, which gives you much faster development
turn-around).

Hope I'm clear.


Vadim

 I'm trying to get a similar question answered as well on the JBoss
forum,
 and can take this discussion there if need be.  Thanks for your help!
 
 Mark
 
 -Original Message-
 From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 11, 2002 2:49 PM
 To: [EMAIL PROTECTED]; Mark Kent
 Subject: RE: using C2 to read sessions from JBoss/Tomcat
 
 
  From: Mark S. Kent [mailto:[EMAIL PROTECTED]]
 
  I'm testing the JBoss-2.4.4_Tomcat-4.0.1 package with Cocoon2 and
I'm
 trying
  to get Cocoon to read an user's session name variable (employeeData)
 created
  by the login process.  Can Cocoon2 read the session information from
the
  JB/TC instance? (sorry if that is not the right terminology)
 
 (IIRC) Yes, if login process resides in the *same* webapp where
cocoon
 is deployed.
 
 
  I can see where Cocoon can perform tasks using it's own session
 variables,
 
 Cocoon's session is servlet session.
 
 Vadim
 
  but I would like to use the ones created in Tomcat to get the
current
 user's
  employee profile (i.e. company_id, etc.) that was created when
they
 logged
  in.
 
  This version of JBoss/Tomcat has Cocoon2 running as a cocoon.war
file from
  the $JBOSS_HOME/deploy folder.
 
  If this is the wrong place to post this, I understand and will post
  elsewhere, but I'm trying to understand how these all work together
and
  since they are all used through the jboss/deploy folder, whether
they
 share
  any common variables/memory/jvm data/etc.
 
  Thanks!
  Mark
 
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




LanguageException error on startup (Coc2.0.2,Tomcat3.2.2)

2002-04-09 Thread Mark S. Kent

We are trying to start Cocoon 2.0.2 using Tomcat 3.2.2 and getting the
following error upon the first attempted load of the default samples page:

--  begin snip  --
Cocoon 2 - Internal server error


type fatal
message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:335)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:291)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:498)
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
at
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg
ram(JavaLanguage.java:186)

--  end snip  --

The files in the webapps/cocoon folder are the originals from the build (no
changes made).

Can anyone help? I've checked the FAQ and install notes and followed the
instructions and have provided a listing of tomcat/lib here:

-rw-r--r--1 tomcat   dev330474 May 28  2001 ant.jar
-rw-r--r--1 tomcat   dev217923 May 28  2001 jasper.jar
-rw-r--r--1 root root  1808883 Apr  4 22:34 parser.jar
-rw-r--r--1 tomcat   dev 40810 May 28  2001 servlet.jar
drwxr-xr-x3 tomcat   dev  4096 Apr  9 09:58 test
-rw-r--r--1 tomcat   dev430434 May 28  2001 webserver.jar
-rw-r--r--1 root root   108484 Apr  9 09:20 xml-apis.jar

Is there any plans to create a true forum for these discussions as opposed
to a mailing list?  I'd prefer forums for ease of use (not to mention how
much it cuts down on emails...)

Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: Cocoon2 and FOP

2001-11-26 Thread Mark S. Kent

Hold the phone.  I think the problem was further up in the file with a
missing $ on a variable of the same timetype name.  I fixed that and it
worked just fine.

Mark

-Original Message-
From: Mark S. Kent [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 10:00 AM
To: [EMAIL PROTECTED]
Subject: RE: Cocoon2 and FOP


Alex,

The page rotation thing is solved, but the code to dynamically write the
columns in the PDF file with the lines:

xsl:for-each select=$timetypes
  fo:table-cellfo:blockxsl:value-of
select=somename/fo:block/fo:table-cell
/xsl:for-each

is running into errors when I try to display the page.  I've narrowed it to
these lines.  I know the column-widths for the table cells must be explicity
given (although I believe I should be able to calc this value and insert it
if I wanted to...), but I didn't see any limitation that said I couldn't
draw the columns this way.

Is this how you have done it as well?

Mark

-Original Message-
From: Alex McLintock [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 8:22 AM
To: [EMAIL PROTECTED]
Subject: Re: Cocoon2 and FOP


At 04:18 26/11/01, Mark S. Kent wrote:
Sorry if this is off-topic, but I didn't see an FOP User list, just a
Developer one, so let me know if I need to ask this question over there.


There is one. It is just a bit quiet.

Is there a command in Apache's FOP to rotate the page by 90 degrees to get
a
landscape orientation for PDF?


This is in the FAQ and has been argued to death. Try the archives for the
FOP-DEV
mailing list.

If you want to change orientation in the middle of a document you will find
that
quite hard. I don't know if anyone can do that with FO.

However most of the time you just need to swap round the width and the
height
parameters and tadah portrait becomes landscape and vice versa.
Most people report that this prints fine.

   I have an output file that reads from a
database to get a list of types that are created by the client.  I then use
that count of types to create a loop of how many columns I should draw (I
haven't actually written the code yet -- I'm making assumptions that will
work with fo: commands).  So, there could be more types creating columns
in my table that would cause the columns to scroll off of the page and not
be seen.

Is the width parameters in FO/PDF required to be hardcoded?


Yes - as far as I know. At least that has been the case for most of the
last year
whilst I have been using tables in FOP. I don't know if it has changed.
XSL:FO I think allows percentage widths in tables, but I don't know if that
is implemented
in the latest version.


Otherwise, I
plan on using a calculated number based on known first column widths plus
product of the type count and a fixed column value for each type column.

That is roughly what I have done in the past.


Wow - I actually helped someone on the Cocoon users list! That must be a
first.

Alex


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Cocoon2 and FOP

2001-11-25 Thread Mark S. Kent

Sorry if this is off-topic, but I didn't see an FOP User list, just a
Developer one, so let me know if I need to ask this question over there.

Is there a command in Apache's FOP to rotate the page by 90 degrees to get a
landscape orientation for PDF?  I have an output file that reads from a
database to get a list of types that are created by the client.  I then use
that count of types to create a loop of how many columns I should draw (I
haven't actually written the code yet -- I'm making assumptions that will
work with fo: commands).  So, there could be more types creating columns
in my table that would cause the columns to scroll off of the page and not
be seen.

Is the width parameters in FO/PDF required to be hardcoded?  Otherwise, I
plan on using a calculated number based on known first column widths plus
product of the type count and a fixed column value for each type column.

Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




esql and AS statement (SQL)

2001-11-23 Thread Mark S. Kent

I'm creating an alias name in my SQL statement:
  select column_name as alias_name

but the esql:get-string column=alias_name/ is causing the XML file to
stop writing records.  What's really strange is that it works on my dev box
(running WinNT4) but not in Linux Red Hat 7.1.

Development box:  (works just fine)
  Windows NT4
  Tomcat 4.0.1
  Cocoon2 rc2
  Interbase 6.0 db driver (interclient-core.jar)

Test box:  (does not pick up alias column names)
  Linux Red Hat 7.1
  Tomcat 4.0.1
  Cocoon2 rc1 (I know this one has not been upgraded to the
latest yet -- but I was noticed this issue on Linux way
back in Cocoon 1.8.2 with alias column names in SQL)
  Interbase 6.0 db driver (interclient-core.jar)

Is this a known issue?  Anything else I can try?

Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




XSLT/Xalan format-number() issue:

2001-11-21 Thread Mark S. Kent

Excuse this for being a little off topic, but I've asked this on an XSLT
site with no reply (yet) as was hoping someone of Xalan knowledge could
answer it quicker from here.

If not, how do I look at the format-number() source of Xalan to see what
it's doing?  Is it in the xalan-2.2.0-dev.jar file?  If so, how do I
decompile that?

I use:
  Windows NT
  Tomcat 4.0.1
  Cocoon2 rc2

-Mark

--- message 
I'm having trouble supressing the default minus sign (-) on negative
format-number() operations.  I know you can specify a postive pattern and
an optional negative pattern.  I have to display an h:mm time format for
an integer minute value and I want the result to look like:
  +h:mm   for positive values
  -h:mm   for negative values

This h:mm format needs to ensure:
  - a leading + for positive numbers or - for negative numbers
  - no decimals in the h or mm results
  - no leading zero on h (this is ok by default)
  - a leading zero on mm (if needed - so 5 would display as 05)

This is what I have:
xsl:value-of select=concat( format-number( $diff div 60, '+0;-0' ), ':',
format-number( $diff mod 60, '00;00' ) )/

This will take the absolute value of the h portion (kind-of) and
prefix it with a + or -.

The problem is with the mm portion:  I tried specifying an
optional negative format of 00 so that it would not try to put a
the minus sign, but it is showing -6:-30.  If ANY other character is
added to the optional negative pattern, it will work.
i.e. this will show the negative value with parentheses:
xsl:value-of select=concat( format-number( $diff div 60, '+0;(0' ), ':',
format-number( $diff mod 60, '00;00)' ) )/
will show (6:30) -- but that's not what I need.

Any reason why the negative pattern is not being used?  Is it because it
is a duplication of the positive pattern?

Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: Xalan and xsl:sort speed by type

2001-11-16 Thread Mark S. Kent

Yes, the data IS from a database.  However, often my output files are
sorting the results of the data based on a user choice (I'm creating
reports).

But, you got the thinking so I made an addition to my dynamic query string
in my esql command to change the SQL sort order based on the order (order
by...).

Still, I'm curious about the xsl:sort speed...

Mark

-Original Message-
From: David Rosenstrauch [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 4:27 PM
To: [EMAIL PROTECTED]
Subject: Re: Xalan and xsl:sort speed by type


Not answering your question, but just FYI ...

If this is data that's being retreived from a database, then my thinking
would be to avoid xsl:sort completely if possible.  I'd rather do sorting in
the database using a SQL statement (SELECT ... ORDER BY ...) since it's
probably better optimized for this.

Of course, if this isn't database data then please ignore me.  :-)


DR


At 03:13 PM 11/16/01 -0600, you wrote:
Anyone know which is faster using Xalan (in Cocoon2)?  xsl:sort for a
number type or a text type?

Seems I remember reading that string compares take longer than numeric
ones as a rule.  I have the option of sorting nodes based on either an
employeeid (integer) or lastname (text).

While the project is new, I know the employeeids will not be more than 5
digits.  However, later they will.

On the other hand, the lastnames could easily exceed 5 characters in length
or could overlap for two people at a location (i.e. Bob SMITH and Mike
SMITH).  I will select the nodes by ID to ensure uniqueness, but when I
uses
my xsl:sort command, I'd like it to use the optimum sort type.

TIA!   - Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: Strange Netscape Behavior

2001-11-15 Thread Mark S. Kent

You're posting your message in HTML format.  Change to  Plain Text format
for your email and then post the NS source into the mail...

Mark
-Original Message-
From: Henrik Hofmann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 9:15 AM
To: [EMAIL PROTECTED]
Subject: Strange Netscape Behavior


Hi,
I've got some trouble using Netscape. First I made a page and just used
Iexplorer. Everyting looks normal. Now I tried to watch the same page in
Netscape. I expected some minor differences but Netscape even up the pages
source code. It puts some extra characters between every normal character. I
tried to copy a part of the source code into outlook to show you how it
looks but outlook takes this characters out and everything looks normal
again.

On the other hand. I can view the sample cocoon pages with Netscape.

Could this be some encoding problem or something else?

bye


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




C2: sitemap_xmap: error notifier barfs

2001-11-15 Thread Mark S. Kent

I've been seeing this message in my logs alot recently and would like to see
it go away.  The actual message in the log is:

ERROR   (2001-11-15) 12:05.18:008   [cocoon  ]
(/cocoon/mark/styles/mystyle.css) HttpProcessor[8080][0]/sitemap_xmap: error
notifier barfs
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.lang.RuntimeException: Connection aborted by peer: socket write error
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:374)
at
org.apache.cocoon.www.sitemap_xmap.error_process_7_500(sitemap_xmap.java:842
9)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3010)
and so on...

It's related to my .css file that I have as an include in my HTML output:
link rel=stylesheet href=../styles/mystyle.css type=text/css/
Most times I try to refresh my page, I get this message.

My sitemap.xmap handles the .css file with these lines:
   map:match pattern=mark/styles/*.css
map:read src=mark/styles/{1}.css mime-type=text/css/
   /map:match

I am using:
Windows NT4
Tomcat 4.0.1
Cocoon2 rc2

Any help would be appreciated...

Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




C2: xsl:message

2001-11-14 Thread Mark S. Kent

I just tried using xsl:message in Cocoon2 and got a hard-failure screen.
Per the XSLT spec, isn't the message entered supposed to display in the
browser or something?

Tried this:
xsl:message terminate=yes
xsl:textError occurred - check your data!/xsl:text
/xsl:message

But got the big blue nasty Cocoon2 error screen as a result and this message
did not appear.  xsl:message is supposed to output a message and
optionally terminate the execution of a stylesheet.

All I see in the log is:
/ServerPagesGenerator: Exception in ServerPagesGenerator.generate()
java.lang.RuntimeException: Stylesheet directed termination

Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




cocoondb.backup error C2 rc2

2001-11-12 Thread Mark S. Kent

I read the latest messages about the fix to get Tomcat4 to start up (in
list and FAQ) but the change I made keeps getting overwritten each time I
restart Tomcat4.  I think the FAQ fix worked fine with C2RC1 but C2RC2
seems to reset the cocoondb.properties line of modified=no to
modified=yes each time I restart Tomcat4.  I'm pretty sure this same
change in C2RC1 didn't reset the value (at least I hadn't seen the
error...).

Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




C2 uses 1.0 or 1.1 of XSLT spec?

2001-11-12 Thread Mark S. Kent

Does anyone have examples of the Xalan nodeset() function?  I am having some
trouble.  Does Cocoon2 use the 1.0 or 1.1 (a?) specification of XSLT?

What I want to do is:
1. Select nodes from my XML tree
2. Create a variable of the unique dates within the selected nodes

XML data looks like this:
data
  schedule
employeeid70/employeeid
lastnameSmith/lastname
firstnameSusan/firstname
deptdescTraining/deptdesc
scheduleid275/scheduleid
scheduledate06-11-2001/scheduledate
minutesscheduled180/minutesscheduled
  /schedule
  schedule
employeeid70/employeeid
lastnameSmith/lastname
firstnameSusan/firstname
deptdescTraining/deptdesc
scheduleid276/scheduleid
scheduledate06-11-2001/scheduledate
minutesscheduled480/minutesscheduled
  /schedule
  schedule
employeeid70/employeeid
lastnameSmith/lastname
firstnameSusan/firstname
deptdescTraining/deptdesc
scheduleid277/scheduleid
scheduledate06-12-2001/scheduledate
minutesscheduled240/minutesscheduled
  /schedule
/data
XSL file looks like:
?xml version=1.0?

xsl:stylesheet
version=1.0
xmlns:xalan=http://xml.apache.org/xalan;
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

xsl:template match=data
   !-- select only schedules for this emp --
xsl:variable name=myemp
select=//schedule[employeeid='43']/scheduledate/
   !-- eliminate duplicate dates --
xsl:variable name=myemp1 select=$myemp[not(.=preceding)]/
   !-- display unique dates --
 xsl:for-each select=$myemp1
xsl:value-of select=./br/
/xsl:for-eachbr/
/xsl:template

/xsl:stylesheet

myemp should be a nodeset of all schedules for employee 43.  When I try:
xsl:variable name=myemp1 select=$myemp[not(.=preceding)]/
it looks at ALL of the nodes in my XML (I think) rather than just the
sub-set I've chosen.  Do I need to explicitly make a nodeset out of the
myemp selection?

Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




[C2] Socket write error serving CSS file

2001-11-01 Thread Mark S. Kent

My pages display fine, but the log is chock full of messages about a
java.net.SocketException.  I haven't changed my sitemap, but the error seems
to occur after I haven't visited my Cocoon2 page page for a while.  Once I
try to refresh it, it fills the logs with these messages while try to serve
my testing.css file (although the page displays just fine...).  See
snippets below.

What is the difference between **.css and *.css in the sitemap?  I
followed examples from the supplied samples to do mine in my own testing
folder, but what unsure what the difference means...

 snipped from sitemap.xmap 
   map:match pattern=testing/**.css
map:read src=testing/{1}.css mime-type=text/css/
   /map:match

 snipped from cocoon.log 
WARN(2001-11-01) 15:53.53:581   [cocoon  ] (/cocoon/testing/testing.css)
HttpProcessor[8080][3]/sitemap_xmap: Sitemap Error Process
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.net.SocketException: Connection aborted by peer: socket write error
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.processReader(Ca
chingStreamPipeline.java:225)
at
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(Abstrac
tStreamPipeline.java:116)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:250)
at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN4005CD(sitemap_xmap.java:77
00)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2758)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2231)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:591)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Unknown Source)
java.net.SocketException: Connection aborted by peer: socket write error
at java.net.SocketOutputStream.socketWrite(Native Method)


Thanks!
Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: [C2] Socket write error serving CSS file

2001-11-01 Thread Mark S. Kent

Setup is as follows:
  Windows NT4 SP5 (for development)
  Cocoon 2 rc1 (maybe rc2?)
  Tomcat 4.01

Mark

-Original Message-
From: Jörn Heid [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 4:12 PM
To: [EMAIL PROTECTED]; Mark Kent
Subject: AW: [C2] Socket write error serving CSS file


** means that sudirs will be integrated.
* means looking in that specific directory.

I do have similar problems with Tomcat 4.01. For me, the output is wrong due
to socket exceptions.
With Resin, all works fine.

What version of Tomcat do you use?

-Ursprüngliche Nachricht-
Von: Mark S. Kent [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 1. November 2001 23:08
An: [EMAIL PROTECTED]
Betreff: [C2] Socket write error serving CSS file


My pages display fine, but the log is chock full of messages about a
java.net.SocketException.  I haven't changed my sitemap, but the error seems
to occur after I haven't visited my Cocoon2 page page for a while.  Once I
try to refresh it, it fills the logs with these messages while try to serve
my testing.css file (although the page displays just fine...).  See
snippets below.

What is the difference between **.css and *.css in the sitemap?  I
followed examples from the supplied samples to do mine in my own testing
folder, but what unsure what the difference means...

 snipped from sitemap.xmap 
   map:match pattern=testing/**.css
map:read src=testing/{1}.css mime-type=text/css/
   /map:match

 snipped from cocoon.log 
WARN(2001-11-01) 15:53.53:581   [cocoon  ] (/cocoon/testing/testing.css)
HttpProcessor[8080][3]/sitemap_xmap: Sitemap Error Process
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.net.SocketException: Connection aborted by peer: socket write error
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.processReader(Ca
chingStreamPipeline.java:225)
at
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(Abstrac
tStreamPipeline.java:116)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:250)
at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN4005CD(sitemap_xmap.java:77
00)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2758)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2231)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:591)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943

Creating CSV and XML files

2001-11-01 Thread Mark S. Kent

We are using JBoss and beans to manage the other pages in our site but I'm
using Cocoon2 for the reports because they have the ability to take data and
create other formats (namely HTML,PDF,CSV,and XML).  Our reports will be
available in any of the formats and I'd like to use the same query in ESQL
in my XML file for all of them.

So, has anyone called Cocoon2 page from a from outside of Cocoon that
will run the query, create the file in a user's temporary folder, then
redirect back to the report form selection screen?

I'm able to get the reports for HTML and PDF to simply display in the
browser's bottom frame of our app, but was planning on providing a link to
the CSV and XML reports file as they tend to want to be handled by the
browser.  I'd rather have a right-click-Save-As link than trying to worry
about what a browser will attempt to do with the file.

Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




[C2] esql nested queries

2001-10-29 Thread Mark S. Kent

I'm trying to find the best way to organize my XML data before doing the XSL
stylesheet, and wanted to create my queries using ESQL nesting like this:

esql:execute-query
  esql:queryselect foo from bar/esql:query
  esql:results
esql:row-results
  data
a
esql:execute-query
  esql:queryselect foo1 from bar1 where id = a/esql:query (where
a id from ancestor=1 query just before)
  esql:results
esql:row-results
  data first sub
b
esql:execute-query
  esql:queryselect foo2 from bar2 where name = b
/esql:query (where b name from ancestor=1 query just before)
  esql:results
esql:row-results
  data second sub
c
  /data second sub
/esql:row-results
  /esql:results
/esql:execute-query
  /data first sub
/esql:row-results
  /esql:results
/esql:execute-query
  /data
/esql:row-results
  /esql:results
/esql:execute-query

which produces results of:
data 1
  data first sub 1
data second sub 1
data second sub 2

  data first sub 2
data second sub 1

data 2
  data first sub 1
data second sub 1
data second sub 2

...and so on... 

I know this is easier is XSLT to process, but my concern is for Cocoon and
the potentially huge number of times these sub-queries have to run for each
previous query result-set.  If I had 20 results from the first query and 100
from the second query, that means the third query would run 2000 times.
Can someone confirm for me that this is how Cocoon2 handles these sub-query
requests?  I'd rather not hammer the database like that.

My alternative was a flat XML structure for the third-level data (which
included the data from the level 1 and 2 queries) but was making the
processing in XSLT more difficult.

Thanks in advance!
Mark

attachment: winmail.dat
-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


RE: date-format in cocoon 1.8.2

2001-10-25 Thread Mark S. Kent

Christian,

I'm trying the same thing and tried to wrap the esql:get-time call with an
esql:if-null.  If that is the only command:
esql:if-null column=schedule_lunch_startnone/esql:if-null
it works just fine when the value is null, but I can't find the correct
syntax to use for the command if the value is NOT null.  Because otherwise
I want to get the time value...
esql:get-time column=schedule_lunch_start format=hh:mm aa/

I sent an email about the esql:if-null earlier today (14:29 PM CDT) and
never saw it come through the list.  Has anyone else been having trouble
seeing their replies?

Mark

-Original Message-
From: Schroeter Christian [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 8:35 AM
To: [EMAIL PROTECTED]
Subject: Re: date-format in cocoon 1.8.2


Now if the value in the db is null then i get an error-message.

Without the format - attribute i wouldnt get it.

What must i change, and how?

cu,
Christian

Am Dienstag, 23. Oktober 2001 19:01 schrieben Sie:
 Specify the format attribute using a Java SimpleDateFormat string.  For
 instance,
 esql:get-date column=... format=MMM dd, /

 -Christopher




 Please respond to [EMAIL PROTECTED]

 To:   [EMAIL PROTECTED]
 cc:

 Subject:  date-format in cocoon 1.8.2


 Hi,

 what must i do to change the format of the date i get with
 esql:get-date...

 i am using cocoon1.8.2

 cu,
 christian





 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: date-format in cocoon 1.8.2

2001-10-25 Thread Mark S. Kent

I was mistaken... the esql:get-date and esql:get-time do work (in C2) to
return a empty value if the date or time is null.  I found that my error I
was getting was because the column name I was referencing was not in my ESQL
query (DOH!).  Sorry about that.

Mark

-Original Message-
From: Faulkner, Perry [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 4:55 PM
To: '[EMAIL PROTECTED]'
Subject: RE: date-format in cocoon 1.8.2


Hi Christian,

These comments apply to Cocoon 2, but the generated java code checks for a
null value and returns , otherwise it uses the SimpleDateFormat to convert
the date. You might look at your generated code to see if it is doing the
same thing. Maybe this was added for Cocoon 2. Anyway, if it isn't doing the
right thing, you can get hold of the stuff from 2 and put that into your
code, either add it to your esql.xsl or simply use xsp:logic in your xsp
file, within your esql:row-results to fetch the date, test for null and
format, as required, just like the Cocoon 2 code! Look at the esql.xsl and
there should be some esql samples that do this sort of thing.

HTH, regards

  Perry

-Original Message-
From: Schroeter Christian [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 24 October 2001 23:35
To: [EMAIL PROTECTED]
Subject: Re: date-format in cocoon 1.8.2


Now if the value in the db is null then i get an error-message.

Without the format - attribute i wouldnt get it.

What must i change, and how?

cu,
Christian

Am Dienstag, 23. Oktober 2001 19:01 schrieben Sie:
 Specify the format attribute using a Java SimpleDateFormat string.  For
 instance,
 esql:get-date column=... format=MMM dd, /

 -Christopher




 Please respond to [EMAIL PROTECTED]

 To:   [EMAIL PROTECTED]
 cc:

 Subject:  date-format in cocoon 1.8.2


 Hi,

 what must i do to change the format of the date i get with
 esql:get-date...

 i am using cocoon1.8.2

 cu,
 christian





 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: C2: esql:if-null

2001-10-25 Thread Mark S. Kent

Well, to reply to my own message, I didn't find any mention of additional
is-null commands like is-null-true or is-null-false in the esql.xsl
page, but I was able to get my code to use the is-null returned Java
boolean value in an xsp:logic block to determine whether I should concat
the LocationNumber to LocationName if the LocationNumber was not null and
was not blank.

xsp:logic
  String locNbr = ;
  if( !(esql:is-null column=location_nbr/) amp;amp; !esql:get-string
column=location_nbr/.equals(  ) )
  {
   locNbr =  # + esql:get-string column=location_nbr/;
/xsp:logic

locationnameesql:get-string
column=location_name/xsp:exprlocNbr/xsp:expr/locationname

Are there any plans to add the is-null-true or is-null-false commands?
(actually the previous message in the archives described them as
when-null-true and when-null-false [ref:
http://www2.real-time.com/pipermail/cocoon-devel/2001-May/007585.html]

Just curious... I suppose I could add them to the esql.xsl myself, but I'm
leery of adding a hack that will get overwritten with a later version of a
Cocoon install.

Mark

-Original Message-
From: Mark S. Kent [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 2:29 PM
To: [EMAIL PROTECTED]
Subject: C2: esql:if-null


esql:if-null column=colname

Has anyone used this yet?  What is the exact syntax for the esql statement?
The ESQL Taglib page is rather sparse explaining it and the only message in
the archives was suggestions on how to implement it.

I have a Location name/nbr string that I want to create like this:
{LocationName} #{LocationNumber}
but sometimes the number is null so I want to just see this instead:
{LocationName}

TIA!
Mark

attachment: winmail.dat
-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


[C2] using HTML nowrap in a TD

2001-10-25 Thread Mark S. Kent

This is weird.

I just tried putting a nowrap param to my TD tag in my XSL file like
this:
  td nowrap

to prevent the table cell in HTML from wrapping and got this error on the
screen:
  Error creating the resource
Failed to execute pipeline.

and in the log:
   org.xml.sax.SAXParseException: Attribute name td must be followed by
the '=' character.

I was able to get around this by changing my tag to this:
  td nowrap=

While obviously not valid HTML, the browser still takes it (IE anyway --
haven't tested with NetScrape)

Comments?
-Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




C2: Choosing XSL dynamically

2001-10-24 Thread Mark S. Kent

I noticed a message previously about choosing an XSL file using actions
depending on some external input (in this case a value in the database --
ref:
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=99806349922890w=2 ).

I have reports that I am using Cocoon2 to render with two (maybe more later)
different stylesheets, one for HTML and one for PDF.  I am performing some
calculations in the XSL stylesheets to sum up totals from the XML data
before outputting the results using each stylesheet.  Since the XSL
calculations are held separately in each version of the stylesheet depending
on the report format the user wants, I must maintain the XSL calculations
separately in each file.  I'd prefer to include the calc's in one stylesheet
that then uses the appropriate output lines to either render using the
HTML commands (tabletrtd...etc) or FOP-PDF commands
(fo:tablefo:table-rowfo:table-cell...etc).

If I include these commands in the same file with the use of some XSL
decision statement (xsl:if/choose/when) then the C2 sitemap won't know what
to really do with the commands it finds.  Is this possible to same different
output command reside in the same XSL page under C2?  Or is there a way to
perform the calculations in a shared file that I can call from each of
my two separate stylesheet files?

Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: Second run error

2001-10-22 Thread Mark S. Kent

Kenny,

Not really a solution, but I've seen the same error.  It went away when I
deleted the cocoondb.backup file in the WEB-INF\db folder.  I've only seen
it again once or twice and solved it with the same solution.

Mark

-Original Message-
From: Kenny Chow [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 21, 2001 10:05 PM
To: [EMAIL PROTECTED]
Subject: Second run error


The first time I deployed the C2 war file on Tomcat4,
everything ran smoothly. But the 2nd time tomcat
starts, it gives me the following error. Would someone
give me a hint?

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
Server.run/init: java.sql.SQLException: File
input/output error: C:\tomcat40\webapps\cocoon\WEB-INF\db\cocoondb.backup
java.sql.SQLException: File input/output error:
C:\tomcat40\webapps\cocoon\WEB-INF\db\cocoondb.backup
at org.hsqldb.Trace.getError(Trace.java:180)
at org.hsqldb.Trace.getError(Trace.java:144)
at org.hsqldb.Trace.error(Trace.java:205)
at org.hsqldb.Log.restoreBackup(Log.java:731)
at org.hsqldb.Log.open(Log.java:212)
at org.hsqldb.Database.init(Database.java:96)
at org.hsqldb.Server.run(Server.java:137)
at org.hsqldb.Server.main(Server.java:78)
at
org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:101)
at java.lang.Thread.run(Thread.java:484)


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




C2: FO example with XML file

2001-10-22 Thread Mark S. Kent

I'm migrating from my C1 tests to C2 and attempting to get my previously
working FO (PDF) examples to work.  I had a namespace defined in my C1 file
that the C2 serializer doesn't like:

code:
xsl:stylesheet version=1.0
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

error:
FOTreeBuilder: Unknown formatting object
http://www.w3.org/1999/XSL/Transform^stylesheet

So, I've commented that out.  Problem is, I need to reference my XML data
being created from a database.  The FO example shipped with C2 examples only
used static data to create the example.

Am I missing something very obvious here?

Thanks!
Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: C2.0: connection pool/ datasource problem [interbase]

2001-10-19 Thread Mark S. Kent

I'm having a similar problem with pooling setup for Interbase.  I've used
the Cocoon2 sample for ESQL to edit my page, sitemap, etc. but it still
won't work.

I've defined the datasource cl (that's C and L -- not C and ONE) and in
cocoon.xconf as:
  datasources
jdbc name=cl
  pool-controller min=5 max=10/

dburljdbc:interbase://localhost/d:/www/interbase/data/dev01.gdb/dburl
  useruser/user
  passwordpass/password
/jdbc
  /datasources

and left the default cocoon2 datasource of personnel (so the C2 samples
still work):
  datasources
jdbc name=personnel
  pool-controller min=5 max=10/
  dburljdbc:hsqldb:hsql://localhost:9002/dburl
  usersa/user
  password/password
/jdbc
  /datasources

In my XSP page I have:
?xml version=1.0 encoding=ISO-8859-1?
xsp:page
language=java
xmlns:xsp=http://apache.org/xsp;
xmlns:esql=http://apache.org/cocoon/SQL/v2;

page
pagetitleEmployees Working Report/pagetitle
esql:connection
esql:poolcl/esql:pool
esql:execute-query
esql:queryselect * from employee/esql:query
esql:results
esql:row-results
employee
lastnameesql:get-string
column=last_name//lastname
firstnameesql:get-string
column=first_name//firstname
empidesql:get-string
column=employee_id//empid
esql:no-results
userNo one is working/user
/esql:no-results
/employee
/esql:row-results
/esql:results
  /esql:execute-query
/esql:connection
/page
/xsp:page

I am getting this error in my cocoon.log file when my XSP page tries to use
the pool:
ExcaliburComponentSelector: datasources: ComponentSelector could not find
the component for hint: cl
working4_xsp: Could not get the datasource
org.apache.avalon.framework.component.ComponentException: datasources:
ComponentSelector could not find the component for hint: cl

If I change the XSP page to use these lines in place of the esql:pool
lines, it works:
esql:driverinterbase.interclient.Driver/esql:driver

esql:dburljdbc:interbase://localhost/d:/www/interbase/data/dev01.gdb/esql
:dburl
esql:usernameuser/esql:username
esql:passwordpass/esql:password

Russell, did you get yours to work?

Thanks!
Mark

-Original Message-
From: Russell Castagnaro [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 16, 2001 12:21 PM
To: [EMAIL PROTECTED]
Subject: C2.0: connection pool/ datasource problem


Aloha folks,

I'm having a strange problem with C2 for All db connections

I've tried using mysql and oracle and they both have the same
problem..

I'm preloading the driver classes and I've tested my db connections.
The error I get when using the esql taglib is:

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate():
java.lang.RuntimeException: Could not get the datasource
java.sql.SQLException:
There are no connections in the pool, check your settings.
at
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera
tor.java:187)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:214)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:364)
at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40043E(sitemap_xmap.java:57
40)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2593)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2205)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)

Why wouldn't any connections be available?

I'm using:

  datasources
jdbc name=fun
  pool-controller min=5 max=10 oradb=true/
  dburljdbc:oracle:thin:@localhost:1521:ORCL/dburl
  userscott/user
  passwordtiger/password
/jdbc

and
?xml version=1.0 encoding=ISO-8859-1?

xsp:page
  language=java
  xmlns:xsp=http://apache.org/xsp;
  xmlns:esql=http://apache.org/cocoon/SQL/v2;


  page
   titleA Database Driven XSP Page/title
   content

   esql:connection
 esql:poolfun/esql:pool
 esql:execute-query
   esql:querySelect * from EMP/esql:query
   esql:results
 esql:row-results
   paraesql:get-string column=ename//para
   esql:get-columns/
 /esql:row-results
   /esql:results
 /esql:execute-query
   /esql:connection

   /content
  /page
/xsp:page
/xsp:page

any ideas??





--
Best regards,
 Russell  mailto:[EMAIL PROTECTED]


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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



RE: session and xsl

2001-10-18 Thread Mark S. Kent

Marty,

I tried your suggestion, but it didn't work.  Although cocoon is seeing a
session, it does not appear to be the same one that Tomcat(?) created when
the user logged in.  I put a session.getId() call into my JSP page and
also one in the XML file and both returned different values.

Now, I assumed (and I know what that means!) that since Tomcat created the
session when the user logged in, and Cocoon runs under Tomcat, that both
would be the same.  Not the case.

Can anyone shed light on how these sessions are being defined?  From
looking at what process is serving the file (Tomcat=JSP, Cocoon=XML), it
seems a new session ID value is created for each one.  Does that sound
right?

Or, is the session ID related to where these files reside within a folder
structure (webapps\myapp vs. webapps\cocoon) and each call to a different
alias in apache starts a new session?  I'm confused. I thought Tomcat was
handling them all.

Mark

-Original Message-
From: Marty McClelland [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 18, 2001 9:19 AM
To: [EMAIL PROTECTED]
Subject: RE: session and xsl


I use C1.8.2 and have the following code to access the session:
xsp:logicHttpSession theUserSession = request.getSession(); 
String theLoginName = (String) theUserSession.getAttribute(loginName);
/xsp:logic

marty 

 -Original Message-
 From: Mark S. Kent [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 16, 2001 3:06 PM
 To: [EMAIL PROTECTED]
 Subject: RE: session and xsl
 
 
 This is what I have in C1 in my XSP code:
 
 xsp:logic
 EmployeeData employeeData = null;
 try
 {
   employeeData = (EmployeeData)session.getAttribute( employee );
 }
 catch( ClassCastException e ) {}
 
 Integer empID = null;
 if( employeeData != null )
 {
   System.out.println( Data ID:  + 
 employeeData.getEmployee_id() );
   empID = employeeData.getEmployee_id();
 }
 else
 {
   System.out.println( Data ID: none );
   empID = new Integer( -1 );
 }
 /xsp:logic
 
 The line:
 
   employeeData = (EmployeeData)session.getAttribute( employee );
 
 is exactly how I do it in my JSP pages.  When I test for null on the
 employeeData object, however, it is always null.  It may be a C1
 limitation.  We are looking at C2 because of the additional features.
 
 Is there a request object for the session variable?  
 Currently I retrieve
 session variables as above and have only done requests for form/URL
 variables.
 
 Mark
 
 -Original Message-
 From: Christian Haul [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 16, 2001 1:35 PM
 To: [EMAIL PROTECTED]; Mark Kent
 Subject: Re: session and xsl
 
 
 On 16.Oct.2001 -- 09:14 AM, Mark S. Kent wrote:
  I also have an interest on retrieving session values in my 
 XML file to
 help
  build the XML data.  I thought that XSP would be able to 
 read them as my
 JSP
  pages do since both run under Tomcat, but am having trouble 
 seeing them
 from
  the XML document.
 
 Mark, accessing session attributes from XSP ist piece of cake :-)
 There's a logicsheet aka taglib for it. Otherwise use the request
 object and access the data through ordinary java.
 
  Chris, is the solution you mention below only available in C2?
 
 Which one of the two alternatives? Honestly, I don't know about C1,
 there might be a session taglib but passing parameters from a non
 existant sitemap won't do :-)
 
 
  From: Christian Haul [mailto:[EMAIL PROTECTED]]
  On 15.Oct.2001 -- 04:35 PM, Mohamed Ramzy wrote:
   hi all,
   i'm trying to read session variables through .xsl
   file, if you have any idea how to do that, please tell
 
  No way. At least from a stylesheet. Pass parameters from sitemap
  instead. For a taglib, just use session taglib within your taglib.
 
   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. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

attachment: winmail.dat
-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


FOP .20

2001-09-25 Thread Mark S. Kent

Does the latest release of FOP (.20) work with Cocoon 1.8.2?  I tried using
the included FOP .15 version with the Cocoon distribution, but realized it
is seriously lacking a few key components that I'd like to use.

Peace,
Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: Question

2001-09-19 Thread Mark S. Kent

You also need a version specified in the xsl:stylesheet tag:

xsl:stylesheet version=1.0
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

Mark

-Original Message-
From: Anthony Diodato [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 19, 2001 3:07 PM
To: '[EMAIL PROTECTED]'
Subject: Question


Im a Cocoon 1.8.2 user along with JRun 2.3

I have the following in my JRun stderr.log file and was wondering if anyone
could help with this.
Here is the statement, it occurs 100's of times in the log.

XSL Warning: xsl:stylesheet requires a 'version' attribute!

I have this at the top of my XSL file

?xml version=1.0?

so Im not sure what the error means.

Please Advise
Thanks

Anthony Diodato
Webmaster - IT
Prophet 21, Inc.
19 West College Avenue
Yardley, PA 19067
1-800-776-7438, ext. 4600
Fax: 215-321-8014
[EMAIL PROTECTED]
http://www.p21.com/
Prophet 21 -- Powering the Distribution Industry for the Digital Age

For the latest press releases from Prophet 21 --
http://www.p21.com/press/press.html
*   2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise
(E2E) Commerce
*   2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available
*   2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim
For the latest articles on Prophet 21
http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupdate.
htm
http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm
http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm




Visit our website at http://www.p21.com/visit
The information in this e-mail is confidential and may contain legally
privileged information.  It is intended solely for the person or entity to
which it is addressed.  Access to this e-mail by anyone else is
unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution, action taken, or action omitted to be taken in
reliance on it, is prohibited and may be unlawful.  If you received this
e-mail in error, please contact the sender and delete the material from any
computer.



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Sessions: JSP/XSL

2001-09-17 Thread Mark S. Kent



I'm 
creating session object called "employee" during login time by a JSP page (using 
a bean). I would like to be able read the "employee" session information 
to validate a user in XSP (within my XML file) like this:

?xml version="1.0"?
?cocoon-process type="xsp"??cocoon-process 
type="xslt"?xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core" 
xmlns:session="http://www.apache.org/1999/XSP/Session" 
create-session="true"
xsp:structure 
xsp:includename.modulename.EmployeeData/xsp:include/xsp:structure

page
 xsp:logic EmployeeData employeeData = 
null; employeeData = 
(EmployeeData)session:get-attribute 
name="employee"/;
 if( employeeData != null ) 
System.out.println( "Data ID: " + employeeData.getEmployee_id() 
); else System.out.println( "Data 
ID: none" );
 /xsp:logic
/page

This 
line:
employeeData = (EmployeeData)session:get-attribute 
name="employee"/;never finds the session variable called 
"employee" (remember it was created by a JSP page calling a bean) so the only 
value I receive is "null". 
How 
can I read this session value in XSP/XML?

Thanks!
Mark



C1: Including XML/XSL in JSP pages

2001-09-14 Thread Mark S. Kent

I'd like to include an XML page request with esql query string and
report type (i.e. html, pdf, csv, etc.) as a jsp:include in a current
JSP page which already has my page security and other stuff.

Currently, in my JSP I have:
jsp:include page=test.xml flush=true /

I'm getting the message:
java.lang.IllegalStateException: Writer is already being used for this
request

which from reading previous posts relates to the OutputStream (servlet) vs.
Writer (tomcat) incompatibility (only one can control the writing).

My stand-alone XML file does what I want by outputting in HTML or PDF
(depending
on a form choice from the previous page that calls it and xsp:pi an
appropriate stylesheet filename), but I have concerns  about the XML file
being able to be called without any checking to ensure the website visitor
is authorized to view the page (this is for an online app). Otherwise,
wouldn't they be able to just put it in the URL and view it (although they
would have to know what parameters to feed it to get it to work right)?

The other thing is once I've committed the output type to a JSP page,
can
I tell the the output to be a PDV or a CSV to be downloaded?

Thanks!
Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: TurbineResources.properties error msg

2001-09-13 Thread Mark S. Kent

Brian,
Thanks, that worked.  The ...pool.logfile... parameter was commented out
(don't know why), but I did not have the second line
(processor.xsp.pool.turbine.logs=database).  Everything seems to be working
ok.  Do I still need it?

Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Brian P Millett
Sent: Thursday, September 13, 2001 2:37 PM
To: [EMAIL PROTECTED]; Mark Kent
Subject: Re: TurbineResources.properties error msg


Mark S. Kent wrote:

 I've turned on esql pooling (which works great), but now the first  time I
 try to run an esql command in an XML file I get an error message in the
 tomcat log file of:

 java.lang.Exception: The logfile= property and the turbine.logs= property
 in the TurbineResources.properties file are null or could not be found.
 At least one of these properties must be defined in the
 TurbineResources.properties file.

 I then must restart tomcat and httpd to get the website to start
working
 again.

Mark, those parameters are defined in the cocoon.properties file:

processor.xsp.pool.logfile=/opt/apache/jserv/logs/dbPool.log
processor.xsp.pool.turbine.logs=database

Make sure that they are set and that the cocoon.properties file can be seen
in the WEB-INF
directory.

--
Brian Millett
Enterprise Consulting Group   Shifts in paradigms
(314) 205-9030   often cause nose bleeds.
[EMAIL PROTECTED]   Greg Glenn




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




TurbineResources.properties error msg

2001-09-12 Thread Mark S. Kent

I asked this earlier but received no response:

I've turned on esql pooling (which works great), but now the first  time I
try to run an esql command in an XML file I get an error message in the
tomcat log file of:

java.lang.Exception: The logfile= property and the turbine.logs= property
in the TurbineResources.properties file are null or could not be found.
At least one of these properties must be defined in the
TurbineResources.properties file.

I then must restart tomcat and httpd to get the website to start working
again.

I have searched for the TurbineResources.properties file and cannot find
it (hence the message that the settings are null).  What needs to be done
to correct this?  We are using Cocoon 1.8.2 and Tomcat 3.2.1.

Thanks!
Mark


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: logic

2001-08-29 Thread Mark S. Kent

Do I get counted off points as a newbie poster when I'm just stupid??  Bad
coding on my part in another page:  While trying to get the xsp:logic to
work, I mistakenly placed it in a sub XSL file and didn't close it.  Argh.

-Original Message-
From: Mark S. Kent [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 5:41 PM
To: [EMAIL PROTECTED]
Subject: xsp:logic


org.apache.xalan.xslt.XSLProcessorException: Element type xsp:logic must
be followed by either attribute specifications,  or /.


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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