Bug 1260639 - Embedded-query uber jar contains javax.servlet package
Summary: Embedded-query uber jar contains javax.servlet package
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Infinispan
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: DR4
: 6.6.0
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-07 12:10 UTC by Jiri Holusa
Modified: 2025-02-10 03:48 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:48:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jiri Holusa 2015-09-07 12:10:43 UTC
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 13:45:26 UTC
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.

Comment 10 Red Hat Bugzilla 2025-02-10 03:48:09 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


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