Any simple Doc to XML translator (software) ?

2001-06-06 Thread kokchoon

hi friends,

  I need a simple Doc to XML translator ( software ), i download some translator, but 
the output 
xml too complex... ! It make me difficult to write my xsl file. so is any one here 
know any 
simple Doc to XML translator ? Please tell.


Thank you.


regard,

Kok Choon.






E-mail: [EMAIL PROTECTED]
Date: 06/08/01
Time: 02:26:56

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


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

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




RE: Cocoon and Sessions

2001-06-06 Thread Ramesh Vejendla

Hi Declan
if possible can u plz send me those XSL pages also
it will very helpful to me. 
thanks
rammi

-Original Message-
From: declan kelly [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 8:26 PM
To: [EMAIL PROTECTED]
Subject: Re: Cocoon and Sessions 


I bet your error is caused by not including the create
session directive in the namespaces declaration.

Anyway here's a very simple little login thingy, it
takes stuff from a form and logs you in or redirects
you back.







http://apache.org/cocoon/SQL/v2";
xmlns:xsp="http://www.apache.org/1999/XSP/Core";
xmlns:session="http://www.apache.org/1999/XSP/Session";
create-session="true">

String sqlstring = "";
String username ="";
String passwd = "";
String UID="";
final static char APOS = (char)39;
final static char BLANK = (char)32; 


 
username = request.getParameter("username");
passwd= request.getParameter("passwd");

(username.replace(APOS,BLANK)).trim();
(passwd.replace(APOS,BLANK)).trim();


username.toLowerCase();
passwd.toLowerCase();

sqlstring = "SELECT * FROM users WHERE user_name =
'" + username + "'";


project


sqlstring




if(passwd.equals())
{









response.sendRedirect(response.encodeRedirectURL("menupage.xml"));
}
else

response.sendRedirect("login.xml?error=1"); 





response.sendRedirect("login.xml?error=1");



Try Again




Then on every page which you should be logged in to
see include this 




try{;}
catch (NullPointerException e)
   {
response.sendRedirect("login.xml");
   }





--- Truhann van der Poel
<[EMAIL PROTECTED]> wrote:
> I am new to Cocoon and sessions. Are using C1.8.2.
> 
> Can anybody send a beginner sample (or pointer to
> help-documentation) to
> setup/save/retrieve variables from a session.  
> All the  tags in my xsp page create
> NullPointer's.
> 
> Truhann
> 
>
-
> 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]>
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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

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

This e-mail communication may contain information that is
confidential and privileged. The information is intended
to be for the use of the addressee only. If you are not the
named addressee you should not disseminate, distribute or
copy this e-mail: to do so could be a breach of confidence.

Kshema Technologies Ltd.,
# 33/1, Lalbagh Road, Bangalore 560027, INDIA. 
Tel: (91) 80- 2995114/5/6
Fax: (91) 80 2272933 

**

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




Cocoon in offline

2001-06-06 Thread kokchoon

hi,

   May i know how to use cocoon in offline(means generate html file offline) ?

Thank you.

Kok Choon

E-mail: [EMAIL PROTECTED]
Date: 06/07/01
Time: 21:19:55

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


-
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: Internal server error/sitemap handler's sitemap is notavailable

2001-06-06 Thread Eirik Dentz

Glad you got it working.  I have a little more time now and I wanted offer a
bit more that may, or may not be helpful to others on this list. I am rather
new to Java, XML and Cocoon so it would be great if those of you who know
otherwise could correct me where appropriate.

Background:  I ran into the "sitemap handler's sitemap is not available"
error while trying to install Cocoon 2.0a7 on a headless Debian/Linux
(2.2.18 kernel) box with the Blackdown 1.3.0 j2sdk and Tomcat 3.2.2.

After searching the mailing list archives and seeing that a lot of other
people were running into the same error message and a couple of days of
research, this is my understanding of the problem and one possible solution
(it worked for me, YMMV :)

After digging around a bit and following various threads on the list I
realized that the sitemap compilation failure could be traced back to this
line in my Cocoon.log:
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as
the value of the DISPLAY variable.

It seems that it is the batik.jar, that triggers this error.  This is why
commenting out all of the .SVG stuff in the sitemap is one way to get the
sitemap to compile, though without all of the cool SVG stuff, which I guess
many can do without, but it is a wonderful thing...

Donald Ball offered this link which made me realize that this is a well
documented problem in the java.awt and not actually a bug in Cocoon or even
batik.

http://www.geocities.com/marcoschmidt.geo/java-image-coding.html

of the 3 solutions offered, I chose to go with Xvfb after doing a bit of
re-search on "Xvfb" using google and: http://search.java.sun.com/Search/java
Fortunately it was available as a .deb from the debian ftp servers. There
are .rpms available too. A google or rpmfind search should turn them up.

Once it was installed it was just a matter of starting it up:
shell$ Xvfb :0 -screen 0 640x480x8
and setting the display variable:
shell$ export DISPLAY=:0

The one other thing that you'll probably need to check is that the user that
cocoon(tomcat) is running as has permission to connect to the xserver.

Whew! hope that saves someone some time.

eirik 

> From: [EMAIL PROTECTED] (Rajkumar, Joseph)
> Organization: Orion Scientific Systems, Inc.
> Reply-To: [EMAIL PROTECTED]
> Date: Wed, 06 Jun 2001 17:55:41 -0400
> To: [EMAIL PROTECTED]
> Subject: Re: Internal server error
> 
> Hi Folks
> 
> Thanks to eirik.dentz and Bryan Murphy who gave me a clue as to
> the possible problem.
> 
> So I downloaded a fresh jakarat-tomcat-3.2.2 and Cocoon-2.0B1 on
> my laptop running mandrake.
> 
> Followed the instructions on the cocoon2 web page and build cocoon.war
> and had it working in a few minutes.
> 
> If you try to install it and run it the very first time over the network on a
> different
> machine, you will run into the problem I ran into with the Internal server
> error.
> 
> So try to install and run it on the console and there after you can access
> Cocoon
> from any where on the network
> 
> Regards
> Joseph Rajkumar
> 
> PS: Hopefully this will be fixed in beta-2.
> If you are interested in simulating this problem, try installing tomcat3.2.2
> and cocoon-2.0
> while you are logged into the machine on which you are installing from another
> machine.
> 
> 
> 
> -
> 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]>




[C2] sitemap recompile issue

2001-06-06 Thread Gary Clark

Cocoon2-b1
Tomcat 3.2.2
JDK 1.3.0
RedHat Linux 7.1

Although the sitemap compiles correctly at startup, if I modify the
sitemap.xmap file, I get the following messages in the log after every
request.

The procedure I used was:
1) Stop Tomcat
2) Touch sitemap.xmap
3) Start Tomcat
4) Access a cocoon generated web page
5) Touch sitemap.xmap
6) Refresh web page

Looking in cocoon.log, there are no ERROR messages after loading the page
the first time (step 4).  However, after touching sitemap.xmap to make
cocoon think the file was modified, I start getting ERRORs in the log file.

The sitemap is the default one with all references to svg commented out.
These are all of the messages for Thread-33 in cocoon.log (which is
generating the error).  Any ideas/pointers?

DEBUG   84246   [cocoon  ] (Thread-33): Making URL from
file:/usr/jakarta-tomcat-3.2.2/webapps/cocoon/sitemap.xmap
DEBUG   84250   [cocoon  ] (Thread-33): ComponentFactory creating new
instance of
org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage.
DEBUG   85020   [cocoon  ] (Thread-33): Holding object in memory. Key:
jar:file:/usr/jakarta-tomcat-3.2.2/webapps/cocoon/WEB-INF/lib/cocoon.jar!/or
g/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl
DEBUG   85021   [cocoon  ] (Thread-33): ComponentFactory decommissioning
instance of
org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage.
ERROR   85022   [cocoon  ] (Thread-33): Error compiling sitemap

Gary A. Clark
Systems Programmer
Software Services Group
JELD-WEN Information Systems


-
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: Adding root context to cocoon samples

2001-06-06 Thread Sundar Narayanasamy

