Unable to execute the cmp using the weblogic

I was trying to execute cmp using weblogic server7.0.
It a simple program,
The remote interface-
import javax.ejb.*;
import java.rmi.RemoteException;
public interface SportTeam extends EJBObject{
public void setOwnerName(String ownerName) throws RemoteException;
public String getOwnerName() throws RemoteException;
public void setFranchiseName(String franchiseName) throws RemoteException;
public String getFranchiseName() throws RemoteException;
}The home interface
import javax.ejb.*;
import java.rmi.RemoteException;
import java.util.Collection;
public interface SportTeamHome extends EJBHome{
SportTeam create(String sport,String nickName)throws RemoteException,CreateException;
SportTeam create(String sport,String nickName,String ownerName,String franchisePlayer)throws RemoteException,CreateException;
SportTeam findByPrimaryKey(SportTeamPK sportTeam) throws RemoteException,FinderException;
Collection findByOwnerName(String ownerName) throws RemoteException,FinderException;
}The bean
import javax.ejb.*;
import javax.naming.*;
import java.rmi.RemoteException;
import java.sql.*;
import java.util.*;
public abstract class SportTeamEJB implements EntityBean{
public SportTeamPK ejbCreate(String sport,String nickName) throws CreateException {
setSport(sport);
setNickName(nickName);
setOwnerName(null);
setFranchiseName(null);
return null;
public void ejbPostCreate(String sport,String nickName){}
public SportTeamPK ejbCreate(String sport,String nickName,String ownerName,String franchiseName) throws CreateException {
setSport(sport);
setNickName(nickName);
setOwnerName(ownerName);
setFranchiseName(franchiseName);
return null;
public void ejbPostCreate(String sport,String nickName,String ownerName,String franchiseName){}
public void ejbLoad(){}
public void ejbStore(){}
public void ejbRemove(){}
public void ejbActivate(){}
public void ejbPassivate(){}
public void setEntityContext(EntityContext ctx){}
public void unsetEntityContext(){}
abstract public String getSport();
abstract public void setSport(String sport);
abstract public String getNickName();
abstract public void setNickName(String nickName);
abstract public String getOwnerName();
abstract public void setOwnerName(String ownerName);
abstract public String getFranchiseName();
abstract public void setFranchiseName(String franchiseName);
}the client side program
import java.rmi.RemoteException;
import javax.ejb.*;
import javax.naming.*;
import javax.rmi.PortableRemoteObject;
import java.util.Properties;
import java.util.Collection;
import java.util.Iterator;
public class TestClient{
public static void main(String[] args){
try{
     Properties prop=new Properties();
     prop.setProperty(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
     prop.setProperty(Context.PROVIDER_URL,"t3://localhost:7001");
     InitialContext initial=new InitialContext(prop);
     Object objref=initial.lookup("CMPSportBean");
     SportTeamHome home=(SportTeamHome)PortableRemoteObject.narrow(objref,SportTeamHome.class);
     System.out.println("Creating a row.");
     home.create("basketball","Kings","Joe Maloof","Jason Williams");
     System.out.println("Looking up by primary key...");
     SportTeam team=home.findByPrimaryKey(new SportTeamPK("basketball","Kings"));
     System.out.println("Current franchise player:");
     System.out.println(team.getFranchiseName());
     System.out.println("Looking by by owner...");
     Collection col=home.findByOwnerName("Joe Maloof");
     if(     0 == col.size()     ){
          System.out.println("Found no such owner");
     }else {
          Iterator iter=col.iterator();
          while(iter.hasNext()){
          Object objref2=iter.next();
          SportTeam teamRef2=(SportTeam) PortableRemoteObject.narrow(objref2,SportTeam.class);
          System.out.println("Owner name:"+ teamRef2.getOwnerName());
team.remove();
}catch(RemoveException re){
     re.printStackTrace();
}catch(NamingException ne){
     ne.printStackTrace();
}catch(CreateException ce){
     ce.printStackTrace();
}catch(FinderException fe){
     fe.printStackTrace();
}catch(RemoteException re){
              re.printStackTrace();
}The primary key class
//package sportBean.cmp;
import java.io.Serializable;
public class SportTeamPK implements Serializable{
public String sport;
public String nickName;
public SportTeamPK(){}
public SportTeamPK(String sport,String nickName){
this.sport =sport;
this.nickName=nickName;
public String getSport(){
return sport;
public String getNickName(){
return nickName;
public int hashCode(){
return (sport+nickName).hashCode();
public boolean equals(Object other){
     if( (other == null) ||! (other instanceof SportTeamPK) ){
        return false;
     SportTeamPK otherPK=(SportTeamPK)other;
     return sport.equals(otherPK.sport) && nickName.equals(otherPK.nickName);
The program has complied successfully .
The META-INF directory has been created automatically
the ejb-jar.xml file
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
<!-- Generated XML! -->
<ejb-jar>
  <enterprise-beans>
    <entity>
      <ejb-name>CMPSportBean</ejb-name>
      <home>SportTeamHome</home>
      <remote>SportTeam</remote>
      <ejb-class>SportTeamEJB</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>SportTeamPK</prim-key-class>
      <reentrant>False</reentrant>
      <abstract-schema-name>SportEJB</abstract-schema-name>
      <cmp-field>
        <field-name>sport</field-name>
      </cmp-field>
      <cmp-field>
        <field-name>nickName</field-name>
      </cmp-field>
      <cmp-field>
        <field-name>ownerName</field-name>
      </cmp-field>
      <cmp-field>
        <field-name>franchiseName</field-name>
      </cmp-field>
      <query>
        <query-method>
          <method-name>findByOwnerName</method-name>
          <method-params>
            <method-param>java.lang.String</method-param>
          </method-params>
        </query-method>
        <ejb-ql><![CDATA[SELECT OBJECT(o) FROM SportEJB AS o WHERE o.ownerName=?1]]></ejb-ql>
      </query>
    </entity>
  </enterprise-beans>
  <assembly-descriptor>
  </assembly-descriptor>
</ejb-jar>the weblogic-ejb-jar.xml file
<!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 7.0.0 EJB//EN' 'http://www.bea.com/servers/wls700/dtd/weblogic-ejb-jar.dtd'>
<!-- Generated XML! -->
<weblogic-ejb-jar>
  <weblogic-enterprise-bean>
    <ejb-name>CMPSportBean</ejb-name>
    <entity-descriptor>
      <pool>
      </pool>
      <entity-cache>
        <max-beans-in-cache>1000</max-beans-in-cache>
        <idle-timeout-seconds>600</idle-timeout-seconds>
        <read-timeout-seconds>600</read-timeout-seconds>
        <cache-between-transactions>False</cache-between-transactions>
      </entity-cache>
      <persistence>
        <persistence-use>
          <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
          <type-version>6.0</type-version>
          <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
        </persistence-use>
      </persistence>
      <entity-clustering>
      </entity-clustering>
    </entity-descriptor>
    <transaction-descriptor>
      <trans-timeout-seconds>2</trans-timeout-seconds>
    </transaction-descriptor>
    <jndi-name>CMPSportBean</jndi-name>
  </weblogic-enterprise-bean>
</weblogic-ejb-jar>the weblogic-cmp-rdbms-jar.xml file
<!DOCTYPE weblogic-rdbms-jar PUBLIC  '-//BEA Systems, Inc.//DTD WebLogic 7.0.0 EJB RDBMS Persistence//EN' 'http://www.bea.com/servers/wls700/dtd/weblogic-rdbms20-persistence-700.dtd'>
<!-- Generated XML! -->
<weblogic-rdbms-jar>
  <weblogic-rdbms-bean>
    <ejb-name>CMPSportBean</ejb-name>
    <data-source-name>myjdbcjndi</data-source-name>
    <table-map>
      <table-name>sportsteams</table-name>
      <field-map>
        <cmp-field>ownerName</cmp-field>
        <dbms-column>ownername</dbms-column>
      </field-map>
      <field-map>
        <cmp-field>franchiseName</cmp-field>
        <dbms-column>franchisename</dbms-column>
      </field-map>
      <field-map>
        <cmp-field>nickName</cmp-field>
        <dbms-column>nickname</dbms-column>
      </field-map>
      <field-map>
        <cmp-field>sport</cmp-field>
        <dbms-column>sport</dbms-column>
      </field-map>
    </table-map>
    <weblogic-query>
      <query-method>
        <method-name>findByOwnerName</method-name>
        <method-params>
          <method-param>java.lang.String</method-param>
        </method-params>
      </query-method>
    </weblogic-query>
    <check-exists-on-method>False</check-exists-on-method>
  </weblogic-rdbms-bean>
  <create-default-dbms-tables>True</create-default-dbms-tables>
</weblogic-rdbms-jar>I tried to write config.xml file
<JDBCDataSource
   Name=" "
   JNDIName="myjdbcjndi"
   PoolName="MyJDBC Connection Pool"
   Targets="myserver"
/>
<JDBCConnectionPool
   Name="MyJDBC Connection Pool"
   Targets="myserver"
    URL="jdbc:odbc:test"
    DriverName="sun.jdbc.odbc.JdbcOdbcDriver"
    InitialCapacity="1"
    MaxCapacity="10"
/>When i tried to deploy, it showed me errors-
weblogic.management.ApplicationException: activate failed forcmp
Start server side stack trace:
weblogic.management.ApplicationException: activate failed forcmp
Module Name: cmp, Error: Exception activating module: EJBModule(cmp,status=PREPARED)
Unable to deploy EJB: CMPSportBean from cmp:
weblogic.ejb20.WLDeploymentException: The DataSource with the JNDI name: myjdbcjndi could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
     at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:138)
     at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:211)
     at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:181)
     at weblogic.ejb20.manager.DBManager.setup(DBManager.java:162)
     at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:945)
     at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1296)
     at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:349)
     at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:1592)
     at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1029)
     at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1016)
     at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1112)
     at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:732)
     at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
TargetException:
Unable to deploy EJB: CMPSportBean from cmp:
weblogic.ejb20.WLDeploymentException: The DataSource with the JNDI name: myjdbcjndi could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
     at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:138)
     at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:211)
     at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:181)
     at weblogic.ejb20.manager.DBManager.setup(DBManager.java:162)
     at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:945)
     at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1296)
     at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:349)
     at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:1592)
     at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1029)
     at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1016)
     at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1112)
     at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:732)
     at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
     at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1035)
     at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1016)
     at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1112)
     at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:732)
     at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
