Problem Deploying my EJB in JDeveloper3.2

Hi there!!
I'm totally new in EJB. I've been working with JDeveloper3.2. I want to create an EJB to access a SQL Server Database. I did a simple database with just one table named person, which has 3 fields: id, name, and age, so I created a container managed entity bean. And I create EJB/8i deployment profile, using the Business Components Project Wizard, where I specified the database connection using the sun jdbc-odbc bridge to access the data source, I use SQL92 for the SQL Dialect and Java for the Type Map and then the wizard check the connection and it says 'it's ok'. Next I used the EJB/8i deployment Object Wizard, where I specified the name of the deployment object and the Schema Object, where I choosed 'dbo.person' (table name) and finish, but when I click finish the java code generation starts and it produces and exception = java.sql.SQLException:[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid Object Name 'USER_OBJECTS'...What can it be? After that JDeveloper displays the Deployment Profile Wizard, where I specified Project, Roles, Methods, Transactions, Output and Connection, but when I deploy using the given settings an error occurs=[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid Object Name PRODUCT_COMPONENT_VERSION'...I'm using a SQL Server Database, what's the problem? or what can I do? I think this EJB is very simple but it doesn't work, why? Somebody can help, please?
My email is [email protected] I'll thank you a lot!

I forgot it, the file jboLastException.txt contents this:
java.sql.SQLException: ORA-00904: invalid column name
void oracle.jdbc.dbaccess.DBError.throwSqlException(java.lang.String, java.lang.String, int)
void oracle.jdbc.ttc7.TTIoer.processError()
void oracle.jdbc.ttc7.Oall7.receive()
void oracle.jdbc.ttc7.TTC7Protocol.doOall7(byte, byte, int, byte[], oracle.jdbc.dbaccess.DBType[], oracle.jdbc.dbaccess.DBData[], int, oracle.jdbc.dbaccess.DBType[], oracle.jdbc.dbaccess.DBData[], int)
oracle.jdbc.dbaccess.DBColumn[] oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(oracle.jdbc.dbaccess.DBStatement, byte[], oracle.jdbc.dbaccess.DBDataSet)
void oracle.jdbc.driver.OracleStatement.doExecuteQuery()
void oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout()
java.sql.ResultSet oracle.jdbc.driver.OracleStatement.executeQuery(java.lang.String)
boolean oracle.jbo.dt.jdev.ui.deploy.JddDeployPanel.isJboInstalled(java.sql.Connection, int)
oracle.jdeveloper.deployment.model.DeploymentModel oracle.jbo.dt.jdev.ui.deploy.JddDeployPanel.createEJB_EB_RTProfile(oracle.jbo.dt.objects.JboApplication)
void oracle.jbo.dt.jdev.ui.JdCmpEOAddin.invoke(borland.jbuilder.addin.IdeEnvironment, borland.jbuilder.addin.Context)
void oracle.jdeveloper.wizard.ejb.EJBNodeFactory._invoke(borland.jbuilder.addin.IdeEnvironment, borland.jbuilder.addin.Context, java.lang.String)
void oracle.jdeveloper.wizard.ejb.$661.invoke(borland.jbuilder.addin.IdeEnvironment, borland.jbuilder.addin.Context)
void borland.jbuilder.addin.impl.InvokerImpl.run()
void java.lang.Thread.run()

