Re: problems with JAVA

2001-11-02 Thread Sergio Carvalho


You may be refering to the stack limit bug. You can hop around it by doing: 
 ulimit -s 2048 
before executing java programs. No need to downgrade the JDK.


On Fri, 2 Nov 2001 09:47:31 +0100, Adnan Zelkanovic wrote:
From: Adnan Zelkanovic [EMAIL PROTECTED]
--

 If you have problems to run/compile Cocoon/Tomcat etc. on your machine under
 Linux, then the problem could be jdk1.3.1
 If you are using jdk1.3.1 you have to install jdk1.3.0, because jdk1.3.1 has
 problems on some Linux-systems. For example, jdk1.3.1 doesn't run on my
 SuSE-Linux-7.2 so I installed jdk1.3.0 and now everything works ...
 
 Mit freundlichen Grüßen
 
 Adnan Zelkanovic
 allgäuNet.Onlinedienste GmbH
 
 Nebelhornstraße 8
 86807 Buchloe
 Tel. (08241) 96869-33
 Fax  (08241) 96869-26
 http://www.allgaeu.net
 e-mail: [EMAIL PROTECTED]
 
 ein Unternehmen der abc.Mediengruppe
 
 
 
 -
 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]
 


--
Sergio Carvalho
---
[EMAIL PROTECTED]

If at first you don't succeed, skydiving is not for you

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




XSLTC

2001-11-02 Thread Mitchell A. Cohen



Has anyone run xsltc 
transformations using cocoon 2? If so, could you give me some 
pointers.

Mitchell A. CoheneePulse, Inc.905 W. Eisenhower 
Circle, Suite 110Ann Arbor, MI 48103phone: 
734-996-2321



Testing under cocoon

2001-11-02 Thread David Rosenstrauch

If this is available in an FAQ somewhere, please feel free to point me there, but I 
couldn't find anything.

Is there any way for me to test more efficiently under cocoon?  Currently my process 
is:

* run my build file to compile and deploy everything
* start tomcat
* test by pointing browser to web page and verifying results correct
* stop tomcat
* update/fix my code and stylesheets
* repeat


It looks to me like I need to keep starting/stopping tomcat so that Tomcat/Cocoon will 
reload the stylesheets and class files that I have changed.  Of course I'd prefer to 
not have to spend the time starting/stopping if I don't have to.

Any suggestions?


TIA!


DR


-
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: Testing under cocoon

2001-11-02 Thread Simone Gianni

At 10.22 02/11/2001 -0500, you wrote:
It looks to me like I need to keep starting/stopping tomcat so that 
Tomcat/Cocoon will reload the stylesheets and class files that I have 
changed.  Of course I'd prefer to not have to spend the time 
starting/stopping if I don't have to.

If you just change XML or XSLT you can avoid restarting it all, it will 
reload it automatically. For changes in the sitemap, it is recompiled 
asynch. So you modify the site map, the point to a page (or reload it), it 
will display the old one, wait a few seconds, the reload it again and you 
get the new one.  In cocoon.xconf (but i could be wrong on this) there is a 
setting to make the sitemap regeneration synch ... this is not good for a 
production environment, but is very good for testing, since it recompiles 
the sitemap at the first get after it has changed.

If you change any class, like actions or similars, you can try to change 
the autoreload setting of tomcat, since this is handled by tomcat itself. 
To do this, in the server.xml file, you should add explicitly the cocoon 
context and set the auto-reload=true attribute. This is documented in the 
server.xml file. Anyway, i have not tested this yet.

Also : starting and stopping tomcat/cocoon sometimes led on my computer to 
some strange things to happen : sometime it does not recompile something 
correctly, so i have to manually delete the %TOMCAT_HOME%/work/cocoon... 
directory.

Hope this helps.

Ciao, Simone



-
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: Testing under cocoon

2001-11-02 Thread Steve Gass

David Rosenstrauch wrote:
 
 If this is available in an FAQ somewhere, please feel free to point me there, but I 
