Hi Michele 
Thanks for the reply 
I have cut and pasted my "MyInit.java" the listener created here 
"""

package org.apache.taglibs.standard.examples.startup;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;


public class MyInit implements ServletContextListener {

    public void contextInitialized(ServletContextEvent sce) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void contextDestroyed(ServletContextEvent sce) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
""""""
Thanks 
  Joseph John 




--- On Tue, 12/10/10, Michèle Garoche <migat...@gmail.com> wrote:

> From: Michèle Garoche <migat...@gmail.com>
> Subject: [java ee programming] Re: When I create listener and run the project 
> I get error
> To: "Java EE (J2EE) Programming with Passion!" 
> <java-ee-j2ee-programming-with-passion@googlegroups.com>
> Date: Tuesday, 12 October, 2010, 3:52 PM
> 
> 
> On Oct 12, 7:00 am, Joseph John <jjk.s...@gmail.com>
> wrote:
> > Hi
> >   I am using NB 6.9.1 , I am practising j2ee
> > While creating a listener in "HelloWeb" Project in EL
> chapter in
> > "http://www.javapassion.com/portal/java-ee-programming-basics-i-with-p...";
> > and running the project I get error
> > "
> > /nbproject/build-impl.xml:683: The module has not been
> deployed.
> > BUILD FAILED (total time: 0 seconds)"
> > "
> > My   "web.xml" file contains
> > "<?xml version="1.0" encoding="UTF-8"?>
> > <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee";
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > xsi:schemaLocation="http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
> >     <listener>
> >        
> <listener-class>org.apache.taglibs.standard.examples.startup.Init</listener
> -class>
> >     </listener>
> >     <listener>
> >        
> <description>ServletContextListener</description>
> >        
> <listener-class>org.apache.taglibs.standard.examples.startup.MyInit</listen
> er-class>
> >     </listener>
> >     <session-config>
> >         <session-timeout>
> >             30
> >         </session-timeout>
> >     </session-config>
> >     <welcome-file-list>
> >         <welcome-file>
> >             index.jsp
> >         </welcome-file>
> >     </welcome-file-list>
> > </web-app>
> > "
> >
> > "MyInit.java " is the listener I have created, What
> might be the
> > reason for the error
> Probably something wrong in the listener.
> Could you paste it?
> 
> Michèle Garoche
> 
> -- 
> You received this message because you are subscribed to the
> Google
> Groups "Java EE (J2EE) Programming with Passion!" group.
> To post to this group, send email to
> java-ee-j2ee-programming-with-passion@googlegroups.com
> To unsubscribe from this group, send email to
> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
> 


-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to