Exception came when change stateful to stateless in ejb-jar.xml [Ejb 2.0]

Hi,
I am getting exception when i change the below entry from Stateful to Stateless for Transaction Type "Container"..
----------------------------------------------------------------Working Fine for single and multi users----------------------------------------------------
<session>
          <description>Entity Bean Employee Example</description>
          <ejb-name>Stlg</ejb-name>
          <local-home>com..ejb.session.ejbeans.StlgHome</local-home>
          <local>com.ejb.session.ejbeans.Stlg</local>
          <ejb-class>com.ejb.session.ejbeans.StlgBean</ejb-class>
          <session-type>Stateful</session-type>
          <transaction-type>Container</transaction-type>
</session>
----------------------------------------------------------------Working Fine for single and multi users----------------------------------------------------
----------------------------------------------------------------Working Fine for single user and exception for multi users----------------------------------------------------
<session>
          <description>Entity Bean Employee Example</description>
          <ejb-name>Stlg</ejb-name>
          <local-home>com..ejb.session.ejbeans.StlgHome</local-home>
          <local>com.ejb.session.ejbeans.Stlg</local>
          <ejb-class>com.ejb.session.ejbeans.StlgBean</ejb-class>
          <session-type>Stateless</session-type>
          <transaction-type>Container</transaction-type>
</session>
----------------------------------------------------------------Working Fine for single and exception for multi users------------------------------------------------------------
2012-06-27 12:27:15,531 DEBUG com.ds.ApplSessListener 16 - vattributeAdded : errorencountered,java.lang.ClassCastException: java.lang.String cannot be cast to com.packg.class
Strange that its working for single user and cracking for multiuser when tested via jmeter

12/06/28 12:21:42 java.lang.IndexOutOfBoundsException: Index: 2300, Size: 2300
12/06/28 12:21:42      at java.util.ArrayList.RangeCheck(Unknown Source)
12/06/28 12:21:42      at java.util.ArrayList.get(Unknown Source)
12/06/28 12:21:42      at com.ejbeans.StlEntryBean.getEntryList(StlEntryBean.java:1587)
12/06/28 12:21:42      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12/06/28 12:21:42      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
12/06/28 12:21:42      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
12/06/28 12:21:42      at java.lang.reflect.Method.invoke(Unknown Source)
12/06/28 12:21:42      at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
12/06/28 12:21:42      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
12/06/28 12:21:42      at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
12/06/28 12:21:42      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
12/06/28 12:21:42      at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:53)
12/06/28 12:21:42      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
12/06/28 12:21:42      at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
12/06/28 12:21:42      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
12/06/28 12:21:42      at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
12/06/28 12:21:42      at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
12/06/28 12:21:42      at Entry_LocalProxy_1dc72ge.getEntryList(Unknown Source)
12/06/28 12:21:42      at com.ejb.client.EntryClient.getEntryList(EntryClient.java:145)
12/06/28 12:21:42      at EntryServ.find(EntryServ.java:8613)
12/06/28 12:21:42      at EntryServ.doGet(EntryServ.java:439)
12/06/28 12:21:42      at EntryServ.doPost(EntryServ.java:280)
12/06/28 12:21:42      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
12/06/28 12:21:42      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
12/06/28 12:21:42      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
12/06/28 12:21:42      at LogFilter.doFilter(LogFilter.java:57)
12/06/28 12:21:42      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:644)
12/06/28 12:21:42      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
12/06/28 12:21:42      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
12/06/28 12:21:42      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
12/06/28 12:21:42      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:226)
12/06/28 12:21:42      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:127)
12/06/28 12:21:42      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:116)
12/06/28 12:21:42      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
12/06/28 12:21:42      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
12/06/28 12:21:42      at java.lang.Thread.run(Unknown Source)
Single user means a single user logged-In,Multi user means 10-20 users logged in via apache jmeter for testing performance..
Let me know if anthing else required
Edited by: user9052593 on Jun 28, 2012 12:12 AM