End server side stack trace
Module Name: cmp, Error: Exception activating module: EJBModule(cmp,status=PREPARED)
Unable to deploy EJB: CMPSportBean from cmp:
weblogic.ejb20.WLDeploymentException: The DataSource with the JNDI name: myjdbcjndi could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
     at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:138)
     at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:211)
     at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:181)
     at weblogic.ejb20.manager.DBManager.setup(DBManager.java:162)
     at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:945)
     at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1296)
     at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:349)
     at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:1592)
     at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1029)
     at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1016)
     at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1112)
     at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:732)
     at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
TargetException:
Unable to deploy EJB: CMPSportBean from cmp:
weblogic.ejb20.WLDeploymentException: The DataSource with the JNDI name: myjdbcjndi could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
Start server side stack trace:
weblogic.ejb20.WLDeploymentException: The DataSource with the JNDI name: myjdbcjndi could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
     at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:138)
     at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:211)
     at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:181)
     at weblogic.ejb20.manager.DBManager.setup(DBManager.java:162)
     at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:945)
     at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1296)
     at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:349)
     at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:1592)
     at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1029)
     at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1016)
     at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1112)
     at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:732)
     at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
End server side stack trace
     <<no stack trace available>>
     <<no stack trace available>>
I tried to put the file into the directory structure.
I kept the class files into the WEB-INF/classess
I could'nt understand whats wrong with it.
Please help me it is urgent, if i could understand it i can proceed further

