Ejb..help

below is ther error that is fired:
java.rmi.RemoteException: EJB Exception: ; nested exception is:
     javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: javax.ejb.TransactionRolledbackLocalException: EJB Exception:; nested exception is: javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: java.lang.NullPointerException
     at weblogic.ejb20.internal.EJBRuntimeUtils.throwRemoteException(EJBRuntimeUtils.java:103)-- Error : In companyRoleAddAction.doRoleAdd():
     at weblogic.ejb20.internal.BaseEJBHome.handleSystemException(BaseEJBHome.java:304)
     at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:253)
     at com.anlageit.payroll.company.ejb.CompanyModel_wvth7s_EOImpl.doRoleAdd(CompanyModel_wvth7s_EOImpl.java:160)
     at com.anlageit.payroll.company.ejb.CompanyModel_wvth7s_EOImpl_WLSkel.invoke(Unknown Source)
     at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:164)
     at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:125)
     at com.anlageit.payroll.company.ejb.CompanyModel_wvth7s_EOImpl_810_WLStub.doRoleAdd(Unknown Source)
     at com.anlageit.payroll.company.web.action.CompanyRoleAddAction.doRoleAdd(CompanyRoleAddAction.java:87)
     at com.anlageit.payroll.company.web.action.CompanyRoleAddAction.execute(CompanyRoleAddAction.java:42)
     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6291)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
     at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3575)
     at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2573)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
     at java.lang.Thread.startThreadFromVM(Unknown Source)
Caused by: javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: javax.ejb.TransactionRolledbackLocalException: EJB Exception:; nested exception is: javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: java.lang.NullPointerException
     at weblogic.ejb20.internal.EJBRuntimeUtils.throwTransactionRolledbackLocal(EJBRuntimeUtils.java:248)
     at weblogic.ejb20.internal.BaseEJBLocalHome.handleSystemException(BaseEJBLocalHome.java:242)
     at weblogic.ejb20.internal.BaseEJBLocalObject.postInvoke(BaseEJBLocalObject.java:327)
     at com.anlageit.payroll.company.ejb.CompanyRoleManagementBean_qy24sg_ELOImpl.doRoleAdd(CompanyRoleManagementBean_qy24sg_ELOImpl.java:111)
     at com.anlageit.payroll.company.ejb.CompanyModelBean.doRoleAdd(CompanyModelBean.java:268)
     at com.anlageit.payroll.company.ejb.CompanyModel_wvth7s_EOImpl.doRoleAdd(CompanyModel_wvth7s_EOImpl.java:150)
     ... 23 more
Jan 18, 2005 3:54:39 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.bean.LocalStrings', returnNull=true
-- Exception: Rolename Already Exists
<Jan 18, 2005 3:54:39 PM GMT+05:30> <Error> <HTTP> <BEA-101017> <[ServletContext(id=5331,name=PayrollCompanyWebModule,context-path=/PayrollCompanyWebModule)] Root cause of ServletException.
javax.servlet.jsp.JspException: Cannot find bean message in any scope
     at org.apache.struts.util.RequestUtils.lookup(Ljavax.servlet.jsp.PageContext;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)Ljava.lang.Object;(RequestUtils.java:938)
     at org.apache.struts.taglib.bean.WriteTag.doStartTag()I(WriteTag.java:286)
     at jsp_servlet._jsp.__roleaddform._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(__roleaddform.java:272)
     at weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(JspBase.java:33)
     at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:1053)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:387)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:305)
     at weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run()Ljava.lang.Object;(RequestDispatcherImpl.java:342)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:317)
     at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:97)
     at weblogic.servlet.internal.RequestDispatcherImpl.forward(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(RequestDispatcherImpl.java:246)
     at org.apache.struts.action.RequestProcessor.doForward(Ljava.lang.String;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(RequestProcessor.java:1069)
     at org.apache.struts.tiles.TilesRequestProcessor.doForward(Ljava.lang.String;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(TilesRequestProcessor.java:274)
     at org.apache.struts.action.RequestProcessor.processForwardConfig(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Lorg.apache.struts.config.ForwardConfig;)V(RequestProcessor.java:455)
     at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Lorg.apache.struts.config.ForwardConfig;)V(TilesRequestProcessor.java:320)
     at org.apache.struts.action.RequestProcessor.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(RequestProcessor.java:279)
     at org.apache.struts.action.ActionServlet.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ActionServlet.java:1482)
     at org.apache.struts.action.ActionServlet.doPost(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ActionServlet.java:525)
     at javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853)
     at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:1053)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:387)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:305)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6291)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:317)
     at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:97)
     at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3575)
     at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2573)
     at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:178)
     at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:151)
     at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
