Doubt in bean-urgent

Hi to all,
i am using tomcat server.i have a simple jsp file which is using bean to display hello message.could anybody please tell me where to store bean class and jsp files since i am quite new to bean a detail description would be useful.
regards,
arvind

put your jsp in the directory for your context, for example:
<YOUR-PATH-TO-TOMCAT>/webapps/test
your classes would then go in:
<YOUR-PATH-TO_TOMCAT>/webapps/test/WEB-INF/classes/<YOUR-PACKAGE-NAME>

Similar Messages

  • Java bean - urgent help

    Hi,
    I am creating a java bean in a jsp file. I want to pass this bean to a java class in the same jsp file.
    eg:
    A1.jsp
    <jsp:useBean id="customer" class="com.Customer" scope="session"/>
    <jsp:setProperty name="customer" property="*"/>
    <% Teller teller=new Teller();
    int custid=teller.addCustomer("customer");
    %>
    Teller.java
    public class Teller
    public int addCustomer(*C*ustomer pcus)
              CustomerDb Cdb=new CustomerDb();
              return Cdb.addCustomer(pcus);
    CustomerDb.java
    public class CustomerDb{
    int customerid;
    public int addCustomer(*C*ustomer pcus){
         try{
    some code....
    When I try to compile Teller.java and CustomerDb.java it is giving error in the lines highlighted with bold.
    Please help in this.

    Problem Description
    You are getting
    FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-105100.
    When you run FileUpload utility
    Solution Description
    Follow the steps given below to fix and run the FileUpload Bean successfully.
    Make sure you have set your System Path similar to following, in the same order:
    System PATH:
    E:\Dev6i\bin;E:\Dev6i\forms60\java;E:\jdk1.2.2\bin;E:\jdk1.2.2\jre\bin;
    E:\jdk1.2.2\jre\bin\classic; %SystemRoot%\system32;%SystemRoot%;
    %SystemRoot%\System32\Wbem;C:\Program Files\Oracle\JInitiator1.1.8.16\bin;.
    CLASSPATH :
    E:\dev6i\forms60\java;E:\dev6i\forms60\java\UploadServer.jar;
    E:\jdk1.2.2\jre\bin\classic;E:\jdk1.2.2\jre\lib;E:\Dev6i\TOOLS\COMMON60\JAVA\IMPORTER.JAR;.
    Now, Open Form Builder ->Layout Editor->Program menu->Import Java Classes
    Check here to make sure that the FileUpload.class is displayed there under
    Oracle/forms/demos/uploadclient folder.
    Note that the java bean uses the implementation class
    file oracle.forms.demos.uploadclient.FileUploader
    So, you need to put the FileUploader.class in
    <ORACLE_HOME>\FORMS60\java\oracle\forms\demos\uploadclient\FileUploader.class
    or you need to change the oracle.forms.demos.uploadclient.FileUploader
    in implementation Class property matching to
    the class name where you have actually put it.
    You need to set archive_jini=f60all_jinit.jar,uploadclient.jar.sig in formsweb.cfg
    Open the fileupload.fmb, remove the attached Library.
    Open the fileupload.pll from File->Open.
    Recompile all the procedure and packages again.
    Save this fileupload.pll.
    Then reattach this library as a attached library to this form, recompile the form.
    This should solve the problem.
    If the path is set as explained above solves the PDEUI0001 problem of
    Java Importer also.
    Explanation
    Reason:
    This error occurs when the upload button is pressed in the File upload utility
    because the attached PLL library is not compiled properly.
    Please let me know if this helps.
    Regards
    Grant Ronald
    Forms Product Management

  • Doubt on bean tag  ---Spring Framework

    <bean id="tstbean">
    <property name="suffix" value=".html"/>
    <property name="templateUrls">
    <props>
    <prop key="/plan">${templates_tariffplan}</prop>
    </props>
    </bean>
    what is '${templates_tariffplan}'?
    how is this value getting replaced in 'flow-servlet.xml'

    Hi sudhakarbe,
    That's no very useful, but I think you can found something interesting in the following websites:
    http://struts.apache.org/2.x/docs/ognl.html
    Sorry, I'm not an expert.

  • Doubt with beans usage

    Hi, I created a class MyClass. MyClass has a member of type MyObject.
    MyObject has a member of type int and other of type ResultSet.
    In the jsp file is used MyClass with scope=page with <jsp:jsp:useBean tag. If I try to access the int member of MyObject, through MyClass, there is no problem, but if I attempt to access the ResultSet member of MyObject through MyClass, it throws me the NullPointerException (I think that happens because the ResultSet member is null).
    So, Java beans only "keep alive" the primitive and String members in the specified scope?

    I tested your code on a simpler case, and it appears that one cannot access a property from a JavaBean if that property is not a primitive type.
    Here's the simplified code:
    TestJavaBean is the main JavaBean that contains a primitive type and an object type Rose.
    package test10;
    public class TestJavaBean {
       Rose rose;
       String someString;
        public TestJavaBean() {
        public Rose getRose() {
            return rose;
        public void setRose(Rose rose) {
            this.rose = rose;
        public String getSomeString() {
            return someString;
        public void setSomeString(String someString) {
            this.someString = someString;
    }Here's the definition of the Rose JavaBean:
    package test10;
    public class Rose {
        int a;
        String b;
        public Rose() {
        public int getA() {
            return a;
        public void setA(int a) {
            this.a = a;
        public String getB() {
            return b;
        public void setB(String b) {
            this.b = b;
    }Here's the JSP code that tries to refer to the embeded Rose object
      <jsp:useBean id="testJavaBean" class="test10.TestJavaBean"/>
      <%--
      <jsp:useBean id="rose" class="test10.Rose"/>
      <jsp:setProperty name="rose" property="a" value="123"/>
      <jsp:setProperty name="rose" property="b" value="'Value of b'"/>
      <jsp:setProperty name="testJavaBean" property="rose" value="roseObject"/>
      --%>
      <jsp:setProperty name="testJavaBean" property="someString" value="'Hello World!'"/>
      <%--
      <jsp:getProperty name="testJavaBean" property="rose"/>
      --%>
      <jsp:getProperty name="testJavaBean" property="someString"/>Some part of the above code in the JSP is commented out on purpose. When that code is uncommented I get:
    org.apache.jasper.JasperException: jsp.error.beans.property.conversion
    This means that one cannot access an object property from a JavaBean?
    Or are JavaBeans not supposed to have object properties?
    Or is it a bad practice to try to access a Java object from a JavaBean even though it is defined as a property of the bean?

  • Doubt about bean pooling

    I have a stateful session bean.
    Suppose a max of 5 EJB objects can be processed at a time.
    Now if a 6th request comes for the EJB and all the 5 objects of EJB's are active(and cannot be passivated)...Then how is this 6th bean request handled.
    Please let me know the answer to this question.
    Thanks in advance
    Rahul

    I think the 6th request is kept in a queue maintained by the J2EE Container and as and when one of the EJBs is passivated, the 6th is handled. This is assuming that the 5 EJBs are stateful beans. If they are stateless beans, then there is no problem as you think.
    HTH

  • ERROR:ORA-01591: lock held by in-doubt distributed transaction (URGENT)

    hi
    i m having this error when trying to access one table in oracle 10g database
    ORA-01591: lock held by in-doubt distributed transaction 3.30.4119
    i restarted the server but of no use. can anyone help?

    ORA-01591: lock held by in-doubt distributed transaction string
    Cause: Trying to access resource that is locked by a dead two-phase commit transaction that is in prepared state.
    Action: DBA should query the pending_trans$ and related tables, and attempt to repair network connection(s) to coordinator and commit point. If timely repair is not possible, DBA should contact DBA at commit point if known or end user for correct outcome, or use heuristic default if given to issue a heuristic commit or abort command to finalize the local portion of the distributed transaction.
    go through
    drop locked table
    plz. to through below i hope it will help u.
    Re: ORA-1591 error
    Message was edited by:
    user52

  • Updating Entity Bean (URGENT)

    Hello,
    I have an entity bean created in my jdeveloper based on a table in my database, I have added two colomns to my table how do I make my entity synchronize(update) with the database table and generate GET and SET methods for the(new colomns)in the altered table.
    regards,
    Hussam Galal

    EJB spec does not allow update of the primary key. Any other update should be fine.
    Regards,
    Marina

  • FLASHBACK QUERY - Range based - Doubt - Help needed -URGENT

    Hi,
    I want to user the flashback query facility to capture the history of versions for a day (i.e) i want to get the data versions from morning 10 a.m to 6.pm.
    How to get the versions by using the time range for a day.
    I used the query as
    select a.eno,
              b.eno,
              a.ename,
              b.ename
    from emp a, emp as of timestamp
    to_timestamp('08-NOV-2006 06:32:21.999999 AM','DD-MON-RRRR HH:MI:SS.ff6 AM') b
    where a.eno=b.eno
    The above query will fetch only one versions for the specified timestamp.
    How could i implement the range based search through flashback query.
    Please suggest any methods to implement the same.
    Thanks in advance.

    You'll want to read the documentation about Oracle Flashback Version Query.<br><br>
    Regards,
    Rob.

  • Bean related

    Hi,
    I have 2 queries wrt to Bean usage in JSPDynPage.
    1. I am trying a very simple example which goes as follows:
    Dynpage:
    public void doProcessBeforeOutput() throws PageException {
          testbeanclass4 testBean4 = new testbeanclass4();
          ((IPortalComponentRequest)getRequest()).getServletRequest().setAttribute("testBean4", testBean4);     
          testBean4.setName("abcd");
          this.setJspName("jsp4.jsp");
    JSP:
    <%@ taglib uri= "tagLib" prefix="hbj" %>
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
    <jsp:useBean id="testBean4" scope="application" class="com.sap.jspdynpage.jsp4.testbeanclass4" />  
        <hbj:textView
         id="temp"
         >
         <%
         temp.setText(testBean4.getName());
         %>
        </hbj:textView>
       </hbj:form>
      </hbj:page>
    </hbj:content>
    Bean:
    package com.sap.jspdynpage.jsp4;
    import java.io.Serializable;
    public class testbeanclass4 implements Serializable {
         String name;
         public String getName(){
              return name;
         public void setName(String name){
              this.name = name;
    But i am unable to get what i want... i am getting blank field!!
    Any pointers to where am i going wrong..
    PortalApp.xml has been correctly framed!!
    2. What is the use of bean model in list boxes or tables? Does it act as an arrray of objects which can be populated into the table/listbox?
    I have read the help.sap.com doc on Bean Model, still some kind of clarity is missing.
    Points will be awarded!!
    Regards,
    Dev

    Hi,
    Sorry,I missed seeing your second query.
    Basically a listbox or a table is a complex component containing many elements, unlike a button or an input field.
    You might understand the mvc model.Now the view part is what you see on the page.The model part is your business logic/comes from the bean.You can basically create the by writing the business logic in a bean.This bean will populate the data in the table or listbox.But inorder to do that you will have to instantiate the model for the component.Then you will write methods that can be used to populate data or do specific actions or delegate events to methods/event handlers in the controllers.
    The following link should give you the idea.
    http://help.sap.com/saphelp_nw04s/helpdata/en/26/f79241e9129f09e10000000a155106/frameset.htm
    And this document will give you an example of using model,and clarify your many doubts on beans for htmlb.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cefed690-0201-0010-8480-9c5c6504b89e
    Regards,
    Harish
    (Please award points for helpful answers)
    Message was edited by: HARISH SUBRAMANIAN
    Message was edited by: HARISH SUBRAMANIAN
    Message was edited by: HARISH SUBRAMANIAN

  • Urgent!!!: Usage of connectionfactory with pre-configured... additional info

              In addition to my previous mail the exception seems to occur when:
              the message driven bean in the weblogic deployment desriptor uses:
              - Only <connection-factory-jndi-name> which points to a topic connection factory
              that has the client id field set. (So without the jms-client-id)
              - Both <connection-factory-jndi-name> which points to a topic connection factory
              that has the client id field set and <jms-client-id> which contains the same client
              id as the connection factory
              - Both <connection-factory-jndi-name> which points to a topic connection factory
              that DOES NOT have the client id field set and <jms-client-id> which DOES contain
              a client id.
              I don't know if this has something to do with it, but previously a different MDB
              had subscribed durably to the same topic by setting the client id in the deployment
              descriptor. The durable subscription was manually removed via the console and
              the server has been restarted afterwards, but the exception still occurs.
              --- example of non working dd ---
              --- connection factory has NOT been conigured with a client id ---
              <weblogic-ejb-jar>
              <weblogic-enterprise-bean>
              <ejb-name>EJBMDBComponent</ejb-name>
              <message-driven-descriptor>
              <destination-jndi-name>topic/MyTopic</destination-jndi-name>
              <connection-factory-jndi-name>jms.MyTopicConnectionFactory</connection-factory-jndi-name>
              <jms-client-id>blabla</jms-client-id>
              </message-driven-descriptor>
              <jndi-name>EJBMDBComponent</jndi-name>
              </weblogic-enterprise-bean>
              

    Urgent issues should go through customer support, this is an
              informal forum.
              The thing to understand is that only one
              active connection may use a given client-id at a time. Check
              JMS statistics to make sure there truly is no other
              connection using the client-id - you can get a list of
              active connections via the console.
              See my answer to your other recent post for more info.
              Tom, BEA
              Raymond Brandon wrote:
              > In addition to my previous mail the exception seems to occur when:
              >
              > the message driven bean in the weblogic deployment desriptor uses:
              > - Only <connection-factory-jndi-name> which points to a topic connection factory
              > that has the client id field set. (So without the jms-client-id)
              > - Both <connection-factory-jndi-name> which points to a topic connection factory
              > that has the client id field set and <jms-client-id> which contains the same client
              > id as the connection factory
              > - Both <connection-factory-jndi-name> which points to a topic connection factory
              > that DOES NOT have the client id field set and <jms-client-id> which DOES contain
              > a client id.
              >
              > I don't know if this has something to do with it, but previously a different MDB
              > had subscribed durably to the same topic by setting the client id in the deployment
              > descriptor. The durable subscription was manually removed via the console and
              > the server has been restarted afterwards, but the exception still occurs.
              >
              > --- example of non working dd ---
              > --- connection factory has NOT been conigured with a client id ---
              >
              > <weblogic-ejb-jar>
              > <weblogic-enterprise-bean>
              > <ejb-name>EJBMDBComponent</ejb-name>
              > <message-driven-descriptor>
              > <destination-jndi-name>topic/MyTopic</destination-jndi-name>
              > <connection-factory-jndi-name>jms.MyTopicConnectionFactory</connection-factory-jndi-name>
              > <jms-client-id>blabla</jms-client-id>
              > </message-driven-descriptor>
              > <jndi-name>EJBMDBComponent</jndi-name>
              > </weblogic-enterprise-bean>
              >
              

  • The performance of Passivate and Activate!?

    in the Stateful Session Bean, weblogic will PASSIVATE a bean instance into disk or db when the number of bean instances reach the max-beans-in-cache and ACTIVATE it when the client call it again.
    but i wonder that the performance of the operation ,can it be very expensive and affect the responsive time very much? if the effect is depended on the persistence fields?
    3ks a lot:)

    I think there is some confusion about the Activation and Passoivation phenomenons. I have sincere doubts that bean activation and passivation has anything to do with max-beans-in-cache figure. It just affects the idle time, after which the server passivates the bean.
    the main adea behind the bean passivation is to preserve the precious server memory during runtime. if the client is idle for certain time (which is totally decided by container), the state of bean instance is preserved and the bean instance is returned to the pool, where it can be used to serve some other clients. when the same client calls back again, the container randomly pickes up any available bean instance and initializes it's state with the previously saved state, so client feels that the same bean instance is serving him continuously.
    now the how the container responds to the max-beans-in-cache figure. the container tries it's best to manage all the clients request with the "max-beans-in-cache" bean instances. if the total requests : max-beans-in-cache ratio is very high, the session time out becomes lesser and lesser and vice versa. but if container finds it's really hard to serve all the requests with the supplied max-beans-in-cache, then it can temporarily generate some more bean instances to improve efficiency and those extra bean instances would be killed (not passivated) if no longer needed.
    this activation / passivation is to improve the performance and make it less expensive and not otherwise. Managing more no. of idle objects in the memory would be much more expensive than this operation.
    hope this helps,

  • Is "reuse" possible?

    Hi,
    I am new to EJB, so if I am saying something silly, please forgive me.
    I find that reuse of the beans is only possible within a single company, but not across companies, not to mention across industries. It is because within a single company, the environment is more or less the same, especially the database design, then different departments can use the beans as components in their application, thus reuse is possible. However for different companies, there are different environment, database and database design. It is really difficult to develop a bean to fit all the situations.
    Yes, it is true that developer can map the bean attributes to the database fields and make the beans workable, but it need much effort and not necessary success. The case can be solved easily for simple application, like a bean requires only to update a single table. However in real world application, things are usually more complicated. Different beans have to interact with each other to get the job done. So I really doubt the beans can really reuse.
    Of course I know "plug and play" bean is only a dream, but i really think reuse is not easy, of not possible. In fact I am doing my final year project which is to demontrate the reuse of the EJB. I find it difficult to prove it. Can any experts here explain about the reuse possibility of the EJB to me? I just want to have more ideas on EJB.
    Any opinions will be appreciated.

    For the majority of the IS and business community, simply getting SOME reuse internally would be greatness -- no need to worry about reuse of the same component at different companies. If you look at how even SMALL development shops still create redundant functionality in separate apps, you realize that reuse has to be PLANNED -- someone has to define those components that should be common to several apps and tell the whole development team that these are going to be developed ONCE and used by everyone. Sort of like a roadmap that can be posted on a wall to show everyone what common components are planned.
    In most shops, it is more difficult for new developers to get info on what's available than it is to just develop what you need on your own.
    And once you find a class or two you may be able to reuse, you realize that you have to include 20 other classes and packages to get this one to work in the context you want. The answer -- package your reusable functionality as EJBs and not as java classes embedded in a variety of packages.
    In our case, we have automated workflows as well as stand-alone applications that both have to access the same provisioning rules. By putting the rules into an EJB component, BOTH types of clients can simply send the "executeRuleX()" message to the component and get the result -- that is reuse. If we decide to perform that same rule check in the GUI, we simply call that same method from a JSP page.
    That said, it does not just HAPPEN -- that kind of reuse has to be DESIGNED. Someone has to identify the need for a certain piece of functionality and then develop and deploy it, and then publicize to the whole development team that this ONE component must be used whenever anyone in the business needs to execute that business rule. Not many companies think that hard on what's needed and then consciously document an application architecture that shows these components on the roadmap.
    I could go on and on, but you get the idea.
    Dave

  • Please help me to run this CMP BEAN, I need help urgently, I am running out of time :(

    Hi,
    I am facing this problem, Please help me, I am attaching the source files
    also along with the mail. This is a small CMP EJB application, I am using
    IAS SP2 on NT server with Oracle 8. I highly appreciate if someone can send
    me the working copy of the same. I need these urgent. I am porting all my
    beans from bea weblogic to Iplanet. Please help me dudes.
    Err.........
    [06/Sep/2001 13:41:29:7] error: EBFP-marshal_internal: internal exception
    caught
    in kcp skeleton, exception = java.lang.NoSuchMethodError
    [06/Sep/2001 13:41:29:7] error: Exception Stack Trace:
    java.lang.NoSuchMethodError
    at
    com.se.sales.customer.ejb_kcp_skel_CompanyHome.create__com_se_sales_c
    ustomer_Company__java_lang_Integer__indir_wstr__215617959(ejb_kcp_skel_Compa
    nyHo
    me.java:205)
    at com.kivasoft.ebfp.FPRequest.invokenative(Native Method)
    at com.kivasoft.ebfp.FPRequest.invoke(Unknown Source)
    at
    com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
    mpanyHome.java:297)
    at
    com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
    e.java:89)
    at
    com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
    wn Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    Caught an exception.
    java.rmi.RemoteException: SystemException: exid=UNKNOWN
    at com.kivasoft.eb.EBExceptionUtility.idToSystem(Unknown Source)
    at com.kivasoft.ebfp.FPUtility.replyToException(Unknown Source)
    at
    com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
    mpanyHome.java:324)
    at
    com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
    e.java:89)
    at
    com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
    wn Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    Thanks in advance
    Shravan
    [Attachment iplanet_app.jar, see below]
    [Attachment iplanet_src.jar, see below]

    One reason that I sometimes get 'NoSuchMethodError' is when I make a change to a
    java class that is imported into another java class. When I go to run the
    importing class, it will throw a 'NoSuchMethodError' on any methods that I've
    changed in the imported class. The solution is to recompile the importing class
    with the changed classes in the classpath.
    shravan wrote:
    Hi,
    I am facing this problem, Please help me, I am attaching the source files
    also along with the mail. This is a small CMP EJB application, I am using
    IAS SP2 on NT server with Oracle 8. I highly appreciate if someone can send
    me the working copy of the same. I need these urgent. I am porting all my
    beans from bea weblogic to Iplanet. Please help me dudes.
    Err.........
    [06/Sep/2001 13:41:29:7] error: EBFP-marshal_internal: internal exception
    caught
    in kcp skeleton, exception = java.lang.NoSuchMethodError
    [06/Sep/2001 13:41:29:7] error: Exception Stack Trace:
    java.lang.NoSuchMethodError
    at
    com.se.sales.customer.ejb_kcp_skel_CompanyHome.create__com_se_sales_c
    ustomer_Company__java_lang_Integer__indir_wstr__215617959(ejb_kcp_skel_Compa
    nyHo
    me.java:205)
    at com.kivasoft.ebfp.FPRequest.invokenative(Native Method)
    at com.kivasoft.ebfp.FPRequest.invoke(Unknown Source)
    at
    com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
    mpanyHome.java:297)
    at
    com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
    e.java:89)
    at
    com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
    wn Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    Caught an exception.
    java.rmi.RemoteException: SystemException: exid=UNKNOWN
    at com.kivasoft.eb.EBExceptionUtility.idToSystem(Unknown Source)
    at com.kivasoft.ebfp.FPUtility.replyToException(Unknown Source)
    at
    com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
    mpanyHome.java:324)
    at
    com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
    e.java:89)
    at
    com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
    wn Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    Thanks in advance
    Shravan
    Name: iplanet_app.jar
    iplanet_app.jar Type: Java Archive (application/java-archive)
    Encoding: x-uuencode
    Name: iplanet_src.jar
    iplanet_src.jar Type: Java Archive (application/java-archive)
    Encoding: x-uuencode

  • Urgent: Doubt in coding a logic

    Hi Experts,
    I have a doubt in coding a logic . The bussiness requirement is that i have to capture a string of alphabets and check for particular alphabet in particular position and then process the rest of the logic.
    the logic is given below , can anyone suggest me coding for this logic .Its very urgent . points will be rewarded.
    Logic:
    If 1st letter is D then
        If 3rd letter of DPVERSION is:
            A --> Asia (like DPA0202)
            C --> EMEA (like DPC0111)
            L --> Latin America LA (like DPL0502)
            N --> North America NA (like DPN0408)
            W --> EMEA (like DPW0207)
            D then
                if 4th letter is:
                    A --> Asia (no example yet)
                    C --> EMEA (no example yet)
                    L --> Latin America LA (no example yet)
                    N --> North America NA (like DPDN01TH)
                    W --> EMEA (like DPDW09TH)
                End If
          End If
    Else if 1st letter is X then:
         If 2nd letter of DPVERSION is:
            A --> Asia (no example yet)
            C --> EMEA (XEHC_RTF)
            L --> Latin America LA (no example yet)
            N --> North America NA (XNFAB_RTF)
            W --> EMEA (no example yet)
        End If
    End If
    Thanks in advance
    Kumaran

    Hi, I think you can adopt offset logic.
    assign character value to a variable  like string+2(3) = char
    then use case statement
    case char
    when 'A'
    write ASIA
    when--
    End case.
    Like this u can approach . 
    Hope this helps
    Regards
    Pavan

  • Urgent: Can't lookup entity bean

    Dear all,
    I define a business process in workflow engine, which invoke a java class to get
    DB data through CMP entity bean. The entity bean was packed in to a ear and was
    workable/callable within the same ear.
    However, when the workflow engine can't invoke the entity bean, the workflow engine
    always throw exception as following.
         javax.naming.LinkException: . Root exception is javax.naming.NameNotFoundException:
    Unable to resolve 'app/ejb/ConsignmentEntityBean.jar#Consignments/local-home'
    Resolved: 'app/ejb' Unresolved:'ConsignmentEntityBean.jar#Consignments' ; remaining
    name 'ConsignmentEntityBean.jar#Consignments/local-home'
    I think the problem may occur in deployment/configuration. Since the problem is
    very urgent, anyone can help me? To all developers, How do you package/deploy
    Entity Bean in Integration Server?
    Thx,
    Philip

    I solved this.
    Since I was testing the action code only, I didn't define a navigation entry corresponding to the action string returned for this button:
    <h:commandButton value="Add" style="height:21px; width:51px;font-size:8pt; font-color: black;" action="#{resourceBean.addAction}">
    </h:commandButton>After I added a nav definition, it worked. I don't know why at this point. I suspect a key step in the lifecycle was pre-empted...someone else can probably explain why. If I get a chance to research it after I'm done with my project, I'll update this post.
    Thanks.
    -L

Maybe you are looking for