How to deploy session bean.

I want to deploy Analyzer.jar on weblogic server,but there is an error information:
[J2EE:160043]Missing deployment descriptor "META-INF/ejb-jar.xml" at "D:\bea\user_projects\domains\test\applications\ejb\Analyzer.jar",in
fact there is ejb-jar.xml in Analyzer.jar.
please tell me the reason and how to configure ,thank you.
[Analyzer.jar]

Hi, I am having the same problem and was wondering if you were able to solve it
and how you did.
Thanks,
Luis
"Way" <[email protected]> wrote:
>
>
>
I want to deploy Analyzer.jar on weblogic server,but there is an error
information:
[J2EE:160043]Missing deployment descriptor "META-INF/ejb-jar.xml" at
"D:\bea\user_projects\domains\test\applications\ejb\Analyzer.jar",in
fact there is ejb-jar.xml in Analyzer.jar.
please tell me the reason and how to configure ,thank you.

Similar Messages

  • Deploying session beans with weblogic 5.1 in NT

    Hello ,
    I have a problem with deploying session beans in weblogic 5.0. I have
    written the code and compiled it. My Compilation is fine. Cud any one give
    me a step by step of how I should deploy my bean with weblogic 5.0 on
    windows NT.
    Raj Urs

    Hello ,
    I have a problem with deploying session beans in weblogic 5.0. I have
    written the code and compiled it. My Compilation is fine. Cud any one give
    me a step by step of how I should deploy my bean with weblogic 5.0 on
    windows NT.
    Raj Urs

  • How to deploy entity bean in weblogic

    Hi frnds,
    can anybody tell me that
    how to deploy entity bean in weblogic8.1
    i want to know step by step process.
    bcoz i am totally new for weblogic
    thanks & regards

    WebLogic 8.1 docs.

  • How does a session bean find entity beans in EJB 3.0

    Hi,
    I am new to J2EE. I have difficulties finding out how a session bean locates the entity-manager for a group of entity beans. I understand that the entitymanager in the session bean is injected using the PersistenceContext annotation, but I dont see how it locates the intended EntityManager (which could be on another server).
    I realize this is probably trivial, but can any of you guys tell me what I am missing?
    Best Regards
    Thomas

    Hi Thomas,
    Good question. Each @PersistenceContext annotation is associated with a single Persistence Unit. A Persistence Unit is defined either at the module level or at the .ear level. Each persistence unit has a name associated with it. The unitName() attribute is used to map @PersistenceContext to the associated PersistenceUnit. Since the most common case is that an application will only define one persistence unit, the spec requires that if the unitName() is not specified, it will automatically map to that single persistence unit.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Exception while accessing deployed session bean

    Hi,
    I am new to IPlanet AS 6.0 . I wrote a simple stateless session bean in Forte EE v 3.0 environment. The compilation and deployment went fine. When I try to use my bean through a client program using IIOP then it throws the following exception in kjs:
    javax.naming.NameNotFoundException: EjbContext: exception on getHome(), com.netscape.server.eb.UncheckedException: unchecked exception thrown by impl com.kivasoft.eb.boot.EBBootstrapImpl@71dc3d; nested exception is:
    java.lang.NullPointerException
    at com.netscape.server.ejb.EjbContext.createHomeRef(Unknown Source)
    at com.netscape.server.ejb.EjbContext.getHomeRef(Unknown Source)
    at com.netscape.server.ejb.EjbContext.lookup(Unknown Source)
    at com.netscape.server.jndi.RootContext.lookup(Unknown Source)
    at com.netscape.server.jndi.RootContext.lookup(Unknown Source)
    at javax.naming.InitialContext.lookup(InitialContext. java:357)
    at com.netscape.ejb.CorbaHomeFactoryImpl.ConstructEJBHome(Unknown Source
    at com.netscape.CosNaming.NamingContextImpl.resolve(Unknown Source)
    at org.omg.CosNaming._NamingContextImplBase.invoke(_N amingContextImplBas
    e.java:233)
    at com.sun.corba.ee.internal.corba.ServerDelegate.dis patch(ServerDelegat
    e.java:236)
    at com.sun.corba.ee.internal.iiop.ORB.process(ORB.jav a:227)
    at com.sun.corba.ee.internal.iiop.CachedWorkerThread. doWork(IIOPConnecti
    on.java:262)
    at com.sun.corba.ee.internal.iiop.CachedWorkerThread. run(IIOPConnection.
    java:230)
    My client program is:
    import java.util.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    public class MybeanClient {
    public static void main(String[] args) {
    try {
    Properties env = new Properties();
    env.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
    env.put("java.naming.provider.url", "iiop://localhost:9010");
    Context initial = new InitialContext(env);
    Object objref = initial.lookup("ejb/Mybean");
    MybeanHome home =(MybeanHome)PortableRemoteObject.narrow(objref,My beanHome.class);
    Mybean bean = home.create();
    String result = bean.test();
    System.out.println(result);
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();
    The j2eeguide.converter sample bundled with IPlanet works fine with the above code.
    The only difference is that the converter sample was deployed by the IAS deployment tool.
    Mybean was deployed by the Forte.
    What is the problem?
    Any help would be highly appreciated.

    1. Check that iiop is enabled in ias-ejb-jar.xml
    2. Check your naming in the xml files
    3. Check what has been deployed (filesystem & kregedit)
    4. Try it with the full qualified name ejb/'ejbfilename'/<ejb-name>

  • How to call session bean's method in JSP

    Hi All,
    I am working on a JSF web application by using sun studio creator.
    The first page have a button, the onClick javascript is as following, which bring up a alert box showing user login name.
    In JSP file, how can I call session bean's setUserName(String name) function (which I would like to store this UserName). So the following pages can use this information.
    If I can not do it this way, is there any other way to do it?
    Thanks in advance.
    var net = new ActiveXObject("wscript.network");
    alert(net.UserName);
    In managed-beans.xml
    <managed-bean>
    <managed-bean-name>BasicInfo</managed-bean-name>
    <managed-bean-class>treepractice.BasicInfo</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>

    You can find more information/details/examples at their own website.
    On the other hand, do you realize that that ActiveX stuff is IE proprietary? And that it is a browser configuration whether to allow them or not? And that this configuration is in IE7 defaulted to an (annoying) warning box before execution which is just bad for the user experience?
    With other words, forget that ActiveX garbage. Alternatives are Applets (not recommended) or Java Web Start (recommended).

  • How to delete session bean data

    Hi,
    My requirement is to default the data while selected in LOV. so i have written written custom code for that using valueChangeListener.
    public void getCustomerDetails(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    try{
    String cardNumber= valueChangeEvent.getNewValue().toString();
    System.out.println("card no is: "+cardNumber);
    String cardNo="000601029500"+cardNumber;
    session.setCardNo(cardNo);
    HashMap map=getAm().getCustomerDetails1(cardNumber);
    Set set=map.entrySet();
    Iterator i = set.iterator();
    while(i.hasNext()){
    i.next();
    if(map.get("customer_name")!=null){
    customer_name=map.get("customer_name").toString();
    session.setCustName(customer_name);
    //System.out.println("customer_name: "+customer_name);
    else{
    customer_name=null;
    In the page:
    <af:inputText value="#{SCIISessionBean.merchantName}"
    label="#{avtransuiBundle.MERCHANT_NAME}"
    required="#{bindings.MerchantName.hints.mandatory}"
    columns="#{bindings.MerchantName.hints.displayWidth}"
    maximumLength="#{bindings.MerchantName.hints.precision}"
    shortDesc="#{bindings.MerchantName.hints.tooltip}"
    partialTriggers="ilov1"
    binding="#{backingBeanScope.backing_com_wfs_avtranz_newAvtranzSubmit.it1}"
    id="it1" readOnly="true">
    <f:validator binding="#{bindings.MerchantName.validator}"/>
    </af:inputText>
    But here my issues is because of putting the value in Session bean it is not clearing when i come to next page to this page. the values are remaining same. i try with request scope and page flow scope because of these when i select any button on or any popup on the page, it got refresh and value is disappering on the page. that's why i have taken session but still session values i am able to see.
    can any one tell me how can i make this values as null;

    User, you must understand that many of us DO read posts, and do answer questions if we can. But this is NOT our primary job - we do it as a service to our fellow users WHEN WE HAVE TIME. Also, none of us knows everything there is to know - it may be a few days before one of the people who can answer YOUR question will see it and answer. Finally, there are some questions for which no-one will know the answer. Keep working, and maybe you will learn something that YOU can tell US.
    Okay, now that that is off my chest:
    Values in a session bean start with whatever you initialize them to - either when the property is defined, or in the constructor for the bean. A valueChangeListener can't change the value - this is executed when the USER changes the value. It could be used to drive a change to a different value, but make sure that you set the component with a valueChangeListener to autosubmit, and use partial page rendering to re-render the changed component.
    If you need to clear data from a session bean, you will need to write a method to do it. You could write it as an actionListener, and have the user press a Clear button, or as a helper method that gets called as part of some other action. I think that you can also arrange to call it before a page renders, but I haven't had occasion to do that, so I've never researched how to do it.
    P.S. When I re-read your post, and tried to understand better what you really want to do, I suddenly realized that you have a classic use-case of a cascading list of values. In other words, the contents of one list of values changes depending on what is selected in another list. If you will look through the tutorials on the main ADF page, I think you will find at least one example of how to do this.

  • Deploying session bean on sun java application server

    Hi,
    I'm using sun java system application server 8.2.
    I just want to deploy a session bean (stateless) on it.
    Please tell me the procedure.
    Thanks

    problem is coming in Resource Type and Factory class when configuring JNDI.
    what value I should give for the Resource Type and Factory class?
    Please tell me.
    Thanks

  • How to get session bean values in voimpl classes

    Hi Experts,
    To access session values in voimpl the below lines works fine.
    Map sessionScope = ADFContext.getCurrent().getSessionScope();
    String userName = (String)sessionScope.get("userName");
    Can any one please help me in getting the values from session bean in voimpl.
    Regards
    Gayaz

    Hi Jabr,
    Please have a look into this post. This is for implementing ADF search and pass bind variables while performing search.
    how to pass bind parameters while performing search
    Regards
    Gayaz

  • How to deploy of bean.

    How we will deploy java beans on JDevloper
    with the help of awt package without using swing it is possible or not.

    How we will deploy java beans on JDevloper
    with the help of awt package without using swing it is possible or not.

  • The client is a pure-Java client, how to invoke session bean in oc4j server

    I WOULD LIKE TO INVOKE MY SESSION BEAN FROM MY STRUT WEB PROJECT AS A PURE JAVA CLIENT . I SETUP THE JNDI INITIAL CONTEXT PROPERTY BUT I HAVE NO IDEA TO WHERE I SHALL PUT MY application-client.xml and orion-application-client.xml. MY APPLICATION THROW EXCEPTION
    NamingException: StoreEJB not found
    IF YOU ANY EXAMPLE PLEASE SEND ME
    THIS IS MY CLIENT PROGRAME
    package ejbs;
    import java.io.*;
    import javax.ejb.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.naming.*;
    import javax.rmi.*;
    import java.rmi.*;
    import java.util.*;
    public class StrutInt {
         * @param args
         public static void main(String[] args) {
              //System.out.print("The application Checkup");
              try
                   Hashtable env = new Hashtable();
                   env.put (Context.INITIAL_CONTEXT_FACTORY,
                   "oracle.j2ee.naming.ApplicationClientInitialContextFactory");
                   env.put (Context.SECURITY_PRINCIPAL, "oc4jadmin");
                   env.put (Context.SECURITY_CREDENTIALS, "admin");
                   //env.put (Context.PROVIDER_URL, "http://localhost:8888");
                   env.put (Context.PROVIDER_URL, "ormi://localhost:23791/EjbIntegrationEAR");
                   env.put ("dedicated.rmicontext", "true"); // for 9.0.2.1 and above
                   Context context = new InitialContext (env);
                   System.out.println("work up to this");
              Object homeObject =
    context.lookup("StoreEJB");
              System.out.print("Hi Integration");
         StoreHome storeHome = (StoreHome) PortableRemoteObject
                   .narrow(homeObject, StoreHome.class);
         Store exa= storeHome.create();
              String s =exa.foo("The foul guy");
              System.out.print(s);
         catch(NamingException e1) {
         System.err.println("NamingException: " + e1.getMessage());
         catch(RemoteException e2) {
         System.err.println("RemoteException: " + e2.getMessage());
         catch(CreateException e3) {
         System.err.println("FinderException: " + e3.getMessage());
         catch(Exception e4) {
         System.err.println("FinderException: " + e4.getMessage());
         }

    Create the object of InitialContest class. Then pass in hashTable put WLContextFactory.
    then lookup to the sessionJNDI. then call the create method u will get the remote object, from the remote object u can call to the business method

  • Help using simple deployed session bean

    hi,
    I have deployed a hello world like session stateless bean
    The deployment worked just fine, but i don't understand where is the stub generated by the deployment .
    How do i use the bean into an application client?
    i have tried to create an application client i use the bean's classes but when i create the initial context the following error occures:
    java.lang.InstantiationException: No location specified and no suitable instance of the type bla for ejb ref bla.
    Please help.

    Hi ,
    Actually I can go to that directory and I can see the lots of examples.
    But there are not so good detailed information to run those
    examples.
    If somebody knows how to run those examples, Could you please
    send me an email ?
    My email is [email protected]
    Thanks,
    Kwanyoung.

  • How to deploy java bean in Oracle Applications?

    There is a Oracle Applications Forms FNDMNMNU.fmb which calls a Java Bean to show TreeView.
    The Bean Area uses the implementation class of AppletAdapter.class. Do you know that we have to use the same AppletAdapter class so that we can connect to Oracle database?
    In the form of FNDMNMNU.fmb, the java bean is called like this.
    fndaplt.applet_init('FND_MENUS.TREE_VIEWER',
    'FS',
    'oracle.apps.fnd.functionSecurity.client.FunctionTreeViewer',
    l_list_id);
    Do you know what 'FS' means ?
    Thank you very much in advance!
    It is my first time to use Java Bean in Oracle Applications!

    HI srini ,
    my application version 12.0.4 and database is 10.2.0.4
    and i want to restrict the No of users
    exp i have have 500 users and i want restrict to 100 only
    how can i do that please explain
    Thanks,
    Sudheer

  • How to use session bean connect to socket server?

    Can any body provice an example for this?
    Thank you.

    Hi,
    You have to catpture the "set-cookie" header from the response which you got in the first request. The same "set-cookie" value has to be set in the subsequent requests' header. Please see the below code snippet to collect the "set-cookie" and set the cookie in the subsequest requests.
    //how to Collect the "set-cookie" from the response
    if (urlConnection != null)
    for (int i = 1;(key = urlConnection.getHeaderFieldKey(i)) != null; i++)
    System.out.println(urlConnection1.getHeaderFieldKey(i) + ": " + urlConnection.getHeaderField(key));
    if (key.equalsIgnoreCase("set-cookie"))
    String cookiValue = urlConnection1.getHeaderField(key);
    //How to set the cookie value in the subsequent requests
    urlConnection2.setRequestProperty("Cookie", cookiValue);
    Good luck.

  • How to deploy a bean

    I have two ejb's in the ear file that has been deployed. Now i want to include one more ejb in my application. Can I add that directly in the applications folder or should i generate the .ear file again.?

    EAR file is the way to deploy applications.
    Check out the documentation - User's guide at
    http://otn.oracle.com/tech/java/oc4j/content.html

Maybe you are looking for

  • Change in LDP PNP Selection Screen

    Dear Friends, As you all are aware that for LDP PNP we have a selection screen. In the selection screen, Personnel Number field has to be changed as Employee Number. Can some one tell how we can acieve this? Thanks Somu

  • I locked my N79 files, now I can't find them on ph...

    I used Sonica to lock my Images, My Videos, and Videos files on my N79. Then instead of me being able to open them but be asked for a Password, I couldn't find them at all. Then I unlocked them and they were back (I think). Then I got this Java locke

  • Table Control - Converting a Column to Check Box

    Hi, I need to have Check Boxs for 3 Columns in the Table Control of a Module Pool Programming Screen. Can you please suggest me how to do it? Appreciate Your Help. Thanks, Kannna

  • Problem in configuring SAML

    Hi All, I installed SAP NetWeaver Application Server, Release Java EE 5 Engine(Trail and Preview version) in Windows Server 2003 Enterpise Edition. To configure SSO between Netweaver and a product from a third party vendor, I am required to configure

  • FOREIGN KEY CONSTRAINT 의 MASTER TABLE NAME 의 확인

    제품 : ORACLE SERVER 작성날짜 : 1995-11-02 FOREIGN KEY CONSTRAINT 의 MASTER TABLE NAME 의 확인 =================================================== 다음은 FOREIGN KEY CONSTRAINT 이름으로 REFERENCE 하는 TABLE (MASTER TABLE)을 찾는 SQL SCRIPT이다. col Primary_key_table format