Hello Christopher,

Since I do not want to touch my current site, I created 
xml.mydomain.com(virtual domain) and changed the DocumentRoot to the Hello 
example dir. 

The problem is when I go to that site , I get the listing of file under the 
directory

index.xml
WEB-INF  ...

rather than translated index.xml.

My concern is, how do I tell apache whenever it comes across *.xml send it to 
tomcat(ultimately to Cocoon 2)

Thanks,
Sundar


On Wednesday 06 June 2001 07:43, [EMAIL PROTECTED] wrote:
> Sundar,
>
> there are probably multiple ways to approach this.  I think you can change
> the "docBase" in the Context for your app in Tomcat's server.xml
> configuration file to point to your document root.  Alternately, you can
> point Apache's DocumentRoot to your context.  For instance, if your Cocoon
> application is in a directory /opt/tomcat/webapps/cocoon, you can edit
> Apache's httpd.conf and change DocumentRoot to be
> /opt/tomcat/webapps/cocoon.  We've done this successfully.  I can't
> remember if we had to modify the mod_jk-auto.conf to do it.  If you end up
> having to modify that file, I suggest you take it out of Tomcat's directory
> and put it in with the Apache conf files, rename it to mod_jk.conf, and
> maintain it yourself.
>
> Before doing anything like this, though, I recommend getting familiar with
> Apache's documentation on configuring Apache (particularly about
> DocumentRoot, Directory, etc.) and Tomcat's documentation on configuring
> Tomcat contexts.
>
> -Christopher
>
>
>
>
> Please respond to [EMAIL PROTECTED]
>
> To:   [EMAIL PROTECTED]
> cc:
>
> Subject:  Adding root context to cocoon samples
>
>
> Hello,
>
> Probably, its been answered so many times but I couldn't find it in the
> archives. So, following is my question.
>
> I am able to successfully put cocoon2 samples in my Apache+Tomcat
> configuration and able to access under www.mydomain.com/cocoon by adding
> /cocoon context in mod_jk-auto.conf
>
> But I am having trouble adding root context to a cocoon sample application
> --
> Hello World.
>
> That is when I key in 'www.mydomain.com', I want the web server to serve
> hello application(index.xml) (For that matter any cocoon application)
>
> Any help is appreciated.
>
> Sundar
>
>
>
>
>
>
>
> -
> 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]>

-- 
Sundar Narayanasamy
Fourthstage Technologies
3030 North Third Street, 7th Floor
Phoenix, AZ 85012

Office - 602-776-0883 ext.222
Email  - [EMAIL PROTECTED]

http://www.fourthstage.com


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

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




AW: Cocoon 1.8.2 + SAXON: Failed to Compile Stylesheet ERROR

2001-06-06 Thread Ekkehard Hoffmann

Hi William

> No Xalan-specific features.  Besides, Saxon works properly 
> when used from
> the command line on the same files.
Then it seems to be a problem with the current working directory.
Do you use xsl:include or xsl:import with relative paths in your xsl files.
Try to change these paths to absolute paths. And Saxon may create
(eventually) your pages.

HTH,
Eccy


-
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: Internal server error

2001-06-06 Thread Rajkumar, Joseph

Hi Folks

Thanks to eirik.dentz and Bryan Murphy who gave me a clue as to
the possible problem.

So I downloaded a fresh jakarat-tomcat-3.2.2 and Cocoon-2.0B1 on
my laptop running mandrake.

Followed the instructions on the cocoon2 web page and build cocoon.war
and had it working in a few minutes.

If you try to install it and run it the very first time over the network on a 
different
machine, you will run into the problem I ran into with the Internal server error.

So try to install and run it on the console and there after you can access Cocoon
from any where on the network

Regards
Joseph Rajkumar

PS: Hopefully this will be fixed in beta-2.
If you are interested in simulating this problem, try installing tomcat3.2.2 and 
cocoon-2.0
while you are logged into the machine on which you are installing from another machine.



-
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: Internal server error

2001-06-06 Thread Gary Clark

Yee-haw!  (Did I just give my US. West coast location away?)  That was all I
was missing.  Thanks for the info!

Gary A. Clark
Systems Programmer
Software Services Group
JELD-WEN Information Systems

> -Original Message-
> From: Bryan Murphy [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 1:18 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Internal server error
> 
> Comment out every entry in your sitemap.xmap file that contains 'svg' 
> minus the quotes.  sitemap.xmap is located in the webapps/cocoon 
> directory.  You might have to uncompress the war archive to modify it. 
> Restart tomcat, and everything should work EXCEPT for the svg stuff.   
> If you want to use the svg stuff, you're out of luck till somebody fixes 
> that problem.
> 
> Rajkumar, Joseph wrote:
> 
> > Hi Folks
> > I am using latest Cocoon-2.0b1 with Tomcat-3.2.2 and following
> > the instructions to the letter and this is what I get
> > Regards
> > Joseph Rajkumar
> >
> > Instructions followed: http://xml.apache.org/cocoon2/install.html
> > PS: why is the sitemap hander's sitemap *NOT* available and how can I
> > make it available
> > ==
> > Cocoon 2 - Internal server error
> >
> > type internal-server-error
> > message The sitemap handler's sitemap is not available.
> > description org.apache.cocoon.ProcessingException: The sitemap 
> > handler's sitemap is not available.
> > sender org.apache.cocoon.servlet.CocoonServlet
> > source Cocoon servlet
> > request-uri
> > /cocoon/
> > exception
> > org.apache.cocoon.ProcessingException: The sitemap handler's sitemap 
> > is not available.
> > path-info
> > stacktrace
> > org.apache.cocoon.ProcessingException: The sitemap handler's sitemap 
> > is not available.
> > at 
> > org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
> > at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
> > at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
> > at 
> > org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
> > 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:
> 797) 
> >
> > at 
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> > at 
> >
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
> pConnectionHandler.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:484)
> >  
> >  
> >
> > 
> >
> >
> >   Cocoon 2 - Internal server error
> >
> > 
> >
> > *type* internal-server-error
> >
> > *message*_The sitemap handler's sitemap is not available._
> >
> > *description*_org.apache.cocoon.ProcessingException: The sitemap 
> > handler's sitemap is not available._
> >
> > *sender* org.apache.cocoon.servlet.CocoonServlet
> >
> > *source* Cocoon servlet
> >
> > *request-uri*
> >
> >/cocoon/
> >
> > *exception*
> >
> >org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is
> not available.
> >
> > *path-info*
> >
> > *stacktrace*
> >
> >org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is
> not available.
> > at
> org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
> > at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
> > at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
> > at
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
> > 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:
> 797)
> > at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> > at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
> pConnectionHandler.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:484)
> >
> > --

Re: [C2] Reloading changed sitemap

2001-06-06 Thread giacomo

On Wed, 6 Jun 2001, Csaba Nagy wrote:

> Hi cocooners,
>
> I'm running cocoon 2 in weblogic 6.0 on Windows 2000, and there's a big
> problem in that the sitemap is not reloaded if I change it.
> In my understanding it should be reloaded as soon as it changes.
> Am I missing something ?
> Is the sitemap reloading working on other platforms ?

If you are using the default setup you might notice that the first
request after you changed the sitemap doesn't reflect it. If you wait a
few seconds and retry you should see the changes. This is due to the
fact that the regeneration of the sitemap class is done in a background
thread.

Giacomo

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


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

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




Re: AW: R: Apache Cocoon2 Beta 1 Release

2001-06-06 Thread giacomo

On Wed, 6 Jun 2001, Ulrich Mayring wrote:

> Carsten Ziegeler wrote:
> >
> > Yes and yes. No and yes: The beta is feature-complete including
> > caching and content aggregation.
>
> Without having seen it: great work, guys.
>
> > The only thing missing is even more documentation.
>
> Wot no docs? :)
>
> Seriously, I think it's really cool that you guys plan to write some
> docs before writing more code. This puts some real pressure on me to
> upgrade - up to now I could always say to my boss: ah.. no docs, not
> feature-complete, Cocoon1 works, ...

