Re: C22 - Maven artifact missing

2008-09-08 Thread yosauron



 
 David Legg wrote:
 
 yosauron wrote:
 
 I can't determine which is my problem... I've tried all the solutions of
 this thread and the tests errors are still there :'(. I'm crazy..
 
 Sorry I can't think of anything else... except maybe try the machine 
 from another (non-proxied) internet connection if you have access to one.
 
 Hope you don't stay crazy for too long ;-)
 
 David.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

Hi David,

finally, in other machine and in other place (without proxy) I could build
sucessfully Cocoon!!!

Thank you for all to all!



-- 
View this message in context: 
http://www.nabble.com/C22---Maven-artifact-missing-tp17780552p19367471.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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



Re: C22 - Maven artifact missing

2008-09-08 Thread David Legg

Hi Yosauron,


finally, in other machine and in other place (without proxy) I could build
sucessfully Cocoon!!!
  


Glad to hear you now have a way to build it.  Proxies can be very useful 
for lots of reasons... but they can also be infuriating too!


Actually, I did pick up on this list that there may be a problem with 
the Maven archetype plugin when it comes to downloading an archetype 
catalog through a proxy [1].  So even if you did manage to solve your 
initial proxy problem there might be another one waiting for you after that.


Glad your mental health is better :-)

Regards,
David Legg

[1] http://jira.codehaus.org/browse/ARCHETYPE-202


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



cocoon consumes 90% cpu time when idle. how to avoid that ?

2008-09-08 Thread hussayn

Hi;

i am currently pulling cocoon from my test enviropnment my production
environment.
there is monitored a very high cpu-load (between 50%-90% consumed by the
jetty process, changing from second to second) although there is no traffic
at all on the machine nor on the cocoon-application.

So i wonder, how this high cpu-load can be explained. The application itself
seems to
run fine (at least within our functional tests, we did not yet make any
performance tests)

thanks for any hint.

regards, hussayn
-- 
View this message in context: 
http://www.nabble.com/cocoon-consumes-90--cpu-time-when-idle.-how-to-avoid-that---tp19370270p19370270.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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



howto customize cocoon-2.2 logging ?

2008-09-08 Thread hussayn

Hi;

I am searching for the correct place to change the loglevel for my
application.
But i can't figure out,  where i have to add what. Apparently i would not
do any changes in the target folder, becasue this would be overwritten with
my next
mvn jetty:run call ?

I only want to get rid of the DEBUG entries, which are generated about every
2 seconds
and sum up to Gigabytes of logfiles. Is there any pointer to some explaining
documentation ?

thanks for any help.

regards, hussayn
-- 
View this message in context: 
http://www.nabble.com/howto-customize-cocoon-2.2-logging---tp19370191p19370191.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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



overwrite block's properties with an external .properties-file

2008-09-08 Thread Benjamin Boksa

Hi,

I have created a simple ConfigReader which implements PropertyProvider  
and the properties are read fine - however they are overwritten by the  
block's properties :-(


How do I configure Cocoon to use default properties from whithin a  
block which can be overwritten by a file on the file system?


Thanks in advance

Benjamin

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



cocoon 2.1.11, fc9, build.sh error

2008-09-08 Thread Al

Hi,
I'm using a new Federa Core 9 install and when I run ./build.sh I get 11 
warning and 2 errors.

The 2 errors differ only in line number.

The error is:
/var/local/import/cocoon/cocoon-2.1.11/src/java/org/apache/cocoon/reading/ImageReader.java:336: 
cannot find symbol
symbol  : method 
setJPEGEncodeParam(com.sun.image.codec.jpeg.JPEGEncodeParam)

location: class com.sun.image.codec.jpeg.JPEGImageEncoder
   encoder.setJPEGEncodeParam(p);

I'm guessing this has something to do with the java toolset.
I'm using the default openJDK 1.6.0

Is this a deficiency in openJDK with Fedora Core 9?
Is there a good work around?

Al

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



Re: howto customize cocoon-2.2 logging ?

2008-09-08 Thread hussayn

I found a solution here: 

http://happygiraffe.net/blog/2008/08/27/logging-in-cocoon-22/
http://www.nabble.com/logging-with-C2.2-td13423869.html

My synthesis is:

1.) Add a configuration entry into the pom.xml of your block.
 Search for the plugin with the artifact id cocoon-maven-plugin

 I added a configuration tag to the end of the plugin. The whole plugin
now looks like this:

  lt;plugin
lt;groupIdorg.apache.cocoonlt;/groupId
lt;artifactIdcocoon-maven-pluginlt;/artifactId
lt;version1.0.0-M2lt;/version
lt;executions
  lt;execution
lt;idpreparelt;/id
lt;phasecompilelt;/phase
lt;goals
  lt;goalpreparelt;/goal
lt;/goals
  lt;/execution
lt;/executions