couldn't find anything.
 
 Is there any way for me to test more efficiently under cocoon?  Currently my process 
is:

You can use Tomcat's manager app to reload your app without restarting
Tomcat. First you have to set up a password for the manager role in
tomcat-users.xml (maybe more, look at the tomcat docs), then you can
reload by going to a URL like this:

http://localhost:8080/manager/reload?path=/[your app]

Should work, although you may have to specify reloadable=true in the
Tomcat context for your app.

Steve

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




Publishing Engine could not be initialized.

2001-11-02 Thread Tod Thomas

 Error loading logicsheet at 
resource://org/apache/cocoon/processor/xsp/library/java/util.xsl due to 
java.lang.Exception: Resource not found or retrieving error.


I get this error when trying the run the Hello.xml sample.  I'm running
Tomcat standalone from a binary install, and am using a binary install
of Cocoon 1.8.2.  I've followed all the installation instructions
(except for the Apache customization parts) and here I am.

Details:

Tomcat 4.0.1 from binary, running standalone.
Cocoon 1.8.2 from binary
Java - Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Files -  
   jakarta-tomcat-4.0.1.tar.gz
   Cocoon-1.8.2.tar.gz

Tomcat lib contents:
cocoon.jar
ant_1_1.jar   
bsfengines.jar
bsf.jar
fesi.jar
fop_0_15_0.jar
sax-bugfix.jar
servlet_2_2.jar 
stylebook-1.0-b2.jar
turbine-pool.jar
w3c.jar
xalan_1_2_D02.jar
xerces_1_2.jar
xml.jar
xt.jar
jasper-compiler.jar
naming-factory.jar
jasper-runtime.jar

BTW, I can't find Cocoon.xml in either of the install tar.gz's.  I'm
getting to the Hello.xml file by using 
http://localhost:8080/cocoon/samples/hello/hello-page.xml.  Is this
right?  Maybe I have a configuration problem?  Maybe I have a frontal
lobe problem?  

Thanks for any assistance.

Tod

-
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: Testing under cocoon

2001-11-02 Thread David Rosenstrauch

Simone and Steve,

Thanks for your answers!  A great help!


DR



At 11:06 AM 11/2/01 -0500, you wrote:
David Rosenstrauch wrote:
  
  If this is available in an FAQ somewhere, please feel free to point me there, but 
I couldn't find anything.
  
  Is there any way for me to test more efficiently under cocoon?  Currently my 
process is:

You can use Tomcat's manager app to reload your app without restarting
Tomcat. First you have to set up a password for the manager role in
tomcat-users.xml (maybe more, look at the tomcat docs), then you can
reload by going to a URL like this:

http://localhost:8080/manager/reload?path=/[your app]

Should work, although you may have to specify reloadable=true in the
Tomcat context for your app.

Steve

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




Need help with XSP Cocoon2.0

2001-11-02 Thread Alex Vishnev

Hello everyone,
I am just starting with cocoon2. I was trying to experiment with a simple
xsp file borrowed from xsp guide document. This example should render
dynamic content, but it does not happen for me. I am running Tomcat4.0 on
Win2K. While getting familiar with the environment, I was able to view
simple.xsp in docs/samples/xsp/simple.xsp and it renders properly.  So I am
not quite sure where is my problem. Here is the file I am trying to work
with:

?xml version=1.0?
xsp:page
language=java
  xmlns:xsp=http://apache.org/xsp;
  xmlns:xsp-request=http://apache.org/xsp/request/2.0;
  xmlns:log=http://apache.org/xsp/log/2.0;
  xmlns:capture=http://apache.org/cocoon/capture/1.0;
  greeting
Hello this is a test
  /greeting
/xsp:page

