Closed edwardlau closed 8 years ago
maybe remove dependency slf4j-log4j12 and slf4j-jdk14 that can solve your problem.
I container is resin 4 not support?
I'm sorry but I can't reproduce your errors. Could you show what jars are in the project libs and what jars are in your resin libs?I'm sorry but I can't reproduce your errors. Could you show what jars are in the project libs and what jars are in your resin libs?
It seems a bug of resin. I test with the latest version of resin(4.0.45). Resin has a jar named jboss-logging-3.1.0.CR2.jar in its lib directory but doesn't have a log4j-api in the directory. ClassLoader of resin won't look for class in the project's lib directory. You can put slf4j-api to the resin/lib to solve the problem.
Thanks for the analysis, @zhanhb
@edwardlau There are two ways to work around the problem:
slf4j-api
into resin/lib
conf/app-default.xml
and add <servlet-hack>
to the web-app-default>
<class-loader>
configuration.Neither of these is ideal. I've posted to Resin's Google Group. I think that's a better place for this problem as there's nothing we can do in Spring Boot to address it.
This is still an issue for Hibernate on Resin, It doesn't seem to load with version 1.3.5 of Spring Boot.
@matty There's nothing that Spring Boot can do about this. See my comment above for how to configure Resin.
Do we need to copy the file into resin/lib
or can be just add <servlet-hack>
and expect the classes to load correctly?
It's two different ways to fix the problem. No need to do both, AFAIK
@wilkinsona I have noticed by specifying providedRuntime("org.hibernate:hibernate-validator")
and then including hibernate validator 4.3.2.Final
it works fine. Maybe it's best to be able to define which hibernate version to use with Spring Boot? I am still aware this is a Resin issue, and hopefully they can fix it.
I deploy war file to resin this springboot version 1.25 the jar is:
when use resinctl start log to pring :
pom.xml is:
org/slf4j/LoggerFactory the jar slf4j-api in the lib why?