On Wed, Nov 9, 2011 at 10:38 PM, Paul Perret <paul.per...@geocent.com> wrote: > I'm trying to deploy geoserver.war on JBoss 5.1.0 (actually SOA-P 5.1.0, > which contains JBoss AS 5.1.0). > I originally got the expected xerces ClassCastExceptions, which were > resolved by adding jboss-classloading.xml to the WEB-INF/ directory, with > the following contents: > <classloading xmlns="urn:jboss:classloading:1.0" > name="geoserver.war" > domain="GeoServerDomain"> > export-all="NON_EMPTY" > import-all="true"> > </classloading> > But now, I'm getting the following error instead: > 09:55:33,706 ERROR [[/geoserver]] Exception sending context initialized > event to listener instance of class > org.geoserver.logging.LoggingStartupContextListener > java.lang.NoSuchMethodError: > com.thoughtworks.xstream.XStream.registerLocalConverter(Ljava/lang/Class;Ljava/lang/String;Lcom/thoughtworks/xstream/converters/Converter;)V > at > org.geoserver.config.util.XStreamPersister.init(XStreamPersister.java:269) > at > org.geoserver.config.util.XStreamPersister.<init>(XStreamPersister.java:234) > at > org.geoserver.config.util.XStreamPersister.<init>(XStreamPersister.java:210) > at > org.geoserver.config.util.XStreamPersisterFactory.createXMLPersister(XStreamPersisterFactory.java:39) > at > org.geoserver.logging.LoggingStartupContextListener.contextInitialized(LoggingStartupContextListener.java:69) > at > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910) > at org.apache.catalina.core.StandardContext.start(StandardContext.java:4389) > at > org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:321) > at > org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145) > at > org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461) > at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) > at org.jboss.web.deployers.WebModule.start(WebModule.java:97) > ... > (I can post more of the stack trace if requested) > Running in straight-up Tomcat is not an option, unfortunately. > Any ideas?
A NoSuchMethodError would have been caught up at startup time, so my guess is again a classpath issue: for some reason you have in the classpatha older version of XStream. The documentation about that method says it has been introduced in version 1.3: http://xstream.codehaus.org/javadoc/com/thoughtworks/xstream/XStream.html#registerLocalConverter(java.lang.Class, java.lang.String, com.thoughtworks.xstream.converters.Converter) Check the JRE lib/ext and the container shared libs folders Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users