You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ehcache Spring Annotations
Hi
I am trying to use the spring annotations project, but I am getting an
exception. I tried this in a junit test case and in my web app, same
error
These are all the jar files I have in my web app lib directory (WEB-
INF/lib):
antlr-2.7.6.jar
aopalliance-1.0.jar
asm-attrs.jar
asm.jar
aspectjrt-1.6.2.jar
castor-1.2.jar
cglib-2.1.3.jar
cglib-2.2.jar
commons-codec-1.4.jar
commons-collections-2.1.1.jar
commons-fileupload-1.2.1.jar
commons-httpclient-3.1-rc1.jar
commons-io-1.4.jar
commons-lang-2.5.jar
commons-logging-1.1.1.jar
commons-logging-1.1.jar
DiscNucleus.jar
dom4j-1.6.1.jar
ehcache-2.2.0.jar
ehcache-spring-annotations-1.1.2.jar
el-api-2.2.jar
el-impl-2.2.jar
hibernate-annotations.jar
hibernate-commons-annotations.jar
hibernate-entitymanager.jar
hibernate-tools.jar
hibernate3.jar
InvestBase.jar
InvestCommons.jar
javassist.jar
jdbc2_0-stdext.jar
jsf-api.jar
jsf-impl.jar
jstl-api-1.2.jar
jstl-impl-1.2.jar
jta.jar
kavachart_proserve-5_3_1.jar
kavachart_proserve_license-5_3_1.jar
ojdbc14-10.2.0.2.0.jar
org.springframework.aop-3.0.3.RELEASE.jar
org.springframework.asm-3.0.3.RELEASE.jar
org.springframework.aspects-3.0.3.RELEASE.jar
org.springframework.beans-3.0.3.RELEASE.jar
org.springframework.context-3.0.3.RELEASE.jar
org.springframework.context.support-3.0.3.RELEASE.jar
org.springframework.core-3.0.3.RELEASE.jar
org.springframework.expression-3.0.3.RELEASE.jar
org.springframework.instrument-3.0.3.RELEASE.jar
org.springframework.instrument.tomcat-3.0.3.RELEASE.jar
org.springframework.jdbc-3.0.3.RELEASE.jar
org.springframework.jms-3.0.3.RELEASE.jar
org.springframework.orm-3.0.3.RELEASE.jar
org.springframework.oxm-3.0.3.RELEASE.jar
org.springframework.test-3.0.3.RELEASE.jar
org.springframework.transaction-3.0.3.RELEASE.jar
org.springframework.web-3.0.3.RELEASE.jar
org.springframework.web.portlet-3.0.3.RELEASE.jar
org.springframework.web.servlet-3.0.3.RELEASE.jar
org.springframework.web.struts-3.0.3.RELEASE.jar
primefaces-2.1.jar
slf4j-api-1.6.1.jar
The xml in my spring context xml
<ehcache:annotation-driven cache-manager="ehCacheManager" />
<bean id="ehCacheManager"
class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"/>
This is the exception I am getting:
[#|2010-07-27T11:49:50.421+0200|SEVERE|glassfish3.0.1|
javax.enterprise.system.core.com.sun.enterprise.v3.server|
_ThreadID=25;_ThreadName=http-thread-pool-48
48-(1);|Exception while loading the app
java.lang.Exception: java.lang.IllegalStateException:
ContainerBase.addChild: start: org.apache.catalina.LifecycleException:
org.springframework.beans.facto
ry.parsing.BeanDefinitionParsingException: Configuration problem:
Failed to import bean definitions from URL location [classpath*:spring/
investSessionFactor
yContext.xml]
Offending resource: ServletContext resource [/WEB-INF/
investApplicationContext.xml]; nested exception is
org.springframework.beans.factory.xml.XmlBeanDefini
tionStoreException: Line 29 in XML document from URL [jar:file:/C:/
Liver/Development/Invest/Code2/trunk/InvestApp/build/web/WEB-INF/lib/
InvestBase.jar!/spri
ng/investSessionFactoryContext.xml] is invalid; nested exception is
org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching
wildcard is strict,
but no declaration can be found for element 'ehcache:annotation-
driven'.
at
com.sun.enterprise.web.WebApplication.start(WebApplication.java:117)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:
126)
at
org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
at
org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:
236)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:
339)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:
183)
at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:
272)
at com.sun.enterprise.v3.admin.CommandRunnerImpl
$1.execute(CommandRunnerImpl.java:305)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:
320)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:
1176)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access
$900(CommandRunnerImpl.java:83)
at com.sun.enterprise.v3.admin.CommandRunnerImpl
$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.CommandRunnerImpl
$ExecutionContext.execute(CommandRunnerImpl.java:1224)
at
com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:
365)
at
com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:
204)
at
com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:
166)
at
com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:
100)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:
245)
at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:
791)
at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:
170)
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:
135)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:
102)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:
88)
at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:
76)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:
53)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:
57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool
$Worker.doWork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool
$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:619)
|#]
taskman
unread,
Jul 27, 2010, 6:07:53 AM7/27/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ehcache Spring Annotations
In case you guys need the full spring xml that I am using. As you can
see I added ehcache at the top also of the xml
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ehcache Spring Annotations
I moved the code into another smaller test project with only the
minimum jars as found in the jar that I downloaded and 3 extra jars to
get spring to work, still same problem