RE: [C2] with Tomcat 3.2.1 under Solaris 2.6

2001-07-31 Thread Bentley, Tim

Ok - got it working!

Over the weekend, our sysadmin installed all the correct patches to bring
Solaris up to the spec required for Java 1.3.0.  Predictably, this made no
difference.  However, today we installed Java 1.3.1, and that made the
difference - straight away Cocoon started working, without even having to
blow away the work directory.  This strengthens my belief that it was
something to do with the class loader - presumably there was something dodgy
about the way the low level file searching, path resolution or similar was
working on Solaris which has changed in 1.3.1.


Regards,


Tim

 -Original Message-
 From: Bentley, Tim 
 Sent: Tuesday, 31 July 2001 10:07
 To: [EMAIL PROTECTED]
 Subject: RE: [C2] with Tomcat 3.2.1 under Solaris 2.6
 
 
 Cass -
 
  good point.  unfortunately i can't say for sure, but i think you'll
  debug it by trying to compile the files command line (at 
 least that's
  how i did).
  
 
 Alas, that was one of the first things I tried - the compilation works
 perfectly, with no errors at all.
 
 I am 99% sure this is a classloader issue.  I have added more 
 logging lines
 and recompiled Cocoon, and the path and class name being passed to the
 loader look correct.  I am currently working through the layers of
 classloader code, trying to see where things could be going 
 wrong.  Cocoon
 is using a URLClassLoader, so I guess it is possible that the 
 path is being
 incorrectly resolved.  Another faint possibility is that the 
 repository path
 is not being correctly added to the class loader search list. 
  However,
 since all of this works in other environments, and in other 
 peoples' Solaris
 environments, my main hope is that I'll find something to point to the
 'real' issue, which is most likely to be some sort of 
 configuration problem.
 
 
 Regards,
 
 
 Tim
 
 -
 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]




Connecting database and XML pages

2001-07-31 Thread annemarie . hartvigsen

Hi,

I have a mySQL database. I also have a web server: Apache-Tomcat-Cocoon. I
want to make web pages written in XML, transformed to HTML or WML by the
help of Cocoon. These pages will serve as an interface to the database.

What is the best way to connect the database with the XML pages? My users
should be able to read and write in the database.

Any tips, suggestions, experiences and examples are greatly appreciated!

/Anne Marie



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




SV: Repost of JDBC ODBC problem

2001-07-31 Thread Rune Sandnes

 From: Berin Loritsch [mailto:[EMAIL PROTECTED]]
 If you are trying to connect to MS SQL Server, there are a 
 number of third party JDBC drivers that I would highly recommend you
use.

Any partical JDBC drivers you would recommend?
We have tried Merant's driver, which works nicely, but seems a bit...
expensive.


Regards,
Rune,
Trondheim, Norway

-
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: future plans?

2001-07-31 Thread Piroumian, Konstantin

Hi!

 Hi,
 does anybody knows if i18n will be extended in the future
 or has some undocumented features?

Currently, I am busy with my work project and don't have much time for
i18nTransformer. It's open source and you are free to extend it. I hope to
be a little more free in a week or two then I can do it myself.

 I have some needs and I wonder that I'm the first one (?)
 who think and ask about this:

No, I thought of all this features when I was implementing the transformer,
but it seems that not many people is interested in it and you are the first
or the second one who asked about new features.

 1) I need more control over i18n:date/ e.g. I need a parameter
to specify DateFormat.SHORT, MEDIUM, LONG or FULL.

Ok.

 2) I would like to have more control over date and time: Make it
separate, for instance as date the actual date
but the time hard wired.
So it should give a parameter for selecting analog to java:
getDateInstance(), getTimeInstance() or getDateTimeInstance()

Yes, a pair of tags can be added for that:

i18n:datetime /
i18n:time /

 2) In the same page I need more than one currency.
I think about a parameter to specify a different then the default
locale.

Yes, I thought of this too. I think that every i18n element must have a
possibility to specify its own locale:

i18n:text locale=ru /
i18n:currency locale=en_US /

 I know that I can do this inside a xsp but ...

You can do it also in XSLT and in some cases it would be better. E.g. for
currency format you can use  xsl:decimal-format name=us
decimal-separator=. grouping-separator=,/ declaratation, then use it
like this:

xsl:value-of select=format-number(price, '$#,##0.00', 'us')/

The problem with i18n tranformer is that you cannot use objects as
arguments. This is not possible now with a transformer:

i18n:currency value=java:new Date() / or i18n:currency
value=java:dateVariable /

Anyway, thank you for your suggestions and feel free to contact me for any
questions about i18n transformer.

P.S. Marcus Crafter [EMAIL PROTECTED] is now working on
the i18n transformer, i18n dictionaries and locale selection, so I think
that you can ask him about this too.


 Regards,
 Michael


Best regards,

Konstantin Piroumian
Software engineer

Protek Flagship LLC
Phone: + 7 095 795 0520 (add. 1288)
Fax: + 7 095 795 0525
E-mail: [EMAIL PROTECTED]
http://www.protek.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]




