NoClassDefFoundError: org/apache/log4j/Layout

2014-06-25 Thread loky
Hey ! I have a problem with karaf (packaged in fuse esb version 6.1.0) I am in a camel / spring / maven / jboss fuse / karaf environnement I have a bundle which use log4j like this : [...] import org.apache.log4j.*; [...] Logger classlogger = Logger.getLogger(LoggerWrapper); In

cxf WS Startup Problem

2014-06-25 Thread Laci Gaspar
Hi When I deploy a cxf WS then I get the following WARNING. The webservice works correctly but I don't know what the warning means or how I can avoid it. Any ideas? Regards Laci 2014-06-25 13:26:03,932 | WARN | xtenderThread-14 | MBeanContainer |

Re: NoClassDefFoundError: org/apache/log4j/Layout

2014-06-25 Thread loky
I have exclude log4j dependancy in my maven project and insert org.ops4j.pax.logging reference. dependency groupIdorg.ops4j.pax.logging/groupId artifactIdpax-logging-api/artifactId version1.7.2/version

Re: NoClassDefFoundError: org/apache/log4j/Layout

2014-06-25 Thread loky
I have try to find a workaround with log4J, but nothing works, any idea ? -- View this message in context: http://karaf.922171.n3.nabble.com/NoClassDefFoundError-org-apache-log4j-Layout-tp4033773p4033778.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: NoClassDefFoundError: org/apache/log4j/Layout

2014-06-25 Thread Achim Nierbeck
So you are trying to build a custom Logger, is that right? Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Layout at com.ericsson.mediation.core.bean.CoreLogger.log(CoreLogger.java:90)[265: MEDIATION-SI800-Core:1.0.0] If so you'll need to add this Logger by adding it to

Re: NoClassDefFoundError: org/apache/log4j/Layout

2014-06-25 Thread Jean-Baptiste Onofré
Hi, Pax Logging provides log4j 1.2.15. I bet that you use log4j 1.2.17. So, your project should use the 1.2.15 log4j dependency and Import-Package. Regards JB On 06/25/2014 02:12 PM, loky wrote: I have exclude log4j dependancy in my maven project and insert org.ops4j.pax.logging reference.

Re: NoClassDefFoundError: org/apache/log4j/Layout

2014-06-25 Thread Jean-Baptiste Onofré
http://karaf.apache.org/manual/latest/users-guide/log.html latest section: Custom appenders. Regards JB On 06/25/2014 03:57 PM, Achim Nierbeck wrote: So you are trying to build a custom Logger, is that right? Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Layout

Re: Cellar for karaf 3.0.1 active/active and failover clustering

2014-06-25 Thread asookazian2
Does the book provide a tutorial on multi-node setup for active/active and failover support in a simple Karaf/Cellar cluster? Can I get an EAP digital or paper copy? Also, in terms of a simple test for a cross topology, is it best to install two Karaf instances/nodes on separate machines or on

Re: NoClassDefFoundError: org/apache/log4j/Layout

2014-06-25 Thread loky
Thanks jbonofre and Achim for helping me :) jbonofre wrote latest section: Custom appenders. jbonofre Pax Logging provides log4j 1.2.15. Indeed ! I have plugged it with the 1.2.15 but I still have the problem. I have checked the latest section of

Re: Cellar for karaf 3.0.1 active/active and failover clustering

2014-06-25 Thread asookazian2
So I installed our customized version of Karaf 3.0.1 on Win7 VM and Mac Mavericks host (on same machine). Win7 VM: admin@NextGate () cluster:node-list | Id | Host Name | Port - x | 127.0.0.1:5701 | 127.0.0.1 | 5701 Mac host: admin@NextGate ()

Re: Cellar for karaf 3.0.1 active/active and failover clustering

2014-06-25 Thread Jean-Baptiste Onofré
Hi, the Win VM and Mac Host are supposed to be in the same cluster ? If so, the network multicast doesn't work and so Cellar can't discover the nodes. To fix that, you can switch to static IP addresses definition. On each node, you modify etc/hazelcast.xml, and you add the IP addresses where

Re: Karaf Tutorial Part 4 - CXF Services in OSGi . How to use a new service?

2014-06-25 Thread parker
I have tried to it with an OSGi Service but I don't know how to add the service in the project. Do you have an advice ? With this example I have the OSGiDmHelloworldProvider and OSGiDmHelloworldConsumer : ( http://baptiste-wicht.com/posts/2010/07/osgi-hello-world-services.html

Re: Cellar for karaf 3.0.1 active/active and failover clustering

