Super.service() in servlets

in one of the servlet programs, code given as class extending HttpServlet, then doGet() given, then in doPost(), doGet() is called, then in service() method,
super.service(req, res) is given. if i remove super.service(req, res), it is giving error. why actually service need to be given or in that super.service(req, res) need to be called? what is the meaning of super.service()?

if i remove super.service(req, res), it is giving error.Whenever you ask about an error, you must include the exact error message.
Also, if you've got these kind of problems, then I humbly suggest that you step away from servlets altogether for the moment and work a bit more on the basics. That problem has nothing to do with Servlets and everything with object oriented programming and inheritance.

Similar Messages

  • Web service and servlets in the same project...web.xml?

    Hello, I have a problem with my web service.
    I have a server, which displays a web service. I programmed this service with JAXRPC.
    I have a client, in another directory. I succeded in compiling, deploying and running the web service.
    The problem is that after I tried to integrate this service in an existing project. This project contains servlets. In these servlets, I'm using sessions.
    These servlets are on the same side as the server of the web service. Because of the implementation of my code, I'd like to use in the class that represents the server of the service, the same session as the one I'm using in the servlets.
    But of course, it's not working by itself. I know there's something to do with the web.xml files.
    The thing is that I created a web.xml file for the service, and another for the servlets.
    I was thinking of joining both of them in one xml file, but everything crashes then...
    Could someone tell me how to create a project with a web service and servlets, and mostly how to configure the xml file??
    Thanks for any help
    Philippe

    Hello, I have a problem with my web service.
    I have a server, which displays a web service. I programmed this service with JAXRPC.
    I have a client, in another directory. I succeded in compiling, deploying and running the web service.
    The problem is that after I tried to integrate this service in an existing project. This project contains servlets. In these servlets, I'm using sessions.
    These servlets are on the same side as the server of the web service. Because of the implementation of my code, I'd like to use in the class that represents the server of the service, the same session as the one I'm using in the servlets.
    But of course, it's not working by itself. I know there's something to do with the web.xml files.
    The thing is that I created a web.xml file for the service, and another for the servlets.
    I was thinking of joining both of them in one xml file, but everything crashes then...
    Could someone tell me how to create a project with a web service and servlets, and mostly how to configure the xml file??
    Thanks for any help
    Philippe

  • How to call Web Service from Servlet !

    Dear All,
    I am in dire need to understand how to call a web service from Servlet.
    I need to develop a web service which will read LDAP Directory server to retreive information.
    How I should call that web service from a Servlet? What Servlet actions do I need to write etc.
    I need guidance about design of the above task please.
    I would higly appreciate any help and guidance in this regard.
    Thanks.
    Regards,
    Waqar

    You can use java.net.URLConnection for that.

  • Desperate, help please Servlet.service() for servlet jsp threw exception

    Hi,
    I have completed 99.99% of project development, when I am about to deploy JSC throws "Servlet.service() for servlet jsp threw exception javax.faces.el.EvaluationException: java.lang.NullPointerException" I can't understand why.
    My application was working absolutely fine, I can't understand why its throwing exception now.
    I tried debuging, but i can't understand where exactly its throwing exception and whats the error.
    I would really appreciate your help, I have spent almost a day trying to figure out but din't get anywhere.
    here is my server.log
    Starting Sun Java System Application Server Platform Edition 8.0.0_01 (build b08-fcs) ...
    [#|2005-08-23T11:44:39.221+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.4.2_06] from [Sun Microsystems Inc.]|#]
    [#|2005-08-23T11:44:42.025+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM0020:Following is the information about the JMX MBeanServer used:|#]
    [#|2005-08-23T11:44:42.327+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM0001:MBeanServer initialized successfully|#]
    [#|2005-08-23T11:44:44.572+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|Creating virtual server server|#]
    [#|2005-08-23T11:44:44.598+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|S1AS AVK Instrumentation disabled|#]
    [#|2005-08-23T11:44:44.616+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core.security|_ThreadID=10;|SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#]
    [#|2005-08-23T11:44:51.061+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core.transaction|_ThreadID=10;|JTS5014: Recoverable JTS instance, serverId = [100]|#]
    [#|2005-08-23T11:44:53.917+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|Satisfying Optional Packages dependencies...|#]
    [#|2005-08-23T11:44:54.400+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.resource.resourceadapter|_ThreadID=10;|RAR7008 : Initialized monitoring registry and listeners|#]
    [#|2005-08-23T11:44:56.346+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|CORE5100:Loading system apps|#]
    [#|2005-08-23T11:44:58.494+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.ejb|_ThreadID=10;|EJB5109:EJB Timer Service started successfully for datasource [jdbc/__TimerPool]|#]
    [#|2005-08-23T11:44:58.494+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core.classloading|_ThreadID=10;|LDR5010: All ejb(s) of [__ejb_container_timer_app] loaded successfully!|#]
    [#|2005-08-23T11:44:59.954+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core.classloading|_ThreadID=10;|LDR5010: All ejb(s) of [MEjbApp] loaded successfully!|#]
    [#|2005-08-23T11:45:01.401+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core.classloading|_ThreadID=10;|LDR5010: All ejb(s) of [ConverterApp] loaded successfully!|#]
    [#|2005-08-23T11:45:01.407+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [ConverterApp:war-ic.war] in virtual server [server] at [converter]|#]
    [#|2005-08-23T11:45:02.500+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core.classloading|_ThreadID=10;|LDR5010: All ejb(s) of [travelApp] loaded successfully!|#]
    [#|2005-08-23T11:45:02.792+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core.classloading|_ThreadID=10;|LDR5010: All ejb(s) of [HelloWorldApp] loaded successfully!|#]
    [#|2005-08-23T11:45:02.798+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|WEB0302: Starting Tomcat.|#]
    [#|2005-08-23T11:45:03.281+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [adminapp] in virtual server [server] at [web1]|#]
    [#|2005-08-23T11:45:03.335+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [admingui] in virtual server [server] at [asadmin]|#]
    [#|2005-08-23T11:45:03.338+0100|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|WEB0500: default-locale attribute of locale-charset-info element has been deprecated and is being ignored. Use default-charset attribute of parameter-encoding element instead|#]
    [#|2005-08-23T11:45:03.351+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [com_sun_web_ui] in virtual server [server] at [com_sun_web_ui]|#]
    [#|2005-08-23T11:45:03.371+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [jTravellerService] in virtual server [server] at [jTravellerService]|#]
    [#|2005-08-23T11:45:03.399+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [hello-jaxrpc] in virtual server [server] at [hello-jaxrpc]|#]
    [#|2005-08-23T11:45:03.427+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.catalina.startup.Embedded|_ThreadID=10;|Starting tomcat server|#]
    [#|2005-08-23T11:45:03.428+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.catalina.startup.Embedded|_ThreadID=10;|Catalina naming disabled|#]
    [#|2005-08-23T11:45:03.637+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.catalina.core.StandardEngine|_ThreadID=10;|Starting Servlet Engine: Sun-Java-System/Application-Server-PE-8.0|#]
    [#|2005-08-23T11:45:13.214+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.resource.webservices.rpc.server.http|_ThreadID=10;|JAXRPC.JAXRPCSERVLET.12: JAX-RPC context listener initializing|#]
    [#|2005-08-23T11:45:14.087+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.resource.webservices.rpc.server.http|_ThreadID=10;|JAXRPC.JAXRPCSERVLET.14: JAX-RPC servlet initializing|#]
    [#|2005-08-23T11:45:14.268+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.catalina.startup.ContextConfig|_ThreadID=10;|Missing application web.xml, using defaults only StandardEngine[server].StandardHost[server].StandardContext[]|#]
    [#|2005-08-23T11:45:18.600+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.resource.webservices.rpc.server.http|_ThreadID=10;|JAXRPC.JAXRPCSERVLET.12: JAX-RPC context listener initializing|#]
    [#|2005-08-23T11:45:18.657+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.resource.webservices.rpc.server.http|_ThreadID=10;|JAXRPC.JAXRPCSERVLET.14: JAX-RPC servlet initializing|#]
    [#|2005-08-23T11:45:20.710+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.coyote.http11.Http11Protocol|_ThreadID=10;|Initializing Coyote HTTP/1.1 on port 18080|#]
    [#|2005-08-23T11:45:20.790+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.coyote.http11.Http11Protocol|_ThreadID=10;|Starting Coyote HTTP/1.1 on port 18080|#]
    [#|2005-08-23T11:45:21.125+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.coyote.http11.Http11Protocol|_ThreadID=10;|Initializing Coyote HTTP/1.1 on port 11043|#]
    [#|2005-08-23T11:45:21.144+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.coyote.http11.Http11Protocol|_ThreadID=10;|Starting Coyote HTTP/1.1 on port 11043|#]
    [#|2005-08-23T11:45:21.503+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.coyote.http11.Http11Protocol|_ThreadID=10;|Initializing Coyote HTTP/1.1 on port 14848|#]
    [#|2005-08-23T11:45:21.537+0100|INFO|sun-appserver-pe8.0.0_01|org.apache.coyote.http11.Http11Protocol|_ThreadID=10;|Starting Coyote HTTP/1.1 on port 14848|#]
    [#|2005-08-23T11:45:21.989+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.resource.jms|_ThreadID=10;|JMS5023: JMS service successfully started. Instance Name = imqbroker, Home = [/opt/Creator/SunAppServer8/imq/bin].|#]
    [#|2005-08-23T11:45:22.003+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.admin|_ThreadID=10;|[AutoDeploy] Enabling AutoDeployment service at :1124793922003|#]
    [#|2005-08-23T11:45:22.009+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|CORE5053: Application onReady complete.|#]
    [#|2005-08-23T11:45:22.012+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|Application server startup complete.|#]
    [#|2005-08-23T11:45:27.303+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1041:Sent the event to instance:[ResourceDeployEvent -- deploy jcp/RaveGenerated_1124793926_NFDBPool]|#]
    [#|2005-08-23T11:45:28.918+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=11;|CORE5004: Resource Deployed: [jcp:RaveGenerated_1124793926_NFDBPool].|#]
    [#|2005-08-23T11:45:29.169+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1041:Sent the event to instance:[ResourceDeployEvent -- deploy jdbc/jdbc/NFDB]|#]
    [#|2005-08-23T11:45:29.365+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=11;|CORE5004: Resource Deployed: [jdbc:jdbc/NFDB].|#]
    [#|2005-08-23T11:45:31.996+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.deployment|_ThreadID=11;|DPL5109: EJBC - START of EJBC for [_linnfdb]|#]
    [#|2005-08-23T11:45:31.999+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.deployment|_ThreadID=11;|Processing beans ...|#]
    [#|2005-08-23T11:45:32.032+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.deployment|_ThreadID=11;|DPL5110: EJBC - END of EJBC for [_linnfdb]|#]
    [#|2005-08-23T11:45:32.915+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.deployment|_ThreadID=11;|Total Deployment Time: 2082 msec, Total EJB Compiler Module Time: 37 msec, Portion spent EJB Compiling: 1%
    Breakdown of EJBC Module Time: Total Time for EJBC: 37 msec, CMP Generation: 0 msec (0%), Java Compilation: 0 msec (0%), RMI Compilation: 0 msec (0%), JAX-RPC Generation: 19 msec (51%),
    |#]
    [#|2005-08-23T11:45:32.928+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.deployment|_ThreadID=11;|deployed with moduleid = _linnfdb|#]
    [#|2005-08-23T11:45:32.990+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1041:Sent the event to instance:[ModuleDeployEvent -- deploy web/_linnfdb]|#]
    [#|2005-08-23T11:45:33.275+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1041:Sent the event to instance:[ModuleDeployEvent -- enable web/_linnfdb]|#]
    [#|2005-08-23T11:45:33.352+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=11;|WEB0100: Loading web module [_linnfdb] in virtual server [server] at [linnfdb]|#]
    [#|2005-08-23T11:45:34.837+0100|WARNING|sun-appserver-pe8.0.0_01|org.apache.commons.beanutils.MethodUtils|_ThreadID=11;|Cannot use JVM pre-1.4 access bug workaround die to restrictive security manager.|#]
    [#|2005-08-23T11:45:35.346+0100|WARNING|sun-appserver-pe8.0.0_01|org.apache.commons.digester.Digester|_ThreadID=11;|[ConverterRule]{faces-config/converter} Merge(null,java.math.BigDecimal)|#]
    [#|2005-08-23T11:45:35.364+0100|WARNING|sun-appserver-pe8.0.0_01|org.apache.commons.digester.Digester|_ThreadID=11;|[ConverterRule]{faces-config/converter} Merge(null,java.math.BigInteger)|#]
    [#|2005-08-23T11:45:37.265+0100|INFO|sun-appserver-pe8.0.0_01|com.sun.faces.config.ConfigureListener|_ThreadID=11;|Application object verification completed successfully|#]
    [#|2005-08-23T11:45:37.396+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1042:Status of dynamic reconfiguration event processing:[success]|#]
    [#|2005-08-23T11:46:28.167+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.stream.out|_ThreadID=12;|login successfull145|#]
    [#|2005-08-23T11:46:28.961+0100|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.stream.out|_ThreadID=12;|
    assigned to user query|#]
    [#|2005-08-23T11:46:34.715+0100|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=12;|ApplicationDispatcher[/linnfdb] Servlet.service() for servlet jsp threw exception
    javax.faces.el.EvaluationException: java.lang.NullPointerException      
    at
    com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
         at javax.faces.component.UISelectItems.getValue(UISelectItems.java:110)
         at com.sun.faces.util.Util.getSelectItems(Util.java:602)
         at com.sun.faces.renderkit.html_basic.MenuRenderer.getOptionNumber(MenuRenderer.java:488)
         at com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:465)
         at com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:430)
         at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
         at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)
         at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
         at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
         at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
         at com.sun.faces.renderkit.html_basic.TableRenderer.encodeBegin(TableRenderer.java:113)
         at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)
         at javax.faces.component.UIData.encodeBegin(UIData.java:681)
         at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:591)
         at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:543)
         at com.sun.faces.taglib.html_basic.DataTableTag.doEndTag(DataTableTag.java:491)
         at org.apache.jsp.NationalFaultsDataBase_jsp._jspx_meth_h_dataTable_0(NationalFaultsDataBase_jsp.java:581)
         at org.apache.jsp.NationalFaultsDataBase_jsp._jspx_meth_h_form_0(NationalFaultsDataBase_jsp.java:331)
         at org.apache.jsp.NationalFaultsDataBase_jsp._jspx_meth_f_view_0(NationalFaultsDataBase_jsp.java:291)
         at org.apache.jsp.NationalFaultsDataBase_jsp._jspService(NationalFaultsDataBase_jsp.java:182)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:102)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:282)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:210)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:718)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:478)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:413)
         at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:77)
         at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:92)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:319)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         at com.sun.jsfcl.app.ViewHandlerImpl.renderView(ViewHandlerImpl.java:181)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
         at linnfdb.data.SecurityCheckFilter.doFilter(SecurityCheckFilter.java:102)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.NullPointerException
         at com.sun.jsfcl.data.ResultSetPropertyResolver$ColumnData.getSelectItems(ResultSetPropertyResolver.java:303)
         at com.sun.jsfcl.data.ResultSetPropertyResolver.getValue(ResultSetPropertyResolver.java:61)
         at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:167)
         at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:151)
         at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
         ... 115 more
    |#]
    any help will be greatly appreciated. Pleaseeeeeeeeeeeeee can some get back to me.
    Cheers
    kumar

    hi,
    I just found that this exception is thrown from function
    public UIViewRoot createView(FacesContext context, String viewId) {
    UIViewRoot viewRoot = handler.createView(context, viewId);
    context.getExternalContext().getRequestMap().put(CREATED_VIEW, viewId);
    setupPageBean(context, viewRoot);
    return viewRoot;
    in viewHandlerImpl.java.
    Has anyone got ideas about this???
    Any help will be greatly appreciated.
    cheers
    kush

  • Web services and servlets in same context

    I would like to provide web services and servlets under the same context, where the servlets are handled by a controller mapped to multiple urls.
    If I map the servlet controller with
    <url-pattern>/servlet</url-pattern>
    then /prjServ/servlet works in a browser but of course any other urls (eg /prjServ/servlet/fred) do not.
    If I change the web.xml to be
    <url-pattern>/servlet/*</url-pattern>
    all attempts to access the servlet get requested resource not available.
    The web service continues to work fine whichever mapping I use for the servlet (the web service is /prjServ/mlm).
    Does the web service handling affect the way I can map the servlets?

    No, it should not. For the JAXRPC SI, the web services are implemented
    via one common servler.

  • 503 Service Unavailable,Servlet error: Parsing error processing resource pa

    1)I have developed an application using Struts framework(For the View and controller part ) and EJBs. When I run this application using the Embedded OC4J provided with JDeveloper,it runs fine.But when I try to deploy the same to the StandAlone OC4J(which I downloaded from OTN) or to the Application Server,I get the following error
    --503 Service Unavailable,Servlet error: Parsing error processing resource path ---
    2)The StandAlone OC4J version is 9.0.4.0.0 and I used JDK 1.4.
    3)The same application runs fine when deployed to StandAlone OC4J when I developed it using only JSPs and EJB.
    4)I even added the different libs for Struts inside WEB-XML folder under my Application Folder Structure.
    5)The StandAlone OC4J Server runs fine and displays the First Page when it is started.
    6)I even installed a totally new StandAlone OC4J and deployed all my previous applications to this new server.All the applications except where I used Struts Framework ran fine.
    The Error Message is
    04/11/01 10:36:44 Notification ==> Unpack EJBapplication.ear begins...
    04/11/01 10:36:44 Auto-unpacking C:\OC4J\New Folder\j2ee\home\applications\EJBap
    plication.ear... done.
    04/11/01 10:36:44 Notification ==> Unpack EJBapplication.ear ends...
    04/11/01 10:36:44 Notification ==> Initialize EJBapplication.ear begins...
    04/11/01 10:36:44 Auto-unpacking C:\OC4J\New Folder\j2ee\home\applications\EJBap
    plication\EJBDEMOwar.war... done.
    04/11/01 10:36:45 Copying default deployment descriptor from archive at C:\OC4J\
    New Folder\j2ee\home\applications\EJBapplication/META-INF/orion-application.xml
    to deployment directory C:\OC4J\New Folder\j2ee\home\application-deployments\EJB
    application...
    04/11/01 10:36:45 Notification ==> Initialize EJBapplication.ear ends...
    04/11/01 10:36:45 Notification ==> Initialize EJBDEMOwar begins...
    04/11/01 10:36:45 Notification ==> Initialize EJBDEMOwar ends...
    04/11/01 10:36:46 ArchiveContext: containsDirectory(META-INF) plus '/' found in
    C:\OC4J\New Folder\j2ee\home\applications\EJBapplication\EJBDEMOear.jar in entry
    META-INF/MANIFEST.MF
    04/11/01 10:36:46 Copying default deployment descriptor from archive at C:\OC4J\
    New Folder\j2ee\home\applications\EJBapplication\EJBDEMOear.jar/META-INF/orion-e
    jb-jar.xml to deployment directory C:\OC4J\New Folder\j2ee\home\application-depl
    oyments\EJBapplication\EJBDEMOear.jar...
    04/11/01 10:36:46 Auto-deploying - EJBDEMOear.jar (No previous deployment found)
    04/11/01 10:36:49 Auto-deploying - compiling and loading...
    04/11/01 10:37:00 done.
    04/11/01 10:37:00 Notification ==> Application Deployer for EJBapplication COMPL
    ETES [ 2004-11-01T10:37:00.405IST ]
    Nov 1, 2004 10:37:04 AM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru
    e
    Nov 1, 2004 10:37:04 AM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul
    l=true
    Nov 1, 2004 10:37:04 AM org.apache.commons.digester.Digester startElement
    SEVERE: Begin event threw exception
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
    Utils.java:1789)
    at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
    Utils.java:1684)
    at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
    java:1713)
    at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:101
    9)
    at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
    at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule
    .java:259)
    at org.apache.commons.digester.Rule.begin(Rule.java:200)
    at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingPa
    rser.java:1181)
    at oracle.xml.parser.v2.ValidatingParser.parseRootElement(ValidatingPars
    er.java:138)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingP
    arser.java:267)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
    at org.apache.commons.digester.Digester.parse(Digester.java:1548)
    at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
    rvlet.java:1006)
    at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
    .java:955)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.
    java:2094)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.
    java:4523)
    at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpAppl
    ication.java:4617)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.
    java:765)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:
    497)
    at com.evermind.server.Application.getHttpApplication(Application.java:8
    86)
    at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.jav
    a:688)
    at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:570)
    at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
    tionBinder.java:171)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.bindWebApp(DefaultApplicationServerAdministrator.java:364)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    3)
    at com.evermind.util.OC4JSecureClassLoader.defineClassEntry(OC4JSecureCl
    assLoader.java:172)
    at com.evermind.naming.ContextClassLoader.defineClass(ContextClassLoader
    .java:1154)
    at com.evermind.naming.ContextClassLoader.findClass(ContextClassLoader.j
    ava:390)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.j
    ava:138)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
    at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.j
    ava:138)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at org.apache.struts.config.FormBeanConfig.formBeanClass(FormBeanConfig.
    java:320)
    at org.apache.struts.config.FormBeanConfig.setType(FormBeanConfig.java:1
    91)
    ... 40 more
    Nov 1, 2004 10:37:04 AM org.apache.struts.action.ActionServlet handleConfigExcep
    tion
    SEVERE: Parsing error processing resource path
    java.lang.reflect.InvocationTargetException
    at org.apache.commons.digester.Digester.createSAXException(Digester.java
    :2540)
    at org.apache.commons.digester.Digester.createSAXException(Digester.java
    :2566)
    at org.apache.commons.digester.Digester.startElement(Digester.java:1276)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingPa
    rser.java:1181)
    at oracle.xml.parser.v2.ValidatingParser.parseRootElement(ValidatingPars
    er.java:138)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingP
    arser.java:267)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
    at org.apache.commons.digester.Digester.parse(Digester.java:1548)
    at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
    rvlet.java:1006)
    at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
    .java:955)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.
    java:2094)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.
    java:4523)
    at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpAppl
    ication.java:4617)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.
    java:765)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:
    497)
    at com.evermind.server.Application.getHttpApplication(Application.java:8
    86)
    at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.jav
    a:688)
    at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:570)
    at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
    tionBinder.java:171)
    at com.evermind.server.administration.DefaultApplicationServerAdministra
    tor.bindWebApp(DefaultApplicationServerAdministrator.java:364)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    Nov 1, 2004 10:38:25 AM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul
    l=true
    Nov 1, 2004 10:38:25 AM org.apache.commons.digester.Digester startElement
    SEVERE: Begin event threw exception
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
    Utils.java:1789)
    at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
    Utils.java:1684)
    at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
    java:1713)
    at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:101
    9)
    at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
    at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule
    .java:259)
    at org.apache.commons.digester.Rule.begin(Rule.java:200)
    at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingPa
    rser.java:1181)
    at oracle.xml.parser.v2.ValidatingParser.parseRootElement(ValidatingPars
    er.java:138)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingP
    arser.java:267)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
    at org.apache.commons.digester.Digester.parse(Digester.java:1548)
    at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
    rvlet.java:1006)
    at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
    .java:955)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.
    java:2094)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.
    java:4523)
    at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApp
    lication.java:2561)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:640)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:270)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:112)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    3)
    at com.evermind.util.OC4JSecureClassLoader.defineClassEntry(OC4JSecureCl
    assLoader.java:172)
    at com.evermind.naming.ContextClassLoader.defineClass(ContextClassLoader
    .java:1154)
    at com.evermind.naming.ContextClassLoader.findClass(ContextClassLoader.j
    ava:390)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.j
    ava:138)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
    at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.j
    ava:138)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at org.apache.struts.config.FormBeanConfig.formBeanClass(FormBeanConfig.
    java:320)
    at org.apache.struts.config.FormBeanConfig.setType(FormBeanConfig.java:1
    91)
    ... 29 more
    Nov 1, 2004 10:38:25 AM org.apache.struts.action.ActionServlet handleConfigExcep
    tion
    SEVERE: Parsing error processing resource path
    java.lang.reflect.InvocationTargetException
    at org.apache.commons.digester.Digester.createSAXException(Digester.java
    :2540)
    at org.apache.commons.digester.Digester.createSAXException(Digester.java
    :2566)
    at org.apache.commons.digester.Digester.startElement(Digester.java:1276)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingPa
    rser.java:1181)
    at oracle.xml.parser.v2.ValidatingParser.parseRootElement(ValidatingPars
    er.java:138)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingP
    arser.java:267)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
    at org.apache.commons.digester.Digester.parse(Digester.java:1548)
    at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
    rvlet.java:1006)
    at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
    .java:955)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.
    java:2094)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.
    java:4523)
    at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApp
    lication.java:2561)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:640)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:270)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:112)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)

    thanks, now it is working. It seems that somehow the http server didn't start automatically with reboot.
    Groxy

  • SUP 2.0 Installation problem -SUP services dont start after installation

    Hi,
    I have installed a licensed version of "SUP 2.0 Personal developer 32 bit" on my machine from https://sybase.subscribenet.com. I installed 4 RAR files (sup0200_dev1_win to sup0200_dev4_win) of around 1.66 GB. I have unzipped all the sub-folders inside after unzipping the 4 main RAR files.
    I followed the installation steps and installed all components on a single host.
    Everything was fine while installing but I am facing these problems:
    1. When I click Start > Programs > Sybase > Unwired Platform > Start Unwired Platform Services... nothing starts.
    2. When I open Sybase Unwired WorkSpace I dont see any "Start Development" or any "WorkSpace Navigator" or anything specific to SUP Workspace. Only specific to Eclipse is what I see.
    3. Most of the folders in the installed path is not there or are empty. For e.g. The folder Servers\MessagingServer\Data is empty.
    For another information I see some error in the installation log like:
    +(Nov 3, 2011 11:38:31 PM), , com.sybase.stf.install.uep.wizardaction.CopyInitConfigFiles, err, Could not copy directory D:\Sybase_Installables\sup0200_dev3_win\modules\mobileserver\syscheck to D:\Sybase\UnwiredPlatform\Util\syscheck ServiceException: (error code = -30000; message = "The system cannot find the path specified. (3)"; severity = 0)
    The strange thing is during installation the setup does not throw any error and I go to Finish the setup. Also I am able to successfully uninstal.
    Could anybody please guide me how what could be the problem. I suspect the installable is not appropriate.

    Hi
    Do you see the services as being installed?  What OS are you installing on? 
    I had to do a reinstall one time to get everything up and running, I also had the issue of the services not being properly installed (got a successful message after my first install but that in general seems to mean very little).  I then carefully went through the prerequisites again and on second try things worked correctly. 
    Bjorn

  • How to provide web service in servlet container?

    If I want my servlet container to provide web service (JAX-RPC), how should I implement it?
    I'm using Tomcat/Resin as servlet container. Thanks in advance!

    It depends on what standard you are conforming to. Even though some specifications allow you to switch protocols, http is the dominating standard. WS-I, for example, requires the http protocol.
    Klas

  • Question about the distribution of web service or servlet

    Hello,
    I don not know how to distribute a web servcie or servlet on the web server. I can only use this web service with the open state of the glassfish. If I close the glassfish server, the servlet cannot be accessed.
    I just want the web service or the servlet to be disributed on the web server. Web service and the servlet are available when the web server is on.
    anybody can help me?
    thank you in advance.
    MyJ2EE

    If u choose one of the smart phone once you upgrade your equipment you will have to select a data package of Unlimited Email & web for $29.99/mo.. It will not go towards your minutes the purpose of the plan is to give you unlimited use of the internet and email on your device.If you choose to change your calling plan minutes make sure you review the plan that you're already on and the mins being used to make sure if you decide to go higher or lower in minutes that you choose the plan fits your minutes used.. 

  • Java app with web service and servlets

    Hi. I intend to make a java application which exposes some methods as a web service and as jsp/servlets. It's core functionality is not really web centric, but its more a java app with a web tier. I am not sure about how the architecture of such a system would look like using the java platform. I currently see three options:
    1. Run everything in a servlet container like tomcat. I hesitate to do this because i would be putting a lot of functionality which isn't about the web into a servlet container. Also, I have a lot of application scope data that is maintained and shared by all servlets/web services. However, it would be really easy just to put everything into tomcat and use ServletContext to maintain some global objects.
    2. Use a Java EE to seperate application/business logic and data access into session beans and entity beans. I hesitate to this because it seem a bit overkill because the system isn't very big or complex right now. It also means that I would have to learn to use EJB's instead of just using some POJOs.
    3. Run the web tier in a servlet container and the main app in a separate JVM, and then connect the tier by sending serialized objects over TCP sockets. I don't like writing network code but at least there is some separation of the tiers.
    What would you do? Maybe I have overlooked a much better solution to the problem?
    Let me just say that the system is the product of a student project spanning one semester, so it's important to choose the RIGHT solution (architectural-wise) instead of the something quick and dirty that is hard to defend.

    jschell wrote:
    Run everything in a servlet container like tomcatTomcat is a JEE container.Now I am confused. Maybe you mean Glassfish? Tomcat is definitely a web container(?).
    Let me just say that the system is the product of a student project spanning one semester, so it's important to choose the RIGHT solution (architectural-wise) That pretty much makes it impossible then.
    1. A "Right" solution is generally only proven by time.
    2. It requires a great deal of knowledge about the business domain.Yeah, you are right. Let be try to rephrase it. What solution (pattern) would be considered the most common or appropriate when you have a Java App and want to expose a few methods as a website and web service?
    I hesitate to do this because i would be putting a lot of functionality which isn't about the web into a servlet container. Also, I have a lot of application scope data that is maintained and shared by all servlets/web servicesHuh? Do you already have an exposed web service? If you already have a server which other clients communicate then where does this functionality that you don't want to be tomcat running now? Or where do you think that you want to run it? And if you are or do run it somewhere else then tomcat could access it the same way any other client accesses that server.Sorry, that sentence was written badly. I don't have anything right now. What I meant to write was that I will have a lot of application scope data, objects that are kept in memory as long as the server is running, shared by multiple servlet instances.

  • Web services Vs Servlet Models

    Hi everyone,
    My requirement is to upload the thousands of files to the server from the client machine.
    Since I am facing problems while opening the socket in the laptop, I have figured out the option as web services.
    I do not have idea about the web services.
    What will be the best option for uploading the file using servlet model or deploying the web services specially when you have bulk data to post on server?
    Kindly help me out.
    regards

    atulp wrote:
    Hi everyone,
    My requirement is to upload the thousands of files to the server from the client machine.FTP
    Since I am facing problems while opening the socket in the laptop, I have figured out the option as web services.Bad idea!
    I do not have idea about the web services.You could always use Google or get a book?
    What will be the best option for uploading the file using servlet model or deploying the web services specially when you have bulk data to post on server?I wouldn't use either. This sounds like a funky requirement to me. Can you explain what you need to do this for?

  • Help... Super Urgent. Servlet Problem

    Anyone can help me this? My servlet wants to connect to another servlet. My supervisor tells me to use socket. This is my code.
    Socket socket = new Socket(location, 8210);
              OutputStream os = socket.getOutputStream();
              boolean autoflush = true;
              PrintWriter out = new PrintWriter(socket.getOutputStream(), autoflush);
              ObjectInputStream objIn = null;
              Object obj = null;
    BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
              out.println("GET "+dir+"?class="+className+"&method="+method+"&machine="+request.getServerName()+"&port="+random+" HTTP/1.1");
              out.println("Host: localhost:8080");
              out.println("Connection: Close");
              out.println();
    boolean loop = true;
              StringBuffer sb = new StringBuffer(8096);
              while (objIn==null)
                   objIn = new ObjectInputStream(new BufferedInputStream(socket.getInputStream()));
                   try
                        obj = objIn.readObject();
                        //Thread.currentThread().sleep(50);
                   catch (Exception e)
                        e.printStackTrace();
    My supervisor say that as my servlet opens socket connection to the other servlet, the other servlet just have to do outputstream then my servlet can received. I try but can't. Anyone can help me?? Very Urgent. tomorrow is the dateline.

    Hi MelonSeed,
    I believe that the other servlet needs to open a ServerSocket in order for the two servlets to communicate via a Socket.
    Although I haven't tried it, you can open a URLConnection to the other servlet and then open an InputStream for reading the response from the other servlet.
    Depending on the URL you use to connect to the other servlet, you will (as I'm sure you know) invoke its "doGet()" or "doPost()" methods.
    Also, you may find some relevant examples in Jason Hunter's book, Java Servlet Programming, which are available online.
    Good Luck,
    Avi.

  • How to access Remote File using File Services or Servlet

    Hi Friends,
    I want to access a file from a remote location. How to do that ?
    I tried to display an image in my client application. The image source is from remote location. I tried with URL, is there any other way to read/write remote resources through secured connection with some encryption and decryption techniques.
    Kindly help me out !!!
    Regards,
    V.Prasanna

    whelp, If you map the drive then the url thing should work. Other then that I don't know. I normally map the drive.

  • SUP 2.0 Why the sybase Messageing Service doesn't start?

    Hellow experts,
    SUP 2.0 Why the sybase Messageing Service doesn't start?
    When I start the service, it starts and ends indicating "if they are not in use by other services or programs; it will end automatically"
    What should I do for this?
    Thanks
    Prabakar

    sometimes you only have to restart your pc. STOP SUP SERVICE ( AS ADMINISTRATOR ) and START SERVICE ( AS ADMINISTRATOR AGAIN ) ...
    That happens to me very often!

  • Q: General : When will you use Web Service as opposed to just Servlet and/or EJB?

    Hi,
    I don't know if this is an appropriate question to ask for this class as it's not
    workshop
    specific. I was wondering how will I decide when it is appropriate to use a web
    service as opposed to say servlet or an EJB for my application? What is a good
    rationale to use?
    Thanks,
    Sadhana

    Hi Adam,
    Thanks a lot for giving such a lucid explanation of my vague question!
    I understand now the difference between when to use EJBs/Servlets/Web Services.
    Thanks again!
    Sadhana
    "Adam FitzGerald" <[email protected]> wrote:
    >
    Hi Sadhana,
    Web service versus Servlet versus EJB. Which one to use? That is a very
    good question.
    EJBs should be the core desription and processing of your business rules.
    They generally
    have good performance, are easy to integrate into your security set up but
    they require
    access using the RMI-IIOP protocol. This means that generally EJBs are not
    accessible
    outside of your firewall and their clients have to be written in Java (other
    enterprise
    objects or applets or GUI applications).
    Servlets often form a web-based front end to EJBs. They also have good performance,
    integrate into security and only require HTTP access. This means they are
    accessible
    outside your firewall and any client with a HTTP or web API can call on
    them, however,
    there is no standard contract or rules for this type of interaction so you
    will need
    provide direct input into development of the client.
    Web services are also accessible via HTTP and so can be accessed from outside
    your
    firewall. In fact, Web services internally within Workshop and WebLogic
    actually
    operate by using servlets and EJBs but the main advantage is that the mechanism/contract
    for interacting with the web service is a well defined standard (WSDL) and
    can actually
    be registered or retreived dynamically (UDDI). Since web service standards
    are open,
    most popular programming languages already provide client APIs to interact
    with them
    thus freeing the web service developer from direct interaction with the
    client developer
    and letting the client be developed on any platform. The penalty for this
    openness
    is a small performance hit (XML translation) and a slowly maturing security
    model.
    So in summary, use EJBs for business operations that have Java clients within
    your
    enterprise, use servlets to provide web style access to your business operations
    (like web pages) and use web services to enable automated clients that can
    be written
    on any platform either inside or outside your enterprise (firewall). In
    fact, it
    is common to write the EJB first and then to expose some parts of it outside
    of your
    enterprise by writing a web service wrapper (maybe using the EJB controls
    that we
    saw in class).
    I hope this helps.
    Adam
    "Sadhana Jain" <[email protected]> wrote:
    Hi,
    I don't know if this is an appropriate question to ask for this class as
    it's not
    workshop
    specific. I was wondering how will I decide when it is appropriate to use
    a web
    service as opposed to say servlet or an EJB for my application? What is
    a good
    rationale to use?
    Thanks,
    Sadhana

Maybe you are looking for