This was the only reason to state that beta 2 will have mainly
more docs to make you upgrande sooner than later ;)

We badly need your comments about C2 because you're one of the most
critical person around here I know of.

Giacomo


-
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: Internal server error

2001-06-06 Thread Bryan Murphy

Comment out every entry in your sitemap.xmap file that contains 'svg' 
minus the quotes.  sitemap.xmap is located in the webapps/cocoon 
directory.  You might have to uncompress the war archive to modify it. 
Restart tomcat, and everything should work EXCEPT for the svg stuff.   
If you want to use the svg stuff, you're out of luck till somebody fixes 
that problem.

Rajkumar, Joseph wrote:

> Hi Folks
> I am using latest Cocoon-2.0b1 with Tomcat-3.2.2 and following
> the instructions to the letter and this is what I get
> Regards
> Joseph Rajkumar
>
> Instructions followed: http://xml.apache.org/cocoon2/install.html
> PS: why is the sitemap hander's sitemap *NOT* available and how can I
> make it available
> ==
> Cocoon 2 - Internal server error
>
> type internal-server-error
> message The sitemap handler's sitemap is not available.
> description org.apache.cocoon.ProcessingException: The sitemap 
> handler's sitemap is not available.
> sender org.apache.cocoon.servlet.CocoonServlet
> source Cocoon servlet
> request-uri
> /cocoon/
> exception
> org.apache.cocoon.ProcessingException: The sitemap handler's sitemap 
> is not available.
> path-info
> stacktrace
> org.apache.cocoon.ProcessingException: The sitemap handler's sitemap 
> is not available.
> at 
> org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
> at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
> at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
> at 
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
> 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:797) 
>
> at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at 
> 
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.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:484)
>  
>  
>
> 
>
>
>   Cocoon 2 - Internal server error
>
> 
>
> *type* internal-server-error
>
> *message*_The sitemap handler's sitemap is not available._
>
> *description*_org.apache.cocoon.ProcessingException: The sitemap 
> handler's sitemap is not available._
>
> *sender* org.apache.cocoon.servlet.CocoonServlet
>
> *source* Cocoon servlet
>
> *request-uri*
>
>/cocoon/
>
> *exception*
>
>org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available.
>
> *path-info*
>
> *stacktrace*
>
>org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available.
>   at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
>   at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
>   at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
>   at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
>   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:797)
>   at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>   at 
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.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:484)
>
> 



-
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: Internal server error

2001-06-06 Thread eirikdentz

What is your OS?  Are you running a headless server?  You should take a
look in your cocoon.log which should be  in
$TOMCAT_HOME/webapps/cocoon/WEB-INF/log/  and see if there are any error
messages just before this one.  This should tell you what is causing the
sitemap compilation to fail.

eirik

"Rajkumar, Joseph" wrote:

> Hi Folks
> I am using latest Cocoon-2.0b1 with Tomcat-3.2.2 and following
> the instructions to the letter and this is what I get
> Regards
> Joseph Rajkumar
>
> Instructions followed: http://xml.apache.org/cocoon2/install.html
> PS: why is the sitemap hander's sitemap NOT available and how can I
> make it available
> ==
> Cocoon 2 - Internal server error
>
> type internal-server-error
> message The sitemap handler's sitemap is not available.
> description org.apache.cocoon.ProcessingException: The sitemap
> handler's sitemap is not available.
> sender org.apache.cocoon.servlet.CocoonServlet
> source Cocoon servlet
> request-uri
> /cocoon/
> exception
> org.apache.cocoon.ProcessingException: The sitemap handler's sitemap
> is not available.
> path-info
> stacktrace
> org.apache.cocoon.ProcessingException: The sitemap handler's sitemap
> is not available.
> at
> org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
> at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
> at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
> at
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
>
> 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:797)
>
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>
> at
> 
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.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:484)
>
> Cocoon 2 - Internal server error
>
> ---
>
> type internal-server-error
>
> message The sitemap handler's sitemap is not available.
>
> description org.apache.cocoon.ProcessingException: The sitemap
> handler's sitemap is not available.
>
> sender org.apache.cocoon.servlet.CocoonServlet
>
> source Cocoon servlet
>
> request-uri
>
> /cocoon/
>
> exception
>
> org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not 
>available.
>
> path-info
>
> stacktrace
>
> org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not 
>available.
> at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
> at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
> at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
> at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
> 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:797)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at 
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.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:484)
>
> ---
>
>
> -
> 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]>
>


begin:vcard 
n:Dentz;Eirik
tel;work:212-455-9830
x-mozilla-html:TRUE
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;3
fn:Eirik Dentz
end:vcard



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

RE: use connection pool in esql

2001-06-06 Thread Fang Huang

I restarted tomcat, and it works now. But there is an exception
java.lang.Exception: The logfile= property and the turbine.logs= property
in the TurbineResources.properties file are null 
or could not be found.

Where is the TurbineResources.properties file?

Fang

On Wed, 6 Jun 2001, Gary Clark wrote:

> Did you restart your servlet server (Tomcat in my case)?  The change won't
> take effect until you do.  If you did, look in the log files of your servlet
> server and see if you can find out why the connection failed.
> 
> Gary A. Clark
> Systems Programmer
> Software Services Group
> JELD-WEN Information Systems
> 
> > -Original Message-
> > From:   Fang Huang [SMTP:[EMAIL PROTECTED]]
> > Sent:   Wednesday, June 06, 2001 11:32 AM
> > To: [EMAIL PROTECTED]
> > Subject:use connection pool in esql
> > 
> > Hi, I was trying to use connection pool in esql, but I still got error:
> > java.lang.RuntimeException: Could not open pooled connection: mypool
> > 
> > In cocoon.properties, I add mypool definition as follows:
> > processor.xsp.pool.database.mypool.driver=oracle.jdbc.driver.OracleDriver
> > processor.xsp.pool.database.mypool.url=jdbc:oracle:thin:@oracle.gl.umbc.ed
> > u:1521:GL
> > processor.xsp.pool.database.mypool.username=user
> > processor.xsp.pool.database.mypool.password=user
> > processor.xsp.pool.database.mypool.maxConnections=3
> > processor.xsp.pool.database.mypool.expiryTime=360
> > 
> > And in my xsp file, I use:
> > 
> >   mypool
> >   
> >   ...
> > 
> > I can get the correct results when I use
> > 
> >   oracle.jdbc.driver.OracleDriver
> >   jdbc:oracle:thin:@oracle.gl.umbc.edu:1521:GL
> >   user
> >   user
> >   
> > 
> > What's wrong with the connection pool? Thanks.
> > 
> > Fang
> > 
> > 
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> > 
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 




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

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




pl reply

2001-06-06 Thread Prasanta Nayak



Dear sir,

Installing Cocoon on Apache Tomcat on linux server

 i followed your all instruction after that i am facing this problem
pl rectify my problem
ASAP




http://localhost:8080/cocoon/samples/index.xml

when i execute this
this type of error is coming


type="text/html"



Cocoon Live Show





Copyright © 1999-2000 The Apache XML Project.
All rights reserved.






-


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




Installation - Update -

2001-06-06 Thread Anand Chauhan

Just a note for the Cocoon guys.. 

I was abt to install Cocoon on a different combination not listed in 
the table at the foll: site >>
http://xml.apache.org/cocoon/install.html

The combo goes as follows:
JDK1.3.1
Tomcat 3.2.1
Apache Web Server 1.3.19

Keep up the good work. 

All the best,
Anand Chauhan
MS(CS) Jan 2002
New York University



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




Internal server error

2001-06-06 Thread Rajkumar, Joseph


Hi Folks
    I am using latest Cocoon-2.0b1 with Tomcat-3.2.2
and following
the instructions to the letter and this is what I get
Regards
Joseph Rajkumar
Instructions followed: http://xml.apache.org/cocoon2/install.html
PS: why is the sitemap hander's sitemap NOT available and how
can I
make it available
==
Cocoon 2 - Internal server error
type internal-server-error
message The sitemap handler's sitemap is not available.
description org.apache.cocoon.ProcessingException: The sitemap handler's
sitemap is not available.
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
/cocoon/
exception
org.apache.cocoon.ProcessingException: The sitemap handler's sitemap
is not available.
path-info
stacktrace
org.apache.cocoon.ProcessingException: The sitemap handler's sitemap
is not available.
    at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
    at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
    at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
    at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
    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:797)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.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:484)
 
 