Re: Cocoon and Databases

2001-07-31 Thread java guru

Hi.,
  C2(or any java stuff) need something called
jdbc(java database connectivity) driver to connect to
any database. This is similar in concept to ODBC
driver enabling the applications access database. 

Various databases have their own specific java jdbc
drivers. But all the databases supporting odbc have
one common jdbc driver developed and it is JDBC-ODBC
driver since it is java jdbc layer over odbc
driver...Follow the steps

1. Create odbc entry on ur windows machine for ur
ms-access db

2. Know how to specify a jdbc driver information on c2

3. Read little bit about jdbc-odbc driver(all u need
is proper driver name, url(nothing but a string
specifying link to ur odbc stuff), user id/password is
u have set it up on odbc setup...

4. The interpreter you mentioned is nothing but the
jdbc-odbc driver and ships with your standard jdk by
sun and other vendors

If u still not able to get thru..drop in mail and i
will provide some example..

good luck

 --- Hewko, Doug [EMAIL PROTECTED] wrote:
 Hi! I would like to try the database example on the
 Cocoon2 default page. I
 have MS Access 2000 (standalone) installed. Where do
 I get an interpretter
 to communicate between my database and Cocoon2? I
 looked on Apache's Cocoon
 web site without any luck. I checked Microsoft but
 could find nothing to
 link to MS Access.
 
 Any other suggestions?
 

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

=
Thanks and have great day
srini


Do You Yahoo!?
For regular News updates go to http://in.news.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]




RE: xsl transfromation.

2001-07-31 Thread JEULIN Olivier

In this case, there's a problem with the body tag, opened in a template and
closed in another one.
There are also 3 (!) templates matching guide... It's useless, only the
1st or last one will be used (I don't remember if this is in the spec or
XSLT engine dependant)

I would advise you to use identation when writing templates. This kind of
error will be easier to track... (see discussion about xsl editing;
personnaly, I'm using cooktop -- it can also validate you stylesheets)

Also, don't expect too much of cocoon's error message: they're quite useless
as you can see here. Use a xml/xsl validator to find the right bug.

Olivier

 -Message d'origine-
 De : Kazi the P i R @ t {- [mailto:[EMAIL PROTECTED]]
 Envoyé : mardi 31 juillet 2001 06:24
 À : [EMAIL PROTECTED]
 Cc : [EMAIL PROTECTED]; Lim Huat Heng
 Objet : xsl transfromation.
 
 
 System: Win 98
 Servlet Engine: Tomcat (standalone) 3.2.1
 XML Framework: Cocoon 1.8.2
 Trouble:
 I was just trying out an xsl transformaiton of a static xml page i
 created... but then when i called the page from the browser 
 the following
 error comes up -
 
 'org.apache.cocoon.processor.ProcessorException: Could not associate
 stylesheet to document:  error reading
 C:\Tomcat\webapps\cocoon\newProd\guide-html.xsl:
 org.xml.sax.SAXParseException: The element type xsl:template must be
 terminated by the matching end-tag /xsl:template.'
 
 I just checked the xsl:template.. issue it mentions.. and it 
 appears that
 all the tags were closed properly.
 
 The XSL file -
 
 ?xml version=1.0 ?
 xsl:stylesheet xmlns:xsl=http://www.w3c.org/1999/XSL/Transform;
 version=1.0
 html
 head
 titleA Guide to the Search Utility/title
 /head
 body
 xsl:template match=guide
 xsl:processing-instruction
 name=cocoon-formattype=text/html/xsl:processing-instruction
 table width=100% border=0
 tr
 td
 xsl:apply-template select=buttons/
 /td
 /tr
 /table
 /xsl:template
 xsl:template match=guide
 table width=100% border=0
 tr
 td
 xsl:apply-template select=how-to/
 /td
 /tr
 /table
 /xsl:template
 xsl:template match=guide
 table width=60% border=0 align=center valign=middle
 tr
 td
 xsl:apply-template select=contact/
 /td
 /tr/table
 /body
 /html
 /xsl:template
 xsl:template match=buttons
 xsl:for-each select=buttons[*]pimg border=0 align=left
 valign=middle
 xsl:attribute name=srcxsl:value-of 
 select=image//xsl:attribute
 /img
 xsl:vlaue-of select=text//p
 /xsl:for-each
 /xsl:template
 xsl:template match=how-to
 p
 xsl:apply-template select=description/
 /p
 /xsl:template
 xsl:template match=description
 ol
 xsl:for-each select=.
 li
 xsl:value-of select=./
 xsl:apply-template select=sub-point/
 /li
 /xsl:for-each
 /ol
 /xsl:template
 xsl:template match=subpoint
 ul
 xsl:value-of select=./
 /ul
 /xsl:template
 xsl:template match=contact
 pxsl:textform more information contact the person 
 below:/xsl:text/p
 p
 bxsl:value-of select=name//b
 /p
 p
 bxsl:value-of select=email//b
 /p
 /xsl:template
 /xsl:stylesheet
 
 My DTD -
 
 !ELEMENT guide (buttons,how-to,contact)
 !ELEMENT buttons (search,view,sort,warning,respond)
 !ELEMENT how-to (description+)
 !ELEMENT contact (name,email)
 !ELEMENT search (text, image)
 !ELEMENT view (text,image)
 !ELEMENT sort (text,image)
 !ELEMENT warning (text,image)
 !ELEMENT respond (text,image)
 !ELEMENT text (#PCDATA)
 !ELEMENT image (#PCDATA)
 !ELEMENT description (#PCDATA|sub-point)*
 !ELEMENT sub-point (#PCDATA)
 !ELEMENT name (#PCDATA)
 !ELEMENT email (#PCDATA)
 
 
 -
 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: SV: Repost of JDBC ODBC problem

2001-07-31 Thread Berin Loritsch

Rune Sandnes wrote:
 
  From: Berin Loritsch [mailto:[EMAIL PROTECTED]]
  If you are trying to connect to MS SQL Server, there are a
  number of third party JDBC drivers that I would highly recommend you
 use.
 
 Any partical JDBC drivers you would recommend?
 We have tried Merant's driver, which works nicely, but seems a bit...
 expensive.

With Microsoft, you should be used to expensive ;)

Honestly though, in house we have used Informix and Oracle in our projects.
Informix is pretty nice and the JDBC driver is blazingly fast.  The Oracle
driver is slower and does not handle BLOBs and CLOBs in a JDBC2.0 compatible
manner.

I haven't had the time or pleasure to mess with any of the other databases.

I really don't have a recommendation for you other than Merant--unless it
is possible to change database vendors.  Informix is on the affordable side,
but is a PITA to install correctly (esp. on NT).  PostgreSQL is also available
(for free I might add) and has a JDBC driver.

-
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: Cocoon and Databases

2001-07-31 Thread Berin Loritsch

Hewko, Doug wrote:
 
 Hi! I would like to try the database example on the Cocoon2 default page. I
 have MS Access 2000 (standalone) installed. Where do I get an interpretter
 to communicate between my database and Cocoon2? I looked on Apache's Cocoon
 web site without any luck. I checked Microsoft but could find nothing to
 link to MS Access.
 
 Any other suggestions?

Please don't use MS Access.

Microsoft will never lift a finger to support Java--so none of their databases
will have a JDBC driver.  The Cocoon website is not a place to find information
on drivers, so you are on your own to find a decent JDBC compliant driver for
MS Access.

There was also a recent discussion on this list regarding the JdbcOdbcBridge
driver that Sun provides in its JREs.  You can't really use that for technical
reasons that I really don't want to get into right now.

Here is my experience with Access in general, and why you should never develop
with it for serious solutions:

* MS Access allows you to be lazy, and will keep working even when the database
  is not set up correctly.  This means when you plan to move the database to a
  real RDBMS you will have to rework your database and ultimately your code.

* MS Access SQL is not standard--esp. concerning dates.  If you access custom
  code (aka modules) from Access SQL statements--you have to rewrite the query
  when you migrate.

* MS Access table structure is to easy to manipulate.  Many fledgling companies
  think that this is an asset--as did mine before I joined.  What this results
  in is each developer with a slightly different schema and code that won't work
  universally.

* MS Access has no security.  Anyone can access the data and manipulate it.  It's
  so called security layer is easy to circumvent and only serves to lend a false
  sense of security.

* MS Access cannot be centrally managed in an effective manner.  It is true that
  you can send out replicated databases--but in practice replecation has proven
  to be both unweildy and still does not address central management of the database.
  Central management is essential to web-based access.

-
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: Repost of JDBC ODBC problem

2001-07-31 Thread Stephen Elsner

My company has had success with the Sprinta driver, available at this web
site: www.inetsoftware.de
You won't believe the pricing --  it's great, and the product seems very
solid so far.



 -Original Message-
 From: Rune Sandnes [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, July 31, 2001 3:11 AM
 To:   [EMAIL PROTECTED]
 Subject:  SV: Repost of JDBC ODBC problem
 
  From: Berin Loritsch [mailto:[EMAIL PROTECTED]]
  If you are trying to connect to MS SQL Server, there are a 
  number of third party JDBC drivers that I would highly recommend you
 use.
 
 Any partical JDBC drivers you would recommend?
 We have tried Merant's driver, which works nicely, but seems a bit...
 expensive.
 
 
 Regards,
 Rune,
 Trondheim, Norway
 
 -
 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]
 
 
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]




ESQL can't connect to PostgreSQL

2001-07-31 Thread Hubert NEOtyk Iwaniuk



Hi,

 I have PostgreSQL 7.1 up and 
running on my Debian BOX,
JDBC driver (postgresql.jar) is in 
/usr/share/java, that is location
where all jars are 
placed.

 Cocoon I v1.8.2, JServ v1.1.2, 
JDK 1.1.8v1.3.

I have searched archive, 
found similar problems, but non of them
told me why i can't connect to db.

Thanks,
 Hubert NEOtyk 
Iwaniuk.

---Ausgehende Mail ist zertifiziert 
virenfrei.Uberpruft durch AVG Antivirus System (http://www.grisoft.com/de).Version: 
6.0.265 / Virendatenbank: 137 - Erstellungsdatum: 
2001-07-18

?xml version=1.0?
!-- edited with XML Spy v3.5 NT (http://www.xmlspy.com) by Hubert NEOtyk Iwaniuk (private) --
?cocoon-process type=xsp?
?cocoon-process type=xslt?
?xml-stylesheet type=text/xsl href=esql.xsl?
xsp:page xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:esql=http://apache.org/cocoon/SQL/v2;
	page
		esql:connection
			esql:driverorg.postgresql.Driver/esql:driver
			esql:dburljdbc:postgresql://localhost:5432/db_name/esql:dburl
			esql:usernamedb_user/esql:username
			esql:passworddb_pass/esql:password
			esql:execute-query
esql:queryselect ID_hotel,Name_hotel from Hotel/esql:query
esql:results
	headerheader info/header
	esql:row-results
		hotel
			id
esql:get-int column=ID_hotel/
			/id
			name
esql:get-string column=Name_hotel/
			/name
		/hotel
	/esql:row-results
	footerfooter info/footer
/esql:results
			/esql:execute-query
		/esql:connection
	/page
/xsp:page








  
  

  


  
Cocoon 
1.8.2

  

Error found handling the request.
java.lang.RuntimeException: Error opening connection to dburl: jdbc:postgresql://localhost:5432/db_name
	at _home._huberti._public_html._esql.populateDocument(_esql.java)
	at org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:97)
	at org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:527)
	at org.apache.cocoon.Engine.handle(Engine.java:384)
	at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:311)
	at org.apache.jserv.JServConnection.processRequest(JServConnection.java:317)
	at org.apache.jserv.JServConnection.run(JServConnection.java:188)
	at java.lang.Thread.run(Thread.java)


  Warning: this page 
has been dynamically generated. 

Copyright (c) 1999-2001 The Apache XML Project.All rights 
reserved. 


-
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: SV: Repost of JDBC ODBC problem

2001-07-31 Thread Kevin Sonney

On Tue, Jul 31, 2001 at 08:54:05AM -0400, Berin Loritsch spoke thusly:
 Honestly though, in house we have used Informix and Oracle in our projects.
 Informix is pretty nice and the JDBC driver is blazingly fast.  The Oracle
 driver is slower and does not handle BLOBs and CLOBs in a JDBC2.0 compatible
 manner.

Actually, I've used the oracle drivers and had them treal sblobs and
clobs in a JDBC compliant manner. I may be using a newer JDBC Driver
than you did, though, as there were changes between the 7.x and
current 8.x drivers.

 I haven't had the time or pleasure to mess with any of the other databases.

I have over the past few years *grin* See below.

 I really don't have a recommendation for you other than Merant--unless it
 is possible to change database vendors.  Informix is on the affordable side,
 but is a PITA to install correctly (esp. on NT).  PostgreSQL is also available

As is MySQL, but MySQL doesn't support a lot of things you're used to
in M$SQL, Oracle, and Postgres. JDBC Support through two community
built drivers.

DB/2 is a reasonable replacement, although expensive, and IMHO, much
more robust than both M$ and PostgreSQL.  JDBC Support is excellent.

Oracle is the king, and is almost an OS unto itself. But we knew that
*grin*

I have heard nothing but good things about Informix. I have yet to try
it, but I know Oracle DBAs who think Informix is the second coming. I
haven't futzed with it and JDBC drivers yet.

HTH

-- 
+---+
| Kevin Sonney[EMAIL PROTECTED] |
| Systems Programmerwww.webslingerZ.com |
+---+

The weakest link in any civil rights case is always the
defendant. Imagine being a lawyer and getting a call from me. That's why I
try to, uh, behave myself. - Hunter S. Thompson


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




map:part sequence of execution

2001-07-31 Thread java guru

Hi.,
  I was wondering if the map:part s of map:aggregate
will execute in the sequence they are mentioned or
not?

TIA

=
Thanks and have great day
srini


Do You Yahoo!?
For regular News updates go to http://in.news.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]




Re: xinclude before xslt, how retrieve the url ?

2001-07-31 Thread Ludovic Maitre

Thanks for your answer, the 2d solution is what i want (i don't want to
repeat the href attribute twice).

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02
PS : it's 39 celsius here, hopefully the sea is not far ;-)

-
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: ESQL can't connect to PostgreSQL

2001-07-31 Thread Arnaud Vandyck

 Hi,
 
 I have PostgreSQL 7.1 up and running on my Debian BOX,
 JDBC driver (postgresql.jar) is in /usr/share/java,  that is location
 where all jars are placed.
 
 Cocoon I v1.8.2, JServ v1.1.2, JDK 1.1.8v1.3.
 
 I have searched archive, found similar problems, but non of them
 told me why i can't connect to db.

1) put /usr/share/java/postgresql.jar in the classpath of JServ

2) It is recommended to use mod_jk and Tomcat instead of JServ

3) Debian packages are available for Tomcat (and Cocoon -12)
   (Woody)

4) You can also install JDK1.3 from BlackDown, they also have debian
packages (IBM-JDK 1.3 is also available but not in .deb)

5) Please, do not post in html

--Arnaud

-
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: SV: Repost of JDBC ODBC problem

2001-07-31 Thread Berin Loritsch

Berin Loritsch wrote:
 
 To give an overall example of what I mean, I have a program called DataXfer
 that manipulates data and moves it between the filesystem and the database
 or between databases.  When I was using the JDBC-ODBC bridge, the transfer
 took over an hour.  When I switched to the Informix JDBC driver, the transfer
 took less than 5 minutes.  The ODBC driver has much more latency, and the
 overhead of the JDBC-ODBC driver adds that much more to the query.

Oh, I thought it was only fair to mention that the ODBC version went to Access
which is a poor performer anyway.  The combination of the ODBC Layer and the
slower database caused such a large difference in performance times.

ODBC access with Informix is still slower--adding a couple minutes to the Informix
transfer time.

When the application was refactored to take advantage of PreparedStatements,
the transfer was done in half the time.

-
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: part sequence of execution

2001-07-31 Thread Vadim Gritsenko

 -Original Message-
 From: java guru [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 31, 2001 10:45 AM
 To: cocoon users
 Subject: map:part sequence of execution
 
 
 Hi.,
   I was wondering if the map:part s of map:aggregate
 will execute in the sequence they are mentioned or

Yes.

Vadim

 not?
 
 TIA
 
 =
 Thanks and have great day
 srini
 


-
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: ESQL can't connect to PostgreSQL

2001-07-31 Thread Brian P Millett

Hubert NEOtyk Iwaniuk wrote:

 Hi, I have PostgreSQL 7.1 up and running on my Debian BOX,JDBC driver 
(postgresql.jar) is in
 /usr/share/java,  that is locationwhere all jars are placed. Cocoon I v1.8.2, 
JServ v1.1.2,
 JDK 1.1.8v1.3. I have searched archive, found similar problems, but non of 
themtold me why i
 can't connect to db. Thanks,Hubert NEOtyk Iwaniuk.

What are the errors that you are seeing?

As to the advise given:
1) put /usr/share/java/postgresql.jar in the classpath of JServ

2) It is recommended to use mod_jk and Tomcat instead of JServ

