[Geoserver-devel] Start up problem with geoserver 1.7.1a

Hello,

I tried to launch the geoserver 1.7.1a (the war version) with tomcat 5.5.23 and Java 1.50_14.

But I always got the same errors (the full stack trace is attached) :

30 déc. 11:40:09 ERROR [context.ContextLoader] - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘applicationState’ defined in URL [file:/D:/workspace/PSEM/geoserver-psem/target/webapp/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean ‘data’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘data’ defined in URL [jar:file:/D:/workspace/PSEM/geoserver-psem/target/webapp/WEB-INF/lib/main-1.7.1.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘geoServer2’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘geoServer2’ defined in URL [jar:file:/D:/workspace/PSEM/geoserver-psem/target/webapp/WEB-INF/lib/main-1.7.1.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.w3c.dom.Node.getTextContent()Ljava/lang/String;

I used a war exploded version with no modifications and I removed all the styles and layers (I got same errors with the defaults SLD and Layers)

I already removed xercesImpl.jar, xalan.jar, and xml-api.jar with no changes.

Do you have a solution for my problem ?

Thanks,

Arnaud Masciotra

Atos Worldline

Public Santé Transport

Tel : +33 4 78 17 87 44 - Fax : +33 4 78 17 87 78

arnaud.masciotra@anonymised.com

http://www.atosorigin.com - http://www.atosworldline.com

Atos Worldline is an Atos Origin company


Ce message et les pièces jointes sont confidentiels et réservés à l’usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d’en avertir immédiatement l’expéditeur et de le détruire. L’intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l’expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d’un virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.

(attachments)

geoserver-error.txt (31.5 KB)

Masciotra Arnaud ha scritto:

Hello,

I tried to launch the geoserver 1.7.1a (the war version) with tomcat 5.5.23 and Java 1.50_14.

But I always got the same errors (the full stack trace is attached) :

>

30 déc. 11:40:09 ERROR [context.ContextLoader] - Context initialization failed

_org.springframework.beans.factory.BeanCreationException_: Error creating bean with name 'applicationState' defined in URL [file:/D:/workspace/PSEM/geoserver-psem/target/webapp/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean 'data' while setting constructor argument; nested exception is _org.springframework.beans.factory.BeanCreationException_: Error creating bean with name 'data' defined in URL [jar:file:/D:/workspace/PSEM/geoserver-psem/target/webapp/WEB-INF/lib/main-1.7.1.jar!/applicationContext.xml]: Cannot resolve reference to bean 'geoServer2' while setting constructor argument; nested exception is _org.springframework.beans.factory.BeanCreationException_: Error creating bean with name 'geoServer2' defined in URL [jar:file:/D:/workspace/PSEM/geoserver-psem/target/webapp/WEB-INF/lib/main-1.7.1.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.w3c.dom.Node.getTextContent()Ljava/lang/String;

I used a war exploded version with no modifications and I removed all the styles and layers (I got same errors with the defaults SLD and Layers)

I already removed xercesImpl.jar, xalan.jar, and xml-api.jar with no changes.

Do you have a solution for my problem ?

That class, org.w3c.dom.Node is part of the JDK and in the 1.5.x series
the method in question is there. So it's probably the web container
playing tricks with the classpath, and setting up overrides.
Maybe it ships with an older version of the xml apis, or you added
some library in the tomcat shared libs?

As a test I took a Tomcat 5.5.20 I had on my disk with a Sun JDK 1.5.0_15 and GeoServer 1.7.1a war, on XP, and it started up fine. It may
be that the minor version difference may explain it, but I'd
look into the shared libs first.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Hi,

This issue has been solved by removing some libs from shared and common/endorsed libs of the tomcat install directory.

Regards,

Sébastien Deleuze

De : Masciotra Arnaud [mailto:Arnaud.Masciotra@anonymised.com]
Envoyé : mardi 30 décembre 2008 12:11
À : geoserver-devel@anonymised.com
Objet : [GGP2-IGN] Start up problem with geoserver 1.7.1a

Hello,

I tried to launch the geoserver 1.7.1a (the war version) with tomcat 5.5.23 and Java 1.50_14.

But I always got the same errors (the full stack trace is attached) :

30 déc. 11:40:09 ERROR [context.ContextLoader] - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘applicationState’ defined in URL [file:/D:/workspace/PSEM/geoserver-psem/target/webapp/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean ‘data’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘data’ defined in URL [jar:file:/D:/workspace/PSEM/geoserver-psem/target/webapp/WEB-INF/lib/main-1.7.1.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘geoServer2’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘geoServer2’ defined in URL [jar:file:/D:/workspace/PSEM/geoserver-psem/target/webapp/WEB-INF/lib/main-1.7.1.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.w3c.dom.Node.getTextContent()Ljava/lang/String;

I used a war exploded version with no modifications and I removed all the styles and layers (I got same errors with the defaults SLD and Layers)

I already removed xercesImpl.jar, xalan.jar, and xml-api.jar with no changes.

Do you have a solution for my problem ?

Thanks,

Arnaud Masciotra

Atos Worldline

Public Santé Transport

Tel : +33 4 78 17 87 44 - Fax : +33 4 78 17 87 78

arnaud.masciotra@anonymised.com742…

http://www.atosorigin.com - http://www.atosworldline.com

Atos Worldline is an Atos Origin company


Ce message et les pièces jointes sont confidentiels et réservés à l’usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d’en avertir immédiatement l’expéditeur et de le détruire. L’intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l’expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d’un virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.


Ce message et les pièces jointes sont confidentiels et réservés à l’usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d’en avertir immédiatement l’expéditeur et de le détruire. L’intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l’expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d’un virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.