Copying the org.eclipse.jetty.apache-jsp-9.4.15.v20190215.jar to
webapp/WEB-INF/lib folder  helped solved the issue. Though that is not the
solution I would like to use.

Rupali

On Fri, Apr 26, 2019 at 3:20 PM Rupali Desai <[email protected]> wrote:

> As regards how the webapps are being deployed. They are deployed in
> exactly the same way.
> <New id="service" class="org.eclipse.jetty.webapp.WebAppContext">
>       <Arg><Ref id="Contexts"/></Arg>
>       <Arg><SystemProperty name="jetty.base"
> default="."/>/webapps/service</Arg>
>       <Arg>/service</Arg>
>       <Set name="configurationClasses"><Ref id="plusConfig"/></Set>
>       <Set name="defaultsDescriptor"><SystemProperty name="jetty.base"
> default="."/>/etc/webdefault.xml</Set>
>       <Set name="tempDirectory"><SystemProperty name="jetty.base"
> default="."/>/work/service</Set>
>       <Set name="compactPath">true</Set>
>       <Set
> name="extraClasspath">/opt/xxxx/lib/jars/xxxxsoap.jar,/opt/xxxx/lib/jars/xxxxclient.jar,/opt/xxxx/lib/jars/xxxxstore.jar</Set>
>       <Get name="errorHandler">
>         <Call name="setShowStacks">
>           <Arg type="boolean">false</Arg>
>         </Call>
>       </Get>
>       <Call name="setAttribute">
>
> <Arg>org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern</Arg>
>
> <Arg>.*/.*jsp-api-[^/]*\.jar$|.*/.*jsp-[^/]*\.jar$|.*/.*taglibs[^/]*\.jar$</Arg>
>       </Call>
>     </New>
>     %%comment SERVICE:service,<!--%% SERVICEWEBAPPEND -->
>
>     <!-- xxxxWEBAPPBEGIN %%comment SERVICE:xxxx,-->%%
>     <New id="xxxx" class="org.eclipse.jetty.webapp.WebAppContext">
>       <Arg><Ref id="Contexts"/></Arg>
> <Arg><SystemProperty name="jetty.base" default="."/>/webapps/xxxx</Arg>
>       <Arg>%%xxxxMailURL%%</Arg>
>       <Set name="configurationClasses"><Ref id="plusConfig"/></Set>
>       <Set name="defaultsDescriptor"><SystemProperty name="jetty.base"
> default="."/>/etc/webdefault.xml</Set>
>       <Set name="tempDirectory"><SystemProperty name="jetty.base"
> default="."/>/work/xxxx</Set>
>       <Set name="persistTempDirectory">true</Set>
>       <Set name="compactPath">true</Set>
>       <Set name="throwUnavailableOnStartupException">true</Set>
>       <Set
> name="extraClasspath">/opt/xxxx/lib/jars/xxxxsoap.jar,/opt/xxxx/lib/jars/xxxxclient.jar,/opt/xxxx/lib/jars/xxxxstore.jar</Set>
>       <Get name="errorHandler">
>         <Call name="addErrorPage">
>           <Arg type="int">400</Arg>
>           <Arg type="int">599</Arg>
>           <Arg type="String">/public/error.jsp</Arg>
>         </Call>
>       </Get>
>       <Get name="sessionHandler">
>         <Get name="sessionIdManager">
>         </Get>
>       </Get>
>       <Call name="setAttribute">
>
> <Arg>org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern</Arg>
>
> <Arg>.*/.*jsp-api-[^/]*\.jar$|.*/.*jsp-[^/]*\.jar$|.*/.*taglibs[^/]*\.jar$</Arg>
>       </Call>
>     </New>
>     %%comment SERVICE:xxxx,<!--%% xxxxWEBAPPEND -->
>
>     <!-- xxxxADMINWEBAPPBEGIN %%comment SERVICE:xxxxAdmin,-->%%
>     <New id="xxxxAdmin" class="org.eclipse.jetty.webapp.WebAppContext">
>       <Arg><Ref id="Contexts"/></Arg>
>       <Arg><SystemProperty name="jetty.base"
> default="."/>/webapps/xxxxAdmin</Arg>
>       <Arg>%%xxxxAdminURL%%</Arg>
>       <Set name="configurationClasses"><Ref id="plusConfig"/></Set>
>       <Set name="defaultsDescriptor"><SystemProperty name="jetty.base"
> default="."/>/etc/webdefault.xml</Set>
>       <Set name="tempDirectory"><SystemProperty name="jetty.base"
> default="."/>/work/xxxxAdmin</Set>
>       <Set name="compactPath">true</Set>
>       <Set name="throwUnavailableOnStartupException">true</Set>
>       <Set
> name="extraClasspath">/opt/xxxx/lib/jars/xxxxsoap.jar,/opt/xxxx/lib/jars/xxxxclient.jar,/opt/xxxx/lib/jars/xxxxstore.jar</Set>
>       <Get name="errorHandler">
>         <Call name="addErrorPage">
>           <Arg type="int">500</Arg>
>
> 631,14        69%
>  <Arg type="int">599</Arg>
>           <Arg type="String">/public/5xx.html</Arg>
>         </Call>
>       </Get>
>       <Get name="sessionHandler">
>         <Get name="sessionIdManager">
>         </Get>
>       </Get>
>       <Call name="setAttribute">
>
> <Arg>org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern</Arg>
>
> <Arg>.*/.*jsp-api-[^/]*\.jar$|.*/.*jsp-[^/]*\.jar$|.*/.*taglibs[^/]*\.jar$</Arg>
>       </Call>
>     </New>
>     %%comment SERVICE:xxxxAdmin,<!--%% xxxxADMINWEBAPPEND -->
>
>     <New id="zimlet" class="org.eclipse.jetty.webapp.WebAppContext">
>       <Arg><Ref id="Contexts"/></Arg>
>       <Arg><SystemProperty name="jetty.base"
> default="."/>/webapps/zimlet</Arg>
>       <Arg>/zimlet</Arg>
>       <Set name="configurationClasses"><Ref id="plusConfig"/></Set>
>       <Set name="defaultsDescriptor"><SystemProperty name="jetty.base"
> default="."/>/etc/webdefault.xml</Set>
>       <Set name="tempDirectory"><SystemProperty name="jetty.base"
> default="."/>/work/zimlet</Set>
>       <Set name="compactPath">true</Set>
>       <Set name="throwUnavailableOnStartupException">true</Set>
>       <Set name="baseResource">
>         <New class="org.eclipse.jetty.util.resource.ResourceCollection">
>           <Arg>
>             <Array type="String">
>               <Item><SystemProperty name="jetty.base"
> default="."/>/webapps/zimlet</Item>
>               <Item><SystemProperty name="jetty.base"
> default="."/>/../zimlets-deployed</Item>
>             </Array>
>           </Arg>
>         </New>
>       </Set>
>       <Call name="setAttribute">
>
> <Arg>org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern</Arg>
>
> <Arg>.*/.*jsp-api-[^/]*\.jar$|.*/.*jsp-[^/]*\.jar$|.*/.*taglibs[^/]*\.jar$</Arg>
>       </Call>
>     </New>
>
>
> On Fri, Apr 26, 2019 at 3:13 PM Rupali Desai <[email protected]> wrote:
>
>> Attached is the output after " jetty.server.dumpAfterStart=true" and
>> apache-jsp module removed.
>>
>> Thanks
>> Rupali
>>
>> On Fri, Apr 26, 2019 at 3:09 PM Rupali Desai <[email protected]> wrote:
>>
>>> Hello,
>>>
>>> Here is the output with --dry-run command line option. Also regarding
>>> the apache-jsp, I had added it alongwith jsp module just to check if it
>>> solves the issue. I have now included only the jsp module.
>>>
>>> /opt/xxxx/common/bin/java -Dfile.encoding=UTF-8 -server
>>> -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2
>>> -Djdk.tls.client.protocols=TLSv1,TLSv1.1,TLSv1.2 -Djava.awt.headless=true
>>> -Dsun.net.inetaddr.ttl=60 -Dorg.apache.jasper.compiler.disablejsr199=true
>>> -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=1 -XX:-OmitStackTraceInFastThrow
>>> -verbose:gc
>>> -Xlog:gc*=debug,safepoint=info:file=/opt/xxxx/log/gc.log:time:filecount=20,filesize=10m
>>> -Djava.net.preferIPv4Stack=true -Xss256k -Xms998m -Xmx998m
>>> -Djava.io.tmpdir=/opt/xxxx/mailboxd/work -Djava.library.path=/opt/xxxx/lib
>>> -Dxxxx.config=/opt/xxxx/conf/localconfig.xml --module-path
>>> /opt/xxxx/mailboxd/common/endorsed -Djetty.base=/opt/xxxx/mailboxd
>>> -Djetty.home=/opt/xxxx/common/jetty_home
>>> -DSTART=/opt/xxxx/mailboxd/etc/start.config -jar
>>> /opt/xxxx/common/jetty_home/start.jar
>>> --module=xxxx,server,servlet,servlets,jsp,jstl,jmx,resources,websocket,ext,plus,rewrite,continuation,webapp,setuid
>>> jetty.home=/opt/xxxx/common/jetty_home jetty.base=/opt/xxxx/mailboxd
>>> /opt/xxxx/mailboxd/etc/jetty.xml --dry-run
>>> [0.011s][info][gc] Using G1
>>> /opt/xxxx/common/lib/jvm/openjdk-11.0.2-xxxx/bin/java
>>> -Djava.io.tmpdir=/opt/xxxx/mailboxd/work
>>> -Djetty.home=/opt/xxxx/common/jetty_home -Djetty.base=/opt/xxxx/mailboxd
>>> -cp
>>> /opt/xxxx/common/jetty_home/lib/mail/javax.mail.glassfish-1.4.1.v201005082020.jar:/opt/xxxx/jetty_base/resources:/opt/xxxx/common/jetty_home/lib/servlet-api-3.1.jar:/opt/xxxx/common/jetty_home/lib/jetty-schemas-3.1.jar:/opt/xxxx/common/jetty_home/lib/jetty-http-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/jetty-server-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/jetty-xml-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/jetty-util-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/jetty-io-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/jetty-jndi-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/jetty-security-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/transactions/javax.transaction-api-1.3.jar:/opt/xxxx/common/jetty_home/lib/jetty-servlet-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/jetty-webapp-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/jetty-plus-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/jetty-annotations-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/annotations/asm-7.0.jar:/opt/xxxx/common/jetty_home/lib/annotations/asm-analysis-7.0.jar:/opt/xxxx/common/jetty_home/lib/annotations/asm-commons-7.0.jar:/opt/xxxx/common/jetty_home/lib/annotations/asm-tree-7.0.jar:/opt/xxxx/common/jetty_home/lib/annotations/javax.annotation-api-1.3.jar:/opt/xxxx/common/jetty_home/lib/apache-jsp/org.eclipse.jdt.ecj-3.14.0.jar:/opt/xxxx/common/jetty_home/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/apache-jsp/org.mortbay.jasper.apache-el-8.5.35.1.jar:/opt/xxxx/common/jetty_home/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.5.35.1.jar:/opt/xxxx/common/jetty_home/lib/apache-jstl/org.apache.taglibs.taglibs-standard-impl-1.2.5.jar:/opt/xxxx/common/jetty_home/lib/apache-jstl/org.apache.taglibs.taglibs-standard-spec-1.2.5.jar:/opt/xxxx/common/jetty_home/lib/jetty-client-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/jetty-continuation-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/jetty-jmx-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/jetty-servlets-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/websocket/javax.websocket-api-1.0.jar:/opt/xxxx/common/jetty_home/lib/websocket/javax-websocket-client-impl-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/websocket/javax-websocket-server-impl-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/websocket/websocket-api-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/websocket/websocket-client-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/websocket/websocket-common-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/websocket/websocket-server-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/websocket/websocket-servlet-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/jetty-rewrite-9.4.15.v20190215.jar:/opt/xxxx/common/jetty_home/lib/setuid/jetty-setuid-java-1.0.3.jar:/opt/xxxx/jetty_base/common/lib/activation-1.1.1.jar:/opt/xxxx/jetty_base/common/lib/ant-1.7.0-ziputil-patched.jar:/opt/xxxx/jetty_base/common/lib/apache-log4j-extras-1.0.jar:/opt/xxxx/jetty_base/common/lib/bcpkix-jdk15on-1.55.jar:/opt/xxxx/jetty_base/common/lib/bcprov-jdk15on-1.55.jar:/opt/xxxx/jetty_base/common/lib/closure-compiler-v20180204.jar:/opt/xxxx/jetty_base/common/lib/commons-cli-1.2.jar:/opt/xxxx/jetty_base/common/lib/commons-codec-1.7.jar:/opt/xxxx/jetty_base/common/lib/commons-collections-3.2.2.jar:/opt/xxxx/jetty_base/common/lib/commons-compress-1.10.jar:/opt/xxxx/jetty_base/common/lib/commons-dbcp-1.4.jar:/opt/xxxx/jetty_base/common/lib/commons-fileupload-1.2.2.jar:/opt/xxxx/jetty_base/common/lib/commons-httpclient-3.1.jar:/opt/xxxx/jetty_base/common/lib/commons-io-1.4.jar:/opt/xxxx/jetty_base/common/lib/commons-lang-2.6.jar:/opt/xxxx/jetty_base/common/lib/commons-lang3-3.7.jar:/opt/xxxx/jetty_base/common/lib/commons-logging-1.1.1.jar:/opt/xxxx/jetty_base/common/lib/commons-net-3.3.jar:/opt/xxxx/jetty_base/common/lib/commons-pool-1.6.jar:/opt/xxxx/jetty_base/common/lib/commons-rng-client-api-1.0.jar:/opt/xxxx/jetty_base/common/lib/commons-rng-core-1.0.jar:/opt/xxxx/jetty_base/common/lib/commons-rng-simple-1.0.jar:/opt/xxxx/jetty_base/common/lib/commons-text-1.1.jar:/opt/xxxx/jetty_base/common/lib/concurrentlinkedhashmap-lru-1.3.1.jar:/opt/xxxx/jetty_base/common/lib/dom4j-1.5.2.jar:/opt/xxxx/jetty_base/common/lib/ganymed-ssh2-build210.jar:/opt/xxxx/jetty_base/common/lib/guava-23.0.jar:/opt/xxxx/jetty_base/common/lib/httpasyncclient-4.1.2.jar:/opt/xxxx/jetty_base/common/lib/httpclient-4.5.2.jar:/opt/xxxx/jetty_base/common/lib/httpcore-4.4.5.jar:/opt/xxxx/jetty_base/common/lib/httpcore-nio-4.4.5.jar:/opt/xxxx/jetty_base/common/lib/httpmime-4.3.1.jar:/opt/xxxx/jetty_base/common/lib/ical4j-0.9.16-patched.jar:/opt/xxxx/jetty_base/common/lib/icu4j-4.8.1.1.jar:/opt/xxxx/jetty_base/common/lib/java-semver-0.9.0.jar:/opt/xxxx/jetty_base/common/lib/javax.xml.soap-api-1.4.0.jar:/opt/xxxx/jetty_base/common/lib/jaxb-api-2.3.1.jar:/opt/xxxx/jetty_base/common/lib/jaxb-core-2.3.0.1.jar:/opt/xxxx/jetty_base/common/lib/jaxb-impl-2.3.1.jar:/opt/xxxx/jetty_base/common/lib/jaxen-1.1.3.jar:/opt/xxxx/jetty_base/common/lib/jaxws-api-2.3.1.jar:/opt/xxxx/jetty_base/common/lib/jcommon-1.0.21.jar:/opt/xxxx/jetty_base/common/lib/jdom-1.1.jar:/opt/xxxx/jetty_base/common/lib/jfreechart-1.0.15.jar:/opt/xxxx/jetty_base/common/lib/json-20090211.jar:/opt/xxxx/jetty_base/common/lib/jtnef-1.9.0.jar:/opt/xxxx/jetty_base/common/lib/junixsocket-common-2.0.4.jar:/opt/xxxx/jetty_base/common/lib/junixsocket-demo-2.0.4.jar:/opt/xxxx/jetty_base/common/lib/junixsocket-mysql-2.0.4.jar:/opt/xxxx/jetty_base/common/lib/junixsocket-rmi-2.0.4.jar:/opt/xxxx/jetty_base/common/lib/jzlib-1.0.7.jar:/opt/xxxx/jetty_base/common/lib/libidn-1.24.jar:/opt/xxxx/jetty_base/common/lib/log4j-1.2.16.jar:/opt/xxxx/jetty_base/common/lib/mail-1.4.7.jar:/opt/xxxx/jetty_base/common/lib/mariadb-java-client-1.1.8.jar:/opt/xxxx/jetty_base/common/lib/nekohtml-1.9.13.1z.jar:/opt/xxxx/jetty_base/common/lib/oauth-20100527.jar:/opt/xxxx/jetty_base/common/lib/spymemcached-2.12.1.jar:/opt/xxxx/jetty_base/common/lib/unboundid-ldapsdk-2.3.5.jar:/opt/xxxx/jetty_base/common/lib/xercesImpl-2.9.1-patch-01.jar:/opt/xxxx/jetty_base/common/lib/yuicompressor-2.4.2-xxxx.jar:/opt/xxxx/lib/jars/xxxxcommon.jar:/opt/xxxx/lib/jars/xxxx-native.jar
>>> org.eclipse.jetty.xml.XmlConfiguration java.version=11.0.2
>>> java.version.major=11 java.version.micro=2 java.version.minor=0
>>> java.version.platform=11 jetty.base=/opt/xxxx/mailboxd
>>> jetty.base.uri=file:///opt/xxxx/mailboxd
>>> jetty.home=/opt/xxxx/common/jetty_home
>>> jetty.home.uri=file:///opt/xxxx/common/jetty_home
>>> mailboxd_keystore=/opt/xxxx/mailboxd/etc/keystore
>>> mailboxd_keystore_password=r538G4S0 mailboxd_truststore_password=changeit
>>> nio_imap_enabled=true xxxx_gid=999 xxxx_uid=999 xxxxImapBindAddress=
>>> xxxxImapBindPort=7143 xxxxImapServerEnabled=true xxxxImapSSLBindAddress=
>>> xxxxImapSSLBindPort=7993 xxxxImapSSLServerEnabled=true xxxxLmtpBindAddress=
>>> xxxxLmtpBindPort=7025 xxxxLmtpServerEnabled=true
>>> xxxxMailboxdSSLProtocols=SSLv2Hello\ TLSv1\ TLSv1.1\ TLSv1.2
>>> xxxxPop3BindAddress= xxxxPop3BindPort=7110 xxxxPop3ServerEnabled=true
>>> xxxxPop3SSLBindAddress= xxxxPop3SSLBindPort=7995
>>> xxxxPop3SSLServerEnabled=true xxxxSSLExcludeCipherSuites=.*_RC4_.*
>>> xxxxSSLIncludeCipherSuites=
>>> /opt/xxxx/common/jetty_home/etc/jetty-threadpool.xml
>>> /opt/xxxx/jetty_base/etc/jetty.xml
>>> /opt/xxxx/common/jetty_home/etc/jetty-webapp.xml
>>> /opt/xxxx/common/jetty_home/etc/jetty-plus.xml
>>> /opt/xxxx/common/jetty_home/etc/jetty-annotations.xml
>>> /opt/xxxx/common/jetty_home/etc/jetty-jmx.xml
>>> /opt/xxxx/jetty_base/etc/jetty-setuid.xml
>>>
>>> Thanks
>>> Rupali
>>>
>>> On Wed, Apr 24, 2019 at 4:57 PM Jan Bartel <[email protected]> wrote:
>>>
>>>> Also, your settings for the system and server classes for the webapp
>>>> contexts look all wrong, and don't match the defaults in the WebAppContext
>>>> class for jetty-9.4.15.
>>>>
>>>> Your dump shows:
>>>>
>>>> System Classes:
>>>> +> java.
>>>> |  |  |  |  |  |  |  +> javax.
>>>> |  |  |  |  |  |  |  +> org.apache.commons.logging.
>>>> |  |  |  |  |  |  |  +> org.eclipse.jetty.continuation.
>>>> |  |  |  |  |  |  |  +> org.eclipse.jetty.http.
>>>> |  |  |  |  |  |  |  +> org.eclipse.jetty.io.
>>>> |  |  |  |  |  |  |  +> org.eclipse.jetty.jndi.
>>>> |  |  |  |  |  |  |  +> org.eclipse.jetty.plus.jaas.
>>>> |  |  |  |  |  |  |  +> org.eclipse.jetty.security.
>>>> |  |  |  |  |  |  |  +> org.eclipse.jetty.server.
>>>> |  |  |  |  |  |  |  +> org.eclipse.jetty.servlet.
>>>> |  |  |  |  |  |  |  +> org.eclipse.jetty.servlets.
>>>> |  |  |  |  |  |  |  +> org.eclipse.jetty.util.
>>>> |  |  |  |  |  |  |  +> org.eclipse.jetty.websocket.
>>>> |  |  |  |  |  |  |  +> org.w3c.
>>>> |  |  |  |  |  |  |  +> org.xml.
>>>>
>>>> but should be (see
>>>> https://github.com/eclipse/jetty.project/blob/jetty-9.4.15.v20190215/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebAppContext.java#L113
>>>> )
>>>>        "java.",                            // Java SE classes (per
>>>> servlet spec v2.5 / SRV.9.7.2)
>>>>         "javax.",                           // Java SE classes (per
>>>> servlet spec v2.5 / SRV.9.7.2)
>>>>         "org.xml.",                         // needed by javax.xml
>>>>         "org.w3c.",                         // needed by javax.xml
>>>>         "org.eclipse.jetty.jmx.",           // webapp cannot change jmx
>>>> classes
>>>>         "org.eclipse.jetty.util.annotation.",  // webapp cannot change
>>>> jmx annotations
>>>>         "org.eclipse.jetty.continuation.",  // webapp cannot change
>>>> continuation classes
>>>>         "org.eclipse.jetty.jndi.",          // webapp cannot change
>>>> naming classes
>>>>         "org.eclipse.jetty.jaas.",          // webapp cannot change
>>>> jaas classes
>>>>         "org.eclipse.jetty.websocket.",     // webapp cannot change /
>>>> replace websocket classes
>>>>         "org.eclipse.jetty.util.log.",      // webapp should use server
>>>> log
>>>>         "org.eclipse.jetty.servlet.DefaultServlet", // webapp cannot
>>>> change default servlets
>>>>         "org.eclipse.jetty.jsp.JettyJspServlet", //webapp cannot change
>>>> jetty jsp servlet
>>>>         "org.eclipse.jetty.servlets.PushCacheFilter", //must be loaded
>>>> by container classpath
>>>>         "org.eclipse.jetty.servlets.PushSessionCacheFilter" //must be
>>>> loaded by container classpath
>>>>
>>>>
>>>> Your Server Classes:
>>>>
>>>> |  |  |  |  |  |  |  +> -org.eclipse.jetty.apache.
>>>> |  |  |  |  |  |  |  +> -org.eclipse.jetty.continuation.
>>>> |  |  |  |  |  |  |  +> -org.eclipse.jetty.http.
>>>> |  |  |  |  |  |  |  +> -org.eclipse.jetty.io.
>>>> |  |  |  |  |  |  |  +> -org.eclipse.jetty.jndi.
>>>> |  |  |  |  |  |  |  +> -org.eclipse.jetty.plus.jass. (note this is
>>>> misspelt!!)
>>>> |  |  |  |  |  |  |  +> -org.eclipse.jetty.security.
>>>> |  |  |  |  |  |  |  +> -org.eclipse.jetty.server.
>>>> |  |  |  |  |  |  |  +> -org.eclipse.jetty.servlet.
>>>> |  |  |  |  |  |  |  +> -org.eclipse.jetty.servlets.
>>>> |  |  |  |  |  |  |  +> -org.eclipse.jetty.util.
>>>> |  |  |  |  |  |  |  +> -org.eclipse.jetty.websocket.
>>>> |  |  |  |  |  |  |  +> org.eclipse.jetty.
>>>>
>>>> but should be (see
>>>> https://github.com/eclipse/jetty.project/blob/jetty-9.4.15.v20190215/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebAppContext.java#L139
>>>> ):
>>>>
>>>>         "-org.eclipse.jetty.server.session.SessionData", //don't hide
>>>> SessionData for de/serialization purposes
>>>>         "-org.eclipse.jetty.jmx.",          // don't hide jmx classes
>>>>         "-org.eclipse.jetty.util.annotation.", // don't hide jmx
>>>> annotation
>>>>         "-org.eclipse.jetty.continuation.", // don't hide continuation
>>>> classes
>>>>         "-org.eclipse.jetty.jndi.",         // don't hide naming classes
>>>>         "-org.eclipse.jetty.jaas.",         // don't hide jaas classes
>>>>         "-org.eclipse.jetty.servlets.",     // don't hide jetty servlets
>>>>         "-org.eclipse.jetty.servlet.DefaultServlet", // don't hide
>>>> default servlet
>>>>         "-org.eclipse.jetty.servlet.NoJspServlet", // don't hide
>>>> noJspServlet servlet
>>>>         "-org.eclipse.jetty.jsp.",          //don't hide jsp servlet
>>>>         "-org.eclipse.jetty.servlet.listener.", // don't hide useful
>>>> listeners
>>>>         "-org.eclipse.jetty.websocket.",    // don't hide websocket
>>>> classes from webapps (allow webapp to use ones from system classloader)
>>>>         "-org.eclipse.jetty.apache.",       // don't hide jetty apache
>>>> impls
>>>>         "-org.eclipse.jetty.util.log.",     // don't hide server log
>>>>         "-org.eclipse.jetty.alpn.",         // don't hide ALPN
>>>>         "org.objectweb.asm.",               // hide asm used by jetty
>>>>         "org.eclipse.jdt.",                 // hide jdt used by jetty
>>>>         "org.eclipse.jetty."                // hide other jetty classes
>>>>
>>>> There is also something else wrong with the setup for your contexts, as
>>>> you can see by the logs that for the contexts /service and /, that jetty
>>>> tries to load the JettyJspServlet, fails and replaces it with the
>>>> NoJspServlet:
>>>>
>>>> NO JSP Support for /service, did not find
>>>> org.eclipse.jetty.jsp.JettyJspServlet
>>>> NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
>>>>
>>>> However, for the /zxxxxAdmin context, we don't see the failure to load
>>>> the JettyJspServlet early in deployment, it only fails to load it when the
>>>> ServletHandler is being started.  I assume this failure is due to your
>>>> incorrect system and server classes setup, however this should also fail
>>>> for the / and /service contexts. The fact that it doesn't means there is
>>>> something else wrong with your setup.
>>>>
>>>> As for the /zimlet context, this appears to be differently deployed
>>>> than the rest - I see it is an auto-managed bean of the
>>>> ContextHandlerCollection, whereas the rest of the contexts are added as
>>>> managed beans of the ContextHandlerCollection. Please provide more details
>>>> on how you are deploying the /zimlet context.
>>>>
>>>> Jan
>>>>
>>>> On Wed, 24 Apr 2019 at 11:11, Jan Bartel <[email protected]> wrote:
>>>>
>>>>> Number 12) apache-jsp should say "transitive provider of apache-jsp
>>>>> for jsp", so there is something wrong with the way the apache-jsp module 
>>>>> is
>>>>> being initialized.
>>>>>
>>>>> There is also a further problem, in that your log output from the dump
>>>>> command throws a NullPointerException - not sure why that is happening or
>>>>> if it is related, but it certainly prevents the dump from showing us your
>>>>> system classpath. Will look into the NPE further.
>>>>>
>>>>> Meanwhile, I suggest you do a "java -jar ../start.jar --dry-run" and
>>>>> that output should show us the jars that are on jetty's container
>>>>> classpath. But first, do please check how you have enbled the apache-jsp
>>>>> module - you shouldn't specify it anywyhere, jetty should do it for you if
>>>>> you just enable the jsp module.
>>>>>
>>>>> Jan
>>>>>
>>>>> On Tue, 23 Apr 2019 at 12:54, Rupali Desai <[email protected]> wrote:
>>>>>
>>>>>> Hello,
>>>>>> I am upgrading the jetty in my web application from 9.3 to 9.4.15. I
>>>>>> have added support for JSP in the app web.xml and the"jsp" module is
>>>>>> included in startup option using "--module=jsp...". Iam using open JDK
>>>>>> 11.02. However when I start the application I get
>>>>>> "java.lang.ClassNotFoundException:
>>>>>> org.eclipse.jetty.jsp.JettyJspServlet"
>>>>>>
>>>>>> I can see the Apache JSP jars on the container classpath. However I
>>>>>> still get the above error.
>>>>>> Any suggestions on how to fix it.
>>>>>>
>>>>>> Jetty Server Classpath:
>>>>>> -----------------------
>>>>>> 19:                      7.0 |
>>>>>> ${jetty.home}/lib/annotations/asm-tree-7.0.jar
>>>>>> 20:                      1.3 |
>>>>>> ${jetty.home}/lib/annotations/javax.annotation-api-1.3.jar
>>>>>> 21:    3.14.0.v20180528-0519 |
>>>>>> ${jetty.home}/lib/apache-jsp/org.eclipse.jdt.ecj-3.14.0.jar
>>>>>> 22:         9.4.15.v20190215 |
>>>>>> ${jetty.home}/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.4.15.v20190215.jar
>>>>>> 23:                   8.5.24 |
>>>>>> ${jetty.home}/lib/apache-jsp/org.mortbay.jasper.apache-el-8.5.35.1.jar
>>>>>> 24:                      2.3 |
>>>>>> ${jetty.home}/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.5.35.1.jar
>>>>>> 25:                    1.2.5 |
>>>>>> ${jetty.home}/lib/apache-jstl/org.apache.taglibs.taglibs-standard-impl-1.2.5.jar
>>>>>> 26:                    1.2.5 |
>>>>>> ${jetty.home}/lib/apache-jstl/org.apache.taglibs.taglibs-standard-spec-1.2.5.jar
>>>>>>
>>>>>> Enabled Modules:
>>>>>> ================
>>>>>>     0) mail            transitive provider of mail for jndi
>>>>>>     1) ext             <command-line>
>>>>>>     2) resources       <command-line>
>>>>>>     3) threadpool      transitive provider of threadpool for server
>>>>>>                        init template available with
>>>>>> --add-to-start=threadpool
>>>>>>     4) server          <command-line>
>>>>>>     5) jndi            transitive provider of jndi for plus
>>>>>>     6) security        transitive provider of security for webapp
>>>>>>                        transitive provider of security for plus
>>>>>>     7) transactions    transitive provider of transactions for plus
>>>>>>     8) servlet         <command-line>
>>>>>>     9) webapp          <command-line>
>>>>>>    10) plus            <command-line>
>>>>>>    11) annotations     transitive provider of annotations for
>>>>>> websocket
>>>>>>                        transitive provider of annotations for jsp
>>>>>>    12) apache-jsp      <command-line>
>>>>>>    13) apache-jstl     transitive provider of apache-jstl for jstl
>>>>>>    14) client          transitive provider of client for websocket
>>>>>>    15) continuation    <command-line>
>>>>>>    16) jmx             <command-line>
>>>>>>    17) jsp             <command-line>
>>>>>>    18) jstl            <command-line>
>>>>>>    19) servlets        <command-line>
>>>>>>    20) websocket       <command-line>
>>>>>>    21) rewrite         <command-line>
>>>>>>    22) setuid          <command-line>
>>>>>>
>>>>>> Thanks
>>>>>> Rupali
>>>>>> _______________________________________________
>>>>>> jetty-users mailing list
>>>>>> [email protected]
>>>>>> To change your delivery options, retrieve your password, or
>>>>>> unsubscribe from this list, visit
>>>>>> https://www.eclipse.org/mailman/listinfo/jetty-users
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Jan Bartel <[email protected]>
>>>>> www.webtide.com
>>>>> *Expert assistance from the creators of Jetty and CometD*
>>>>>
>>>>>
>>>>
>>>> --
>>>> Jan Bartel <[email protected]>
>>>> www.webtide.com
>>>> *Expert assistance from the creators of Jetty and CometD*
>>>>
>>>> _______________________________________________
>>>> jetty-users mailing list
>>>> [email protected]
>>>> To change your delivery options, retrieve your password, or unsubscribe
>>>> from this list, visit
>>>> https://www.eclipse.org/mailman/listinfo/jetty-users
>>>
>>>
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to