Hi,
I had the same error as you. I'm agree with arvind_India (previous). You must :
1. Define a correct Connection Pool (warning: deploy it on your managed server).
2. Test your connection Pool on your managed server.
3. Create a DataSource from your connection Pool.
4. Deploy your DataSource on your managed server.
5. Verify the JNDI TREE of your managed server (Now, the JNDI name of your dataSource must appair).
6. Deploy your Entity Bean (the error has disapeared).
David (Paris-France).

Similar Messages

  • Unable to connect to OVD using the odsm

    Hi All,
    I was unable to connect to the OVD 11.1.1.3.0 installed using the ODSM, while i was able to connect to the OID happily.
    I tried to connect to the OVD using the adminssl port (8899), non-ssl port (6501), ssl port (7501). I have the user id as cn=orcladmin. i was redirected to some Certificate Trust Validation pop-window and then it was throwing the error to check the log.
    I cant figure out what might be the issue. please help me. i'm copying the content of the log file below.
    [2012-04-16T22:10:42.891+05:30] [wls_ods1] [WARNING] [] [org.apache.myfaces.trinidadinternal.context.RequestContextImpl] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JQw1lFf4io95nf5EiZ1FZ42L00005z,0] [APP: odsm#11.1.1.2.0] Could not find partial trigger viewerId from UIHierarchyViewer[UIXFacesBeanImpl, id=hv1] with the supported partialTriggers syntax. The partial trigger was found with the deprecated syntax. Please use the supported syntax.
    [2012-04-16T22:10:42.906+05:30] [wls_ods1] [WARNING] [] [org.apache.myfaces.trinidadinternal.context.RequestContextImpl] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JQw1lFf4io95nf5EiZ1FZ42L00005z,0] [APP: odsm#11.1.1.2.0] Could not find partial trigger cmdb1 from UIHierarchyViewer[UIXFacesBeanImpl, id=hv1] with the supported partialTriggers syntax. The partial trigger was found with the deprecated syntax. Please use the supported syntax.
    [2012-04-16T22:10:43.625+05:30] [wls_ods1] [ERROR] [] [oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JQw1lFf4io95nf5EiZ1FZ42L00005z,0] [APP: odsm#11.1.1.2.0] Server Exception during PPR, #56[[
    javax.servlet.ServletException: com/octetstring/vde/admin/services/client/VDEAdminServiceSoapBindingStub
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:421)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:421)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.NoClassDefFoundError: com/octetstring/vde/admin/services/client/VDEAdminServiceSoapBindingStub
         at com.octetstring.vde.admin.services.client.ServerMgrServiceLocator.getVDEAdminService(ServerMgrServiceLocator.java:58)
         at oracle.ldap.odsm.model.ovd.APServerProxy.connect(APServerProxy.java:248)
         at oracle.ldap.odsm.model.ovd.APServerProxy.authenticateAs(APServerProxy.java:684)
         at oracle.ldap.odsm.model.ovd.APServerProxy.authenticate(APServerProxy.java:286)
         at oracle.ldap.odsm.model.ovd.APServerProxy.init(APServerProxy.java:216)
         at oracle.ldap.odsm.model.ovd.APServerProxy.<init>(APServerProxy.java:198)
         at oracle.ldap.odsm.model.ovd.OVDRoot.connectOVD(OVDRoot.java:185)
         at oracle.ldap.odsm.ui.common.Connection.connect(Connection.java:120)
         at oracle.ldap.odsm.ui.common.Visit.createConnection(Visit.java:663)
         at oracle.ldap.odsm.ui.common.PopupItem._createConnection(PopupItem.java:1815)
         at oracle.ldap.odsm.ui.common.PopupItem.alwaysAction(PopupItem.java:1763)
         at sun.reflect.GeneratedMethodAccessor316.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1245)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         ... 9 more
    [2012-04-16T22:11:49.094+05:30] [wls_ods1] [NOTIFICATION] [DIP-10580] [oracle.dip] [tid: UpdateThread] [userId: <anonymous>] [ecid: 0000JQvv94D4io95nf5EiZ1FZ42L000036,0] [APP: DIP#11.1.1.2.0] [arg: (&(changenumber>=11222)(|(targetdn=*cn=Profiles,cn=Provisioning,cn=Directory Integration Platform,cn=Products,cn=OracleContext)(targetdn=*cn=event definitions,cn=directory integration platform,cn=products,cn=oraclecontext)(targetdn=*cn=object definitions,cn=directory integration platform,cn=products,cn=oraclecontext)))] changelog filter : (&(changenumber>=11222)(|(targetdn=*cn=Profiles,cn=Provisioning,cn=Directory Integration Platform,cn=Products,cn=OracleContext)(targetdn=*cn=event definitions,cn=directory integration platform,cn=products,cn=oraclecontext)(targetdn=*cn=object definitions,cn=directory integration platform,cn=products,cn=oraclecontext)))

    you need java connector

  • My iphone 4s' screen is black, but it's still on and charging. I broke my lock screen button so I am unable to turn it off using the home button and lock button. Is there any other way my phone can restart or turn off ? Is my phone broken for sure?

    My iphone 4s' screen is black, but it's still on and charging. I broke my lock screen button so I am unable to turn it off using the home button and lock button. Is there any other way my phone can restart or turn off ? Is my phone broken for sure?

    Kbkohn wrote:
    I am in tears right now because I entered all my 11month old sons milestones into my phone and now I have nothing I'm so upset and am hoping there is a way to get this information back. 
    Most intelligent people would not store such sensitive data on a device that could so easily be lost, stolen, or damaged.  Even if they chose to do so, they would use the device as designed and regularly sync and backup that device as described in the User's Guide.
    Have you done so?  If you have, all of the data is either in iCloud or iTunes on your computer.  Replace the device and restore the new iDevice with the backup of the old one.

  • I am unable to zoom in/out using the touch pad; yesterday i could zoom in/out of website pages, pics, etc, now today it is not letting me; how do i fix this?

    i am unable to zoom in/out using the touch pad; yesterday i could zoom in/out of website pages, pics, etc, now today it is not letting me; how do i fix this?

    See Here  >  http://support.apple.com/kb/HT1212

  • I am unable to select a colour using the swatches

    I am unable to select a colour using the swatches, I have a greyish line under the colour I am trying to select and the colour I am trying to use will not highlight - this is a new problem, as it has been working fine - I have pushed something so how do I undo it? Please help, this is very frustrating

    Thank you, the step where I went to tools, options and then selected a product for the application worked. It was a problem with .pdf files. I don't understand how all of a sudden it changed from what had worked all along, but, I changed it back from xps viewer to adobe and all is working fine.
    I appreciate your help!

  • Agents unable to perform Call Transfer using the shortcut button

    Hello All,
    We are facing this same issue for the last 3 days, any help will be truly appreciated.
    Scenario : When customer calls in, Few agents are unable to do call transfer using the shortcut button on the CAD Interface. however when this fails they still can manually transfer the call by entering the number as a work around.
    This is not happening for all agents and for those this is happening it happens intermittently. What could be the reason. please guide.

    This def sounds like an MTP issue.. Are you using software MTP or hardware MTP's on the gateways? I suggest using Software session on the gateways as it won't use DSP and will allow for much more the CUCM itself can support...
    Pretty good chance this is the issue...
    (Check RTMT and see if you are getting alerts about media resource group list exhausted)
    Chad

  • I am  unable to load GRAPHIC files using the transaction SFP.

    I am  unable to load GRAPHIC files using the transaction SFP.
    The error message says that there is no connection to the below given url.
       http://<hostname:8000>/sap/bc/fp/
    is it something like i have to activate this service in transaction sicf ?

    Try http://<hostname:8000>/sap/bc/fp/!
    ! at the end ..
    Regards
    Juan

  • I am unable to print "ALL Pages" using the Adobe Print plugin in Firefox, only the first page gets printes. however IE works perfectly fine.Please advise. Is it some way that firefox identifies the complete web page..? PLease help

    I am unable to print "ALL Pages" using the Adobe Print plugin in Firefox, only the first page gets printes. however IE works perfectly fine.Please advise. Is it some way that firefox identifies the complete web page..? PLease help

    Does the entire webpage appear in Print Preview? <br />
    File > Print Preview

  • Unable to connect to DB using the SID

    HI Forum,
    I am unable to connect to DB using the SID i assigned using TOAD, but i am able to connect using the instance name.
    My setup needs that i should use a common name to connect to the DB immaterial of which instance is up.
    Can any one instruct me how to achieve this kind of setup.
    Regards
    Prakash

    Hi Prakash,
    1). Create a file called TestingLoop.java containing following code:
    import java.sql.*;
    public class TestingLoop {
    public static void main(String[] s)throws Exception {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    /* String url="jdbc:oracle:thin:@(DESCRIPTION= (LOAD_BALANCE=on)
    (ADDRESS=(PROTOCOL=TCP)(HOST=a) (PORT=1521))
    (ADDRESS=(PROTOCOL=TCP)(HOST=b)(PORT=1521))
    (ADDRESS=(PROTOCOL=TCP)(HOST=c) (PORT=1521))
    (CONNECT_DATA=(SERVICE_NAME=orcl)))"; */
    String url ="jdbc:oracle:thin:@abc.us.oracle.com:23001:xyz";
    for (int i=0; i<20; i++) {
    try {
    long x= System.currentTimeMillis () ;
    Connection conn = DriverManager.getConnection(url,"scott","tiger");
    long y= System.currentTimeMillis ();
    System.out.println("Connection Succesful "+conn);
    System.out.println("Connection time is "+(y-x)/1000+" ms");
    Statement stmt =conn.createStatement();
    ResultSet res= stmt.executeQuery(" select host_name from v$instance");
    while(res.next()) {
    System.out.println(res.getString(1));
    stmt.close();
    conn.close();
    catch(Exception e) {
    e.printStackTrace();
    2). Compile the file using this command:
    javac TestingLoop.java
    3). Run the java program:
    java TestingLoop
    Single Virtual Ip doesn't make sense... does?
    You will lose failover vip capabilities...
    Regards,
    Rodrigo Mufalani

  • Increase the size of the cache using the cache.size= number of pages ?

    Hi All,
    I am getting this error when I do load testing.
    I have Connection pool for Sybase database that I am using in my JPD. I am using Database control of weblogic to call the Sybase Stored procedure.
    I got following exception when I was doing load testing with 30 concurrent users.
    Any idea why this exception is coming ?
    thanks in advance
    Hitesh
    javax.ejb.EJBException: [WLI-Core:484047]Tracking MDB failed to acquire resources.
    java.sql.SQLException: Cache Full. Current size is 2069 pages. Increase the size of the cache using the cache.size=<number of pages>
         at com.pointbase.net.netJDBCPrimitives.handleResponse(Unknown Source)
         at com.pointbase.net.netJDBCPrimitives.handleJDBCObjectResponse(Unknown Source)
         at com.pointbase.net.netJDBCConnection.prepareStatement(Unknown Source)
         at weblogic.jdbc.common.internal.ConnectionEnv.makeStatement(ConnectionEnv.java:1133)
         at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java:917)
         at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java:905)
         at weblogic.jdbc.wrapper.Connection.prepareStatement(Connection.java:350)
         at weblogic.jdbc.wrapper.JTSConnection.prepareStatement(JTSConnection.java:479)
         at com.bea.wli.management.tracking.TrackingMDB.getResources(TrackingMDB.java:86)
         at com.bea.wli.management.tracking.TrackingMDB.onMessage(TrackingMDB.java:141)
         at com.bea.wli.management.tracking.TrackingMDB.onMessage(TrackingMDB.java:115)
         at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
         at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

    hitesh Chauhan wrote:
    Hi All,
    I am getting this error when I do load testing.
    I have Connection pool for Sybase database that I am using in my JPD. I am using Database control of weblogic to call the Sybase Stored procedure.
    I got following exception when I was doing load testing with 30 concurrent users.
    Any idea why this exception is coming ?
    thanks in advance
    Hitesh Hi. Please note below, the stacktrace and exception is coming from the
    Pointbase DBMS, nothing to do with Sybase. It seems to be an issue
    with a configurable limit for PointBase, that you are exceeding.
    Please read the PointBase configuration documents, and/or configure
    your MDBs to use Sybase.
    Joe
    >
    javax.ejb.EJBException: [WLI-Core:484047]Tracking MDB failed to acquire resources.
    java.sql.SQLException: Cache Full. Current size is 2069 pages. Increase the size of the cache using the cache.size=<number of pages>
         at com.pointbase.net.netJDBCPrimitives.handleResponse(Unknown Source)
         at com.pointbase.net.netJDBCPrimitives.handleJDBCObjectResponse(Unknown Source)
         at com.pointbase.net.netJDBCConnection.prepareStatement(Unknown Source)
         at weblogic.jdbc.common.internal.ConnectionEnv.makeStatement(ConnectionEnv.java:1133)
         at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java:917)
         at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java:905)
         at weblogic.jdbc.wrapper.Connection.prepareStatement(Connection.java:350)
         at weblogic.jdbc.wrapper.JTSConnection.prepareStatement(JTSConnection.java:479)
         at com.bea.wli.management.tracking.TrackingMDB.getResources(TrackingMDB.java:86)
         at com.bea.wli.management.tracking.TrackingMDB.onMessage(TrackingMDB.java:141)
         at com.bea.wli.management.tracking.TrackingMDB.onMessage(TrackingMDB.java:115)
         at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
         at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

  • Chat Applet using RMI .... trouble running the Applet using the IE browser.

    Hi,
    I'm trying to run a chat application using RMI technology. Actually, this wasn't created from the scratch. I got this one from from the cd that comes with the book I bought and I did some refinements on it to suit what I wanted to:
    These are the components of the chat application:
    1. RApplet.html - invokes the applet
    html>
    <head>
    <title>Sample Applet Using Dialog Box (1.0.2) - example 1</title>
    </head>
    <body>
    <h1>The Sample Applet</h1>
    <applet code="RApplet.class" width=460 height=160>
    </applet>
    </body>
    </html>
    2. RApplet.java - Chat session client applet.
    import java.rmi.*;
    import java.applet.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.io.*;
    import java.rmi.server.*;
    //import ajp.rmi.*;
    public class RApplet extends Applet implements ActionListener {
    // The buttons
    Button sendButton;
    Button quitButton;
    Button startButton;
    Button clearButton;
    // The Text fields
    TextField nameField;
    TextArea typeArea;
    // The dialog for entering your name
    Dialog nameDialog;
    // The name the server knows us as
    String privateName;
    // The name we want to be known as in the chat session
    String publicName;
    // The remote chats erver
    ChatServer chatServer;
    // The ChatCallback
    ChatCallbackImplementation cCallback;
    // The main Chat window and its panels
    Frame mainFrame;
    Panel center;
    Panel south;
    public void init() {
    // Create class that implements ChatCallback.
    cCallback = new ChatCallbackImplementation();
         // Create the main Chat frame.
         mainFrame = new Frame("Chat Server on : " +
                        getCodeBase().getHost());
         mainFrame.setSize(new Dimension(600, 600));
         cCallback.displayArea = new TextArea();
         cCallback.displayArea.setEditable(false);
         typeArea = new TextArea();
         sendButton = new Button("Send");
         quitButton = new Button("Quit");
         clearButton = new Button("Clear");
         // Add the applet as a listener to the button events.
         clearButton.addActionListener(this);
         sendButton.addActionListener(this);
         quitButton.addActionListener(this);
         center = new Panel();
         center.setLayout(new GridLayout(2, 1));
         center.add(cCallback.displayArea);
         center.add(typeArea);
         south = new Panel();
         south.setLayout(new GridLayout(1, 3));
         south.add(sendButton);
         south.add(quitButton);
         south.add(clearButton);
         mainFrame.add("Center", center);
         mainFrame.add("South", south);
         center.setEnabled(false);
         south.setEnabled(false);
         mainFrame.show();
         // Create the login dialog.
         nameDialog = new Dialog(mainFrame, "Enter Name to Logon: ");
         startButton = new Button("Logon");
         startButton.addActionListener(this);
         nameField = new TextField();
         nameDialog.add("Center", nameField);
         nameDialog.add("South", startButton);
         try {
         // Export ourselves as a ChatCallback to the server.
         UnicastRemoteObject.exportObject(cCallback);
         // Get the remote handle to the server.
         chatServer = (ChatServer)Naming.lookup("//" + "WW7203052W2K" +
                                  "/ChatServer");
         catch(Exception e) {
         e.printStackTrace();
         nameDialog.setSize(new Dimension(200, 200));
         nameDialog.show();
    * Handle the button events.
    public void actionPerformed(ActionEvent e) {
         if (e.getSource().equals(startButton)) {
         try {
              nameDialog.setVisible(false);;
              publicName = nameField.getText();
              privateName = chatServer.register(cCallback, publicName);
              center.setEnabled(true);
              south.setEnabled(true);
              cCallback.displayArea.setText("Connected to chat server as: " +
                             publicName);
              chatServer.sendMessage(privateName, publicName +
                             " just connected to server");
         catch(Exception ex) {
              ex.printStackTrace();
         else if (e.getSource().equals(quitButton)) {
         try {
              cCallback.displayArea.setText("");
              typeArea.setText("");
              center.setEnabled(false);
              south.setEnabled(false);
              chatServer.unregister(privateName);
              nameDialog.show();
         catch(Exception ex) {
              ex.printStackTrace();
         else if (e.getSource().equals(sendButton)) {
         try{
              chatServer.sendMessage(privateName, typeArea.getText());
              typeArea.setText("");
         catch(Exception ex) {
              ex.printStackTrace();
         else if (e.getSource().equals(clearButton)) {
         cCallback.displayArea.setText("");
    public void destroy() {
         try {
         super.destroy();
         mainFrame.setVisible(false);;
         mainFrame.dispose();
         chatServer.unregister(privateName);
         catch(Exception e) {
         e.printStackTrace();
    3. Chatcallback.java - interface used by clients to connect to the server.
    import java.rmi.*;
    public interface ChatCallback extends Remote {
    public void addMessage(String publicName,
                   String message) throws RemoteException;
    4. ChatcallbackImplementation.java - implements Chatcallback interface.
    import java.rmi.*;
    import java.io.*;
    import java.awt.event.*;
    import java.awt.*;
    public class ChatCallbackImplementation implements ChatCallback {
    // The buttons
    // The Text fields
    TextArea displayArea;
    public void addMessage(String publicName,
                   String message) throws RemoteException {
    displayArea.append("\n" + "[" + publicName + "]: " + message);
    5. Chatserver.java - interface for the chat server.
    import java.rmi.*;
    import java.io.*;
    public interface ChatServer extends Remote {
    public String register(ChatCallback object,
                   String publicName) throws RemoteException;
    * Remove the client associated with the specified registration string.
    * @param registeredString the string returned to the client upon registration.
    public void unregister(String registeredString) throws RemoteException;
    * The client is sending new data to the server.
    * @param assignedName the string returned to the client upon registration.
    * @param data the chat data.
    public void sendMessage(String registeredString, String message) throws RemoteException;
    6. ChatServerImplementation.java - implements Chatserver interface.
    import java.rmi.*;
    import java.util.*;
    import java.rmi.server.*;
    import java.io.*;
    * A class that bundles the ChatCallback reference with a public name used
    * by the client.
    class ChatClient {
    private ChatCallback callback;
    private String publicName;
    ChatClient(ChatCallback cbk, String name) {
         callback = cbk;
         publicName = name;
    // returns the name.
    String getName() {
         return publicName;
    // returns a reference to the callback object.
    ChatCallback getCallback() {
         return callback;
    public class ChatServerImplementation extends UnicastRemoteObject
    implements ChatServer {
    // The table of clients connected to the server.
    Hashtable clients;
    // Tne number of current connections to the server.
    private int currentConnections;
    // The maximum number of connections to the server.
    private int maxConnections;
    // The output stream to write messages to.
    PrintWriter writer;
    * Create a ChatServer.
    * @param maxConnections the total number if connections allowed.
    public ChatServerImplementation(int maxConnections) throws RemoteException {
         clients = new Hashtable(maxConnections);
         this.maxConnections = maxConnections;
    * Increment the counter keeping track of the number of connections.
    synchronized boolean incrementConnections() {
         boolean ret = false;
         if (currentConnections < maxConnections) {
         currentConnections++;
         ret = true;
         return ret;
    * Decrement the counter keeping track of the number of connections.
    synchronized void decrementConnections() {
         if (currentConnections > 0) {
         currentConnections--;
    * Register with the ChatServer, with a String that publicly identifies
    * the chat client. A String that acts as a "magic cookie" is returned
    * and is sent by the client on future remote method calls as a way of
    * authenticating the client request.
    * @param object The ChatCallback object to be used for updates.
    * @param publicName The String the object would like to be known as.
    * @return The actual String assigned to the object for removing, etc. or
    * null if the client could not register.
    public synchronized String register(ChatCallback object, String publicString) throws RemoteException {
         String assignedName = null;
         if (incrementConnections()) {
         ChatClient client = new ChatClient(object, publicString);
         assignedName = "" + client.hashCode();
         clients.put(assignedName, client);
         out("Added callback for: " + client.getName());
         return assignedName;
    * Remove the client associated with the specified registration string.
    * @param registeredString the string returned to the client upon registration.
    public synchronized void unregister(String registeredString) throws RemoteException {
         ChatCallback cbk;
         ChatClient sender;
         if (clients.containsKey(registeredString)) {
         ChatClient c = (ChatClient)clients.remove(registeredString);
         decrementConnections();
         out("Removed callback for: " + c.getName());
         for (Enumeration e = clients.elements(); e.hasMoreElements(); ) {
              cbk = ((ChatClient)e.nextElement()).getCallback();
              cbk.addMessage("ChatServer",
                        c.getName() + " has left the building...");
         else {
         out("Illegal attempt at removing callback (" + registeredString + ")");
    * Sets the logging stream.
    * @param out the stream to log messages to.
    protected void setLogStream(Writer out) throws RemoteException {
         writer = new PrintWriter(out);
    * The client is sending new message to the server.
    * @param assignedName the string returned to the client upon registration.
    * @param data the chat data.
    public synchronized void sendMessage(String registeredString, String message) throws RemoteException {
         ChatCallback cbk;
         ChatClient sender;
         try {
         out("Recieved from " + registeredString);
         out("Message: " + message);
         if (clients.containsKey(registeredString)) {
              sender = (ChatClient)clients.get(registeredString);
              for (Enumeration e = clients.elements(); e.hasMoreElements(); ) {
                   cbk = ((ChatClient)e.nextElement()).getCallback();
                   cbk.addMessage(sender.getName(), message);
         else {
              out("Client " + registeredString+ " not registered");
         catch(Exception ex){
         out("Exception thrown in newData: " + ex);
         ex.printStackTrace(writer);
         writer.flush();
    * Write s string to the current logging stream.
    * @param message the string to log.
    protected void out(String message){
         if(writer != null){
         writer.println(message);
         writer.flush();
    * Start up the Chat server.
    public static void main(String args[]) throws Exception {
         try {
         // Create the security manager
         System.setSecurityManager(new RMISecurityManager());
         // Instantiate a server
         ChatServerImplementation c = new ChatServerImplementation(10);
         // Set the output stream of the server to System.out
         c.setLogStream(new OutputStreamWriter(System.out));
         // Bind the server's name in the registry
         Naming.rebind("//" + args[0] + "/ChatServer", c);
         c.out("Bound in registry.");
         catch (Exception e) {
         System.out.println("ChatServerImplementation error:" +
                        e.getMessage());
         e.printStackTrace();
    Using my own machine (connected to a network), I tried to test this one out by setting mine as the server and also the client. I did the following:
    1. Compile the source code.
    2. Use rmic to generate the skeletons and/or stubs from the ChatCallbackImplementation and ChatServerImplementation.
    3. Start the rmiregistry with no CLASSPATH
    4. Start the server successfully.
    5. Start the applet using the AppletViewer command.
    It worked fined.
    The problem is when I ran the applet using the browser, IE explorer, the dialog boxes, frame and buttons did appear. I was able to do the part of logging on. But after that, the applet seemed to have hang. No message appeared that says I'm connected (which appeared using the appletviewer). I clicked the send button. No response.
    I double-checked my classpath. I did have my classpath set correctly. I'm still trying to figure out the problem. Up to now, I don't have any clue what it is.
    I will appreciate much if someone can help me figure what's could have possibly been wrong ....
    Thanks a lot ...

    Hi Domingo,
    I had a similar problem running applet/rmi with IE.
    Looking in IE..view..JavaConsole error messages my applet was unable to find java.rmi.* classes.
    I checked over java classes in msJVM, they're not present.
    ( WinZip C:\WINDOWS\JAVA\Packages\9rl3f9ft.zip and others from msVM installed )
    ( do not contain the java.rmi.* packages )
    I have downloaded and installed the latest msJVM for IE5. ( I think its included in later versions)
    @http://www.objectweb.org/rmijdbc/RJfaq.html I found ref to rmi.zip download to provide
    these classes. I couldn't get the classes from the site but I managed to find a ref to IBM
    site @http://alphaworks.ibm.com/aw.nsf/download/rmi which had similar download.
    The download however didn't solve my problems. I was unable to install rmi.zip with
    RmiPatch.exe install.
    I solved this by extracting the class files from rmi.zip and installing them at C:\WINDOWS\JAVA\trustlib ( msJVM installation trusted classes lib defined in
    registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Java VM\TrustedLibsDirectory )
    This solved the problem. My rmi/applet worked.
    Hope this helps you.
    Chris
    ([email protected])

  • I have a canon 60D and I'm trying to view images on the Ipad using the sd reader but no luck. Any help or ideas?

    I have a Canon 60D and I am unable to view or transfer photos to the Ipad using the SD Card reader. I have been able to view images with a Canon T3i. Are there certain settings I need to set on the 60d or should it work automatically? anythoughts or ideas? thanks

    Are the photo's you're trying to view/download in Raw?  I've had difficulty downloading Raw files, but have had no issues downloading JPEG files. Also, check a setting in your Canon, called communication.  From what I've read (I'm a Nikon D5100 guy myself), communication needs to be set to PTP, not normal.  I'm not sure how that will help if the pictures are already encoded?
    Well scratch what I've written.  I just googled the 60D and supposedly, JPEG and Raw are supposed to transfer through the SD card reader easily.  So, I'm clueless.  Sorry.......
    Message was edited by: rbrylawski

  • HT3986 Hi, i have a macbook pro version 10.6.8 with boot camp version 3.0.4. I managed to install windows 7 professional x64, however when i insert my OS CD to install the drivers using the boot camp method, it says unsupported to this computer model

    Hi, i have a macbook pro version 10.6.8 with boot camp version 3.0.4. I managed to install windows 7 professional x64 bits but however when i tried to install the drivers using the OSX MAC CD using boot camp, it prompt me boot camp x 64 is unsupported with this computer model. Then i tried the method by right click the bootcamp x64 and managed to install the drivers. However, i still couldnt manage access the internet and it prompts me no networking hardware detected...Any idea how can i solve it?
    P.S i tried updating my bootcamp version 3.0.4 in mac os with bootcamp x64 version 3.1 exe but it shows me weird wording..
    my bootcamp version in windows 7 is 2.1..

    Uninstall 2.x totally
    Use CCleaner Registry tool
    Do whatever you need to to nuke the existing Apple programs and folders hidden here and there also.
    BC 2.2 was XP and Vista only

  • When I create a New Folder (on the desktop or in Finder), the system uses the Generic Document Icon instead of the Generic Folder Icon. How can I change this back?

    When I create a New Folder (on the desktop or in Finder), the system uses the Generic Document Icon instead of the Generic Folder Icon. How can I change this back?
    All of a sudden I noticed that most of the folders on my computer were no longer using the folder icon, but the generic document icon. I had to manually change back the icon being used by opening Get Info for each folder and copying and pasting the generic folder icon from some folders that remained unchanged. Now whenever I create a New Folder (right click -> "New Folder"), the icon that shows up is the generic document icon (white page with top right corner turned down). And I have to manually change it so it shows up as a folder in Finder or on my desktop. I don't know why or how this switch happened. All of the folders now on my computer look ok, but I need to change the default so when I create a New Folder it uses the correct icon.
    I have also Forced Relaunch of my Finder and rebooted the system. I downloaded Candybar but am not sure what will fix anything, so I haven't proceeded.
    Anyone know how I can do this? Thanks.

    Anyone?

  • My Viewsonic monitor won't work with the Imac using the Mini Port to DVI adapter.

    My Viewsonic monitor won't work with the Imac using the Mini Port to DVI adapter. I also tried the HDMI to DVI adapter ane the Mac-Mini with same result. The monitor does work on my older Macbook Pro that has the DVI connector. Is it a Software/Driver issue ?

    Should be extremely simple, please carefully read Connect multiple displays to your Mac. If you still have problems then it's probably a cable issue that would be resolved by replacing the adapter cable. You should be using this adapter. If you are using a third party adapter that might be your problem!

Maybe you are looking for