ServletContextListner still executing on removal from deployment descriptor and project directory

StackOverflow https://stackoverflow.com/questions/20342969

سؤال

I made a servletContextListener which was reading values from database and added it in the deployment descriptor. After testing I removed the servletContextListener file from project directory as well as from deployment descriptor and cleaned and build the project which happened successfully. But after this on running my application servletContextListener is executing and reading values from database. I don't know from where is this reading the values when the files is not present in the project directory.

I am running my application under Netbeans Apache Tomcat server.

هل كانت مفيدة؟

المحلول

<web-app ...>
    <listener>
        <listener-class>your listener </listener-class>
    </listener>
</web-app>

remove this entry from web.xml

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top