>

java.lang.NullPointerException
at
weblogic.ejb20.internal.EJBRuntimeUtils.throwRemoteExc
eption(EJBRuntimeUtils.java:103)-- Error : In
companyRoleAddAction.doRoleAdd():Why don't you check the line where this piece of code is generating null pointer :)
Regards,
$ Carol.

Similar Messages

  • Obtaining principal in EJB helper classes

    I have a pretty typical EJB setup where the actual EJBs delegate a lot of work
    off to helper classes which are simple java classes. Some of these helpers need
    access to the principal currently executing on this container thread. Currently,
    I am passing the principal as a parameter in every method signature on the helpers
    which need it. But as you can probably guess that approach is quickly becoming
    unweildy.
    Ideally, what I would like to do is to have access to the principal associated
    with the currently executing thread. I can mimic this by setting thread-local
    variables in the EJB prior to calling helpers. But I was wondering (ok, hoping)
    that there was already a way to access this information (either through weblogic
    classes or MBeans). At this point, I dont even care if it is not portable.
    P.S., I use WL6.1
    Thank you in advance,
    Steve

    >
    The helper methods do database querries etc and return results that the EJB sends onwards to clients. If these methods
    are NOT synchronized (and the ejbs share the static class) won't it cause concurrency errors? I think most of our methods are not
    synchronized (and it doesn't seem to cause any concurrency errors so far... though the system have not beeen stressed test that much,
    and concurrency bugs tends to pop up later and randomly :P).
    >
    No, if you dont have any static data variables in the Java classes, static method as such will not cause concurrency errors, and the methods should not be synchronized.
    If you have any synchronized methods and they take a while to execute, that could become a bottleneck in itself, because different threads waiting for each other,
    so make sure you dont have any synchronized methods where it is not explicitly needed.
    Think of a static method (without static data in the class being manipulated) as a plain function in another programming-language.
    >
    We have some scaleability problems with the EJBs... It seems as if they do not run concurrently. If we do a stress test with several threads calling the EJBs their response time increases by a too large factor to feel comfortable...
    >
    Apparently, you do have a some scaling/concurrency problem, which could have many causes -- transaction locking and clashes in the database, poorly configured database, network congestion, problems in the EJB architecture, etc -- can be many reasons...
    The general idea to debug, is first to find out exactly what calls in your code that take longest time to execute (profiling, logging, System.out.println's are useful) when you put parallel load on your system -- rather than just seeing "the whole application seems slow" -- from there you can move on, "divide&conquer" the problem, etc...

  • EJB Helper class not created

    Dear Sirs,
    I am following the example in the "Enterprise Java Beans manual" to use Jdeveloper to create the Hello World EJB described in appendix B.
    My EJB is deployed successfully but when I run the client I get "ClassNotFoundException: hello.HelloHomeHelper".
    I imagine that the computer is trying to load the HelloHomeHelper.narrow method to properly case the call to the create method of my EJB. But such class only gets created when you use the wizard "Generate CORBA Server classes". But I cannot do that since I am not extending org.omg.CORBA.Object object. Rather the EJB I am implementing implements the "SessionBean".
    So why I am having CORBA-related problems with EJB?
    thanks.

    Hi,
    I have the same problem with bc4j deployed on Oracle 8.1.7 as session EJB.
    I'm testing the deployed bc with a client code. I have the following problem on the lookup method:
    avax.naming.NamingException: Unknown reasons. Root exception is
    java.lang.ClassNotFoundException: vebs.jbo.common.ejb.VeAppModuleHomeHelper
    void oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.initRemoteHome()
    void oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.<init>(oracle.jbo.JboContext, java.lang.String)
    oracle.jbo.common.JboHome oracle.jbo.client.remote.ejb.aurora.AuroraEJBInitialContext.createJboHome(java.lang.String)
    java.lang.Object oracle.jbo.common.JboInitialContext.lookup(java.lang.String)
    java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
    void bctest.main(java.lang.String[])
    but if I see in the Oracle db, the class is exported.
    Help me!!

  • Urgent EJB help

    Hello Java Gurus,
    i have some questions, please some help :)
    1. What is the difference between ejbCreate() found in the Bean class & the create() method found in the Home object. (Is there a difference in functionality ? )
    2. I hear some developers say the "EJB class", do they mean the Bean class ??
    3. SessionContext , can we use it to get & set attributes as the regular Session object that we create in a servlet or in a jsp ?? Or is there a difference
    Thanks in advance :)

    Hello Java Gurus,
    i have some questions, please some help :)
    1. What is the difference between ejbCreate() found
    in the Bean class & the create() method found in
    the Home object. (Is there a difference in
    functionality ? )The Home.create() is the client-visible API. ejbCreate is the implementation
    of that method on the bean class which is invoked by the ejb container.
    >
    2. I hear some developers say the "EJB class", do
    they mean the Bean class ?? Yes.
    >
    3. SessionContext , can we use it to get & set
    attributes as the regular Session object that we
    create in a servlet or in a jsp ?? Or is there a
    differenceNo, SessionContext is a special object only usable within a session bean.
    It's a special API between the bean class code and the ejb container.
    E.g. if a bean uses container-managed transactions it can set the
    transaction for rollback-only using SessionContext.
    --ken
    >
    Thanks in advance :)

  • EJB help guys

    Hello Java Gurus,
    i have some questions, please some help :)
    1. What is the difference between ejbCreate() found in the Bean class & the create() method found in the Home object. (Is there a difference in functionality ? )
    2. I hear some developers say the "EJB class", do they mean the Bean class ??
    3. SessionContext , can we use it to get & set attributes as the regular Session object that we create in a servlet or in a jsp ?? Or is there a difference
    Thanks in advance :)

    A create() method is invoked on the EJB home stub,which communicates the method to the EJB home.
    The create() and ejbCreate() methods pair are responsible for initializing the bean instance so that the container can insert a record into the database. In the case of the ShipBean, the minimal information required to add a new ship to the system is the ship's unique id and a name. These fields are initialized during the ejbCreate() method invocation

  • Proble with deployment of simple ejb, help me please

    Hi there wnat to deploy a simple ejb bean is there any step by step process how to deploy a bean in weblogic server6.0 version please help me, I could able to create ejb-jar file but dont know how to deploy it on to the server, please help me, with regards and thanks in advance Raasi

    set STARMODE=false in config/mydomain/startWebLogic script file to start WebLogic server in development mode.
    Copy Ejb jar file to config/mydomain/applications directory.

  • Need JSP with CMR EJB  Help

    hi
    regarding my question
    i am not clear how to use two bean one has foreign key and another has primary key in the client side
    for that i make two beans and make cmr relationship between them fine
    but when i call another bean in the client side i have to use findByPrimaryKey method to map the beans
    fine
    Cnmas cnn = cnhome.findByPrimaryKey(dpwb_no);
    now my problem is i have multiple records corresponding to the dpwb_no which is my primary key
    so for that should i use the iterator method
    and if i will not use then i am using local as well as remote home interfaces so in that case my code will be:-
    in the local interface:-
    public DodAuthorisationLocal findByPrimaryKey(String authorisationNo) throws FinderException;
    in the remote interface:-
    public DodAuthorisation findByPrimaryKey(String authorisationNo) throws RemoteException, FinderException;
    now my problem is that client will interact with local interface and we are makeing remote's home interface.
    because i have to use that values in the create method as parameter
    the create method has local interface's value as parameter and we are calling remote interface so tell me how to solve it
    CnmasHome cnhome = (CnmasHome)PortableRemoteObject.narrow(ctx.lookup("Cnmas"), CnmasHome.class);
    Cnmas cnn = cnhome.findByPrimaryKey(dpwb_no);
    in this code we use the remote interface
    this is my create method which i try to call
    public DodAuthorisation create(CnmasLocal cnn ) with more parameter
    so how to interact the local interface in the create method with the remotehome refrence with the findByPrimaryKey method.
    Now i think u can able to understand my problem
    thanks alot

    Hi Veronika,
    The <jsp:usebean> is used for only javabeans not EJB (Enterprise javabean). You said that you have deployed SpellCheck.jar to the JRun server. So that must be an EJB. Where are you accessing this EJB from in your JSP? ARe you doing it inside the projsp.SpellCheck javabean? If yes, can you post some code from the javabean.
    Cheers
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <jsp:useBean id="help" scope="request" class="projsp.SpellCheck"/>
    <jsp:setProperty name="help" property="*"/>
    <html>
    <head>
    <title>Untitled</title>
    </head>
    <body>
    You Entered the input,
    <b>
    <%= request.getParameter("word") %>
    </b>
    <br>
    The processed output is:<br>
    <%= integer.parseInt(request.getparameter("mode"))==1 ?help.reverse():""+help.check() %>
    </body>
    </html>

  • Where do I deploy common EJB helper and utility classes

    Hi,
    I have a number of EJBs that each use a common set interfaces, exceptions and Value beans. If I deploy using the iasdeploy command line, then I must package up all these common classes within each of the EJB modules - leading to a lot of duplicate code.
    Is there a smarter a way of packaged the common classes so that I can include them in the .EAR file but only in one module.
    Note: I would prefer to only argument the IAS classpath with 3rd party classes that rarely change and not these common classes e.g. Jlog
    cheers
    Daniel

    Hi,
    Try to put all the EJB's in a single package and import the package. I
    can think of this solution right now, will keep posting for updates.
    Regards
    Raj
    Daniel Westerdale wrote:
    Hi,
    I have a number of EJBs that each use a common set interfaces,
    exceptions and Value beans. If I deploy using the iasdeploy command
    line, then I must package up all these common classes within each of
    the EJB modules - leading to a lot of duplicate code.
    Is there a smarter a way of packaged the common classes so that I can
    include them in the .EAR file but only in one module.
    Note: I would prefer to only argument the IAS classpath with 3rd party
    classes that rarely change and not these common classes e.g. Jlog
    cheers
    Daniel
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Processing soap header in ejb, help me !!!

    Could anyone tell me how can i get the soap header information in ejb to process? I have implement the headercallback in the implementation bean and add the processheader method, but when i invoke the ejb method through proxy, the exception like "you must implement headercallback.." arise. Did i leave any step undone? Thank you very much!

    netbeans.org has a lot of resources on developing EJB. Just search at netbeans.org upper-right corner:
    http://www.netbeans.org/
    One of them is a 30-min tutorial:
    http://www.netbeans.org/kb/55/ejb30.html
    You can also read JavaEE Tutorial, especially the chapter Get Started with EJB:
    http://java.sun.com/javaee/5/docs/tutorial/doc/
    -cheng

  • Starting out with ejb help

    hi,
    i'm starting out with ejb, know java and jsp servlets, and seem to be having trouble getting the first example running, i'm using Jboss_3.2.1.
    1. Where is the javax.ejb package? i have sdk 1.4.1, but don't see the package in there.
    2. Using JBoss where do i put the source and complied files? the book just shows the structure as:
    -classes
    -com
    -brainysoftware
    -ejb
    -meta-inf
    but where do i put this, there is no instructions as to where the classes and meta-inf go? i understand that the .jar goes in the deploy directory but what if i want to store the source and complied in jboss also?
    3. when running a servlet, client, from tomcat do i have to run both tomcat and jboss together? The book just mentioned that i needed to copy the ebj.jar, jboss-client.jar, jnp-client.jar and the Adder.jar (example build) into my lib for tomcat, but why do i need the Adder.jar (the example built), isn't that suppose to run from jboss not from tomcat?
    Thank you.

    1.) You find the package javax.ejb in the following file: $JBOSS_HOME/client/jboss-j2ee.jar
    2.) JBoss doesn't need your source-files. To install your EJBs you must copy a Enterprise Archive (*.ear), which including the jar-file with your EJB, in the directory $JBOSS_HOME/server/default/deploy. This is the directory for hot-deployment of the default-configuration. You could also copy the jar-file with your EJBs into this directory.
    3.) JBoss has always a web-server, either tomcat or jetty. Both are servlet-engines. You doesn't need another tomcat instance. In your web-application you need all classes of a EJB, that you call, for example the remote-home- and the remote-interface of a session bean and the classes of value-objects. This is the reason, because you need the adder.jar. The better way is, you include all necessary files in your war-file.

  • How I create a client standalone in EJB, help me please

    I need create a client standalone but the application no find my JNDI. Will be anyone give me one step by step client standalone in EJB?
    Hugs, thanks

    needing multiple usernames and passwords is going to force you into using a database type log in system. There is no "simple" way to accomplish this. You can also use java, ajax and a number of other types. But for the most secure you want to use a server sided language like ColdFusion, PHP, ASP, etc. That's where your server configuration comes in. What server sided language will it support? That's a good place to start.
    Another good place to start is do you know anything about code to write some on your own? DW does some coding for you, there are plug ins but it is always best to be able to understand the code.
    you can always look through the DW exchange for a small log in system that might be easy for you to change to your needs.

  • EJB:help needed.

    hi ppl...i m using bea weblogic server6.1 and i ve made a simple EJB and i dont know how to deploy it using bea...plz guide me all that wat to do and where to do...i ll b very grateful to u pals....desperate one....:(...
    u can mail me too if u got any idea about that...but plz do briefly plz......
    [email protected]

    Hi
    It would be difficult to provide a brief installation guide. Take a look at the installation procedure from the link below and post queries regarding any particular issue you may be facing with the deployment process.
    Resources:
    http://edocs.bea.com/wls/docs61/programming/
    http://edocs.bea.com/wls/docs61/webapp/index.html
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems
    http://www.sun.com/developers/support

  • EJB Help urgent

    hi,
    i am getting the following execption
    "Exception in thread "main" java.lang.NoClassDefFoundError: javax/naming/Context
    at com.sun.enterprise.server.J2EEServer.<clinit>(J2EEServer.java:53)
    when running j2ee server
    i had set the variables
    "SET JAVA_HOME=C:\JDK1.2
    SET J2EE_HOME=C:\J2SEE
    SET PATH=%PATH%;C:\JDK1.2\BIN;C:\J2SEE\BIN;c:\j2see"
    please help me.

    Thankyou for your reply
    i have corrected this problem
    But now i am having a new one.Everything is fine but the j2ee server is quitting showing
    Java 2 Enterprise Edition Server
    Options:
    -verbose Redirect all logging output to the current shell.
    -help Print this help message.
    -version Print the version.
    -stop Stop the J2EE server.
    when i gave "j2ee -verbose" i think the problem is with setenv.bat,when it is executing it is showing syntax errors at all the commands
    set JAAS_OPTIONS=-Djava.security.auth.policy=%J2EE_HOME%\lib\security\jaas.policy
    set SSL_OPTIONS=-Djavax.net.ssl.trustStore=%J2EE_HOME%\lib\security\cacerts.jks
    set LISTEN_OPTIONS=-Dcom.sun.CORBA.connection.ORBListenSocket=SSL:0,SSL_MUTUALAUTH:0,PERSISTENT_SSL:1060
    it came along with j2ee and i did not modified it
    i was also having "Out of environment Space" error when executing j2ee
    please help me in correcting both the errors.

  • Need EJB Help

    Hi,
    can any one tell me the flow of control from client to bean and then response from bean to client while using 1:1,1:M nad M:M relationship mapping.
    my second question is
    if i have a create method with local interface variable as parameter then how to store the non local interfaces value in the paramter
    like if i have a primary key and foreign key so on the basis of foreign key we have to submit our data in the primary key so can any one tell me how to do that
    thanks alot
    --------------------

    http://www.theserverside.com/books/wiley/masteringEJB/index.tss

  • I need a clarification : Can I use EJBs instead of helper classes for better performance and less network traffic?

    My application was designed based on MVC Architecture. But I made some changes to HMV base on my requirements. Servlet invoke helper classes, helper class uses EJBs to communicate with the database. Jsps also uses EJBs to backtrack the results.
    I have two EJBs(Stateless), one Servlet, nearly 70 helperclasses, and nearly 800 jsps. Servlet acts as Controler and all database transactions done through EJBs only. Helper classes are having business logic. Based on the request relevant helper classed is invoked by the Servlet, and all database transactions are done through EJBs. Session scope is 'Page' only.
    Now I am planning to use EJBs(for business logic) instead on Helper Classes. But before going to do that I need some clarification regarding Network traffic and for better usage of Container resources.
    Please suggest me which method (is Helper classes or Using EJBs) is perferable
    1) to get better performance and.
    2) for less network traffic
    3) for better container resource utilization
    I thought if I use EJBs, then the network traffic will increase. Because every time it make a remote call to EJBs.
    Please give detailed explanation.
    thank you,
    sudheer

    <i>Please suggest me which method (is Helper classes or Using EJBs) is perferable :
    1) to get better performance</i>
    EJB's have quite a lot of overhead associated with them to support transactions and remoteability. A non-EJB helper class will almost always outperform an EJB. Often considerably. If you plan on making your 70 helper classes EJB's you should expect to see a dramatic decrease in maximum throughput.
    <i>2) for less network traffic</i>
    There should be no difference. Both architectures will probably make the exact same JDBC calls from the RDBMS's perspective. And since the EJB's and JSP's are co-located there won't be any other additional overhead there either. (You are co-locating your JSP's and EJB's, aren't you?)
    <i>3) for better container resource utilization</i>
    Again, the EJB version will consume a lot more container resources.

  • Injecting ejbs via @Resource

    Hi all,
    I have an ejb that injects a helper ejb like
    @EJB
    Helper help; and whose business method calls the helper beans business method. This works fine.
    Now I try to inject the helper ejb as
    @Resource(name="Helper") 
    Helper help; The first call of the ejb's business method from the client works fine, but the second one throws the following exception (extract):
    org.omg.CORBA.BAD_OPERATION: The delegate has not been set!
    Please, can someone, who has an ejb that injects another ejb, check if he gets the same problem when @EJB is replaced through something like @Resource(name = ...).
    Thanks in advance.
    I googled for the error message and found search results dating from around 2004 where the error was due to a bug in the Java-IDL mapping of an old java version. I'm working with glassfish v2 and java 1.6.

    Hi, thanks for your reply.
    Is there a particular behavior you would like that you don't think is available when using @EJB?No. I read in "EJB 3 in action", 5.2.1 that @Resource can "be used for [...] environment entries, ORB reference and even EJB references" and just tried it out.

Maybe you are looking for

  • Adobe Acrobat 9.0 Pro Manual

    Does anyone know how I can can the manual for Adobe Acrobat 9.0 Pro?

  • Import Procure,ent with CIN

    Hi All, I am having an issue with Import Procurement with CIN, please help me in this regard. During imports, we incorporate customs duties, freight clearing charges, CHA charges. For these we create customs office, freight forwarder etc as vendors,

  • Schedule/ db Query

    Hello, At the moment I'm trying to build a webbased timesheet/schedule program. However I have a question about how to get the results ordered on the webpage. What I would like to show on the webpage is a table with the results for a week. I would li

  • Unable to run WebiRichClient

    Hello, We have a trouble on one Desktop PC. We can't run WebiRichClient, we don't have the first screen, nothing. The windows cursor hourglass wait 2 seconds and nothing happens (no welcome screen or target application start) The other client tool wo

  • KE21N with reference - copy old copa records without applying new derivation rule

    Dear all, does anyone have a clue how to make this: We would like to copy some old COPA line items but face the problem that doing KE21N with a reference document the old derivation is overwritten in the moment the document is saved. Is there any pos