Hey there, I am stuck with this project...
I initially got the output for customers But when i added the two lines below, Person person = new Person("Dhwani","patel"); sce.getServletContext().setAttribute("person", person); I am getting an error like, INFO: SharedSecrets.getJavaNetAccess()=java.net.urlclassloade...@50620f INFO: Unknown loader org.glassfish.internal.api.delegatingclassloa...@e38fcaclass org.glassfish.internal.api.DelegatingClassLoader SEVERE: WebModule[/MyHelloWeb]PWC1275: Exception sending context initialized event to listener instance of class org.apache.taglibs.standard.examples.startup.Init java.lang.NullPointerException at org.apache.taglibs.standard.examples.beans.Person.setName(Person.java:32) at org.apache.taglibs.standard.examples.beans.Person.<init>(Person.java:24) at org.apache.taglibs.standard.examples.startup.Init.init(Init.java:110) at org.apache.taglibs.standard.examples.startup.Init.contextInitialized(Init.java:78) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4623) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5323) at com.sun.enterprise.web.WebModule.start(WebModule.java:456) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:922) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:906) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2205) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1890) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:85) at com.sun.enterprise.v3.server.ApplicationLifecycle.start(ApplicationLifecycle.java:560) at com.sun.enterprise.v3.server.ApplicationLifecycle.start(ApplicationLifecycle.java:547) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:189) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:329) at com.sun.enterprise.v3.admin.CommandRunner$2.execute(CommandRunner.java:302) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:312) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:119) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:99) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:250) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:176) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:147) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184) SEVERE: PWC1306: Startup of context /MyHelloWeb failed due to previous errors Am I missing any step ?? Thanks, On Wed, Sep 9, 2009 at 11:27 AM, Alfredo Torres < alfredoluis.tor...@gmail.com> wrote: > > Hi, > > I solve it, The problem was in the variable name cases. > > Skip this post > Thanks all > Cheers > Alfredo > > On Sep 9, 10:44 am, Alfredo Torres <alfredoluis.tor...@gmail.com> > wrote: > > Hi, > > > > I am working on the lab 4006 homework, I have everithing aparently > fine. > > > > Person person = new Person("Alfredo","Torres"); > > sce.getServletContext().setAttribute("person", person); > > > > I have the person object then the name then the firstname and then > > the lastname (I can see it in the debug mode) > > > > When i call <c:out value="The person first names is: > > ${person.name.firstName}"/> in the page appear "Alfredo" > > > > but when i try to display ${person.name.lastName} i receive thie error: > > > > The class > > 'org.apache.taglibs.standard.examples.beans.Name<http://org.apache.taglibs.standard.examples.beans.name/>' > does not > > have the property 'lastName'. > > > > Why???? anyone can help me on this?? > > Thanks in advance > > > > -- > > Saludos > > Alfredo Torres > > Hab.+58 212 9446304 > > Cel. +58 416 6118599 > > > > -- Dhwani Patel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---