Title: Internal server error
Cocoon 2 - Internal server errortype internal-server-errormessage The sitemap handler's sitemap is not available.description org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available.sender org.apache.cocoon.servlet.CocoonServletsource Cocoon servletrequest-uri/cocoon/exceptionorg.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available.path-infostacktraceorg.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available.
	at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
	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:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.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:484)


-
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: use connection pool in esql

2001-06-06 Thread Oskar Werewka


I have the same configuration, and it is working?
Did you restart cocoon after hanging cocoon.properties?

>Hi, I was trying to use connection pool in esql, but I still got error:
>java.lang.RuntimeException: Could not open pooled connection: mypool
>
>In cocoon.properties, I add mypool definition as follows:
>processor.xsp.pool.database.mypool.driver=oracle.jdbc.driver.OracleDriver
>processor.xsp.pool.database.mypool.url=jdbc:oracle:thin:@oracle.gl.umbc.edu:1521:GL
>processor.xsp.pool.database.mypool.username=user
>processor.xsp.pool.database.mypool.password=user
>processor.xsp.pool.database.mypool.maxConnections=3
>processor.xsp.pool.database.mypool.expiryTime=360
>
>And in my xsp file, I use:
>
>   mypool
>   
>   ...
>
>I can get the correct results when I use
>
>   oracle.jdbc.driver.OracleDriver
>   jdbc:oracle:thin:@oracle.gl.umbc.edu:1521:GL
>   user
>   user
>   
>
>What's wrong with the connection pool? Thanks.
>
>Fang
>
>
>-
>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]>



-- 

Kamera wideo Sony, 5000 zl
wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ]


-
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: use connection pool in esql

2001-06-06 Thread paint007


somebody else just had a similar problem.  Did you restart Cocoon after
editing cocoon.properties?  Did you edit the correct cocoon.properties
(e.g., the one in the WEB-INF directory, not the one in the original cocoon
directory)?

-Christopher




Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  use connection pool in esql


Hi, I was trying to use connection pool in esql, but I still got error:
java.lang.RuntimeException: Could not open pooled connection: mypool

In cocoon.properties, I add mypool definition as follows:
processor.xsp.pool.database.mypool.driver=oracle.jdbc.driver.OracleDriver
processor.xsp.pool.database.mypool.url=jdbc:oracle:thin:
@oracle.gl.umbc.edu:1521:GL
processor.xsp.pool.database.mypool.username=user
processor.xsp.pool.database.mypool.password=user
processor.xsp.pool.database.mypool.maxConnections=3
processor.xsp.pool.database.mypool.expiryTime=360

And in my xsp file, I use:

  mypool
  
  ...

I can get the correct results when I use

  oracle.jdbc.driver.OracleDriver
  jdbc:oracle:thin:@oracle.gl.umbc.edu:1521:GL
  user
  user
  

What's wrong with the connection pool? Thanks.

Fang





-
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: use connection pool in esql

2001-06-06 Thread Gary Clark

Did you restart your servlet server (Tomcat in my case)?  The change won't
take effect until you do.  If you did, look in the log files of your servlet
server and see if you can find out why the connection failed.

Gary A. Clark
Systems Programmer
Software Services Group
JELD-WEN Information Systems

> -Original Message-
> From: Fang Huang [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 11:32 AM
> To:   [EMAIL PROTECTED]
> Subject:  use connection pool in esql
> 
> Hi, I was trying to use connection pool in esql, but I still got error:
> java.lang.RuntimeException: Could not open pooled connection: mypool
> 
> In cocoon.properties, I add mypool definition as follows:
> processor.xsp.pool.database.mypool.driver=oracle.jdbc.driver.OracleDriver
> processor.xsp.pool.database.mypool.url=jdbc:oracle:thin:@oracle.gl.umbc.ed
> u:1521:GL
> processor.xsp.pool.database.mypool.username=user
> processor.xsp.pool.database.mypool.password=user
> processor.xsp.pool.database.mypool.maxConnections=3
> processor.xsp.pool.database.mypool.expiryTime=360
> 
> And in my xsp file, I use:
> 
>   mypool
>   
>   ...
> 
> I can get the correct results when I use
> 
>   oracle.jdbc.driver.OracleDriver
>   jdbc:oracle:thin:@oracle.gl.umbc.edu:1521:GL
>   user
>   user
>   
> 
> What's wrong with the connection pool? Thanks.
> 
> Fang
> 
> 
> -
> 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]>




[C2]: with Tomcat 3.2.2

2001-06-06 Thread Gary Clark

Here is what I have found so far with Tomcat 3.2.2 and C2 (RedHat 7.1, fresh
install of Tomcat):

- Follow the instruction at
http://xml.apache.org/cocoon/cocoon2/install.html
- Add the  as shown with Tomcat 4.0 (can someone verify this is
needed?)
- Set your DISPLAY variable if :0.0 is incorrect (sitemap will not compile
without X11, Batik seems to be the cause)

At this point, cocoon just does not respond.  No error messages found yet
(other then DB connections not made in cocoon.log).  My browser (IE) has
been waiting for >15 minutes and has not timed out, but the Linux box is at
0% cpu usage.

Gary A. Clark
Systems Programmer
Software Services Group
JELD-WEN Information Systems


-
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: Turbine without ESQL

2001-06-06 Thread Antonio Parolini

> > > Can somebody just send me a fragment
> > > of code, which gets connections from
> > > Turbine pool?

Yep...


import org.apache.turbine.services.db.PoolBrokerService;
import org.apache.turbine.util.db.pool.DBConnection;
import org.apache.turbine.services.resources.TurbineResourceService ;

static PoolBrokerService pool = PoolBrokerService.getInstance(); // Turbine
pool of connections
private Connection Conn = null ;  // Connection
private DBConnection db = null; // Pooled connection

try {
TurbineResourceService.setPropertiesFileName("C:/jakarta-tomcat-3.2.1/webapp
s/tl/pool/TurbineResources.properties") ;
} catch (IOException ioexp) {
DebugPrint("IO error:" + ioexp.getMessage() ) ;
}

db = pool.getConnection();
Conn = db.getConnection();



This is what you want.

Remember to have turbine-pool.jar in you servlet lib folder.

You can see that I'm using the TurbineRessouces.properties to set the
pooling conf, you could do it using the standard java Property class.

HTH.

- Tony


-
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: Turbine without ESQL

2001-06-06 Thread Gary Clark

Sorry, I'm still scratching my head with C2.  Try xml.apache.org and go into
the Turbine part of the site.  I recall seeing some docs in there, but I
don't recall exactly where they were.

Gary A. Clark
Systems Programmer
Software Services Group
JELD-WEN Information Systems

> -Original Message-
> From: Oskar Werewka [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 11:16 AM
> To:   [EMAIL PROTECTED]
> Subject:  RE: Turbine without ESQL
> 
> 
> Thank you, but I have written my question wrong, I would like
> to use turbine inside my java helper classes, so I have to use:
> 
>  org.apache.turbine.services.db.PoolBrokerService
>  org.apache.turbine.util.db.pool.DBConnection
> 
> Can you help me? And sorry again.
> 
> 
> >First, setup cocoon.properties (I'm creating a new pool called 'mypool'
> >which connects to a postgresql database called mydb).
> >
> >processor.xsp.pool.database.mypool.driver=org.postgresql.Driver
> >processor.xsp.pool.database.mypool.url=jdbc:postgresql://localhost/mydb
> >processor.xsp.pool.database.mypool.username=myid
> >processor.xsp.pool.database.mypool.password=mypassword
> >processor.xsp.pool.database.mypool.maxConnections=3
> >processor.xsp.pool.database.mypool.expiryTime=360
> >
> >(There may be more stuff needed to setup depending on your database)
> >
> >Now, just replace the following lines:
> >
> >   org.postgresql.Driver
> >   jdbc:postgresql://localhost/test
> >   test
> >   test
> >
> >with:
> >
> >   mypool
> >
> >
> >
> >Gary A. Clark
> >Systems Programmer
> >Software Services Group
> >JELD-WEN Information Systems
> >
> > > -Original Message-
> > > From: Oskar Werewka [SMTP:[EMAIL PROTECTED]]
> > > Sent: Wednesday, June 06, 2001 9:53 AM
> > > To:   [EMAIL PROTECTED]
> > > Subject:  Turbine without ESQL
> > >
> > >
> > > Can somebody just send me a fragment
> > > of code, which gets connections from
> > > Turbine pool?
> > >
> > > COCOON 1.8.2
> > >
> > > It will be very niece for me ;)
> > >
> > > Thanks,
> > > Oskar Werewka
> > >
> > >
> > >
> > > --
> > >
> > > Kamera wideo Sony, 5000 zl
> > > wygraj w konkursie eMarketu i Onet.pl [
> http://konkursy.onet.pl/emarket ]
> > >
> > >
> > > -
> > > 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]>
> 
> 
> 
> -- 
> 
> Kamera wideo Sony, 5000 zl
> wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ]
> 
> 
> -
> 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]>




