0 Replies Latest reply on Feb 20, 2004 6:34 AM by jacklyn

    NestedThrowable

    jacklyn Newbie

      Hi everyone,

      First of all, this is what I've got:

      - Eclipse 2.1.2
      - Lomboz 2.1.2
      - JBoss 3.2.3

      I'm following the instructions in "Tutorial for building J2EE Applications using JBoss and Eclipse".
      In the part that you create your Web Module, EJB Module and run the server for the first time, I couldn't start the server and I found out that the problems were related to my "jboss.server" file. So I downloaded the "jboss321all.server" file (given by the tutorial) and created my own "jboss323all.server" similar to that one, since some files are diferente.
      Ok. So now the server starts, but in the console there are some warnings like this:

      WARN [NestedThrowable] Duplicate throwable nesting of same base type: class org.jboss.deployment.DeploymentException is assignable from: class org.jboss.deployment.DeploymentException
      09:00:52,518 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-3.2.3/server/all/deploy/jboss-net.sar/
      org.jboss.deployment.DeploymentException: create operation failed for package file:/C:/jboss-3.2.3/server/all/deploy/jboss-net.sar/; - nested throwable: (org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException))
       at org.jboss.deployment.SARDeployer.create(SARDeployer.java:202)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy6.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
       at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
       at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:394)
       at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy4.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy5.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
       at org.jboss.Main.boot(Main.java:150)
       at org.jboss.Main$1.run(Main.java:395)
       at java.lang.Thread.run(Unknown Source)
      Caused by: org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:139)
       at org.jboss.system.ServiceController.install(ServiceController.java:225)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy4.install(Unknown Source)
       at org.jboss.deployment.SARDeployer.create(SARDeployer.java:183)
       ... 49 more
      Caused by: java.lang.reflect.UndeclaredThrowableException
       at org.jboss.system.ServiceCreator.install(ServiceCreator.java:181)
       at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:151)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:114)
       ... 59 more
      Caused by: java.lang.NoClassDefFoundError: org/jboss/net/axis/Deployment
       at java.lang.Class.getDeclaredConstructors0(Native Method)
       at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
       at java.lang.Class.getConstructor0(Unknown Source)
       at java.lang.Class.getConstructor(Unknown Source)
       at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:846)
       at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:291)
       at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:318)
       at org.jboss.system.ServiceCreator.install(ServiceCreator.java:98)
       ... 61 more


      How can I fix this?

      This is my jboss323all.server:

      <serverDefinition
       name="JBOSS 3.2.3 ALL"
       ejbModules="true"
       webModules="true"
       earModules="true">
      <property id="serverRootDirectory"
       label="Application Server Directory:"
       type="directory"
       default="C:/jboss-3.2.3" />
      <property id="serverAddress"
       label="Address:"
       type="string"
       default="127.0.0.1" />
      <property id="serverPort"
       label="Port:"
       type="string"
       default="8080" />
      <property id="classPathVariableName"
       label="Classpath Variable Name:"
       type="string"
       default="JBOSS323" />
      <property id="classPath"
       label="Classpath Variable:"
       type="directory"
       default="C:/jboss-3.2.3" />
      <serverHome>${serverRootDirectory}</serverHome>
      <webModulesDeployDirectory>${serverRootDirectory}/server/all/deploy</webModulesDeployDirectory>
      <ejbModulesDeployDirectory>${serverRootDirectory}/server/all/deploy</ejbModulesDeployDirectory>
      <earModulesDeployDirectory>${serverRootDirectory}/server/all/deploy</earModulesDeployDirectory>
      <jndiInitialContextFactory>org.jnp.interfaces.NamingContextFactory</jndiInitialContextFactory>
      <jndiProviderUrl>jnp://${serverAddress}:1099</jndiProviderUrl>
      <startClass>org.jboss.Main</startClass>
      <startWorkingDirectory>${serverRootDirectory}/bin</startWorkingDirectory>
      <startVmParameters></startVmParameters>
      <startProgramArguments>-c all</startProgramArguments>
      <stopClass>org.jboss.Shutdown</stopClass>
      <stopWorkingDirectory>${serverRootDirectory}/bin</stopWorkingDirectory>
      <stopVmParameters></stopVmParameters>
      <stopProgramArguments>${serverAddress} ${serverPort}</stopProgramArguments>
      <serverClassPath>
       <jar type="variable">JDK_TOOLS</jar>
       <jar type="variable">${classPathVariableName}/bin/run.jar</jar>
       <jar type="variable">${classPathVariableName}/bin/shutdown.jar</jar>
       <jar type="variable">${classPathVariableName}/client/jboss-j2ee.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/javax.servlet.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/commons-httpclient.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/concurrent.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/getopt.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/gnu-regexp.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/jboss-boot.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/jboss-common.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/jboss-jmx.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/jboss-system.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/jdom.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/log4j-boot.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/webdavlib.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/xercesImpl.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/xml-apis.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/bcel.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/hsqldb.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/hsqldb-plugin.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jboss.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jbossha.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jboss-j2ee.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jboss-jaas.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jboss-jsr77.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jboss-management.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jbossmq.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jbosssx.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jboss-transaction.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jgroups.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jnpserver.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jpl-pattern.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jpl-util.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jsse.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jts.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/log4j.jar</jar>
      </serverClassPath>
      <clientClassPath>
       <jar type="variable">${classPathVariableName}/client/jboss-j2ee.jar</jar>
       <jar type="variable">${classPathVariableName}/client/jnp-client.jar</jar>
       <jar type="variable">${classPathVariableName}/client/jboss-client.jar</jar>
       <jar type="variable">${classPathVariableName}/client/jboss-common-client.jar</jar>
       <jar type="variable">${classPathVariableName}/client/jbosssx-client.jar</jar>
       <jar type="variable">${classPathVariableName}/client/log4j.jar</jar>
       <jar type="variable">${classPathVariableName}/client/jnet.jar</jar>
       <jar type="variable">${classPathVariableName}/client/jaas.jar</jar>
      </clientClassPath>
      <projectClassPath>
       <jar type="variable">JDK_TOOLS</jar>
       <jar type="variable">${classPathVariableName}/bin/run.jar</jar>
       <jar type="variable">${classPathVariableName}/bin/shutdown.jar</jar>
       <jar type="variable">${classPathVariableName}/client/jboss-j2ee.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/javax.servlet.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/commons-httpclient.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/concurrent.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/getopt.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/gnu-regexp.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/jboss-boot.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/jboss-common.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/jboss-jmx.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/jboss-system.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/jdom.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/log4j-boot.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/webdavlib.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/xercesImpl.jar</jar>
       <jar type="variable">${classPathVariableName}/lib/xml-apis.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/bcel.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/hsqldb.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/hsqldb-plugin.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jboss.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jbossha.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jboss-j2ee.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jboss-jaas.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jboss-jsr77.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jboss-management.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jbossmq.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jbosssx.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jboss-transaction.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jgroups.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jnpserver.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jpl-pattern.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jpl-util.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jsse.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/jts.jar</jar>
       <jar type="variable">${classPathVariableName}/server/all/lib/log4j.jar</jar>
      </projectClassPath>
      </serverDefinition>