Fw: Authentification + Forward

2001-06-26 Thread loc-at-soft



 
- Original Message - 
From: loc-at-soft 
To: [EMAIL PROTECTED] 

Sent: Tuesday, June 26, 2001 10:26 AM
Subject: Authentification + Forward

 

Hello, 
 
I'm trying to create an authentification XML page 
for Web users connecting to a MySQL database.
 
Here is my source code
---
login.xml

login-html.xsl" type ="text/xsl"?>  

 
http://www.apache.org/1999/XSP/Core"xmlns:esql="http://apache.org/cocoon/SQL/v2"> 
   String login = 
request.getParameter("login");  
String password = 
request.getParameter("password");  
Boolean loginException=false try {   
    
    
org.gjt.mm.mysql.Driver 
 jdbc:mysql://192.36.253.1/lims 
    
 login   
  password 
       
    }   catch (Exception e) 
{  loginException=true;}   
-
 
This code doesn't work ! I'm not able to use 
"loginException"  . I want to forward connection errors on an error page 
!
Does anyone have an exemple of such an 
authentification XML page connecting to a database ?
 
Thanks for your help !
 
;-[
 
 


Fw: Tomcat problem

2001-07-09 Thread Adrian Geissel



Hi,
 
We are using Tomcat 3.2.1 and Cocoon 1.8.2 and are 
writing an XSP logic sheet - the functionality works well except for one 
aspect. We are deploying our application using a WAR file that is dropped 
into the Tomcat webapps directory. According to the documentation, Tomcat 
expands the WAR (it does) and should automatically add the /lib and /classes 
folders to the CLASSPATH for that webapp.
 
Our problem is that Cocoon is not picking up the 
JAR file containing the XSP XSL files (located in the 
.../webapps//lib directory).
 
I know that this sounds like a Tomcat issue, but 
has anyone managed to deploy a Cocoon app from a single WAR - without requiring 
user specified CLASSPATH entries, etc. We're aiming for a minimal configuration 
installation and this would be really nice. An intersting point is that Cocoon 
can locate our custom Java classes from a different JAR in the same directory, 
but can't find the XSL files.
 
Any thoughts are greatly appreciated,
Adrian
 


Fw: Tomcat problem

2001-07-09 Thread Adrian Geissel



Appologies, my previous message should have 
read:
 

Hi,
 
We are using Tomcat 3.2.1 and Cocoon 1.8.2 and are 
writing an XSP logic sheet - the functionality works well except for one 
aspect. We are deploying our application using a WAR file that is dropped 
into the Tomcat webapps directory. According to the documentation, Tomcat 
expands the WAR (it does) and should automatically add the /WEB-INF/lib and 
/WEB-INF/classes folders to the CLASSPATH for that webapp.
 
Our problem is that Cocoon is not picking up the 
JAR file containing the XSP XSL files (located in the 
.../webapps//WEB-INF/lib directory).
 
I know that this sounds like a Tomcat issue, but 
has anyone managed to deploy a Cocoon app from a single WAR - without requiring 
user specified CLASSPATH entries, etc. We're aiming for a minimal configuration 
installation and this would be really nice. An intersting point is that Cocoon 
can locate our custom Java classes from a different JAR in the same directory, 
but can't find the XSL files.
 
Any thoughts are greatly appreciated,
Adrian


FW: database connection

2001-08-03 Thread annemarie . hartvigsen

Sorry, the info from tomcat.sh is of course:

---
oldCP=$CLASSPATH

unset CLASSPATH

CLASSPATH=.

CLASSPATH=${CLASSPATH}:${TOMCAT_HOME}/lib/sax-bugfix.jar
CLASSPATH=${CLASSPATH}:${TOMCAT_HOME}/lib/xerces_1_2.jar
CLASSPATH=${CLASSPATH}:${TOMCAT_HOME}/lib/xalan_1_2_D02.jar
CLASSPATH=${CLASSPATH}:${TOMCAT_HOME}/lib/fop_0_15_0.jar
CLASSPATH=${CLASSPATH}:${TOMCAT_HOME}/lib/cocoon.jar
CLASSPATH=${CLASSPATH}:${TOMCAT_HOME}/lib/w3c.jar
CLASSPATH=${CLASSPATH}:${TOMCAT_HOME}/lib/turbine-pool.jar
CLASSPATH=${CLASSPATH}:${TOMCAT_HOME}/lib/mm.mysql-2.0.4-bin.jar

for i in ${TOMCAT_HOME}/lib/* ; do
  if [ "$CLASSPATH" != "" ]; then
CLASSPATH=${CLASSPATH}:$i
  else
CLASSPATH=$i
  fi
done
---

Sorry about that!!
/AM

-Original Message-
From: Hartvigsen Anne Marie (FoU) 
Sent: 2. august 2001 10:34
To: '[EMAIL PROTECTED]'
Subject: RE: database connection


Hi,

I downloaded mm.mysql-2.0.4-bin.jar and put it in /var/tomcat/lib/

I have tried to set the path, but I'm not sure it's working. Is there a way
I can set the path when booting instead of when starting tomcat?

Anyway, here's what I did:



-


>From cocoon.properties:

---

# Turbine DB Connection Pool


# These are your database settings, look in the
# org.apache.turbine.util.db.pool.* package for more information.

# Inserted 01-08-2001:
processor.xsp.pool.database.annemarie.driver=org.gjt.mm.mysql.Driver
processor.xsp.pool.database.annemarie.url=jdbc:mysql://localhost:3306/mysql/
annemarie
processor.xsp.pool.database.annemarie.username=root
processor.xsp.pool.database.annemarie.password=
processor.xsp.pool.database.annemarie.maxConnections=5
processor.xsp.pool.database.annemarie.expiryTime=360

processor.xsp.pool.database.default.driver=oracle.jdbc.driver.OracleDriver
processor.xsp.pool.database.default.url=jdbc:oracle:thin:@localhost:1521:ORC
L
processor.xsp.pool.database.default.username=dbUser
processor.xsp.pool.database.default.password=dbPass
processor.xsp.pool.database.default.maxConnections=3
processor.xsp.pool.database.default.expiryTime=360

# These are the supported jdbc-drivers and their adaptors.
# These properties are used by the DBFactory.

#Inserted 01-08-2001:
processor.xsp.pool.database.adaptor=DBMM
processor.xsp.pool.database.adaptor.DBMM=org.gjt.mm.mysql.Driver

processor.xsp.pool.database.adaptor=DBWeblogic,DBOracle,DBInstantDB,DBPostgr
es,DBSybase,DBInformix,DBMySQL
processor.xsp.pool.database.adaptor.DBWeblogic=weblogic.jdbc.pool.Driver
processor.xsp.pool.database.adaptor.DBOracle=oracle.jdbc.driver.OracleDriver
processor.xsp.pool.database.adaptor.DBInstantDB=org.enhydra.instantdb.jdbc.i
dbDriver
processor.xsp.pool.database.adaptor.DBPostgres=postgresql.Driver
processor.xsp.pool.database.adaptor.DBInformix=com.informix.jdbc.IfxDriver
processor.xsp.pool.database.adaptor.DBSybase=com.sybase.jdbc.SybDriver
processor.xsp.pool.database.adaptor.DBMySQL=org.gjt.mm.mysql.Driver


--

Thank's for your time!

/Anne Marie


-Original Message-
From: Liam Morley [mailto:[EMAIL PROTECTED]]
Sent: 2. august 2001 09:57
To: [EMAIL PROTECTED]
Subject: Re: database connection


It would be helpful to know if you have downloaded a MySQL database
driver, and if so, if it's included in your path.

---
Liam Morley

"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."



On Thu, 2 Aug 2001 [EMAIL PROTECTED] wrote:

> Hi all,
>
> sorry for posting this again, but I have the feeling my mistake is pretty
> trivial...
>
> I'm trying to connect my websites to a mysqldatabase. I'm using cocoon
> 1.8.2. I cannot get my own code to work. I cannot get the example codes to
> work (in cocoon/samples/sql). The error message I get every time is
>
> -
>
> Error found handling the request.
>
> java.lang.ClassNotFoundException:
> _var._tomcat._webapps._cocoon._vt._first_sql.
> _first_sql
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> at
> org.apache.cocoon.processor.xsp.language.java.XSPClassLoader.loadCla
> ss(XSPClassLoader.java:87)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> at
> org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessor.load(
> XSPJavaProcessor.java:169)
> at
> org.apache

Fw: Cocoon with Ldap

2001-06-13 Thread Janesh Vasudeva



 
- Original Message - 
From: Janesh Vasudeva 
 
Sent: Wednesday, June 13, 2001 4:13 PM
Subject: Cocoon with Ldap

When i try to acces  Ldap Server , it gives me 
this error
 
 
 
Wed Jun 13 15:57:57 GMT+05:30 2001: 
 *.xml: initException: 
javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; 
remaining name 'o=ireason.com,uid=rdesantis,ou=people'using renderer 
org.apache.fop.render.pdf.PDFRendererusing element mapping 
org.apache.fop.fo.StandardElementMappingusing element mapping 
org.apache.fop.svg.SVGElementMappingbuilding formatting object 
treesetting up fontsformatting FOs into areas [1]rendering 
areas to PDFwriting out PDF
 
with this code
 
   com.sun.jndi.ldap.LdapCtxFactoryldap://reason2.ireason.com:389/ldap-serverurl>msisdnlist=*   

 
what does this msisdnlist stands for ?
 
whereas this data i get when i run java program to 
get ldap details
 
uid=rdesantis, ou=people, 
o=ireason.comfirstname = Robertlastname = DeSantisuid = 
RDeSantislocation = san jose.california.us.northamericarole = 
nulllanguage = ptemail = [EMAIL PROTECTED]mobile = 
408.393.4341pager = 408.393.4341fax = 408.555.1212
 


Re: Fw: Authentification + Forward

2001-06-26 Thread Uli Mayring

On Tue, 26 Jun 2001, loc-at-soft wrote:

> This code doesn't work ! I'm not able to use "loginException"  . I want to forward 
>connection errors on an error page !
> Does anyone have an exemple of such an authentification XML page connecting to a 
>database ?

Download the auth taglib under http://ulim.cocoonhost.com, it has many
samples.

Ulrich

-- 
Ulrich Mayring
DENIC eG, Softwareentwicklung


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

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




FW: RuntimeException: Error creating org.apache.cocoon.processor.xsp.XSPProcessor:

2001-07-03 Thread shivanarayanan
 BDY.RTF


Fw: RE: C1 to C2

2001-07-16 Thread Arnaud Vandyck

Sorry, I thought the reply was not on the list so I posted in
private. And sorry for this mail, I think the charset is not correct
but I've just installed Mew (Messaging in Emacs World) and I did not
configure it at the time ;)


--Arnaud



Arnaud,

could you, please, post your reply to the cocoon-users' mailing list as
well ?
I think this matter is of general interest.

Best regards,
 
-
   Luca Morandini
-


> -Original Message-
> From: Arnaud Vandyck [mailto:[EMAIL PROTECTED]]
> Sent: venerdì 13 luglio 2001 15.41
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: C1 to C2
>
>
> On Fri, 13 Jul 2001 15:31:56 +0200, "Luca Morandini"
> <[EMAIL PROTECTED]> wrote:
>
> > > -Original Message-
> > > From: Arnaud Vandyck [mailto:[EMAIL PROTECTED]]
> > > Sent: venerdì 13 luglio 2001 14.53
> > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > Subject: RE: C1 to C2
> > >
> > > If you only pass xml files to C2, you'll loose the ability to
> > > construct dynamic pdf with the pdf extension and so on with .txt or
> > > .sh or .jpg, and so on...
> > >
> > you may pass every URI you want to Cocoon, whathever the
> extension. Of
> > course, you will have to rely on the Apache rewrite engine to
> handle this
> > job (I mean: switching URI between Apache or Cocoon).
> > This URI switching task might be pretty tricky and,
> moreover, is bound to
> > put application logic outside the sitemap... which is unfortunate.
>
> I did never work with the Apache rewrite engine, this is my first
> error ;)
>
> > > In your configuration, what will you do if you got to serve static xml
> > > files (example: applet configuration)?
> > >
> > I'll tell Apache NOT to pass xml files contained in a
> subsite to Cocoon.
> > For instance, every URI in www.foobar.com/foo/static won't be passed to
> > Cocoon but served directly by Apache, while every URI in
> >  www.foobar.com/foo/dynamic will be passed to Cocoon for
> further processing.
>
> I think MY mistake was to tell apache to relay * to Cocoon. The other
> mapping did not work anymore!
>
> But I did not want to check all the extension type (well, I should
> because they are not so many)! ;)
>
> Thanks for the tips, I'll try
>
> --Arnaud
>





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

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


Fw: Tried just about everything

2001-08-30 Thread Matt Jezorek


- Original Message -
From: "Matt Jezorek" <[EMAIL PROTECTED]>
To: "Marcus Crafter" <[EMAIL PROTECTED]>
Sent: Thursday, August 30, 2001 9:54 AM
Subject: Re: Tried just about everything


> I have uploaded my log files to
> http://dev.bluelinux.org
>
> there are to many to send to list i guess i dont like list attachments.
>
> -Matt
> - Original Message -
> From: "Marcus Crafter" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, August 30, 2001 9:14 AM
> Subject: Re: Tried just about everything
>
>
> > Hi Matt,
> >
> > I've just checked my installation. Cocoon 2.0 works out of the box
> > with Tomcat 4.0b7, without need to modify the web.xml. The
> > documentation needs to be clarified here.
> >
> > If you are still having problems, then please send in your cocoon.log
> > and tomcat servlet log files so we can take a look at them to help
> > diagnosis.
> >
> > Cheers,
> >
> > Marcus
> >
> > On Wed, 29 Aug 2001, Marcus Crafter wrote:
> >
> > > Hi Matt,
> > >
> > > Thanks for the pointer, with Tomcat 4.0b7 this was not needed for me,
> > > Cocoon worked out of the box. I'll test this a bit further and clarify
> > > the Cocoon documentation.
> > >
> > > Cheers,
> > >
> > > Marcus
> > >
> > > On Wed, 29 Aug 2001, Matt Jezorek wrote:
> > >
> > > > Yes but it says in the cocoon instructions to add it to the
> > > > cocoon/webapps/WEB-INF/web.xml
> > > >
> > > > Quote:
> > > >
> > > > "Tomcat 4.0 does not expose the servlet.jar file to Apache Cocoon by
> > > > default, so before you build the Apache Cocoon webapp you will need
to
> add
> > > > the following to the Apache Cocoon servlet definition in the web.xml
> file"
> > > >
> > > > so I did that I did exactly what it states on the install at
> > > >
> > > > http://xml.apache.org/cocoon2/install.html
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Marcus Crafter" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, August 29, 2001 12:22 PM
> > > > Subject: Re: Tried just about everything
> > > >
> > > >
> > > > > Hi Matt,
> > > > >
> > > > > On Wed, 29 Aug 2001, Matt Jezorek wrote:
> > > > >
> > > > > > edited the web.xml in the webapps/WEB-INF from the cvs checkout
to
> > > > include
> > > > > > the path to the servlet.jar
> > > > >
> > > > > This shouldn't be necessary as tomcat comes with it's own
> servlet.jar,
> > > > > which is available to all webapps, putting your own one there can
> only
> > > > > cause problems.
> > > > >
> > > > > Hope that helps.
> > > > >
> > > > > Cheers,
> > > > >
> > > > > Marcus
> > > > >
> > > > > --
> > > > > .
> > > > >  ,,$,  Marcus Crafter
> > > > > ;$'  ':Computer Systems Engineer
> > > > > $: :   Open Software Associates GmbH
> > > > >  $   o_)$$$:   82-84 Mainzer Landstrasse
> > > > >  ;$,_/\ &&:'   60327 Frankfurt Germany
> > > > >' /( &&&
> > > > >\_' Email : [EMAIL PROTECTED]
> > > > >   .Business Hours : +49 69 9757 200
> > > > > &&&:
> > > > >
> > > > >
> > > >
> > -
> > > > > Please check that your question has not already been answered in
the
> > > > > FAQ before posting. 
> > > > >
> > > > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > > > For additional commands, e-mail:
<[EMAIL PROTECTED]>
> > > > >
> > > >
> > > >
> > >
> -
> > > > Please check that your question has not already been answered in the
> > > > FAQ before posting. 
> > > >
> > > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > > >
> > > >
> > >
> > >
> >
> > --
> > .
> >  ,,$,  Marcus Crafter
> > ;$'  ':Computer Systems Engineer
> > $: :   Open Software Associates GmbH
> >  $   o_)$$$:   82-84 Mainzer Landstrasse
> >  ;$,_/\ &&:'   60327 Frankfurt Germany
> >' /( &&&
> >\_' Email : [EMAIL PROTECTED]
> >   .Business Hours : +49 69 9757 200
> > &&&:
> >
> >
>


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

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




Fw: Xml with Jsp on cocoon

2001-06-19 Thread Janesh Vasudeva




 
Does anyone know about the taglib uri when we try 
to access xml using jsp as server side object .
 
<%@ taglib uri="..." prefix="tl" %>   xml="XML_Customer_URL"/>   xml="XML_Book_Inventory_URL"/>
 
 
and taglib for accessing xsl specified does not 
work as it is unable to to identify xsl-1.0
 <%@taglib uri="http://jakarta.apache.org/taglibs/xsl-1.0"
    prefix="xsltlib" %>
Pls specify uri 's for both Thanks in advanceJanesh


Re: Fw: RE: C1 to C2

2001-07-16 Thread Andre Juffer

Arnaud,

just wondering, do you have a setup with tomcat3 or tomcat4. I am
currently playing with apache1.3-tomcat4-cocoon2, but it seems that the
way to get apache 1.3 and tomcat4 working together is different than the
way this is carried out for apache1.3 and tomcat3.

Cheers,
Andre.


Arnaud Vandyck wrote:
> 
> Sorry, I thought the reply was not on the list so I posted in
> private. And sorry for this mail, I think the charset is not correct
> but I've just installed Mew (Messaging in Emacs World) and I did not
> configure it at the time ;)
> 
> --Arnaud
> 
>   
> 
> Subject: RE: C1 to C2
> Date: Fri, 13 Jul 2001 16:12:11 +0200
> From: "Luca Morandini" <[EMAIL PROTECTED]>
> To: "Arnaud Vandyck" <[EMAIL PROTECTED]>
> 
> Arnaud,
> 
> could you, please, post your reply to the cocoon-users' mailing list as
> well ?
> I think this matter is of general interest.
> 
> Best regards,
> 
> -
>Luca Morandini
> -
> 
> > -Original Message-
> > From: Arnaud Vandyck [mailto:[EMAIL PROTECTED]]
> > Sent: venerdì 13 luglio 2001 15.41
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: RE: C1 to C2
> >
> >
> > On Fri, 13 Jul 2001 15:31:56 +0200, "Luca Morandini"
> > <[EMAIL PROTECTED]> wrote:
> >
> > > > -Original Message-
> > > > From: Arnaud Vandyck [mailto:[EMAIL PROTECTED]]
> > > > Sent: venerdì 13 luglio 2001 14.53
> > > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > > Subject: RE: C1 to C2
> > > >
> > > > If you only pass xml files to C2, you'll loose the ability to
> > > > construct dynamic pdf with the pdf extension and so on with .txt or
> > > > .sh or .jpg, and so on...
> > > >
> > > you may pass every URI you want to Cocoon, whathever the
> > extension. Of
> > > course, you will have to rely on the Apache rewrite engine to
> > handle this
> > > job (I mean: switching URI between Apache or Cocoon).
> > > This URI switching task might be pretty tricky and,
> > moreover, is bound to
> > > put application logic outside the sitemap... which is unfortunate.
> >
> > I did never work with the Apache rewrite engine, this is my first
> > error ;)
> >
> > > > In your configuration, what will you do if you got to serve static xml
> > > > files (example: applet configuration)?
> > > >
> > > I'll tell Apache NOT to pass xml files contained in a
> > subsite to Cocoon.
> > > For instance, every URI in www.foobar.com/foo/static won't be passed to
> > > Cocoon but served directly by Apache, while every URI in
> > >  www.foobar.com/foo/dynamic will be passed to Cocoon for
> > further processing.
> >
> > I think MY mistake was to tell apache to relay * to Cocoon. The other
> > mapping did not work anymore!
> >
> > But I did not want to check all the extension type (well, I should
> > because they are not so many)! ;)
> >
> > Thanks for the tips, I'll try
> >
> > --Arnaud
> >
> 
>   
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>

-- 
Andre H. Juffer  | Phone: +358-8-553 1683
The Biocenter and| Fax: +358-8-553-1141
the Dep. of Biochemistry | Email: [EMAIL PROTECTED]
University of Oulu, Finland  | WWW:
http://www.biochem.oulu.fi/research.html

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

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




Fw: Problems with Cocoon with JBoss 2.2.2/Tomcat 3.2.2

2001-07-25 Thread Maurice Perry

I have followed the steps described in the documentation to install Cocoon 2
with JBoss and Tomcat, when I try to access cocoon
(http://www2.local:8080/cocoon/) I get an exception:

java.lang.NullPointerException
 at
org.jboss.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMg
rRealm.java:113)
 at
org.apache.tomcat.core.ContextManager.doAuthenticate(ContextManager.java:837
)
 at org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341)
 at
org.apache.tomcat.facade.HttpServletRequestFacade.getRemoteUser(HttpServletR
equestFacade.java:251)
 at
org.apache.cocoon.environment.http.HttpRequest.getRemoteUser(HttpRequest.jav
a:129)
 at org.apache.cocoon.Cocoon.debug(Cocoon.java:374)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:422)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:489)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 at java.lang.Thread.run(Thread.java:498)

can anyone help me to fix that problem ?
Thanks,
Maurice


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

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




FW: newbie question: (XML->XSLT) cached -> session logic -> browser??

2001-08-09 Thread Karl Oie

Thank you very much, i will try this now (just have to read about XSP and
sessions first :-)...

Just a final question about C2 as it seems you know about it's inner
working. The class that gets created as a cache for my largefile.xml
document. does it contain my entire document? (since i could delete the
original file...) is it keept in memory? I would have to buy some more ram
chips i guess ;-)


mvh karl


On Thu, 9 Aug 2001, Karl Oie wrote:

> i think i understand, but won't this put a lot of processing on the
server?
> the toc.xsl takes about 3 minutes to generate. if i apply the logic in the
> XSP page the page will have to process the entire XML document each time?

Well not exactly.
The entire document gets processed ONLY when you ask the page for
the first time.
A class is generated then, consisting of your toc.xsl applied to
the original document.
If your xsp file was empty, the result would be a java-file which produces
your XML document as SAX events. You COULD delete your xml file once
the java file is generated, because it is not needed anymore (but you
shouldn't because cocoon depends on the file to be there ;)

So basically your xml document is replaced by code that fires SAX
events to the contenthandler (the first stylesheet in your pipeline).

Therefore, everytime your page gets requested the cached class file
gets called.

Your xml page will not be entirely passed through the pipeline,
because not all the code that fires the SAX events get called.

I hope you understand..
You might want to try this out with a small xml file, consisting
of only 2 tags, and a simple if-then-else statement depending
on a query parameter 'section=one' or 'two'.
Check the generated source file, it should be
in tomcats 'work' dir under
$TOMCAT_HOME/work/localhost%F8080/[servlet-zone]/org/apache/www/..._xml.java
that should clarify it for you (search for the 'generate' function).

There is another way to accomplish this. This is done as follows:
let your XSP page add an XML tag in the result, for instance
if ()
{ 
  

  
}
else 
 

and let your stylesheet (NOT toc.xsl :)) check for that tag,
and then process some part of your input xml file.
This way, the document WILL get parsed EVERY time, ENTIRELY.
THis is the slow and ugly way.

So use XSP and it will be fast ;)

(btw: i've coded my own cocoon clone with XSP which is a lot faster
than cocoon, simply because it is not as modular as cocoon. That's
why I understand cocoon so well :))

Hope this helps, if not, feel free to ask.

> 
> mvh karl
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 9. august 2001 18:15
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: newbie question: (XML->XSLT) cached -> session logic ->
> browser??
> 
> 
> 
> Just create an XSP page,
> with a template matching the root element of your xml page.
> Then do some if-then-else based on your session.
> In each 'if' body you do something like this:
> 
>   if (some_session_based_expression)
>   {
>   
>   }
>   else if ()
> 
> 
> The template 'henk' is inserted in the place of the call.
> If it just consists of content, it looks like this:
> 
> 
>   
> 
>   
> 
> 
> This way you get 1 producer/generator, which can produce all the
> different pages you want (that is, sections of your XML document)
> based on some viariables in the session.
> 
> 
> I use this technique to validate users:
> 
> The XML document:
> 
>   
>   
> 
>   
>   
>  
>   
> 
>
> The xsp page:
>
> 
>   
> if (userInGroup(""))
> {
>   
>   
> 
> }
> else
> {
>   
> 
> 
> }
>   
>
> 
>
>
> The UserInGroup checks the session for a user object, standard code..
>
> Hope this helps,
>
>   Kenney Westerhof
>
> On Thu, 9 Aug 2001, Karl Oie wrote:
>
> > Hi, im pretty new to cocoon2 so i need some advice about the best
aproach
> > for my problem;
> >
> > I got a quite large XML file which i use a XSL stylesheet to extract
only
> > parts of, but the XML file might change so i set this up as the
generator.
> >
> > 
> > 
> > 
> >
> > ... perform logic on the result based on sessions ...
> >
> > 
> > 
> >
> > Then based on the the user's session state i want to perform logic on
the
> > extract, to hide and show elements (this is a session based toc).
> >
> > What can i use to do this, a XSP, JSP, write a new
> > generator/transformer/serializer ?
> >
> > Is it possible to place session handling in a custom serializer? is this
a
> > job for a transformer, and will i then have to implement it myself and
is
> it
> > then possible to add session handling?
> >
> > Should i create a custom generator, if so how to implement caching and
> > session handling?
> >
> > I'm quite good at java, but i'm new to cocoon and need some pointers in
> the
> > right direction.
> >
> > in advance thanks!
> >
> > mvh Karl
> >
> >
> > ---

OT: Tomcat version [was Re: Fw: RE: C1 to C2]

2001-07-16 Thread Arnaud Vandyck

On Mon, 16 Jul 2001 12:58:36 +0300, Andre Juffer <[EMAIL PROTECTED]> wrote:

> Arnaud,
> 
> just wondering, do you have a setup with tomcat3 or tomcat4. I am
> currently playing with apache1.3-tomcat4-cocoon2, but it seems that the
> way to get apache 1.3 and tomcat4 working together is different than the
> way this is carried out for apache1.3 and tomcat3.

Andre,

I use Tomcat 3.3. I tried to get Tomcat4 but had some problems to make
it work with Apache.

Regards,

--Arnaud


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

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




Re: OT: Tomcat version [was Re: Fw: RE: C1 to C2]

2001-07-16 Thread Andre Juffer

Arnaud Vandyck wrote:
> 
> On Mon, 16 Jul 2001 12:58:36 +0300, Andre Juffer <[EMAIL PROTECTED]> wrote:
> 
> > Arnaud,
> >
> > just wondering, do you have a setup with tomcat3 or tomcat4. I am
> > currently playing with apache1.3-tomcat4-cocoon2, but it seems that the
> > way to get apache 1.3 and tomcat4 working together is different than the
> > way this is carried out for apache1.3 and tomcat3.
> 
> Andre,
> 
> I use Tomcat 3.3. I tried to get Tomcat4 but had some problems to make
> it work with Apache.

OK, I had also problems. I cannot really find any clear documentation on
this. I will go back to tomcat 3.3.

Thanks,
Andre


> 
> Regards,
> 
> --Arnaud
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>

-- 
Andre H. Juffer  | Phone: +358-8-553 1683
The Biocenter and| Fax: +358-8-553-1141
the Dep. of Biochemistry | Email: [EMAIL PROTECTED]
University of Oulu, Finland  | WWW:
http://www.biochem.oulu.fi/research.html

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

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