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
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
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
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
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
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 -
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
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
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
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
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
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
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
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
>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
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
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
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
: 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
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
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:
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
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
23 matches
Mail list logo