-
1. Re: JBOSS 5.1 - org.jboss.deployers.spi.DeploymentException: Error during deploy:
wolfgangknauf Apr 22, 2010 10:22 AM (in response to prakashmvc)Hi,
what other files does your EAR file contain? Is there an "application.xml"? The error sounds strange...
Best regards
Wolfgang
-
2. Re: JBOSS 5.1 - org.jboss.deployers.spi.DeploymentException: Error during deploy:
prakashmvc Apr 23, 2010 1:19 AM (in response to wolfgangknauf)Hi,
yes ear file contains application.xml
Contents of ear file
MEATA-INF
|_application.xml
|_jboss-aop.xml
|_MANIFEST.MF
consensus-weights.har
consensus-weights.sar
consensus-weights.war
Contents of application.xml
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5"><display-name>consensus-weights</display-name>
<module>
<java>consensus-weights.sar</java>
</module><module>
<java>consensus-weights.war</java>
</module></application>
Contents of jboss-aop.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--Share classes loaded higher up the classloader heirarchy, but isolate
any that are packaged in this EAR, but not higher up. This balances the
needs:
a) to share classes needed for components to communicate via call-by-reference
b) keep maximum practical classloader isolation to support hot deployment of
new versions of the EAR-->
<jboss-app>
<module>
<har>consensus-weights.har</har>
</module>
<!-- DO NOT delegate to the parent classloader.
Tomcat includes the eclipse JDT components (in the jasper JSP compiler)
and it is not compatiable with eclipse core 3.2.0.658.
If you do not scope classloading, you get a link/loader failure as
CompileResult has missing methods (our classes expect a newer version).
If you scope classloading, but delegate up, you get some classes from us,
and some from tomcat. This leads to an informative
ArrayIndexOutOfBoundsException.
-->
<loader-repository>
Mands.classloading:loader=consensus.weights
<loader-repository-config>
java2ParentDelegation=true
</loader-repository-config>
</loader-repository>
</jboss-app>Contents of MANIFEST.MF
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 14.3-b01 (Sun Microsystems Inc.)
Built-By: prakasha
checksum-total: c8f172a35534a8b73886ac81eb527e41 -
3. Re: JBOSS 5.1 - org.jboss.deployers.spi.DeploymentException: Error during deploy:
wolfgangknauf Apr 23, 2010 5:07 PM (in response to prakashmvc)Hi,
that's it! The web module is declared wrong.
It should be something like:
{quote}
<module id="...">
<web>
<web-uri>consensus-weights.war</web-uri>
<context-root>...</context-root>
</web>
</module>{quote}
(I don't know whether "id " and the subelement "context-root" are required, but that's autogenerated Eclipse code)
Best regards
Wolfgang
-
4. Re: JBOSS 5.1 - org.jboss.deployers.spi.DeploymentException: Error during deploy:
prakashmvc Apr 26, 2010 7:24 AM (in response to wolfgangknauf)Hi,
As per your suggestion I have modified the application.xml as below,but now am gettign the different kind of exception.
Note: mands is the folder which is customized to our application (conatins the basic configuration of 'default'' folder contents)
<?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>
<display-name>consensus-weights</display-name>
<module>
<java>consensus-weights.sar</java>
</module>
<module>
<web>
<web-uri>consensus-weights.war</web-uri>
<context-root></context-root>
</web>
</module>
</application>16:09:22,468 ERROR [AbstractKernelController] Error installing to Start: name=mands.tables:table=ConsensusWeightsTable state=Create mode=Manual requiredState=Installed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao' defined in class path resource [ConsensusWeightsTableBean.appctx.xml]: Can't resolve reference to bean 'sessions' while setting property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessions' defined in class path resource [ConsensusWeightsTableBean.appctx.xml]: Initialization of bean failed; nested exception is javax.naming.NameNotFoundException: mands not bound
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessions' defined in class path resource [ConsensusWeightsTableBean.appctx.xml]: Initialization of bean failed; nested exception is javax.naming.NameNotFoundException: mands not bound
javax.naming.NameNotFoundException: mands not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:104)
at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:125)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1058)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:176)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1012)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:823)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at uk.co. choice.mands.server.consensusweights.ConsensusWeightsTableBean.start(ConsensusWeightsTableBean.java:298)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
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.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.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)
16:09:22,484 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/ state=Create mode=Manual requiredState=Installed
org.jboss.deployers.spi.DeploymentException: Web mapping already exists for deployment URL file:/D:/apps/jboss-5.1.0/server/mands/tmp/5c4ou67-rmumiy-g8h5mmoo-1-g8h5oq8m-9z/consensus-weights.war/
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:187)
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.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.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.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)16:09:22,843 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/D:/apps/jboss-5.1.0/server/mands/deploy/consensus-weights-2.0.0.ear/ state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Web mapping already exists for deployment URL file:/D:/apps/jboss-5.1.0/server/mands/tmp/5c4ou67-rmumiy-g8h5mmoo-1-g8h5oq8m-9z/consensus-weights.war/
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:187)
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.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.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)Thanks,
Prakash
-
5. Re: JBOSS 5.1 - org.jboss.deployers.spi.DeploymentException: Error during deploy:
wolfgangknauf Apr 26, 2010 9:38 AM (in response to prakashmvc)Hi,
why did you change your application.xml from JavaEE5 to J2EE 1.3? This is not the recommended way to resolve problems ;-).
The error message says that your webapp being deployed twice:
"org.jboss.deployers.spi.DeploymentException: Web mapping already exists for deployment URL file:/D:/apps/jboss-5.1.0/server/mands/tmp/5c4ou67-rmumiy-g8h5mmoo-1-g8h5oq8m-9z/consensus-weights.war/"
Is the war file contained in two places?
If this does not help: maybe you should ask the question in the spring forums, as it is a spring error.
Best regards
Wolfgang