EJB 3.0 & Netbeans 5.5

I have tried to create simple EJB 3.0 project with Netbeans 3.0. (SJAS 9.0)
New project -> Enterprise -> Enterprise application.
My project is "first", uncheck "Create Web Application module", check "Create Application Client Module".
Next, I create Stateless Bean.
In first-ejb-> Source Packages create java package "test".
In package test right click mouse and select New->File/Folder->Enterprise->Session Bean
Choose "Next", then create bean "MyTest"
Session type: Stateless
Create interface: remote only.
Add public metod String getAnswer().
Next in client application main class add Enterprise call.
In Main.java right click and choose Enterprise resources->Call Enterprise Bean, choose MyTestBean.
Add some code to main class:
System.out.println(myTestBean.getAnswer());
Build, Deploy, Run client application.
I got NullPointerException in main class and this message in Application Server log:
Class [ Ltest/MyTestRemote; ] not found. Error while loading [ class first.Main ]
Error in annotation processing: java.lang.NoClassDefFoundError: Ltest/MyTestRemote;
I do nothing with code anywere, and not modified any xml files.
Where could I take any mistakes?
Thanks you!
My code:
package test;
MyTestRemote.java
import javax.ejb.Remote;
* This is the business interface for MyTest enterprise bean.
@Remote
public interface MyTestRemote {
    String getAnswer();
}MyTestBean.java
package test;
import javax.ejb.Stateless;
* @author andrey
@Stateless
public class MyTestBean implements test.MyTestRemote {
    /** Creates a new instance of MyTestBean */
    public MyTestBean() {
    public String getAnswer() {
        return "Simple answer";
}Main.java
package first;
import javax.ejb.EJB;
import test.MyTestRemote;
* @author andrey
public class Main {
    @EJB
    private static MyTestRemote myTestBean;
    /** Creates a new instance of Main */
    public Main() {
     * @param args the command line arguments
    public static void main(String[] args) {
        // TODO code application logic here
        System.out.println(myTestBean.getAnswer());
}

i think the line would not appear in client console but in server console,please check the server console. make sure you have deploy the ejb

Similar Messages

  • Need a help to create ejb application in netbeans with weblogic 9.2

    Hi guys,
    I am new to EJB..can anyone guide me to create a EJB application in netbeans 5.5 with weblogic server 9.2 ..
    thank u in advance..

    Hi guys,
    If there is no one to help me with this so simple project then I will have to quit trying. I am getting to much pressure to get this done and I just don't know how to proceed anymore. I have found a document on OTN that explain the basics of binding but it's to vast and too complicated under pressure. If someone could help me to bind this LOV I would appreciate this so much and then I could relax a little and read all the good documents that I have found on OTN.
    This is my last chance.
    Thank you!

  • Problem in when deploying EJB 3 using NetBean 5.5 with  Glassfish and Derby

    Hi,
    I'm using glass fish with NetBean. My EJB module built with no error, but when I run the application (the ear) in NetBean, the deployment fails with following errors in server log:
    Anyone has idea why this is happening?
    [TopLink Config]: 2007.04.29 03:28:43.347--ServerSession(26985473)--Connection(29068073)--Connected: jdbc:derby://localhost:1527/auction_database
    User: admin
    Database: Apache Derby Version: 10.1.3.1
    Driver: Apache Derby Network Client JDBC Driver Version: 10.1.3.1
    [TopLink Info]: 2007.04.29 03:28:43.407--ServerSession(26985473)--file:/C:/Sun/SDK/domains/domain1/applications/j2ee-apps/AuctionEnterpriseApplication/AuctionEnterpriseApplication-ejb_jar/-AuctionEnterpriseApplication-ejbPU login successful
    [TopLink Config]: 2007.04.29 03:28:43.437--ServerSession(26985473)--Connection(6880990)--disconnect
    [TopLink Info]: 2007.04.29 03:28:43.437--ServerSession(26985473)--file:/C:/Sun/SDK/domains/domain1/applications/j2ee-apps/AuctionEnterpriseApplication/AuctionEnterpriseApplication-ejb_jar/-AuctionEnterpriseApplication-ejbPU logout successful
    UTIL6040: Error attempting to delete C:\Sun\SDK\domains\domain1\generated\ejb\j2ee-apps\AuctionEnterpriseApplication\AuctionEnterpriseApplication_AuctionEnterpriseApplication-ejb_AuctionEnterpriseApplication-ejbPU_createDDL.jdbc
    UTIL6041: Performing gc to try to force file closures
    UTIL6042: Attempt to delete C:\Sun\SDK\domains\domain1\generated\ejb\j2ee-apps\AuctionEnterpriseApplication\AuctionEnterpriseApplication_AuctionEnterpriseApplication-ejb_AuctionEnterpriseApplication-ejbPU_createDDL.jdbc succeeded after 2 retries
    Exception occured in J2EEC Phase
    com.sun.enterprise.deployment.backend.IASDeploymentException
    at oracle.toplink.essentials.tools.schemaframework.DefaultTableGenerator.addForeignKeyFieldToFieldDefinition(DefaultTableGenerator.java:409)
    at oracle.toplink.essentials.tools.schemaframework.DefaultTableGenerator.addForeignKeyFieldToSourceTargetTable(DefaultTableGenerator.java:384)
    at oracle.toplink.essentials.tools.schemaframework.DefaultTableGenerator.postInitTableSchema(DefaultTableGenerator.java:285)
    at oracle.toplink.essentials.tools.schemaframework.DefaultTableGenerator.generateDefaultTableCreator(DefaultTableGenerator.java:138)
    at oracle.toplink.essentials.tools.schemaframework.SchemaManager.replaceDefaultTables(SchemaManager.java:817)
    at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createOrReplaceDefaultTables(EntityManagerFactoryProvider.java:307)
    at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.writeDDLsToFiles(EntityManagerFactoryProvider.java:330)
    at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.generateDDLFiles(EntityManagerFactoryProvider.java:235)
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:231)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:78)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:113)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:107)
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:76)
    at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.loadPersistenceUnitBundle(PersistenceProcessor.java:468)
    at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.createTablesInDB(PersistenceProcessor.java:325)
    at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processAppBundle(PersistenceProcessor.java:190)
    at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:125)
    at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:193)
    at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:152)
    at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:109)
    at com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:66)
    at com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:429)
    at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:225)
    at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:129)
    at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739)
    at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
    at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)

    Hi thanks, I'm using the default table generator offerred by the app server. my entity classes have relationship with each other. for example, in the Bid entity, I have the mapping to AuctionItem antity.
    @JoinColumn(name = "auctionItems_itemid", referencedColumnName = "itemid")
         @ManyToOne
         public entities.AuctionItem getAuctionItems() {
              return auctionItems;
         public void setAuctionItems(entities.AuctionItem auctionItems) {
              this.auctionItems = auctionItems;
         }

  • Access Error = EJB + Glassfish + Netbeans

    Hello
    My situation: I have the following panel:
    - Using Project: EJB Glashfish + v3 + Netbeans 6.8
    - Platform: WEB
    - Type of project: EAR
    : I have a SessionBean called GenericDAO, which is the only one who knows the others sessionbeans and, through them, the persistence layers.
    Needed to implement a new method in my GenericDAO. Something quite simple: get the object type and do a specific search in the corresponding SessionBean.
    This new method was created pq no other existing method to satisfy my situation.
    The problem: when I try to access this new method GenericDAO, Glassfish says he does not have permission. Simple as that.
    Did another test: I created another method that did nothing, just returning 'null'. Returned the same error.
    So if I use the methods already published, shows no problem.
    If you need to implement a new method, at the execution, gives the error below.
    Emphasizing:
    - Every time I need to create a new method, it gives this error.
    - I had to reimplement the entire project once cuz I could not resolve this error, and I think it can not be so.
    So, any help is welcome.
    Thank you. God bless
    //class code
    Cliente cc = (Cliente) dao.findTeste(); // que não faz anda, só retorna nulo. 
    //Erro message: 
    INFO: JACC Policy Provider: Failed Permission Check, context(WebHostMgr_Project/WebHostMgr_Project-ejb_jar)- permission((javax.security.jacc.EJBMethodPermission GenericDAO findTeste,Local,)) 
    WARNING: A system exception occurred during an invocation on EJB GenericDAO method public java.lang.Object sessionbeans.GenericDAO.findTeste() 
    javax.ejb.AccessLocalException: Client not authorized for this invocation. 
            at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1801) 
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:188) 
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:84) 
            at $Proxy118.findTeste(Unknown Source) 
            at command.pages.PageClienteCommand.onExecute(PageClienteCommand.java:33) 
            at command.ForwardingCommand.execute(ForwardingCommand.java:23) 
            at servlets.Controller.processRequest(Controller.java:40) 
            at servlets.Controller.doGet(Controller.java:60) 
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) 
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) 
            at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523) 
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279) 
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) 
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) 
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) 
            at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) 
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) 
            at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332) 
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233) 
            at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165) 
            at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) 
            at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) 
            at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) 
            at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) 
            at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) 
            at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) 
            at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) 
            at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) 
            at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) 
            at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) 
            at com.sun.grizzly.ContextTask.run(ContextTask.java:69) 
            at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) 
            at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) 
            at java.lang.Thread.run(Thread.java:619) 
      (...)

    Hello
    My situation: I have the following panel:
    - Using Project: EJB Glashfish + v3 + Netbeans 6.8
    - Platform: WEB
    - Type of project: EAR
    : I have a SessionBean called GenericDAO, which is the only one who knows the others sessionbeans and, through them, the persistence layers.
    Needed to implement a new method in my GenericDAO. Something quite simple: get the object type and do a specific search in the corresponding SessionBean.
    This new method was created pq no other existing method to satisfy my situation.
    The problem: when I try to access this new method GenericDAO, Glassfish says he does not have permission. Simple as that.
    Did another test: I created another method that did nothing, just returning 'null'. Returned the same error.
    So if I use the methods already published, shows no problem.
    If you need to implement a new method, at the execution, gives the error below.
    Emphasizing:
    - Every time I need to create a new method, it gives this error.
    - I had to reimplement the entire project once cuz I could not resolve this error, and I think it can not be so.
    So, any help is welcome.
    Thank you. God bless
    //class code
    Cliente cc = (Cliente) dao.findTeste(); // que não faz anda, só retorna nulo. 
    //Erro message: 
    INFO: JACC Policy Provider: Failed Permission Check, context(WebHostMgr_Project/WebHostMgr_Project-ejb_jar)- permission((javax.security.jacc.EJBMethodPermission GenericDAO findTeste,Local,)) 
    WARNING: A system exception occurred during an invocation on EJB GenericDAO method public java.lang.Object sessionbeans.GenericDAO.findTeste() 
    javax.ejb.AccessLocalException: Client not authorized for this invocation. 
            at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1801) 
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:188) 
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:84) 
            at $Proxy118.findTeste(Unknown Source) 
            at command.pages.PageClienteCommand.onExecute(PageClienteCommand.java:33) 
            at command.ForwardingCommand.execute(ForwardingCommand.java:23) 
            at servlets.Controller.processRequest(Controller.java:40) 
            at servlets.Controller.doGet(Controller.java:60) 
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) 
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) 
            at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523) 
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279) 
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) 
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) 
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) 
            at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) 
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) 
            at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332) 
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233) 
            at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165) 
            at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) 
            at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) 
            at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) 
            at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) 
            at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) 
            at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) 
            at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) 
            at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) 
            at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) 
            at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) 
            at com.sun.grizzly.ContextTask.run(ContextTask.java:69) 
            at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) 
            at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) 
            at java.lang.Thread.run(Thread.java:619) 
      (...)

  • Bean Not Bound + Netbeans 5.5 + JBoss 4.0.2

    Hello Friends,
    I'm new to EJB. I'm writing EJB application using Netbeans 5.5 & Sun Java System application Server. When I run application I faced with following exception :
    javax.naming.NameNotFoundException: <beanname>Bean not bound
    Plz help me out. I have searched it on Google but Solutions is for JBoss.. or different situations.
    //PremInd
    Message was edited by:
    PremInd

    Hello Friends,
    I'm new to EJB. I'm writing EJB application using Netbeans 5.5 & Sun Java System application Server. When I run application I faced with following exception :
    javax.naming.NameNotFoundException: <beanname>Bean not bound
    Plz help me out. I have searched it on Google but Solutions is for JBoss.. or different situations.
    //PremInd
    Message was edited by:
    PremInd

  • Rename EJB project(Enterprice Project) - Urgent

    Hi all,
    I have an EJB based project (example: abc.ear, abc-admin.war, abc.war). Now, I am gonna create another project using the same EJB module.But the already existing EJB module should be renamed (example: xyz.ear, xyz-admin.war, xyz.war).
    I am using NetBeans 6.1. Is there a way that I can rename the whole EJB module with NetBeans 6.1. While doing refactoring in NetBeans It renamed only the project name. I need to rename all the project names and references.
    Its an urgent project. Hope to have a good reply from you.
    Thanks in advance

    Is it so much work to create new projects and simply copy the source files over to them?

  • Finder/Select methods and NetBeans 4.1

    Hi All,
    I'm implementing an EJB Module in NetBeans IDE 4.1 and I have some problems with finder/select methods of CMP EJBs.
    My problem is that i cant pass J2EE verify whene I add finder/select methods with parameters; Verifier Tool tell me It doesn't find query element corresponding ti method in DD.
    Does anyone face a similar problem?
    Thanks in advance.
    Fil

    several people reported such problem and it seems emulator started working when they turned off CPU hyperthreading

  • Webservice initialized on every method-call.

    Hello!
    I have written two webservices. One containing a EJB and a SOAP-Webservice and one with just a SOAP-Webservice.
    If I call the EJB-Version the webservice gets inizialized by glassfish on the first call and then stays running (Constructor is not called any more) but if I call the SOAP-only service constructor is called on every method-call.
    Therefore I have a deployment-problem with the EJB-Version: I use SQL-Server-JDBC-Libs in my Netbeans-Project. The get deployed to the server but are not used by the application. Instead I have to copy them to the servers lib-directory. If I deploy them with my Soap-only-service they work...

    For the Webservice-only I create a web-application in Netbeans (File - New Project - Java Web - Web Application) and run this code:
    package com.service;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    @WebService(serviceName = "Service")
    public class Service {
        public Service() {
            System.out.println("Constructor called!");
        @WebMethod(operationName = "hello")
        public String hello(@WebParam(name = "name") String txt) {
            return "Hello " + txt + " !";
    }Everytime i call the hello-method through the Tester (http://ip:port/URI?Tester) the webservice get initialized ("Constructor called").
    On the other hand I create a Java EE - EJB-Module in Netbeans and add the webservice.
    I remove the EJB-Annotations from the module and use it as a POJO for the code.
    EJB:
    package com.slan.ejb;
    import javax.ejb.Stateless;
    @Stateless
    public class EJBSlan {
        public EJBSlan(){
            System.out.println("Constructor of EJB called!");
        public String getHello(String name) {
            return "Hello " + name;
    }Service:
    package com.slan.service;
    import com.slan.ejb.EJBSlan;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import javax.ejb.Stateless;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    @WebService(serviceName = "EJBService")
    @Stateless()
    public class EJBService {
        private EJBSlan ejbRef;
        public EJBService(){
            ejbRef = new EJBSlan();
            System.out.println("Constructor of Service called!");
        @WebMethod(operationName = "getHello")
        public String getHello(@WebParam(name = "name") String name) {
            return ejbRef.getHello(name);
        @WebMethod(operationName = "getMachines")
        public String getMachines() {
            String machines = "";
            try {
                DriverManager.registerDriver(new com.mysql.jdbc.Driver());
                Connection c = DriverManager.getConnection("jdbc:mysql://ip/cm","user","password");
                Statement s = c.createStatement();
                ResultSet r = s.executeQuery("select  from machines");
                while(r.next()){
                    machines += r.getString("comment");
                s.close();
                c.close();
            } catch (SQLException e) {
                System.out.println(e.toString());
            return machines;
    }As you can see I already tried to add the sql-code to query the database. I added the mysql.jar to the project and deployed it. Using the tester the Service- and POJO-Object gets initialized only once but I cant use the mysql-driver cause it is not used on the server. But it gets deployed to the server... I think it's just not included in the class-path...

  • NameNotFoundException in JNDI lookup in for stand alone App client in EJB3

    I created an ejb module in netbeans 5.5 added a session facade (SavingsaccountFacade) and downloaded it to SunAppServer 9 (java EE 5). When I try and access the JNDI name in a stand alone java application client using the following code
    Context initial = new InitialContext();
    Object objref = initial.lookup("ejb/SavingsaccountFacade");
    I get the following errors:
    javax.naming.NameNotFoundException: SavingsaccountFacade not found
    at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:203)
    I have added j2ee.jar, appserv-rt.jar, and the dist/SavingsAccount.jar to the library. When I do a similar thing in J2EE1.4 it worked fine.
    Can somebody help please.
    Thanks

    Hi Dave,
    Here's our EJB FAQ entry that explains how EJB Global JNDI names are set in the
    Java EE 5 SDK and Glassfish. The most likely explanation is that the name used
    in the client does not match the one assigned to your EJB in sun-ejb-jar.xml.
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#SessionBeanGlobalJNDINameAssignment
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Java.lang.reflect.InvocationTargetException

    Hi,
    I am new to EJB. i've developed my first EJB Program using Netbeans.
    Here are my classes :
    package ejb;
    import javax.ejb.Stateless;
    @Stateless(mappedName="Bean30")
    public class Bean30Bean implements Bean30Remote
    public String getResult()
    return "This is EJB 3.0 Bean";
    Remote Interface :
    package ejb;
    import javax.ejb.Remote;
    @Remote
    public interface Bean30Remote {
    String getResult();
    Calling EJB :
    InitialContext ctx = new InitialContext();
    Bean30Remote br = (Bean30Remote) ctx.lookup("Bean30#ejb.Bean30Remote");
    System.err.println("EJB message is: " + br.getResult());
    While lookup, it is throwing me an exception :
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.glassfish.appclient.client.acc.AppClientContainer.launch(AppClientContainer.java:438)
    at org.glassfish.appclient.client.AppClientFacade.main(AppClientFacade.java:165)
    Caused by: javax.naming.NamingException: Lookup failed for 'Bean30#ejb.Bean30Remote2' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl} [Root exception is javax.naming.NamingException: ejb ref resolution error for remote business interfaceejb.Bean30Remote2 [Root exception is java.lang.ClassNotFoundException: ejb.Bean30Remote2]]
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at applicationclientfortest.Main.main(Main.java:27)
    ... 6 more
    Caused by: javax.naming.NamingException: ejb ref resolution error for remote business interfaceejb.Bean30Remote2 [Root exception is java.lang.ClassNotFoundException: ejb.Bean30Remote2]
    at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:433)
    at com.sun.ejb.containers.RemoteBusinessObjectFactory.getObjectInstance(RemoteBusinessObjectFactory.java:75)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    at com.sun.enterprise.naming.impl.SerialContext.getObjectInstance(SerialContext.java:556)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:514)
    ... 9 more
    Caused by: java.lang.ClassNotFoundException: ejb.Bean30Remote2
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at org.glassfish.appclient.client.acc.ACCClassLoader.findClass(ACCClassLoader.java:212)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at com.sun.ejb.EJBUtils.getBusinessIntfClassLoader(EJBUtils.java:687)
    at com.sun.ejb.EJBUtils.loadGeneratedRemoteBusinessClasses(EJBUtils.java:462)
    at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:413)
    ... 13 more
    I've checked on the GlassFish. It has been deployed successfully with name "EJBModule30".
    Any comments will be greatly appreciated. Please let me know if i'm doing something wrong.

    r035198x wrote:
    >
    That shouldn't be necessary in a JEE environment. Proper packaging is all you need to do and the container takes care of the rest.The remote client may not be in a container....
    **puts on a brown paper bag**
    In any case the name inconsistency is a nice catch, but when I check the logging:
    ejb ref resolution error for remote business interfaceejb.Bean30Remote2 [Root exception is java.lang.ClassNotFoundException: ejb.Bean30Remote2]]I wonder if Glassfish actually contains a logging mistake where it doesn't print a space between the log text and the interface, or that someone has been doing some manual editing before posting it...

  • Error while building a Webservice in Netbeans EJB Module

    I have copied the java code of a JCD doing xml to cobol copybook transformation in JCAPS, to a new webservice created in the Netbeans EJB module. There were no compilation errors. But while trying to build, I am getting errors like "java.io.printStream does not have a no-arg default Constructor" , "IllegalAnnotation Exception", "Unable to create jaxb context" etc..
    I am not able to find out why this happened... Someone please help me in resolving this issue......

    Guys,
    I am able to solve the problem. I think the problem is Language settings difference between Database and OWB repository.

  • EJB 3.0 with NetBeans 5.5 help required

    Hi
    I created a simple HelloUser application in NetBeans 5.5 with the following steps. Build is successful with out any exceptions....but not able to get the lines given for testing* in the Hello application...Please help me how to get the lines which I gave for testing in the Hello application:
    1) New Project---> Choose 'Enterprise application' from 'Enterprise' category---->Project Name--Hello, unchecked the Web Application module and checked the client application module--->Finish.
    2)Right click on Hello-ejb -->New file -->In the 'Enterprise' category selected 'Session Bean'---> Gave Ejb Name as HelloUserBean, checked only stateless and Remote--> finish
    // *** Start of HelloUserBean ***//
    package ejb;
    import javax.ejb.Stateless;
    * @author neelima
    @Stateless
    public class HelloUserBean implements ejb.HelloUserRemote {
    /** Creates a new instance of HelloUserBean */
    public HelloUserBean() {
    public void sayHello(String name) {
    System.out.println("Hello " + name + " welcome to EJB 3 In Action!");
    // *** End of HelloUserBean ***//
    // *** Start of HelloUserRemote ***//
    package ejb;
    import javax.ejb.Remote;
    * This is the business interface for HelloUser enterprise bean.
    @Remote
    public interface HelloUserRemote {
    public void sayHello(String name);
    // *** End of HelloUserRemote ***//
    3) Right click on Hello-app-client----> New File---->From 'Java Classes' category selected 'Java Main class' --> Finish
    // *** Start of HelloUserClient.java ****///
    package ejb;
    import javax.ejb.EJB;
    * @author neelima
    public class HelloUserClient {
    @EJB
    private static HelloUserRemote helloUserBean;
    /** Creates a new instance of HelloUserClient */
    public HelloUserClient() {
    * @param args the command line arguments
    public static void main(String[] args) {
    // TODO code application logic here
    helloUserBean.sayHello("Curious George");
    System.out.println("Invoked EJB successfully .. see server console for output");
    // *** End of HelloUserClient.java ****///
    4) Run the Hello-app-client
    The build is successful with out any exceptions....but not able to get the lines given for testing in the Hello application...Please let me know how to get the lines which I gave for testing in the Hello application
    Please find below the Hello-app-client(run)
    init:
    deps-jar:
    Created dir: C:\NetBeans_projects\Hello\Hello-ejb\build\jar
    Created dir: C:\NetBeans_projects\Hello\Hello-ejb\build\ear-module
    Copying 2 files to C:\NetBeans_projects\Hello\Hello-ejb\build\jar\META-INF
    Compiling 2 source files to C:\NetBeans_projects\Hello\Hello-ejb\build\jar
    compile:
    library-inclusion-in-archive:
    Created dir: C:\NetBeans_projects\Hello\Hello-ejb\dist
    Building jar: C:\NetBeans_projects\Hello\Hello-ejb\dist\Hello-ejb.jar
    dist:
    deps-jar:
    Created dir: C:\NetBeans_projects\Hello\Hello-app-client\build\jar
    Copying 2 files to C:\NetBeans_projects\Hello\Hello-app-client\build\jar\META-INF
    Compiling 2 source files to C:\NetBeans_projects\Hello\Hello-app-client\build\jar
    compile:
    Created dir: C:\NetBeans_projects\Hello\Hello-app-client\dist
    Building jar: C:\NetBeans_projects\Hello\Hello-app-client\dist\Hello-app-client.jar
    dist:
    Distributing C:\NetBeans_projects\Hello\Hello-app-client\dist\Hello-app-client.jar to [localhost:4848_server]
    Start registering the project's server resources
    Finished registering server resources
    deployment started : 0%
    deployment finished : 100%
    Deploying application in domain completed successfully
    Trying to create reference for application in target server completed successfully
    Trying to start application in target server completed successfully
    Deployment of application Hello-app-client completed successfully
    Target module started
    run-deploy:
    Copying 1 file to C:\NetBeans_projects\Hello\Hello-app-client\dist
    run-tool:
    run-jar:
    run-display-browser:
    run:
    BUILD SUCCESSFUL (total time: 13 seconds)
    Edited by: Neil_k on Nov 27, 2007 7:10 AM
    Edited by: Neil_k on Nov 27, 2007 7:20 AM
    Edited by: Neil_k on Nov 27, 2007 7:35 AM

    i think the line would not appear in client console but in server console,please check the server console. make sure you have deploy the ejb

  • Access EJB 3.0 (deployed on Glassfish v3) from Tomcat 6.0.20 (Netbeans 6.8)

    Hi all,
    I'm a newbie (of java EE and Sun forum).
    I have a problem.
    I followed this tutorial: http://technology.amis.nl/blog/1368/connecting-to-an-ejb-30-remote-sessionbean-from-tomcat
    using Netbeans 6.8, Tomcat 6.0.20, Glassfish v3.
    The deploy of EJB on Glassfish is OK.
    The deploy of WebApp on Tomcat is OK.
    But when I access to the servlet using the browser I receive this exception.
    javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.enterprise.naming.SerialInitContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.enterprise.naming.SerialInitContextFactory]
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
    at javax.naming.InitialContext.init(InitialContext.java:223)
    at javax.naming.InitialContext.<init>(InitialContext.java:197)
    at web.MyServlet.processRequest(MyServlet.java:51)
    at web.MyServlet.doGet(MyServlet.java:75)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
    at java.lang.Thread.run(Thread.java:619)
    I know that I must copy *.jar files in Tomcat dir and App libraries (https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#Step_3._Include_appserv-rt.jar_and), but it doesn't work.
    What are my mistakes?
    Thank you for your help.
    Servlet code:
    package web;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.util.Properties;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import testbean.MySessionBeanRemote;
    * @author Stefano
    public class MyServlet extends HttpServlet {
    * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
    * @param request servlet request
    * @param response servlet response
    * @throws ServletException if a servlet-specific error occurs
    * @throws IOException if an I/O error occurs
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    Properties props = new Properties();
    props.setProperty("java.naming.factory.initial", "com.sun.enterprise.naming.SerialInitContextFactory");
    props.setProperty("java.naming.factory.url.pkgs", "com.sun.enterprise.naming");
    props.setProperty("java.naming.factory.state", "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
    props.setProperty("org.omg.CORBA.ORBInitialHost", "localhost");
    props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
    try {
    out.println("<html>");
    out.println("<head>");
    out.println("<title>Servlet MyServlet</title>");
    out.println("</head>");
    out.println("<body>");
    out.println(MySessionBeanRemote.class.getName());
    try {
    InitialContext ic = new InitialContext(props);
    MySessionBeanRemote mySessionRemote = (MySessionBeanRemote) ic.lookup("pippo");
    out.println(mySessionRemote.getOK());
    } catch (NamingException ex) {
    ex.printStackTrace();
    out.println("</body>");
    out.println("</html>");
    } finally {
    out.close();

    Yes, I did.
    I'm not sure about the right actions to do.
    For example: the Glassfish FAQ told me to add gf-client*.jar to the Tomcat folder, not appserv-rt.jar , with v3.
    I tried with both files. I restarted Tomcat, but nothing work :-(

  • A free ebook for EJB 3.0 with the latest version of Netbean

    Hi,
    I am a trainee although with a good background in java.
    I'm urgently in need of a free ebook for EJB 3.0 with the latest version of Netbean. Pls, help me with one if you have. my email is [email protected]
    Again, is container managed bean good for a big project?
    Thanks.
    Emeka

    emekaco wrote:
    Hi,
    I am a trainee although with a good background in java.
    I'm urgently in need of a free ebook for EJB 3.0 with the latest version of Netbean. Pls, help me with one if you have. my email is [email protected]
    http://www.theserverside.com/tt/books/wiley/masteringEJB3/index.tss
    Here's a good free e-book but without Netbean. It covers everything you would need to know about EJBs.
    >
    Again, is container managed bean good for a big project?
    The question is too vague to be answered. It's a design decision that needs more details.

  • Question on EJB 2.1 using Netbeans 5.5 Beta 2. Cant understand error msg

    "IOP00100006: (BAD_PARAM) Class com.sun.ejb.containers.EJBLocalObjectInvocationHandler is not Serializable"
    org.omg.CORBA.BAD_PARAM:   vmcid: OMG  minor code: 6 completed: Maybe
            at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:996)
            at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:1011)
            at com.sun.corba.ee.impl.orbutil.ORBUtility.throwNotSerializableForCorba(ORBUtility.java:730)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_abstract_interface(CDROutputStream_1_0.java:636)
            at com.sun.corba.ee.impl.encoding.CDROutputStream.write_abstract_interface(CDROutputStream.java:260)
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAbstractObject(Util.java:489)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:721)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:787)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:201)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:570)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:156)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:224)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueWithVersion(ValueHandlerImpl.java:206)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:146)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:787)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:836)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:850)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_abstract_interface(CDROutputStream_1_0.java:631)
            at com.sun.corba.ee.impl.encoding.CDROutputStream.write_abstract_interface(CDROutputStream.java:260)
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAbstractObject(Util.java:489)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.writeObjectOverride(IIOPOutputStream.java:135)
            at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
            at java.util.ArrayList.writeObject(ArrayList.java:569)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.invokeObjectWriter(IIOPOutputStream.java:602)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:568)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:156)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:224)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueWithVersion(ValueHandlerImpl.java:206)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:146)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:787)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:836)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:850)
            at com.sun.corba.ee.impl.encoding.CDROutputStream.write_value(CDROutputStream.java:243)
            at com.sun.corba.ee.impl.copyobject.ORBStreamObjectCopierImpl.copy(ORBStreamObjectCopierImpl.java:43)
            at com.sun.corba.ee.impl.copyobject.ORBStreamObjectCopierImpl.copy(ORBStreamObjectCopierImpl.java:32)
            at com.sun.corba.ee.impl.copyobject.FallbackObjectCopierImpl.copy(FallbackObjectCopierImpl.java:39)
            at com.sun.corba.ee.impl.copyobject.FallbackObjectCopierImpl.copy(FallbackObjectCopierImpl.java:30)
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.copyObject(Util.java:745)
            at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.copyResult(DynamicMethodMarshallerImpl.java:414)
            at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:202)
            at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:119)
            at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:197)
            at ejb._CustomerFacadeRemote_DynamicStub.getAllCustomers(_CustomerFacadeRemote_DynamicStub.java)
            at web.customerList.processRequest(customerList.java:39)
            at web.customerList.doGet(customerList.java:72)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    |#]
    java.rmi.MarshalException: CORBA BAD_PARAM 1330446342 Maybe; nested exception is:
            java.io.NotSerializableException:
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:257)
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.wrapException(Util.java:678)
            at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:218)
            at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:119)
            at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:197)
            at ejb._CustomerFacadeRemote_DynamicStub.getAllCustomers(_CustomerFacadeRemote_DynamicStub.java)
            at web.customerList.processRequest(customerList.java:39)
            at web.customerList.doGet(customerList.java:72)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    Caused by: java.io.NotSerializableException:
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:250)
            ... 33 more
    Caused by: org.omg.CORBA.BAD_PARAM:   vmcid: OMG  minor code: 6 completed: Maybe
            at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:996)
            at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:1011)
            at com.sun.corba.ee.impl.orbutil.ORBUtility.throwNotSerializableForCorba(ORBUtility.java:730)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_abstract_interface(CDROutputStream_1_0.java:636)
            at com.sun.corba.ee.impl.encoding.CDROutputStream.write_abstract_interface(CDROutputStream.java:260)
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAbstractObject(Util.java:489)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:721)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:787)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:201)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:570)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:156)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:224)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueWithVersion(ValueHandlerImpl.java:206)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:146)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:787)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:836)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:850)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_abstract_interface(CDROutputStream_1_0.java:631)
            at com.sun.corba.ee.impl.encoding.CDROutputStream.write_abstract_interface(CDROutputStream.java:260)
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAbstractObject(Util.java:489)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.writeObjectOverride(IIOPOutputStream.java:135)
            at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
            at java.util.ArrayList.writeObject(ArrayList.java:569)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.invokeObjectWriter(IIOPOutputStream.java:602)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:568)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:156)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:224)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueWithVersion(ValueHandlerImpl.java:206)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:146)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:787)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:836)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:850)
            at com.sun.corba.ee.impl.encoding.CDROutputStream.write_value(CDROutputStream.java:243)
            at com.sun.corba.ee.impl.copyobject.ORBStreamObjectCopierImpl.copy(ORBStreamObjectCopierImpl.java:43)
            at com.sun.corba.ee.impl.copyobject.ORBStreamObjectCopierImpl.copy(ORBStreamObjectCopierImpl.java:32)
            at com.sun.corba.ee.impl.copyobject.FallbackObjectCopierImpl.copy(FallbackObjectCopierImpl.java:39)
            at com.sun.corba.ee.impl.copyobject.FallbackObjectCopierImpl.copy(FallbackObjectCopierImpl.java:30)
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.copyObject(Util.java:745)
            at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.copyResult(DynamicMethodMarshallerImpl.java:414)
            at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:202)
            ... 31 moreTo start off, that is my error. I am following this http://www.netbeans.org/kb/50/quickstart-j2ee.html article and so far I can get the entire code working. Netbeans truly makes it easy!
    Now I decided to expand on the example and so I used a caching service locator and added one more finder method to the Customer entity bean (CMP). It is a findAllCustomers method that returns a collection and the EJB QL I entered was as follows:
    SELECT OBJECT(o) FROM Customer oI correspondingly added another business method to the session facade bean and I wrote a servlet that calls upon the caching service locator class and gets a reference to the session facade bean and calls the findAllCustomer method and gets back a List of all Customers. Then it takes the List, sticks it into the HttpServletRequest object and calls sendredirect to a JSP that is the view.
    The JSP is straightforward in that I have a foreach jstl tag that is going to display the customers in a table format. So when I run the code the way it is, what happens when I access that servlet is that the it gets rerouted to the jsp page, but the table does not get displayed...but the above error gets posted in the Netbeans SJSAS console. I have never encountered that kind of error before so i am a bit stumped and don't know how to go about decoding that stacktrace.
    Any pointers or suggestions or solutions (much prefer this one) would be great!
    Thanks a lot. Sorry for the rather long post. If needed I can package up the entire project and send it to you.
    Cheers,
    Surya

    It sounds like you're attempting to pass Local EJB objects over a Remote interface, which is not permitted. EJBLocalObjects can not be passed outside the ejb tier. You'll need to either pull their data out into data access object classes (basically structs) or return EJBObjects.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • HT1338 my mac needs updating-currently 10.5.8, but when i click on software update and it searches it says there are no software updates? any help please

    I updated my iphone to IOS 6 which means i also need to update my itunes. When i tried to do this it said I need to update software but when I click on software update, it searches and then says no updates available. Can anyone help me please? thanky

  • ORA-00372 error after DB backup

    Hello, After performing a backup on tape using Amanda, one of the tablespaces is generating an ORA-00372 error. The DB is 10g1, on Solaris' SunOS 5.10. ORA-01110: data file 6: '[path]/filename.dbf' ORA-00372: file 6 cannot be modified at this time OR

  • Iphoto 9.5 slideshow - custom export

    iphoto 9.5 slideshow - why after upgrade it's impossible to export movie with custom settings? In 9.4.3 it was possible to make .mov with custom settings, and now program alllow only 720p & 1080p for Apple devices!!!

  • Column name changed in reports

    I have to do some changes on my existing report, its really a complex report with more number of columns and tables. now its really hard to fix the alias name changed by report builder automatically. any one could help me to fix this problem, means w

  • Help for Nokia 7610 Supernova White themes

    Hello! First of all, i hope you understand, and i ask you my apologize about my english. I have a nokia 7610 Supernova White, and i've made some downloads of some themes to change. However, when i change the theme, the stand-by mode, when i want to s