EJB Deployment Problem for Stateless Session with Multiple ejbCreate

In weblogic server if I use multiple ejbCreate with different parameters it is found
to raise error with error message :
<Error deploying application cart:
Unable to deploy EJB: cart.jar from cart.jar:
     In EJB CartBean, the stateless session bean class must define a single ejbCreate
method that takes no parameters.
     at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:256)
     at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:220)
     at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:453)
     at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:410)
     at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:203)
     at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:296)
     at weblogic.ejb20.deployer.Deployer.compileEJB(Deployer.java:676)
     at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:843)
     at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:30)
     at weblogic.j2ee.Application.addComponent(Application.java:160)
     at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
     at ......
Code example...
public void ejbCreate() throws CreateException {}
public void ejbCreate(String person) throws CreateException {
// code here
public void ejbCreate(String person, String id) throws CreateException {
// code here
the code above is found ok in J2ee Ref. Implementation and able to deploy. Why this
is not deployable in Weblogic(tried in 6.1).is it a required condition for stateless
session bean
to have only single ejbcreate with no parameters ?
Can somebody explain? and is there a way out to overcome this constraint if so in
weblogic
with regards
Ganeshan Kalembeth

Stateless session beans may define only a single create() method with no
suffix
and no arguments.
Michael Jouravlev wrote:
"Ganeshan Kalembeth" <[email protected]> wrote in message
news:3ce28a88$[email protected]..
In weblogic server if I use multiple ejbCreate with different parametersit is found
to raise error with error message :
<Error deploying application cart:
Unable to deploy EJB: cart.jar from cart.jar:
In EJB CartBean, the stateless session bean class must define a singleejbCreate
method that takes no parameters.
atweblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.ja
va:256)
atweblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBCompli
anceChecker.java:220)
atweblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:453)
at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:410)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:203)
at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:296)
at weblogic.ejb20.deployer.Deployer.compileEJB(Deployer.java:676)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:843)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:30)
at weblogic.j2ee.Application.addComponent(Application.java:160)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at ......
Code example...
public void ejbCreate() throws CreateException {}
public void ejbCreate(String person) throws CreateException {
// code here
public void ejbCreate(String person, String id) throws CreateException {
// code here
the code above is found ok in J2ee Ref. Implementation and able to deploy.Why this
is not deployable in Weblogic(tried in 6.1).is it a required condition forstateless
session bean
to have only single ejbcreate with no parameters ?
Can somebody explain? and is there a way out to overcome this constraintif so in
weblogic
with regards
Ganeshan KalembethRTFM EJB 2.0 Spec, chapter 7.8

Similar Messages

  • Is it possible to restrict the object creation for stateless session beans

    Hi,
    Is it possible to restrict/fix the ejb object creation for stateless session beans in application server?
    For example, i want to configure the application server ( am using JBOSS ) to create maximum of 10 session bean objects. and if any requests for the stateless session bean come, as application server has created 10 objects, the requests should be blocked.
    Thanks in advance,
    nvseenu

    You can keep a counter in the application code. A static var won't work, but an entity and a consistent id should. This version would affect performance, but it would be portable to other app servers.
    // ConstrainedBean.java
    package unq.ejb;
    import javax.ejb.Stateless;
    import javax.ejb.CreateException;
    import javax.annotation.PostConstruct;
    import javax.annotation.PreDestroy;
    import javax.persistence.PersistenceContext;
    import javax.persistence.EntityManager;
    @Stateless
    public class ConstrainedBean implements Constrained {
        final static int DEFAULT_COUNTERID = 1;
        @PersistenceContext EntityManager em;
        @PostConstruct
        protected void init() throws CreateException {
         ConstrainedBeanCounter counter =
             em.find(ConstrainedBeanCounter.class, DEFAULT_COUNTERID);
         if( counter == null ) {
             counter = new ConstrainedBeanCounter();
             counter.counterId = 1;
             counter.counterValue = 0;
             em.persist(counter);
         if( counter.atMaximum() ) {
             throw new CreateException("error attempting to create > 10 beans");
         else {
             counter.increment();
        @PreDestroy
        protected void destroy() {
         ConstrainedBeanCounter counter = em.find(ConstrainedBeanCounter.class,
                                   DEFAULT_COUNTERID);
         counter.decrement();
        public void doSomething() { System.out.println("doSomething()"); }
    // ConstrainedBeanCounter.java
    package unq.ejb;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    @Entity
    public class ConstrainedBeanCounter implements java.io.Serializable
        @Id public int counterId;
        public int counterValue = 0;
        public void increment() {
         counterValue++;
        public void decrement() {
         counterValue--;
        public boolean atMaximum() {
         return counterValue > 9;
    }

  • Deployment problem sdk 1.4 with entity bean

    hallo!
    i have a big problem with the j2ee sdk 1.4. when i want to add an entity bean to my ear-file, everything goes good, but when i put the sql-ql for the finder-method and save the file i got an error like this
    xxxxxxx.ear is corrupt or cannot be read
    when i dont save and will show the descriptor it generates an empty descriptor for this entity bean.
    the problem is, that the deployment tool cannot generate the deployment desciptor for entity beans. with session bean there was no problems.
    hope somebody can help me.
    thanks

    There's bug in non-U.S. locales. The workaround is described in this thread:
    http://forum.java.sun.com/thread.jsp?forum=136&thread=472692&tstart=15&trange=15
    -Ian Evans
    Sun Microsystems
    J2EE Tutorial team

  • Report for CS15 tcode with multiple material nos. in selection screen.

    I want to develop a report for cs15 but with multiple materials.
    Like in cs15 we enter the material and its plant, then click on multi level check box and get the output. But cs15 works only for a single material. I want to develop a report in which i'll give multiple material nos. and then i should get the output for each material entered just as the output that would appear in cs15 for that material.
    How do i do it.
    I have tried but i'm not able to track back.

    Hi Priti,
          try develop a interactive report which lists all the materials in the first screen and when you double click on each of the material then call transaction CS15 output by skipping the first screen .Use set parameter to pass the material .
    Regards,
    Sirisha

  • For the cm with multiple bps, what are the options for workaround?

    For the cm with multiple bps, what are the options for workaround?
    customer a purchases 1000
    and returns 800 at POS
    customer b was used at SAP related to  this transaction, purchase amounting to 2000,what can we do to apply the returns of customer a to customer b of 800 return transaction at pos?customer a and customer b code pertains to just one client---but were given different codes at POS and at SAP

    Hi,
    If one customer has two codes, you can only do manual journal entry to adjust their accounts.
    Thanks,
    Gordon

  • Servicegen for stateless session EJB

    I've run into some minor trouble when I tried to generate
    web services for some stateless session EJBs with the
    servicegen Ant method. Note that expandMethods has been
    set to True. It appears that the generated web-services.xml
    file contains methods from the EJB's remote interface. When
    deploying the web service WLS will use the locale interface.
    If the remote interface has methods not found in the local
    interface WLS will refuse to deploy the web service. No big
    deal, since I could just add the missing methods to the
    local interface. But still, I think this is somewhat odd
    and inconsistent behavior. Is there anyway to get WLS to
    deploy the web services against the remote interfaces, or
    is this just a bad idea?
    /Björn

    Further information:
    According to metalink bug 3224465, this was a bug fixed in release 9.0.2.3.99 of the App Server. However, I am using 9.0.3.1 and still have the problem....

  • Problem FOR creating session in SM35 with EDI process using trans.sm35

    When we create output for billing documents (VF31 t-code)  for EDI output with following inputs, it create input session for data uploading, which we can check with  (SM35 t-code). Thru which we upload the data in system.
    Till 31st  March 2007 it is working and we have uploaded our data also. Since 1st April 2007 we are unable to create session for uploading the data

    Hai Manish Patel,
    There might be date range hard coding values.
    Please <b>check the Report Program.</b>
    <b>Reward points if it helps you.</b>
    Regds,
    Rama.Pammi

  • Problem FOR creating session in SM35 with EDI process using trans.VF31

    Hi all,
    When we create output for billing documents (VF31 t-code) for EDI output with following inputs, it create  session for data uploading, which we can check with (SM35 t-code). Thru which we upload the data in system.
    Till 31st March 2007 it is working and we have uploaded our data also. Since 1st April 2007 we are unable to create session for uploading the data
    Manish

    Hai Manish Patel,
    There might be date range hard coding values.
    Please <b>check the Report Program.</b>
    <b>Reward points if it helps you.</b>
    Regds,
    Rama.Pammi

  • You cannot shadow a session with multiple monitors enabled in Windows Server 2008 R2

    Searching through the forums (and according to KB2484290) it appears that there is no solution to this problem.  We are rolling out thin clients that are using dual monitors exclusively and we were very surprised to find out that we couldn't shadow
    sessions with dual monitors (which to us means that we can't shadow ANY sessions).  This now completely changes our approach to managing these devices. 
    We are running Windows Server 2008 R2 SP1 with Remote Desktop Services installed.  The thin clients are running Windows Embedded Standard 7 with the latest updates / RDP client. All steps have been followed to ensure that the apropriate settings and
    permissions have been set up to allow access into the session. 
    We tested by unchecking the RDP setting “use all my monitors for the remote session”, with that setting disabled shadowing worked
    Questions:
    1. KB2484290 is from Dec 2010 - It's now April 2012, is there a workaround / hotfix for this issue that will allow us to shadow sessions using the native Microsoft tools?
    2. Are there any recommended alternatives (software)?  Free/Paid - doesn't matter we just need something that will work.  I'm sure there are a few options out there but I am looking for suggestions for what people have used in the past that worked
    best for them to help us narrow down the choices.

    Hi,
    In my experience, so far, the workaround is Remote Assistance, Remote Assistance supports multiple monitors, and is the presently recommended solution if you need this functionality. Remote Assistance is a Windows Server Feature that must be explicitly installed
    on Windows Server 2008 R2; it is already installed with the client versions of the operating system.
    More information:
    Remote Assistance Overview
    http://technet.microsoft.com/en-us/library/cc753881.aspx
    Remote Assistance and Resulting Internet Communication in Windows Server 2008
    http://technet.microsoft.com/en-us/library/cc770456(v=ws.10).aspx
    As far as I know, there are some third-party tools can be used as the solution, such as Teamviewer, ISL Online, etc.
    Please Note: The third-party products discussed here are manufactured by companies that are independent of Microsoft. We make no warranty, implied or otherwise, regarding
    these products' performance or reliability.
    Regards,
    Dollar Wang
    Forum Support
    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Technology changes life……

  • Paradox - Should entity CMP EJB be faster than stateless session bean?

    Please bear with me on this.
    Just thinking of this scenario: hello world application. It can be implemented both as stateless session bean and entity bean.
    There's no persistent. So for the entity bean, it will be container managed, and no code to do anything to the load/remove/create. - comparably the same as stateless bean.
    Next, for the stateless session bean, each client call would require a dedicated instance of the EJB on the server (although for a very short amount of time). For the entity bean, it's shared, so only 1 instance is needed. It's also thread safe.
    So, for a very high traffic, shouldn't the entity bean do better because of single instance?
    What's other overhead?
    Does the entity bean cost more connections than the stateless bean?

    Feels like a comparison between apples and oranges.
    A stateless session bean is like every other instance, so these can be pooled by the EJB container. The container is free to create an instance for each client if necessary. That's different.
    A stateless session bean doesn't have to deal with a database that may or may not be located on another machine the way an entity bean does. There could be another network round trip involved. That's different.
    Session and entity beans are intended for entirely different purposes. Just because you can write Hello World with both doesn't mean it's representative of what EJBs are used for. I don't think it's a good, meaninful comparison. JMO - MOD

  • Would RollBacks For Stateless Session Beans work In case of Stored Procedures or Triggers Written in Oracle PL/SQl

              We are writing a J2EE application and using Weblogic 5.1 on Unix machine. We are
              considering writing some Stored Procedures or Triggers on Oracle DBMS. Hence our
              Stateless Session Beans / Data Access Objects (DAOs) would be calling those stored
              procedures, which would reside on Oracle 8.1.7 (on Windows 2000). (These Data
              Access Objects are running under the umbrella of a Stateless Session Beans). We
              are using WebLogic's Connection Pooling.
              Our question is: Would we get reliable rollbacks from our stored procedures. I
              mean would the Transaction Management process of the EJB container work. Remember
              the SQL is written in the Database (Oracle in this case) in the form of Stored
              Procedures / Triggers through PL/SQL.
              Any ideas or tips would help.
              

              I would agree with Cameron Purdy. Be very cautious to use Oracle specific
              Triggers / Stored Procedures. Consider following, (apart from what he said):
              1. Unreliable behaviour of the Oracle JDBC drivers, specially 8.1.6 family..
              (You may visit the Oracle's web site and see the newsgroups for the JDBC drivers).
              This is enough of a reason to stop right there.
              However for interest sake you may consider following issues:
              2. By use of Oracle specific Triggers / SPs the application will not be portable.
              Vendor Lock In. Remember your choice for J2EE compliant Server (WebLogic in this
              case). The whole purpose would be defeated by going for this option.
              3. There are issues related to the extensibility of the application. I have
              my reservations and would hold my breath on two phase commit protocol transactions
              being reliable in this scenario.
              Have fun...
              Terry
              "Cameron Purdy" <[email protected]> wrote:
              >Yes, the work performed by the SPs and the triggers would be in the same
              >tx.
              >
              >What would NOT work is if the data has been read into WebLogic and then
              >it
              >gets affected by a trigger or SP on the RDBMS, the data in WebLogic is
              >not
              >automatically re-read within that same tx so you need to be careful.
              >
              >Peace,
              >
              >--
              >Cameron Purdy
              >Tangosol Inc.
              >Tangosol Coherence: Clustered Coherent Cache for J2EE
              >Information at http://www.tangosol.com/
              >
              >
              >"Ahmad" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> We are writing a J2EE application and using Weblogic 5.1 on Unix machine.
              >We are
              >> considering writing some Stored Procedures or Triggers on Oracle DBMS.
              >Hence our
              >> Stateless Session Beans / Data Access Objects (DAOs) would be calling
              >those stored
              >> procedures, which would reside on Oracle 8.1.7 (on Windows 2000). (These
              >Data
              >> Access Objects are running under the umbrella of a Stateless Session
              >Beans). We
              >> are using WebLogic's Connection Pooling.
              >> Our question is: Would we get reliable rollbacks from our stored
              >procedures. I
              >> mean would the Transaction Management process of the EJB container
              >work.
              >Remember
              >> the SQL is written in the Database (Oracle in this case) in the form
              >of
              >Stored
              >> Procedures / Triggers through PL/SQL.
              >> Any ideas or tips would help.
              >
              >
              

  • NLS_LANG setting for a client with multiple Oracle servers

    Hello!
    We have a web application which has to connect to one of the Oracle servers with different charactersets. When the NLS_LANG on the client is a single byte encoding and the server has a single byte encoding there are no problems. We have now a server with NLS_CHARACTERSET UTF8 and all special (hungarian accented) character are replaced.
    When we set the client to UTF8 the rest of servers does not work.
    What is the solution for one client and multiple servers with different encoding?
    Is there a special key in connection string?
    I tried to change the nls_lang with an alter session statement but without success.
    Regards,
    emeriqus

    NLS_LANG is not depending on the database side, it's a CLIENT setting to "let Oracle know what encoding is used on the CLIENT" so that Oracle can do the conversion from the client encoding to the database (NLS_CHARACTERSET) encoding.
    for ONE application/client the is only ONE correct NLS_LANG value, regardless of the database NLS_CHARACTERSET
    If you web application is really an UTF8 application (check with your vendor) then you can perfectly use a UTF8 client setting and a 8 bit database
    Of course, you will be limited to the database side in this case seen the 8 bit characterset does not know all the characters in UTF8
    The fact that setting the NLS_LANG to UTF8 "does not work" with your web application is simply the fact your application is not a UTF8 env.
    Setting nls_lang to UTF8 will not "magically" make your application UTF8, NLS_LANG is depending on the encoding used in the web server.
    But the first thing to ask yourself is if CURRENT data is correctly in the Oracle database.
    use SQLdeveloper to check the data, this is a "know good client" that needs no NLS configuration.
    You can download it from http://www.oracle.com/technology/products/database/sql_developer/
    If the data is displayed correctly in SQLdeveloper then you are sure it's correct in the database.
    If data is WRONG in the database then that needs to be corrected first, "trying" different client side configurations will only make matter worse (even if they make the data "look good" )
    Regards,
    Gunther
    Client side notes on mentalink:
    Note:158577.1> NLS_LANG Explained (How does Client-Server Character Conversion Work?)
    1.2 What is this NLS_LANG thing anyway?
    3.2 A detailed example of a wrong nls setup to understand what's going on.
    4.2 How can I Check the Client's NLS_LANG Setting?
    5.1 My windows sqlplus is not showing all my extended characters.
    Note:179133.1> The correct NLS_LANG in a Windows Environment
    Note:264157.1> The correct NLS_LANG setting in Unix Environments
    Note:229786.1> NLS_LANG and webservers explained.
    Note 115001.1> NLS_LANG Client Settings and JDBC Drivers
    When using Unicode start here:
    Note:788156.1> AL32UTF8 / UTF8 (Unicode) Database Character Set Implications
    Setting NLs parameters: <Note:241047.1> The Priority of NLS Parameters Explained.

  • Deployment proplems for PRD-System with CTS (Web AS JAVA)

    Hello!
    We have a 3-Step-Landscape for deployment:
    DEV
    QoS
    PRD
    Using the portal i have an environment which shows an instance of SAP GUI for HTML, where i can choose
    *CTS Browser
    *STMS Queues
    I can deploy EAR archives to the DEV System and transport it to the PRD. But the step to the PRD-System ist hanging. The protocol is showing, that there is still a session active:
    Deployment                                                                               
    Transportauftrag    : DE0K900382                                                                               
    System              : DZ1                                                                               
    tp Pfad             : tp                                                                               
    Version und Release : 372.04.04 700                                                                               
    Deploy Service called with following parameters:                                                                               
    CommunicationData-Type:0                                                                               
    CommunicationData-Address:http://bbmagz1:50018                                                                               
    CommunicationData-Host:bbmagz1                                                                               
    CommunicationData-Port:50018                                                                               
    CommunicationData-User:'filled'                                                                               
    CommunicationData-Password:'filled'                                                                               
    Deployable(0)                                                                               
    Deployable-Type:0                                                                               
    Deployable-Id:/usr/sap/trans/data/DE0K900382/avitumtec-ear-1.0.ear                                                                               
    class java.rmi.RemoteException:Another Session=[Local port:0, Host:bbmagz1, Port:50018, SessionID:1]                                 
                >>>is still valid - cannot create a new one                                                                               
    Deployment                                                                               
    Endedatum und -zeit : 20080922093201                                                                               
    Beendet mit Returncode:  ===> 12 <===   
    I read that there could be some deployment problems, because SDM is Single-Threaded. We already restarted the PRD-System, but that was without any effect. Can s.o. tell me what i can do, or what i have to say to our Administration people, that the running session will be killed?
    With best regards

    Hi All,
    Any responses here?
    Do we have a setting to control the session ID using which for deployment port 50018 would be connected while import.
    Regards,
    Karan Shah

  • JDev 3.0/Oracle8i EJB deployment problems

    When trying to deploy a simple EJB generated with the JDev 3
    wizards, I get the following errors:
    *** Executing deployment profile E:\Program
    Files\Oracle\JDeveloper 3.0\myprojects\queueRemote.prf ***
    *** Generating archive file E:\Program Files\Oracle\JDeveloper
    3.0\myprojects\queueRemoteSource.jar ***
    Compiling the project...done
    Validating the profile...done
    Initializing deployment...done
    Scanning project files...done
    Generating classpath dependencies...done
    Generating archive entries table...done
    *** Archive generation completed ***
    *** Deploying the EJB to JServer ***
    EJB deployment argument list:
    "E:\Program Files\Oracle\JDeveloper 3.0\java\bin\javaw"
    "-DPATH=E:\Program Files\Oracle\JDeveloper 3.0\bin;E:\Program
    Files\Oracle\JDeveloper 3.0\java\bin"
    -classpath
    "E:\Program Files\Oracle\JDeveloper 3.0
    \java\lib\classes.zip;E:\Program Files\Oracle\JDeveloper 3.0
    \lib\jdeveloper.zip;E:\Program Files\Oracle\JDeveloper 3.0
    \myclasses;E:\Program Files\Oracle\JDeveloper 3.0\lib\jdev-
    rt.zip;E:\Program Files\Oracle\JDeveloper 3.0
    \jdbc\lib\oracle8.1.5\classes111.zip;E:\Program
    Files\Oracle\JDeveloper 3.0\lib\connectionmanager.zip;E:\Program
    Files\Oracle\JDeveloper 3.0\lib\javax_ejb.zip;E:\Program
    Files\Oracle\JDeveloper 3.0
    \aurora\lib\aurora_client.jar;E:\Program Files\Oracle\JDeveloper
    3.0\aurora\lib\vbjorb.jar;E:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\vbjapp.jar;E:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\vbjtools.jar;E:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\vbj30ssl.jar;E:\Program Files\Oracle\JDeveloper 3.0
    \java1.2\jre\lib\rt.jar;E:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\aurora_client.jar;E:\Program Files\Oracle\JDeveloper
    3.0\aurora\lib\vbjorb.jar;E:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\vbjapp.jar;E:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\vbjtools.jar;E:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\vbj30ssl.jar;E:\Program Files\Oracle\JDeveloper 3.0
    \jdbc\lib\oracle8.1.5\classes111.zip"
    oracle.aurora.ejb.deployment.GenerateEjb
    -u
    sys
    -p
    sys
    -s
    sess_iiop://localhost:2481:ORCL
    -republish
    -keep
    -temp
    TEMP
    -descriptor
    "E:\Program Files\Oracle\JDeveloper 3.0
    \myprojects\queueRemote.dd"
    -generated
    "E:\Program Files\Oracle\JDeveloper 3.0
    \myprojects\queueRemoteGenerated.jar"
    "E:\Program Files\Oracle\JDeveloper 3.0
    \myprojects\queueRemoteSource.jar"
    org.omg.CORBA.INTERNAL[completed=MAYBE]
    at
    com.visigenic.vbroker.orb.GiopConnectionFactoryImpl.destroy
    (GiopConnectionFactoryImpl.java:209)
    at com.visigenic.vbroker.orb.GiopConnectionImpl.close
    (GiopConnectionImpl.java:544)
    at com.visigenic.vbroker.orb.GiopStubDelegate.invoke
    (GiopStubDelegate.java:609)
    at com.visigenic.vbroker.orb.GiopStubDelegate.invoke
    (GiopStubDelegate.java:466)
    at org.omg.CORBA.portable.ObjectImpl._invoke
    (ObjectImpl.java:141)
    at oracle.aurora.AuroraServices._st_LoginServer.O3Logon_B
    (_st_LoginServer.java:194)
    at oracle.aurora.client.Login.authenticate
    (Login.java:143)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.login
    (SessionCtx.java:574)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.login
    (SessionCtx.java:568)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.login
    (ServiceCtx.java:299)
    at
    oracle.aurora.server.tools.sess_iiop.ToolImpl.initializeSession
    (ToolImpl.java:101)
    at
    oracle.aurora.server.tools.sess_iiop.ToolImpl.parseStdArgs
    (ToolImpl.java:213)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke
    (ToolImpl.java:121)
    at oracle.aurora.ejb.deployment.GenerateEjb.main
    (GenerateEjb.java:509)
    *** Errors occurred while deploying the EJB to JServer ***
    *** Deployment completed ***
    Any suggestions as to what is happening would be greatly
    appreciated.
    Sean
    null

    Assuming that you have done the 'right' tinkg and changed the
    password for the user SYS, then you are running into a JServer
    bug. When the password file on the server and the user SYS
    password in the rdbms get out of synch, this bug crops up (the
    instance will be killed, immediately and with prejudice). The
    solution is to:
    -shut down the rdbms
    -disable the password file in the INIT.ORA by setting the
    parameter to EXCLUSIVE. Sorry the exact parameter change escapes
    me at the moment, I have posted it earlier in this forum so you
    can probably find it there if you don't already know it.
    -restart the rdbms and change the sys password (again)
    -you can then re-enable the password file if you need.
    That's it. You will now be able to connect as SYS either via the
    deployejb utility or session shell w/o bringing down the
    database.
    null

  • EJB deployment problems

    I'm trying to deploy my business component as an EJB to Oracle 8.1.7. Actually, it deploys with no errors. When I test the module by setting the middle tier type to Local, it works fine. But, when I set the middle tier type to EJB, I can't see any data when I try to show my business component view.
    So, I tried to deploy my applet and run it against the EJB, but I get an error in a Panic dialog box that says "Unknown service::session0". The details say
    "DAC-405: SessionInfo:Application module creation failed; className: MyBcModule
    Unknown service::session0
    At the same time, the message view shows the following:
    oracle.dacf.dataset.DataSourceOperationException: SessionInfo: Application module creation failed; className: MyBcModule
    void oracle.dacf.dataset.ProducerObject.open(boolean)
    void oracle.dacf.dataset.SessionInfo.publishSession()
    void EISGui2.EISGuiApplet2.init()
    void sun.applet.AppletPanel.run()
    void java.lang.Thread.run()
    The applet will run just fine when I set the session object to a local deployment type. I went through the trouble shooting stuff in the online help made sure my java_pool_size was set to at least 50MB, and that I have no unresolved java classes on the server. But, it still won't work. Are there any suggestions on what else I can try?

    Of course, now I have other problems. After successfully redeploying my new business component as an EJB, and testing the application module successfully as an EJB middle tier server type, I created a new project as described in the online help under "Testing a Business Components EJB Deployed to Oracle8i with a Code Client." I followed the online help's instructions dilligently. Does it work? Of couse not. I'm turning on debugoutput with -Djbo.debugoutput=console so I can get more information, but that information isn't helping me. Refering back to the online help's code, it's crashing on the "ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup(DeployedMod)" line. Here's my exception stack:
    [00] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
    [01] CommonMessageBundle (language base) being initialized
    [02] Stringmanager using default locale: 'null'
    [03] BC4JDeployPlatform: Ejb
    [04] Connected to Service:sess_iiop://fredws:2481:ORCL
    [05] Logging in...
    javax.naming.NamingException: Unknown reasons. Root exception is
    java.lang.ClassNotFoundException: EisBc.common.ejb.EisBcModuleHomeHelper
    void oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.initRemoteHome()
    void oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.<init>(oracle.jbo.JboContext, java.lang.String)
    oracle.jbo.common.JboHome oracle.jbo.client.remote.ejb.aurora.AuroraEJBInitialContext.createJboHome(java.lang.String)
    java.lang.Object oracle.jbo.common.JboInitialContext.lookup(java.lang.String)
    java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
    void tester.EisBcTester.main(java.lang.String[])
    Now, how can the EJB tester work, but my code can't find the helper class? I know my JNDI path is correct. I've checked to make sure that the EisBc.common.ejb.EisBcModuleHomeHelper class actually exists in the database and is valid. I've run java2perm.sql to grant permissions to my user. And, my java_pool_size is over 60MB.
    This is frustrating. Did I see a thread about someone wanting to go back to VB...

Maybe you are looking for