!-- === --
!-- HD: Added custom log4j configuration  --
!-- The log4j-file gets copied to target/.../WEB-INF/log4j.xml --
!-- === --
configuration
  
customLog4jXconfsrc/main/resources/WEB-INF/log4j.xml/customLog4jXconf
/configuration

  /plugin


2.) I created src/main/resources/WEB-INF/log4j.xml exactly as proposed by
the first link posted above.
Note: the specified folder is relative to the block root folder, so
src/.../WEB-INF/log4j.xml sounds good to me...

lt;!DOCTYPE log4j:configuration SYSTEM log4j.dtd
lt;log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/;
lt;appender name=stdout class=org.apache.log4j.ConsoleAppender
lt;param name=target value=System.err/
lt;layout class=org.apache.log4j.PatternLayout
lt;param name=ConversionPattern value=%d{ISO8601} %c{2}
%p - %m%n/
lt;/layout
lt;/appender
lt;logger name=cocoon
lt;level value=INFO /
lt;/logger
lt;logger name=org.apache.cocoon.components.flow.javascript.fom
lt;level value=INFO /
lt;/logger
lt;root
lt;priority value=WARN/
lt;appender-ref ref=stdout/
lt;/root
lt;/log4j:configuration
  
After i restarted with mvn jetty:run , the customized log4j config works and
now i can customize log4j as i need...

Maybe that helps somebody else ;-)

regards, hussayn

-- 
View this message in context: 
http://www.nabble.com/howto-customize-cocoon-2.2-logging---tp19370191p19380787.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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



Re: cocoon 2.1.11, fc9, build.sh error

2008-09-08 Thread Antonio Gallardo
Hi,

Al escribió:
 Hi,
 I'm using a new Federa Core 9 install and when I run ./build.sh I get
 11 warning and 2 errors.
 The 2 errors differ only in line number.

 The error is:
 /var/local/import/cocoon/cocoon-2.1.11/src/java/org/apache/cocoon/reading/ImageReader.java:336:
 cannot find symbol
 symbol  : method
 setJPEGEncodeParam(com.sun.image.codec.jpeg.JPEGEncodeParam)
 location: class com.sun.image.codec.jpeg.JPEGImageEncoder
encoder.setJPEGEncodeParam(p);

 I'm guessing this has something to do with the java toolset.
 I'm using the default openJDK 1.6.0

 Is this a deficiency in openJDK with Fedora Core 9?
Nope, the issue is due a class on a sun package: com.sun.image.codec I
think there is already an issue report for this.

 Is there a good work around?
Simple one: Use Java from Sun.

Another option: Or If you don't need the image reader, don't include it
on the building.

Best Regards,

Antonio Gallardo.


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



Re: cocoon consumes 90% cpu time when idle. how to avoid that ?

2008-09-08 Thread hussayn

I am still investigating here. I meanwhile have found one suspicious element:
When i issue kill -3 on the jetty process, i get this thread stack dump
below.
Can it be, that the file system monitoring consumes the cpu-time ? 
If so, is it possible to disable the file-system-change-scanner ?
I found this in the web.xml:

listener
   
listener-classorg.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingListener/listener-class
/listener

Is this related ???

Anyways, here is the thread dump:

Here is the thread dump (condensed to some extent):
=
Thread-3 prio=1 tid=0x08953bb8 nid=0x2fb7 waiting on condition
[0xb02b4000..0xb02b4e30]
at java.lang.StringCoding$CharsetSE.encode(StringCoding.java:334)
at java.lang.StringCoding.encode(StringCoding.java:378)
at java.lang.String.getBytes(String.java:812)
at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
at
java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
at java.io.File.isDirectory(File.java:723)
at
org.apache.commons.jci.monitor.FilesystemAlterationObserverImpl$MonitorFileImpl.isDirectory(FilesystemAlterationObserverImpl.java:76)
at 
...
...
...
at
org.apache.commons.jci.monitor.FilesystemAlterationObserverImpl.checkAndNotify(FilesystemAlterationObserverImpl.java:331)
- locked 0x8a1e4ca8 (a
org.apache.commons.jci.monitor.FilesystemAlterationObserverImpl)
at
org.apache.commons.jci.monitor.FilesystemAlterationMonitor.run(FilesystemAlterationMonitor.java:122)
at java.lang.Thread.run(Thread.java:595)
=

If someone could point me to some in depth configuration tutorials, that
would be nice.
Or at least, explain, how i can disable the file scanning, where can i
configure the file scanner 
period ? My goal is to drop the cpu load significantly, when cocoon is idle.

regards, hussayn
-- 
View this message in context: 
http://www.nabble.com/cocoon-consumes-90--cpu-time-when-idle.-how-to-avoid-that---tp19370270p19382107.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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



Re: cocoon 2.1.11, fc9, build.sh error

2008-09-08 Thread Al

Antonio Gallardo wrote:

Hi,

Al escribió:
  

