Can't run the cluster example

          I would appreciate if someone can explanation my long list of questions regarding
          the deployment of EJB in cluster environment.
          I can't run the cluster EJB example( Teller/Account) in a cluster(contains two
          server2). I always get
          java.rmi.RemoteException: Unable to
          resolve examples.cluster.ejb.Account
          Home. Resolved: 'examples.cluster.ejb'
          Unresolved:'AccountHome'
          Following is my setup:
          Machine A: exampleServer:7001 (admin server)
          Machine A: testServer1:8001 (Managed server)
          Machine B: testServer1_B:8001(Managed server)
          MyCluster : testServer1, testServer1_B
          Test Client:
          java examples.cluster.ejb.Client "t3://Machine A:8001"
          ======================
          Q1: Should I use 8001 or 7001 as cluster port number?
          Q2: What will happen when we click "apply" after select/unselect the server in
          the "target", "server" tab?
          Q3: And what will happen if we click deploy/undeploy check box in "configuration"
          tab of EJB item?
          Q4: I check the JNDI tree from all above three servers can't find out JNDI tree
          doesn't reflect the change I did in Q2 or Q3.
          Q5: What is the right way to deploy EJB components, should we select both cluster
          and server in the "target" tab?
          Q6: I got this message from one of the server when I try to undeploy/deploy ejb
          object.
          "examples.cluster.ejb.TellerHome_EO in the jndi tree is non clusterable
          and you have tried to bind more
          once? How could I make it clusterable?
          Q7: Undeploy and EJB doesn't work and sometime I still get " JNDI name in use"
          from the server.
          How could I fix it.
          Thanks
          

First I can tell you that the ports have to be the same, be on the the
          same network , i.e. Telnet into the other m/c. Next which you probably
          have done is the properties files. Per-cluster ...
          >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
          On 6/7/01, 6:59:48 AM, "James Hsu" <[email protected]> wrote regarding
          Can't run the cluster example:
          > I would appreciate if someone can explanation my long list of
          questions regarding
          > the deployment of EJB in cluster environment.
          > I can't run the cluster EJB example( Teller/Account) in a
          cluster(contains two
          > server2). I always get
          > java.rmi.RemoteException: Unable to
          > resolve examples.cluster.ejb.Account
          > Home. Resolved: 'examples.cluster.ejb'
          > Unresolved:'AccountHome'
          > Following is my setup:
          > Machine A: exampleServer:7001 (admin server)
          > Machine A: testServer1:8001 (Managed server)
          > Machine B: testServer1_B:8001(Managed server)
          > MyCluster : testServer1, testServer1_B
          > Test Client:
          > java examples.cluster.ejb.Client "t3://Machine A:8001"
          > ======================
          > Q1: Should I use 8001 or 7001 as cluster port number?
          > Q2: What will happen when we click "apply" after select/unselect the
          server in
          > the "target", "server" tab?
          > Q3: And what will happen if we click deploy/undeploy check box in
          "configuration"
          > tab of EJB item?
          > Q4: I check the JNDI tree from all above three servers can't find out
          JNDI tree
          > doesn't reflect the change I did in Q2 or Q3.
          > Q5: What is the right way to deploy EJB components, should we select
          both cluster
          > and server in the "target" tab?
          > Q6: I got this message from one of the server when I try to
          undeploy/deploy ejb
          > object.
          > "examples.cluster.ejb.TellerHome_EO in the jndi tree is non
          clusterable
          > and you have tried to bind more
          > once? How could I make it clusterable?
          > Q7: Undeploy and EJB doesn't work and sometime I still get " JNDI
          name in use"
          > from the server.
          > How could I fix it.
          > Thanks
          [att1.html]
          