use connection pool in esql

2001-06-06 Thread Fang Huang

Hi, I was trying to use connection pool in esql, but I still got error:
java.lang.RuntimeException: Could not open pooled connection: mypool

In cocoon.properties, I add mypool definition as follows:
processor.xsp.pool.database.mypool.driver=oracle.jdbc.driver.OracleDriver
processor.xsp.pool.database.mypool.url=jdbc:oracle:thin:@oracle.gl.umbc.edu:1521:GL
processor.xsp.pool.database.mypool.username=user
processor.xsp.pool.database.mypool.password=user
processor.xsp.pool.database.mypool.maxConnections=3
processor.xsp.pool.database.mypool.expiryTime=360

And in my xsp file, I use:

  mypool
  
  ...

I can get the correct results when I use

  oracle.jdbc.driver.OracleDriver
  jdbc:oracle:thin:@oracle.gl.umbc.edu:1521:GL
  user
  user
  

What's wrong with the connection pool? Thanks.

Fang


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




Cocoon 2 beta 1 bug?

2001-06-06 Thread francesco.casalena

Hi,
thank you to Carsten and his team for their grat job!

I've tried to install Cocoon 2 beta 1 and I noticed:

1) build.xml seems absent (yet indicated on this ml)

2) my /usr/local/jakarta-ant-1.3/ant.jar has been named
  ant_1_3.jar by me otherwise it isn't recognise (ANT_HOME is
  path is ok).

I'm waiting for package's upgrade.

With regards, Ciao
Francesco

Francesco Casalena
L.U.G. "Il Pinguino"
--
Virgilio Mail - Il tuo indirizzo E-mail gratis
http://mail.virgilio.it


-
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: Turbine without ESQL

2001-06-06 Thread Oskar Werewka


Thank you, but I have written my question wrong, I would like
to use turbine inside my java helper classes, so I have to use:

 org.apache.turbine.services.db.PoolBrokerService
 org.apache.turbine.util.db.pool.DBConnection

Can you help me? And sorry again.


>First, setup cocoon.properties (I'm creating a new pool called 'mypool'
>which connects to a postgresql database called mydb).
>
>processor.xsp.pool.database.mypool.driver=org.postgresql.Driver
>processor.xsp.pool.database.mypool.url=jdbc:postgresql://localhost/mydb
>processor.xsp.pool.database.mypool.username=myid
>processor.xsp.pool.database.mypool.password=mypassword
>processor.xsp.pool.database.mypool.maxConnections=3
>processor.xsp.pool.database.mypool.expiryTime=360
>
>(There may be more stuff needed to setup depending on your database)
>
>Now, just replace the following lines:
>
>   org.postgresql.Driver
>   jdbc:postgresql://localhost/test
>   test
>   test
>
>with:
>
>   mypool
>
>
>
>Gary A. Clark
>Systems Programmer
>Software Services Group
>JELD-WEN Information Systems
>
> > -Original Message-
> > From: Oskar Werewka [SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 06, 2001 9:53 AM
> > To:   [EMAIL PROTECTED]
> > Subject:  Turbine without ESQL
> >
> >
> > Can somebody just send me a fragment
> > of code, which gets connections from
> > Turbine pool?
> >
> > COCOON 1.8.2
> >
> > It will be very niece for me ;)
> >
> > Thanks,
> > Oskar Werewka
> >
> >
> >
> > --
> >
> > Kamera wideo Sony, 5000 zl
> > wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ]
> >
> >
> > -
> > 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]>



-- 

Kamera wideo Sony, 5000 zl
wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ]


-
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: [C2]: Missing files in distribution - solved

2001-06-06 Thread Rajkumar, Joseph

Hi Folks

Yes it does. I got Cocoon-2.0b1.tar.gz (9926084 bytes) and it compiles
just fine. I would appreciate some instructions on getting it to work with
Tomcat-3.2.2.

Regards
Joseph Rajkumar

Gary Clark wrote:

> It compiles much better now, thanks.
>
> Gary A. Clark
> Systems Programmer
> Software Services Group
> JELD-WEN Information Systems


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

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




RE: Cocoon 1.8.2 + SAXON: Failed to Compile Stylesheet ERROR

2001-06-06 Thread William Bagby

No Xalan-specific features.  Besides, Saxon works properly when used from
the command line on the same files.

There is nothing in the Weblogic logs or console.

Is there something I need to add to build.xml?


William Bagby.

-Original Message-
From: Sylvain Wallez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 12:34 PM
To: [EMAIL PROTECTED]
Subject: Re: Cocoon 1.8.2 + SAXON: Failed to Compile Stylesheet ERROR




William Bagby a écrit :
> 
> I am using Cocoon 1.8.2 on Weblogic 5.1, and I decided to 
switch from Xalan
> to Saxon to get a performance boost.  The installation went 
(relatively)
> smoothly, but now I'm getting the following error when I 
attempt to view one
> of my pages:
> 
>   javax.xml.transform.TransformerConfigurationException: Failed to
> compile stylesheet. 1 error detected.
>   at java.lang.Throwable.fillInStackTrace(Native Method)
>   at java.lang.Throwable.fillInStackTrace(Compiled Code)
>   at java.lang.Throwable.(Compiled Code)
>   at java.lang.Exception.(Compiled Code)
>   at
> 
javax.xml.transform.TransformerException.(TransformerExcep
tion.java:12
> 9)
>   at
> 
javax.xml.transform.TransformerConfigurationException.(Tra
nsformerConf
> igurationException.java:41)
>   at
> com.icl.saxon.PreparedStyleSheet.prepare(PreparedStyleSheet.java:119)
>   at
> 
com.icl.saxon.TransformerFactoryImpl.newTemplates(TransformerFac
toryImpl.jav
> a:119)
>   at
> 
org.apache.cocoon.transformer.SAXONTransformer.getTransformer(SA
XONTransform
> er.java:309)
>   at
> 
org.apache.cocoon.transformer.SAXONTransformer.transform(Compiled Code)
>   at
> 
org.apache.cocoon.processor.xslt.XSLTProcessor.process(XSLTProce
ssor.java:11
> 6)
>   at org.apache.cocoon.Engine.handle(Compiled Code)
>   at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
>   at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> 
> etc., etc...
> 
> My next move is going through my XSL bit by bit to find this 
supposed error,
> but I'm hoping that maybe someone has encountered this error message.
> 
> I tried the same XSL with Instant Saxon in XMLSpy and it 
worked fine. In
> addition, there are other pages that I'm able to view  with 
Cocoon + Saxon.
> The above page worked with Cocoon + Xalan, even if it was 
slow as molasses
> in winter.
> 
> Forgive me if this is off-topic, but it is at least 
Cocoon-related.  Maybe I
> should post this to the XSL list?
> 
> William Bagby.
> 
Does your stylesheet use Xalan-specific features that aren't handled by
Saxon ? Along with this error, Saxon writes some more meaningful
messages in (I guess) System.err which gets printed in my Tomcat
console. You should check weblogic logs or console for this message.
-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com

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

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

