Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] JSTL with Jetty 9.4.6

On 05/08/2019 17:47, John English wrote:
I need some configuration advice, please.

WARN:oejd.DeploymentManager:main: Unable to reach node goal: started
java.util.ServiceConfigurationError: org.apache.juli.logging.Log: Provider org.eclipse.jetty.apache.jsp.JuliLog not a subtype
     at java.util.ServiceLoader.fail(ServiceLoader.java:239)

Can someone tell me what I have to do to get basic taglib support working here?

I've been doing some more investigation. As a sanity check, I downloaded a full copy of the same 9.4.6 distro I'm using, dropped a test.jsp file into the ROOT subdir, and went to 127.0.0.1:8080/test.jsp. This contains the following:

<c:out value="Hello world"/>

Result, success, the browser displays "Hello world".

Browsing the jar files supplied, I find org.eclipse.jetty.apache-jsp-9.4.6.v20170531.jar contains these:

  META-INF/services/org.apache.juli.logging.Log
  org/eclipse/jetty/apache/jsp/JuliLog.class

and org.mortbay.jasper.apache-jsp-8.5.9.1.jar contains these:

  org/apache/juli/logging/DirectJDKLog.class
  org/apache/juli/logging/Log.class
  org/apache/juli/logging/LogConfigurationException.class
  org/apache/juli/logging/LogFactory.class

I have only 13 entries on my classpath, as opposed to the 41 in the full distro:

 0:                    3.1.0 | ${jetty.base}\lib\servlet-api-3.1.jar
 1:                 3.1.0.M0 | ${jetty.base}\lib\jetty-schemas-3.1.jar
 2:                      7.1 | ${jetty.base}\lib\annotations\asm-7.1.jar
3: 7.1 | ${jetty.base}\lib\annotations\asm-analysis-7.1.jar 4: 7.1 | ${jetty.base}\lib\annotations\asm-commons-7.1.jar 5: 7.1 | ${jetty.base}\lib\annotations\asm-tree-7.1.jar 6: 1.3 | ${jetty.base}\lib\annotations\javax.annotation-api-1.3.jar 7: 3.17.0.v20190306-2240 | ${jetty.base}\lib\apache-jsp\org.eclipse.jdt.ecj-3.17.0.jar 8: 9.4.19.v20190610 | ${jetty.base}\lib\apache-jsp\org.eclipse.jetty.apache-jsp-9.4.19.v20190610.jar 9: 8.5.40 | ${jetty.base}\lib\apache-jsp\org.mortbay.jasper.apache-el-8.5.40.jar 10: 8.5.40 | ${jetty.base}\lib\apache-jsp\org.mortbay.jasper.apache-jsp-8.5.40.jar 11: 1.2.5 | ${jetty.base}\lib\apache-jstl\org.apache.taglibs.taglibs-standard-impl-1.2.5.jar 12: 1.2.5 | ${jetty.base}\lib\apache-jstl\org.apache.taglibs.taglibs-standard-spec-1.2.5.jar

There error seems to be due to some conflict in the Juli logging classes, but I'm at a complete loss where it could be coming from. Any advice will be gratefully received!

--
John English

---
This email has been checked for viruses by AVG.
https://www.avg.com



Back to the top