3) Debian packages are available for Tomcat (and Cocoon -12)
   (Woody)

4) You can also install JDK1.3 from BlackDown, they also have debian
packages (IBM-JDK 1.3 is also available but not in .deb)

5) Please, do not post in html


ONLY advice 1  5 are valid.  Ignore 2,3 4 as they have nothing to do with your 
problem.

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




Weblogic6.0 and Cocoon 1.8.2

2001-07-31 Thread Gustavo Mejia

Hello Everyone,

Sorry for the trouble, but I was reading the Mail Achive, and my problem
is already there, but I follow every step described and I can't make it
work, I run
http://localhost:7001/cocoon/Cocoon.xml and it works fine, but when I
try other sample appear the next message.

java.lang.RuntimeException: Cannot access non-file/war resources
 at org.apache.cocoon.Utils.getBasename(Utils.java:277)
 at
org.apache.cocoon.producer.ProducerFromFile.getDocument(ProducerFromFile.java:76)

 at org.apache.cocoon.Engine.handle(Engine.java:359)
 at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
 at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:213)

 at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1265)

 at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1631)

 at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

I am using

weblogic6.0
Cocoon 1.8.2
NT


If someone knows how to fix this problem give the tip !!

Thanks a lot !!

--
Gustavo Mejía Mora
INFOTEC
Tel: 5624 28 00
Ext: 253



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




