Bug 1260639 - Embedded-query uber jar contains javax.servlet package
Embedded-query uber jar contains javax.servlet package
Status: VERIFIED
Product: JBoss Data Grid 6
Classification: JBoss
Component: Infinispan (Show other bugs)
6.4.0
Unspecified Unspecified
high Severity unspecified
: DR4
: 6.6.0
Assigned To: Sebastian Łaskawiec
Martin Gencur
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-07 08:10 EDT by Jiri Holusa
Modified: 2015-11-09 01:15 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jiri Holusa 2015-09-07 08:10:43 EDT
When testing embedded querying on Tomcat 7 using infinispan-embedded-query uber-jar, following exception is thrown:

org.infinispan.commons.CacheConfigurationException: ISPN000278: Indexing can only be enabled if infinispan-query.jar is available on your classpath, and this jar has not been detected.
	at org.infinispan.configuration.cache.IndexingConfigurationBuilder.validate(IndexingConfigurationBuilder.java:144)
	at org.infinispan.configuration.cache.ConfigurationBuilder.validate(ConfigurationBuilder.java:186)
	at org.infinispan.configuration.cache.ConfigurationBuilder.build(ConfigurationBuilder.java:202)
	at org.infinispan.configuration.cache.ConfigurationBuilder.build(ConfigurationBuilder.java:197)
...

Please note that the same test works fine if uber-jars are not present. Also note, that the same tests pass with EAP 6.4, EAP 6.3 and even Tomcat 8 when using uber-jars. It looks like the Tomcat 7 doesn't see all the dependencies via infinispan-embedded-query.
Comment 3 Jiri Holusa 2015-09-07 09:45:26 EDT
The possible cause is in the server log: 

INFO: validateJarFile(/mnt/hudson_workspace/workspace/jdg-func-invm-in-containers/d94808d1/ews-server/tomcat70/webapps/test/WEB-INF/lib/infinispan-embedded-query.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class

IMHO it doesn't make sense to have the javax.servlet package in the uber-jar.

Note You need to log in before you can comment on or make changes to this bug.