Note that there are some explanatory texts on larger screens.

plurals
  1. POSEVERE: Error listenerStart in java web application
    primarykey
    data
    text
    <p>I for the first time trying to use ServletContextListener to execute a perticular function every time application gets deployed.For this i have taken a simple java class file and implemented ServletContextListener on it and declared the listner in web.xml but on deploying it is giving error as </p> <pre><code>SEVERE: Error listenerStart in netbeans .. Apache tomcat server logs in netbeans.. </code></pre> <blockquote> <p>Nov 15, 2013 11:59:03 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class app.classes.ContextListenerProcess java.lang.IllegalAccessException: Class org.apache.catalina.core.DefaultInstanceManager can not access a member of class app.classes.ContextListenerProcess with modifiers ""</p> </blockquote> <p>Here is my java class file implementing the ServletContextListener</p> <pre><code>package app.classes; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import javax.servlet.annotation.WebListener; @WebListener() class ContextListenerProcess implements ServletContextListener { @Override public void contextDestroyed(ServletContextEvent sce) { } @Override public void contextInitialized(ServletContextEvent sce) { // Do your startup work here System.out.println("Processing Started ....."); } } </code></pre> <p>and here is my web.xml adding ContextListenerProcess class ...</p> <pre><code> &lt;listener&gt; &lt;listener-class&gt;app.classes.ContextListenerProcess&lt;/listener-class&gt; &lt;/listener&gt; </code></pre> <p>Please guys help me to resolve the issue.. Thanks in advance..</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload