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

WEB-INF/lib is empty apart from a copy of 
org.mortbay.jasper.apache-jsp-8.5.9.1.jar.

Remove that jar from your WEB-INF/lib, it doesn't belong there.
That's a Server jar.


  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:          9.4.6.v20170531 | 
${jetty.base}\lib\jetty-http-9.4.6.v20170531.jar
  3:          9.4.6.v20170531 | 
${jetty.base}\lib\jetty-server-9.4.6.v20170531.jar
  4:          9.4.6.v20170531 | 
${jetty.base}\lib\jetty-xml-9.4.6.v20170531.jar

Why do all of these say `${jetty.base}`?
Have you actually setup a proper Jetty base and then copied all of the jars into place?
That's not how you are supposed to setup a ${jetty.base} directory.
That's also not how you are supposed to use Jetty Home (or the older Jetty Distribution).
Those jars should be showing up as belonging to ${jetty.home}

See:
In short, you unpack jetty-home (or the older jetty-distribution) into a new directory.
Then you leave that directory alone.
Don't edit it, modify it, remove content, add content, change content, etc...
In fact, feel free to remove all write access to that directory.
Next, you create a new jetty-base directory anywhere that isn't nested with the jetty-home directory.
Then you add the modules you want to use, in your case start with "http,webapp,deploy,jsp,annotations" (see documentation)
Then you copy your war file into place within this new jetty-base directory.
Then you start your configured instance of Jetty.

Joakim Erdfelt / joakim@xxxxxxxxxxx


On Tue, Aug 6, 2019 at 8:32 AM John English <john.foreign@xxxxxxxxx> wrote:
On 06/08/2019 15:05, John English wrote:
> I have only 13 entries on my classpath, as opposed to the 41 in the full
> distro:

Oops, correction, I was looking at the wrong server: there are 25
entries. WEB-INF/lib is empty apart from a copy of
org.mortbay.jasper.apache-jsp-8.5.9.1.jar.

  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:          9.4.6.v20170531 |
${jetty.base}\lib\jetty-http-9.4.6.v20170531.jar
  3:          9.4.6.v20170531 |
${jetty.base}\lib\jetty-server-9.4.6.v20170531.jar
  4:          9.4.6.v20170531 |
${jetty.base}\lib\jetty-xml-9.4.6.v20170531.jar
  5:          9.4.6.v20170531 |
${jetty.base}\lib\jetty-util-9.4.6.v20170531.jar
  6:          9.4.6.v20170531 |
${jetty.base}\lib\jetty-io-9.4.6.v20170531.jar
  7:          9.4.6.v20170531 |
${jetty.base}\lib\jetty-jndi-9.4.6.v20170531.jar
  8:      1.4.1.v201005082020 |
${jetty.base}\lib\jndi\javax.mail.glassfish-1.4.1.v201005082020.jar
  9:                      1.2 |
${jetty.base}\lib\jndi\javax.transaction-api-1.2.jar
10:          9.4.6.v20170531 |
${jetty.base}\lib\jetty-security-9.4.6.v20170531.jar
11:          9.4.6.v20170531 |
${jetty.base}\lib\jetty-servlet-9.4.6.v20170531.jar
12:          9.4.6.v20170531 |
${jetty.base}\lib\jetty-webapp-9.4.6.v20170531.jar
13:          9.4.6.v20170531 |
${jetty.base}\lib\jetty-plus-9.4.6.v20170531.jar
14:          9.4.6.v20170531 |
${jetty.base}\lib\jetty-annotations-9.4.6.v20170531.jar
15:                      5.1 | ${jetty.base}\lib\annotations\asm-5.1.jar
16:                      5.1 |
${jetty.base}\lib\annotations\asm-commons-5.1.jar
17:                      1.2 |
${jetty.base}\lib\annotations\javax.annotation-api-1.2.jar
18:    3.10.2.v20150120-1634 |
${jetty.base}\lib\apache-jsp\org.eclipse.jdt.core.compiler.ecj-4.4.2.jar
19:          9.4.6.v20170531 |
${jetty.base}\lib\apache-jsp\org.eclipse.jetty.apache-jsp-9.4.6.v20170531.jar
20:                   8.0.33 |
${jetty.base}\lib\apache-jsp\org.mortbay.jasper.apache-el-8.5.9.1.jar
21:                      2.3 |
${jetty.base}\lib\apache-jsp\org.mortbay.jasper.apache-jsp-8.5.9.1.jar
22:                    1.2.5 |
${jetty.base}\lib\apache-jstl\org.apache.taglibs.taglibs-standard-impl-1.2.5.jar
23:                    1.2.5 |
${jetty.base}\lib\apache-jstl\org.apache.taglibs.taglibs-standard-spec-1.2.5.jar
24:          9.4.6.v20170531 |
${jetty.base}\lib\jetty-deploy-9.4.6.v20170531.jar

--
John English

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

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

Back to the top