-
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: Turbine without ESQL

2001-06-06 Thread Gary Clark

First, setup cocoon.properties (I'm creating a new pool called 'mypool'
which connects to a postgresql database called mydb).

processor.xsp.pool.database.mypool.driver=org.postgresql.Driver
processor.xsp.pool.database.mypool.url=jdbc:postgresql://localhost/mydb
processor.xsp.pool.database.mypool.username=myid
processor.xsp.pool.database.mypool.password=mypassword
processor.xsp.pool.database.mypool.maxConnections=3
processor.xsp.pool.database.mypool.expiryTime=360

(There may be more stuff needed to setup depending on your database)

Now, just replace the following lines:

  org.postgresql.Driver
  jdbc:postgresql://localhost/test
  test
  test

with:

  mypool



Gary A. Clark
Systems Programmer
Software Services Group
JELD-WEN Information Systems

> -Original Message-
> From: Oskar Werewka [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 9:53 AM
> To:   [EMAIL PROTECTED]
> Subject:  Turbine without ESQL
> 
> 
> Can somebody just send me a fragment
> of code, which gets connections from
> Turbine pool?
> 
> COCOON 1.8.2
> 
> It will be very niece for me ;)
> 
> Thanks,
> Oskar Werewka
> 
> 
> 
> -- 
> 
> Kamera wideo Sony, 5000 zl
> wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ]
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>

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

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




RE: [C2]: Missing files in distribution - solved

2001-06-06 Thread Gary Clark

It compiles much better now, thanks.

Gary A. Clark
Systems Programmer
Software Services Group
JELD-WEN Information Systems

> -Original Message-
> From: Carsten Ziegeler [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 9:28 AM
> To:   [EMAIL PROTECTED]; Cocoon-Users@Xml. Apache. Org
> Subject:  AW: [C2]: Missing files in distribution - solved
> 
> And again my appologies...
> 
> There was another "bug" in the build script for the
> distribution which made compiling impossible.
> I fixed this and redistributed the dist to the server.
> 
> Now the distribution builds very well.
> 
> Again sorry, hope things are not getting worse...
> 
> 
> Carsten 
> 
> Open Source GroupsunShine - b:Integrated
> 
> Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> www.sundn.de  mailto: [EMAIL PROTECTED] 
> 
> 
> 
> > Carsten Ziegeler wrote:
> > 
> > Hi,
> > 
> > unfortunately some files were missing in the distribution
> > of the beta1, e.g. the build.xml.
> > 
> > Without wanting to cause big problems I just put a new
> > distribution with the missing files in the dist directory
> > of the xml.apache.org server.
> > This is not the real solution I know, but creating a b2
> > only for the missing files is perhaps overdoing it.
> > 
> > The build.xml file for the 2.1-dev and 2.0b1-dev are
> > corrected, so only when you really build the dist 
> > for 2.0b1 the files are missing. 
> > 
> > Sorry for this problems,
> > 
> > 
> > Carsten 
> > 
> > Open Source GroupsunShine - b:Integrated
> > 
> > Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> > www.sundn.de  mailto: [EMAIL PROTECTED] 
> > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> > 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>

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

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




Turbine without ESQL

2001-06-06 Thread Oskar Werewka


Can somebody just send me a fragment
of code, which gets connections from
Turbine pool?

COCOON 1.8.2

It will be very niece for me ;)

Thanks,
Oskar Werewka



-- 

Kamera wideo Sony, 5000 zl
wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ]


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

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




RE: Cocoon-2.0b1 -- build fails

2001-06-06 Thread Gary Clark

I had the same problem.  I copied the files from an earlier CVS (Monday)
version I had.  Also, during the build I got:

prepare-src-22:
Could not find file
/usr/xml-cocoon2/src/org/apache/cocoon/environment/http/RequestWrapper22.jav
a to copy.

It compiles cleanly after copying that file from the same CVS version, but
it does not run. :-(

Tomcat 3.2.2, Cocoon2-b1 and Java 1.3.0 from blackdown (build
Blackdown-1.3.0-RC1).  I'm still working through the
cocoon/WEB-INF/logs/cocoon.log file.

Gary A. Clark
Systems Programmer
Software Services Group
JELD-WEN Information Systems

> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 8:14 AM
> To:   cocoon-users
> Subject:  Cocoon-2.0b1 -- build fails
> 
> Hi folks
> 
> Just now I downloaded the Cocoon-2.0b1.tar.gz (9930213 bytes)
> and tried to build it after setting my JAVA_HOME on a linux box.
> 
>The build fails with the following message
> Regards
> Joseph Rajkumar
> ==
> [rajkumar@gman CocoonTwo]$ ./build.sh  -Dinclude.webapp.libs=yes webapp
> Buildfile: build.xml
> init:
> --- Apache Cocoon 2.0b1 [1999-2001] 
> generate-java-code:
> Transforming into
> /home/rajkumar/CocoonTwo/build/cocoon/src/org/apache/cocoon/components/bro
> wser
> 
> Loading stylesheet
> /home/rajkumar/CocoonTwo/src/org/apache/cocoon/components/browser/BrowserI
> mpl.xsl
> 
> Failed to read stylesheet BrowserImpl.xsl
> 
> BUILD FAILED
> 
> /home/rajkumar/CocoonTwo/build.xml:297:
> javax.xml.transform.TransformerConfigurationException: File
> "file:/home/rajkumar/CocoonTwo/src/org/apache/cocoon/components/browser/Br
> owserImpl.xsl"
> not found.
> --- Nested Exception ---
> 
> Total time: 5 seconds
> 
> 
> 
> -
> 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]>




how to eliminate ......

2001-06-06 Thread Oskar Werewka


stuff like this:

 xspCurrentNode.appendChild(
   document.createTextNode("\n\t\t\t\t\t")
 );

from XSP source code?
Is there a switch, or something to do it?

Regards,
Oskar Werewka



-- 

Kamera wideo Sony, 5000 zl
wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ]


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

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




Re: Cocoon 1.8.2 + SAXON: Failed to Compile Stylesheet ERROR

2001-06-06 Thread Sylvain Wallez



William Bagby a écrit :
> 
> I am using Cocoon 1.8.2 on Weblogic 5.1, and I decided to switch from Xalan
> to Saxon to get a performance boost.  The installation went (relatively)
> smoothly, but now I'm getting the following error when I attempt to view one
> of my pages:
> 
>   javax.xml.transform.TransformerConfigurationException: Failed to
> compile stylesheet. 1 error detected.
>   at java.lang.Throwable.fillInStackTrace(Native Method)
>   at java.lang.Throwable.fillInStackTrace(Compiled Code)
>   at java.lang.Throwable.(Compiled Code)
>   at java.lang.Exception.(Compiled Code)
>   at
> javax.xml.transform.TransformerException.(TransformerException.java:12
> 9)
>   at
> javax.xml.transform.TransformerConfigurationException.(TransformerConf
> igurationException.java:41)
>   at
> com.icl.saxon.PreparedStyleSheet.prepare(PreparedStyleSheet.java:119)
>   at
> com.icl.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.jav
> a:119)
>   at
> org.apache.cocoon.transformer.SAXONTransformer.getTransformer(SAXONTransform
> er.java:309)
>   at
> org.apache.cocoon.transformer.SAXONTransformer.transform(Compiled Code)
>   at
> org.apache.cocoon.processor.xslt.XSLTProcessor.process(XSLTProcessor.java:11
> 6)
>   at org.apache.cocoon.Engine.handle(Compiled Code)
>   at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
>   at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> 
> etc., etc...
> 
> My next move is going through my XSL bit by bit to find this supposed error,
> but I'm hoping that maybe someone has encountered this error message.
> 
> I tried the same XSL with Instant Saxon in XMLSpy and it worked fine. In
> addition, there are other pages that I'm able to view  with Cocoon + Saxon.
> The above page worked with Cocoon + Xalan, even if it was slow as molasses
> in winter.
> 
> Forgive me if this is off-topic, but it is at least Cocoon-related.  Maybe I
> should post this to the XSL list?
> 
> William Bagby.
> 
Does your stylesheet use Xalan-specific features that aren't handled by
Saxon ? Along with this error, Saxon writes some more meaningful
messages in (I guess) System.err which gets printed in my Tomcat
console. You should check weblogic logs or console for this message.
-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com

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

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




