[ Server applet ] Problem :  Can't instantiate socket

Hy guys ! i'm having a problem getting my tcp server applet on it's feet, the problem is that it doesn't get past instantiating a socket, if i instatiate it with port nr 80 it throws an exception ( Address already in use: JVM_Bind ), with other ports it just locks up at the "Binding to port" part. Today it locks up on any port i use including 80
  ServerSocket server;
        int port= Integer.parseInt(portNumber.getText()); //port number's a text field
        status.setText("Starting server..\n"); //status is a text area
        try {
            status.append("Binding to port " + port + ", please wait  ...\n");
            server = new ServerSocket(port);
        } catch (IOException ioe) {
            status.append("EROARE la creearea socketului\nEXCEPTIE:
"+ioe.getMessage()+"\n");
            return;
        }Does anybody have a clue why this happens?
i'm uploading the server class and test web page if it will help sort this out
http://uploading.com/files/XQ0TGHPT/server.rar.html

is there really nothing that can be done to make this work !?

Similar Messages

  • Problem:Can't instantiate class

    I tried for many hours to solve the problem but in vain.
    here is the Exception i got from tomcat:javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'core.walid.NwindManagedBean'.. core.walid.NwindManagedBean
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:844)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:91)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    cause m�re
    javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'core.walid.NwindManagedBean'.. core.walid.NwindManagedBean
         com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206)
         com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
         javax.faces.component.UIData.getValue(UIData.java:527)
         javax.faces.component.UIData.getDataModel(UIData.java:856)
         javax.faces.component.UIData.setRowIndex(UIData.java:379)
         com.sun.faces.renderkit.html_basic.TableRenderer.encodeBegin(TableRenderer.java:65)
         javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)
         javax.faces.component.UIData.encodeBegin(UIData.java:681)
         javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:591)
         javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:543)
         com.sun.faces.taglib.html_basic.DataTableTag.doEndTag(DataTableTag.java:491)
         org.apache.jsp.index_jsp._jspx_meth_h_dataTable_0(index_jsp.java:161)
         org.apache.jsp.index_jsp._jspx_meth_c_view_0(index_jsp.java:116)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:80)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)here is the bean i don't see any problelme it uses JDBC to access the database/*
    * NwindManagedBean.java
    * Created on 4 mars 2007, 01:02
    package Core.walid;
    import java.sql.*;
    import javax.sql.*;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.io.*;
    import javax.servlet.jsp.jstl.sql.*;
    * @author walid
    public class NwindManagedBean implements Serializable{
        private String tableName="Customers";
        private ResultSet resultSet;
        private Connection connection;
        /** Creates a new instance of NwindManagedBean */
        public NwindManagedBean() {
        public String getTableName(){
        return tableName;
        public void setTableName(String tableName){
        this.tableName=tableName;
        public void open(){
        String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
        String url = "jdbc:odbc:Nwind";
        String username = "";
        String password = "";
        try{
            Class.forName(driver);
            connection =DriverManager.getConnection(url,username,password);}
        catch(Exception e){System.out.println(e);}
        public void search(){
          try{ Statement statement=connection.createStatement();
           String query ="select * from "+tableName;
            resultSet=statement.executeQuery(query);
        catch(Exception cnfe) {};
        public ResultSet getResultSet(){
            open();
            search();
            return resultSet;
        public void showResults(){
            int i=1;
           try{ while(resultSet.next())
            System.out.println(resultSet.getString(i));
            i++;
           catch(Exception e){System.out.println("erreur sql"+e);}
    }i declared the bean in faces-config<faces-config>
        <managed-bean>
            <managed-bean-name>NwindManagedBean</managed-bean-name>
            <managed-bean-class>core.walid.NwindManagedBean</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
    </faces-config>and finally the jsf page to list the database contents<%@ taglib uri="http://java.sun.com/jsf/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <html>
       <HEAD><TITLE>Northwind Customers</title>
        </HEAD>
        <body>
            <center>
                <table border="5">
                    <tr><th class="Northwind customers"></th></tr>
                </table>
                <p>
                <c:view>
                    <h:dataTable value="#{NwindManagedBean.resultSet}"
                    var="dbRow"
                    border="1"
                    >
                    <h:column>
                    <c:facet name="header">
                    <c:verbatim>Company name</c:verbatim>
                    </c:facet>
                    <h:outputText value="#{dbRow.CompanyName}"/>
                    </h:column>
                    <h:column>
                    <c:facet name="header">
                    <c:verbatim>Address</c:verbatim>
                    </c:facet>
                    <h:outputText
                    value="#{dbRow.Address}"/>
                    </h:column>
                    <h:column>
                    <c:facet name="header">
                    <c:verbatim>City</c:verbatim>
                    </c:facet>
                    <h:outputText
                    value="#{dbRow.City}"/>
                    </h:column>
                    </h:dataTable>
                </c:view>
                </center>
        </body>
    </html>

    Hello,
    I'm not sure, but i would try to put the package only in lowercase.
    Your class pakageis declared with first Upper case letter.
    And in you faces-config file, you declared with lower case.
    Note : it's recommanded to use only lower case for package name.
    Regards,
    Sebastien Degardin

  • Oracle App Server - Applet problem (HELP)

    I have a problem with accessing an applet in placed in a sub directory from the webroot. Basically, I can run an applet successfully in my webroot. When the same applet is placed in a sub dir in the webroot, OAS can't resolve the path and can't find the class file. Here's how I specified my applet:
    <applet code=com.helloapplet width=200 height=50>
    The helloapplet.class is in the "com" package and placed in the "com" dir under the webroot.
    I tried this also:
    <applet code="helloapplet.class" CODEBASE="com" width=200 height=50>
    both with the helloapplet.class as part of the "com" package and with it as part of the default package in the "com" dir.
    Anyideas greatly appreciated. Thanks.
    null

    Try the following:
    Move the RMI classes to applib directory instead of encapsulating it in the application. This will ensure that the classes are seen across applications so that whoever activates the RMI registry will not be the only one who can see the RMI classes, but other apps that needed to bind their own classes can see them as well.
    Alternatively, you can add this in application.xml:
    <library path="<rmi class directory"/>
    or
    <library path="<jar file that contains rmi classes (ex. rmiclass.jar)>"/>

  • Can we use applets as user interfaces with sockets, RMI and J2EE

    Dear Sir or Madam,
    Since I am a TA for software architecture class, some one ask me the following question: I think the answer is "No" based on the document on http://java.sun.com/sfaq/
    How I answer the quesions? Looking forward your help!!!
    1.You may have 2 applets and 2 html files. One applet with one html file may stay at a client PC and run on this PC, and the other applet with the other html file may stay at a server PC and run on this PC. In this case, all the applets are run locally.
    2.Could applets works with sockets, RMI and J2EE?
    3.Can we use applets as user interfaces with sockets, RMI and J2EE?
    Thank you very much!
    Best regards,
    Jing

    The scenario you paint doesn't quite make sense. The "server PC" wouldn't be running an applet, normally, since applets are by definition in a web browser page, and most likely involve user interaction, and "server processes" generally are done without user interaction.
    The security rules around applets are that -- by default -- applets can connect with sockets ONLY to the server from whence the applet was loaded. RMI uses sockets (J2EE is too broad a spec) and hence RMI calls would also be limited to the server from whence the applet was loaded. Within that limitation, an applet could open all the sockets it wants, so long as they are all on the server from whence the applet was loaded.
    If you want two applets on two different systems to communicate with each other, the simplest way is to have them rendevous through a server process on the server(s) from whence each applet was loaded. Maybe it's PC-a <-> server-a <-> server-b <-> PC-b ...? Or maybe PC-a and PC-b both are talking to the same server.
    The limitation is rooted in the security subsystem. You can specify a policy file and override anything in the security subsystem. That does mean signing the applet and then cajoling the user into agreeing to grant greater levels of security than the default. In such a case you can open sockets more broadly and then PC-a could talk directly to PC-b without going through any servers.
    - David

  • TCP server applet, can't instance ServerSocket

    Hy guys ! i'm havin trouble getting my server applet on it's feet, this is mainly because it won't get past instancing the server socket.
    this is the code i'm using, i've put it in a button's event handler
            String clientSentence;
            try{
            System.out.println("starting Server");
            ServerSocket welcomeSocket = new ServerSocket(6789);
            while (true) {
                Socket connectionSocket = welcomeSocket.accept();
                System.out.println("Server has started");
                BufferedReader inFromClient = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));
                DataOutputStream outToClient = new DataOutputStream(connectionSocket.getOutputStream());
                clientSentence = inFromClient.readLine();
            }catch(Exception e){
            System.out.println("there's a problem :"+e.getMessage());}i run the applet, click the button, i see "starting Server", and it locks up. I've tried other ports, no difference it locks up on any port

    OK, let's forget the applet now. Your application should work. "Does not get that far". How far does it get?
    A debugger should tell you. Or some System.out.println() placed all over the place. It's hard to see what happens with so little info. I strongly believe that it gets farther than this. It gets to the accept() call and it blocks there, as it should. Let it run to wherever it goes, open a Command Prompt and type "netstat -an". I believe your server should be listed something like this:
    TCP    0.0.0.0:6789            0.0.0.0:0              LISTENINGIf it is, the application works fine.
    Check the code with correct System.out.println():
    package testcuc;
    import java.io.*;
    import java.net.*;
    public class Main {
        public static void main(String[] args) {
            String clientSentence;
            String capitalizedSentence;
            try{
            System.out.println("starting Server");
            ServerSocket welcomeSocket = new ServerSocket(6789);
            System.out.println("Server has started");
            while (true) {
                System.out.println("Waiting for client to connect");
                Socket connectionSocket = welcomeSocket.accept();
                System.out.println("Client connected");
                BufferedReader inFromClient = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));
                DataOutputStream outToClient = new DataOutputStream(connectionSocket.getOutputStream());
                clientSentence = inFromClient.readLine();
                capitalizedSentence =clientSentence.toUpperCase() + '\n';
                outToClient.writeBytes(capitalizedSentence);
            }catch(Exception e){
            e.printStackTrace();}
        }//main
    }//MainEdited by: baftos on May 18, 2009 2:47 PM

  • M website in Verizon's Site Builder can't be crawled by Google-server connectivity problem-

    I made a one-page website in Verizon's Site Builder program, then "added my site" at Google. Google says it can't crawl it.  Don't know if crawling is necessary but seems good to have it working regardless. Google says there's -server connectivity problem-.  Would that be Verizon? (I purchase FIOS)
    I have another website made in same Verizon program & don't have a problem with it at Google. It's almost identically made, & also one page.  So why the difference?. 
    Anyone know how to fix or understand this?  How to correct server connectivity problem?  or how to reach Verizon support service about this?  (no support is available at Site Builder) .  
    FYI, the -add a site- & website tool dept. at Google is called Webmaster Tools. Free tools for websites. 
    I'm so disappointed all my efforts contacting tech supports at Verizon hasn't offered concrete answers. They pass me on to other depts.  one after another...
    Would appreciate direction with this. Many thanks.
    Solved!
    Go to Solution.

    I've gotten a response, and it would seem that since my webpage comes up fine when typed in browser, that there isn't anything more that Verizon can provide.  That it would be on Google's end to assist.  But Google says there is a server connection problem.
    In the end, the website seems to work fine and I'll leave it at that.  And for whatever crawling provides, I guess I will pass on that.
    thanks for the response.
    also,  the area for == private support messages == can be located below your post via your profile page. (i think that's how it works.)

  • Firefox has detected that the server is redirecting the request for this address in a way that will never complete. * This problem can sometimes be caused by disabling or refusing to accept cookies.

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    * This problem can sometimes be caused by disabling or refusing to accept
    cookies.

    In my experience this is most of the times a server issue of the website provider.
    Does this error occur on all Websites or just one specific Website?
    Does this Website load in Internet Explorer (or any other Browser?)?

  • Why can't i log in facetime on mac? error reads,server encoutered problem why registering?

    why can't i log in facetime on mac? error reads,server encoutered problem why registering?

    Two useful KB articles:
    http://support.apple.com/kb/HT4534
    http://support.apple.com/kb/HT4319
    The second says iOS but it actually tells how to use FaceTime from a Mac in addition to iOS devices.

  • Can't download book. Get the following message. "Error getting license server communication problem MW_ADEPT_CORE_EXPIRED" I have no faith in this type of communication because I have never recieved answers from forums/ wish you could afford a live person

    can't download book. Get the following message. "Error getting license server communication problem MW_ADEPT_CORE_EXPIRED" I have no faith in this type of communication because I have never recieved answers from forums/ wish you could afford a live person

    I select a book to read from my library it takes me to digital editions and this message comes up. Has been working for a couple of years but something has happened, maybe I did it but don't and to make it worse there is no one to contact to fix it. Get the following message. "Error getting license server communication problem MW_ADEPT_CORE_EXPIRED" I

  • Can anyone please help me to overccome this download error message: "Error getting License, License Server Communication Problem: E_ADEPT_DOCUMENT_OPEN_ERROR. I would be most grateful.

    Can anyone please help me to overcome this e-book download error message? It reads: "Error getting License, License Server Communication Problem: E_ADEPT_DOCUMENT_OPEN_ERROR. I would be most grateful.

    Please try de-authorizing and authorizing again.
    Steps to De-authorize
    1) Switch to Library Mode by clicking Library button
    2) Select menu item Help--> Erase Authorization or Press Ctrl+Shift+D
    3) Click Erase button to De-authorize
    Steps to Authorize
    1) Launch ADE
    2) Switch to Library Mode by clicking Library button (if you are in Reading Mode)
    3) Select menu item Help-->Authorize Computer or Press Ctrl+Shift+U
    4) Enter the valid credential to Authorize
    Hope this solves your problem.

  • Firefox has detected that the server is redirecting the request for this address in a way that will never complete. *This problem can sometimes be caused by disabling or refusing to accept cookies. I followed the instructions for "redirection" issues.

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    * This problem can sometimes be caused by disabling or refusing to accept
    cookies.

    In my experience this is most of the times a server issue of the website provider.
    Does this error occur on all Websites or just one specific Website?
    Does this Website load in Internet Explorer (or any other Browser?)?

  • Hi can someone explain what the following error code mean and how i can recifty to download a copy of ebook purchase Error getting License. License Server Communication Problem: E_ACT_NOT_READY

    Hi can any one help
    I keep getting the following error code when I try and down a ebook which I have purchase
    Error getting License. License Server Communication Problem:
    E_ACT_NOT_READY
    can someone advise me what this means and how I recifty the problem to enable me to read the ebook purchase?
    Thanks

    I am having this exact issue. I just downloaded a book and went to open it and got this exact problem.
    I purchased he book through indigo/kobo edition and paid for it and immediately went to open it and am getting the same error
    Error getting License. License Server Communication Problem only mine says  Bad Device key after.
    Not sure why someone has not answered this question yet...i am using windows 7 and this is how i always do it. Never had this problem before when purchasing a book.
    i hope someone answers this soon.

  • Drop down problem -javax.faces.FacesException: Can't instantiate class: ''.

    Hi,
    I am using jsf 1.1
    I am trying to populate a simple drop down in MyJsp.jsp with the List values generated in ContactsListBean.java. I am copying the code here for reference.
    when I launch the page (forwarding to this MyJsp.jsp in index.jsp) I am getting this error below. Can anyone help me out what is it that I am doing wrong?? I am unable to trace out what's wrong. I have even tried the same logic with h:selectOneListbox also but I get the same error..
    Any help/advice would be highly appreciated, Thanks in advance.
    org.apache.jasper.JasperException: javax.servlet.jsp.JspException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: ''.
    *     org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)*
    *     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)*
    *     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)*
    *     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)*
    *     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)*
    *     com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)*
    *     com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)*
    *     com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)*
    *     com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)*
    *     com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)*
    *     javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)*
    *     org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:686)*
    *     org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:656)*
    *     org.apache.jsp.index_jsp._jspService(index_jsp.java:71)*
    *     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)*
    *     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)*
    *     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)*
    *     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)*
    *     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)*
    *     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)*
    MyJsp.jsp
    <%@ page language="java" pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
         <title>My JSF 'MyJsp.jsp' starting page</title>
         <meta http-equiv="pragma" content="no-cache">
         <meta http-equiv="cache-control" content="no-cache">
         <meta http-equiv="expires" content="0">   
         <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
         <meta http-equiv="description" content="This is my page">
         <!--
         <link rel="stylesheet" type="text/css" href="styles.css">
         -->
    </head>
    <body>
       <f:view>
             This is my JSF JSP page. <br><h:form>
         <h:selectOneMenu id="loc1" value="#{contactsListBean.selectedLocation}">
                 <f:selectItems id="ll1" value="#{contactsListBean.locationList}"/>
                    </h:selectOneMenu> 
        </h:form>
    </f:view>
    </body>
    </html>
    ContactsListBean.java
    public class ContactsListBean {
         private java.util.List locationList = new ArrayList();;
         private java.lang.String selectedLocation;
         public ContactsListBean() {
              System.out.println("Construnction list....");
              locationList.add(new SelectItem("test1","test1",""));
              locationList.add(new SelectItem("test2","test2",""));
              locationList.add(new SelectItem("test3","test3",""));
         public java.util.List getLocationList() {
               System.out.println("returning LIST OF SIZE "+locationList.size());
               return locationList;
         public void setLocationList(java.util.List locationList) {
              this.locationList = locationList;
              System.out.println("got list size..."+locationList.size());
         public java.lang.String getSelectedLocation() {
              return selectedLocation;
         public void setSelectedLocation(java.lang.String selectedLocation) {
              this.selectedLocation = selectedLocation;
    faces-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
                                  "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
    <managed-bean>
      <managed-bean-name>contactsListBean</managed-bean-name>
      <managed-bean-class>ContactsListBean</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
      <managed-property>
       <property-name>locationList</property-name>
       <property-class>java.util.List</property-class>
       <value/>
      </managed-property>
      <managed-property>
       <property-name>selectedLocation</property-name>
       <property-class>java.lang.String</property-class>
       <value/>
      </managed-property>
    </managed-bean>
    </faces-config>
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
      <context-param>
        <param-name>javax.faces.CONFIG_FILES</param-name>
        <param-value>/WEB-INF/faces-config.xml</param-value>
      </context-param>
      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
      </servlet-mapping>
      <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
    </web-app>

    Your class is now been put in a package? Good, now the next step is to remove all of those managed-property entries from the faces-config.xml. It makes no sense because 1) you already created the list in the backing bean and 2) you didn't assign any value to the item in the managed property.

  • InitialContext - Applet Problem

    Hi,
    When i try to get InitialContext from Applet ( running from appletviewer),
    i'm hitting this error. Please help me to solve this problem
    Exactly this line gives the error
    InitialContext ic = new InitalContext ( hEnv )
    Error:
    javax.naming.NoInitialContextException: Cannot Instantiate class:
    weblogic.jndi.WLInitialContextFactory
    -regards
    Abdul Malik

    you can use applet to pull data periodically from the servlet.
    mj
    "Anthony A." wrote:
    What if you want to perform some type of 'realtime' push from the server?
    Anthony
    "minjiang" <[email protected]> wrote in message
    news:[email protected]...
    why do you have to call your ejbs in applet directly? Why not use aservlet in
    between?
    The overhead of downloading so many so big jar files to the client machinewill
    kill/time out any broswer http session.
    mj
    Abdul Malik wrote:
    Dear Friends,
    After 5 days of struggle, somehow i was managed to access the EJB from
    Applet. But very slow coz of Big Jar files ( can make it bit small by
    identitfying required classes ). I dont know this is correct approach
    or
    not, but works ( damn slow )
    What i did was
    1) Installed the Latest Plugin 1.3.1
    2) Downloaded HTMLConverter tool from java.sun.com and converted my
    html file to use plugin.
    3) inlcuded few jar files in archive tag.
    The files i added in archive tag is
    1) myapplet.jar ( applet classes )
    2) weblogicaux.jar ( !!!!!!!!!!!! quite big jar file )
    3) weblogicclass.jar ( jarred all the classes from classes\weblogicfolder
    (!!!!!!!!!! so big jar file !!!!!! )
    4) myejb.jar ( suppose to work with home and remote class, but notworking
    ( looking for container generated files). so i added my EJB.jar file.dont
    know why ?????????? )
    then it works.
    well, i am not happy with this kind of approach. if any body haveefficient
    one, please kindly post it.
    Note: i tried in 1.2.2 plugin ( works )
    Environment: Windows 2000 / Windows 98, Weblogic 5.1 Service pack 7
    -regards
    Abdul Malik
    "Daniel Hoppe" <[email protected]> wrote in message
    news:[email protected]...
    Anthony,
    why should he place j2ee.jar in the applet classpath? Shouldn't be there
    actually. Your problem seems to be related to a class which is not
    serializable.
    Daniel
    -----Ursprüngliche Nachricht-----
    Von: Anthony A. [mailto:[email protected]]
    Bereitgestellt: Freitag, 22. Juni 2001 18:10
    Bereitgestellt in: jndi
    Unterhaltung: InitialContext - Applet Problem
    Betreff: Re: InitialContext - Applet Problem
    As a test, try to place the j2ee.jar and weblogic.jar in your
    <archive tag>.
    I have this code in my applet's init() method and it fails
    due to a JMS
    Exception.
    I'm using BEA's web server, jndi server, and app server on
    the same box as
    the client.
    Thanks,
    Anthony
    code:
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL, "t3://anthony01:7001");
    System.out.println("creating context");
    InitialContext ctx = new InitialContext(ht);
    error:
    JMSException: weblogic.jms.common.JMSException:
    java.rmi.MarshalException:
    failed to marshal public abstract weblogic.jms.client.JMSConnection
    weblogic.jms.frontend.FEConnectionFactoryRemote.createConnecti
    on(weblogic.rj
    vm.JVMID,weblogic.jms.client.JMSCallbackRemote) throws
    javax.jms.JMSException,java.rmi.RemoteException; nested exception is:
    java.io.NotSerializableException: weblogic.jms.client.JMSCallback

  • Windows 2008 Server Standard - Problems Printing

    I have an issue with a server that we are currently setting up in a bus station.
    There are 6 machines in total, one is the server which is running Windows Server 2008 Standard 32bit SP2, the other 5 are the client machines which are all running Windows 7 Pro 64bit SP1.
    All 6 machines are all linked together on the same domain and they all speak to each other, i.e all ping each other.
    The issue we now have is that we have 5 printers to link to the network, all the prints are plugged directly into the Ethernet sockets on the wall which then go to the switch. The prints all have ips assigned to them and the server will see them but will
    not communicate with them. If we try to ping any of the printers it fails.
    We have loaded print service/print management on the server and we can set up the printers through that. Again we get the error that it is not communicating with the printer so it asks you to load the driver manually(gives us a huge lists of makes and models).
    In the network list through control panel we dont get a list of printers.
    If anyone can help that would be great and could let us know what we are doing wrong.
    If i have missed anything important out please let me know.
    thanks

    Until you determine the underlying network transport problem this has nothing to do with printing.
    Get the network configured so you can ping or use tracert to the IP of the device.  It's possible the printers are not properly configured for your network but once again not a printing issue at this point but a networking issue.
    Alan Morris Windows Printing Team

Maybe you are looking for