Internal Cocoon Problem? - Multiple DB Inserts (revisited)

2004-03-05 Thread Brent L Johnson
In case it helps.. I cleared out the logs and logged in.. then noticed these error level messages in error.log and access.log.. dont know if this could be the cause of the multiple inserts from my XSP... (the exceptions are the same in both files) ERROR (2004-03-05) 15:33.39:606 [access] (Unkn

Multiple DB Inserts (revisited)

2004-03-05 Thread Brent L Johnson
The original thread for this is: http://marc.theaimsgroup.com/?t=10748889214&r=1&w=2 In a nutshell.. I'm using the authentication framework (now with Cocoon 2.1.4) and I'm still having this multiple insert problem. Here is the sitemap snippet...

RE: cocoon 2.1.4 performance

2004-03-04 Thread Brent L Johnson
> - install 2.1.4 > - copy xml-apis.jar and xerces-impljar to > /common/endorsed > - increase pool-max sizes to 1024 > - set maximum heap size to 512M using -Mx > > [without the last option, the StoreJanitor runs out of memory > to store data, and starts returning BLANK data to the > brows

RE: 2.1.4 Upgrade and DOCTYPE

2004-03-04 Thread Brent L Johnson
Ahhh.. changes in the new sitemap.xmap file. D'oh.. just slap me :) - Brent > -Original Message- > From: Brent L Johnson [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 04, 2004 3:56 PM > To: [EMAIL PROTECTED] > Subject: 2.1.4 Upgrade and DOCTYPE > > >

2.1.4 Upgrade and DOCTYPE

2004-03-04 Thread Brent L Johnson
I just upgraded my Sentinel Web Portal (http://sentinel.bjohnson.net) to use Cocoon 2.1.4 and suddenly IE started displaying the pages differently (strange padding around the table cells). I checked the HTML source thats being generated and I'm now getting the following DOCTYPE: http://www.w3.org

RE: Link Livesites: Cocoon 2.1

2004-02-18 Thread Brent L Johnson
Is it just me or is everyone else getting a 403 Forbidden error when attempting to view this site? - Brent > -Original Message- > From: Peter Velychko [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 18, 2004 8:09 AM > To: [EMAIL PROTECTED] > Subject: Link Livesites: Cocoon 2.1 > >

Reading Configuration Data in an XSP

2004-02-12 Thread Brent L Johnson
I'm sure this question has been posed to this list, but I searched around on the archives all the way back to 2002 and didn't find anything (at least with the keywords I was searching for). I'm using the authentication framework to handle logins, I then store the person's userID in the session. I

RE: HTMLGenerator and Request Params

2004-02-11 Thread Brent L Johnson
cke [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 11, 2004 4:32 PM > To: [EMAIL PROTECTED] > Subject: Re: HTMLGenerator and Request Params > > > On 05.02.2004 21:21, Brent L Johnson wrote: > > > Im attempting to pass some parameters through to > > the

Validation of Multiple Params

2004-02-10 Thread Brent L Johnson
Not sure if that subject really explains what I'm trying to do .. but here goes .. Is there a way I can do a test like "if subject AND body request parameters are null then..." ? I mean.. I can check and have the form validator return an error if subject is null, or body is null.. but what about

RE: Form Validator Problem

2004-02-10 Thread Brent L Johnson
OK - I took a break and went and had some lunch. When I got back I decided to check the logs.. and in the sitemap.log I found the problem. I knew it was something small I was missing.. I gave the action the incorrect path for the send_descriptor.xml file! - Brent > I **know** I'm missing somethi

Form Validator Problem

2004-02-10 Thread Brent L Johnson
I **know** I'm missing something here.. but I'm following through the form-validation docs and it seems easy.. but everytime I run this pipeline I get sent to the error page and the xsp-formval:on-xxx calls dont seem to be give me the expected output even when there is an error. Can someone please

RE: Memory Leak with Tomcat (was Re: A notebook for Cocoon development)

2004-02-10 Thread Brent L Johnson
> > It does span restarts.. but the first few restarts work > fine. The way > > *I* fix the problem is I have to completely kill tomcat, > and check for > > any running java processes and kill them.. let the machine sit and > > start Tomcat back up again. It's really weird, but I never really

RE: Memory Leak with Tomcat (was Re: A notebook for Cocoon development)

2004-02-10 Thread Brent L Johnson
> > None that I've noticed. But unlike John, I dont wait for > > OutOfMemory.. once performance drops I can't stand it so I just > > restart Tomcat. > > I thought you were saying this problem spanned restarts - obviously > we're talking about re-deploys in a running container then. > So how

RE: A notebook for Cocoon development

2004-02-10 Thread Brent L Johnson
> - John, do you also use Tomcat? Which version do you both use? I'm using 4.1.27. > - For a trial, do you get the same behavior deployed on > Jetty? (either > the bundled version or the full version from mortbay.org) Haven't tried it with Jetty. > - Are there any symptomatic errors in cocoo

RE: A notebook for Cocoon development

2004-02-09 Thread Brent L Johnson
and myself). As for development I'm also using the same version. - Brent > -Original Message- > From: Geoff Howard [mailto:[EMAIL PROTECTED] > Sent: Monday, February 09, 2004 6:48 PM > To: [EMAIL PROTECTED] > Subject: Re: A notebook for Cocoon development > >

Cocoon Blogger

2004-02-09 Thread Brent L Johnson
OK I'm not big into blogging or anything but it appears to be pretty popular. Im thinking of writing an integrated Cocoon blogger for my Sentinel application (http://sentinel.bjohnson.net). I've added blogger.com integration (using their Atom feeds) so I can read blogs. But I was thinking of ful

RE: A notebook for Cocoon development

2004-02-09 Thread Brent L Johnson
I've noticed something very similar. I've got a production box running right now out of Florida and it runs Cocoon with Tomcat just fine.. been running for well over a month now (with small amounts of traffic though, since it isnt scheduled to go live until next month). But my development machine

RE: Dynamic SVG Creation

2004-02-09 Thread Brent L Johnson
Not sure if this is what you need.. but here goes: Sitemap: SVG File: Home XSL File: Description of how it works: You can ignore the font stuff if you want. I just created an XSL file that has embedded fonts th

RE: Encoding Params in the Sitemap

2004-02-09 Thread Brent L Johnson
Is his patch included in CVS now? > > Thanks, > > - Brent > > > -Original Message- > > From: Geoff Howard [mailto:[EMAIL PROTECTED] > > Sent: Saturday, February 07, 2004 6:10 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Encoding Params in the Sitemap >

RE: Encoding Params in the Sitemap

2004-02-07 Thread Brent L Johnson
: Geoff Howard [mailto:[EMAIL PROTECTED] > Sent: Saturday, February 07, 2004 6:10 PM > To: [EMAIL PROTECTED] > Subject: Re: Encoding Params in the Sitemap > > > Brent L Johnson wrote: > > > Is there a way I can encode the {request-param:paramname} in a > > sitemap?

RE: Encoding Params in the Sitemap

2004-02-07 Thread Brent L Johnson
t's the key. Thanks! - Brent > -Original Message- > From: Geoff Howard [mailto:[EMAIL PROTECTED] > Sent: Saturday, February 07, 2004 6:10 PM > To: [EMAIL PROTECTED] > Subject: Re: Encoding Params in the Sitemap > > > Brent L Johnson wrote: > >

Encoding Params in the Sitemap

2004-02-07 Thread Brent L Johnson
Is there a way I can encode the {request-param:paramname} in a sitemap? I'm trying to use a request parameter in the HTMLGenerator as part of a GET request, but using {request-param:paramname} decodes the parameter. So if the parameter has a space - instead of putting a %20 back into the GET it g

HTMLGenerator and Request Params

2004-02-05 Thread Brent L Johnson
Im attempting to pass some parameters through to the src of the HTML generator and I'm getting an IOException. Here is my sitemap snippet: http://www.somewebsite.com/someSearchUrl.cgi?param={searchParams}"/ > I try to access this by going to http://

HTMLGenerator and Passing Params

2004-02-05 Thread Brent L Johnson
Im attempting to pass some parameters through to the src of the HTML generator and I'm getting an IOException. Here is my sitemap snippet: http://www.somewebsite.com/someSearchUrl.cgi?param={searchParams}"/ > I try to access this by going to http://

RE: Evaluation of Cocoon

2004-02-02 Thread Brent L Johnson
> You are under a slight misperception. In a clustered > environment all requests must go to the cluster, but to any > server in the cluster - not just the one the user logged > into. Oh - maybe I misread the email.. I must have missed the part about them running a cluster. Just that they had

RE: Evaluation of Cocoon

2004-02-02 Thread Brent L Johnson
> >> Subsequent requests may be routed to different servers. > >> Here I see a possible problem with Cocoon > > > The same problem will apply to any site that uses sessions. > > Yes, though most application servers have some mechanism for > replicating sessions. Having 'sticky' sessions is certa

TV Guide w/ Cocoon

2004-01-29 Thread Brent L Johnson
Well I just added the coolest (I think.. of course I wrote it.. so my opinion is a little biased) feature to my new Sentinel app (if you dont know that is check the mailing list archive for my previous anouncement message). I just added integration with XMLTV. A complete TV guide using XMLTV and

RE: Large XML File as Generator

2004-01-29 Thread Brent L Johnson
L file > (are you using "file" or "serverpages" in the generator)? An > XSP file will be compiled into a Java class which cannot be > larger than 64 kb. May be your are including your large XML > file into your XSP file. > > Hugo Burm > > >

Large XML File as Generator

2004-01-27 Thread Brent L Johnson
Does anyone know why I get the following when I attempt to use a large XML file as a generator? (a blank page in my browser that looks like this...) I get no errors or anything else.. this only happens with large files. If I cut the file down it works just fine. I've seen this behavior on di

Large XML File as Generator

2004-01-27 Thread Brent L Johnson
(anyone know why Im having problems sending email to this mailing list? anyone else having any similar problems lately?) Does anyone know why I get the following when I attempt to use a large XML file as a generator? (a blank page in my browser that looks like this...) I get no errors or any

Escaped XML Content

2004-01-27 Thread Brent L Johnson
(having some James SMTP problems now.. nice.. email I send is getting hanging in the spool and shows as "error" and not delivering.. hopefully this gets thru) When pulling down some RSS feeds and Google search results I've noticed that sometimes that content contains HTML. But the HTML tags in th

RE: Conditional Aggregation?

2004-01-26 Thread Brent L Johnson
> > Well - I thought about using the cinclude transformer > > (since I'm using it elsewhere). But - the problem is, > > that doesnt seem to help me with the conditional part. > > > > I only want to cinclude under certain conditions. So > > I'm not exactly sure how I could use a cinclude to > > d

Conditional Aggregation?

2004-01-26 Thread Brent L Johnson
I'm currently using map:aggregate to pull together multiple XSP's into a single source. This works fine for all the "static" XSP content I want. But what about conditional content? I.e. Im writing a builtin google search. I've got an XSP that does a SOAP call to pull the search results. But I d

Re: Multiple DB Inserts for XSP?

2004-01-26 Thread Brent L Johnson
> Sorry, I have no clues on your main question but I just had to pipe in > on this strategy. Most people would really recommend that you not use a > generator to perform "actions". That's what flow (and Actions) are for. I think I'll take this advice and modify the code that do these actions t

Re: Cocoon Personal "Portal"

2004-01-26 Thread Brent L Johnson
Sorry for the delayed response. I've been having some problems with the mailing list lately. For some reason I've not been getting all the messages sent to the list. My sentinel portal app uses Apache James with FetchPOP and ever since I turned that on emails sent to this list have been complete

Multiple DB Inserts for XSP?

2004-01-23 Thread Brent L Johnson
(Hope Im not spamming the mailing list.. I'm sending this a third time because I'm not seeing it coming through the mailing list.. I resubscribed to the list and tried again) I'm using the authentication framework to handle logins on the site I'm working on. When the login is handled successfully

Multiple DB Inserts for XSP?

2004-01-23 Thread Brent L Johnson
I'm using the authentication framework to handle logins on the site I'm working on. When the login is handled successfully the pipeline should do a map:generate for an XSP that does a database insert into a login_log table. But - when I login.. I get TWO rows into the database, for one single ins

Multiple DB Inserts for XSP?

2004-01-23 Thread Brent L Johnson
I'm using the authentication framework to handle logins on the site I'm working on. When the login is handled successfully the pipeline should do a map:generate for an XSP that does a database insert into a login_log table. But - when I login.. I get TWO rows into the database, for one single ins

Cocoon Personal "Portal"

2004-01-22 Thread Brent L Johnson
I'm working on a type of "personal" portal that pulls together information in one easy place. I'm doing this using Cocoon and it's turning out to work very well! The system supports any type of RSS/RDF feeds (by downloading cached versions every hour) and also uses SOAP to pull down weather data

RE: Cached response not found?

2003-12-17 Thread Brent L Johnson
Sorry - when moving around my HTML I left off the enctype="multipart/form-data" attribute on the tag. After adding that back it works fine. - Brent > I created a new Action to do file uploading. It was working > yesterday and I made some changes to some HTML here and there > but thats all. N

Cached response not found?

2003-12-17 Thread Brent L Johnson
I created a new Action to do file uploading. It was working yesterday and I made some changes to some HTML here and there but thats all. Now I'm getting the following in my log file when I try and upload a file: DEBUG (2003-12-17) 15:49.30:022 [sitemap] (/admin/upload/paymentVerification.htm

File Downloads and Caching

2003-12-16 Thread Brent L Johnson
I'm using the following pipeline for downloadable files: This works fine for Mozilla based browsers. Using IE though, I get an error like: "Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found

IE Downloads Fail?

2003-12-08 Thread Brent L Johnson
I'm trying to download some standard binary content using the application/octet-stream mime type but Internet Explorer (6) pops up with the following error: "Internet Explorer was nto able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again l

RE: Content Updating

2003-12-08 Thread Brent L Johnson
> You said you were using XSP, so that snippet is an XSP > snippet. Won't > work this way in XSL. Ack sorry - I was using XSP but recently switch to XML since I wanted to pull the logic out of the basic content documents. Basically, I'm using an XML file as a generator. Then Im doing a transf

RE: Content Updating

2003-12-07 Thread Brent L Johnson
> I understood him to mean that he was sending a string with > xml data to > be parsed - in which case the only option is server side, and it's as > easy as: > > /> > > in an xsp page where the namespace for util is defined as: > xmlns:util="http://apache.org/xsp/util/2.0"; > > That snippet

RE: Content Updating

2003-12-05 Thread Brent L Johnson
> Look through the archives - unless I misunderstand you this > has been discussed ad nauseum. In your case, there is an > xsp tag to cause the value of your parameter to be parsed > as xml and passed down the line of SAX events. I did a quick pass over the mailing list archives but didnt see any

RE: Content Updating

2003-12-05 Thread Brent L Johnson
ll XML > processing on the server. > > Hope this helps, > > Chris > > -Original Message- > From: Brent L Johnson [mailto:[EMAIL PROTECTED] > Sent: Friday, December 05, 2003 11:08 AM > To: [EMAIL PROTECTED] > Subject: Content Updating > > > Im

Content Updating

2003-12-05 Thread Brent L Johnson
Im creating a basic content management system to allow users to change the content in some of the XML documents. I'm reading the content and putting it into a textarea and doing a form post. To print a preview of the page I have an XSP file that uses xsp-request to use the data that was posted in

RE: Content Updating

2003-11-20 Thread Brent L Johnson
> From: Chris Morgan [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 20, 2003 4:46 PM > To: [EMAIL PROTECTED] > Subject: RE: Content Updating > > I work for a textbook publisher and we have similar > requirements. Basically, you need a client that will > generate some form of valid XML or

RE: Content Updating

2003-11-20 Thread Brent L Johnson
By the way - I did run across the SourceWritingTransformer and I'm looking into that now. Is that the best approach for accomplishing this task? Thanks, - Brent > I want my customers (other employees of the company I work > with) to be able to update their own content. I'm a web > developer,

Content Updating

2003-11-20 Thread Brent L Johnson
I want my customers (other employees of the company I work with) to be able to update their own content. I'm a web developer, and Im not really interested in doing content updates all day long. I'm using Cocoon for their production site (or will be when it goes live end-of-this-year) and I was wo

Database Actions

2003-11-14 Thread Brent L Johnson
I've found many threads in this mailing list related to "redirecting after XSP processing". I'm trying to do pretty much what most others were.. I dont want a "Your data has been inserted" type page to serialize as output. I just want it to go back to a "listing" type page. Basically from what I

RE: NullPointerException Executing Pipeline

2003-11-13 Thread Brent L Johnson
a filesystem > path, since its importing it on the server instead of the > client maybe it cant resolve it. (?) > > -Original Message- > From: Brent L Johnson [mailto:[EMAIL PROTECTED] > Sent: 13 November 2003 17:49 > To: [EMAIL PROTECTED] > Subject: RE: NullPoin

RE: NullPointerException Executing Pipeline

2003-11-13 Thread Brent L Johnson
> AKAAoAMBIgACEQEDEQH/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ > EBAQEBAQEBAQEB > AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ > EBAQEBAQEBAQEB > > The nullpointerexception can be caused by anything, do error.log and > core.log reveal anything more specific? > >

RE: NullPointerException Executing Pipeline

2003-11-13 Thread Brent L Johnson
EAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ > EBAQEBAQEBAQEB > AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ > EBAQEBAQEBAQEB > > The nullpointerexception can be caused by anything, do error.log and > core.log reveal anything more specific? > > > Brent L Joh

NullPointerException Executing Pipeline

2003-11-13 Thread Brent L Johnson
Ouch - I think Batik supports embedding an image into an SVG file. I tried this using an xlink attribute like the following: http://www.w3.org/1999/xlink";> Add (ignore the .. I have a stylesheet that transforms this into a font ) When I try and run the pipeline that does a svg

Images Sizes

2003-10-30 Thread Brent L Johnson
I'm using the svg2jpeg serializer to create all the buttons for my menu. These images are simply rectangles with centered text in the middle (I'm using images so I can use any font I choose without relying on the fonts on the end-user's machine). This image is 118x20 - nothing to it really... Hom

RE: [OT?] - XUL

2003-10-29 Thread Brent L Johnson
Wow I've never even heard of this - I guess using IE too much will do that to ya. I assume XUL is the XML format the browser frontend is written in to allow for different skins in Mozilla? I've heard the GUI is all in XML, but didnt realize you could utilize this for building web app gui's. I'd

Minimal Cocoon Webapp

2003-10-29 Thread Brent L Johnson
I based my current Cocoon 2.1 webapp on the samples. I just zipped up my webapp for backup purposes and noticed that the file zipped was 30MB. I saw on the Wiki someone has directions for creating a minimal cocoon install - but the directions are for Cocoon 2.0. Is there an ant task "minimal" or

Patterns and Authentication

2003-10-24 Thread Brent L Johnson
I can't seen to do the pattern matching on a pipeline to work when using authentication. I successfully got the Authentication Framework working properly (thanks Laurent Trillaud for the link to the mailing list archive). Here is the match:

Authentication with JDBC

2003-10-23 Thread Brent L Johnson
I can't quite figure out how (or where) Cocoon runs the SQL necessary for testing my userid/passwords for the Authentication Framework. Does Cocoon make a call out to some specific Java class that I need to write in the auth-login pipeline or something? I've read the doc on Authentication, and th

RE: Special Chars in HTML Output

2003-10-23 Thread Brent L Johnson
That does make since that it wouldnt escape the chars between script tags. So I checked my sitemap file and I was indeed serializing to xhtml - so I changed it to html and I'm still having the same problem. Pretty straightforward. I'll dig through the docs r

Special Chars in HTML Output

2003-10-22 Thread Brent L Johnson
I'll say sorry up front - I'm sure this is a newbie thats been answered a hundred times on this list. The search terms are so vague that I don't get any good results from searching around on the internet. Pretty simple - I've got Javascript in my XSL file that needs a less-than symbol. I've got

RE: Cocoon 2.1.2 on Apache/Tomcat

2003-10-22 Thread Brent L Johnson
> On Wed, Oct 22, 2003 at 11:17:17AM -0400, Brent L Johnson wrote: > > OK - does anyone have any success running Apache HTTPD with Tomcat > > using the JK2 connector with Cocoon? Is it even worth it? > For now I > > just turned on the Http connector in Tomcat and Coc

Cocoon 2.1.2 on Apache/Tomcat

2003-10-22 Thread Brent L Johnson
OK - does anyone have any success running Apache HTTPD with Tomcat using the JK2 connector with Cocoon? Is it even worth it? For now I just turned on the Http connector in Tomcat and Cocoon is working fine. It seems as though Apache attempts to serve some files without consulting Cocoon's sitema

Tomcat 4.1.27 problems with Cocoon 2.1.2

2003-10-21 Thread Brent L Johnson
I've Apache HTTPD server connecting to Tomcat 4.1.27 using the JK2 Coyote connector. That part has been running just fine. I decided to use the latest version of Cocoon (I used it during the 1.x versions) so I downloaded it - modified the build.properties to exclude the samples and docs. I just