J2ME J2EE(servlet jsp) chat server

want to make a chat server using J2ME(fronend) and J2EE(server) . Could anybdy tell me some sample applications on the net or tutorials that can help

Darryl.Burke wrote:
Why, is Google broken?Hey you dont have to be rude to the guy ... suggest a few or dont reply

Similar Messages

  • How to upload an image from servlet/jsp into server from clients machine?

    can anybody send me the code to upload image from client to server using servlet/jsp.
    i'm using tomcat server.

    You can use the [Apache Commons FileUpload API|http://commons.apache.org/fileupload/] to upload files using Java.
    Here is a Filter example which uses the FileUpload API to process the request and stores the regular request parameters back in the ParameterMap of the request and puts the uploades files as attributes of the request: [http://balusc.blogspot.com/2007/11/multipartfilter.html] Just define it once in web.xml and you can continue writing the servlet logic as usual.

  • It looks Oracle Form/Applet  die hard versus J2EE Servlet/JSP/JSF  & AJAX

    I left the form forum for a while and am busy with transfering our Oracle web forms app to Struts based J2EE application (just because the Oracle EE AS is the moving cause, it's out of my control.). After a year or so on J2EE which I enjoyed the fresh OO coding while keep enhancing Oracle webform app in production, I have some thought on Applet vs J2EE JSP/JSF plus AJAX.
    1) JSP itself is hard to avoid the full screen refreshing even though user just does partial changes ,e.g., lists, on the screen, it has to use AJAX to do the tricks. While partial refreshing in applet is natural default behavior.
    2) Forms is really an RAD, while J2EE's IDEs does help a bit(IBM's Websphere v6 even called iRAD) which takes way longer programming time compared to Forms. One IBM's article says it trys to win the Oracle Forms developers by giving the familiar graphical way of drag/drop GUI, so IBM recognizes the RAD coding power of Oracle Forms. So, IBM promotes the RAD similar to Oracle Forms.
    3) GUI/business rules related validation: Applet offered a great advantage over JSP/ even JSF which to avoid the full screen refresh, AJAX/JavaScript is used heavily. User friendly interaction of applet is way better than J2EE.
    4) Browser's back/refresh buttons also are headache to J2EE, expecially we need to support IE and Firefox. Applet basically is not bothered by these buttons.
    Recently, I read techi news said that the new chips will make the network transfer speed 10 time faster than now-even the cell phone transfer the image will be way faster. Then I predict the applet, just like IBM's mainframe, will see its Spring again, not like now in its winter. Especially the Oracle Forms makes coding easier than pure applet coding.
    Oracle folks, kepp beefing up the Oracle Forms, don't just pay attention to JDev. J2EE IDE, most of all, remove the Oracle EE ASxx block, be open. Oracle EE ASxx is really not a pretty baby, even though so Oracle thinks it is.

    1) Why we are transfering your Oracle web forms app to Struts based J2EE application?
    Since our corporate is IBM world-DB2/UDB, WebSphere AS (WAS) etc. It only allows Oracle Forms/reports servers to be compatible with the infrastructure. It does not allow to purchase another EE app server(espeically LDAP). We could not upgrade our forms/reports6i to 9i or 10g.
    2.Therefore the Oracle EE AS is the moving cause, it's out of my control because I did my best to talk to Oracle sales, but no avail. I am glad that I got a good chance to beef up my J2EE Struts skills.
    If extract out the forms/report9i/10g engines from the Oracle EE AS 9i/10g, (don't attempt to bundle sell the EE AS to customers-regardless of the shrinked 9.0.4 forms/reports services version, it's still another EE AS) and make them compatible with other ASs(espcially the LDAP), then Oracle Forms will have more customers.

  • J2ee,servlets,jsp

    Hi guys
    There has been a question thats bugging me for qute some time. I noticed many bank sites, or big companies use JSP/SERVLETS for their websites. Is there a particular reason why jsp/servlets are preferred over asp/php/coldfusion? I even realise a site (dbs.com.sg)using applet textfield as their forms ... isit supposed to be more secure this way? Can someone clear my doubts? thanks

    The preference over ASP is clear: ASP runs on IIS which has security, performance and reliability problems (there's a Gartner advisory out, telling enterprises to move from IIS implementations till Microsoft rewrites IIS and giving a %85 probability that MS will begin to do so before the year ends). The performance penalty for ASP is that it is interpreted each time it is invoked. ASP.NET takes the JSP approach and will be compiled when it is deployed.
    Preference over PHP and Coldfusion comes naturally if there is a Java business tier or the back-end is an IBM box (most of the time, it is) and Java is the easiest way to talk to it.

  • Servlet chat server

    Hello,
    Is it possible to use a servlet as chat server? I created a chat system based on java and sockets now can I use servlet instead of chat server?
    Thanks for your time.

    Hi!
    The Chat Server is an application where users can meet each other and handle a full controlled and organized conversation processes.
    The Chat Server has its own techniques which must be understood by its creator, and it seems you were, bcz you've created a one.
    With servlets, you can create a Web Applications, that means, an application that can accept http requests and generate http responses. In this architicture, the Web Application is stored (installed) in the middle, and then, it is surrounded by unlimited number of clients.
    In your example, the Chat Server is the Web Application in the middle, and the chatters and moderators are surrounding this center in way you can control their communications and chat issues, they are clients.
    Servlets gives the WEB behavior to your system, this means, the client should communicate with the system using HTTP protocol. And now with HTTP requests you can pass all required parameters to your Chat Server and then make the business logic tier which controls the chat issues.
    So, of course you can. And peer in mind, that servlets will be accessed using HTTP specs via submitting URL's using the required HTTP methods (GET, POST, PUT,....), you can use the known HTTP methods to communicate with the servlets, I think it is a good idea to have a look at: http://jakarta.apache.org/commons/httpclient/ where you can find an open source Java API used for all http-client processes and function implementations.
    Good luck.

  • Javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server reportserver fail??

    why i cant open my report in JDeveloper tools but i can open in report builder ????
    this is the error i get ...
    Reports Error Page
    Fri Oct 18 15:41:54 SGT 2002
    javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server reportserver failed
    javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server reportserver failed
         int oracle.reports.jsp.ReportTag.doStartTag()
              ReportTag.java:329
         void MyReport.jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              MyReport.jsp:4
         void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpJsp.java:119
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
              JspPageTable.java:302
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              JspServlet.java:407
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              JspServlet.java:328
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpServlet.java:336
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:684
         void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
              ServletRequestDispatcher.java:269
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:735
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:243
         void com.evermind.util.ThreadPoolThread.run()
              ThreadPoolThread.java:64

    i still get the same error .. is it i need to set any environment variable or ... any setting ...??
    login Oracle Database
    user name = system
    password = manager
    services = dbhenry
    setting JSP Report
    Report Name = MyReport1
    Reports Server = reportserver
    Parameters = userid=system/manager@dbhenry
    the cource code below is my JSP report coding :
    <rw:report id="MyReport1" parameters="server=reportserver&userid=system/manager@dbhenry">
    <rw:objects id="objects">
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
    <report name="MyReport1" DTDVersion="9.0.2.0.0">
    <xmlSettings xmlTag="MYREPORT1" xmlPrologType="text">
    <![CDATA[<?xml version="1.0" encoding="&Encoding"?>]]>
    </xmlSettings>
    <data>
    <dataSource name="Q_1">
    <select>
    <![CDATA[SELECT ALL HENRY.TEL, HENRY."ADD", HENRY.NAME, HENRY.ID
    FROM HENRY ]]>
    </select>

  • Javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server reportser

    Hi,
    I am working on a JSp web based reports ver 10g .I made a war file and deployed on Apps server. when i run the report its throwing the following exception
    javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server reportserver failed .
    plz suggest on how to resolve this error.
    Thanks
    Srinivas

    Hi,
    Anyone having solution for this. I am also stucked due to this error
    Reports Error Page
    Fri Jan 16 11:47:29 IST 2009
    javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server reportserver failed
    javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server reportserver failed
    int oracle.reports.jsp.ReportTag.doStartTag()
    void MyReport.jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
    void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
    void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
    void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
    void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
    boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
    void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
    void com.evermind.util.ThreadPoolThread.run()
    Could u please give me a solution???

  • Using sjsws to host many small servlet/jsp sites on one server

    Hello. I visited the web page at http://www.sun.com/software/products/web_srvr/features.xml, which mentions that sjsws supports mass hosting of thousands of domains. Anyone knows more information about this feature? I want to find out whether sjsws is a good choice for hosting many small servlet/jsp sites on one server.
    Some time ago, I tried using apache+tomcat to host many small servlet/jsp sites on one server. But the result was not satisfactory. If a private tomcat/jvm is used for each site, too many resources are consumed and as a result, not many sites can be hosted on one server. If a shared tomcat/jvm is used for all sites, the resources consumed are reduced, but it becomes very difficult to isolate the sites. Is it possible to overcome such problems with sjsws?
    Thx.

    Of course you dont have to use multiple VMs to host multiple applications.
    You can either choose to have multiple Virtual Servers, all in one instance of the web server, serving multiple applications. In this case only one java VM is used.
    Or you can go in the route posted in the link above, in which there is only one "physical" virtual server, with many dynamic virtual servers.
    Whether you chose to have many multiple web applications, or do the server division in a similar way to what is described in the blog, it is up to you.
    Many different web applications will give you more fine level control on the application separation, but it will probably also mean greater resource consumption associated to the web application managing.
    Less web applications, but with dynamic separation, in a similar way to what is described in the blog, will give a lesser control on the applications, but will save you a good number of resources.
    SJS Web Server is known to work in massive web sites, with very high number of JSPs and Servlets. There is some real life examples of this massive hosting. Maybe others can provide some numbers here :P

  • Javax.servlet.jsp.JspException: java.lang.NullPointerException

    hi,
    I try to view my presentation in jsp page.I use oracle jdeveloper 9.2.0.4 and bibeans 9.2.0.4 and once 1 month ago I did this taks (I view a presentation from bibdemo in jsp file)
    now I try to view my own presentation in jsp but I recieve error message in my own schema and bibdemo schema!!
    when I use windows xp I recieve following error :
    500 Internal Server Error
    javax.servlet.jsp.JspException: BIB-10310 An unknown exception occurred.
    BIB-10101 Handler failed to handle UserObject.
    BIB-14067 Persistable object threw exception during lookup on method setXMLAsString; component class oracle.dss.dataSource.client.QueryClient; exception oracle.dss.util.persistence.BIPersistenceException.
    BIB-9509 Oracle OLAP did not create cursor.
    oracle.olapi.data.source.UnmatchedInputsException
    BIB-9509 Oracle OLAP did not create cursor.
    oracle.olapi.data.source.UnmatchedInputsException
    oracle.olapi.data.source.UnmatchedInputsException
         at oracle.dss.addins.jspTags.PresentationTag.doStartTag(PresentationTag.java:194)
         at test.jspService(test.jsp:6)
         [test.jsp]
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    and when I use windows NT I recieve following error :
    500 Internal Server Error
    javax.servlet.jsp.JspException: java.lang.NullPointerException
         at oracle.dss.addins.jspTags.RenderTag.doEndTag(RenderTag.java:212)
         at kafa_report__7._jspService(kafa_report_7.jsp:18)
         [kafa_report_7.jsp]
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    I
    what the problem is ????????
    thanks in advance,

    hi,
    here the result :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <BICheckConfig version="1.0.2.0">
    <Check key="JDEV_ORACLE_HOME" value="d:\jdev904" />
    <Check key="JAVA_HOME" value="C:\j2sdk1.4.2_01" />
    <Check key="JDeveloper version" value="9.0.4.0.1419" />
    <Check key="BI Beans release description" value="BI Beans 9.0.4 Production Release" />
    <Check key="BI Beans component number" value="9.0.4.23.0" />
    <Check key="BI Beans internal version" value="2.7.5.32" />
    <Check key="host" value="200.20.20.11" />
    <Check key="port" value="1521" />
    <Check key="sid" value="ora10g" />
    <Check key="user" value="dw_targetschema" />
    <Check key="Connecting to the database" value="Successful" />
    <Check key="JDBC driver version" value="9.2.0.4.0" />
    <Check key="JDBC JAR file location" value="D:\jdev904\jdev\lib\patches" />
    <Check key="Database version" value="10.1.0.2.0" />
    <Check key="OLAP Catalog version" value="10.1.0.2.0" />
    <Check key="OLAP AW Engine version" value="10.1.0.2.0" />
    <Check key="OLAP API Server version" value="10.1.0.2.0" />
    <Check key="BI Beans Catalog version" value="N/A; not installed in dw_targetschema" />
    <Check key="OLAP API JAR file version" value="9.2" />
    <Check key="OLAP API JAR file location" value="d:\jdev904\jdev\lib\ext" />
    <Check key="OLAP API Metadata Load" value="Successful" />
    <Check key="Number of metadata folders" value="2" />
    <Check key="Number of metadata measures" value="1" />
    <Check key="Number of metadata dimensions" value="3" />
    - <Check key="OLAP API Metadata">
    - <![CDATA[
    ==============================================================================
    Type      Name (S=Schema, C=Cube, M=Measure, D=Dimension)         Status   
    ========= ======================================================= ============
    Folder... ROOT
    Folder...   KAFA_COLLECTION
    Folder...   KAFA_COLLECTION2
    Measure..      SALARY                                             Unsuccessful
                   S=DW_TARGETSCHEMA, C=EMPLOYEMENT_CUBE, M=SALARY
                   Connection lost. Reconnect                         Successful
    Dimension      DEP_DIM                                            Successful
                   S=DW_TARGETSCHEMA, D=DEP_DIM
    Dimension      EMP_DIM                                            Successful
                   S=DW_TARGETSCHEMA, D=EMP_DIM
    Dimension      JOB_DIM                                            Successful
                   S=DW_TARGETSCHEMA, D=JOB_DIM
      ]]>
    </Check>
    - <Check key="StackTrace">
    - <![CDATA[
    ============================================================================
    Queries on the following measures or dimensions failed
    (S=Schema, C=Cube, M=Measure, D=Dimension)
    "SALARY" measure query with S=DW_TARGETSCHEMA, C=EMPLOYEMENT_CUBE, M=SALARY
    ============================================================================
    Exception stacktrace for "SALARY" measure query with S=DW_TARGETSCHEMA, C=EMPLOYEMENT_CUBE, M=SALARY
    ============================================================================
    1) BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
    2) BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
    1) BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
    ============================================================================
    oracle.dss.dataSource.common.QueryRuntimeException: BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
    java.lang.CloneNotSupportedException: BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
         at oracle.dss.dataSource.common.Query.addQueryListener(Query.java:480)
         at BICheckConfig.runDefaultMeasureQuery(BICheckConfig.java:480)
         at BICheckConfig.printFolder(BICheckConfig.java:405)
         at BICheckConfig.printFolder(BICheckConfig.java:464)
         at BICheckConfig.checkConnection(BICheckConfig.java:350)
         at BICheckConfig.main(BICheckConfig.java:1348)
    2) BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
    ============================================================================
    java.lang.CloneNotSupportedException: BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
         at oracle.dss.dataSource.common.CubeCursor.clone(CubeCursor.java:387)
         at oracle.dss.dataSource.common.Query.addNewCubeCursorCopy(Query.java:2366)
         at oracle.dss.dataSource.common.Query.addQueryListener(Query.java:477)
         at BICheckConfig.runDefaultMeasureQuery(BICheckConfig.java:480)
         at BICheckConfig.printFolder(BICheckConfig.java:405)
         at BICheckConfig.printFolder(BICheckConfig.java:464)
         at BICheckConfig.checkConnection(BICheckConfig.java:350)
         at BICheckConfig.main(BICheckConfig.java:1348)
      ]]>
    </Check>
    </BICheckConfig>
    when I was transfering the collection from warehouse builder to database I recieve some error messages.
    but when I try to connect to database from bibeans every thing was ok so I thougth maybe it is because of that.
    and that about bibdemo why it doesn't work???
    it works before and I check it with bi_checkconfig
    thanks ,
    shima

  • ADF Security: javax.servlet.jsp.JspException: Cannot find FacesContext

    Hi,
    In my ADF Application, new users are to be allowed to Register by clicking a button in login page. The Application is based on ADF Security Wizard and I have created default pages for Login and Error, so the application's login page is login.html.
    Now when I’m trying to navigate to 'NewUserRegistrationPage.jspx' Im getting javax.servlet.jsp.JspException: Cannot find FacesContext error.
    I thought the issue might be from calling a .jspx from .html so I created a 'NewLogin.jspx' Page with below code and specified this page in ADF Security Wizard for Login Page.
    Please advice me some way of calling the 'newRegistrationpage.jspx' from my login page.
    Im using JDeveloper 10.1.3.4.
    Page Code:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <html>
    <head>
    <title>Login</title>
    </head>
    <body><form method="POST" action="j_security_check">
    <font face="Verdana" color="Navy">
    <table cellspacing="2" cellpadding="3" border="0" align="center">
    <tr>
    <th>Username:</th>
    <td>
    <input type="text" name="j_username"/>
    </td>
    </tr>
    <tr>
    <th>Password:</th>
    <td>
    <input type="password" name="j_password"/>
    </td>
    </tr>
    </table>
    </font>
    <p align="center">
    <input type="submit" name="submit" value="Submit"/>
    <input type="button" name="" value="Request Password"/>
    <input type="button" name="" value="New User Registration"/>
    </p>
    </form></body>
    </html>
    </f:view>
    </jsp:root>
    Error::
    javax.servlet.jsp.JspException: Cannot find FacesContext     at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:427)     at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:125)     at webpages.REACHLoginPage_jspx._jspService(_REACHLoginPage_jspx.java:47)     [WebPages/REACHLoginPage.jspx]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.4.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)     at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.FormHttpAuthenticator.reject(FormHttpAuthenticator.java:83)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6435)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3030)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:738)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)
    Edited by: Manasa Tadi on Jul 1, 2009 11:52 PM

    Hi Branislav,
    Thanks a lot for your suggestion through which now Im able to navigate to NewRegistration page from login.html.
    In my application login.html is under public_html folder where as the NewRegistration page in public_html/WebPages.
    Code I used:
    New User Registration
    But the issue now is, the NewUserRegistrationPage was also under the ADFSecurity, so inorder to navigate to it again the user had to provide authentication. So, I have removed this particular page from Security and it has started to work.
    But the issue now I face is something else. In the NewUserRegistrationPage I have a selection to be made by user about the type of user he is and based on the selection he would be navigated to next page, This next page has a VO on it as a 'create form', through which he can directly fill the form and submit his details to database table.
    But as I have removed these pages from ADF Security and authentication, the form fields/attributes in the VO are not getting binded, Im getting this Exception:
    500 Internal Server Error
    javax.faces.el.PropertyNotFoundException: Error testing property 'inputValue' in bean of type null
    For testing purpose when I have provided link from application page to NewRegistrationPage the flow is working properly, able to navigate to second page and submit the filled form to database, I think this is working because we have entered the application after providing the login credentials.'
    Help in this greatly needed.
    Thanks,
    Manasa.

  • Java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicati

    Hi,
    I have an application which is executing properly in jboss 3.2.5 but as we are trying to upgrade the jboss version i am getting above mentioned error.
    The application is deployed in jboss as an ear file and the ear contains one jar file that has been removed from the ear and still i am getting this error.
    I am posting the full stack trace over here.
    ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;
            at org.apache.jsp.Jsp.Common.logout_jsp._jspInit(logout_jsp.java:22)
            at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
            at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:158)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at clime.messadmin.filter.MessAdminFilter.doFilter(MessAdminFilter.java:104)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
            at java.lang.Thread.run(Thread.java:595)It is happening in logout.jsp, but all other main jsp's are working properly ( login.jsp etc ).
    I am posting the jsp code over here.
    <html>
    <head>
           <script language="JavaScript">
         function init()  {
           window.history.forward(1);
       </script>
      </head>
    <body  onLoad="init();" >
      <%@ page language="java" %>
      <%@ page isThreadSafe="true" %>
        <%
         session.invalidate();
         response.sendRedirect("../../logout.html");
    %>
    </body>
    </html>Please guide me to solve the issue.

    evnafets wrote:
    My guess would be that you have some of the servlet classes deployed with your application.
    Yes.
    Any jar files that contain the javax.servlet.* packages should NOT be part of a web application, but are intended to be on the server.
    First up all there is no such jar files.
    Common candidates:
    servlet.jar
    servlet-api.jar
    j2ee.jar
    All those jars are in lib directory of my app server. I have jsp-api and servlet-api.jar as i am using embedded tomcat 6 in jboss appsever.
    Check the WEB-INF/lib directory of your web application to see that there are none of those there.
    Nothing similar deployed in your ear file?I have extracted my application ear , jar and war then when i checked i found one jar file inside the war but in that no servlet*.jarr files. It is my application oriented files only. I have deleted this ar files and then i executedi am getting same error. Is there any way to find out the exact issue ????.
    Regards
    Rasa

  • Javax.servlet.jsp.JspException: Error: IOException while writing to client!

    Hi
    I have deployed a WAR file successfully on
    standalone( win os) / 10AS server Rel2 ( Linux )
    But some times I get this Error ONLY on 10AS server Rele 2
    "javax.servlet.jsp.JspException: Error: IOException while writing to client!"
    Plz can some body tell me why am i getting this error.
    Is this a J2ee Container Problem?
    with regards
    Karthik

    Hi Form
    Plz some body explain me why am i getting this error not so frequently
    with regards
    Karthik

  • Javax.servlet.jsp.JSPException

    Hi,
    I am trying to migrate the MedRec application to SAP Web Application Server 6.4.
    I am getting the following exception in login.jsp for PatientWebApp.
    Exception creating bean of class com.bea.medrec.beans.UserBean: {1}
         at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:563)
         at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:520)
         at jsp_Login1140673107859._jspService(jsp_Login1140673107859.java:46)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:346)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:117)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:62)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:374)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Kindly guide.
    Regards,
    Prasita

    You might have better luck in a SAP forum, Prasita, given that the issues you're having are related to WebLogic Server only tangentially.
    Also, depending on the version of the Medrec application you're trying to migrate, you're going to have grief, because in later versions it makes use of Portal/Integration components from memory, which won't be there in a J2EE standard web application server.
    <br>
    Kevin Powe
    http://www.integral-techsolutions.com

  • Servlets , JSP, JSTL ,etc

    Hello
    In my Web project , I have used servlets, JSP , JSTL and JDBC to develop a Website, and now I am preparing a report about it.
    Please forgive me if this question sounds "not very smart" , but kindly help. Is it correct to mention in my report I have used J2EE techologies and then briefly explain about JSP, Servlets, etc?
    Thank you
    Vajra

    Well this really depends on what purpose your report serves and what the person/organization you're submitting your report to requires.
    What have you been told to do? Do you have any template that you need to follow?
    If you don't have any, then I guess you could add a section on the technology used and add a brief description covering this.
    But really, this totally depends on your situation and requirements. No one can tell you what to do. And you wouldn't blindly follow advice given by anonymous strangers on an Internet forum for an important project report now would you? :D

  • Software Components Needed to Start Servlet/JSP development

    Hi
    Can you list what are the software components required to develop Servlets and JSP pages.

    To practice with servlets and JSP pages you'll need:
    - A server where you'll deploy your servlets and JSPs.
    Download Tomcat: http://jakarta.apache.org/tomcat/index.html
    - Tutorials for Servlets & JSPs: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html
    - Servlet API to compile your servlets. If using Tomcat look for the servlet.jar
    in the installation directory under common/lib. You'll have to include this in your classpath.

Maybe you are looking for