JSP as a client to EJB3

Hi
I want to do a JNDI LookUp operation from MY JSP to get access to a Remote Bean .
But i read this line from a site which says that this is possible from servlets OR JSF but not from JSP
"You cannot inject anything into JSP pages. You can inject EJB and/or resources into Servlet classes, Servlet listener classes, JSF beans."
Is this true .

Hi,
You can't inject ressource into JSP using @EJB or @Ressource annotations, but you can lookup your EJB (JNDI) inside JSP by using scriptlet and this is not a good practice !

Similar Messages

  • Need help on sharing a jsp page between clients?

    Hi,
    Let me explain this:
    In my jsp application I have two jsp pages that work as a find dialog like applet find dialog.One of those shows the columns from rowset(which user can enter the criteria ) and the other gets the values from first one, makes the sql query and execute the query against the rowset and retrieve the data. There is no pure servlet, both are jsp pages.
    This application is deployed on AS9i-oc4j.
    Problem is : When this find dialog is working for a client. The other client could not load this find dialog until the work for the first one be done. I mean only one client could load and fire the sql statement via this jsp pages(find dialog) at the same time. Which is not acceptable in web applications. Seems only one instance of these pages created by oc4j . if I am right on this then
    Question is : Why oc4j doesn’t create the number of instances based on the number of clients that call these pages? Did I miss something. Or any property in Application module need to be set?
    I would appreciate to share me your idea on this.
    Thanks.

    In my primary mind maybe the bottleneck is where the execution of rowset happens. Since that portion of code takes time to retrieve data for business components. If this is the case then Is this problem goes away if I define a thread for this portion of code?
    Thanks in advance for any idea.

  • Call jsp using Java Client

    I have a web application.deployed on Tomcat.
    the application(JSP page) accepts a login name and password..it works fine from Internet Explorer.
    i have a java client and i want to login into the above application from the java client.I specify the login and password in the java client.
    I want that the user should be logged in to the web application

    Use the Apache Jakarta Commons HttpClient package which has the ability to handle web application authorization. It is covered in the HttpClient documentation.

  • Can i keep JSP pages on client side?

    Hi experts.
    I have a technical problem.So please let me know your suggestion
    My requirement is i need to interact two different web server in two different machine using Struts.
    For example i have two different Jboss server such as server-1 and server-2.when i click a link on server-1,the request sholud go to the
    server-2 and respose to server-1.how can i implement it by using struts frame work.
    please share your views
    Thanks
    Thamil

    I am not sure what this has to do with JSP's being on the client. (BTW, if you look at the name, Java Server Pages, the answer should be self-evident.)
    You can use a forward action to send a request to another server. Just make sure the URL you create on the fly matches the action on the receiving server.
    This link is for Struts 1.3. However, the concept certainly exists in Struts 2.x as well. [http://struts.apache.org/1.x/struts-core/apidocs/org/apache/struts/action/ActionForward.html]
    - Saish

  • Issues with remote client accessing EJB3

    Hi folks,
    I tested Weblogic 10.3 these days and had some trouble to access a stateless session bean (EJB3) via a remote Java client. My development system is Windows Vista 32bit.
    First, Weblogic doesn't like blanks in folder names! The Test Client throws an exception complaining that the business interface is not found:
    Exception in thread "Main Thread" java.lang.AssertionError: java.lang.ClassNotFoundException: ejb3session.Trader
    at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateRemoteInterface(RemoteBusinessIntfGenerator.java:69)
    at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.readObject(RemoteBusinessIntfProxy.java:205)
    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:597)
    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
    at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:197)
    at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:564)
    at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:193)
    at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62)
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:240)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    at weblogic.jndi.internal.ServerNamingNode_1030_WLStub.lookup(Unknown Source)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:392)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:380)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at ejb3session.Client.lookup(Client.java:99)
    at ejb3session.Client.(Client.java:34)
    at ejb3session.Client.main(Client.java:61)
    Caused by: java.lang.ClassNotFoundException: ejb3session.Trader
    at weblogic.ejb.container.deployer.DownloadRemoteBizIntfClassLoader.getClassBytes(DownloadRemoteBizIntfClassLoader.java:85)
    at weblogic.ejb.container.deployer.DownloadRemoteBizIntfClassLoader.loadClass(DownloadRemoteBizIntfClassLoader.java:46)
    at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateRemoteInterface(RemoteBusinessIntfGenerator.java:66)
    In fact, the compiled class file of the business interface is located on the file system in a path that contains a blank. Debugging session shows that the internal weblogic class RemoteBusinessIntfGenerator fails to open the class file because of a wrong used URL file reference. If the path contains no blank, everything works fine. This is obviously a bug!
    Second, generics don't work in the business interface. As soon as I insert a generic return type or method parameter, I get an exception at runtime, no matter if the actually called method is generic or not:
    java.lang.NullPointerException
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.getTargetMethod(RemoteBusinessIntfProxy.java:162)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:53)
         at $Proxy0.saveContact(Unknown Source)
         at Main.testIt(Main.java:45)
         at Main.main(Main.java:34)
    Third problem is already known by Oracle (CR373734): when using JPA and serializing entities to the remote client, serialization fails until you implement a writeObject() method in every entity.
    What is your experience concerning these issues? For my opinion quite severe bugs...
    Cheers, Thomas

    But most of the O/S like Linux ,Solaries does not allow blankspaces in the classpath. Only the O/S that does allow is Windows. and there are a lot of issues regarding the spaces in the classpath.
    If a blank in the classpath exist in the admin console as a remote start argument for a managed node, a patch exist.its CR375981.
    But for the above case 808498 (blank for remote client classpath) Engineering did not given any patch and asked to go with the work around ie not to use a blank in the classpath.
    Thanks !!

  • JSP and active client information

    Hi,
              Does anyone know how to get connected WebLogic Server JSP clients to
              connected users list in WebLogic Console . I tried with normal JNDI
              connection but these connections won't show in console although normal
              Java client connections are shown.
              Thanks,
              Jouni Peltonen
              

    GUI based applications are good but do you think that will it be maintainable and portable?.. Some of the GUI based applications are build on higher Java like 1.5.. i Presume you have the latest and other workstation have only 1.4 or 1.3, this can be n issue on GUI based applications especially on installation on each workstation.

  • How to execute jsp script  at client side

    i have a web page developed in jsp. i need to capture the client machines ip address and MAC address. i got ip address. how to get MAC address who are all accessing that page

    Yeah, there's no javascript that'll do it either. I saw a bunch of posts from php guys trying to do the same thing. It's just not part of TCP/IP. There are apps that will give you the MAC based on an IP in a local network. That's all I've seen available.

  • NameNotFoundException in JNDI lookup in for stand alone App client in EJB3

    I created an ejb module in netbeans 5.5 added a session facade (SavingsaccountFacade) and downloaded it to SunAppServer 9 (java EE 5). When I try and access the JNDI name in a stand alone java application client using the following code
    Context initial = new InitialContext();
    Object objref = initial.lookup("ejb/SavingsaccountFacade");
    I get the following errors:
    javax.naming.NameNotFoundException: SavingsaccountFacade not found
    at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:203)
    I have added j2ee.jar, appserv-rt.jar, and the dist/SavingsAccount.jar to the library. When I do a similar thing in J2EE1.4 it worked fine.
    Can somebody help please.
    Thanks

    Hi Dave,
    Here's our EJB FAQ entry that explains how EJB Global JNDI names are set in the
    Java EE 5 SDK and Glassfish. The most likely explanation is that the name used
    in the client does not match the one assigned to your EJB in sun-ejb-jar.xml.
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#SessionBeanGlobalJNDINameAssignment
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to use sendRedirect jsp page to client in the backed bean

    Hi,
    i'm unable to sendRedirect the page in baking bean method it is throwing error as
    javax.servlet.ServletException: Cannot forward after response has been committed
    <h:selectOneMenu value="#{surveyList.actionValue}" onchange="submit();" valueChangeListener="#{authorHomeBean.onChangeActionType}">
                                                           <f:selectItems value="#{surveyList.actionValueListItems}" />
                                                      </h:selectOneMenu>
    public void onChangeActionType(ValueChangeEvent event)
              if(((String)event.getNewValue()).split("~")[0].equals("Edit Survey"))
                   System.out.println("inside the Edit Survey 1");
                   try
                        FacesContext context = FacesContext.getCurrentInstance();
                        HttpServletResponse res =(HttpServletResponse)context.getExternalContext().getResponse();
                        res.sendRedirect("/feedback/author/surveyinfo/surveyinfo.jsf");
                        catch(Exception e)
                        e.printStackTrace();
    it is giving error as
    javax.servlet.ServletException: Cannot forward after response has been committed
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
         org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
         org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
         org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    root cause

    else if(((String)event.getNewValue()).split("~")[0].equals("Copy"))
                   try
                        res.sendRedirect("/feedback/author/surveyinfo/copysurvey.jsf");
                        context.responseComplete();          
                   catch(Exception e)
                        e.printStackTrace();
    it is giving error like this, when i use session scope for one of the bean in my faces config..so i'm unable to sendRedirect the page..
    OpenSessionInViewFilter.getSession() invoked...
    OpenSessionInViewFilter.closeSession() invoked...
    OpenSessionInViewFilter.getSession() invoked...
    inside the Edit Survey 1
    java.lang.NullPointerException
         at org.apache.coyote.tomcat5.CoyoteResponse.toAbsolute(CoyoteResponse.java:1450)
         at org.apache.coyote.tomcat5.CoyoteResponse.sendRedirect(CoyoteResponse.java:1213)
         at org.apache.coyote.tomcat5.CoyoteResponseFacade.sendRedirect(CoyoteResponseFacade.java:357)
         at javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:125)
         at stanford.gsb.app.feedback.view.bean.author.AuthorHomeBean.onChangeActionType(AuthorHomeBean.java:530)
         at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
         at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
         at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
         at javax.faces.component.UIInput.broadcast(UIInput.java:200)
         at javax.faces.component.UIData.broadcast(UIData.java:338)
         at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
         at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:143)
         at org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:240)
         at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    OpenSessionInViewFilter.closeSession() invoked...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Jsp implementation of the worklist client for weblogic 6.0

    Hi
    Please find attached a demo version of how you can implement a JSP based
    worklist client. This code is simply for demonstration/reference purposes
    only but it illustrates how to implement a JSP client to the BPM product.
    This application is not covered under support.
    To install the product simply extract the attachment ( a war file ) and
    place it in the applications directory of your weblogic deployment, for
    example
    d:\bea\wlserver6.0\config\mydomain\applications.
    To run the worklist client enter the following url in your browser
    http://localhost:7001/worklist
    This code will also be placed on the BEA development centre.
    Again, it must be re-iterated that although testing of the code has been
    done this is not a production application and it's sole purpose it provide
    examples of how to use the wlpi-worklist api. in a web environment.
    Any questions, comments or updates to this code are welcome and should
    be posted to the newsgroup.
    Thanks and enjoy
    Tony
    [worklist.war]

    Bart
    Yes I do
    Tony
    "Bart Jenkins" <[email protected]> wrote in message
    news:3b8bd563$[email protected]..
    Tony,
    Don't you mean that the target location of the .WAR file should be:
    C:\bea\wlintegration2.0\processintegrator\config\mydomain\applications
    (Assuming you have elected the default folders for the WLI BPMinstallation
    location)
    Bart Jenkins, CTO
    Globeflow SA
    "tony lodge" <[email protected]> wrote in message
    news:[email protected]..
    Hi
    Please find attached a demo version of how you can implement a JSPbased
    worklist client. This code is simply for demonstration/reference
    purposes
    only but it illustrates how to implement a JSP client to the BPMproduct.
    This application is not covered under support.
    To install the product simply extract the attachment ( a war file )and
    place it in the applications directory of your weblogic deployment, for
    example
    d:\bea\wlserver6.0\config\mydomain\applications.
    To run the worklist client enter the following url in your browser
    http://localhost:7001/worklist
    This code will also be placed on the BEA development centre.
    Again, it must be re-iterated that although testing of the code hasbeen
    done this is not a production application and it's sole purpose it
    provide
    examples of how to use the wlpi-worklist api. in a web environment.
    Any questions, comments or updates to this code are welcome andshould
    be posted to the newsgroup.
    Thanks and enjoy
    Tony

  • JSP client in RMI system - java.rmi.UnmarshalException: error unmarshalling

    Hi,
    Im developing a login part for a distributed airline reservation system using JSP as the client but while executing the jsp, the error that is being catched is :
    java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: AirlineImpl_Stub (no security manager: RMI class loader disabled)
    Here are my codes:
    //Interface - Airline.java
    package Air;
    import java.rmi.*;
    public interface Airline extends Remote
         public int CheckUname(String username) throws RemoteException;
    }//implementation - AirlineImpl.java
    import java.net.*;
    import java.io.*;
    import java.sql.*;
    import java.rmi.*;
    import java.rmi.server.UnicastRemoteObject;
    public class AirlineImpl extends UnicastRemoteObject implements Airline
         public AirlineImpl() throws RemoteException
              super();
         public int CheckUname(String username) throws RemoteException
              try
                   int UnameCount = 0;
                   String xxx = "eaglebeta";
                   if(username.equals(xxx)
                        UnameCount++;
                   return UnameCount;
              catch (Exception e3)
                   System.out.println("Error: " + e3);
                   return 0;
    }//Server - AirlineServer.java
    import java.rmi.*;
    import java.rmi.server.UnicastRemoteObject;
    public class AirlineServer
         public static void main(String arg[])
              try
                   Airline myAirline = new AirlineImpl();
                   Naming.rebind("Airline", myAirline);
                   System.out.println();
                   System.out.println("************************************");
                   System.out.println(" >>> Airline Reservation System <<< ");
                   System.out.println("    >>> Server is Listening! <<<    ");
                   System.out.println("************************************");
                   System.out.println();
              catch (RemoteException e)
                   //System.out.println("Error: " + e);
                   System.out.println("RMI Registry is not active!");
                   System.out.println("Activate RMI Registry and retry!");
                   System.out.println("Bye bye, exiting...");
              catch (java.net.MalformedURLException e)
                   //System.out.println("URL Error: "+ e);
                   System.out.println("URL Malformed!");
                   System.out.println("Bye bye, exiting...");
    }//JSP client - newuser.jsp
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%@ page import="java.rmi.*, javax.servlet.*" %>
    <%@ page import="java.util.*, java.lang.*, java.io.*, Air.Airline" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#99CCFF">
    <%
    Object Airline = null;
    try
    Airline Air = (Airline)Naming.lookup("rmi://localhost/Airline");
    String Name = "eaglebeta";
    if(Air.CheckUname(Name)>0)
         %>
              Username already exists, choose another name
         <%
    else
         %>
         <%=Name%>
         <%
    catch (Exception e1)
    %>
    <%=e1%>
    <%
    %>
    </body>
    </html>The server, implementation, interface and stub are in a folder named "Airline Server" located on my desktop.
    The interface and stub again are in another folder named "Air" located in the "classes\Air" directory which is located in the tomcat 5.5 installation directory!
    The JSP client is located in the "Root" folder in the tomcat 5.5 installation derectory!
    1. I start the registry in the "Airline Server" folder by typing rmiregistry
    2. Load the Airline Server - java AirlineServer
    3. Call the jsp - http://localhost/newuser.jsp
    And i get the following error:
    java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: AirlineImpl_Stub (no security manager: RMI class loader disabled)
    Please help me to solve this problem!

    When I am including security manager in my JSP code, the browser just get blank without any display
    if(System.getSecurityManager() == null)
         System.setProperty("java.security.policy", "java.policy");
        System.setSecurityManager(new RMISecurityManager());
    }Please, someone solve my problem! Im realy stuck and I don't know how to proceed! Provide me with a solution or any tutorial that would help me...

  • Unable to see current JSP files in browser

    Hi,
    Sorry for this, I know this is not a new problem, and trust me I've tried almost everything suggested regarding other issues I've found in this forum. Well I'll start by explaining the problem, I've just started working for a company and they have built a custom app in JSP for a client.
    However there is a bug which I have gone in and fixed in a particular file, and as an example I just want to output a generated variable to the screen. Its just the 4-digit year is all.
    I have deleted the old JSP files from the server, I have replaced them with the new files. I have deleted both the .java and .class files of theses files from the Tomcat Work directory and have refreshed. I have shutdown and restarted tomcat and the corresponding files have been recompiled correctly. When I view the .Java file, I can see the changes I have made, it was only a couple of lines of codes. I have cleared the cache of my browser and refreshed, and still the server is returning the Old JSP file to me.
    And for the life of me, I cannot figure out where the problem is. So I was wondering if anyone has had a similar problem and would be able to offer me a solution of some kind.
    Thanks in advance,
    Harry
    P.S. Its Tomcat 5.0, not upgrading as I don't know what depends on it, so I don't fancy being fired after 2 weeks.

    I would do that as a last resort, as it happens to be a client server, I don't think they'd appreciate me needing to reboot a Unix server during the day. Would anyone have any other suggestions?
    I just removed the JSPs from the live server, and refreshed the page and Tomcat could not find the JSPs, so I'm sure I have the correct directory. I then made sure the .java and .class files were deleted from the work directory, uploaded my new files (again) and hit refresh... and yet again I was served the same code as always, when I view source it still shows me the old source code even though the JSP file and compiled java files and class show that the new file should be shown, not the old one.

  • Problem in loading few jsp files

    Hi,
    I am facing problem in loading very few jsp pages. The situation is something like this.
    Server: WebSphere
    I have a top frame and bottom frame.
    When the user keep on clicking the same link in the top frame, not giving time to get loaded in bottom frame,
    on the server the error "Servlet Error: Connection reset by peer: socket write error: java.net.SocketException: Connection reset by peer: socket write error" was coming.
    My bother is not on the server-side. but on the client side.
    On the client side, the html of two requests are getting overlapped and displaying(see at the end for sample output of html). In this HTML, if you observe, you can find the line "Error 500: Connection reset by peer: socket write error
    ". Above to this is the half-content of the previous request and bellow is the actual page need to be loaded. And the output was a merge of actual page with the code of the previous request.
    Is it the problem of Websphere or coding?
    Can you help me resolving this problem?
    thanks
    naveen
    Output HTML (for example):
         Contract Name:</td>
         <td class="Label" ><input type="text" id="contractName"
    size="25" maxlength = "100"></td>
         <td class="Label" >Owner:</td>
         <td class="Label" colspan="2"><select id="owner" class="Label"
    size="1" style="WIDTH:200px">
         <option value="_______________">_____________</option>
         </select></td>
                   </td>
    Error 500: Connection reset by peer: socket write error
    <html>
    <head>
    <title> welcome </title>
    <link rel="STYLESHEET" type="text/css" href="Scripts/SSheet.css">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <!-- This .js script files contains all components, which is used -->
    .... and so on
    </html>

    Hi
    I have Observed that "java.net.SocketException: Connection reset by peer" is caused due to manual malfunction performed by the user in the browser like sending multiple request to the server stopping, moving forward, moving backward when a request is placed to the server and waiting for it to get it done.
    More clearly if the User Selected an option from the browser and send a request to the server and followed by sending another request immediately to the server and by this time Server is processed the first request and is started writing the result to the JSP/Browser (Same client), by this time the 2nd reqest from the same Browser/Client is interrupted the first one and ohhhhhhh..... problem , you got an error "java.net.SocketException: Connection reset by peer".
    If any one could figure out more Please update me too appreciate !
    [email protected]
    Sr. Software Architect

  • I want to make a chatroom using jsp, and have some problem, Help!

    I want to build a chatroom using jsp and client using plain html, so i need every client could have a constant connection with the web server and will receive messages realtime. But i got 2 problems.
    First, how can i turn my buffers off so that messages can get to the client the time it is meant to be. I added
    <@page buffer="none">
    but seems that it takes no effect, any tricks here? thx
    Second, I want every user could have a constant conn. with server but i dont want my server to waste resources on those connection that has already been disconnected.so is it possible to stop executing JSP pages once client has diconnected.Since i found that it will throw no exception writing to the client even if the connection is disconnected in JSPs.
    Thanks!!!!!

    By theway, i'm using TOMCat 5.0 as my JSP container.

  • Invisible client data MAM30

    hi all,
    we want to use MAM30:
    Backend: ERP 2005
    Middleware: NW2004s (MI 7.0) SP 15
    Client: MI 70 SP 15 Patch 1, DB2e, XMAM30_LAPTOP_SR05
    our problem is, that we cannot see any data in the XMAM30 - application.
    but: with http://localhost:4444/XMAM30_LAPTOP_SR05/start_full.jsp we can see that there are data in the client - database.
    there are orders, notifications , and so on, they seem to be ok.
    090 - usercustomizing has one TOP but no items
    after two days of reading notes and threads we have no idea how to solve this problem
    maybe one of you can help us?
    thanx!
    bernhard
    Edited by: Bernhard Hofer on Jun 20, 2008 7:20 AM

    hi chintan,
    thank you for reply!
    1. Can you see the data when you execute the GETLIST wrapper from your backend?
    yes, we get data ie with MAM30_001_GETLIST ....
    2. Also its necessary to install Db2E before xMAM installation.
    yes, we did install db2 before xmam - using a sequence-number
    3. Can you see the data in your middleware after you sync in merep_mon transaction?
    yes, we see data with merep_mon, there are no errors.
    4. Try restting the client data and sync once again.....
    we did - doesnt help
    we see data in the folder C:\Programme\SAP Mobile Infrastructure\data and we see data with the link
    http://localhost:4444/XMAM30_LAPTOP_SR05/start_full.jsp
    in the client trace we see some actions for "User: (SHARED)" - maybe this is wrong?
    i'm not sure what the right settings in MCD should be ...
    please reply if you have any more ideas, thanx a lot!
    bernhard

