Problem installing WAR into Resin Pro
Hi Everyone. I downloaded the 1.0 WAR file and have been unable to make it work with Resin. I changed the bean settings to use a mySQL database but when I hit the webapp I get the following error:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'buildServer' defined in ServletContext resource : Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class : Constructor threw exception; nested exception is java.lang.RuntimeException: org.jdom.input.JDOMParseException: Error in building: main-config.dtd:1: expected '<' at end of file: main-config.dtd:1: expected '<' at end of file
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class : Constructor threw exception; nested exception is java.lang.RuntimeException: org.jdom.input.JDOMParseException: Error in building: main-config.dtd:1: expected '<' at end of file: main-config.dtd:1: expected '<' at end of file
java.lang.RuntimeException: org.jdom.input.JDOMParseException: Error in building: main-config.dtd:1: expected '<' at end of file: main-config.dtd:1: expected '<' at end of file
at jetbrains.buildServer.util.FileUtil.processXmlFile(FileUtil.java:112)
at jetbrains.buildServer.serverSide.versioning.converters.LoginModuleNameConverter.convert(LoginModuleNameConverter.java:2)
at jetbrains.buildServer.serverSide.versioning.VersionManager.doConversion(VersionManager.java:55)
at jetbrains.buildServer.serverSide.versioning.VersionManager.convert(VersionManager.java:11)
at jetbrains.buildServer.serverSide.impl.BuildServerImpl.]]>(BuildServerImpl.java:801)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:171)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:78)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:703)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:358)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at com.caucho.server.webapp.Application.start(Application.java:1592)
Any help would be great as we would love to use TeamCity at DeveloperZone. Thanks!
Please sign in to leave a comment.
Hi Matthew,
Thanks for trying TeamCity :)
It looks like Caucho's parser found a error in our DTD, though it it works just
fine with default one.
As a workaround, please try removing the first line from main-config.dtd and project-config.dtd
files stored in the root of teamCity/WEB-INF/lib/server.jar archive.
In the meantime, we'll try to run TeamCity on Resin (honestly, we didn't try this yet).
Kind regards,
KIR
Matthew Schmidt wrote:
--
Kirill Maximov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"
Kirill Maximov (JetBrains) wrote:
Well, it looks like Resin doesn't support JSP tag files properly
(we tried version 3.0.21). In the next EAP, we plan to provide precompiled
JSP, so this problem won't affect Resin users.
I hope we'll manage to make another EAP this week.
Kind regards,
KIR
>> Hi Everyone. I downloaded the 1.0 WAR file and have been unable to
>> make it work with Resin. I changed the bean settings to use a mySQL
>> database but when I hit the webapp I get the following error:
>>
>> org.springframework.beans.factory.BeanCreationException: Error
>> creating bean with name 'buildServer' defined in ServletContext
>> resource : Instantiation of bean
>> failed; nested exception is
>> org.springframework.beans.BeanInstantiationException: Could not
>> instantiate bean class
>> : Constructor
>> threw exception; nested exception is java.lang.RuntimeException:
>> org.jdom.input.JDOMParseException: Error in building:
>> main-config.dtd:1: expected '<' at end of file: main-config.dtd:1:
>> expected '<' at end of file
>> org.springframework.beans.BeanInstantiationException:
>> Could not instantiate bean class
>> : Constructor
>> threw exception; nested exception is java.lang.RuntimeException:
>> org.jdom.input.JDOMParseException: Error in building:
>> main-config.dtd:1: expected '<' at end of file: main-config.dtd:1:
>> expected '<' at end of file
>> java.lang.RuntimeException:
>> org.jdom.input.JDOMParseException: Error in building:
>> main-config.dtd:1: expected '<' at end of file: main-config.dtd:1:
>> expected '<' at end of file
>> at
>> jetbrains.buildServer.util.FileUtil.processXmlFile(FileUtil.java:112)
>> at
>> jetbrains.buildServer.serverSide.versioning.converters.LoginModuleNameConverter.convert(LoginModuleNameConverter.java:2)
>>
>> at
>> jetbrains.buildServer.serverSide.versioning.VersionManager.doConversion(VersionManager.java:55)
>>
>> at
>> jetbrains.buildServer.serverSide.versioning.VersionManager.convert(VersionManager.java:11)
>>
>> at
>> jetbrains.buildServer.serverSide.impl.BuildServerImpl.(BuildServerImpl.java:801) >> >>]]> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>
>> at
>> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>> at
>> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:171)
>> at
>> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:78)
>>
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:703)
>>
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:358)
>>
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
>>
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
>>
>> at
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283)
>>
>> at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
>>
>> at
>> org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
>>
>> at
>> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252)
>>
>> at
>> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)
>>
>> at
>> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
>>
>> at
>> com.caucho.server.webapp.Application.start(Application.java:1592)
>>
>> Any help would be great as we would love to use TeamCity at
>> DeveloperZone. Thanks!
--
Kirill Maximov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"
How are you using the tag files? We haven't had any problems with taglibs or the new jsp 2.0 tag files in our initial testing. For reference, the first line in those DTDs in the line telling it that its an XML file, deleting that doesn't help. The next line is an entity spec for common. I suspect deleting that would do bad things.
Matt,
There are problems when I'm trying to access custom tag attribute within java scriplet using it's name.
For instance, when I have a tag attribute "foo" and write in scriptlet StringUtil.escape(foo). In Resin, I should use StringUtil.escape((String)pageContext.getAttribute("foo")).
We have many such places, so I think it would be simplier to provide precompiled JSPs.
Please watch http://www.jetbrains.net/jira/browse/TW-897 request.
Regards,
KIR