Re: X Server problem solved with Java 1.4 ?

2002-02-21 Thread aaldridg
The java 1.4 'headless' solution is only a partial solution. It still requires an X server (or pja - which works best for me) for a lot of the awt calls - bit stupid really. I think the pja solution I posted in the past is the most stable - if you need me to reiterate, tell me. Regards, Anthony

Re: PJA or Xvfb

2002-01-31 Thread aaldridg
Personally I had a lot more luck with pja - it also seems at least, to have a smaller footprint. If you send me your java command line (OPTS var or whatever), I may be able to help with your config problems. Regards, Anthony Aldridge AD Support CSC Managed Intranet Hosting Personal GDP: 8-325-4

Re: Running cocoon without X

2002-01-24 Thread aaldridg
Here's my startup script. Notice there are two types of classpath which I have explicitly added to the command line (I use tomcat). That was my original mistake! Not sure how your classpath is configured, but I guess you may have the same problem. First I added the bootclasspath - this is importa

RE: What are content management and middleware?

2002-01-09 Thread aaldridg
Sounds good to me - free and cross platform has to be the way to go. Could be a Java Application as opposed to a web browser based app though. Probably more efficient. I'd be happy to get involved. Regards, Anthony Aldridge Lead Application developer Managed Intranet Hosting CSC JPMorganChase

Re: What are content management and middleware?

2002-01-08 Thread aaldridg
kinda begs the question - who's gonna build the content management GUI on top of cocoon? That's the killer app after all! Regards, Anthony Aldridge Lead Application developer Managed Intranet Hosting CSC JPMorganChase Personal GDP: 325-8338 MIH Hotline: 876-1300 Rick <[EMAIL PROTECTED]> o

CPU usage - sometimes very high (only sometimes)

2001-12-24 Thread aaldridg
Hi all, I get a horribly high CPU usage from c2 - but only sometimes. It lasts for hours. Alternatively it seems very happy. This has nothing to do with the page request - it's happening when I put in the first request to my home page. The c2 log says it's finished - tomcat says it's finished -

Re: Request attributes?

2001-12-06 Thread aaldridg
Storing these in the session makes them persist across calls, whereas storing them in as request objects makes them 'local' to that particular request (ie non-persistant). Regards, Anthony Aldridge Lead Application developer Managed Intranet Hosting CSC JPMorganChase Personal GDP: 325-8338 MIH

Re: Request attributes?

2001-12-06 Thread aaldridg
Hi David, Temporary storage (and passing of vars down the chain) is precisely what I use the attribs for. Here's a bit of code for sending an id to another object via the Request object: req.setAttribute("jbxsp-id",instanceId); instance.setReq(req); Regards, Anthony Aldri

Re: running Tomcat in background when I log off

2001-11-28 Thread aaldridg
With tomcat I found the problem wasn't just the terminal session being killed, but Tomcat would hang if didn't have somewhere to send its STDOUT and STDERR. (It seems to use STDERR for most of its output for some reason). Although nohup ought to redirect these itself, I've always found the need to

Re: Generators.. was: Re: SV: What is Cocoon good for???

2001-11-15 Thread aaldridg
Looks great, but doesn't this mean a less efficient system - ie isn't it going through a number of extra steps to arrive at thge same functionality? Regards, Anthony Aldridge Lead Application developer Managed Intranet Hosting CSC JPMorganChase Personal GDP: 325-8338 MIH Hotline: 876-1300

Re: Strange Netscape Behavior

2001-11-15 Thread aaldridg
Without seeing your (html) output its hard to say - but I've been having a lot of problems with javascript interferiong with netscape's font rendering (strange characters etc). Perhaps you can send some info so we can swap notes - I DO think it's a Netscape bug ultimately though. Regards, Antho

RE: Generators.. was: Re: SV: What is Cocoon good for???