2014-06-25 Thread asookazian2
Mac host karaf.log: 20140625 10:16:39.475 [INFO ] FelixStartLevel | 109:com.hazelcast | com.hazelcast.config.XmlConfigBuilder | Using configuration file at /private/var/nextgate/current/ngs_install_v1.0.0-SNAPSHOT_20140623_rev12406/ngs/etc/hazelcast.xml 20140625 10:16:39.476 [INFO

Re: Karaf Tutorial Part 4 - CXF Services in OSGi

2014-06-25 Thread Jean-Baptiste Onofré
Hi, in this tutorial, Christian explains how to use CXF to exposed WebService in Karaf, not OSGI services. Basically, an OSGi service is simply an interface. You register the impl in the service registry using this interface. For instance, in one bundle (the provider bundle), you have an

Re: Cellar for karaf 3.0.1 active/active and failover clustering

2014-06-25 Thread Jean-Baptiste Onofré
Did you see my latest e-mail on the thread ? Regards JB On 06/25/2014 07:19 PM, asookazian2 wrote: Mac host karaf.log: 20140625 10:16:39.475 [INFO ] FelixStartLevel | 109:com.hazelcast | com.hazelcast.config.XmlConfigBuilder | Using configuration file at /private/var/nextgate/current

Re: Cellar for karaf 3.0.1 active/active and failover clustering

2014-06-25 Thread asookazian2
Win VM karaf.log: 20140625 10:22:13.553 [INFO ] FelixStartLevel | 107:com.hazelcast | com.hazelcast.config.XmlConfigBuilder | Using configuration file at C:\sw\ngs\ngs_install_v1.0.0-SNAPSHOT_20140624_rev12409\ngs\etc\hazelcast.xml 20140625 10:22:13.553 [INFO ] FelixStartLevel | 107:com.hazelcast

Re: Karaf Tutorial Part 4 - CXF Services in OSGi

2014-06-25 Thread parker
Hi Christian, I said that to you because I want to check how can i use your tutorial,my question was how to add new default users , I have found the answer of the question , i just need to change from package net.lr.tutorial.karaf.cxf.personservice.impl; that: public PersonServiceImpl() {

Re: Cellar for karaf 3.0.1 active/active and failover clustering

2014-06-25 Thread asookazian2
: 20140625 13:00:55.909 [ERROR] pool-13-thread-6 | 115:org.apache.karaf.cellar.bundle | org.apache.karaf.cellar.bundle.BundleEventHandler | CELLAR BUNDLE: failed to install bundle [com.mysql.jdbc, 5.1.29]/org.osgi.framework.BundleException: Unable to cache bundle: file:\c:\downloads\mysql-connector

Re: Cellar for karaf 3.0.1 active/active and failover clustering

2014-06-25 Thread asookazian2
20140625 13:39:12.300 [ERROR] pool-13-thread-37 | 112:org.apache.karaf.cellar.features | org.apache.karaf.cellar.features.RepositoryEventHandler | CELLAR FEATURES: failed to add/remove repository URL mvn:com.nextgate/ngs-features/1.0.0-SNAPSHOT/xml/features java.lang.NullPointerException

Re: Cellar for karaf 3.0.1 active/active and failover clustering

2014-06-25 Thread asookazian2
When/how does the .cfg file sync work? I just edited and saved org.ops4j.pax.url.mvn.cfg and did not see the update occur in the other node same file. Do you need to restart karaf to take effect? -- View this message in context:

Re: Cellar for karaf 3.0.1 active/active and failover clustering

2014-06-25 Thread Jean-Baptiste Onofré
and it installed successfully but not on the Mac host: 20140625 13:00:55.909 [ERROR] pool-13-thread-6 | 115:org.apache.karaf.cellar.bundle | org.apache.karaf.cellar.bundle.BundleEventHandler | CELLAR BUNDLE: failed to install bundle [com.mysql.jdbc, 5.1.29]/org.osgi.framework.BundleException: Unable

Re: Cellar for karaf 3.0.1 active/active and failover clustering

2014-06-25 Thread Jean-Baptiste Onofré
Take a look in the etc/org.apache.karaf.cellar.groups.cfg, we will see the whitelist/backlist definition. Regards JB On 06/26/2014 01:12 AM, asookazian2 wrote: When/how does the .cfg file sync work? I just edited and saved org.ops4j.pax.url.mvn.cfg and did not see the update occur in the

How to config jmx ACL for javax.management.MBeanServer

2014-06-25 Thread XiLai Dai
Hi, With these codes running in the karaf 3.0.1: import java.lang.management.ManagementFactory; import javax.management.MBeanServer; import javax.management.ObjectName; .. MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); ObjectName name =