You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lee Pollington <ma...@leepollington.net> on 2003/03/17 17:43:33 UTC
Cant get an exception
Hi,
I have built my own generator, using the tutorials. I can get it to work in
a test harness and it produces a well-formed set of SAX events. However once
inside cocoon, I get nothing, just an empty HTML page. I have recreated the
cocoon libraries environment on the command line and it works. A simple
helloworld generator works, so I am deploying OK, nothing in the error logs.
Apart from attatching a debugger to the VM, I am at a loss as where to go
from here.
If you have a strategy for this, please let me know.
tia,
Lee
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: Cant get an exception
Posted by Charles Yates <ce...@stanford.edu>.
Lionel Crine wrote:
> I tried the log transformer but it write the getLogger.debug()
> statements in a file ?
Sorry, I was referrring to putting that statement in your generator at
strategic points like:
public void generate() {
getLogger().debug("generate()");
//..... etc
}
>
>
>
>
> At 10:23 18/03/2003 -0800, you wrote:
>
>> Lionel Crine wrote:
>>
>>> Hello,
>>>
>>> I also have created my own transformer, generator, etc ...
>>> I didn't had time to use "getlogger", so instead of that I use
>>> System.err.println to get my message into the "console".
>>
>>
>> 1) I recommend you take the time to add the 'getLogger().debug()
>> statements.
>> 2) System.err might be changed from console to a file by your
>> servlet container ( I think in Tomcat it goes to catalina.out)
>> 3) Test your generator by using it in a pipeline with no
>> transformers, just an xml serializer
>> 4) Use the logging transformer
>> http://xml.apache.org/cocoon/userdocs/transformers/log-transformer.html
>>
>> Charles
>>
>>>
>>>
>>>
>>>
>>> At 16:43 17/03/2003 +0000, you wrote:
>>>
>>>> Hi,
>>>>
>>>> I have built my own generator, using the tutorials. I can get it to
>>>> work in
>>>> a test harness and it produces a well-formed set of SAX events.
>>>> However once
>>>> inside cocoon, I get nothing, just an empty HTML page. I have
>>>> recreated the
>>>> cocoon libraries environment on the command line and it works. A
>>>> simple
>>>> helloworld generator works, so I am deploying OK, nothing in the
>>>> error logs.
>>>> Apart from attatching a debugger to the VM, I am at a loss as where
>>>> to go
>>>> from here.
>>>>
>>>> If you have a strategy for this, please let me know.
>>>>
>>>> tia,
>>>> Lee
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>>>> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>>> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: Cant get an exception
Posted by Lionel Crine <cr...@4dconcept.fr>.
I tried the log transformer but it write the getLogger.debug() statements
in a file ?
At 10:23 18/03/2003 -0800, you wrote:
>Lionel Crine wrote:
>
>>Hello,
>>
>>I also have created my own transformer, generator, etc ...
>>I didn't had time to use "getlogger", so instead of that I use
>>System.err.println to get my message into the "console".
>
>1) I recommend you take the time to add the 'getLogger().debug() statements.
>2) System.err might be changed from console to a file by your servlet
>container ( I think in Tomcat it goes to catalina.out)
>3) Test your generator by using it in a pipeline with no transformers,
>just an xml serializer
>4) Use the logging transformer
>http://xml.apache.org/cocoon/userdocs/transformers/log-transformer.html
>
>Charles
>
>>
>>
>>
>>
>>At 16:43 17/03/2003 +0000, you wrote:
>>
>>>Hi,
>>>
>>>I have built my own generator, using the tutorials. I can get it to work in
>>>a test harness and it produces a well-formed set of SAX events. However once
>>>inside cocoon, I get nothing, just an empty HTML page. I have recreated the
>>>cocoon libraries environment on the command line and it works. A simple
>>>helloworld generator works, so I am deploying OK, nothing in the error logs.
>>>Apart from attatching a debugger to the VM, I am at a loss as where to go
>>>from here.
>>>
>>>If you have a strategy for this, please let me know.
>>>
>>>tia,
>>>Lee
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>>>For additional commands, e-mail: cocoon-users-help@xml.apache.org
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>>For additional commands, e-mail: cocoon-users-help@xml.apache.org
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: Cant get an exception
Posted by Charles Yates <ce...@stanford.edu>.
Lionel Crine wrote:
> Hello,
>
> I also have created my own transformer, generator, etc ...
> I didn't had time to use "getlogger", so instead of that I use
> System.err.println to get my message into the "console".
1) I recommend you take the time to add the 'getLogger().debug()
statements.
2) System.err might be changed from console to a file by your servlet
container ( I think in Tomcat it goes to catalina.out)
3) Test your generator by using it in a pipeline with no transformers,
just an xml serializer
4) Use the logging transformer
http://xml.apache.org/cocoon/userdocs/transformers/log-transformer.html
Charles
>
>
>
>
> At 16:43 17/03/2003 +0000, you wrote:
>
>> Hi,
>>
>> I have built my own generator, using the tutorials. I can get it to
>> work in
>> a test harness and it produces a well-formed set of SAX events.
>> However once
>> inside cocoon, I get nothing, just an empty HTML page. I have
>> recreated the
>> cocoon libraries environment on the command line and it works. A simple
>> helloworld generator works, so I am deploying OK, nothing in the
>> error logs.
>> Apart from attatching a debugger to the VM, I am at a loss as where
>> to go
>> from here.
>>
>> If you have a strategy for this, please let me know.
>>
>> tia,
>> Lee
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: Cant get an exception
Posted by Lionel Crine <cr...@4dconcept.fr>.
Hello,
I also have created my own transformer, generator, etc ...
I didn't had time to use "getlogger", so instead of that I use
System.err.println to get my message into the "console".
At 16:43 17/03/2003 +0000, you wrote:
>Hi,
>
>I have built my own generator, using the tutorials. I can get it to work in
>a test harness and it produces a well-formed set of SAX events. However once
>inside cocoon, I get nothing, just an empty HTML page. I have recreated the
>cocoon libraries environment on the command line and it works. A simple
>helloworld generator works, so I am deploying OK, nothing in the error logs.
>Apart from attatching a debugger to the VM, I am at a loss as where to go
>from here.
>
>If you have a strategy for this, please let me know.
>
>tia,
>Lee
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org