AW: [C2]: Missing files in distribution - solved

2001-06-06 Thread Carsten Ziegeler

And again my appologies...

There was another "bug" in the build script for the
distribution which made compiling impossible.
I fixed this and redistributed the dist to the server.

Now the distribution builds very well.

Again sorry, hope things are not getting worse...


Carsten 

Open Source GroupsunShine - b:Integrated

Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de  mailto: [EMAIL PROTECTED] 



> Carsten Ziegeler wrote:
> 
> Hi,
> 
> unfortunately some files were missing in the distribution
> of the beta1, e.g. the build.xml.
> 
> Without wanting to cause big problems I just put a new
> distribution with the missing files in the dist directory
> of the xml.apache.org server.
> This is not the real solution I know, but creating a b2
> only for the missing files is perhaps overdoing it.
> 
> The build.xml file for the 2.1-dev and 2.0b1-dev are
> corrected, so only when you really build the dist 
> for 2.0b1 the files are missing. 
> 
> Sorry for this problems,
> 
> 
> Carsten 
> 
> Open Source GroupsunShine - b:Integrated
> 
> Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> www.sundn.de  mailto: [EMAIL PROTECTED] 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [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]>




[C2] Reloading changed sitemap

2001-06-06 Thread Csaba Nagy

Hi cocooners,

I'm running cocoon 2 in weblogic 6.0 on Windows 2000, and there's a big
problem in that the sitemap is not reloaded if I change it.
In my understanding it should be reloaded as soon as it changes.
Am I missing something ?
Is the sitemap reloading working on other platforms ?

Thanks,
Csaba.

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




Xalan version for Cocoon 1.8.x

2001-06-06 Thread Werner Guttmann

Hi,

I am running Cocoon 1.8.2 on Solaris 2.7 with Sun's JDK 1.2.2, and I
having problems with different Cocoon and non-Cocoon web applications
(residing on the same servlet engine) having different requirements
related to Xalan version numbers, i.e. some of them requiring Xalan 1.2.

Before describing the problem in detail, would anybody know of a reason
why Cocoon 1.8.x would require Xalan 1.2.2 (or below) and hence would
prevent me from switching to Xalan 2 ?

Regards
Werner


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

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




Re: xsp:element and xinclude

2001-06-06 Thread Jim Moran

I accomplish this by:


file


also, make sure you have the xinclude namespace in the document

Jim

- Original Message -
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: "cocoon-users" <[EMAIL PROTECTED]>
Sent: Wednesday, June 06, 2001 11:41 AM
Subject: xsp:element and xinclude


> I would like to include the content of a file into my xsp
> page.
> So I think I need to use this : (to generate the xinclude
> dynamicaly)
> 
>  name="xinclude:href">file ute>
>  name="xinclude:parse">xml
> 
>
> But it's not work : I've got the "whatever" tag in my xml
> flow result but nothing from my file.
> Thanks for your help
> JC
>
>
> --
> Profitez de l'offre spéciale Liberty Surf !
> 50 h / 95 F TTC par mois tout compris pendant 3 mois
> http://register.libertysurf.fr/subscribe_fr/signup.php3
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


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

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




RE: element and xinclude

2001-06-06 Thread JEULIN Olivier

Bonsoir JC :)
I have asked the same question as (many!) others before
(it's all in the list archives... shame on us :) )
you *must* use an 'include' element for xinclude to work:

...

-Message d'origine-
I would like to include the content of a file into my xsp 
page.
So I think I need to use this : (to generate the xinclude 
dynamicaly)

file
xml


But it's not work : I've got the "whatever" tag in my xml 
flow result but nothing from my file.
Thanks for your help
JC

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




Cocoon 1.8.2 + SAXON: Failed to Compile Stylesheet ERROR

2001-06-06 Thread William Bagby


I am using Cocoon 1.8.2 on Weblogic 5.1, and I decided to switch from Xalan
to Saxon to get a performance boost.  The installation went (relatively)
smoothly, but now I'm getting the following error when I attempt to view one
of my pages:

  javax.xml.transform.TransformerConfigurationException: Failed to
compile stylesheet. 1 error detected.
  at java.lang.Throwable.fillInStackTrace(Native Method)
  at java.lang.Throwable.fillInStackTrace(Compiled Code)
  at java.lang.Throwable.(Compiled Code)
  at java.lang.Exception.(Compiled Code)
  at
javax.xml.transform.TransformerException.(TransformerException.java:12
9)
  at
javax.xml.transform.TransformerConfigurationException.(TransformerConf
igurationException.java:41)
  at
com.icl.saxon.PreparedStyleSheet.prepare(PreparedStyleSheet.java:119)
  at
com.icl.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.jav
a:119)
  at
org.apache.cocoon.transformer.SAXONTransformer.getTransformer(SAXONTransform
er.java:309)
  at
org.apache.cocoon.transformer.SAXONTransformer.transform(Compiled Code)
  at
org.apache.cocoon.processor.xslt.XSLTProcessor.process(XSLTProcessor.java:11
6)
  at org.apache.cocoon.Engine.handle(Compiled Code)
  at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)

etc., etc...

My next move is going through my XSL bit by bit to find this supposed error,
but I'm hoping that maybe someone has encountered this error message. 

I tried the same XSL with Instant Saxon in XMLSpy and it worked fine. In
addition, there are other pages that I'm able to view  with Cocoon + Saxon.
The above page worked with Cocoon + Xalan, even if it was slow as molasses
in winter.   

Forgive me if this is off-topic, but it is at least Cocoon-related.  Maybe I
should post this to the XSL list?

William Bagby.

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




Mixing XSL and XSP in a single stylesheet

2001-06-06 Thread Adrian Geissel



Hi,
 
I'm trying to write a data abstraction layer to 
retrieve records from an SQL database (using ESQL) and then to format these into 
an XML fragment (using XSLT) for onward transformation.
 
It appears that the xsl: namespace elements are not 
being executed - can I do this in a single step, or do I need to tease it apart 
into two transformation steps? I've included the important code fragment below, 
with comments following the xsl statements that do not work.
 
Any help will be greatly appreciated
Cheers
Adrian
 
--- Code Fragment ---

 

 

 
  
xmlns:xsp="http://www.apache.org/1999/XSP/Core"  
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  
xmlns:esql="http://apache.org/cocoon/SQL/v2"  
xmlns:zdam="zenark.com/zdam">

 
  
postgresql.Driver  
jdbc:postgresql://193.120.120.11/zdam_test  
sql  
garfield  
    
    SELECT 
id,name,description,category,author,rev_id,status 
 FROM 
latest_revisions        
  
    
    
    
    
    
 
  
 
  
      

 

--- End Code Fragment --- 


xsp:element and xinclude

2001-06-06 Thread [EMAIL PROTECTED]

I would like to include the content of a file into my xsp
page.
So I think I need to use this : (to generate the xinclude
dynamicaly)

file
xml


But it's not work : I've got the "whatever" tag in my xml
flow result but nothing from my file.
Thanks for your help
JC


--
Profitez de l'offre spéciale Liberty Surf !
50 h / 95 F TTC par mois tout compris pendant 3 mois
http://register.libertysurf.fr/subscribe_fr/signup.php3



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




Cocoon-2.0b1 -- build fails

2001-06-06 Thread Rajkumar, Joseph

Hi folks

Just now I downloaded the Cocoon-2.0b1.tar.gz (9930213 bytes)
and tried to build it after setting my JAVA_HOME on a linux box.

   The build fails with the following message
