4 Replies Latest reply on Sep 27, 2002 9:36 AM by David Jencks

    Error in deploying SAP adapter in JBOSS3.0.2

    Jguru Newbie


      Hi ,

      I am getting errors for all -service.xml files while deploying in Jboss-3.0.2.
      Error is 'NoClassDefFoundError'
      What is the cause of the error???
      Plz find the part of the server.log..
      ----------------------------------------------------

      2002-09-26 16:00:52,757 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
      2002-09-26 16:00:52,757 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@28b57b03{ url=file:/D:/jboss-3.0.2/server/default/deploy/jbossmq-service.xml, deployedLastModified=0 }
      org.jboss.deployment.DeploymentException: Could not create deployment: file:/D:/jboss-3.0.2/server/default/deploy/jbossmq-service.xml; - nested throwable: (java.lang.NoClassDefFoundError: $Proxy5)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:772)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:615)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      .....
      Caused by: java.lang.NoClassDefFoundError: $Proxy5
      at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown Source)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:273)
      at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:562)
      at org.jboss.system.ServiceController.getServiceProxy(ServiceController.java:740)


      2002-09-26 16:00:52,908 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss.jca:service=RARDeployer
      2002-09-26 16:00:52,918 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@8388fd10{ url=file:/D:/jboss-3.0.2/server/default/deploy/jca-service.xml, deployedLastModified=0 }
      org.jboss.deployment.DeploymentException: Could not create deployment: file:/D:/jboss-3.0.2/server/default/deploy/jca-service.xml; - nested throwable: (java.lang.NoClassDefFoundError: $Proxy5)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:772)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:615)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:30)
      at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAccessorImpl.java:48)
      at java.lang.reflect.Method.invoke(Method.java:306)


      -----------------------------------------------

      Also when I deployed sap jca adapter, I found the following error…
      Is mainly for SAXParseException.
      I am attaching the contextns of my sapr3-service .xml here..

      ----------------------------------------------
      Error -
      ======

      2002-09-26 16:00:53,378 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url file:/D:/jboss-3.0.2/server/default/tmp/deploy/server/default/deploy/sapr3-service.xml/52.sapr3-service.xml
      2002-09-26 16:00:53,388 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository2] Adding org.jboss.mx.loading.UnifiedClassLoader@2f356f{ url=file:/D:/jboss-3.0.2/server/default/tmp/deploy/server/default/deploy/sapr3-service.xml/52.sapr3-service.xml }
      2002-09-26 16:00:53,398 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.SARDeployer@1a9334
      2002-09-26 16:00:53,438 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/D:/jboss-3.0.2/server/default/deploy/sapr3-service.xml
      2002-09-26 16:00:53,438 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@6e434cab{ url=file:/D:/jboss-3.0.2/server/default/deploy/sapr3-service.xml, deployedLastModified=0 }
      org.jboss.deployment.DeploymentException: Exception getting document; - nested throwable: (org.xml.sax.SAXParseException: Document root element is missing.)
      at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:635)
      at org.jboss.deployment.SARDeployer.init(SARDeployer.java:150)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:668)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)

      -----
      Caused by: org.xml.sax.SAXParseException: Document root element is missing.
      at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3052)
      at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3040)

      ------------------------------------------------------------------------

      sapr3-service.xml contents are :
      -------------------------------

      <?xml version="1.0" encoding="UTF-8" ?>
      - <!-- $Id: sapr3-service.xml,v 1.2 2002/06/21 23:40:09 d_jencks dead $
      -->
      - <!-- =====================================================================
      -->
      - <!--
      -->
      - <!-- JBoss Server Configuration
      -->
      - <!-- Configured By Mahesh
      -->
      - <!--
      -->
      - <!-- =====================================================================
      -->
      -
      - <!-- ====================================================================
      -->
      - <!-- Example ConnectionFactoryLoader for SAP R/3 connector
      -->
      - <!-- Put sap.rar in deploy also. This rar should contain jars
      -->
      - <!-- ra.jar and jCO.jar. The native libraries need to be moved by hand
      -->
      - <!-- to your PATH.
      -->
      - <!-- Author: David Jencks d_jencks@users.sourceforge.net
      -->
      - <!-- Author: Paul McLachlan paulm@yambay.com
      -->
      - <!-- ====================================================================
      -->
      -

      server-name=10.110.20.13
      system-name=
      system-number=00
      UserName=test
      password=testpasswd
      Language=EN

      java:/sapadapter
      java:/sapadapter
      <mbean-ref name="ResourceAdapterName">
      JCA:service=RARDeployment,name=sapadapter
      </mbean-ref>
      <mbean-ref name="ConnectionManagerFactoryLoaderName">
      JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory
      </mbean-ref>

      # BlockingTimeoutMillis=500000
      IdleTimeoutMinutes=30
      MaxSize=10
      CleanupIntervalMinutes=30
      MinSize=0
      MaxIdleTimeoutPercent=1.0

      org.jboss.resource.security.ManyToOnePrincipalMapping
      UserName=test password=testpasswd




      ----------------------------------------------
      Please advise on remeving these errors.

      Your help is highly appriciated.

      Thanks,
      Mahesh