ADFBC Deployment of JBOSS 5.1.0

I am deploying ADF BC application 11.1.1.2.0 on JBOSS 5.1.0 by following steps
1. When creating an ADF BC Module that will be used on a JBoss application server,
one needs to set the SQL Flavor to SQL92 and the Type Map to Java.
Can be set for an existing AM at
AM --> Configurations --> Properties tab
Set jbo.SQLBuilder = SQL92
jbo.TypeMapEntries = Java
2. Changed the data source as follows
AM --> Configurations --> Application Module - JDBC DataSource = java:/liveDS
Note: By default datasource will be something like 'java:comp/env/jdbc/liveDS'
where 'liveDS' is the application connection name.
3. Added the 'jboss-app.xml' under 'src/META-INF' folder of the application
jboss-app.xml:
     <?xml version="1.0" encoding="UTF-8"?>
     <!DOCTYPE jboss-app
     PUBLIC "-//JBoss//DTD J2EE Application 5.0//EN"
     "http://www.jboss.org/j2ee/dtd/jboss-app_5_0.dtd">
     <jboss-app>
     <loader-repository>
     com.oracle.adfpojo:loader=adfm.jar
     <loader-repository-config>java2ParentDelegation=true</loader-repository-config>
     </loader-repository>
     </jboss-app>
4. Added 'jboss-web.xml' under 'ViewController/public_html/WEB-INF' folder
jboss-web.xml:
     <?xml version="1.0" encoding="UTF-8"?>
     <!DOCTYPE jboss-web PUBLIC
     "-//JBoss//DTD Web Application 5.0//EN"
     "http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd">
     <jboss-web>
          <class-loading>
          <loader-repository>
          com.oracle.adfpojo:loader=adfm.jar
          <loader-repository-config>java2ParentDelegation=true</loader-repository-config>
          </loader-repository>
          </class-loading>
     </jboss-web>
5. Need to deploy our application as a EAR. Changes done in the Application Deployment profile:
a. Check the assembly of your application
b. Make sure 'jboss-app.xml' is selected under 'File Groups - Application Descriptors - Filters - Files'
c. Set the 'Platform - Default Platform = JBoss 5.x'
6. Similarly change the ViewController WAR Deployment profile:
a. Make sure 'jboss-web.xml' is selected under 'File Groups - Web Files - Filters - Files'
b. Set the 'Platform - Default Platform = JBoss 5.x'
7. ADF Lib's included in the EAR (can be included at the application lib or at the war level) are as follows
     adf-controller-api.jar
     adf-controller.jar
     adf-controller-rt-common.jar
     adf-controller-schema.jar
     adf-controller-security.jar
     adf-dt-at-rt.jar
     adfdt_common.jar
     adf-faces-databinding-rt.jar
     adflogginghandler.jar
     adfm-debugger.jar
     adfm.jar
     adfmweb.jar
     adf-pageflow-dtrt.jar
     adf-pageflow-fwk.jar
     adf-pageflow-impl.jar
     adf-pageflow-rc.jar
     adf-richclient-api-11.jar
     adf-richclient-impl-11.jar
     adf-share-base.jar
     adf-share-ca.jar
     adfsharembean.jar
     adf-share-security.jar
     adf-share-support.jar
     adf-transactions-dt.jar
     bc4j-mbeans.jar
     bc4jtester.jar
     bc4jwizard.jar
     cache.jar
     com.bea.core.apache.commons.collections_3.2.0.jar
     commons-cli-1.0.jar
     commons-el.jar
     db-ca.jar
     dms.jar
     dvt-databindings.jar
     dvt-facesbindings.jar
     dvt-faces.jar
     dvt-jclient.jar
     dvt-trinidad.jar
     dvt-utils.jar
     fmw_audit.jar
     glassfish.el_2.1.1.jar
     glassfish.jsf_1.2.9.0.jar
     glassfish.jstl_1.2.0.1.jar
     groovy-all-1.6.3.jar
     help-share.jar
     identitystore.jar
     idert.jar
     inspect4.jar
     jacc-spi.jar
     javatools.jar
     javatools-nodeps.jar
     javax.activation_1.1.0.0_1-1.jar
     javax.jsf_1.2.0.1.jar
     javax.jsp_1.1.0.0_2-1.jar
     javax.management_1.2.1.jar
     javax.management.j2ee_1.0.jar
     javax.security.jacc_1.0.0.0_1-1.jar
     javax.servlet_1.0.0.0_2-5.jar
     jdev-cm.jar
     jdev-rt.jar
     jewt4.jar
     jmxframework.jar
     jmxspi.jar
     jps-api.jar
     jps-common.jar
     jps-internal.jar
     jrf-api.jar
     jrf-client.jar
     jrf.jar
     jsp-el-api.jar
     ldapjclnt11.jar
     mdsrt.jar
     ohj.jar
     ojdbc6.jar
     ojdl.jar
     ojmisc.jar
     oracle-el.jar
     oracle_ice.jar
     oraclepki.jar
     oracle.ucp_11.1.0.jar
     orai18n-collation.jar
     orai18n.jar
     orai18n-lcsd.jar
     orai18n-mapping.jar
     orai18n-servlet.jar
     orai18n-translation.jar
     orai18n-utility.jar
     oramds.jar
     org.apache.commons.beanutils_1.6.jar
     org.apache.commons.logging_1.0.4.jar
     osdt_cert.jar
     osdt_core.jar
     osdt_xmlsec.jar
     regexp.jar
     resourcebundle.jar
     runtime12.jar
     share.jar
     trinidad-api.jar
     trinidad-impl.jar
     wls.jsf.di.jar
     xmlef.jar
     xml.jar
     xmlparserv2.jar
Note:
a. Few of the above jars might not be used and we can drill down to clean up this further.
b. We were also facing the issue with the 'adf-richclient-impl-11.jar' (Jdev - 11.1.1.2.0)
Opened the jar, removed the "AdfSignedClientFileWriterApplet.jar" available inside "adf-richclient-impl-11/afr/archives"
folder and saved the adf-richclient-impl-11.jar.
Copied this jar in the lib folder.
JBoss related changes:
8. Copy 'oracle-ds.xml' file into 'jboss-5.0.0.GA/server/default/deploy'
oracle-ds.xml:
     <?xml version="1.0" encoding="UTF-8"?>
     <datasources>
     <local-tx-datasource>
     <jndi-name>liveDS</jndi-name>
     <use-java-context>true</use-java-context>
     <connection-url>jdbc:oracle:thin:@host:port:sid</connection-url>
     <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
     <user-name>username</user-name>
     <password>password</password>
     <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
     </local-tx-datasource>
     </datasources>
where 'liveDS' is the datasource name provided in the AM.
9. Copy the Application.EAR into the 'jboss-5.0.0.GA/server/default/deploy' folder and start the server.
The Application deployed successfully but when I access the page in the browser (page having FORM) , Its display nothing,
At the log the following message appears
2010-08-01 12:49:04,968 INFO [oracle.adf.mbean.share.connection.ConnectionsMXBeanImpl] (main) Registering Connection Runtime MBean
*2010-08-01 12:49:15,750 WARNING [oracle.adf.share.jndi.ReferenceStoreHelper] (main) Incomplete connection reference object for connection:hr*
2010-08-01 12:49:19,375 INFO [org.apache.coyote.http11.Http11Protocol] (main) Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
2010-08-01 12:49:19,421 INFO [org.apache.coyote.ajp.AjpProtocol] (main) Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
2010-08-01 12:49:19,453 INFO [org.jboss.bootstrap.microcontainer.ServerImpl] (main) JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 2m:22s:172ms
2010-08-01 12:49:42,796 INFO [oracle.jbo.uicli.mom.CpxUtils$Visitor] (http-127.0.0.1-8080-1) jndi:/localhost/BossADFRel2-MVC-context-root/WEB-INF/classes/mvc/DataBindings.cpx
*2010-08-01 12:49:43,140 INFO [oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImpl] (http-127.0.0.1-8080-1) ADFc: Initializing ADF Page Lifecycle for the JSF environment, LifecycleContextBuilder is 'oracle.adfinternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.*
but nothing appears in the browser.
I need immadiate Help.
Tanks in Advance.
Edited by: MuhabbatAli on Aug 1, 2010 2:19 PM

User,
As you may know, ADF 11g applications have only been certified/supported on WLS 10.3.x at the moment. Any other application server (whether it be JBoss, Tomcat, Glassfish, WAS, etc) aren't officially documented/supported. There are certainly people who have tried to get it working with varying degrees of success (a quick search of the forum would find some of them), and Shay has indeed highlighted a blog entry of someone who has worked with JBoss.
John

Similar Messages

  • How to access EJB deployed in JBOSS 4 from Creator

    Hello.
    I am trying to access EJBs deployed on JBOSS in order to develop a web app client, when I import the EJB set from Creator (sessions and entities packages in a jar file) I got the following error message....."No EJB set found in file....." .
    I presume there is an kind of xml file description specific for Sun App Server missing. I would like to know if there is other way to expose EJB in creator?....maybe write a config file by hand.
    I already read the tutorials related to EJB but those only use pre build EJB jars for Sun App Sserver.
    Also I read all the posted about JBoos and EJB in this forum but those are pretty general.
    By the way I have Delegate classes to access the EJB. How do I register my delegates in Creator in order to expose their methods?
    I�ll really appreciate some light in this matter.
    Thanks in advance!!!

    Hi,
    The below forum thread may help you :
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=51321
    Thanks,
    Runa.

  • Soap request with attachment --problem in deploye to jboss useing Jdevelope

    using Jdeveloper and oc4j application server i made two application.
    In application one i exposed a web service method.In this application their is a handler class which able to handle soap request and response with attachment.
    In application two a client is sends a soap request with attachment.
    If i deploye it in oc4j it is working fine. But if i Deploye to JBoss server [i made a jboss application server connection] and then trying to send the soap request with attachment from the client application i gets the following errors--
    Exception in thread "main" javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Connection refused
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:152)
         at etrans.TripBean.a.ClientGateWay.msgEnvelope(ClientGateWay.java:50)
         at etrans.TripBean.a.ClientGateWay.main(ClientGateWay.java:60)
    Caused by: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Connection refused
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:148)
         ... 2 more
    Caused by: javax.xml.soap.SOAPException: Message send failed: Connection refused
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:458)
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:865)
         ... 4 more
    Caused by: java.net.ConnectException: Connection refused
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:516)
         at java.net.Socket.connect(Socket.java:466)
         at java.net.Socket.<init>(Socket.java:366)
         at java.net.Socket.<init>(Socket.java:208)
         at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:202)
         at HTTPClient.HTTPConnection.getSocket(HTTPConnection.java:3115)
         at HTTPClient.HTTPConnection.doConnect(HTTPConnection.java:3858)
         at HTTPClient.HTTPConnection.sendRequest(HTTPConnection.java:2921)
         at HTTPClient.HttpOutputStream.close(HttpOutputStream.java:421)
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.sendMessage(HttpSOAPConnection.java:724)
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:373)
         ... 5 more
    Am i made any mistake to deploye to jboss or it is not possiable to access the web service in such way?
    please suggest me what is the procedure to recover from this.

    Hello,
    How do you package you WS client application to be deployed in JBoss?
    The JAX-RPC clients are not that portable you may need to recompile the client with JBoss WebService implementation/tools, and check that you do have the different deployment descriptors for the client too.
    Regards
    Tugdual Grall

  • Application Jdevelopper 10.1.3.4.0 deployed to JBoss 4.0.5.GA

    Hello,
    We develop an application with Jdeveloper 10.1.3.4.0 and we want to deploy it to JBoss 4.0.5 GA but we have an error message like "EJB not bound".
    Our application is formed by 2 pojects (Model and View). We have chosen to use a EJB SessionBean (Stateless), and a Local Interface.
    For the mapping with te Database (Oracle 9i), we have a TopLink / Java Objects from tables ( SFMap).
    Can you help me please because the deployment to JBoss doesn't work whereas, all works fine with OC4J.
    I have heard that the deployment to JBoss4.0.5GA 's not possible with EJB3?
    Thank you very much,
    Diane

    LS,
    Seems that you have a perfect test case to submit to My Oracle Support (http://support.oracle.com) if it happens every time. That's what I would do.
    John

  • Article written on EJB 3.0 , web services develop n deploy on JBOSS AS

    Dear Friends
    I would like to announce the article written on EJB 3.0 , web services development and deployment on JBOSS AS at the following location http://jamessmithjava.100webcustomers.com/index.html , I think this would help developers to increase interest on JBoss as well as EJBs
    Regards
    James
    [email protected]
    http://tech.groups.yahoo.com/group/james_smithjava

    Dear Friends
    I would like to announce the article written on EJB 3.0 , web services development and deployment on JBOSS AS at the following location http://jamessmithjava.100webcustomers.com/index.html , I think this would help developers to increase interest on JBoss as well as EJBs
    Regards
    James
    [email protected]
    http://tech.groups.yahoo.com/group/james_smithjava

  • Error  deployment  in jboss( cmp + sqlserver2000)

    Hi,
    I have created a cmp entity bean whose function was to create a table in sqlserver2000 and insert
    the record in the database,: (Source
    below), I have compiled and make a jar file to deploy on jboss,
    I encountered and error:
    10:47:29,934 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
    /jboss3/server/default/deploy/Props.jar
    10:47:30,074 INFO [EjbModule] Creating
    10:47:30,106 INFO [EjbModule] Deploying Props
    10:47:31,887 ERROR [JDBCCommand] Exception caught executing SQL
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Inc
    orrect syntax near the keyword 'key'.
    at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown
    Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown
    Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest.processReplyToken(
    Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Sour
    ce)
    at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType
    (Unknown Source)
    at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown
    Source)
    at com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source)
    at com.microsoft.jdbc.base.BasePreparedStatement.postImplExecute(Unknown
    Source)
    at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)
    at com.microsoft.jdbc.base.BaseStatement.executeUpdateInternal(Unknown S
    ource)
    at com.microsoft.jdbc.base.BasePreparedStatement.executeUpdate(Unknown S
    ource)
    at org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement.executeU
    pdate(LocalPreparedStatement.java:308)
    at org.jboss.ejb.plugins.jaws.jdbc.JDBCUpdateCommand.executeStatementAnd
    HandleResult(JDBCUpdateCommand.java:61)
    at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.j
    ava:176)
    at org.jboss.ejb.plugins.jaws.jdbc.JDBCInitCommand.execute(JDBCInitComma
    nd.java:149)
    at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.create(JAWSPersiste
    nceManager.java:131)
    at org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceMana
    ger.java:155)
    at org.jboss.ejb.EntityContainer.create(EntityContainer.java:337)
    at org.jboss.ejb.Container.invoke(Container.java:752)
    at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
    ler.java:978)
    at $Proxy5.create(Unknown Source)
    at org.jboss.system.ServiceController.create(ServiceController.java:315)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
    nDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
    at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
    at $Proxy24.create(Unknown Source)
    at org.jboss.ejb.EjbModule.createService(EjbModule.java:386)
    at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:
    136)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
    nDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
    ler.java:978)
    at $Proxy5.create(Unknown Source)
    at org.jboss.system.ServiceController.create(ServiceController.java:315)
    at org.jboss.system.ServiceController.create(ServiceController.java:243)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
    nDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
    at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
    at $Proxy9.create(Unknown Source)
    at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:377)
    at org.jboss.deployment.MainDeployer.create(MainDeployer.java:760)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:620)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
    nDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
    at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
    at $Proxy4.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
    tScanner.java:435)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDe
    ploymentScanner.java:656)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
    canner.java:507)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
    doScan(AbstractDeploymentScanner.java:212)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
    loop(AbstractDeploymentScanner.java:225)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
    run(AbstractDeploymentScanner.java:202)
    10:47:32,465 INFO [EjbModule] Created
    10:47:32,465 INFO [EjbModule] Starting
    10:47:32,496 INFO [EjbModule] Started
    10:47:32,496 INFO [MainDeployer] Deployed package: file:/C:/jboss/jboss3/server
    /default/deploy/Props.jar
    why these exception comes, i m wrong somewhere, any thing else which should i have to define.
    thanx in advance
    regard
    sachin
    //mysql-service.xml
    <attribute name="JndiName">MySqlDS</attribute>
    <attribute name="ManagedConnectionFactoryProperties">
    <properties>
    <config-property name="ConnectionURL"type="java.lang.String">jdbc:microsoft:sqlserver://faisal:1433;DatabaseName=master</config-property>
    <config-property name="DriverClass"type="java.lang.String">com.microsoft.jdbc.sqlserver.SQLServerDriver</config-property>
    <config-property name="UserName" type="java.lang.String">sa</config-property>
    <config-property name="Password" type="java.lang.String"></config-property>
    </properties>
    </attribute>
    //standardjbosscmp-jdbc.xml
    <jbosscmp-jdbc>
    <enterprise-beans>
    <entity>
    <ejb-name>Props</ejb-name>
    <table-name>Props</table-name>
    <cmp-field>
    <field-name>key</field-name>
    <column-name>key</column-name>
    <jdbc-type>VARCHAR</jdbc-type>
    <sql-type>VARCHAR(256)</sql-type>
    </cmp-field>
    <cmp-field>
    <field-name>value</field-name>
    <column-name>value</column-name>
    <jdbc-type>VARCHAR</jdbc-type>
    <sql-type>VARCHAR(256)</sql-type>
    </cmp-field>
    </entity>
    </enterprise-beans>
    <defaults>
         <datasource>java:/MySqlDS</datasource>
    <datasource-mapping>MS SQLSERVER2000</datasource-mapping>
    <create-table>true</create-table>
    <remove-table>false</remove-table>
    <read-only>false</read-only>
    <time-out>300</time-out>
    <pk-constraint>true</pk-constraint>
    <fk-constraint>false</fk-constraint>
    <row-locking>false</row-locking>
    <preferred-relation-mapping>foreign-key</preferred-relation-mapping>
    <read-ahead>
    <strategy>on-load</strategy>
    <page-size>1000</page-size>
    <eager-load-group>*</eager-load-group>
    </read-ahead>
    <list-cache-max>1000</list-cache-max>
    </defaults>
    //standradjaws.xml
    <jaws>
         <datasource>java:/MySqlDS</datasource>
         <type-mapping>MS SQLSERVER2000</type-mapping>
    <debug>false</debug>
    <default-entity>
    <create-table>true</create-table>
    <remove-table>false</remove-table>
    <tuned-updates>true</tuned-updates>
    <read-only>false</read-only>
    <time-out>300</time-out>
    <row-locking>false</row-locking>
    <read-ahead>false</read-ahead>
    </default-entity>
         <enterprise-beans>
    <entity>
    <ejb-name>Props</ejb-name>
    <remove-table>true</remove-table>
         <finder>
              <name>findValueEquals</name>
              <query>value = {0}</query>
              <order>key DESC</order>
              </finder>
    </entity>
    </enterprise-beans>

    Hi Volodymyr
    thanx to reply me,
    i was creating only small independent cmp dats by there was no need to create seprate xml files and did the same in corresponding jboss xml files.bt it will create problem when i will use more beans as u mentioned.
    ok i follow, what u specified. i created
    //jbosscmp-jdbc.xml
    <enterprise-beans>
    <entity>
    <ejb-name>Props</ejb-name>
    <table-name>Props</table-name>
    <cmp-field>
    <field-name>key</field-name>
    <column-name>key</column-name>
    </cmp-field>
    <cmp-field>
    <field-name>value</field-name>
    <column-name>value</column-name>
    </cmp-field>
    </entity>
    </enterprise-beans>
    //jboss.xml
    <jboss>
         <enterprise-beans>
              <entity>
              <ejb-name>Props</ejb-name>
              <jndi-name>Props</jndi-name>
              </entity>
    </enterprise-beans>
    </jboss>
    //ejb-jar.xml
    <enterprise-beans>
    <entity>
    <description>
    Entity bean Props
    </description>
    <ejb-name>Props</ejb-name>
    <home>props.PropsHome</home>
    <remote>props.Props</remote>
    <ejb-class>props.PropsEJB</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>props.SportTeamPK</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-field><field-name>key</field-name></cmp-field>
    <cmp-field><field-name>value</field-name></cmp-field>
    </entity>
    </enterprise-beans>
    //mysql-service.xml
    <attribute name="JndiName">MySqlDS</attribute>
    <attribute name="ManagedConnectionFactoryProperties">
    <properties>
    <config-property name="ConnectionURL" type="java.lang.String">jdbc:microsoft:sqlserver://faisal:1433;DatabaseName=master</config-property>
    <config-property name="DriverClass" type="java.lang.String">com.microsoft.jdbc.sqlserver.SQLServerDriver</config-property>
    <config-property name="UserName" type="java.lang.String">sa</config-property>
    <config-property name="Password" type="java.lang.String"></config-property>
    </properties>
    </attribute>
    bt when i try to deploy the jar files the jboss console gives the same error:
    19:04:38,432 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
    /jboss3/server/default/deploy/Props.jar
    19:04:38,635 INFO [EjbModule] Creating
    19:04:38,667 INFO [EjbModule] Deploying Props
    19:04:40,573 ERROR [JDBCCommand] Exception caught executing SQL
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Inc
    orrect syntax near the keyword 'key'.
    at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown
    Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown
    Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest.processReplyToken(
    Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Sour
    ce)
    at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType
    (Unknown Source)
    at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown
    Source)
    at com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source)
    at com.microsoft.jdbc.base.BasePreparedStatement.postImplExecute(Unknown
    Source)
    at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)
    at com.microsoft.jdbc.base.BaseStatement.executeUpdateInternal(Unknown S
    ource)
    at com.microsoft.jdbc.base.BasePreparedStatement.executeUpdate(Unknown S
    ource)
    at org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement.executeU
    pdate(LocalPreparedStatement.java:308)
    at org.jboss.ejb.plugins.jaws.jdbc.JDBCUpdateCommand.executeStatementAnd
    HandleResult(JDBCUpdateCommand.java:61)
    at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.j
    ava:176)
    at org.jboss.ejb.plugins.jaws.jdbc.JDBCInitCommand.execute(JDBCInitComma
    nd.java:149)
    at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.create(JAWSPersiste
    nceManager.java:131)
    at org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceMana
    ger.java:155)
    at org.jboss.ejb.EntityContainer.create(EntityContainer.java:337)
    at org.jboss.ejb.Container.invoke(Container.java:752)
    at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
    ler.java:978)
    at $Proxy5.create(Unknown Source)
    at org.jboss.system.ServiceController.create(ServiceController.java:315)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
    nDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
    at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
    at $Proxy24.create(Unknown Source)
    at org.jboss.ejb.EjbModule.createService(EjbModule.java:386)
    at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:
    136)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
    nDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
    ler.java:978)
    at $Proxy5.create(Unknown Source)
    at org.jboss.system.ServiceController.create(ServiceController.java:315)
    at org.jboss.system.ServiceController.create(ServiceController.java:243)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
    nDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
    at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
    at $Proxy9.create(Unknown Source)
    at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:377)
    at org.jboss.deployment.MainDeployer.create(MainDeployer.java:760)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:620)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
    nDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
    at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
    at $Proxy4.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
    tScanner.java:435)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDe
    ploymentScanner.java:656)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
    canner.java:507)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
    doScan(AbstractDeploymentScanner.java:212)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
    loop(AbstractDeploymentScanner.java:225)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
    run(AbstractDeploymentScanner.java:202)
    19:04:41,135 INFO [EjbModule] Created
    19:04:41,151 INFO [EjbModule] Starting
    19:04:41,167 INFO [EjbModule] Started
    19:04:41,167 INFO [MainDeployer] Deployed package: file:/C:/jboss/jboss3/server
    /default/deploy/Props.jar
    Any ideas about where my code is falling over???? Please let me know....
    Thanks in Advance
    regards, sachin

  • Deployment in JBOSS

    Hi,
    I'm new to Aqualogic BPM. How do I deploy the application developed in Aqualogic BPM studio in JBOSS? Thanks in advance.
    Ram

    Hi,
    We deployed the application in Enterprise server and were able to generate a war file, which we then deployed in JBOSS. Applcn worked fine in JBOSS.
    Thanks,
    Ram

  • Soft deployment in jboss

    hi,
    any body please tell me. how to do soft deployment in jboss server.
    thanks
    Ravi

    hi
    If u are using eclipse then deployment on JBoss is damn easy. after making necessary development in web project/ EJB project along with deployment descriptor, u can deploy the project directly from eclipse.
    Tushar

  • Need Urgent Help! Exception During Deployment of JBoss Scheduler Service

    Hi Folks,
    I have a web app (.war) to deploy to JBoss 4.0.2, and there's a class in the app that implements org.jboss.varia.scheduler.Schedulable.
    I want this thing to be invoked by the JBoss Scheduler, but I can't seem to get my Schedulable instance started.
    Note: This is simply a web deployment (WAR), not a J2EE Application (EAR).
    I've tried to deploy the Scheduler at the server level but i've got a deployment exception - "file is not not found".
    also, I've tried to add the scheduler-service.xml into my web app (in WAR file ~/META-INF/ directory).
    I'm open to suggestions on how to configure the scheduler services so it will work without any exceptions.
    My scheduler-service.xml is as follows:
    <server>
    <mbean code="org.jboss.varia.scheduler.Scheduler" name="TevaOrderScheduler:service=Scheduler">
         <attribute name="StartAtStartup">true</attribute>
         <attribute name="SchedulableClass">com.cnw.enfopack.TevaOrderScheduler</attribute>
         <attribute name="InitialStartDate">NOW</attribute>
         <!--<attribute name="DateFormat">dd/MM/yy HH:mm</attribute>-->
         <attribute name="SchedulePeriod">20 * 1000</attribute>
         <attribute name="InitialRepetitions">-1</attribute>
    </mbean>
    </server>
    Please HELP me, I'm working on this issue in the last 3 days!!!
    Many Thanks in advance,
    Sagi.
    Edited by: Sagi_MY on Feb 11, 2009 11:32 PM

    Thanks for your reply jwenting,
    But for me it's an urgent case since my Scheduler refuse to work!!!
    how it can be that you have'nt face such problem in JBoss 4.0.2?
    I've search the Internet and saw many people that have faced the same problem like me.
    (But, unfortunately, their answers didn't help me)
    Please try to help me since It's almost 10 days that I'm dealing with it.
    Many thanks mate.

  • Can't remote debug appliaction with jdeveloper10.1.3 deployed in JBoss 4.2

    can't remote debug appliaction with jdeveloper10.1.3 deployed in JBoss 4.2.2
    when i try to debugg with old version like jboss-4.0.3SP1 it is workking good
    but when i'm try to debugg with jboss-4.2.2.GA and add project newly libaray jboss client jars of this version i got error
    Exception in thread "main" java.lang.NoClassDefFoundError: in
    and the debugger stoped in URLClassLoader and throw NoClassDefFoundError exception, i think the reason is the client jars
    which jars should i add to project libarary to success remotely debugg application in jboss 4.2.2 GA ?

    Remote debugging with JBoss 4.2 is the same as for 4.0.
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3?topic=rem_p_servlet_general_html

  • Deploying to JBoss

    I am currently evaluating the JSF tool as a means of developing JSP and JSF for JBoss. I am having problems deploying to JBoss.
    When I select Window->Preferences->Server configurations->ADD I see only Tomcat and Weblogic. How do I specify JBoss?
    After I get over that hurdle, can I go through the develop/test/develop/test cycle without restarting JBoss?
    dwalsh

    Hi,
    The "Run With Application Server:" at Window > Preferences > NitroX > Server Configurations > Add... is a drop-down menu, and navigating this list should display supported servers (Jakarta Tomcat 5 / 4.1 / 4.0, BEA WebLogic 8.1 / 7.0, IBM WebSphere 5, JBoss 3.2 / 4.0, Caucho Resin 3, & Mort Bay Jetty 5)
    This list is common for all the NitroX products.
    M7 Support

  • Very Strange Problem... Missing hidden field when deployed on JBOSS

    This problem is driving me nuts. Here it is... When I deploy my app to TomCat it works fine. When I deploy to JBoss everything works except the links . When I select a link rendered via JBoss the directory containing the JSP is displayed. I can also see that my filters are not being called in this case. I compared the HTML produced by TomCat to the HTML produced by JBoss and there was one minor difference. This hidden field was not rendered in JBoss:
    <input type="hidden" name="contentView:contentForm:_idcl" />When I manually include this in the JSP and run JBoss.. It works.
    I have spent a full day trying to figure out when the hidden field is not being rendered when deployed to JBoss... I would very much appreciate any suggestions.. Thanks in advance. Paul
    Here is a bigger snippit:
    <tags:layout
        heading = "/banner.jsp" 
        menu    = "/mainmenu.jsp">
         <f:subview id="contentView">
              <f:loadBundle basename="com.dygtig.bundles.labels" var="labels" />
         <h:messages layout="table" tooltip="Please review errors and resubmit."
                     fatalClass = "msgFatalText"
                     errorClass = "msgErrorText"
                     warnClass  = "msgWarnText"
                     infoClass  = "msgInfoText"/>
              <h:form id="contentForm" style="display:inline">
                   <f:verbatim><CENTER></f:verbatim>
                   <h:outputText value="Aircraft Types" styleClass="pageTitle"/>
                   <f:verbatim><br><br></f:verbatim>
                   <h:dataTable value       = "#{aCTypeListView.acTypes}"
                                var          = "ac"
                                first        = "0"
                                rows         = "15"
                                columnClasses= ""
                                styleClass   = "normaltable"
                                width        = "500px" title="Aircraft List"
                                rowClasses   = "normaltabletext1,normaltabletext2"
                                id           = "AircraftTable">
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="Action"/>
                        </f:facet>
                        <h:commandLink action="#{aCTypeListView.updateActype}">
                             <f:param name="acId" value="#{ac.id}"></f:param>
                             <h:outputText value="Upd" styleClass="commandLink"/>
                        </h:commandLink>
                        <h:outputText value=" "></h:outputText>
                        <h:commandLink action="#{aCTypeListView.deleteActype}" >
                             <f:param name="acId" value="#{ac.id}"></f:param>
                             <h:outputText value="Del" styleClass="commandLink"/>
                        </h:commandLink>
                     </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="Type-Suffix"/>
                        </f:facet>
                        <h:outputText value="#{ac.typeSuffixText}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="Model"/>
                        </f:facet>
                        <h:outputText value="#{ac.model}"/>
                   </h:column>
                   </h:dataTable>
                   <dygtig:tablescroller tables="AircraftTable" />
                   <br>
                   <h:commandLink action="#{aCTypeListView.createActype}">
                        <h:outputText value="Create New Aircraft Type" styleClass="link"/>
                   </h:commandLink>
                   <br>
                   </CENTER>
                   <br>
                   <! manually add hidden field here>          </h:form>
         </f:subview>
    </tags:layout>

    Hi Paul,
    I have the same problem under deployment to WAS, all <h:commandLink>s are out of order. The hidden form field '...:_idcl' is missing in the generated JSP, but will be generated under Tomcat.
    Have you found a solution?
    Cheers, Ralf.

  • Problem in Creating a jar file using java.util.jar and deploying in jboss 4

    Dear Techies,
    I am facing this peculiar problem. I am creating a jar file programmatically using java.util.jar api. The jar file is created but Jboss AS is unable to deploy this jar file. I have also tested that my created jar file contains the same files. When I create a jar file from the command using jar -cvf command, Jboss is able to deploy. I am sending the code , please review it and let me know the problem. I badly require your help. I am unable to proceeed in this regard. Please help me.
    package com.rrs.corona.solutionsacceleratorstudio.solutionadapter;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.util.jar.JarEntry;
    import java.util.jar.JarOutputStream;
    import java.util.jar.Manifest;
    import com.rrs.corona.solutionsacceleratorstudio.SASConstants;
    * @author Piku Mishra
    public class JarCreation
         * File object
         File file;
         * JarOutputStream object to create a jar file
         JarOutputStream jarOutput ;
         * File of the generated jar file
         String jarFileName = "rrs.jar";
         *To create a Manifest.mf file
         Manifest manifest = null;
         //Attributes atr = null;
         * Default Constructor to specify the path and
         * name of the jar file
         * @param destnPath of type String denoting the path of the generated jar file
         public JarCreation(String destnPath)
         {//This constructor initializes the destination path and file name of the jar file
              try
                   manifest = new Manifest();
                   jarOutput = new JarOutputStream(new FileOutputStream(destnPath+"/"+jarFileName),manifest);
              catch(Exception e)
                   e.printStackTrace();
         public JarCreation()
         * This method is used to obtain the list of files present in a
         * directory
         * @param path of type String specifying the path of directory containing the files
         * @return the list of files from a particular directory
         public File[] getFiles(String path)
         {//This method is used to obtain the list of files in a directory
              try
                   file = new File(path);
              catch(Exception e)
                   e.printStackTrace();
              return file.listFiles();
         * This method is used to create a jar file from a directory
         * @param path of type String specifying the directory to make jar
         public void createJar(String path)
         {//This method is used to create a jar file from
              // a directory. If the directory contains several nested directory
              //it will work.
              try
                   byte[] buff = new byte[2048];
                   File[] fileList = getFiles(path);
                   for(int i=0;i<fileList.length;i++)
                        if(fileList.isDirectory())
                             createJar(fileList[i].getAbsolutePath());//Recusive method to get the files
                        else
                             FileInputStream fin = new FileInputStream(fileList[i]);
                             String temp = fileList[i].getAbsolutePath();
                             String subTemp = temp.substring(temp.indexOf("bin")+4,temp.length());
    //                         System.out.println( subTemp+":"+fin.getChannel().size());
                             jarOutput.putNextEntry(new JarEntry(subTemp));
                             int len ;
                             while((len=fin.read(buff))>0)
                                  jarOutput.write(buff,0,len);
                             fin.close();
              catch( Exception e )
                   e.printStackTrace();
         * Method used to close the object for JarOutputStream
         public void close()
         {//This method is used to close the
              //JarOutputStream
              try
                   jarOutput.flush();
                   jarOutput.close();
              catch(Exception e)
                   e.printStackTrace();
         public static void main( String[] args )
              JarCreation jarCreate = new JarCreation("destnation path where jar file will be created /");
              jarCreate.createJar("put your source directory");
              jarCreate.close();

    Hi,
    I have gone through your code and the problem is that when you create jar it takes a complete path address (which is called using getAbsolutePath ) (when you extract you see the path; C:\..\...\..\ )
    You need to truncate this complete path and take only the path address where your files are stored and the problem must be solved.

  • BC4J deploy in JBoss 3.0.3

    While trying to deploy a BC4J app in JBoss 3.0.3, the
    following Exception was raised:
    java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement
    All the steps listed in OTN's articles were done:
    http://otn.oracle.com/products/jdev/howtos/appservers/deploy_bc4j903_to_jboss303.html
    http://otn.oracle.com/products/jdev/howtos/bc4j/ejbstateless_with_bc4j.html
    Trying to access AppModule without de Stateless EJB Session as a client, the Exception was:
    java.lang.IllegalStateException: No security context set.
    Has anyone seen something like that?

    What version of BC4J do you use? If it is 9.0.4, you have to add more libraries to Jboss.

  • EJB 3.0 deployment on JBoss - No ClassLoaders found

    I have problem deploying a simple EJB 3.0 jar file , it contains an Interface , its Bean and the jboss.xml
    jboss.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <jboss>
    <enterprise-beans>
    <session>
    <ejb-name>ServerDBConnectionBean</ejb-name>
    <management>org.jboss.ejb3.test.service.ServiceSixManagement</management>
    <ejb-class>connection.server.ServerDBConnectionBean</ejb-class>
    <remote>connection.server.ServerDBConnection</remote>
    <jndi-name>ServerDBConnectionBean</jndi-name>
    </session>
    </enterprise-beans>
    </jboss>
    The problem is that when i deploy this jar file in JBoss , it says .........
    12:10:17,988 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=server.jar
    java.lang.ClassNotFoundException: No ClassLoaders found for: connection.server.ServerDBConnectionBean
    at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
    at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
    at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at org.jboss.ejb3.Ejb3AnnotationHandler.populateBaseInfo(Ejb3AnnotationHandler.java:265)
    at org.jboss.ejb3.Ejb3DescriptorHandler.populateBaseInfo(Ejb3DescriptorHandler.java:202)
    at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:123)
    at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:409)
    at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:397)
    at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:378)
    at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:350)
    at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:305)
    at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
    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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    at $Proxy0.create(Unknown Source)
    at org.jboss.system.ServiceController.create(ServiceController.java:330)
    at org.jboss.system.ServiceController.create(ServiceController.java:273)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy28.create(Unknown Source)
    at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:429)
    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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
    at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
    at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:74)
    at org.jboss.ws.integration.jboss.DeployerInterceptorEJB.create(DeployerInterceptorEJB.java:44)
    at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
    at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy29.create(Unknown Source)
    at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
    at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy8.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
    I suppose the problem is with the package , cause when i deploy with single package hirarechy i.e; server.ServerDBConnectionBean , it works .
    Kindly any suggestions

    hi
    I think you ur jboss.xml is wrong.
    Try using like this for EJB3
         <enterprise-beans>
              <session>
                   <ejb-name>XXX</ejb-name>
                   <jndi-name>XXXX</jndi-name>
                   <local-jndi-name>XXXXX</local-jndi-name>
              </session>
         </enterprise-beans>I think <ejb-class> is not supported in jboss.xml..
    Regards
    Srinivas

Maybe you are looking for