JavierVera
asked on
Configuring for Spring DAO with Jersey, what am i missing?
Hi there people,
i've got question i couldnt find on google..
I had this error shown when trying to deploy on the debug server a Spring application.
I only wanted to configure the Spring DAO in order to use it with Jersey
--
feb 16, 2014 9:55:15 PM org.apache.catalina.core.S tandardCon text listenerStart
SEVERE: Error configurando escuchador de aplicación de clase org.springframework.web.co ntext.Cont extLoaderL istener
java.lang.NoClassDefFoundE rror: javax/servlet/ServletConte xtListener
at java.lang.ClassLoader.find BootstrapC lass(Nativ e Method)
at java.lang.ClassLoader.find BootstrapC lassOrNull (Unknown Source)
at java.lang.ClassLoader.load Class(Unkn own Source)
at java.lang.ClassLoader.load Class(Unkn own Source)
at sun.misc.Launcher$AppClass Loader.loa dClass(Unk nown Source)
at java.lang.ClassLoader.load Class(Unkn own Source)
at org.apache.catalina.loader .WebappCla ssLoader.l oadClass(W ebappClass Loader.jav a:1595)
at org.apache.catalina.loader .WebappCla ssLoader.l oadClass(W ebappClass Loader.jav a:1526)
at org.apache.catalina.core.S tandardCon text.liste nerStart(S tandardCon text.java: 4149)
at org.apache.catalina.core.S tandardCon text.start (StandardC ontext.jav a:4705)
at org.apache.catalina.core.C ontainerBa se.addChil dInternal( ContainerB ase.java:7 99)
at org.apache.catalina.core.C ontainerBa se.addChil d(Containe rBase.java :779)
at org.apache.catalina.core.S tandardHos t.addChild (StandardH ost.java:6 01)
at org.apache.catalina.startu p.HostConf ig.deployD escriptor( HostConfig .java:675)
at org.apache.catalina.startu p.HostConf ig.deployD escriptors (HostConfi g.java:601 )
at org.apache.catalina.startu p.HostConf ig.deployA pps(HostCo nfig.java: 502)
at org.apache.catalina.startu p.HostConf ig.start(H ostConfig. java:1317)
at org.apache.catalina.startu p.HostConf ig.lifecyc leEvent(Ho stConfig.j ava:324)
at org.apache.catalina.util.L ifecycleSu pport.fire LifecycleE vent(Lifec ycleSuppor t.java:142 )
at org.apache.catalina.core.C ontainerBa se.start(C ontainerBa se.java:10 65)
at org.apache.catalina.core.S tandardHos t.start(St andardHost .java:840)
at org.apache.catalina.core.C ontainerBa se.start(C ontainerBa se.java:10 57)
at org.apache.catalina.core.S tandardEng ine.start( StandardEn gine.java: 463)
at org.apache.catalina.core.S tandardSer vice.start (StandardS ervice.jav a:525)
at org.apache.catalina.core.S tandardSer ver.start( StandardSe rver.java: 754)
at org.apache.catalina.startu p.Catalina .start(Cat alina.java :595)
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Un known Source)
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Unknown Source)
at java.lang.reflect.Method.i nvoke(Unkn own Source)
at org.apache.catalina.startu p.Bootstra p.start(Bo otstrap.ja va:289)
at org.apache.catalina.startu p.Bootstra p.main(Boo tstrap.jav a:414)
---
Web.xml and other xml configs are attached to this post.
project folders:
I have written classes with the @autowired annotation, could this be another factor?
What i expected from this was to see errros part configuration, so far i couldnt load this nor other project already working i've got.
I'd thank so much a guide for this configuration cause i've been wasting massive hours trying to achieve this properly.
Thanks in advance!
web.xml
applicationContext.xml
app-config.xml
i've got question i couldnt find on google..
I had this error shown when trying to deploy on the debug server a Spring application.
I only wanted to configure the Spring DAO in order to use it with Jersey
--
feb 16, 2014 9:55:15 PM org.apache.catalina.core.S
SEVERE: Error configurando escuchador de aplicación de clase org.springframework.web.co
java.lang.NoClassDefFoundE
at java.lang.ClassLoader.find
at java.lang.ClassLoader.find
at java.lang.ClassLoader.load
at java.lang.ClassLoader.load
at sun.misc.Launcher$AppClass
at java.lang.ClassLoader.load
at org.apache.catalina.loader
at org.apache.catalina.loader
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.C
at org.apache.catalina.core.C
at org.apache.catalina.core.S
at org.apache.catalina.startu
at org.apache.catalina.startu
at org.apache.catalina.startu
at org.apache.catalina.startu
at org.apache.catalina.startu
at org.apache.catalina.util.L
at org.apache.catalina.core.C
at org.apache.catalina.core.S
at org.apache.catalina.core.C
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.startu
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at org.apache.catalina.startu
at org.apache.catalina.startu
---
Web.xml and other xml configs are attached to this post.
project folders:
I have written classes with the @autowired annotation, could this be another factor?
What i expected from this was to see errros part configuration, so far i couldnt load this nor other project already working i've got.
I'd thank so much a guide for this configuration cause i've been wasting massive hours trying to achieve this properly.
Thanks in advance!
web.xml
applicationContext.xml
app-config.xml
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Once again i had to find the solution myself looool....
i guess there are very little people in this forum isn't it?
:)
anyway, i missed a Jar.
Thanks for reading.
i guess there are very little people in this forum isn't it?
:)
anyway, i missed a Jar.
Thanks for reading.
Also, you ask why you don't have a "classes" folder. This should be under your "build" folder that I can see in the screenshot but again that folder is not expanded so I can't see. Also, it would be useful to see the entire folder contents in the "build" folder so if you could post a screenshot of that, it would be useful.