Similar Messages

  • Problem deploying entity ejb CMP

    hello
    when i deploy CMP entity bean in weblogic 5.1
    i get an error "could not make connection to pool"
    i am using oracle thin driver. connection pool
    is created when i start the server but bean could not deploy
    please help
    thanx

    First, set the server to display all logging messages (not just errors), then when you deploy the ejb see what messages happen. I had similar problems when we were deploying on Weblogic 7.0 (with thin Oracle driver).
    Also, be sure you have downloaded the latest Oracle driver classes12.zip file and put it into the weblogic server directory - that can cause problems too.

  • Problem deploying related EJBs in separate JARs

    I have 2 entity EJBs, User and Address, in separate JAR files. The User bean
    has business methods to get and set its related address as follows:
    void setAddressPK(AddressPK newAddress) throws java.rmi.RemoteException;
    AddressPK getAddressPK() java.rmi.RemoteException;
    When I try and load User.jar in the EJB Deployment tool it complains that it
    can't find the AddressPK class. However, I can get round this by explicitly
    adding Address.jar to the classpath.
    When I actually deploy and use the User bean I do NOT need Address.jar on
    the classpath, although I do get warnings during deployment.
    So my question is how do I package and deploy related EJBs. I don't want to
    have to have all my EJBs in the same JAR, nor do I want to have the same
    classes in more than one JAR. Is what I'm doing correct - am I supposed to
    have Address.jar on the classpath? And what about an utility classes that
    are shared between EJBs - where do I put those?
    Thanks in advance,
    Steve.

    I resolved the problem be making sure that my deployment
    jars don't appear in my servlet classpath....
    Jason
    Jeff Wang <[email protected]> wrote in message news:[email protected]...
    In general, if two beans are related (i.e. you can not compile one
    without the other being on the classpath) and they are both deployed
    they should be in the same jar file. If you do not deploy one of them,
    then the undeployed bean can be in the weblogic.class.path with no
    problem.
    I suspect that you are getting a ClassCastException because you have the
    deployment jars in your weblogic.class.path (or java classpath.) Remove
    them, and see if the error is resolved.
    Jeff Wang
    WLCS 2.0 Software Engineer
    Jason Rosenberg wrote:
    Does the same apply for beans of different types? In other words, do
    I need to have an entity bean and a session bean which wraps the entity
    bean in the same jar file?
    I am having a problem accessing a session bean from a JSP servlet. I get
    the dreaded ClassCastException. I don't get this problem, however, if
    I access the session bean directly from a stand-alone java client. It's
    only when I access the session bean via JSP....
    Any ideas?
    Jason
    Jeff Wang <[email protected]> wrote in message news:[email protected]...
    What you should have in the .jar files are:
    the home (say it is called <bean>home.class)
    the remote (say it is called <bean>.class)
    the impl (say it is called <bean>impl.class)
    These are the only ones that should be in the .jar file. (not even the
    PK should be there, for an entity bean.) All the support classes should
    be in weblogic.class.path If you have cross jar dependencies,
    unfortunately, you will have to specify the jar in the
    weblogic.class.path... However, this is not a good idea, as you will
    have 2 class files in memory. At the very least, you will not be able
    to do hot deploy. Depending on your code, you'll have a "class cast
    exception <bean> can not be casted to an object of <bean>" (Something
    like that, I don't have the exact error in front of me.) In your
    example it is probably better to put User and Address in the same jar.
    Jeff Wang
    WLCS 2.0 Software Engineer
    Steve Ward wrote:
    I have 2 entity EJBs, User and Address, in separate JAR files. The User bean
    has business methods to get and set its related address as follows:
    void setAddressPK(AddressPK newAddress) throws java.rmi.RemoteException;
    AddressPK getAddressPK() java.rmi.RemoteException;
    When I try and load User.jar in the EJB Deployment tool it complains that it
    can't find the AddressPK class. However, I can get round this by explicitly
    adding Address.jar to the classpath.
    When I actually deploy and use the User bean I do NOT need Address.jar on
    the classpath, although I do get warnings during deployment.
    So my question is how do I package and deploy related EJBs. I don't want to
    have to have all my EJBs in the same JAR, nor do I want to have the same
    classes in more than one JAR. Is what I'm doing correct - am I supposed to
    have Address.jar on the classpath? And what about an utility classes that
    are shared between EJBs - where do I put those?
    Thanks in advance,
    Steve.

  • Problem deploying an EJB that uses the JCE 1.2.1 api

    We are deploying a JAR file containing all EJBs of our application on
    Weblogic 5.1 SP4 and we're getting a DeploymentException (which is
    fully included at the end of the message).
    We have no problem deploying the same JAR file on WebLogic 5.1 SP8.
    We have isolated each EJB, so that one EJB is pack into is own JAR
    file. We were able to deploy all EJBs but the one using the JCE 1.2.1
    api.
    Is there any issue using JCE 1.2.1 within an EJB under WL SP4 ?
    As I mentionned earlier, everything works fine with SP8 ?
    Any help will be greatly appreciated.
    Patrick
    Complete error dump:
    Fri Dec 21 14:06:07 EST 2001:<E> <EJB> Could not deploy:
    'C:/weblogic/myserver/eportal/EpcWSHBilling.jar': file is not a valid
    jar file, or does not
    contain a valid bean
    weblogic.ejb.common.DeploymentException: DeploymentException opening
    JAR file C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested
    exception is:
    weblogic.ejb.deployment.JarLoadException - with nested
    exception:
    [weblogic.ejb.common.DeploymentException: Problem creating deployment
    C:/weblogic/myserver/eportal/EpcWSHBilling.jar from
    C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested exception is:
            weblogic.ejb.common.DeploymentException: could not read JAR
    file 'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            java.lang.NullPointerException
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            java.lang.NullPointerException
    java.lang.NullPointerException
            at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
            at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
            at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
            at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
            at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
            at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
            at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
            at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
            at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
            at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
            at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
            at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
            at java.lang.reflect.Method.invoke(Native Method)
            at weblogic.Server.startServerDynamically(Server.java:99)
            at weblogic.Server.main(Server.java:65)
            at weblogic.Server.main(Server.java:55)
    weblogic.ejb.common.DeploymentException: Problem creating deployment
    C:/weblogic/myserver/eportal/EpcWSHBilling.jar from
    C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested exception is:
    weblogic.ejb.common.DeploymentException: could not read JAR
    file 'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    java.lang.NullPointerException
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    java.lang.NullPointerException
    java.lang.NullPointerException
    at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
    at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
    at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
    at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
    at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
    at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
    at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
    at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    weblogic.ejb.common.DeploymentException: could not read JAR file
    'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    java.lang.NullPointerException
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    java.lang.NullPointerException
    java.lang.NullPointerException
    at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
    at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
    at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
    at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
    at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
    at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
    at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
    at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:213)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
    at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
    at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
    at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    --------------- nested within: ------------------
    weblogic.ejb.deployment.JarLoadException - with nested exception:
    [weblogic.ejb.common.DeploymentException: Problem creating deployment
    C:/weblogic/myserver/eportal/EpcWSHBilling.jar from
    C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested exception is:
            weblogic.ejb.common.DeploymentException: could not read JAR
    file 'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            java.lang.NullPointerException
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            java.lang.NullPointerException
    java.lang.NullPointerException
            at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
            at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
            at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
            at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
            at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
            at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
            at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
            at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
            at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
            at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
            at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
            at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
            at java.lang.reflect.Method.invoke(Native Method)
            at weblogic.Server.startServerDynamically(Server.java:99)
            at weblogic.Server.main(Server.java:65)
            at weblogic.Server.main(Server.java:55)
    at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:313)
    at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)

    We are deploying a JAR file containing all EJBs of our application on
    Weblogic 5.1 SP4 and we're getting a DeploymentException (which is
    fully included at the end of the message).
    We have no problem deploying the same JAR file on WebLogic 5.1 SP8.
    We have isolated each EJB, so that one EJB is pack into is own JAR
    file. We were able to deploy all EJBs but the one using the JCE 1.2.1
    api.
    Is there any issue using JCE 1.2.1 within an EJB under WL SP4 ?
    As I mentionned earlier, everything works fine with SP8 ?
    Any help will be greatly appreciated.
    Patrick
    Complete error dump:
    Fri Dec 21 14:06:07 EST 2001:<E> <EJB> Could not deploy:
    'C:/weblogic/myserver/eportal/EpcWSHBilling.jar': file is not a valid
    jar file, or does not
    contain a valid bean
    weblogic.ejb.common.DeploymentException: DeploymentException opening
    JAR file C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested
    exception is:
    weblogic.ejb.deployment.JarLoadException - with nested
    exception:
    [weblogic.ejb.common.DeploymentException: Problem creating deployment
    C:/weblogic/myserver/eportal/EpcWSHBilling.jar from
    C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested exception is:
            weblogic.ejb.common.DeploymentException: could not read JAR
    file 'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            java.lang.NullPointerException
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            java.lang.NullPointerException
    java.lang.NullPointerException
            at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
            at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
            at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
            at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
            at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
            at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
            at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
            at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
            at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
            at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
            at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
            at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
            at java.lang.reflect.Method.invoke(Native Method)
            at weblogic.Server.startServerDynamically(Server.java:99)
            at weblogic.Server.main(Server.java:65)
            at weblogic.Server.main(Server.java:55)
    weblogic.ejb.common.DeploymentException: Problem creating deployment
    C:/weblogic/myserver/eportal/EpcWSHBilling.jar from
    C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested exception is:
    weblogic.ejb.common.DeploymentException: could not read JAR
    file 'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    java.lang.NullPointerException
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    java.lang.NullPointerException
    java.lang.NullPointerException
    at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
    at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
    at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
    at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
    at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
    at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
    at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
    at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    weblogic.ejb.common.DeploymentException: could not read JAR file
    'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    java.lang.NullPointerException
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
    java.lang.NullPointerException
    java.lang.NullPointerException
    at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
    Compiled Code)
    at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
    at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
    at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
    at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
    at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
    at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
    at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
    at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:213)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
    at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
    at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
    at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    --------------- nested within: ------------------
    weblogic.ejb.deployment.JarLoadException - with nested exception:
    [weblogic.ejb.common.DeploymentException: Problem creating deployment
    C:/weblogic/myserver/eportal/EpcWSHBilling.jar from
    C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested exception is:
            weblogic.ejb.common.DeploymentException: could not read JAR
    file 'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            java.lang.NullPointerException
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
    is:
            java.lang.NullPointerException
    java.lang.NullPointerException
            at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
    Compiled Code)
            at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
            at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
            at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
            at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
            at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
            at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
            at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
            at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
            at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
            at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
            at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
            at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
            at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
            at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
            at java.lang.reflect.Method.invoke(Native Method)
            at weblogic.Server.startServerDynamically(Server.java:99)
            at weblogic.Server.main(Server.java:65)
            at weblogic.Server.main(Server.java:55)
    at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:313)
    at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)

  • Problems deploying an EJB....

    When attempting to deploy a very simple EJB using JDeveloper 3.2.2 onto a 8.1.7 database I'm getting the following error.
    Loading EJB Jar file and Comm Stubs Jar file...done
    Generating EJBHome and EJBObject on the server...
    Message [IOEXCEPTION_DESERIALIZING] not found in 'oracle.aurora.ejb.deployment.server.Messages'.
    *** Errors occurred while deploying the EJB to 8i JVM ***
    Anyone got any ideas....
    Cheers
    Matt

    Apologies for the post - I've found the problem/solution on another forum.
    http://technet.oracle.com:89/ubb/Forum18/HTML/001116.html
    Cheers
    Matt
    null

  • Problem deploying EJB to Oracle 8.1.7

    Hi,
    I'm facing a problem while deploying EJB on to Oracle 8i.
    I'm using oracle 8.1.7 under Linux (RedHat 7.0).
    Also I'm using JDeveloper 3.2.2 (working under Windows NT)
    JDeveloper came with JDK version 1.2.2, but I'm using
    JDK 1.3(to use connection pooling).
    Classes compiled and says it is error free.
    But when I try to deploy this it gives me an error message saying
    Compilation errors in oracle/aurora/ejb/gen/dbAccess_dbEJB/EjbHome_DataAccessEJBHome:ORA-29535: source requires recompilation
    oracle/aurora/ejb/gen/dbAccess_dbEJB/EjbHome_DataAccessEJBHome:50: Exception java.lang.Exception must be caught, or it must be declared in the throws clause of this method.
    Info: 1 errors
    *** Errors occurred while deploying the EJB to 8i JVM ***
    ie. When I start deploying
    after it generates descriptors it displays message as below
    Reading Deployment Descriptor...done
    Verifying Deployment Descriptor...done
    Gathering users...done
    Generating Comm Stubs...................................................done
    Compiling Stubs...done
    Generating Jar File...done
    Loading EJB Jar file and Comm Stubs Jar file...done
    Generating EJBHome and EJBObject on the server...
    Compilation errors in oracle/aurora/ejb/gen/dbAccess_dbEJB/EjbHome_DataAccessEJBHome:ORA-29535: source requires recompilation
    oracle/aurora/ejb/gen/dbAccess_dbEJB/EjbHome_DataAccessEJBHome:50: Exception java.lang.Exception must be caught, or it must be declared in the throws clause of this method.
    Info: 1 errors
    *** Errors occurred while deploying the EJB to 8i JVM ***
    *** Deployment completed ***
    Later I copied aurora_client.zip from Linux on to JDeveloper version.
    Still I get the same error.
    Any idea?
    Expecting your valuable suggestions.
    Thanks,
    Rajeev Mancheril.
    null

    I am wondering about the classes in the database. This is from metalink.
    SELECT count(*)
    FROM dba_objects
    WHERE object_type LIKE '%JAVA%';
    If the above query returns a number < 4000, the installation was not
    successful.
    The query below checks for any invalid Java classes using a Java stored procedure:
    SELECT dbms_java.longname(name)
    FROM sys.obj$
    WHERE type# = 29 and status != 1;
    If the above query fails or returns any rows, then something is wrong with the JVM installation.
    You can also test the Jserver by using the examples in
    $OH/javavm/demo/examples/corba/basic/helloworld
    or
    $OH/javavm/demo/examples/ejb/basic/helloworld
    To compile classes in the database
    Alter Java Class " Name of the java class" compile;
    Linda
    null

  • Problems deploying a simple EJB on Weblogic 8.1 using JDeveloper

    Hey guys,
    Title says it all. First I had one problem in that I could not test the connection to the Weblogic server. I moved the weblogic.jar file into the lib/ext folder and that test worked then. After that I wrote the EJB...a very simple one...and I followed the http://dev2dev.bea.com/pub/a/2006/01/wls-jdeveloper.html?page=1 tutorial so far. But when it came time to deploy the ejb to the server, I am getting this funky error:
    ERROR: ejbc found errors while processing the descriptor for C:\oracle\jdeveloper\jdev\mywork\WeblogicApp\EchoEJB\deploy\ejb1.jar:
    ERROR: Error from ejbc: Error processing 'META-INF/ejb-jar.xml': XML document does not appear to contain a properly formed DOCTYPE header
    Honestly I am confused now...any one encounter that error?
    Thanks for all replies.
    Cheers

    So I added the DOCTYPE and now I get another error. And that is as follows:
    ERROR: Error from ejbc: Error parsing file 'META-INF/ejb-jar.xml' at line: 5 column: 219. Attribute "xmlns:xsi" must be declared for element type "ejb-jar".
    It seems that when the EJB is created, then it automatically creates the appropriate ejb-jar.xml and for some reason I guess the one it is creating this time is not good enough for Weblogic because first the DOCTYPE was missing and then after inserting the DOCTYPE I am getting the above error. Any help would be appreciated. This is the first time I am using Weblogic and this is a rather disheartening amount of progress I have made since last night! ;(
    Thanks in advance for any help. If I am doing something silly please point it out so I can learn!
    Cheers,
    Surya

  • Problem deploying EJBs

    Hi,
    I am deploying the examples EJBs (where the EJB is the "<name>EJB.sqlj", the compilation seems to be fine, but I have some problems when deploying, the message is as following:
    Exception in thread "main" java.lang.ClassCastException: com.sun.CORBA.iiop.ORB
    at oracle.aurora.jndi.orb_dep.IRFinder.getObject(IRFinder.java:24)
    at oracle.aurora.jndi.orb_dep.IRFinder.initialReferences(IRFinder.java:7
    8)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.initialContext(SessionCtx.jav
    a:499)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.<init>(SessionCtx.java:35)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(ServiceCtx.java
    :130)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.login(ServiceCtx.java:295)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.initializeSession(ToolI
    mpl.java:101)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.parseStdArgs(ToolImpl.j
    ava, Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(ToolImpl.java:12
    1)
    at oracle.aurora.ejb.deployment.GenerateEjb.main(GenerateEjb.java:445)
    I am running Oracle 8.1.5, have already installed the new transator, it works for the other examples, as well as for the EJBs, but I cannot deploy it...
    When I try to check the jar with the deployment tool provided by java, it is telling me that the jar is invalid?
    Any comments will be welcome...
    Regards
    GOD BLESS
    Chris
    null

    Raghu
    Indeed that was the problem, and thanks to you I could successfully deploy my EJBs to OC4J. But now I have other problem.
    As I said, I am writing a simple app where a Java client access a EJB in OC4J, running both in the same machine. Below is part of the code of the client:
    package seg;
    import java.rmi.*;
    public class GrupoCliente {
    public GrupoCliente() {
    public static void main(String[] args) {
    try {
    GrupoHome home = (GrupoHome)Naming.lookup("Grupo");
    I am getting this error when I run it:
    java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
         java.net.ConnectException: Connection refused: connect
    What am I missing now? Furthermore, how I control which clients will be able to access which EJBs in OC4J (authentication)? It seems to me that this is a security-related problem...
    Thanks again!
    Luis Cabral

  • Problems deploying EJB on a oracle 8i server

    We are trying to deploy a EJB on a oracle 8i server. We crossposted this question in BI Beans forum also.
    For doing so we are using the following command:
    "deployejb -republish -temp temp -u sys -p sys -s sess_iiop://NLWS122:2481:
    LOKAAL -descriptor AQServerReceive.ejb AQServerReceive.jar"
    It seems that everything goes allright (we can trace the classes in the database) but we get this message:
    Reading Deployment Descriptor...done
    Verifying Deployment Descriptor...done
    Gathering users...done
    Generating Comm Stubs.............................................done
    Compiling Stubs...done
    Generating Jar File...done
    Loading EJB Jar file and Comm Stubs Jar file...Exception in thread "main" org.om
    g.CORBA.COMM_FAILURE: java.io.IOException: Peer disconnected socket minor code:
    0 completed: No
    at com.visigenic.vbroker.orb.TcpConnection.read(TcpConnection.java, Compiled Code)
    at com.visigenic.vbroker.orb.GiopConnectionImpl.receive_message(GiopConnectionImpl.java:436)
    at com.visigenic.vbroker.orb.GiopConnectionImpl.receive_reply(GiopConnectionImpl.java, Compiled Code)
    at com.visigenic.vbroker.orb.GiopStubDelegate.invoke(GiopStubDelegate.java:562)
    at com.visigenic.vbroker.orb.GiopStubDelegate.invoke(GiopStubDelegate.java:503)
    at com.inprise.vbroker.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:60)
    at oracle.aurora.AuroraServices._st_JISLoadJava.add(_st_JISLoadJava.java, Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.Loadjava.add(Loadjava.java:137)
    at oracle.aurora.server.tools.sess_iiop.Loadjar.loadAndCreate(Loadjar.java, Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.Loadjar.invoke(Loadjar.java, Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.Loadjava.<init>(Loadjava.java, Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.Loadjar.<init>(Loadjar.java:52)
    at oracle.aurora.ejb.deployment.GenerateEjb.invoke(GenerateEjb.java:560)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(ToolImpl.java:143)
    at oracle.aurora.ejb.deployment.GenerateEjb.main(GenerateEjb.java:575)
    What could be the problem?
    More info:
    We are trying to get the example in the white paper 275199.pdf (Building Internet Applications with Oracle Forms 6i and Oracle8i) working.
    Thx for helping.

    Hi Ralph,
    I don't know if you are aware of this, but Oracle has replaced
    the database embedded EJB container (a.k.a. "aurora") with an
    external EJB container named OC4J (Oracle Containers for J2EE).
    OC4J is available in both stand-alone version and as part of Oracle's
    application server product: 9iAS. Although the database embedded
    EJB container still exists in the latest database versions (as
    far as I know), Oracle has -- for a long time, now -- been discouraging
    its use in favour of OC4J.
    More information on OC4J is available from:
    http://technet.oracle.com/tech/java/oc4j/content.html
    Good Luck,
    Avi.

  • Problem regarding Deployment of EJB jar file

    I am getting the following problem when i am trying to deploy my EJB on to the Weblogic 8.1 using the EjbModules option.
    Please help me
    Exception:weblogic.management.ApplicationException: prepare failed for mybank Module: mybank Error: Exception preparing module: EJBModule(mybank,status=NEW) Unable to deploy EJB: E:\OnlineBanking\mybank\mybank.jar from mybank.jar: weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml: Class bytes found but defineClass()failed for: 'mybankEJB' at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(Lweblogic.management.descriptors.toplevel.EJBDescriptorMBean;Lweblogic.utils.classloaders.GenericClassLoader;)V(MBeanDeploymentInfoImpl.java:550) at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(Lweblogic.management.descriptors.toplevel.EJBDescriptorMBean;Lweblogic.utils.classloaders.GenericClassLoader;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Lweblogic.utils.jars.VirtualJarFile;)V(MBeanDeploymentInfoImpl.java:232) at weblogic.ejb20.deployer.EJBDeployer.prepare(Lweblogic.utils.jars.VirtualJarFile;Ljava.lang.ClassLoader;Lweblogic.management.descriptors.toplevel.EJBDescriptorMBean;Ljavax.naming.Context;Ljava.util.Map;)V(EJBDeployer.java:1302) at weblogic.ejb20.deployer.EJBModule.prepare(Ljava.lang.ClassLoader;)V(EJBModule.java:498) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(Lweblogic.utils.classloaders.GenericClassLoader;Lweblogic.j2ee.J2EEApplicationContainer$Component;Z)V(J2EEApplicationContainer.java:3101) at weblogic.j2ee.J2EEApplicationContainer.prepareModules([Lweblogic.j2ee.J2EEApplicationContainer$Component;Ljava.lang.String;Z)V(J2EEApplicationContainer.java:1560) at weblogic.j2ee.J2EEApplicationContainer.prepare([Lweblogic.j2ee.J2EEApplicationContainer$Component;[Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)V(J2EEApplicationContainer.java:1208) at weblogic.j2ee.J2EEApplicationContainer.prepare(Ljava.lang.String;[Lweblogic.management.configuration.ComponentMBean;[Ljava.lang.String;)V(J2EEApplicationContainer.java:1051) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer()V(SlaveDeployer.java:2444) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer()Z(SlaveDeployer.java:2394) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare()V(SlaveDeployer.java:2310) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Lweblogic.management.deploy.OamVersion;Lweblogic.management.runtime.DeploymentTaskRuntimeMBean;Z)V(SlaveDeployer.java:866) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(Lweblogic.management.deploy.OamDelta;Lweblogic.management.deploy.OamVersion;ZLjava.lang.StringBuffer;)Z(SlaveDeployer.java:594) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(Ljava.util.ArrayList;Z)V(SlaveDeployer.java:508) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(Lweblogic.kernel.ExecuteThread;)V(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178) at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    In addition to the JavaEE Tutorial link above, Sun Java System Application Server 9.0 Documentation is here:
    http://docs.sun.com/app/docs/coll/1343.3
    -cheng

  • Problem using, deploying an EJB

    Hi All,
    I have been trying to compile and run my first EJB in NetBeans. It is a very simple EJB which goes like this.
    package test;
    import javax.ejb.Stateless;
    * @author Vibhushan
    @Stateless
    public class NewSessionBean implements NewSessionRemote, NewSessionLocal {
    /** Creates a new instance of NewSessionBean */
    public NewSessionBean() {
    public String businessMethod() {
    //TODO implement businessMethod
    return "hi all";
    After this I am trying to use this EJB in enterprise client, the code over there is following.
    package applicationclient1;
    import javax.ejb.EJB;
    import test.NewSessionRemote;
    * @author Vibhushan
    public class Main {
    @EJB
    private static NewSessionRemote newSessionBean;
    /** 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
    newSessionBean.businessMethod();
    After deploying the EJB on Sun Java App Server when i try to use the Client it always throws the following exception. Please help to sove this I have tried all the wired things I even reinstalled my app server and netbeans IDE but it never worked. I hope that experts here will be able to help me
    Thanks in advance
    Jul 16, 2007 11:36:00 PM com.sun.enterprise.appclient.MainWithModuleSupport <init>
    WARNING: ACC003: Application threw an exception.
    java.lang.NullPointerException
    at applicationclient1.Main.main(Main.java:33)
    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 com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:232)
    at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:329)
    at com.sun.enterprise.appclient.Main.main(Main.java:180)
    Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:340)
    at com.sun.enterprise.appclient.Main.main(Main.java:180)
    Caused by: 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 com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:232)
    at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:329)
    ... 1 more
    Caused by: java.lang.NullPointerException
    at applicationclient1.Main.main(Main.java:33)
    ... 7 more
    Java Result: 1

    The main reason the newSessionBean reference would be null is if the lookup of the Remote
    EJB was not successful. Sometimes an IDE will generate a global JNDI name for the Remote EJB.
    If it does, you need to make sure the client Remote EJB reference uses the same name.
    First look at the configuration of the NewSessionBean. Is there a sun-ejb-jar.xml for it? If so, look
    to see if there's a <jndi-name> assigned to this EJB. If so, update the @EJB in the Application Client
    to point to the same global jndi-name using the mappedName attribute :
    @EJB(mappedName="<insert-global-jndi-name>")
    private static NewSessionRemote newSessionBean;
    You can find more information on global JNDI names and @EJB in our EJB FAQ :
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html

  • How deploy the EJB in security on the Sun Java System Application Server 9?

    I hava deploied a simple Hello EJB Object on PE 9(Sun Java System Application Server Platform Edition 9). I can use this EJB object without user name an password On any client. See the following code section:
         public static void main(String[] args) {
              try{
                   Properties props = System.getProperties();
                   props.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.enterprise.naming.SerialInitContextFactory");
                   props.put(Context.PROVIDER_URL,"iiop://localhost:3700");
                   Context ctx = new InitialContext(props);
                   Hello h = (Hello) ctx.lookup("ejb/test/Hello");
                   System.out.println(h.sayHello());
              }catch(Exception e){
                   e.printStackTrace();
    Please tell me how deploy the EJB in security on the Sun Java System Application Server 9? So that, The client must set the user name and password when lookup the ejb object. Like the following:
    props.put(Context.SECURITY_PRINCIPAL,"admin")
    props.put(Context.SECURITY_CREDENTIALS,"1234");

    Guys,
    I too have the same issue. If anyone has an answer, please let me know.
    Is this GlassFish problem? or Prgram issue?
    Find below the source code
    package TransactionSecurity.bean;
    import javax.annotation.Resource;
    import javax.annotation.security.DeclareRoles;
    import javax.annotation.security.PermitAll;
    import javax.annotation.security.RolesAllowed;
    import javax.ejb.Remote;
    import javax.ejb.SessionContext;
    import javax.ejb.Stateless;
    import javax.ejb.TransactionAttribute;
    import javax.ejb.TransactionAttributeType;
    @Stateless
    @Remote(TSCalculator.class)
    @DeclareRoles({"student", "teacher"})
    public class TSCalculatorBean implements TSCalculator {
         private @Resource SessionContext ctx;
         @PermitAll
    //     @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
         public int add(int x, int y) {
              System.out.println("CalculatorBean.add  Caller Principal:" + ctx.getCallerPrincipal().getName());
              return x + y;
         @RolesAllowed( { "student" })
         public int subtract(int x, int y) {
              System.out.println("CalculatorBean.subtract  Caller Principal:" + ctx.getCallerPrincipal().getName());
              System.out.println("CalculatorBean.subtract  isCallerInRole:" + ctx.isCallerInRole("student"));
              return x - y;
         @RolesAllowed( { "teacher" })
         public int divide(int x, int y) {
              System.out.println("CalculatorBean.divide  Caller Principal:" + ctx.getCallerPrincipal().getName());
              System.out.println("CalculatorBean.divide  isCallerInRole:" + ctx.isCallerInRole("teacher"));
              return x / y;
    package TransactionSecurity.bean;
    import javax.ejb.Remote;
    @Remote
    public interface TSCalculator {
            public int add(int x, int y);
            public int subtract(int x, int y);
            public int divide(int x, int y);
    package TransactionSecurity.client;
    import java.util.Properties;
    import javax.ejb.EJBAccessException;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import TransactionSecurity.bean.TSCalculator;
    public class TSCalculatorClient {
         public static void main(String[] args) throws Exception {
              // Establish the proxy with an incorrect security identity
              Properties env = new Properties();
              env.setProperty(Context.SECURITY_PRINCIPAL, "kabir");
              env.setProperty(Context.SECURITY_CREDENTIALS, "validpassword");
            env.setProperty(Context.INITIAL_CONTEXT_FACTORY,"com.sun.appserv.naming.S1ASCtxFactory");
            env.setProperty(Context.PROVIDER_URL,"iiop://127.0.0.1:3700");
            env.setProperty("java.naming.factory.initial","com.sun.enterprise.naming.SerialInitContextFactory");
            env.setProperty("java.naming.factory.url.pkgs","com.sun.enterprise.naming");
            env.setProperty("java.naming.factory.state","com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
            env.setProperty("org.omg.CORBA.ORBInitialHost", "127.0.0.1");
            env.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
              InitialContext ctx = new InitialContext(env);
              TSCalculator calculator = null;
              try {
                   calculator = (TSCalculator) ctx.lookup(TSCalculator.class.getName());
              } catch (Exception e) {
                   System.out.println ("Error in Lookup");
                   e.printStackTrace();
                   System.exit(1);
              System.out.println("Kabir is a student.");
              System.out.println("Kabir types in the wrong password");
              try {
                   System.out.println("1 + 1 = " + calculator.add(1, 1));
              } catch (EJBAccessException ex) {
                   System.out.println("Saw expected SecurityException: "
                             + ex.getMessage());
              System.out.println("Kabir types in correct password.");
              System.out.println("Kabir does unchecked addition.");
              // Re-establish the proxy with the correct security identity
              env.setProperty(Context.SECURITY_CREDENTIALS, "validpassword");
              ctx = new InitialContext(env);
              calculator = (TSCalculator) ctx.lookup(TSCalculator.class.getName());
              System.out.println("1 + 1 = " + calculator.add(1, 1));
              System.out.println("Kabir is not a teacher so he cannot do division");
              try {
                   calculator.divide(16, 4);
              } catch (javax.ejb.EJBAccessException ex) {
                   System.out.println(ex.getMessage());
              System.out.println("Students are allowed to do subtraction");
              System.out.println("1 - 1 = " + calculator.subtract(1, 1));
    }The user kabir is created in the server and this user belongs to the group student.
    Also, I have enabled the "Default Principal To Role Mapping"
    BTW, I'm able to run other EJB3 examples [that does'nt involve any
    security features] without any problems.
    Below is the ERROR
    Error in Lookupjavax.naming.NamingException: ejb ref resolution error for remote business interfaceTransactionSecurity.bean.TSCalculator [Root exception is java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
         org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0  completed: No
         at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.handle_null_service_context(SecServerRequestInterceptor.java:407)
         at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.receive_request(SecServerRequestInterceptor.java:429)
         at com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeServerInterceptorIntermediatePoint(InterceptorInvoker.java:627)
         at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeServerPIIntermediatePoint(PIHandlerImpl.java:530)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.getServantWithPI(CorbaServerRequestDispatcherImpl.java:406)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:224)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1846)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1706)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1088)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:223)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    ----------END server-side stack trace----------  vmcid: 0x0  minor code: 0  completed: No]
         at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:425)
         at com.sun.ejb.containers.RemoteBusinessObjectFactory.getObjectInstance(RemoteBusinessObjectFactory.java:74)
         at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
         at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:403)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at TransactionSecurity.client.TSCalculatorClient.main(TSCalculatorClient.java:35)
    Caused by: java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
         org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0  completed: No
         at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.handle_null_service_context(SecServerRequestInterceptor.java:407)
         at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.receive_request(SecServerRequestInterceptor.java:429)
         at com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeServerInterceptorIntermediatePoint(InterceptorInvoker.java:627)
         at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeServerPIIntermediatePoint(PIHandlerImpl.java:530)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.getServantWithPI(CorbaServerRequestDispatcherImpl.java:406)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:224)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1846)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1706)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1088)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:223)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    ----------END server-side stack trace----------  vmcid: 0x0  minor code: 0  completed: No
         at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:277)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:205)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
         at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:225)
         at com.sun.ejb.codegen._GenericEJBHome_Generated_DynamicStub.create(com/sun/ejb/codegen/_GenericEJBHome_Generated_DynamicStub.java)
         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.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:372)
         ... 5 more
    Caused by: org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0  completed: No
         at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.handle_null_service_context(SecServerRequestInterceptor.java:407)
         at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.receive_request(SecServerRequestInterceptor.java:429)
         at com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeServerInterceptorIntermediatePoint(InterceptorInvoker.java:627)
         at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeServerPIIntermediatePoint(PIHandlerImpl.java:530)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.getServantWithPI(CorbaServerRequestDispatcherImpl.java:406)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:224)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1846)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1706)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1088)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:223)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    ----------END server-side stack trace----------  vmcid: 0x0  minor code: 0  completed: No
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:913)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:131)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:685)
         at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:472)
         at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:363)
         at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:219)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:192)
         ... 13 moreAny help is appreciated.
    Regards!
    Nithi.
    Edited by: EJB3 on Aug 17, 2008 8:17 PM

  • Problem with jikes & EJB

    I've been experiencing a problem using jikes to compile EJBs. Has anyone
    has this type of problem and is there a known fix?
    The beans seem to compile fine, but I get an error when trying to deploy
    them. Here's the error:
    weblogic.ejb.common.DeploymentException: Unexpected I/O exception during
    deployment:
    weblogic.ejb.common.DeploymentException: Problem deploying a bean:
    java.lang.VerifyError: (class:
    com/criatech/contractstation/party/provider/PartyManagerBeanEOImpl_ServiceSt
    ub, method: ensureInitialized signature: ()V) Illegal target of jump or
    branch
    at java.lang.Class.getConstructor0(Native Method)
    at java.lang.Class.getConstructor(Class.java:886)
    Thoughts?
    - Doug

    That seems to be the problem. It only happens on one bean which is a very
    large one. It appears to work ok with the javac 1.3 compiler, but no luck
    with jikes. It's unfortunate, because jikes is SO much faster.
    At least I know someone else is seeing this problem. Thanks for the info.
    - Doug
    "Toby Allsopp" <[email protected]> wrote in message
    news:[email protected]..
    Hi.
    This sounds a bit like a problem we were having when compiling one of the
    generated classes for a bean with a huge number of methods (~400). The
    ensureInitialised method (I think, it might be a different method now -the
    name of the class changes in every WLS version) got so big that some ofthe
    jump instructions needed to become wide jump instructions but both javacand
    jikes got it wrong.
    For us, the workaround was (and still is) to use kjc(http://www.dms.at/kopi/)
    to compile the generated classes.
    This may or may not be your problem, however.
    Toby.
    Doug Cunningham wrote:
    I've been experiencing a problem using jikes to compile EJBs. Has
    anyone
    has this type of problem and is there a known fix?
    The beans seem to compile fine, but I get an error when trying to deploy
    them. Here's the error:
    weblogic.ejb.common.DeploymentException: Unexpected I/O exception during
    deployment:
    weblogic.ejb.common.DeploymentException: Problem deploying a bean:
    java.lang.VerifyError: (class:
    com/criatech/contractstation/party/provider/PartyManagerBeanEOImpl_ServiceSt
    ub, method: ensureInitialized signature: ()V) Illegal target of jump or
    branch
    at java.lang.Class.getConstructor0(Native Method)
    at java.lang.Class.getConstructor(Class.java:886)
    Thoughts?
    - Doug

  • Urgent!!! problems deploying BC4J to Oracle 8i

    I have the following problem deploying BC4J to Oracle 8i as EJB :
    When I tried to deploy as an EJB following the guidelines in the following help page:
    Contents help--> Developing Business Components-->Deploying Business Components-->Creating Deployment Profiles and Deploying
    I get the following error :
    An exception occurred during code generation: Class not found: bc4jEjbtrial.common.ejb.DeptAppModHome.class
    *** Errors occurred while deploying the EJB to JServer ***
    Could someone please tell me where I am possibly going wrong?

    What version of jdev are you running? The Bc4jtrial package sounds suspicious.
    Thanks
    Blaise

  • Problem deploying tc/SL/CMS/PCS

    hi,
    I have the problem deploying the JDI. The WEB AS 7.0 has SP09 the JDI files also.
    I have got this error messge.
    Starting Deployment of tc/SL/CMS/PCS
    Aborted: development component 'tc/SL/CMS/PCS'/'sap.com'/'SAP AG'/'6.4009.00.0000.20040923175519.0000'/'1', grouped by software component 'SAP_DEVINF'/'sap.com'/'SAP AG'/'1000.6.40.9.0.20041022114750''/'1':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application sap.com/tcSLCMSPCS.. Reason: Incorrect application sap.com/tcSLCMSPCS:Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getChangeRequest.Error in bean CmsOrganizerProxy: The business method restartExportByChangelists in the local interface throws java.rmi.RemoteException or a subclass of it. The throws clause of any method in the local interface must not include the java.rmi.RemoteException.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method restartExportByChangelists.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getRequestMaskForWorkspace.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getUnfinishedChangeRequests.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getUnfinishedChangeRequests.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getUnfinishedChangeRequests.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getFinishedChangeRequests.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getFinishedChangeRequests.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getFinishedChangeRequests.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getChangeListsOfChangeRequest.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getComponentLocation.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method readSystemMessages.; nested exception is:      com.sap.engine.services.deploy.container.DeploymentException: <--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='com.sap.engine.services.ejb.exceptions.deployment.EJBDeploymentException: Incorrect application sap.com/tcSLCMS~PCS:Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getChangeRequest.Error in bean CmsOrganizerProxy: The business method restartExportByChangelists in the local interface throws java.rmi.RemoteException or a subclass of it. The throws clause of any method in the local interface must not include the java.rmi.RemoteException.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method restartExportByChangelists.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getRequestMaskForWorkspace.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getUnfinishedChangeRequests.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getUnfinishedChangeRequests.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getUnfinishedChangeRequests.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getFinishedChangeRequests.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getFinishedChangeRequests.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getFinishedChangeRequests.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getChangeListsOfChangeRequest.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getComponentLocation.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method readSystemMessages.
         at com.sap.engine.services.ejb.deploy.verifier.Verifier.check(Verifier.java:66)
         at com.sap.engine.services.ejb.deploy.DeployAdmin.generate(DeployAdmin.java:253)
         at com.sap.engine.services.ejb.EJBAdmin.deploy(EJBAdmin.java:2144)
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:606)
         at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:321)
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:307)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:292)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:326)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3184)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:553)
         at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1555)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    ', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key com.sap.engine.services.ejb.exceptions.deployment.EJBDeploymentException: Incorrect application sap.com/tcSLCMS~PCS:Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getChangeRequest.Error in bean CmsOrganizerProxy: The business method restartExportByChangelists in the local interface throws java.rmi.RemoteException or a subclass of it. The throws clause of any method in the local interface must not include the java.rmi.RemoteException.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method restartExportByChangelists.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getRequestMaskForWorkspace.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getUnfinishedChangeRequests.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getUnfinishedChangeRequests.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getUnfinishedChangeRequests.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getFinishedChangeRequests.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getFinishedChangeRequests.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getFinishedChangeRequests.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getChangeListsOfChangeRequest.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method getComponentLocation.Error in the local interface com.sap.cms.pcs.organizer.proxy.LocalCmsOrganizerProxy of bean CmsOrganizerProxy: No corresponding business method in the bean class was found for method readSystemMessages.
         at com.sap.engine.services.ejb.deploy.verifier.Verifier.check(Verifier.java:66)
         at com.sap.engine.services.ejb.deploy.DeployAdmin.generate(DeployAdmin.java:253)
         at com.sap.engine.services.ejb.EJBAdmin.deploy(EJBAdmin.java:2144)
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:606)
         at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:321)
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:307)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:292)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:326)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3184)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:553)
         at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1555)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment of tc/SL/CMS/PCS finished with Error (Duration 10375 ms)
    thanks in advance
    regards
    Milen

    Hi Pete,
    the version of your SAPDEVINF is SP9 Patch Level 0 build at 2nd November 2004.
    Do you want to install SP9? If not get a newer version from service marketplace.
    You can see the version and time here:
    SAPDEVINF<b>09_0</b>.SCA
    and here
    sap.com'/'SAP AG'/'6.40<b>09.00</b>.0000.<b>20041102</b>104825.0000
    Regards
    Helmut

Maybe you are looking for