6 Replies Latest reply on Feb 24, 2011 6:48 AM by gjerich

    from oas to jboss

    gjerich Newbie

      hi to all,

       

      i get/have an ear app, which works fine on oracle applicaton server. so now i would like to deploy/migrate it on jboss and i get a multiple errors. main deployers are included and i assume some unnecessary for jboss to.  more details:

       

       

      16:15:59,391 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@1907147303{vfszip:/opt/deploy5/e-CRP_Portal-1.09.00-b23.ear/e-CRP_Portal_EJB.jar/}

      16:15:59,391 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@1907147303{vfszip:/opt/deploy5/e-CRP_Portal-1.09.00-b23.ear/e-CRP_Portal_EJB.jar/}

      16:15:59,392 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@1907147303{vfszip:/opt/deploy5/e-CRP_Portal-1.09.00-b23.ear/e-CRP_Portal_EJB.jar/}

      16:15:59,433 INFO  [EjbDeployer] installing bean: ejb/e-CRP_Portal_EJB.jar#SEcrpPortalEjb,uid1203603228

      16:15:59,433 INFO  [EjbDeployer]   with dependencies:

      16:15:59,433 INFO  [EjbDeployer]   and supplies:

      16:15:59,433 INFO  [EjbDeployer]           jndi:local/SEcrpPortalEjb@1154955210

      16:15:59,433 INFO  [EjbDeployer]           jndi:SEcrpPortalEjb

      16:15:59,434 WARN  [InterceptorInfoRepository] EJBTHREE-1852: InterceptorInfoRepository is deprecated

      16:15:59,598 INFO  [EjbModule] Deploying SEcrpPortalEjb

      16:15:59,634 WARN  [EjbModule] EJB configured to bypass security. Please verify if this is intended. Bean=SEcrpPortalEjb Deployment=vfszip:/opt/deploy5/e-CRP_Portal-1.09.00-b23.ear/e-CRP_Portal_EJB.jar/

      16:15:59,724 INFO  [BaseLocalProxyFactory] Bound EJB LocalHome 'SEcrpPortalEjb' to jndi 'local/SEcrpPortalEjb@1154955210'

      16:15:59,744 INFO  [TomcatDeployment] deploy, ctxPath=/ecrpportal

      16:15:59,764 ERROR [StandardContext] Context [/ecrpportal] startup failed due to previous errors

      java.lang.RuntimeException: mapped-name is required for jdbc/ecrpPortalReference of deployment e-CRP_Portal_Web.war

                at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXmlResourceRefs(WebResourceHandler.java:178)

                at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXml(WebResourceHandler.java:327)

                at org.jboss.web.tomcat.service.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.java:550)

                at org.jboss.web.tomcat.service.WebCtxLoader.start(WebCtxLoader.java:158)

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4272)

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)

                at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

                at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

                at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:616)

                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                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:668)

                at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

                at $Proxy38.start(Unknown Source)

                at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

                at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

                at org.jboss.system.ServiceController.start(ServiceController.java:460)

                at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

                at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

                at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

                at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

                at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

                at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

                at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)

                at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

                at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)

                at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

                at java.lang.Thread.run(Thread.java:636)

      16:15:59,765 ERROR [StandardContext] Context [/ecrpportal] startup failed due to previous errors

      16:15:59,768 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/ecrpportal state=Create mode=Manual requiredState=Installed

      org.jboss.deployers.spi.DeploymentException: URL file:/home/gasper/Programi/jboss-5.1.0.GA/server/default/tmp/3j011-lf8kxf-gk8dni0e-1-gk8dwmzs-9w/e-CRP_Portal_Web.war/ deployment failed

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:331)

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)

                at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

                at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

                at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:616)

                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                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:668)

                at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

                at $Proxy38.start(Unknown Source)

                at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

                at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

                at org.jboss.system.ServiceController.start(ServiceController.java:460)

                at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

                at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

                at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

                at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

                at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

                at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

                at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)

                at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

                at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)

                at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

                at java.lang.Thread.run(Thread.java:636)

      16:15:59,775 INFO  [BaseLocalProxyFactory] Unbind EJB LocalHome 'SEcrpPortalEjb' from jndi 'local/SEcrpPortalEjb@1154955210'

      16:15:59,780 INFO  [EjbModule] Undeployed SEcrpPortalEjb

      16:15:59,812 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/opt/deploy5/e-CRP_Portal-1.09.00-b23.ear/ state=PreReal mode=Manual requiredState=Real

      org.jboss.deployers.spi.DeploymentException: URL file:/home/gasper/Programi/jboss-5.1.0.GA/server/default/tmp/3j011-lf8kxf-gk8dni0e-1-gk8dwmzs-9w/e-CRP_Portal_Web.war/ deployment failed

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:331)

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)

                at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

                at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

                at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:616)

                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                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:668)

                at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

                at $Proxy38.start(Unknown Source)

                at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

                at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

                at org.jboss.system.ServiceController.start(ServiceController.java:460)

                at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

                at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

                at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

                at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

                at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

                at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

                at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)

                at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

                at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)

                at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

       

       

      Thanks for help

        • 1. from oas to jboss
          Wolfgang Knauf Master

          Hi,

           

          seems you have to modify your web.xml and add a "mapped-name" element to your "resource-ref". See e.g. here:

          http://community.jboss.org/message/410250

          http://community.jboss.org/message/205236

           

          Hope this helps

           

          Wolfgang

          • 2. Re: from oas to jboss
            gjerich Newbie

            hi Wolfgang,

            I tried with your advice. but no luck for me there. hmm i should give some more explanatios i suppose. first i have external .xml DB connection file - made from Jboss examples. Looks like so(oracle-ds):

            <?xml version="1.0" encoding="UTF-8"?>

            <datasources>

              <local-tx-datasource>

                <jndi-name>ecrpDB</jndi-name>

                <connection-url>jdbc:oracle:thin:@ecrp2db-test.sigov.si:1521:erpt</connection-url>

                <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>

                <user-name>myuname</user-name>

                <password>mypasswd</password>

                <min-pool-size>0</min-pool-size>

                <max-pool-size>2</max-pool-size>

                <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>

                  <metadata>

                  <type-mapping>Oracle9i</type-mapping>

                  </metadata>

              </local-tx-datasource> 

            </datasources>

             

            onward i do some correctons to my META-INF/application.xml file:

            <?xml version="1.0" encoding="UTF-8"?>

            <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">

            <application id="Application_ID">

                      <display-name>e-CRP_Portal</display-name>

                      <module id="EjbModule_1276254105569">

                                <ejb>e-CRP_Portal_EJB.jar</ejb>

                      </module>

                      <module id="WebModule_1276254108583">

                                <web>

                                          <web-uri>e-CRP_Portal_Web.war</web-uri>

                                          <context-root>ecrpportal</context-root>

                                </web>

                      </module>

                      <resource-ref>

                                <res-ref-name>ecrpDB</res-ref-name>

                                <res-type>javax.sql.DataSource</res-type>

                                <mapped-name>jdbc/ecrpDB</mapped-name> //??? NOT SURE jndi name defined in -ds.xml

                                <res-auth>Container</res-auth>

                      </resource-ref>

            </application>

            still no luck for me. what do i do wrong or what do i miss? is something obviously? perhaps i shouldnt modify application.xml and rather create new jboss-web.xml or context.xml for my ear... new errors:

            . . .

            09:24:01,010 ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/opt/deploy5/e-CRP_Portal-1.09.00-b23/ state=Not Installed mode=Manual requiredState=Parse

            org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/opt/deploy5/e-CRP_Portal-1.09.00-b23/

            . . .

            Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Element type "resource-ref" must be declared. @ vfsfile:/opt/deploy5/e-CRP_Portal-1.09.00-b23/META-INF/application.xml[14,16]

            . . .

            Caused by: org.xml.sax.SAXException: Element type "resource-ref" must be declared. @ vfsfile:/opt/deploy5/e-CRP_Portal-1.09.00-b23/META-INF/application.xml[14,16]

            . . .

            09:24:01,013 WARN  [HDScanner] Failed to process changes

            org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

            *** DEPLOYMENTS IN ERROR: Name -> Error

            vfsfile:/opt/deploy5/e-CRP_Portal-1.09.00-b23/ -> org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/opt/deploy5/e-CRP_Portal-1.09.00-b23/

            DEPLOYMENTS IN ERROR:

              Deployment "vfsfile:/opt/deploy5/e-CRP_Portal-1.09.00-b23/" is in error due to the following reason(s): org.xml.sax.SAXException: Element type "resource-ref" must be declared. @ vfsfile:/opt/deploy5/e-CRP_Portal-1.09.00-b23/META-INF/application.xml[14,16]

            . . .

            "resource-ref" must be declared?! i get same error if i fix web.xml inside a war app! how it isnt declared if i put it there.

             

            with all respect;

            gasper

            • 3. Re: from oas to jboss
              gjerich Newbie

              What does mappedName represent?

              "By default, when the application is deployed in a jar, session beans will bind to JNDI in the form ejbName/remote for remote interfaces and ejbName/local in the case of local interfaces. When the EJBs are deployed in an .ear file, the default jndi binding will be prepended by the name of the .ear file. So if the ear file name is foo.ear the default jndi names would befoo/EJB-NAME/remote and foo/EJB-NAME/local. You can override this behavior by defining your own@org.jboss.ejb3.annotation.LocalBinding and/or @org.jboss.ejb3.annotation.RemoteBinding."

               


               

               

               

              gasper

               

               

               

               



               

               

               

               


              • 4. Re: from oas to jboss
                Wolfgang Knauf Master

                Hi,

                 

                the "resource-ref" element must not be added to "application.xml", but to either "web.xml" or "ejb-jar.xml".

                 

                Hope this helps

                 

                Wolfgang

                • 5. Re: from oas to jboss
                  Wolfgang Knauf Master

                  And for your question about the meaning of "mapped-name": I think this is the JNDI name of the JDBC datasource (and thus the same as declared in your oracle-ds.xml file) + prefix "jdbc/...".

                  The "res-ref-name" is the name of the entry in your Environment Naming Context (needed only for programmatic JNDI lookups), it is NOT the name of the datasource in JNDI.

                   

                  Hope this helps

                   

                  Wolfgang

                  • 6. Re: from oas to jboss
                    gjerich Newbie

                    thx wolfgang,

                    i will try it to solve in proper way