Similar Messages

  • Help -   running the Persistence Example

    Hi All,
    I am running on NW2004s SPS10
    Please somebody has a Persistence example?? I can't run the SAP examples on my PDA (Dell AXIM X51v +Windows Mobile 2005) i found this information in the SAP Note 717510
    <i>MDK: Links to MI client home page <b>are not working</b> in some example programs
    Application is working fine but for the ME Home link for 3 MDK applications: MDK_persistence_query_sortJSP, MDK_persistence_queryJSP and MDK_persistence_simpleJSP.
    ( Changed at 30.04.2007 )</i>
    I would like to run the MDK_persistence_simpleJSP
    There is another Persistence example? Can somebody give me a link to download it. I want to learn how to use the persistence api, but without any running example is very difficult to test the code.
    Best Regards,
    Erick Ilarraza

    Hi all! Thank a lot for your replies.
    I run the MDK_PERSISTENCE_QUERYJSP in the Windows XP SAP Mobile Client, it runs Perfect!
    But when i try to run it on my PDA it give me this error:
    Error: 500
    Location: /MDK_PERSISTENCE_QUERYJSP/jsp/menu.jsp Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile class for JSPerror: Invalid class file format: /MI/webapps/MDK_PERSISTENCE_QUERYJSP/WEB-INF/lib/MDK_persistence_queryJSP.jar(persistenceexample2/PersistenceExample.class), wrong version: 48, expected 45
    /MI/work/localhost_8080%2FMDK_PERSISTENCE_QUERYJSP/_0002fjsp_0002fmenu_0002ejspmenu_jsp_0.java:15: Class persistenceexample2.PersistenceExample not found in import.
    import persistenceexample2.PersistenceExample;
           ^
    2 errors
    at org.apache.jasper.compiler.Compiler.compile()
    at org.apache.jasper.servlet.JspServlet.doLoadJSP()
    at org.apache.jasper.servlet.JasperLoader12.loadJSP()
    at org.apache.jasper.servlet.JspServlet.loadJSP()
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary()
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service()
    at org.apache.jasper.servlet.JspServlet.serviceJspFile()
    at org.apache.jasper.servlet.JspServlet.service()
    at javax.servlet.http.HttpServlet.service()
    at org.apache.tomcat.core.ServletWrapper.doService()
    at org.apache.tomcat.core.Handler.service()
    at org.apache.tomcat.core.ServletWrapper.service()
    at org.apache.tomcat.facade.RequestDispatcherImpl.doForward()
    at org.apache.tomcat.facade.RequestDispatcherImpl.forward()
    at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.dispatchRequest()
    at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGetNotThreadSafe()
    at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet()
    at javax.servlet.http.HttpServlet.service()
    at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service()
    at javax.servlet.http.HttpServlet.service()
    at org.apache.tomcat.core.ServletWrapper.doService()
    at org.apache.tomcat.core.Handler.service()
    at org.apache.tomcat.core.ServletWrapper.service()
    at org.apache.tomcat.core.ContextManager.internalService()
    at org.apache.tomcat.core.ContextManager.service()
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection()
    at org.apache.tomcat.service.TcpWorkerThread.runIt()
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run()
    at java.lang.Thread.run()
    But this has no sense!! since both Windows XP MI Client and PDA MI CLient are at the same version. So It run in my Desktop but not in my PDA.
    I saw the menu.jsp file
    They used the PersistenceExample class in two places:
    At the beginning of the JSP: <b><%@ page import="persistenceexample2.PersistenceExample" %></b>
    And here:
    String value = dataBean.getTableContent(i, j);
                if (i > 1) {
                     <b>value = PersistenceExample.encodeForHtml(value);</b>
                if (value.trim().length() < 1){
                     value = " ";
    From a point of view of Java, everything appear to be "OK"
    The other error is about a "version" should i configured the application to Version 45 in the nwa when i deploy the application?
    Best Regards,
    Erick Ilarraza

  • How can i run the example programme without hardware

    Hi,
         We are using NI-9233 for our Project. We would like to run the example programme, the NI-9233 getting started(host).vi ... I would like to ask that how can i run the Programme without Hardware.& How shall i get the input signal (simulating signal)?because we would like to test it while we are waiting for the hardware to be delivered . 
    thanks
    Best regards

    As Mike indicated , " you can use MAX to simulate some (not all) DAQmx devices. There's a NI-USB-9233 device that you can probably use. Open MAX, then expand "My System", the expand "Devices and Interfaces", then right-click on "NI-DAQmx Devices" and select "Create New NI-DAQmx Device -> NI-DAQmx Simulated Device". Select the device from the list. See the online help for MAX for further help.
    If you don't see "NI-DAQmx Devices" in MAX you need to install NI-DAQmx. You can download it from NI here. "
    hi,
         the link you gave me to download is "NI-DAQmx Devices" ... There is no software to download for Labview 8.2.1. So should i use 8.1 or 8.3 instead of 8.2.1 ? If not, can you tell me the CD no. that includes the "NI-DAQmx Devices" folder of Labview 8.2.1 version? Because we can get the cd from our school's component store. Thank you so much.
    Best Regards,
    Su

  • Running the heapTracker example

    Hi there
    I am trying to run the heapTracker example that is in the demo/jvmti directory, and I am having problems with it. When I try to run it with what it says in the readme file (java -Xbootclasspath/a:heapTracker.jar), I get the following error message:
    ERROR: JNI: Cannot find heapTracker with FindClass
    It seems like a small problem, but it is making me go crazy! Has anyone else ever encountered this before?
    Cheers
    Sajid

    Hi
    Yeah, I managed to get it to work� I move the jar file into the same directory as the dll�s�seems a bit strange, but it worked.
    A problem I am going to try and make some changes to the heaptracker, but I can not get it to compile, the errors I have listed below. It looks like I am missing a library or something, but I am not sure which. Has anyone else ever encountered a problem like this?
    error LNK2019: unresolved external symbol fatalerror referenced in function _checkJvmtiError     heapTracker.obj     
    error LNK2019: unresolved external symbol javacrw_demo@76 referenced in function _cbClassFileLoadHook@40     heapTracker.obj     
    error LNK2019: unresolved external symbol javacrw_demo_classname@12 referenced in function _cbClassFileLoadHook@40     heapTracker.obj     
    error LNK2019: unresolved external symbol stdoutmessage referenced in function parseagent_options     heapTracker.obj     
    error LNK2019: unresolved external symbol gettoken referenced in function parseagent_options     heapTracker.obj     
    Any help would be very much appreciated.
    Thank You
    Sajid

  • HT1349 I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???

    I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???

    Welcome to the Apple Community.
    Enter the details of her second account at system preferences> mail, contacts & calendars.

  • I can't get my Windows 7 pc to recognise my old LG VN251 phone via USB.   The verison software upgrade assistant runs and my phone is up to date.   I do get a window that pops up that says I can either run the bootstrap or look at the files on the phone,

    I can't get my Windows 7 pc to recognise my old LG VN251 phone via USB.   The verison software upgrade assistant runs and my phone is up to date.   I do get a window that pops up that says I can either run the bootstrap or look at the files on the phone, but I cannot see any photos.   Thoughts?

    We want to make sure we move your pictures to your computer schpee! Do you have a memory card on your phone? If your pictures are not on your http://vz.to/1OvJVey memory card we would want to move them. After you move them than try http://www.verizonwireless.com/support/knowledge-base-45147/ to move them to your computer. Keep us posted.   AmberF_VZW Follow us on Twitter @VZWSupport If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • How can I run the report for different input values at the same time?

    Reports version: Report Builder 6.0.8.13.1
    Oracle version: Oracle8i Enterprise Edition Release 8.1.7.0.0
    I want to run the same report for different input parameter values and spool each o/p to different file and ftp to a server. For this, as a first step, I am spooling different input values in to a file, reading those values through a loop and calling the report for that input values. Each report run/execution is taking 15 minutes. Total report execution is taking approximately 4 hours (assuming 16 different input values) to complete. So I have to wait 4 hours to see ALL outputs.
    I would like to run the report parallel for ALL the input values and I should be able to see the ALL outputs with in 15 or 16 minutes.
    In my shell script, I added & symbol at the end of the report call to start/run the job in the background. Due to this the control passed to the next step after the report call. At this place I have an ftp command to send the output file to a different server and it is giving error some thing like “o/p file is not available/created yet". This is due to the fact that report writer is NOT yet completely started/initiated or it is NOT completed the spooling.
    How can I run the report at the same time for all the input values and save the time?
    Thanks in advance.
    Kishore.

    Increase the number of server engines running right now it seems there is only one engine running ,increase it to 4 or 6
    and then atleast 4 or 6 reports will run simultaneously.
    For FTPing the output add to your sript to check whether it is locked and if not then only try to ftp .
    Also for more better functionality read the document (chapter 15 ) for 10g reports for its new fuinctionality.
    http://download.oracle.com/docs/cd/B14099_17/bi.1012/b14048/toc.htm
    Thanks
    Subodh

  • Can I run the currency translation for multiple years at the same time?

    Dear Friends,
    I set up currency translation on our BPC NW 7.0 system and it is working fine ONLY if I run it for any one year at a time. But if I select multiple years in the data package (FX Restatment) selection it only calculates for the first year in that selection.
    say if I run the data package for years: 2009, 2010, 2011, 2012, it only performs currency translation for the year 2009.
    Can I run the currency translation for multiple years at the same time ?
    Note: The year is determined from the YEAR property of the "Time" dimension
    appreciate any inputs,
    thanks

    You can run currency translation for multiple years.
    I think the problem it is actually related to how you are sending the parameter to currency translation script.
    Just review the script logic log and you will see with what parameters was called currency translation FXTrans.
    My expectation is that actually the script is called just with first year and that's the problem.
    Log of script logic you can find it into:
    C:\BPC|DATA\Webfolder\YourAppset\YourApplication\Private Publications\Users used to run logic\Temp
    Regards
    Sorin Radulescu

  • Am getting the following error while running the servlet example

    Hi,
    am getting the following error while running the servlet example
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
         edu.dao.StudentDao.insertStudent(StudentDao.java:18)
         edu.servlet.StudentServlet.doGet(StudentServlet.java:25)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
    Thanks
    //sreekanth

    Hi,
    the following code i have written in StudentDao
    package edu.dao;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    import org.apache.commons.dbutils.DbUtils;
    import edu.model.Student;
    import edu.util.DBUtil;
    public class StudentDao {
         public void insertStudent(Student student) {
              String stuQuery = "INSERT INTO STUDENT VALUES(?,?)";
              Connection connection = DBUtil.getConnection();
              PreparedStatement preparedStatement = null;
              try {
                   preparedStatement = connection.prepareStatement(stuQuery);
                   preparedStatement.setString(1,student.getStudentNo());
                   preparedStatement.setString(2, student.getStudentName());
                   preparedStatement.executeUpdate();
              } catch(SQLException e){
                   System.out.println("..Sql exception......");
              }finally {
                   DbUtils.closeQuietly(connection,preparedStatement,null);
    }

  • After upgrading to itunes 7.3.1.3 I can't run the backup to dics anymore.

    After upgradeing to itunes 7.3.1.3.1 I can not run the backup any more. Also the CD burning runs very slow.
    The DVD burner run ok with other software.
    After it checks for file to be backed up it kept ejecting the blank DVD and asking for a blank disc.
    I have even replaced the DVD drive with drive from another computer.I also reinstalled ITUNES once-- It ran as a repair during the install.

    I have used this same DVD Burner to backup my list from within iTunes before. I did this back in June just after I purchase 30 songs. I think I was running version 7.1 or 7.2 when the DVD backup worked. If not sopport then why does their diagnostics say DVD/CD Diagnostics. Even so I have the same problem on my other PC with a CD Burner. I think Apple support sound a little like Microsoft. I once had a problem with Windows NT and had to call MS support 5 times before they said their software had a defect and issued a patch.

  • I have a pdf file with the added sounds, so I can not run the sound in adobe reader XI on my tablet samsung galaxi pro (android)

    I have a pdf file with the added sounds, so I can not run the sound in adobe reader XI on my tablet samsung galaxi pro (android)

    Thanks for writing to us. Unfortunately, such advanced javascript support is currently not provided by Adobe Reader for Android.
    Thanks,
    Adobe Reader Team

  • Can't run the powerpoint slideshow on macbook air (mavericks). It just says powerpoint encountered an error and needs to quit. any help would be appreciated.

    I can't run the powerpoint slideshow on macbook air (mavericks). It just says powerpoint encountered an error and needs to quit, when I select the slideshow option. any help would be appreciated.

    You might want to consider starting a new discussion. Since this one is marked solved, less people are likely to look at it.
    You can include a link to this discussion.

  • Can I run the new Mac pro (6.1) with only one stick of ram?

    Will that cause any problems. And if not how much will the overall quality be affected. it won't be a permanent solution, but for a few weeks at least. So can it happen? Can I run the Mac pro 2013 with only one memory stick?

    Per this
    http://blog.macsales.com/22745-mix-and-match-more-memory-faster-mac-pro-2
    the 2013 Mac Pro is the only MP that can use a single stick of memory.

  • Help:How can I run the J2EE Client Application? Thanks

    Help:How can I run the J2EE Client Application that will access the remote J2EE1.4 application server which runs on another host computer?
    I have developped a stateles senterprise java bean name converter and deloyed it in the j2ee1.4 application server on the host machine A. The converterbean provides the remote home interface and remote interface. At the same time I have developped the j2ee application client named convertappclient. When I access the conveter bean at host computer A through the script 'appclient.bat' as 'appclient -client convertappclient.jar', the client can access the bean sucessfully. Now I want to access the bean through the script 'appclient.bat' at host computer B,what files should I copy from host computer A to host computer B;and what the command line should be like? Thanks!
    The following are the code of the enterprise java bean and it's home interface .
    The client code is also provided.
    The enterprise java bean:
    package converter;
    import java.rmi.RemoteException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import java.math.*;
    public class ConverterBean implements SessionBean {
    BigDecimal yenRate = new BigDecimal("121.6000");
    BigDecimal euroRate = new BigDecimal("0.0077");
    public ConverterBean() {
    public BigDecimal dollarToYen(BigDecimal dollars) {
    BigDecimal result = dollars.multiply(yenRate);
    return result.setScale(2, BigDecimal.ROUND_UP);
    public BigDecimal yenToEuro(BigDecimal yen) {
    BigDecimal result = yen.multiply(euroRate);
    return result.setScale(2, BigDecimal.ROUND_UP);
    public void ejbCreate() {
    public void ejbRemove() {
    public void ejbActivate() {
    public void ejbPassivate() {
    public void setSessionContext(SessionContext sc) {
    The bean's remote home interface :
    package converter;
    import java.rmi.RemoteException;
    import javax.ejb.CreateException;
    import javax.ejb.EJBHome;
    public interface ConverterHome extends EJBHome {
    Converter create() throws RemoteException, CreateException;
    The bean's remote interface:
    package converter;
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    import java.math.*;
    public interface Converter extends EJBObject {
    public BigDecimal dollarToYen(BigDecimal dollars) throws RemoteException;
    public BigDecimal yenToEuro(BigDecimal yen) throws RemoteException;
    The j2ee application client:
    import converter.Converter;
    import converter.ConverterHome;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import java.math.BigDecimal;
    public class ConverterClient {
    public static void main(String[] args) {
    try {
    Context initial = new InitialContext();
    System.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
                   System.setProperty("java.naming.provider.url","jnp://10.144.97.250:3700");
    Context myEnv = (Context) initial.lookup("java:comp/env");
    Object objref = myEnv.lookup("ejb/SimpleConverter");
    ConverterHome home =
    (ConverterHome) PortableRemoteObject.narrow(objref,
    ConverterHome.class);
    Converter currencyConverter = home.create();
    BigDecimal param = new BigDecimal("100.00");
    BigDecimal amount = currencyConverter.dollarToYen(param);
    System.out.println(amount);
    amount = currencyConverter.yenToEuro(param);
    System.out.println(amount);
    System.exit(0);
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();
    }

    Surprisingly I find an upsurge in the number of posts with this same problem. I recently found a post which gave a nice link for this. Follow the steps and it should help:
    http://docs.sun.com/source/819-0079/dgacc.html#wp1022105

  • Can I run the admin and managed servers as different users?

    in unix, is it possible to run my admin and manged servers as different users with
    7.1?

    As long as users are in admin group, there could be different users starting different
    servers.
    "Frank" <[email protected]> wrote:
    >
    "Erik Johnson" <[email protected]> wrote:
    Hi, Frank.
    Could you be a little more specific about what it is you want to do?
    Thanks.
    erikUh, I'm on unix, I have Weblogic 7.0 service pack4. I have 1 managed
    server and
    I have one admin server...Can I run the admin server as user 'hithere'
    and run
    the managed server as user, 'byethere'......
    "Frank" <[email protected]> wrote:
    in unix, is it possible to run my admin and manged servers as different
    users with
    7.1?

Maybe you are looking for