java - Why is Odata Olingo JPA producer working, even though error log displays? -


i'm new in java ee servlet world has basic idea. tried implement example odata producer using olingo library. follow this tutorial

so can see correct output emplist.svc/$metadata.

it uses following libraries:-

jpa: add eclipselink , jpa persistence

eclipselink.jar
javax.persistence_2.1.0.v201304241213.jar

database: add mysql connector

mysql-connector-java-5.1.28-bin.jar

odata: add apache olingo odata libraries

olingo-odata2-core-incubating-1.0.0.jar
olingo-odata2-api-incubating-1.0.0.jar
olingo-odata2-api-annotation-incubating-1.0.0.jar
olingo-odata2-jpa-processor-core-incubating-1.0.0.jar
olingo-odata2-jpa-processor-api-incubating-1.0.0.jar
javax.ws.rs-javax.ws.rs-api-2.0-m10.jar

service: other libraries required

cxf-api-2.7.5.jar
cxf-rt-bindings-xml-2.7.5.jar
cxf-rt-core-2.7.5.jar
cxf-rt-frontend-jaxrs-2.7.5.jar
cxf-rt-transports-http-2.7.5.jar

as far understood example doesn't use spring framework or library. how come complaining spring , still working.

when launch tomcat 7. can see following error log:-

info: starting servlet engine: apache tomcat/7.0.61 may 08, 2015 11:10:42 org.apache.catalina.loader.webappclassloader validatejarfile info: validatejarfile(/users/masum/practice/hibernate/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/salesorderprocessing.app/web-inf/lib/servlet-api-2.5.jar) - jar not loaded. see servlet spec 3.0, section 10.7.2. offending class: javax/servlet/servlet.class log4j:warn no appenders found logger (org.apache.cxf.common.logging.logutils). log4j:warn please initialize log4j system properly. log4j:warn see http://logging.apache.org/log4j/1.2/faq.html#noconfig more info. may 08, 2015 11:10:44 org.apache.catalina.core.applicationcontext log info: no spring webapplicationinitializer types detected on classpath may 08, 2015 11:10:44 org.apache.catalina.core.applicationcontext log info: initializing spring root webapplicationcontext may 08, 2015 11:10:44 org.springframework.web.context.contextloader initwebapplicationcontext info: root webapplicationcontext: initialization started may 08, 2015 11:10:44 org.springframework.context.support.abstractapplicationcontext preparerefresh info: refreshing root webapplicationcontext: startup date [fri may 08 11:10:44 eest 2015]; root of context hierarchy may 08, 2015 11:10:44 org.springframework.beans.factory.xml.xmlbeandefinitionreader loadbeandefinitions info: loading xml bean definitions servletcontext resource [/web-inf/applicationcontext.xml] may 08, 2015 11:10:44 org.springframework.web.context.contextloader initwebapplicationcontext severe: context initialization failed org.springframework.beans.factory.beandefinitionstoreexception: ioexception parsing xml document servletcontext resource [/web-inf/applicationcontext.xml]; nested exception java.io.filenotfoundexception: not open servletcontext resource [/web-inf/applicationcontext.xml] @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:341) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:302) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:174)

caused by: java.io.filenotfoundexception: not open servletcontext resource [/web-inf/applicationcontext.xml] @ org.springframework.web.context.support.servletcontextresource.getinputstream(servletcontextresource.java:140)


Comments