Maybe you are looking for

  • Sending messages: get delivered message except for one friend (same phone) it says "read" anyone see this?

    I'm curious about something that I hope someone can clear up. I have an IPhone 5 iOS 6.1.4. I send a lot of messages and always get the "delivered" note after I send them. However, with one person-just one-who has the same phone the little note says

  • Inactive pixels, but its not what you think.......

    Just purchased a 5800 Xpress direct from nokia a week ago and have now discovered 3 clusters of inactive pixels comprising of 6, 8, and 10 groups. They are all on the number 1, when in text mode. Now most people, including myself would automatically

  • Update JDK environment variables...

    Oracle 11g RAC RHEL 4 AS I have just upgraded JDK from 1.4 to 6.0 and I wanted to know where and which environment variables need to be updated. Thanks.

  • Javascript not loading in my JSF page

    I have a JSF page in which I use the t:popup field, which I can't get to show: <tr>                     <TD><t:popup id="testpop" styleClass="popClass"                          closePopupOnExitingElement="true" closePopupOnExitingPopup="true"        

  • Archival and Purge for Workflow Approvals

    I am looking for a way to archive at least 10 years worth of Workflow Approvals for Oracle R12 EBS Financials environment. I cannot find any good notes on My Oracle Support or whitepapers other than a basic paper on general archival and purge program