bjsion / tongue-tied

Translation and resource management tool
1 stars 0 forks source link

Can not deploy on JBOSS #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version Info
TongueTied:      TongueTied 20090927
OS:   linux
Java: 6
Browser: irrelevant

What steps will reproduce the problem?
1. download war
2. rename to TongueTied.war
3. copy to jboss/server/default/deploy

What is the expected output? What do you see instead?

instead of properly deploying, the war is issuing exceptions. As a result,
it's impossible to test this program:

INFO   | jvm 1    | 2009/12/03 12:18:12 | 13:18:12,133 INFO  [STDOUT]
13:18:12,128 ERROR [ContextLoader] Context initialization failed
INFO   | jvm 1    | 2009/12/03 12:18:12 |
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'sessionFactory' defined in ServletContext resource
[/WEB-INF/application-context.xml]: Invocation of init method failed;
nested exception is org.hibernate.AnnotationException:
java.lang.NoSuchMethodException:
org.hibernate.validator.ClassValidator.<init>(java.lang.Class,
java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator,
java.util.Map, org.hibernate.annotations.common.reflection.ReflectionManager)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ini
tializeBean(AbstractAutowireCapableBeanFactory.java:1336)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC
reateBean(AbstractAutowireCapableBeanFactory.java:471)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r
un(AbstractAutowireCapableBeanFactory.java:409)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
java.security.AccessController.doPrivileged(Native Method)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre
ateBean(AbstractAutowireCapableBeanFactory.java:380)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra
ctBeanFactory.java:264)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle
ton(DefaultSingletonBeanRegistry.java:220)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract
BeanFactory.java:261)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
anFactory.java:185)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
anFactory.java:164)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti
ateSingletons(DefaultListableBeanFactory.java:423)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactory
Initialization(AbstractApplicationContext.java:729)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA
pplicationContext.java:381)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.springframework.web.context.ContextLoader.createWebApplicationContext(Contex
tLoader.java:255)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextL
oader.java:199)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.springframework.web.context.ContextLoaderListener.contextInitialized(Context
LoaderListener.java:45)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910
)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(To
mcatDeployment.java:310)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDepl
oyment.java:142)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:4
61)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.web.deployers.WebModule.start(WebModule.java:97)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
java.lang.reflect.Method.invoke(Method.java:597)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157
)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at $Proxy38.start(Unknown Source)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStop
LifecycleAction.java:42)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStop
LifecycleAction.java:37)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallA
ction(SimpleControllerContextAction.java:62)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.action.AccessControllerContextAction.install(Access
ControllerContextAction.java:71)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractCo
ntrollerContextActions.java:51)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControlle
rContext.java:348)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControll
erContext.java:286)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:
1631)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractControlle
r.java:934)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractControll
er.java:1082)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractControll
er.java:984)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:8
22)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:5
53)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.system.ServiceController.doChange(ServiceController.java:688)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.system.ServiceController.start(ServiceController.java:460)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDepl
oy(AbstractSimpleRealDeployer.java:62)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRea
lDeployer.java:50)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.jav
a:171)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:
1439)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(Deploye
rsImpl.java:1157)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(Deploye
rsImpl.java:1178)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1
098)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControlle
rContext.java:348)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:
1631)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractControlle
r.java:934)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractControll
er.java:1082)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractControll
er.java:984)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:8
22)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:5
53)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:7
81)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:
702)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(Ma
inDeployerAdapter.java:117)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(Pr
ofileDeployAction.java:70)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(
AbstractProfileAction.java:53)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.system.server.profileservice.repository.AbstractProfileService.install
(AbstractProfileService.java:361)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControlle
rContext.java:348)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:
1631)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractControlle
r.java:934)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractControll
er.java:1082)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractControll
er.java:984)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:8
22)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:5
53)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at org.jboss.
INFO   | jvm 1    | 2009/12/03 12:18:12 | 13:18:12,133 INFO  [STDOUT]
system.server.profileservice.repository.AbstractProfileService.activateProfile(A
bstractProfileService.java:306)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServ
iceBootstrap.java:271)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.Main.boot(Main.java:221)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
org.jboss.Main$1.run(Main.java:556)
INFO   | jvm 1    | 2009/12/03 12:18:12 |   at
java.lang.Thread.run(Thread.java:619)
----- snip (see attachement) -----
INFO   | jvm 1    | 2009/12/03 12:18:12 | 13:18:12,568 ERROR
[ProfileServiceBootstrap] Failed to load profile: Summary of incomplete
deployments (SEE PREVIOUS ERRORS FOR DETAILS):
INFO   | jvm 1    | 2009/12/03 12:18:12 | 
INFO   | jvm 1    | 2009/12/03 12:18:12 | DEPLOYMENTS IN ERROR:
INFO   | jvm 1    | 2009/12/03 12:18:12 |   Deployment
"vfszip:/web/intraweb/apps/jboss-5.1.0.GA/server/default/deploy/TongueTied.war/"
is in error due to the following reason(s):
org.jboss.deployers.spi.DeploymentException: URL
file:/web/intraweb/apps/jboss-5.1.0.GA/server/default/tmp/5c4og65-y62ltn-g2rhs0f
8-1-g2rht420-9s/TongueTied.war/
deployment failed

Original issue reported on code.google.com by tch...@gmail.com on 3 Dec 2009 at 12:25

Attachments:

GoogleCodeExporter commented 9 years ago
This is really an issue with JBoss Application Server's class loader not with
TongueTied. JBoss AS 5.1.0GA release ships with 3.2.0GA of hibernate core and 
3.3.x
of hibernate annotations and 3.0.x of hibernate validator. TongueTied 1.3.0 
makes use
of more recent versions of Hibernate 3.3.1 core, 3.4.0 annotations and does not 
make
use of hibernate validator.

In order to make this work, there are a few options available to you. The first
option is definitely the easiest, but I will leave it to your discretion.

1. This is the simple option, add hibernate validator 3.1.0GA jar file to
TongueTied.war file. To do this download from here:
    https://www.hibernate.org/6.html
   and then add the hibernate-validator.jar to the /WEB-INF/lib directory in the
TongueTied.war file. Then redeploy the war file.

2. Upgrade your hibernate libraries in JBoss. See the link here:
    http://jaitechwriteups.blogspot.com/2008/08/how-to-upgrade-hibernate-in-jboss.html
   One other way I found was to copy over the newer (i.e. replace) hibernate libs to
<JBOSS_HOME>/common/lib

I am closing this issue for now. Let me know if you have any other issues.

Original comment by bjs...@gmail.com on 8 Dec 2009 at 4:21