I am using a default map entry that routes any cocoon/xsp/* documents to be
processed using stylysheets/dynamic-page2html.xsl. I also inserted the
following stanza into dynamic-page2html.xsl
xsl:template match=greeting
!-- more complex XSLT is possible here as well --
xsp:logic
  // this could be arbitrarily complex Java code, JDBC queries, etc.
  String msg = Hello, world!;
/xsp:logic
xsp:exprmsg/xsp:expr
  /xsl:template

Please let me know what I am doing wrong.

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




Newbie XSP question - why dosn't this work?

2001-11-02 Thread Søren Neigaard

Long time I had time to look at this, but I still have the problem.

My problem is not getting the parameter to the Java method, but the fact
that the XML returned from my method (msg) is escaped/encoded so that ,
 and so on is escaped to something quite useless.

I have attached my original post! Please help me :)

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sendt: 12. oktober 2001 04:41
Til: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Emne: Re: SV: Newbie XSP question - why dosn't this work?


Hi Søren,

On Fri, 12 Oct 2001, Søren Neigaard wrote:
   xsp:logic
   String msg = ContactBO.getContacts(
   xsl:value-of select=pim:nummer/ !-- osv, hvis der er 
andre
 parametre --
   );
   System.out.println(\n--- XML returned from BO:\n);
   System.out.println(msg);
   System.out.println(\n---\n);
   /xsp:logic

Are you sure you want to what you are doing with the -s? I am a complete
newbie on this, but it seems to me that the Java part of things would get
into problems with the 4 -s up there... you'd have to do some escaping of
them, ie.

String msg = ContactBO.getContacts(
   xsl:value-of select=\pim:nummer\/
   );

Hope that works...

Sincerely,
Jan

--
Mr. Jan-Aage Bruvoll IT Project Manager
20 Min Holding, Thurgauerstrasse 40, CH-8050 Zurich
Zurich office: +41 1 307 4293,  fax: +41 1 307 4281
Office/fax: +44 2072408283   Mobile: +44 7740291600


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




I have a XSP, a XSL and a logicsheet. Everything works fine, but one thing. My 
logicsheet returns XML, but it encodes the  and the . Why and what can I do to 
prevent this?

Here is my logicsheet:

?xml version=1.0 encoding=ISO-8859-1?
xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
xmlns:xsp=http://apache.org/xsp; xmlns:pim=http://www.mobilethink.dk/pim;

xsl:output encoding=ISO-8859-1 indent=yes method=xml/

xsl:template match=xsp:page
xsp:page
xsl:apply-templates select=@*/

xsp:structure
xsp:includejava.util.*/xsp:include

xsp:includedk.mobilethink.test.businessobjects.*/xsp:include
/xsp:structure

xsl:apply-templates/  
/xsp:page
/xsl:template

xsl:template match=pim:kontaktpersoner
xsp:logic
String msg = ContactBO.getContacts(
xsl:value-of select=pim:nummer/
);
System.out.println(msg);
/xsp:logic
xsp:exprmsg/xsp:expr
/xsl:template

xsl:template match=@*|*|text()|processing-instruction() priority=-1
xsl:copy
xsl:apply-templates select=@*|*|text()|processing-instruction()/
/xsl:copy
/xsl:template

/xsl:stylesheet


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


Problems installing Cocoon2 = Win98 machine

2001-11-02 Thread Doug

Can someone please help me install Cocoon? I am unable to build it. I keep
on getting the following error and do not know why:
Exception in thread main java.lang.NoClassDefFoundError:


 I have a Win98 machine, increased the environment for the build.bat and
ant.bat files. I have Jdk1.3 installed. I even installed Tomcat and can run
it without problems. I added the set JAVA_HOME=c:\jdk1.3 to both the
build.bat and ant.bat files.

I am trying to install Cocoon-2.0rc1a

Thanks




-
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: Problems installing Cocoon2 = Win98 machine

2001-11-02 Thread Liam Morley

Doug,
In the Cocoon FAQ, you'll see a solution for not enough environment
memory. Changing it in the properties of the file doesn't seem to be
enough- you'll need to edit your config.sys. After this you MUST use 8.3
naming conventions.