xsp: strange Language Exception

2001-07-31 Thread Enke Michael

Hi folks,
I have a question which I cann't answer myself and maybe
it is an error I have found?

Lock at this few lines:

?xml version=1.0 encoding=UTF-8?
 
xsp:page language=java
  xmlns:xsp=http://apache.org/xsp;
  xmlns:i18n=http://apache.org/cocoon/i18n/2.0; encoding=UTF-8

 
page
 xsp:logic
   String result = _d;
   if(result.equals(_d)) {
 result
  i18n:date/
 /result
   }
   else {
 result
  xsp:exprresult/xsp:expr
 /result
   }
 /xsp:logic
/page
/xsp:page

It is without much sense but I wanted to concentrate on the effect.
In the if and else branch (in real life I have much more else if
branches)
I must repeat the result and /result elements in each branch.

My idea was to put only one result before xsp:logic and
only one /result behind /xsp:logic
But than I get these Exception:

DEBUG   99660   [cocoon  ] (/calypso/test_error)
Thread-22/ProgramGeneratorImpl: Language Exception
org.apache.cocoon.components.language.LanguageException: Error compiling
test_error_xsp:
Line 107, column 6:  Invalid expression statement.
Line 107, column 14:  ';' expected.
at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:203)
at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:140)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:276)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:184)
at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:153)
at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:146)
...

