Missing javax.servlet.api dependency in org.jasig.cas.client module
Issue
- When trying to use the
cas-client-core-3.2.1.jarof /modules/system/layers/gatein/org/jasig/cas/client/main/ in an application by defining dependency in thejboss-deployement-structure.xmlfile, a java.lang.ClassNotFoundException exception is thrown for the missing dependency of javax.servlet.http.HttpSessionListener in thecas-client-core-3.2.1.jar
10:48:12,740 WARN [org.jboss.modules] (MSC service thread 1-8) Failed to define class org.jasig.cas.client.session.SingleSignOutHttpSessionListener in Module "org.jasig.cas.client:main" from local module loader @1e845c2 (finder: local module finder @3c0007 (roots: C:\Java\jboss-jpp-6.1.0\modules,C:\Java\jboss-jpp-6.1.0\modules\system\layers\gatein,C:\Java\jboss-jpp-6.1.0\modules\system\layers\base)): java.lang.LinkageError: Failed to link org/jasig/cas/client/session/SingleSignOutHttpSessionListener (Module "org.jasig.cas.client:main" from local module loader @1e845c2 (finder: local module finder @3c0007 (roots: C:\Java\jboss-jpp-6.1.0\modules,C:\Java\jboss-jpp-6.1.0\modules\system\layers\gatein,C:\Java\jboss-jpp-6.1.0\modules\system\layers\base)))
...
...
Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionListener
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_45]
...
...
Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpSessionListener from [Module "org.jasig.cas.client:main" from local module loader @1e845c2 (finder: local module finder @3c0007 (roots: C:\Java\jboss-jpp-6.1.0\modules,C:\Java\jboss-jpp-6.1.0\modules\system\layers\gatein,C:\Java\jboss-jpp-6.1.0\modules\system\layers\base))]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196) [jboss-modules.jar:1.2.2.Final-redhat-1]
Environment
- Red Hat JBoss Portal (JPP)
- 6.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