Similar Messages

  • Weblogic 10.3.0 Deployment error when using ejb-jar.xml

    Hi,
    I am getting the following error while deploying my EJB3 application on Weblogic 10.3.0. This is happening only if I include ejb-jar.xml.
    As per the EJB3 descriptor spec, Remote Home or Local home are not exists.
    Is this a issue in Weblogic 10.3.0 or am I missing any special setup ?
    Please help.
    weblogic.application.ModuleException: Exception preparing module: EJBModule(egm-poc.jar)
    Unable to deploy EJB: C:\appsrv\domains\WeblogicRS1.1-domain\servers\admin\tmp\_WL_user\_appsdir_egmear_ear\ot2591\egm-poc.
    jar from egm-poc.jar:
    In EJB JPATestBean, both the remote home and remote component interface must be specified. Currently, only one of them is spec
    ified.
    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:452)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
    My ejb-jar.xml is
    - <ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
    <description>JPA Test Application</description>
    <display-name>JPATest</display-name>
    - <enterprise-beans>
    - <session>
    <ejb-name>JPATestBean</ejb-name>
    <remote>egm.poc.jpa.JPATestBeanRemote</remote>
    <local>egm.poc.jpa.JPATestBeanLocal</local>
    <ejb-class>egm.poc.jpa.JPATestBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    - <session>
    <ejb-name>AuditInfoDAOH</ejb-name>
    <local>egm.poc.jpa.Audit</local>
    <ejb-class>egm.poc.jpa.AuditInfoDAOH</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    - <assembly-descriptor>
    - <container-transaction>
    - <method>
    <ejb-name>JPATestBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>RequiresNew</trans-attribute>
    </container-transaction>
    - <container-transaction>
    - <method>
    <ejb-name>AuditInfoDAOH</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    Regards
    Saji

    Hi,
    Seems the issue is not common. Can anyone throw some light on this ?
    Regards
    Saji

  • JAVA Proxy :: Exception in ejb-jar.xml in NWDS

    Hi All
    I am getting exception while Importing (Inbound) JAVA Proxy ZIP file in NWDS, ejb-jar.xml shows the red cross & when I double click on it got following error -->
    The content of element type "ejb-jar" is incomplete, it must match "(description?,display-name?,small-icon?,large-icon?,enterprise-beans,relationships?,assembly-descriptor?,ejb-client-jar?)".
    I already add the following JAR files in class-path -->
    aii_proxy_xirt.jar
    aii_msg_runtime.jar
    aii_utilxi_misc.jar
    guidgenerator.jar
    One different thing I also notice is that after adding these JAR files in classpath I am not getting my Inbound Interface BEAN under EJB candidates.
    Also nothing is visible under ejbModule usually it shows 4 JAVA files & one template file.
    As a solution I tried searching in google & forum for above exception, most threads suggest to add the Beans to xml files but I am not getting my interface Bean under EJB candidates.
    I also tried reloading all the external JAR files again from System but still same issue.
    Also within the same NWDS one another version of EJB is working fine but I worked on it 6months back, I tried copy its contents to ejb-jar.xml source code but then also nothing happens.
    I am using NWDS Version: 7.0.10
    Can you pls. suggest & let me know what further information I can provide from my side which can help you to investigate it.
    Regards
    Lalit

    hi,
    Your are using server java proxy.
    You can use some other jar files apart from what you are using,.
    ejb20.jar
    exception.jar
    sapj2eeclient.jar
    and after importing your zip file (create a ejb project first ,then add the zar files and then click on the ejbModule and then import your zip file ) close and open your project.
    Do not directly click on ejb-jar.xml.Click on ejbModule and import the .zip file.
    then save your .template file in ejbModule as a .java project.
    then there should not be any error.
    you can refer
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d06315a6-e66e-2910-039c-ba8bbbd23702
    regards,
    ujjwal kumar

  • Null Pointer Exception in orion-ejb-jar.xml GUI editor

    Hi,
    I am getting a NPE when attempting to configure CMR mappings orion-ejb-jar.xml with the GUI/Properties Editor.
    Using 9.0.5.2 on Windows XP professional SP2
    Have defined the necessary <relationships> descriptors for this relation.
    1:M unidirectional from entity X to Entity Y
    1)Over orion-ejb-jar.xml right click and select 'Properties...'
    2) Highlight Entity X in properties gui and open the tree. Select 'CMP Field Mappings'.
    3)On the right pane there are two tabs 'CMP Field Mappings' and 'Relationship Mappings'. Select Relationship Mappings.
    4) Relationship Mappings tab now displayed with the above relationship displayed in drop down 'Relationship' tab.
    5) Regardless of whether I select any extra properties on the CMP Mapping, If I hit ok button I get the NPE shown below (n.b. All details filled in except the FK field on the many side of the relation - this is the only field I can enter on this window in this case.).
    java.lang.NullPointerException
         at oracle.jdevimpl.ejb.mapper.RelationshipsPanel.saveCollectionMapping(RelationshipsPanel.java:1195)
         at oracle.jdevimpl.ejb.mapper.RelationshipsPanel.saveOneToManyRelationship(RelationshipsPanel.java:748)
         at oracle.jdevimpl.ejb.mapper.RelationshipsPanel.saveRelationship(RelationshipsPanel.java:528)
         at oracle.jdevimpl.ejb.mapper.RelationshipsPanel.onExit(RelationshipsPanel.java:394)
         at oracle.ide.panels.TabbedPanel.exitCurrentTraversable(TabbedPanel.java:219)
         at oracle.ide.panels.TabbedPanel.onExit(TabbedPanel.java:106)
         at oracle.jdevimpl.deploy.ejb.oc4j.CmpFieldMappingsPanel.onExit(CmpFieldMappingsPanel.java:134)
         at oracle.ide.panels.MDDPanel.exitTraversable(MDDPanel.java:850)
         at oracle.ide.panels.MDDPanel.onExit(MDDPanel.java:290)
         at oracle.ide.panels.TDialog$L.vetoableChange(TDialog.java:72)
         at java.beans.VetoableChangeSupport.fireVetoableChange(VetoableChangeSupport.java:300)
         at java.beans.VetoableChangeSupport.fireVetoableChange(VetoableChangeSupport.java:217)
         at oracle.bali.ewt.dialog.JEWTDialog.fireVetoableChange(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.dismissDialog(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog$UIListener.actionPerformed(Unknown Source)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
         at java.awt.Component.processMouseEvent(Component.java:5100)
         at java.awt.Component.processEvent(Component.java:4897)
         at java.awt.Container.processEvent(Container.java:1569)
    <snip ....>
    Very good chance I am doing something wrong ! However, would be interested in getting a reason (or any lead for that matter) why JDev is throwing NPE in this case.
    Cheers
    Ben

    Hi,
    I am getting a NPE when attempting to configure CMR mappings orion-ejb-jar.xml with the GUI/Properties Editor.
    Using 9.0.5.2 on Windows XP professional SP2
    Have defined the necessary <relationships> descriptors for this relation.
    1:M unidirectional from entity X to Entity Y
    1)Over orion-ejb-jar.xml right click and select 'Properties...'
    2) Highlight Entity X in properties gui and open the tree. Select 'CMP Field Mappings'.
    3)On the right pane there are two tabs 'CMP Field Mappings' and 'Relationship Mappings'. Select Relationship Mappings.
    4) Relationship Mappings tab now displayed with the above relationship displayed in drop down 'Relationship' tab.
    5) Regardless of whether I select any extra properties on the CMP Mapping, If I hit ok button I get the NPE shown below (n.b. All details filled in except the FK field on the many side of the relation - this is the only field I can enter on this window in this case.).
    java.lang.NullPointerException
         at oracle.jdevimpl.ejb.mapper.RelationshipsPanel.saveCollectionMapping(RelationshipsPanel.java:1195)
         at oracle.jdevimpl.ejb.mapper.RelationshipsPanel.saveOneToManyRelationship(RelationshipsPanel.java:748)
         at oracle.jdevimpl.ejb.mapper.RelationshipsPanel.saveRelationship(RelationshipsPanel.java:528)
         at oracle.jdevimpl.ejb.mapper.RelationshipsPanel.onExit(RelationshipsPanel.java:394)
         at oracle.ide.panels.TabbedPanel.exitCurrentTraversable(TabbedPanel.java:219)
         at oracle.ide.panels.TabbedPanel.onExit(TabbedPanel.java:106)
         at oracle.jdevimpl.deploy.ejb.oc4j.CmpFieldMappingsPanel.onExit(CmpFieldMappingsPanel.java:134)
         at oracle.ide.panels.MDDPanel.exitTraversable(MDDPanel.java:850)
         at oracle.ide.panels.MDDPanel.onExit(MDDPanel.java:290)
         at oracle.ide.panels.TDialog$L.vetoableChange(TDialog.java:72)
         at java.beans.VetoableChangeSupport.fireVetoableChange(VetoableChangeSupport.java:300)
         at java.beans.VetoableChangeSupport.fireVetoableChange(VetoableChangeSupport.java:217)
         at oracle.bali.ewt.dialog.JEWTDialog.fireVetoableChange(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.dismissDialog(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog$UIListener.actionPerformed(Unknown Source)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
         at java.awt.Component.processMouseEvent(Component.java:5100)
         at java.awt.Component.processEvent(Component.java:4897)
         at java.awt.Container.processEvent(Container.java:1569)
    <snip ....>
    Very good chance I am doing something wrong ! However, would be interested in getting a reason (or any lead for that matter) why JDev is throwing NPE in this case.
    Cheers
    Ben

  • Changed in orion-ejb-jar.xml - can I deploy that jar without restart?

    Hi,
    When I modify orion-ejb-jar.xml and restart the server, it sees that it has changed, and redeploys that ejb jar.
    Is it possible to do this without a restart?
    Roxanne

    I use jdeveloper 903 version to create only one entity bean, and set the force-update=true in the orion-ejb-jar.xml, when verify it, it is ok, when deploy it to the oc4j 903 version, it throws error message.
    you may try it using jdeveloper 9.0.3 version.

  • Error in stateless-clustering in weblogic-ejb-jar.xml

    Hi,
    This is my <weblogic-ejb-jar.xml> and I see an error in <stateless-bean-is-clusterable>. Can anybody please help me regarding this.
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-ejb-jar xmlns="http://www.bea.com/ns/weblogic/10.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/10.0 http://www.bea.com/ns/weblogic/10.0/weblogic-ejb-jar.xsd">
    <weblogic-enterprise-bean>
    <ejb-name>Sample1</ejb-name>
    <stateless-session-descriptor>
    <pool>
    <initial-beans-in-free-pool>10</initial-beans-in-free-pool>
    </pool>
    <stateless-clustering>
    <stateless-bean-is-clusterable>TRUE</stateless-bean-is-clusterable>
    </stateless-clustering>
    </stateless-session-descriptor>
    </weblogic-enterprise-bean>
    <weblogic-enterprise-bean>
    <ejb-name>Sample2</ejb-name>
    <stateless-session-descriptor>
    <pool>
    <initial-beans-in-free-pool>10</initial-beans-in-free-pool>
    </pool>
    <stateless-clustering>
    <stateless-bean-is-clusterable>TRUE</stateless-bean-is-clusterable>
    </stateless-clustering>
    </stateless-session-descriptor>
    </weblogic-enterprise-bean>
    <weblogic-enterprise-bean>
    <ejb-name>Sample3</ejb-name>
    <stateless-session-descriptor>
    <pool>
    <initial-beans-in-free-pool>10</initial-beans-in-free-pool>
    </pool>
    <stateless-clustering>
    <stateless-bean-is-clusterable>TRUE</stateless-bean-is-clusterable>
    </stateless-clustering>
    </stateless-session-descriptor>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    I am using weblogic 10.3 and EJB 3.0 Can I include all the EJBs in a single <weblogic-ejb-jar.xml> file and can I put it in the EAR->EarContent->META-INF folder, where the application.xml and weblogic-application.xml files exist.
    Basically, I am trying to include <initial-beans-in-free-pool> and <stateless-bean-is-clusterable> for each of my EJBs. Since there is no annotation equivalent for them in EJB 3.0, I had to include the <weblogic-ejb-jar.xml> file. I appreciate if anybody can suggest me if there is any annotation equivalent for these.
    Thank you,
    Sowmya

    Hi,
    1. please try with <stateless-bean-is-clusterable>true</stateless-bean-is-clusterable>
    2. the EJB Specification requires "The deployment descriptor must be stored with the name META-INF/ejb-jar.xml in the ejb-jar file." So you shouldn't put the weblogic-ejb-jar.xml to EAR's META-INF folder.
    3. <stateless-bean-is-clusterable> has a default value as "true". so you needn't specify it in your weblogic-ejb-jar.xml if you just want to have the "true" value.
    4. default value of <initial-beans-in-free-pool> is 0. Since you're changing the default value, you'll have to specify it in weblogic-ejb-jar.xml. If you can put all EJBs in one ejb jar file, you can have only one weblogic-ejb-jar.xml in the META-INF folder of this ejb jar.
    Thanks,
    Amy

  • Unable to deploy ejb jar consisting CMP and Stateful in single ejb-jar.xml

    Hi
    I was able to deploy entity bean and stateless bean saperately but when i am trying to deploy a jar consisting of CMP entity and Stateless within single ejb-jar.xml it shows following errors.
    Auto-deploying ejb_SDCurrency.jar (No previous deployment found)... ISDCMCurrencyHome_EntityHomeWrapper4.java:830: 'finally'
    wi
    finally
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:835: 'try' without 'catch' or 'finally'.
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:838: 'catch' without 'try'.
    catch(java.sql.SQLException e)
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:889: '}' expected.
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:893: 'try' without 'catch' or 'finally'.
    public com.satyam.icalm.staticdata.currency.ISDCMCurrency findByCode(int argument0, java.lang.String argument1) throws
    javax.ej
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:893: Statement expected.
    public com.satyam.icalm.staticdata.currency.ISDCMCurrency findByCode(int argument0, java.lang.String argument1) throws
    javax.ej
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:961: 'finally' without 'try'.
    finally
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:966: 'try' without 'catch' or 'finally'.
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:968: 'catch' without 'try'.
    catch(java.sql.SQLException e)
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1017: '}' expected.
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1021: 'try' without 'catch' or 'finally'.
    public com.satyam.icalm.staticdata.currency.ISDCMCurrency findAllByCode(int argument0, java.lang.String argument1) throws
    javax
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1021: Statement expected.
    public com.satyam.icalm.staticdata.currency.ISDCMCurrency findAllByCode(int argument0, java.lang.String argument1) throws
    javax
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1371: 'finally' without 'try'.
    finally
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1376: 'try' without 'catch' or 'finally'.
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1378: 'catch' without 'try'.
    catch(java.sql.SQLException e)
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1427: '}' expected.
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1431: 'try' without 'catch' or 'finally'.
    public java.util.Enumeration findAuthorizedRecords(int argument0) throws javax.ejb.FinderException, java.rmi.RemoteException
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1431: Statement expected.
    public java.util.Enumeration findAuthorizedRecords(int argument0) throws javax.ejb.FinderException, java.rmi.RemoteException
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1496: 'finally' without 'try'.
    finally
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1501: 'try' without 'catch' or 'finally'.
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1504: 'catch' without 'try'.
    catch(java.sql.SQLException e)
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1555: '}' expected.
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1559: 'try' without 'catch' or 'finally'.
    public java.util.Enumeration findAllRecords(int argument0) throws javax.ejb.FinderException, java.rmi.RemoteException
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1559: Statement expected.
    public java.util.Enumeration findAllRecords(int argument0) throws javax.ejb.FinderException, java.rmi.RemoteException
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1624: 'finally' without 'try'.
    finally
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1629: 'try' without 'catch' or 'finally'.
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1632: 'catch' without 'try'.
    catch(java.sql.SQLException e)
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1683: '}' expected.
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1685: 'try' without 'catch' or 'finally'.
    public ISDCMCurrencyHome_EntityHomeWrapper4() throws java.rmi.RemoteException
    ^
    ISDCMCurrencyHome_EntityHomeWrapper4.java:1685: Statement expected.
    public ISDCMCurrencyHome_EntityHomeWrapper4() throws java.rmi.RemoteException
    ^
    30 errors
    Error compiling C:\oc4jext\j2ee\home\applications\calm6/ejb_SDCurrency.jar: Syntax error in source
    com.evermind.compiler.CompilationException: Syntax error in source
    at com.evermind.compiler.FileLinkedCompilation.run(FileLinkedCompilation.java:90)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.evermind.compiler.FileLinkedCompiler.compile(FileLinkedCompiler.java:19)
    at com.evermind.compiler.Javac.compile(Javac.java:37)
    at com.evermind.server.ejb.compilation.Compilation.compileClasses(Compilation.java:335)
    at com.evermind.server.ejb.compilation.Compilation.compile(Compilation.java:256)
    at com.evermind.server.administration.ServerApplicationInstallation.finish(ServerApplication
    Installation.java:439)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:80)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    Note:The same jar is deployed into Weblogic 5.1 and was working fine .....
    so please if any solutions .....
    regards,
    Sap

    Hi sapthapathi,
    From the information u have provided, i can only guess, that
    the problem is in ur code...Not in ejb-jar.xml....
    'coz there is no problem in combining stateless session bean and CMP entity bean information in a single ejb-jar.xml file...i myself have deployed bunch of CMPs with stateless session beans..
    So please check ur code once again....
    --Venky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Stateless session Bean - xml and ejb-jar.xml file ???

    Dear Experts,
    Stateless-session bean
    For Creating an ear file
    we need ejb-jar.xml and weblogic-ejb-jar.xml files
    Is these files are already available
    or we have to type these files ??
    Advance Thanks
    Rengaraj.R

    My best advice: surrender to use an IDE.
    You wonder sometimes at how much productivity (read as 'time') could be wasted by doing something that could be done automatically. For a learning experience or a once only exercise is fine but as a routine thing, not worth it.
    Cheers

  • ModelException when moving Activation properties for MDB to ejb-jar.xml

    Hi,
    I have an MDB called BatchMdb that needs to be deployed into both JBoss and SAP NetWeaver. This means I have different activation config properties depending on the application server. So I cannot specify the properties by annotation, I have to place them in the ejb-jar.xml. It works fine in JBoss, but in the SAP IDE, I get this exception:
    EJB Model Builder: Exception occurred: com.sap.engine.services.ejb3.model.impl.ModelException: There is no bean BatchMdb defined in module auth_app*annotation|src. at com.sap.engine.services.ejb3.model.impl.ModuleImpl.getBeanImpl(ModuleImpl.java:181)
    For some reason, the IDE does not like the entry in ejb-jar.xml for the MDB. This looks like a bug to me. Comments, anyone?
    Regards,
    Johan

    Hi Vladimir
    Here's the stack trace:
    com.sap.engine.services.ejb3.model.impl.ModelException: There is no bean MDBBean defined in module testMdb*annotation|ejbModule.
         at com.sap.engine.services.ejb3.model.impl.ModuleImpl.getBeanImpl(ModuleImpl.java:181)
         at com.sap.engine.services.ejb3.model.builders.xml.BeanCommonBuilder.importMetadataFromEJBJarXml(BeanCommonBuilder.java:42)
         at com.sap.engine.services.ejb3.model.builders.xml.MessageBeanBuilder.importMetadataFromEJBJarXml(MessageBeanBuilder.java:41)
         at com.sap.engine.services.ejb3.model.builders.xml.BrieflyDescribedBuilder.process(BrieflyDescribedBuilder.java:44)
         at com.sap.engine.services.ejb3.model.builders.xml.ModuleBuilder.processMessageBeans(ModuleBuilder.java:201)
         at com.sap.engine.services.ejb3.model.builders.xml.ModuleBuilder.processEnterpriseBeans(ModuleBuilder.java:128)
         at com.sap.engine.services.ejb3.model.builders.xml.ModuleBuilder.importMetadataFromEJBJarXml(ModuleBuilder.java:85)
         at com.sap.engine.services.ejb3.model.builders.xml.ModuleBuilder.process(ModuleBuilder.java:73)
         at com.sap.engine.services.ejb3.model.builders.xml.XMLModelFiller.perform(XMLModelFiller.java:55)
         at com.sap.engine.services.ejb3.model.builders.CompositeModuleBuilder.getXmlModule(CompositeModuleBuilder.java:135)
         at com.sap.engine.services.ejb3.model.builders.CompositeModuleBuilder.buildModule(CompositeModuleBuilder.java:90)
         at com.sap.tc.jtools.jlinee.ejb.model.EJBModelBuilder.buildJEE5(EJBModelBuilder.java:200)
         at com.sap.tc.jtools.jlinee.ejb.model.EJBModelBuilder.build(EJBModelBuilder.java:88)
         at com.sap.tc.jtools.jlinee.lib.model.impl.AbstractModelBuilderTest.execute(AbstractModelBuilderTest.java:48)
         at com.sap.tc.jtools.jlinee.lib.AbstractJ2EETest.executeWithStatus(AbstractJ2EETest.java:149)
         at com.sap.tc.jtools.jlinee.lib.framework.dependency.Node.execute(Node.java:212)
         at com.sap.tc.jtools.jlinee.lib.framework.JLinEETestProcessor.executeAll(JLinEETestProcessor.java:153)
         at com.sap.tc.jtools.jlinee.lib.framework.JLinEETestProcessor.execute(JLinEETestProcessor.java:123)
         at com.sap.engine.jlinee.lib.impl.TestManager.executeTestsForAppComponent(TestManager.java:154)
         at com.sap.engine.jlinee.lib.impl.TestManager.executeTests(TestManager.java:89)
         at com.sap.engine.jlinee.lib.JLinEEValidatorImpl.validateApplication(JLinEEValidatorImpl.java:143)
         at com.sap.engine.jlinee.lib.JLinEEValidatorImpl.validateApplication(JLinEEValidatorImpl.java:127)
         at com.sap.tc.jtools.jlint.validation.wtp.JLinEEValidator.validate(JLinEEValidator.java:69)
         at org.eclipse.wst.validation.internal.core.ValidatorLauncher.start(ValidatorLauncher.java:98)
         at org.eclipse.wst.validation.internal.operations.ValidationOperation.launchValidator(ValidationOperation.java:1286)
         at org.eclipse.wst.validation.internal.operations.ValidationOperation.internalValidate(ValidationOperation.java:1101)
         at org.eclipse.wst.validation.internal.operations.ValidationOperation.validate(ValidationOperation.java:996)
         at org.eclipse.wst.validation.internal.operations.ValidationOperation.run(ValidationOperation.java:657)
         at org.eclipse.wst.validation.internal.operations.ValidationBuilder.build(ValidationBuilder.java:203)
         at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:624)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:166)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:197)
         at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:246)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
         at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
         at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:302)
         at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:334)
         at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:137)
         at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
          [Error: com.sap.tc.jtools.jlinee.lib  Thread[Worker-85,5,main]]

  • I have a problem when i open the ejb-jar.xml

    Hi All,
    I have a problem when i open the ejb-jar.xml.....
    It shows some problem like .....
    when Invoking  Code plug-in problem :Org.eclipse.jface.
    After updating my nwds 3 to 11.
    How can i solve this any body help me.
    regards
    BHI

    Maybe try hosting your image on a free image hosting site.

  • Error "BBP_BD 002: An Exception occured" when changing doc type

    Hi All,
    We are using the BADI BBP_TARGET_OBJTYPE to determine a PR or PO and change the doc type if PR is determined.
    PR/PO is determined correctly but when we tried to assign new doc type for PR getting error "BBP_BD 002: An Exception occured" .
    Below is the code.
    IF wa_item-be_doc_type='ECPO'
          IF wa_item-catalogid IS INITIAL OR wa_item-catalogid CO space
            wa_item-pack_objtype = 'BUS2105'. "PR
            wa_item-be_doc_type = 'ECPR'
          ELSE.
            wa_item-pack_objtype = 'BUS2012'. "PO
          ENDIF.
          MODIFY ct_item FROM wa_item TRANSPORTING pack_objtype.
    END IF
    Can any one tell is this correct or do we need to modify anything?
    Thanks in advance,
    Jagadish
    Edited by: Jagdish Reddy on Aug 17, 2008 3:47 PM

    Hi Dave,
    Thanks for the prompt response!
    We are able to create PR but we want to tie the PR to doc type 'ECPR'. That is why added wa_item-be_doc_type='ECPR'
    If we take out this code it works fine and system creates a PR with doc type 'ECPO'. We do not want this. We want doc type 'ECPR'
    Where is obj_to_gen in the BADI? I do not see that. Is this ina any structure?
    Thanks again.
    Jagadish

  • Deploy Error when using Stateful Session Bean inside Webdynpro

    Hi,
    I'm trying to create a webdynpro project that uses a stateful session bean
    I have created DC's for a EJB Module project, Enterprise Application and Webdynpro component. Created the bean, built it, added it's package to the public part, added the EJB Module to the EAR project. Built the EAR project. Added the EJB Module project and Enterprise Application project as a used DC in the Webdynpro DC.
    In the Webdynpro DC I added com.sap.archive-packaging.default.update-descriptors=true in the build.properties file of the cfg directory. (using the navigator view) That resolved an error while building it.
    Deployed the Enterprise Application DC without problems.
    Tried to deploy the Webdynpro DC but I get the following error:
    Jun 16, 2008 9:40:46 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] WARNING:
    [012]Deployment finished with warning
    Settings
    SDM host : 10.64.36.74
    SDM port : 50018
    URL to deploy : file:/C:/DOCUME~1/JESCHA~1/LOCALS~1/Temp/temp59822company.nl~projempactcmp.ear
    Result
    => deployed with warning : file:/C:/DOCUME~1/JESCHA~1/LOCALS~1/Temp/temp59822company.nl~projempactcmp.ear
    Finished with warnings: development component 'projempactcmp'/'company.nl'/'local'/'20080616094022':Caught exception during application startup from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Error occurred while starting application company.nl/projempactcmp and wait. Reason: Clusterwide execption: server ID 6060950:<--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='com.sap.engine.services.deploy.container.DeploymentException: <--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Failed implicit start for company.nl/projempejb : Unknown state(5)', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key Failed implicit start for company.nl/projempejb : Unknown state(5)', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key com.sap.engine.services.deploy.container.DeploymentException: <--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Failed implicit start for company.nl/projempejb : Unknown state(5)', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key Failed implicit start for company.nl/projempejb : Unknown state(5) (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : Got problems during deployment
    Does anyone know what this error means and how to resolve it. I searched the forum but only found errors that look like this relating to XI not to Webdynpro.......
    Thansk,
    Jeschael
    Edited by: J.V. Lebbink on Jun 17, 2008 6:52 AM

    Default is 30mts.
    This is done as a parameter in orion-ejb-jar.xml. Please look at the EJB Guide at http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/a97677/dtdxml.htm#634197 for details
    regards
    Debu

  • When will Stateful Session Bean be removed?

    I develop a stateful session bean and deploy it in the oc4j server successfully.
    I write a java GUI Frame.
    This Frame call this stateful Session bean and get some data,
    and hold its remote interface reference as Frame's private member.
    Code like that:
    public class CargoFrame extends JFrame
    //private member
    private DataPager dataPager;
    I found that before i release CargoFrame, Stateful session bean will be removed.
    And System report session time out.
    And i want to know when stateful session bean will be removed,
    and how to set the session time?

    Default is 30mts.
    This is done as a parameter in orion-ejb-jar.xml. Please look at the EJB Guide at http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/a97677/dtdxml.htm#634197 for details
    regards
    Debu

  • How to add b tags in your XML when changing style to Bold

    I'm currently checking if there is an easier way to automatically add <b> tags when changing font style to Bold in your xml. I'm not sure how to override the format  of a structured application automatically in FM. Do I need to create a script for this? Or is there any configuration that can be made to make this work automatically?

    Most of the discussion on this thread has dealt with the relevance of the Bold button on FrameMaker's Text Formatting toolbar to structured documents.
    While someone made the suggestion to create a <b> element and then insert text within the new element, I don't think anyone has yet commented on how easy it is to wrap an element (<b> or another element) around existing content. You can do so with the Element Catalog. Simply select the content to be wrapped and double-click the tag of the new element (e.g., b) in the Element Catalog. Or click the tag in the Element Catalog and then the Wrap button at the bottom of the Catalog.
    If you prefer to use the keyboard, you can use what is called Smart Insert in FM 11 and quick keys in earlier versions. The first three buttons at the bottom of the Element Catalog window are Insert, Wrap, and Change. You don't need to have the Catalog open to use Smart Insert. I mentioned the buttons only because that order is pretty easy to remember--1. Insert, 2. Wrap, 3. Change. The keyboard shortcuts Ctrl-1, Ctrl-2, and Ctrl-3 bring up the Smart Insert or Quick Keys to Insert, Wrap, or Change an element. With Smart Insert, a pop-up menu appears that shows the available elements. You can use the up and down arrow keys to navigate to the one you want, or type a unique prefix. Then press Enter to perform the operation (or Esc to cancel). With Quick Keys, the left side of the status bar at the bottom of the document window or Structure View (whichever is current) will prompt for the element tag with I: for Insert, W: for Wrap or C: for Change. Again, use the arrow keys or a prefix to display the desired element tag and then press Enter.
    So, to create a new <b> element to hold an existing string, select the string, type Ctrl-2 b, and press Enter.
    That said, I will close with an observation on the use of format overrides in structured documents. While automatic formatting based on element structure is the heart of structured FM, the software was deliberately designed in recognition that as a practical matter it is sometimes necessary for an author to create formatting that the document's element definitions simply do not provide. It therefore allows the user to tweak the formatting (for example, by deliberating making some content bold without using the element structure to do so). Users should understand the difference between element-based formatting and format overrides and use the latter with care if at all.
         --Lynne

  • Deployment problems when using several ejb-jar files

    Hello All,
    I am having problems with deployment of my J2EE application. My EAR file has several EJB-JARs, one for each entity bean. However I refer to the other EJBs in one EJB. Hence I included the <ejb-ref> element in the deployment descriptor of the entity bean. But I am getting the deployment error that "the bundle does not contain the bean name". I tried to change the <ejb-name> value (within the <ejb-ref> element) to the JNDI name of the EJB I am referring to, and also added the <ejb-link> tag specifying the location of the JAR file that has the EJB. None of the attempts worked.
    Can someone help me out on how I am supposed to go about when I have several ejb-jar files as opposed to a single one? I am deploying my app on Sun ONE AS 7.0.
    Thank you,
    PS: I am posting this message on several forum topics. Please disregard this message if you have seen/answered this message. Thanks.

    Hi ,
    It would help if you could post the relevant snippets of your
    ejb-jar.xml. In general, you definitely shouldn't use jndi-name
    for any of the linking information. jndi-name is not part of the
    standard deployment descriptor. The syntax for the ejb-link is
    [ejb-jar uri]#ejb-name
    K

Maybe you are looking for

  • What do I need to create a wireless external hard drive?

    Here's the situation. Hubs and I have just combined households. Between us we have a Macbook Pro laptop (10.5.8. mine), an HP laptop (his), a westell router from century link and 3 external firewire/usb hardrves, one of which serves as my time capsul

  • Quark / PDF Printing Problems (Save as PDF in OS X)

    I upgraded from Quark 4.1 to 6.5 about a year ago, and ever since then the files I create and print don't look as good. The primary issue seems to be color -- colors don't come out as deep, there seems to be less color saturation, sometimes colors ar

  • In which table the production quantity stored after confirmation

    Dear all,                When the production order is confirmed through co11n,then where the order quantity get stored in which table so I could suggest my ABAPER to create the report in which these production quantity gets displayed. Regards deepak

  • Why can I only getFacebook in miniscule print and not in full size any more?

    One day I went to use Facebook and found it was in minuscule unreadable print - and I can find no way of enlarging it. ALSO my Hotmail address and password were the entry to Facebook, but I no longer have this address as I deleted it because it start

  • Querying character column sizes using DatabaseMetadata

    Hi, In a UTF-8 database, I've created two testing tables, one that uses byte length semantics (BLS) for its CHAR and VARCHAR2 columns, and one using character length semantics (CLS). If I use the standard JDBC DatabaseMetdata.getColumns() query, the