Does anybody know if this is my problem because I didn't read deep
enough
into the documentation or is this a cocoon problem?

Regards,
Michael

-
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 Language Exception

2001-07-31 Thread Vadim Gritsenko

Do you have this problem with latest CVS version?

I think that this is already fixed in CVS.

Thanks,
Vadim

 -Original Message-
 From: Enke Michael [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 31, 2001 3:56 PM
 To: [EMAIL PROTECTED]
 Subject: xsp: strange Language Exception
 
 
 Hi folks,
 I have a question which I cann't answer myself and maybe
 it is an error I have found?
 
 Lock at this few lines:
 
 ?xml version=1.0 encoding=UTF-8?
  
 xsp:page language=java
   xmlns:xsp=http://apache.org/xsp;
   xmlns:i18n=http://apache.org/cocoon/i18n/2.0; encoding=UTF-8
 
  
 page
  xsp:logic
String result = _d;
if(result.equals(_d)) {
  result
   i18n:date/
  /result
}
else {
  result
   xsp:exprresult/xsp:expr
  /result
}
  /xsp:logic
 /page
 /xsp:page
 
 It is without much sense but I wanted to concentrate on the effect.
 In the if and else branch (in real life I have much more else if
 branches)
 I must repeat the result and /result elements in each branch.
 
 My idea was to put only one result before xsp:logic and
 only one /result behind /xsp:logic
 But than I get these Exception:
 
 DEBUG   99660   [cocoon  ] (/calypso/test_error)
 Thread-22/ProgramGeneratorImpl: Language Exception
 org.apache.cocoon.components.language.LanguageException: Error compiling
 test_error_xsp:
 Line 107, column 6:  Invalid expression statement.
 Line 107, column 14:  ';' expected.
 at
 
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:203)
 at
 
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage
 .java:140)
 at
 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:276)
 at
 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:184)
 at
 
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:153)
 at
 
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:146)
 ...
 
 Does anybody know if this is my problem because I didn't read deep
 enough
 into the documentation or is this a cocoon problem?
 
 Regards,
 Michael
 
 -
 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]