2001-11-14 Thread aaldridg
Here's the xsp page: http://apache.org/xsp"; > net.securinet.jbxsp.* org.apache.cocoon.environment.http.* ** As you see, it includes my library (net.securinet.jbxsp.*) and the cocoon http env

Re: Reducing system resource usage by Tomcat/Cocoon

2001-11-14 Thread aaldridg
Interesting - I've been running c2 on NT and UNIX - it seems much better behaved under UNIX - I still fail to understand the CPU usage when it's idle (100% if allowed on NT! and 2.6% on UNIX, but why, it's not doing anything). dunno the answer. Maybe should be posted to the 'dev' mail list. Rega

Re: Generators.. was: Re: SV: What is Cocoon good for???

2001-11-14 Thread aaldridg
I've had a lot of success using xsp to instantiate my java classes and subsequently call toSAX (formerly toDOM) from the xsp page. In fact this is basically what I use xsp for (with subsequent xslt processing of course). Although the xml is usually produced internally within my classes, some do re

Re: What is Cocoon good for???

2001-11-13 Thread aaldridg
>This is done to allow Cocoon 2 to run in any environment and not only >servlet container. C2 can be used also in any other environment, e.g.: >command line (this one is implemented), EJB (this one is possible, although >I've never heard of implementations). Extending from a class doesn't bind it

Re: What is Cocoon good for???

2001-11-13 Thread aaldridg
I too wonder why "org.apache.cocoon.environment.Request" mimics but doesn't extend "javax.servlet.http.HttpServletRequest". Isn't that what objects are for? Regards, Anthony Aldridge Lead Application developer Managed Intranet Hosting CSC JPMorganChase Personal GDP: 325-8338 MIH Hotline: 876-13

Re: Headless Server and jdk 1.4

2001-11-09 Thread aaldridg
Hi Robert, This is a copy of a couple thread from the cocoon-dev list regarding jdk 1.4. As you can see, I can't get it working at all - looks like you're having more luck than I am. The first problem was solved. however, and might be relevant, the second hasn't yet been solved. Nice to hear you

Re: Fixes for the X11 problem are failing!!!

2001-10-04 Thread aaldridg
I experience the same behaviour as below, having removed the svg and pdf references in sitemap. I also removed them from the cocoon.properties file just in case - still no joy. H. >> ** >> Solution 2: removing any reference to SVG and PDF. >> This should disable any call to Batik, which

Re: Cocoon2 with no batik at all.

2001-10-04 Thread aaldridg
: 325-8338 MIH Hotline: 876-1300 Gregory Steuck <[EMAIL PROTECTED]> on 03/10/2001 18:42:43 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: Cocoon2 with no batik at all. >>>>> "aaldridg" == aaldridg <[EMAIL PROTECTED]> write

Re: Cocoon2 with no batik at all.

2001-10-03 Thread aaldridg
I just moved from dev (on NT) to production (UNIX) and realised the extent of this problem. My initial reaction was to remove all references to svg in the sitemap. This did NOT however stop the problem, I still got the error during sitemap generation relating to svg! Oh dear, this does not look go

HttpServletRequest object accessible from C2

2001-08-30 Thread aaldridg
Hi all, Following earlier questions regarding how to get hold of the HttpServletRequest object from C2, here's a couple of techniques from the dev mailling list. HttpServletRequest httpRequest = (HttpServletRequest)this.objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT ); My favourite is:

Re: [C2] substitute for xsp-request

2001-08-16 Thread aaldridg
Using java you can (in a logic block?) you can use ((HttpRequest) request).getParameter(name). Use the Integer class to convert a String to an int in java: Integer.parseInt(string) however, be careful, if the String is not a properly formed int it will throw an exception. Best to wrap it in a tr

Re: C2 request object

2001-08-15 Thread aaldridg
Hi, I had the same problem. It's strange the API says that HttpRequest implements HttpServletRequest. It does in all but name - ie it has all the methods, but doesn't explicitly implement the interface. I posted this question before asking if this was an oversight or done on purpose - but no res