Hi,
I'm using a new Federa Core 9 install and when I run ./build.sh I get
11 warning and 2 errors.
The 2 errors differ only in line number.

The error is:
/var/local/import/cocoon/cocoon-2.1.11/src/java/org/apache/cocoon/reading/ImageReader.java:336:
cannot find symbol
symbol  : method
setJPEGEncodeParam(com.sun.image.codec.jpeg.JPEGEncodeParam)
location: class com.sun.image.codec.jpeg.JPEGImageEncoder
   encoder.setJPEGEncodeParam(p);

I'm guessing this has something to do with the java toolset.
I'm using the default openJDK 1.6.0

Is this a deficiency in openJDK with Fedora Core 9?


Nope, the issue is due a class on a sun package: com.sun.image.codec I
think there is already an issue report for this.

  

Is there a good work around?


Simple one: Use Java from Sun.

Another option: Or If you don't need the image reader, don't include it
on the building.

Best Regards,

Antonio Gallardo.


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


--

This message has been verified by LastSpam eMail security service

Ce courriel a été vérifié par le service de sécurité pour courriels LastSpam
http://www.lastspam.com


  

Thanks you.
I'm having trouble getting the sun java
installed properly. alternatives never see the install and jpackage 
seems to also have problem with version 1.6


I uncommented :

include.block.imageop=false

in local.blocks.properties. Is that the best way to do option 2.
It seems to compile now. Did I loose anything besides the ability to 
server images files from cocoon?

I server static files from apache.
Al

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



Re: cocoon 2.1.11, fc9, build.sh error

2008-09-08 Thread Joerg Heinicke

On 09.09.2008 00:36, Al wrote:


I'm having trouble getting the sun java
installed properly. alternatives never see the install and jpackage 
seems to also have problem with version 1.6


I uncommented :

include.block.imageop=false

in local.blocks.properties. Is that the best way to do option 2.
It seems to compile now. Did I loose anything besides the ability to 
server images files from cocoon?

I server static files from apache.


Yes, that's the best option since you don't need the imageop block. You 
can even still serve images from Cocoon. The ImageReader is only for 
applying transformations to images on the fly, a rarely used feature I'd 
say.


Joerg

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



Re: cocoon 2.1.11, fc9, build.sh error

2008-09-08 Thread Al

Al wrote:

Antonio Gallardo wrote:

Hi,

Al escribió:
 

Hi,
I'm using a new Federa Core 9 install and when I run ./build.sh I get
11 warning and 2 errors.
The 2 errors differ only in line number.

The error is:
/var/local/import/cocoon/cocoon-2.1.11/src/java/org/apache/cocoon/reading/ImageReader.java:336: 


cannot find symbol
symbol  : method
setJPEGEncodeParam(com.sun.image.codec.jpeg.JPEGEncodeParam)
location: class com.sun.image.codec.jpeg.JPEGImageEncoder
   encoder.setJPEGEncodeParam(p);

I'm guessing this has something to do with the java toolset.
I'm using the default openJDK 1.6.0

Is this a deficiency in openJDK with Fedora Core 9?


Nope, the issue is due a class on a sun package: com.sun.image.codec I
think there is already an issue report for this.

 

Is there a good work around?


Simple one: Use Java from Sun.

Another option: Or If you don't need the image reader, don't include it
on the building.

Best Regards,

Antonio Gallardo.


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


--

This message has been verified by LastSpam eMail security service

Ce courriel a été vérifié par le service de sécurité pour courriels 
LastSpam

http://www.lastspam.com


  

Thanks you.
I'm having trouble getting the sun java
installed properly. alternatives never see the install and jpackage 
seems to also have problem with version 1.6


I uncommented :

include.block.imageop=false

in local.blocks.properties. Is that the best way to do option 2.
It seems to compile now. Did I loose anything besides the ability to 
server images files from cocoon?

I server static files from apache.
Al

oops I spoke too soon. I compiled the wrong thing. removing that block 
didnt solve my problem.

Al

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



Re: cocoon 2.1.11, fc9, build.sh error

2008-09-08 Thread Al

Joerg Heinicke wrote:

On 09.09.2008 00:36, Al wrote:


I'm having trouble getting the sun java
installed properly. alternatives never see the install and jpackage 
seems to also have problem with version 1.6


I uncommented :

include.block.imageop=false

in local.blocks.properties. Is that the best way to do option 2.
It seems to compile now. Did I loose anything besides the ability to 
server images files from cocoon?

I server static files from apache.


Yes, that's the best option since you don't need the imageop block. 
You can even still serve images from Cocoon. The ImageReader is only 
for applying transformations to images on the fly, a rarely used 
feature I'd say.


Joerg

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


--

This message has been verified by LastSpam eMail security service

Ce courriel a été vérifié par le service de sécurité pour courriels 
LastSpam

http://www.lastspam.com


so that should have worked. I will have to look at it again. Maybe I 
dont have local file name correct.


Al

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