[Resin-interest] Classloader problems with hibernate validator and slf4j
So... now that the hibernate validator is part of the resin appserver classpath, there seems to be some sort of strange conflict with slf4j. java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory org.hibernate.validator.util.LoggerFactory.make(LoggerFactory.java:29) org.hibernate.validator.util.Version.clinit(Version.java:30) org.hibernate.validator.engine.ConfigurationImpl.clinit(ConfigurationImpl.java:52) org.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:43) javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:269) javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:111) org.subethamail.web.model.ErrorMapModel.clinit(ErrorMapModel.java:24) org.subethamail.web.action.CreateList.initialize(CreateList.java:79) org.tagonist.AbstractAction.execute(AbstractAction.java:50) org.tagonist.ActionTag.doEndTag(ActionTag.java:282) _jsp._list_0create_0submit__jsp._jspService(_list_0create_0submit__jsp.java:70) _jsp._list_0create_0submit__jsp._jspService(_list_0create_0submit__jsp.java:29) com.caucho.jsp.JavaPage.service(JavaPage.java:64) I can make the issue go away by copying slf4j-api and slf4j-jdk14 into resin/lib... but is there a better way to solve this? Admittedly I haven't tried removing hibernate-vaildator from my war yet. But that seems an odd solution. Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Classloader problems with hibernate validator and slf4j
Jeff Schnitzer wrote: So... now that the hibernate validator is part of the resin appserver classpath, there seems to be some sort of strange conflict with slf4j. java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory org.hibernate.validator.util.LoggerFactory.make(LoggerFactory.java:29) org.hibernate.validator.util.Version.clinit(Version.java:30) org.hibernate.validator.engine.ConfigurationImpl.clinit(ConfigurationImpl.java:52) org.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:43) javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:269) javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:111) org.subethamail.web.model.ErrorMapModel.clinit(ErrorMapModel.java:24) org.subethamail.web.action.CreateList.initialize(CreateList.java:79) org.tagonist.AbstractAction.execute(AbstractAction.java:50) org.tagonist.ActionTag.doEndTag(ActionTag.java:282) _jsp._list_0create_0submit__jsp._jspService(_list_0create_0submit__jsp.java:70) _jsp._list_0create_0submit__jsp._jspService(_list_0create_0submit__jsp.java:29) com.caucho.jsp.JavaPage.service(JavaPage.java:64) I can make the issue go away by copying slf4j-api and slf4j-jdk14 into resin/lib... but is there a better way to solve this? Admittedly I haven't tried removing hibernate-vaildator from my war yet. But that seems an odd solution. I've just filed this as http://bugs.caucho.com/view.php?id=4386 We need to change the distribution to put the hibernate-validator and slf4j into project-jars and add a web-app-default class-loader library-loader path=${resin.home}/project-jars/ /class-loader /web-app-default Basically, we can't put slf4j into resin/lib because that causes classloader problems, so hibernate-validator and slf4j need to be put into a per-web-app classloader as part of the web-app-default. -- Scott Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] no JMX ObjectName detected with jrockit vm
Hi Scott, Resin 4.0.14 log many warnings about no JMX ObjectName detected [11-02-11 00:19:23.324] {resin-34} MemoryTenuredHealthCheck: WARNING: MemoryTenuredHealthCheck[] has no JMX ObjectName detected [11-02-11 00:19:23.324] {resin-34} MemoryPermGenHealthCheck: WARNING: MemoryPermGenHealthCheck[] has no JMX ObjectName detected [11-02-11 00:24:23.327] {resin-360} MemoryTenuredHealthCheck: WARNING: MemoryTenuredHealthCheck[] has no JMX ObjectName detected [11-02-11 00:24:23.327] {resin-360} MemoryPermGenHealthCheck: WARNING: MemoryPermGenHealthCheck[] has no JMX ObjectName detected [11-02-11 00:29:23.330] {resin-309} MemoryTenuredHealthCheck: WARNING: MemoryTenuredHealthCheck[] has no JMX ObjectName detected [11-02-11 00:29:23.330] {resin-309} MemoryPermGenHealthCheck: WARNING: MemoryPermGenHealthCheck[] has no JMX ObjectName detected I'm using jrockit vm R28.1 64bit edition in CentOS 5.5. -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest