1 Reply Latest reply on Dec 21, 2004 2:25 AM by Adrian Brock

    Inserting thru Entity Beans....

    asdf asdf Newbie

      I am able to insert records into Oracle(8i) through Entity Beans. But when the JBoss is shutdown, the records which are inserted are deleted. Bascially not able to commit the records. How can this be achieved??
      Any conf xml which has to be changed??

      Thanx in advance...

        • 1. Re: RC3 axis services, servlet problems
          Adrian Brock Master

          I wrote the following web-server.xml, and deployed it within my application EAR in JBoss 3 RC 3:

          <deployment name="ESB"
          targetNamespace="http://www.entersys.com/esb/user"
          xmlns:esb="http://www.entersys.com/esb/user"
          xmlns="http://xml.apache.org/axis/wsdd/"
          xmlns:jbnet="http://net.jboss.org/server"
          xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

          <ejb-ref>
          <ejb-ref-name>ejb/UserFacade</ejb-ref-name>
          <ejb-link>UserFacade</ejb-link>
          </ejb-ref>











          My WSR contains only 1 file, META-INF/web-service.xml

          esb.ejb.UserFacade (session bean) and esb.interfaces.UserData are stored within my EJB JAR. The EJB JAR is also included in the same EAR as the WSR. UserFacade works if I call it from the WAR. With WSR, I get the following during JBoss is initialized

          2002-05-27 03:47:32,812 INFO [STDOUT] 108752 [main] ERROR org.jboss.deployment.MainDeployer URLDeploymentScanner - Couldn't deploy URL file:/var/jboss-3.0.0RC3/server/default/deploy/esb.ear
          org.jboss.deployment.DeploymentException: Could not deploy axis descriptor.; - nested throwable: (org.apache.axis.deployment.wsdd.WSDDException: java.lang.Exception: Could not equip typemapping with options because oforg.apache.axis.deployment.wsdd.WSDDException: java.lang.ClassNotFoundException: Found languageSpecificType namespace '', expected 'http://xml.apache.org/axis/wsdd/providers/java')
          at org.jboss.net.axis.server.AxisService.start(AxisService.java:594)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:692)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:685)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:527)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
          at java.lang.reflect.Method.invoke(Native Method)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
          at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
          at $Proxy4.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:586)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:465)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)
          at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
          at java.lang.reflect.Method.invoke(Native Method)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:867)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:339)
          at java.lang.reflect.Method.invoke(Native Method)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
          at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
          at $Proxy3.start(Unknown Source)
          at org.jboss.deployment.SARDeployer.start(SARDeployer.java:276)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:692)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:527)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:472)
          at java.lang.reflect.Method.invoke(Native Method)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
          at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:318)
          at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
          at org.jboss.Main.boot(Main.java:142)
          at org.jboss.Main$1.run(Main.java:375)
          at java.lang.Thread.run(Thread.java:484)
          org.apache.axis.deployment.wsdd.WSDDException: java.lang.Exception: Could not equip typemapping with options because oforg.apache.axis.deployment.wsdd.WSDDException: java.lang.ClassNotFoundException: Found languageSpecificType namespace '', expected 'http://xml.apache.org/axis/wsdd/providers/java'
          at org.jboss.net.axis.Deployment.deployTypeMapping(Deployment.java:152)
          at org.jboss.net.axis.Deployment.(Deployment.java:74)
          at org.jboss.net.axis.server.AxisService.start(AxisService.java:589)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:692)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:685)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:527)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
          at java.lang.reflect.Method.invoke(Native Method)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
          at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
          at $Proxy4.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:586)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:465)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)
          at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
          at java.lang.reflect.Method.invoke(Native Method)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:867)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:339)
          at java.lang.reflect.Method.invoke(Native Method)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
          at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
          at $Proxy3.start(Unknown Source)
          at org.jboss.deployment.SARDeployer.start(SARDeployer.java:276)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:692)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:527)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:472)
          at java.lang.reflect.Method.invoke(Native Method)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
          at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:318)
          at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
          at org.jboss.Main.boot(Main.java:142)
          at org.jboss.Main$1.run(Main.java:375)
          at java.lang.Thread.run(Thread.java:484)

          What's wrong? and beside web-service.xml, what files should a WSR includes?

          Thanks