Very beginner question

2001-07-31 Thread Duane Kehoe

I have recently been shouldered with the task of researching and 
evaluating java report writing tools for my company and came across 
Cocoon.  Being that my background is in Linux I obviously want an open 
source solution rather than a propietary one.
I have read the documentation fairly thoroughly and keep coming back to 
this unanswered question - Is it possible to use the Cocoon APIs in 
stand alone apps to create output be it HTML(viewed directly by client's 
browser), text, or PDF(not the kind that gets you in trouble with the 
DMCA !)  without having a server side process running?
I realize this is an extremely newbie land question but would really 
appreciate any help/examples, thanks

-- 

Long live the Penguin!!!

Duane Kehoe Phone # 414.908.1814
Programmer/AnalystFax # 414.908.1814
Weyco Group, Inc.   Email: [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] with Tomcat 3.2.1 under Solaris 2.6

2001-07-31 Thread Bentley, Tim

Fred -

The problem for me was that a couple of people had posted saying they had
the same symptoms, but that they had tried JDK 1.3.1 to no effect.  Whether
there is something else that they had not done, I don't know.

Anyway, as you say, this belongs in the FAQ or installation notes.

Kind of amusing that Solaris seems to be one of the least reliable Java
platforms



Tim



 -Original Message-
 From: Fred Tsang [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 31 July 2001 20:50
 To: '[EMAIL PROTECTED]'
 Subject: RE: [C2] with Tomcat 3.2.1 under Solaris 2.6
 
 
 Tim,
 
 I have made numerous postings to this group suggesting there 
 is something
 wrong with the Jdk 1.3.0 and 1.3.0_01 run times.  I could not 
 get cocoon
 running at all on my Solaris 2.8 system until I changed to 
 Jdk 1.3.1 (and I
 even used RC1).  Can someone please put this in the cocoon 
 faq or somewhere
 on the cocoon2 web site?
 
 Apologies for not responding earlier, but there is a lot of 
 mail in this
 list.
 
 Cheers,
 Fred
 
 -Original Message-
 From: Bentley, Tim [mailto:[EMAIL PROTECTED]]
 Sent: 31 July 2001 07:30
 To: [EMAIL PROTECTED]
 Subject: RE: [C2] with Tomcat 3.2.1 under Solaris 2.6
 
 
 Ok - got it working!
 
 Over the weekend, our sysadmin installed all the correct 
 patches to bring
 Solaris up to the spec required for Java 1.3.0.  Predictably, 
 this made no
 difference.  However, today we installed Java 1.3.1, and that made the
 difference - straight away Cocoon started working, without 
 even having to
 blow away the work directory.  This strengthens my belief that it was
 something to do with the class loader - presumably there was 
 something dodgy
 about the way the low level file searching, path resolution 
 or similar was
 working on Solaris which has changed in 1.3.1.
 
 
 Regards,
 
 
 Tim
 
  -Original Message-
  From: Bentley, Tim 
  Sent: Tuesday, 31 July 2001 10:07
  To: [EMAIL PROTECTED]
  Subject: RE: [C2] with Tomcat 3.2.1 under Solaris 2.6
  
  
  Cass -
  
   good point.  unfortunately i can't say for sure, but i 
 think you'll
   debug it by trying to compile the files command line (at 
  least that's
   how i did).
   
  
  Alas, that was one of the first things I tried - the 
 compilation works
  perfectly, with no errors at all.
  
  I am 99% sure this is a classloader issue.  I have added more 
  logging lines
  and recompiled Cocoon, and the path and class name being 
 passed to the
  loader look correct.  I am currently working through the layers of
  classloader code, trying to see where things could be going 
  wrong.  Cocoon
  is using a URLClassLoader, so I guess it is possible that the 
  path is being
  incorrectly resolved.  Another faint possibility is that the 
  repository path
  is not being correctly added to the class loader search list. 
   However,
  since all of this works in other environments, and in other 
  peoples' Solaris
  environments, my main hope is that I'll find something to 
 point to the
  'real' issue, which is most likely to be some sort of 
  configuration problem.
  
  
  Regards,
  
  
  Tim
  
  
 -
  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: Very beginner question

2001-07-31 Thread Vadim Gritsenko

It is possible using Cocoon2 and its command line interface (CLI).
Download  unpack cocoon, then launch run.sh or run.bat,
and follow instructions.

Vadim

 -Original Message-
 From: Duane Kehoe [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 31, 2001 4:40 PM
 To: [EMAIL PROTECTED]
 Subject: Very beginner question
 
 
   I have recently been shouldered with the task of researching and 
 evaluating java report writing tools for my company and came across 
 Cocoon.  Being that my background is in Linux I obviously want an open 
 source solution rather than a propietary one.
   I have read the documentation fairly thoroughly and keep coming back to 
 this unanswered question - Is it possible to use the Cocoon APIs in 
 stand alone apps to create output be it HTML(viewed directly by client's 
 browser), text, or PDF(not the kind that gets you in trouble with the 
 DMCA !)  without having a server side process running?
   I realize this is an extremely newbie land question but would really 
 appreciate any help/examples, thanks
 
 -- 
 
 Long live the Penguin!!!
 
 Duane Kehoe Phone # 414.908.1814
 Programmer/AnalystFax # 414.908.1814
 Weyco Group, Inc.   Email: [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]
 
 

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.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]




Re: Very beginner question

2001-07-31 Thread Jeff Turner

For a real-world example of how to use Cocoon to build a static site,
have a look at Avalon's doc system. It's driven by Ant, handles DocBook
+ Stylebook, *very* flexible. Hats off to Berin for creating it.

--Jeff

On Tue, Jul 31, 2001 at 09:18:30PM -0400, Vadim Gritsenko wrote:
 It is possible using Cocoon2 and its command line interface (CLI).
 Download  unpack cocoon, then launch run.sh or run.bat,
 and follow instructions.
 
 Vadim
 
  -Original Message-
  From: Duane Kehoe [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 31, 2001 4:40 PM
  To: [EMAIL PROTECTED]
  Subject: Very beginner question
  
  
  I have recently been shouldered with the task of researching and 
  evaluating java report writing tools for my company and came across 
  Cocoon.  Being that my background is in Linux I obviously want an open 
  source solution rather than a propietary one.
  I have read the documentation fairly thoroughly and keep coming back to 
  this unanswered question - Is it possible to use the Cocoon APIs in 
  stand alone apps to create output be it HTML(viewed directly by client's 
  browser), text, or PDF(not the kind that gets you in trouble with the 
  DMCA !)  without having a server side process running?
  I realize this is an extremely newbie land question but would really 
  appreciate any help/examples, thanks
  
  -- 
  
  Long live the Penguin!!!
  
  Duane Kehoe Phone # 414.908.1814
  Programmer/AnalystFax # 414.908.1814
  Weyco Group, Inc.   Email: [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]
  
  
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.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]




Re: xsl transfromation.

2001-07-31 Thread Kazi the P i R @ t {-


well, there are three children of the 'guide' root. And i want to have them
all printed out in html along with the rest of their children. I have
restructured my xsl (included below). now what happens is the values between
the tags are printed, the output is as follows:
---output of
guide.xml---
---
|type=text/html
|
|
|
|0left
|
| (a bullet appears in this portion, i suspect because of my
ulli/li/ul eleements)  |
|for more information contact the person below:
|



My new xsl:

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

xsl:template match=guide
 xsl:processing-instruction
name=cocoon-formattype=text/html/xsl:processing-instruction
 html
  head
   titleA Guide to the Search Utility/title
   /head
body style=font-family: Arial;
  table width=90% border=0 align=center valign=middle
  tr
td
   xsl:apply-templates/
/td
  /tr
  /table
/body
 /html
/xsl:template

xsl:template match=buttons
  pxsl:apply-templates//p
/xsl:template

xsl:template match=search|view|sort|warning|respond
  xsl:element name=img
  xsl:attribute name=border0/xsl:attribute
  xsl:attribute name=alignleft/xsl:attribute
   xsl:attribute name=srcxsl:copy-of select=image//xsl:attribute
  /xsl:element
  xsl:vlaue-of select=text/
/xsl:template

xsl:template match=how-to
pxsl:apply-templates select=description//p
/xsl:template

xsl:template match=how-to
p
xsl:apply-templates select=description/
/p
/xsl:template

xsl:template match=description
 ul
 xsl:for-each select=.
 li
   xsl:apply-templates select=text()|description[subpoint]/
 /li
 /xsl:for-each
 /ul
/xsl:template

xsl:template match=text()
  xsl:value-of select=text()/
/xsl:template

xsl:template match=description[subpoint]
br/
xsl:value-of select=./
/xsl:template

xsl:template match=contact
pxsl:textfor more information contact the person
below:/xsl:text/p
pbxsl:value-of select=name//b/p
pbxsl:value-of select=email//b/p
/xsl:template

/xsl:stylesheet

My reference:
-
-XML Developer's Guide : Fabio Arciniegas (Osborne. McGraw Hill)
-Introduction to Cocoon, XML XSL by Olivier Eymere
http://www.devshed.com/Client_Side/XML/INTCXX/page7.html
-http://www.cs.rpi.edu/~puninj/XMLJ/classes/class7/Overview-1.html

  System: Win 98
  Servlet Engine: Tomcat (standalone) 3.2.1
  XML Framework: Cocoon 1.8.2

Helplessly wAiting~
 -Kazi-

- Original Message -
From: JEULIN Olivier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 31, 2001 8:24 PM
Subject: RE: xsl transfromation.


 In this case, there's a problem with the body tag, opened in a template
and
 closed in another one.
 There are also 3 (!) templates matching guide... It's useless, only the
 1st or last one will be used (I don't remember if this is in the spec or
 XSLT engine dependant)

 I would advise you to use identation when writing templates. This kind of
 error will be easier to track... (see discussion about xsl editing;
 personnaly, I'm using cooktop -- it can also validate you stylesheets)

 Also, don't expect too much of cocoon's error message: they're quite
useless
 as you can see here. Use a xml/xsl validator to find the right bug.

 Olivier

  -Message d'origine-
  De : Kazi the P i R @ t {- [mailto:[EMAIL PROTECTED]]
  Envoyé : mardi 31 juillet 2001 06:24
  À : [EMAIL PROTECTED]
  Cc : [EMAIL PROTECTED]; Lim Huat Heng
  Objet : xsl transfromation.
 
 
  Trouble:
  I was just trying out an xsl transformaiton of a static xml page i
  created... but then when i called the page from the browser
  the following
  error comes up -
 
  'org.apache.cocoon.processor.ProcessorException: Could not associate
  stylesheet to document:  error reading
  C:\Tomcat\webapps\cocoon\newProd\guide-html.xsl:
  org.xml.sax.SAXParseException: The element type xsl:template must be
  terminated by the matching end-tag /xsl:template.'
 
  I just checked the xsl:template.. issue it mentions.. and it
  appears that
  all the tags were closed properly.
 
  The XSL file -
 
  ?xml version=1.0 ?
  xsl:stylesheet xmlns:xsl=http://www.w3c.org/1999/XSL/Transform;
  version=1.0
  html
  head
  titleA Guide to the Search Utility/title
  /head
  body
  xsl:template match=guide
  xsl:processing-instruction
  name=cocoon-formattype=text/html/xsl:processing-instruction
  table width=100% border=0
  tr
  td
  xsl:apply-template select=buttons/
  /td
  /tr
  /table
  /xsl:template
  xsl:template match=guide
  table width=100% border=0
  tr
  td
  xsl:apply-template select=how-to/
  /td
  /tr
  /table
  /xsl:template
  xsl:template match=guide
  table width=60% border=0 align=center valign=middle
  tr
  td
  xsl:apply-template select=contact/
  /td
  /tr/table
  /body
  /html
  

any success running under a java security manager?

2001-07-31 Thread milton

Has anyone had any success running cocoon 1.8.2 under a java security
manager?

cocoon 1.8.2
tomcat 3.2.2
jdk 1.3.0

All of cocoon jars are installed in the tomcat/lib directory which has
ALL java security permissions.  The test site has a cocoon context
pointing to the cocoon directory within the site's root directory
hierarchy.  The java permissions for the test site has full file.io
(r,w,d) permissions from the root directory on.  I have the samples
loaded.  I run a few samples and everything is fine.  Then I run an app
that had to be compiled into a class.  When that class is loaded, I'm
getting file permission read errors on a file that this class reads to
do it's thing.  This file is within the root hierarchy.  I am stumped.
Does anyone know what's up here?  The repository which is where the
generated class file resides is within the root hierarchy.  Does anyone
know what code base these created classes run under?  I know it's not
within the root hierarchy since I tried giving it all permissions to
with no success.  If I disable the security manager or put an all
permissions to all, then everything works fine.

Thanks Much.



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