On 17/mar/09, at 14:05, Bartosz Oudekerk wrote:

Francesco Chicchiriccò wrote:
Hello,
we are trying to deploy Hippo Repository / Hippo CMS 6.X on glassfish / Sun Application Server, using [1] as starting point. We succeeded with the repository, by using the embedded JMS provider (Sun MQ) instead of ActiveMQ or OpenJMS. For the CMS, everything seems to work but, when going to the "TODO" panel or clicking on one of the documents for accessing the available actions, all we get is a NullPointerException at

<snip>

Have you ever experienced similar issues? Do you have any hint in understanding what could be the problem for the spring initialization?
Thank you.
[1] 
http://www.hippocms.org/display/CMS/Deployment+on+Tomcat+6+with+MySQL+and+ActiveMQ

Unfortunatly not, AFAIK glassfish has not been tested with our software,
you seem to be the first.

Cool (H)

The error doesn't ring any bells of itsself, so we would have to try to
reproduce your setup (and the error). As Glassfish is not in our
supported stack, you'd best contact our sales departement if you wish
this investigated by Hippo.

One page you might have a look at first is the following:
http://wiki.hippo.nl/display/CMS/Deployment+on+J2EE+Application+Containers

I think it's better suited to what you're trying to do than the tomcat
specific one, although in the end the configuration of the wars doesn't
differ hugely. Maybe some of the extra steps needed for WebLogic or
JBoss are also needed in Glassfish, or one of the known issues with any
of them apply....


After some days spent on this issue, I found that there is a way to tell to glassfish (via sun-web.xml) to make the JARs under WEB-INF/lib to take precedence on the ones on other classloaders and I finally got an interesting exception. Unfortunately I haven't been able to solve it yet, but it seems more meaningful to me that a bare NullPointerException.
Here it follows the stacktrace:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverManager' defined in ServletContext resource [/WEB-INF/spring/serverManager.xml]: Invocation of init method failed; nested exception is org.apache.velocity.exception.MethodInvocationException: Invocation of method 'writeToString' in class nl.hippo.servermanager.util.RootlessDomWriter threw exception class org.apache.xml.serializer.utils.WrappedRuntimeException : org.apache.xml.serializer.ToXMLSAXHandler Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'writeToString' in class nl.hippo.servermanager.util.RootlessDomWriter threw exception class org.apache.xml.serializer.utils.WrappedRuntimeException : org.apache.xml.serializer.ToXMLSAXHandler at org .apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java: 246) at org .apache .velocity.runtime.parser.node.ASTReference.execute(ASTReference.java: 175) at org .apache .velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org .apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java: 230)
        at org.apache.velocity.Template.merge(Template.java:256)
at nl .hippo .servermanager .util.FactoryHelper.createBeansResource(FactoryHelper.java:90) at nl.hippo.servermanager.ServerFactory.createServer(ServerFactory.java:75) at nl.hippo.servermanager.ServerManager.initialize(ServerManager.java: 89)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun .reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun .reflect .DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25)
        at java.lang.reflect.Method.invoke(Method.java:585)
at org .springframework .beans .factory .support .AbstractAutowireCapableBeanFactory .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1104) at org .springframework .beans .factory .support .AbstractAutowireCapableBeanFactory .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1066) at org .springframework .beans .factory .support .AbstractAutowireCapableBeanFactory .initializeBean(AbstractAutowireCapableBeanFactory.java:1029) at org .springframework .beans .factory .support .AbstractAutowireCapableBeanFactory .createBean(AbstractAutowireCapableBeanFactory.java:420) at org.springframework.beans.factory.support.AbstractBeanFactory $1.getObject(AbstractBeanFactory.java:245) at org .springframework .beans .factory .support .DefaultSingletonBeanRegistry .getSingleton(DefaultSingletonBeanRegistry.java:141) at org .springframework .beans .factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java: 242) at org .springframework .beans .factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java: 156) at org .springframework .beans .factory .support .DefaultListableBeanFactory .preInstantiateSingletons(DefaultListableBeanFactory.java:290) at org .springframework .context .support .AbstractApplicationContext.refresh(AbstractApplicationContext.java:348) at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh (AbstractRefreshableWebApplicationContext.java:156) at nl .hippo .util .spring .MultipleXmlContextLoader .createWebApplicationContext(MultipleXmlContextLoader.java:194) at nl .hippo .util .spring .MultipleXmlContextLoader .initWebApplicationContext(MultipleXmlContextLoader.java:98) at nl .hippo .util .spring .MultipleXmlContextLoaderServlet .init(MultipleXmlContextLoaderServlet.java:38)

Any bells, this way? ;-)
Thanks.
--
Francesco Chicchiriccò
Delivery Manager

everett Italia ▸
         TRUSTED TO KNOW

Head Office
Via Torino, 2 - 20123 Milano - Italia
Tel:
+39 02 72546847
Fax:
+39 02 72546418
Technology Centre
Via Federico Fellini, 2 G2/1 - 65010 Spoltore (PE) - Italia
Tel:
+39 085 2120342 / +39 085 2120537
Fax:
+39 085 2120342 / +39 085 2120537

Mob:
+39 329 0573276
e-mail:
[email protected]
Web:
http://www.everett.it



********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

Reply via email to