Liam


-Original Message-
From: Doug [mailto:[EMAIL PROTECTED]] 
Sent: Friday, November 02, 2001 5:54 PM
To: [EMAIL PROTECTED]
Subject: Problems installing Cocoon2 = Win98 machine

Can someone please help me install Cocoon? I am unable to build it. I
keep
on getting the following error and do not know why:
Exception in thread main java.lang.NoClassDefFoundError:


 I have a Win98 machine, increased the environment for the build.bat and
ant.bat files. I have Jdk1.3 installed. I even installed Tomcat and can
run
it without problems. I added the set JAVA_HOME=c:\jdk1.3 to both the
build.bat and ant.bat files.

I am trying to install Cocoon-2.0rc1a

Thanks




-
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: Problems installing Cocoon2 = Win98 machine

2001-11-02 Thread Doug

Thanks. I saw the entry about the environment in the FAQ but since this was
a Java compile problem, I didn't give it much thought.

Can someone please confirm that Cocoon-2.0rc1a compiles properly? After
making the changes, I still get the java compile error. But, Cocoon-2.0b2
compiles properly with the same Win98 configuration. This leads me to
suspect that either 0rc1a uses a different Java version (ie. not 1.3) or has
a bug in it somewhere


- Original Message -
From: Liam Morley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 02, 2001 7:03 PM
Subject: RE: Problems installing Cocoon2 = Win98 machine


 Doug,
 In the Cocoon FAQ, you'll see a solution for not enough environment
 memory. Changing it in the properties of the file doesn't seem to be
 enough- you'll need to edit your config.sys. After this you MUST use 8.3
 naming conventions.

 Liam


 -Original Message-
 From: Doug [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 02, 2001 5:54 PM
 To: [EMAIL PROTECTED]
 Subject: Problems installing Cocoon2 = Win98 machine

 Can someone please help me install Cocoon? I am unable to build it. I
 keep
 on getting the following error and do not know why:
 Exception in thread main java.lang.NoClassDefFoundError:


  I have a Win98 machine, increased the environment for the build.bat and
 ant.bat files. I have Jdk1.3 installed. I even installed Tomcat and can
 run
 it without problems. I added the set JAVA_HOME=c:\jdk1.3 to both the
 build.bat and ant.bat files.

 I am trying to install Cocoon-2.0rc1a

 Thanks




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




tomcat-3.2.3 and cocoon-1.8.2 not working :)

2001-11-02 Thread Truong,Hoang C.

Hello everyone,
I can't access http://localhost:8080/cocoon/samples/index.xml.  This is
the error:
Not Found (404)
Original request: /cocoon/samples/index.xml 
Not found request: /cocoon/samples/index.xml 

Here are you I did:
- add cocoon context in $tomcat_home/conf/server.xml
- modified $tomcat_home/webapps/cocoon/WEB-INF/web.xml
- copy $cocoon_home/lib/*.jar and $cocoon_home/bin/cocoon.jar to
$tomcat_home/lib/


Can anyone help me?  Thanks

Hoang

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




problems with JAVA

2001-11-02 Thread Adnan Zelkanovic

If you have problems to run/compile Cocoon/Tomcat etc. on your machine under
Linux, then the problem could be jdk1.3.1
If you are using jdk1.3.1 you have to install jdk1.3.0, because jdk1.3.1 has
problems on some Linux-systems. For example, jdk1.3.1 doesn't run on my
SuSE-Linux-7.2 so I installed jdk1.3.0 and now everything works ...

Mit freundlichen Grüßen

Adnan Zelkanovic
allgäuNet.Onlinedienste GmbH

Nebelhornstraße 8
86807 Buchloe
Tel. (08241) 96869-33
Fax  (08241) 96869-26
http://www.allgaeu.net
e-mail: [EMAIL PROTECTED]

ein Unternehmen der abc.Mediengruppe



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