Regards
Joseph Rajkumar
==
[rajkumar@gman CocoonTwo]$ ./build.sh  -Dinclude.webapp.libs=yes webapp
Buildfile: build.xml
init:
--- Apache Cocoon 2.0b1 [1999-2001] 
generate-java-code:
Transforming into
/home/rajkumar/CocoonTwo/build/cocoon/src/org/apache/cocoon/components/browser

Loading stylesheet
/home/rajkumar/CocoonTwo/src/org/apache/cocoon/components/browser/BrowserImpl.xsl

Failed to read stylesheet BrowserImpl.xsl

BUILD FAILED

/home/rajkumar/CocoonTwo/build.xml:297:
javax.xml.transform.TransformerConfigurationException: File
"file:/home/rajkumar/CocoonTwo/src/org/apache/cocoon/components/browser/BrowserImpl.xsl"
not found.
--- Nested Exception ---

Total time: 5 seconds



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

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




Re: Cocoon and Sessions

2001-06-06 Thread declan kelly

I bet your error is caused by not including the create
session directive in the namespaces declaration.

Anyway here's a very simple little login thingy, it
takes stuff from a form and logs you in or redirects
you back.







http://apache.org/cocoon/SQL/v2";
xmlns:xsp="http://www.apache.org/1999/XSP/Core";
xmlns:session="http://www.apache.org/1999/XSP/Session";
create-session="true">

String sqlstring = "";
String username ="";
String passwd = "";
String UID="";
final static char APOS = (char)39;
final static char BLANK = (char)32; 


 
username = request.getParameter("username");
passwd= request.getParameter("passwd");

(username.replace(APOS,BLANK)).trim();
(passwd.replace(APOS,BLANK)).trim();


username.toLowerCase();
passwd.toLowerCase();

sqlstring = "SELECT * FROM users WHERE user_name =
'" + username + "'";


project


sqlstring




if(passwd.equals())
{






response.sendRedirect(response.encodeRedirectURL("menupage.xml"));
}
else

response.sendRedirect("login.xml?error=1"); 





response.sendRedirect("login.xml?error=1");



Try Again




Then on every page which you should be logged in to
see include this 




try{;}
catch (NullPointerException e)
   {
response.sendRedirect("login.xml");
   }





--- Truhann van der Poel
<[EMAIL PROTECTED]> wrote:
> I am new to Cocoon and sessions. Are using C1.8.2.
> 
> Can anybody send a beginner sample (or pointer to
> help-documentation) to
> setup/save/retrieve variables from a session.  
> All the  tags in my xsp page create
> NullPointer's.
> 
> Truhann
> 
>
-
> 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]>
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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

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




Re: Cocoon and Sessions

2001-06-06 Thread paint007


Truhann,

you are probably doing everything right, but there is one small thing that
the documentation doesn't cover very well.  You need to set the
create-session attribute to true in your  element, like this:
http://www.apache.org/1999/XSP/Core";
  create-session="true"
>

Otherwise the session isn't created/retrieved and you get the exceptions as you 
describe.

-Christopher




Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Cocoon and Sessions


I am new to Cocoon and sessions. Are using C1.8.2.

Can anybody send a beginner sample (or pointer to help-documentation) to
setup/save/retrieve variables from a session.
All the  tags in my xsp page create NullPointer's.

Truhann







-
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: Adding root context to cocoon samples

2001-06-06 Thread paint007


Sundar,

there are probably multiple ways to approach this.  I think you can change
the "docBase" in the Context for your app in Tomcat's server.xml
configuration file to point to your document root.  Alternately, you can
point Apache's DocumentRoot to your context.  For instance, if your Cocoon
application is in a directory /opt/tomcat/webapps/cocoon, you can edit
Apache's httpd.conf and change DocumentRoot to be
/opt/tomcat/webapps/cocoon.  We've done this successfully.  I can't
remember if we had to modify the mod_jk-auto.conf to do it.  If you end up
having to modify that file, I suggest you take it out of Tomcat's directory
and put it in with the Apache conf files, rename it to mod_jk.conf, and
maintain it yourself.

Before doing anything like this, though, I recommend getting familiar with
Apache's documentation on configuring Apache (particularly about
DocumentRoot, Directory, etc.) and Tomcat's documentation on configuring
Tomcat contexts.

-Christopher




Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Adding root context to cocoon samples


Hello,

Probably, its been answered so many times but I couldn't find it in the
archives. So, following is my question.

I am able to successfully put cocoon2 samples in my Apache+Tomcat
configuration and able to access under www.mydomain.com/cocoon by adding
/cocoon context in mod_jk-auto.conf

But I am having trouble adding root context to a cocoon sample application
--
Hello World.

That is when I key in 'www.mydomain.com', I want the web server to serve
hello application(index.xml) (For that matter any cocoon application)

Any help is appreciated.

Sundar







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




WMLScript

2001-06-06 Thread Antonio Parolini

Hi,
I know this is off topic, but anyone know any good WML mailing list out
there ?

thanks...

- Tony

> -Original Message-
> From: Truhann van der Poel [mailto:[EMAIL PROTECTED]]
> Sent: quarta-feira, 6 de junho de 2001 11:25
> To: [EMAIL PROTECTED]
> Subject: Cocoon and Sessions
>
>
> I am new to Cocoon and sessions. Are using C1.8.2.
>
> Can anybody send a beginner sample (or pointer to help-documentation) to
> setup/save/retrieve variables from a session.
> All the  tags in my xsp page create NullPointer's.
>
> Truhann
>
> -
> 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]>




AW: No build.xml in Beta1?

2001-06-06 Thread Carsten Ziegeler



> -Ursprüngliche Nachricht-
> Von: John Schult [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 6. Juni 2001 16:02
> An: Cocoon Users
> Betreff: No build.xml in Beta1?
>
>
> The build.xml file seems to be missing in the beta1 dist.  Is this right?
>
No unfortunately not. I will fix this in the next hour and update the
distribution.


Carsten

Open Source GroupsunShine - b:Integrated

Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de  mailto: [EMAIL PROTECTED]


>
> Kind regards,
>
> ++john
>
>
> -
> 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]>




Cocoon and Sessions

2001-06-06 Thread Truhann van der Poel

I am new to Cocoon and sessions. Are using C1.8.2.

Can anybody send a beginner sample (or pointer to help-documentation) to
setup/save/retrieve variables from a session.  
All the  tags in my xsp page create NullPointer's.

Truhann

-
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: its urgent

2001-06-06 Thread paint007


Plenty of samples have been posted; search the list archives.  Other
information exists in the Cocoon documentation, code samples, and FAQ.  I
doubt anyone is going to write a general purpose manual on these topics in
a hurry to meet your urgent need.  :)  So you might have better luck if you
post a specific question about the errors you are getting.

-Christopher




Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  its urgent


HI ALL
 here i'm able to connect to database and its displaying values
also
but . i want to develop login screen kind of thing, i'm facing so many
syntax errors  . so i need "Material on XSP and ESQL" plz..it will help me
alot.
or some example programs ..if possible
its very urgent..plz

Thanks Ramesh







-
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: Web Publishing System...

2001-06-06 Thread paint007


The link on the page seems to be broken; I can't view your gif.




Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Re: Web Publishing System...


hi Christopher,Donald Ball

Thank for your reply, and i found the way to solve my problem.
I have build a Cocoon1.8 process flow, but still don't know is it correct
or not,
so really need you help for giving comment on the process flow.

You may view the process flow at :
http://www.webappcabaret.com/mysoft/cocoon1.8/

Thank you.

Kok Choon.








-
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: Javascript & XML/XSL

2001-06-06 Thread paint007


Your  tag looks fine.  If it runs fine in html, then take a look at
your html output by Cocoon.  Both IE and Netscape allow you to view source
for a page.  You can easily see if there is some difference that is causing
a problem.

-Christopher




Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Javascript & XML/XSL


hi,

I am facing some problems when i try to put some javascript and flash in my
xsl file. May i know
any solution to solve this problem.

The flash run well on the IE, but not appear at the netscape 4.7.
The javascript fail to run the menu type( the javascript to show the menu
style) of javascript (
error is something undefined ).

i separate the javascript file from the xsl file by: