[fcrepo-user] Update fedora commons 3.5-> 3.6 problem: jaxws]

8 views
Skip to first unread message

Jörg Knappen

unread,
Aug 9, 2012, 10:51:25 AM8/9/12
to fcrepo-user
I tried to upgrade our fedora commons repository from 3.5 to 3.6 (we
are using an existing Tomcat 7).

Unfortunately, the upgrade failed for the following reason:

SEVERE: Exception sending context initialized event to listener
instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Unable to locate Spring NamespaceHandler for
XML schema n
amespace [http://cxf.apache.org/jaxws]
Offending resource: file
[/usr/local/fedora-commons/server/config/spring/web/jaxws.xml]

at
org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
at
org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
at
org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)
at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:284)
at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1332)
at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1325)
at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:93)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:650)
at
org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1582)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Aug 9, 2012 4:45:49 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Aug 9, 2012 4:45:49 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/fedora] startup failed due to previous errors

I looked for the error message on Google; it occurred in other
contexts. Adding Apache-cxs to my system and to the classpath changed
nothing.

Any hints?

--Jörg Knappen


Benjamin Armintor

unread,
Aug 9, 2012, 10:56:22 AM8/9/12
to Support and info exchange list for Fedora users.
Jörg-
Can you give us a list of the steps you took to upgrade? The short
answer is that the CXF Spring classes are not in your classpath, but I
need more information to have any idea why.

- Ben
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Fedora-commons-users mailing list
> Fedora-com...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Jörg Knappen

unread,
Aug 9, 2012, 11:14:44 AM8/9/12
to Support and info exchange list for Fedora users.
Hallo Ben,

Zitat von Benjamin Armintor <armi...@gmail.com>:

> Jörg-
> Can you give us a list of the steps you took to upgrade? The short
> answer is that the CXF Spring classes are not in your classpath, but I
> need more information to have any idea why.
>
> - Ben

- I downloaded fcrepo-installer-3.6.jar
- I shut down the apache-tomcat
- I moved the old fedora-commons installation to a safe place
- I installed fedora-commons 3.6 using java -jar fcrepo-installer-3.6.jar
- I restored FEDORA_HOME/conf/fedroa.fcfg
- I restored FEDORA_HOME/server/config/spring/akubra-llstore.xml
- I restored FEDORA_HOME/data
- I restarted apache-tomcat

The environment is:

java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

Apache Tomcat is 7.0.29

The Operating system is SLES SP1 (Linux)

I tried the following:
- Download the binary distribution of Apache cxs from cxs.apache.org
- Add /usr/local/apache-csx/lib to the ClASSPATH

Failure with exactly the same error message resulted.

--Jörg

Benjamin Armintor

unread,
Aug 9, 2012, 11:21:22 AM8/9/12
to Support and info exchange list for Fedora users.
Jörg-

Can you list the contents of webapps/fedora/WEB-INF/lib under the
Tomcat directory?

- Ben

On Thu, Aug 9, 2012 at 11:14 AM, Jörg Knappen

Jörg Knappen

unread,
Aug 9, 2012, 11:49:03 AM8/9/12
to fedora-com...@lists.sourceforge.net
Hallo Ben,

Zitat von Benjamin Armintor <armi...@gmail.com>:

> Jörg-
>
> Can you list the contents of webapps/fedora/WEB-INF/lib under the
> Tomcat directory?
>
> - Ben

Here they are (after "installing" fcrepo-3.6 again):

fedora:/usr/local/apache-tomcat/webapps # ls -al fedora/WEB-INF/lib
insgesamt 62416
drwxr-xr-x 2 root root 12288 18. Jan 2012 .
drwxr-xr-x 5 root root 4096 18. Jan 2012 ..
-rw-r--r-- 1 root root 160217 10. Mai 2011 abdera-core-1.1.2.jar
-rw-r--r-- 1 root root 26493 10. Mai 2011 abdera-extensions-main-1.1.2.jar
-rw-r--r-- 1 root root 617642 10. Mai 2011 abdera-i18n-1.1.2.jar
-rw-r--r-- 1 root root 972004 10. Mai 2011 abdera-parser-1.1.2.jar
-rw-r--r-- 1 root root 69409 13. Okt 2010 activation-1.1.1.jar
-rw-r--r-- 1 root root 4050207 10. Mai 2011 activemq-all-5.5.0.jar
-rw-r--r-- 1 root root 30288 13. Okt 2010 aduna-commons-collections-2.2.jar
-rw-r--r-- 1 root root 16316 13. Okt 2010 aduna-commons-concurrent-2.2.jar
-rw-r--r-- 1 root root 23191 13. Okt 2010 aduna-commons-iteration-2.2.jar
-rw-r--r-- 1 root root 17660 13. Okt 2010 akubra-core-0.3.jar
-rw-r--r-- 1 root root 10848 13. Okt 2010 akubra-fs-0.3.jar
-rw-r--r-- 1 root root 7957 13. Okt 2010 akubra-map-0.3.jar
-rw-r--r-- 1 root root 8569 13. Okt 2010 akubra-mem-0.3.jar
-rw-r--r-- 1 root root 435563 13. Okt 2010 antlr-2.7.5.jar
-rw-r--r-- 1 root root 4467 10. Nov 2010 aopalliance-1.0.jar
-rw-r--r-- 1 root root 1405635 13. Okt 2010 arq-2.3.jar
-rw-r--r-- 1 root root 43033 13. Okt 2010 asm-3.1.jar
-rw-r--r-- 1 root root 116039 26. Apr 2011 aspectjrt-1.6.8.jar
-rw-r--r-- 1 root root 1627874 26. Apr 2011 aspectjweaver-1.6.8.jar
-rw-r--r-- 1 root root 417361 5. Jan 2011 axiom-api-1.2.10.jar
-rw-r--r-- 1 root root 121555 5. Jan 2011 axiom-impl-1.2.10.jar
-rw-r--r-- 1 root root 1620429 13. Okt 2010 axis-1.3-PATCHED.jar
-rw-r--r-- 1 root root 32062 13. Okt 2010 axis-jaxrpc-1.3.jar
-rw-r--r-- 1 root root 19419 13. Okt 2010 axis-saaj-1.3.jar
-rw-r--r-- 1 root root 126771 13. Okt 2010 axis-wsdl4j-1.3.jar
-rw-r--r-- 1 root root 527105 13. Okt 2010 berkeley-db-2.5.13.jar
-rw-r--r-- 1 root root 79456 13. Okt 2010 berkeley-dbxml-2.5.13.jar
-rw-r--r-- 1 root root 193391 13. Okt 2010 carol-2.0.5.jar
-rw-r--r-- 1 root root 587703 13. Okt 2010 castor-codegen-1.3.0.1.jar
-rw-r--r-- 1 root root 65520 14. Okt 2010 castor-core-1.3.0.1.jar
-rw-r--r-- 1 root root 879647 13. Okt 2010 castor-xml-1.3.0.1.jar
-rw-r--r-- 1 root root 377124 13. Okt 2010 castor-xml-schema-1.3.0.1.jar
-rw-r--r-- 1 root root 118483 13. Okt 2010 commons-beanutils-1.6.jar
-rw-r--r-- 1 root root 168760 13. Okt 2010 commons-beanutils-core-1.7.0.jar
-rw-r--r-- 1 root root 242227 13. Okt 2010 commons-betwixt-0.8.jar
-rw-r--r-- 1 root root 46725 13. Okt 2010 commons-codec-1.3.jar
-rw-r--r-- 1 root root 559366 13. Okt 2010 commons-collections-3.1.jar
-rw-r--r-- 1 root root 107631 13. Okt 2010 commons-dbcp-1.2.1.jar
-rw-r--r-- 1 root root 139966 13. Okt 2010 commons-digester-1.7.jar
-rw-r--r-- 1 root root 71442 13. Okt 2010 commons-discovery-0.2.jar
-rw-r--r-- 1 root root 57779 13. Okt 2010 commons-fileupload-1.2.1.jar
-rw-r--r-- 1 root root 305001 13. Okt 2010 commons-httpclient-3.1.jar
-rw-r--r-- 1 root root 109043 13. Okt 2010 commons-io-1.4.jar
-rw-r--r-- 1 root root 42492 13. Okt 2010 commons-pool-1.2.jar
-rw-r--r-- 1 root root 126474 13. Okt 2010 concurrent-jena-1.3.2.jar
-rw-r--r-- 1 root root 37516 13. Okt 2010 connector-api-1.5.jar
-rw-r--r-- 1 root root 2635657 26. Apr 2011 derby-10.7.1.1.jar
-rw-r--r-- 1 root root 313898 13. Okt 2010 dom4j-1.6.1.jar
-rw-r--r-- 1 root root 22727 13. Okt 2010 emory-util-remote-2.1.jar
-rw-r--r-- 1 root root 40330 13. Okt 2010 fast-md5-2.5.jar
-rw-r--r-- 1 root root 239365 17. Aug 2011 fcrepo-common-3.5.jar
-rw-r--r-- 1 root root 5827 17. Aug 2011 fcrepo-generate-3.5.jar
-rw-r--r-- 1 root root 46773 17. Aug 2011 fcrepo-security-jaas-3.5.jar
-rw-r--r-- 1 root root 160413 17. Aug 2011 fcrepo-security-pdp-3.5.jar
-rw-r--r-- 1 root root 249999 17. Aug 2011 fcrepo-security-pep-3.5.jar
-rw-r--r-- 1 root root 1262819 17. Aug 2011 fcrepo-server-3.5.jar
-rw-r--r-- 1 root root 33528 13. Okt 2010
geronimo-activation_1.0.2_spec-1.1.jar
-rw-r--r-- 1 root root 34126 5. Jan 2011
geronimo-activation_1.1_spec-1.0.2.jar
-rw-r--r-- 1 root root 204953 5. Jan 2011
geronimo-javamail_1.4_spec-1.6.jar
-rw-r--r-- 1 root root 28804 13. Okt 2010
geronimo-stax-api_1.0_spec-1.0.1.jar
-rw-r--r-- 1 root root 572704 13. Okt 2010 google-collections-1.0-rc2.jar
-rw-r--r-- 1 root root 72741 13. Okt 2010 howl-logger-0.1.11.jar
-rw-r--r-- 1 root root 5787480 13. Okt 2010 icu-4.0.1.jar
-rw-r--r-- 1 root root 3233439 13. Okt 2010 icu4j-3.4.4.jar
-rw-r--r-- 1 root root 150954 13. Okt 2010 iri-0.5.jar
-rw-r--r-- 1 root root 174168 10. Mai 2011 jackson-core-asl-1.5.8.jar
-rw-r--r-- 1 root root 493378 10. Mai 2011 jackson-mapper-asl-1.5.8.jar
-rw-r--r-- 1 root root 79297 13. Okt 2010 jakarta-oro-2.0.5.jar
-rw-r--r-- 1 root root 59788 13. Okt 2010 java-getopt-1.0.13.jar
-rw-r--r-- 1 root root 89967 13. Okt 2010 jaxb-api-2.1.jar
-rw-r--r-- 1 root root 843569 13. Okt 2010 jaxb-impl-2.1.3.jar
-rw-r--r-- 1 root root 226915 13. Okt 2010 jaxen-1.1.1.jar
-rw-r--r-- 1 root root 28492 13. Okt 2010 jaxrpc-api-1.1.jar
-rw-r--r-- 1 root root 17289 13. Okt 2010 jcl-over-slf4j-1.5.10.jar
-rw-r--r-- 1 root root 153253 13. Okt 2010 jdom-1.0.jar
-rw-r--r-- 1 root root 2216624 13. Okt 2010 jena-2.5.6.jar
-rw-r--r-- 1 root root 974703 13. Okt 2010 jersey-bundle-1.0.3.1.jar
-rw-r--r-- 1 root root 286394 13. Okt 2010 jersey-core-1.0.3.1.jar
-rw-r--r-- 1 root root 44640 13. Okt 2010 jersey-multipart-1.0.3.1.jar
-rw-r--r-- 1 root root 56702 13. Okt 2010 jettison-1.0.1.jar
-rw-r--r-- 1 root root 531326 13. Okt 2010 joda-time-1.5.2.jar
-rw-r--r-- 1 root root 124316 13. Okt 2010 jotm-2.0.10.jar
-rw-r--r-- 1 root root 42377 13. Dez 2010 jotm_iiop_stubs-2.0.10.jar
-rw-r--r-- 1 root root 5798 13. Okt 2010 jotm_jrmp_stubs-2.0.10.jar
-rw-r--r-- 1 root root 46047 13. Okt 2010 jsr173-1.0.jar
-rw-r--r-- 1 root root 44263 13. Okt 2010 jsr311-api-1.0.jar
-rw-r--r-- 1 root root 8809 13. Okt 2010 jta-1.0.1.jar
-rw-r--r-- 1 root root 15071 13. Okt 2010 jta-1.1.jar
-rw-r--r-- 1 root root 4462 13. Okt 2010 jul-to-slf4j-1.5.10.jar
-rw-r--r-- 1 root root 198945 13. Okt 2010 junit-4.5.jar
-rw-r--r-- 1 root root 11246 13. Okt 2010 log4j-over-slf4j-1.5.10.jar
-rw-r--r-- 1 root root 170668 13. Okt 2010 logback-classic-0.9.18.jar
-rw-r--r-- 1 root root 258406 13. Okt 2010 logback-core-0.9.18.jar
-rw-r--r-- 1 root root 818961 13. Okt 2010 lucene-core-2.4.0.jar
-rw-r--r-- 1 root root 447676 13. Okt 2010 mail-1.4.1.jar
-rw-r--r-- 1 root root 38683 13. Okt 2010 mimepull-1.3.jar
-rw-r--r-- 1 root root 71626 13. Okt 2010 mptstore-0.9.4.jar
-rw-r--r-- 1 root root 4766929 13. Okt 2010 mulgara-core-2.1.4.jar
-rw-r--r-- 1 root root 785998 10. Mai 2011 mysql-connector-java-5.1.15.jar
-rw-r--r-- 1 root root 49201 13. Okt 2010 one-jar-boot-0.96.jar
-rw-r--r-- 1 root root 1623939 13. Okt 2010 openrdf-sesame-onejar-2.2.1.jar
-rw-r--r-- 1 root root 1949051 18. Jan 2011 owlapi-3.0.0-patched.jar
-rw-r--r-- 1 root root 53842 13. Okt 2010 persistence-api-1.0.2.jar
-rw-r--r-- 1 root root 539705 10. Mai 2011 postgresql-9.0-801.jdbc4.jar
-rw-r--r-- 1 root root 208025 13. Okt 2010 rome-0.9.jar
-rw-r--r-- 1 root root 24924 13. Okt 2010 saaj-api-1.3.jar
-rw-r--r-- 1 root root 4743461 13. Okt 2010 saxon-9.0.jar
-rw-r--r-- 1 root root 110962 13. Okt 2010 saxon-dom-9.0.jar
-rw-r--r-- 1 root root 53305 13. Okt 2010 sesame-model-2.2.1.jar
-rw-r--r-- 1 root root 332055 13. Okt 2010 sjsxp-1.0.1.jar
-rw-r--r-- 1 root root 23659 13. Okt 2010 slf4j-api-1.5.10.jar
-rw-r--r-- 1 root root 321190 20. Apr 2011 spring-aop-3.0.5.RELEASE.jar
-rw-r--r-- 1 root root 53082 20. Apr 2011 spring-asm-3.0.5.RELEASE.jar
-rw-r--r-- 1 root root 555410 20. Apr 2011 spring-beans-3.0.5.RELEASE.jar
-rw-r--r-- 1 root root 668861 20. Apr 2011 spring-context-3.0.5.RELEASE.jar
-rw-r--r-- 1 root root 382442 20. Apr 2011 spring-core-3.0.5.RELEASE.jar
-rw-r--r-- 1 root root 169752 20. Apr 2011
spring-expression-3.0.5.RELEASE.jar
-rw-r--r-- 1 root root 185716 26. Apr 2011
spring-security-config-3.0.5.RELEASE.jar
-rw-r--r-- 1 root root 311038 26. Apr 2011
spring-security-core-3.0.5.RELEASE.jar
-rw-r--r-- 1 root root 242833 26. Apr 2011
spring-security-web-3.0.5.RELEASE.jar
-rw-r--r-- 1 root root 231345 26. Apr 2011 spring-tx-3.0.3.RELEASE.jar
-rw-r--r-- 1 root root 395587 20. Apr 2011 spring-web-3.0.5.RELEASE.jar
-rw-r--r-- 1 root root 26514 13. Okt 2010 stax-api-1.0.1.jar
-rw-r--r-- 1 root root 128475 13. Okt 2010 stax-utils-20060502.jar
-rw-r--r-- 1 root root 307285 13. Okt 2010 sunxacml-1.2-melcoe.jar
-rw-r--r-- 1 root root 177868 13. Okt 2010 Tidy-1.0.jar
-rw-r--r-- 1 root root 119461 25. Jul 2011 trippi-core-1.5.4.jar
-rw-r--r-- 1 root root 12027 25. Jul 2011 trippi-mptstore-1.5.4.jar
-rw-r--r-- 1 root root 21232 25. Jul 2011 trippi-mulgara-1.5.4.jar
-rw-r--r-- 1 root root 746789 13. Okt 2010 trove-2.0.4.jar
-rw-r--r-- 1 root root 130773 13. Okt 2010 tt-bytecode-1.0.jar
-rw-r--r-- 1 root root 126771 13. Okt 2010 wsdl4j-1.5.1.jar
-rw-r--r-- 1 root root 130942 10. Mai 2011 xbean-spring-3.7.jar
-rw-r--r-- 1 root root 1229125 13. Okt 2010 xercesImpl-2.9.1.jar
-rw-r--r-- 1 root root 194354 13. Okt 2010 xml-apis-1.3.04.jar
-rw-r--r-- 1 root root 12221 10. Mai 2011 xmldb-exist-1.4.2.jar
-rw-r--r-- 1 root root 78440 13. Okt 2010 xmlParserAPIs-2.0.2.jar
-rw-r--r-- 1 root root 24956 13. Okt 2010 xpp3_min-1.1.4c.jar
-rw-r--r-- 1 root root 431406 13. Okt 2010 xstream-1.3.1.jar

(Since the upgrade instruction didn't tell to purge this directory, I
didn't do it)

Benjamin Armintor

unread,
Aug 9, 2012, 12:11:37 PM8/9/12
to Support and info exchange list for Fedora users.
Jörg-
As you can see, those are actually the Fedora 3.5 libraries. The
installer will not delete a deployed application: You must remove the
deployed app under webapps/fedora before starting Tomcat.

- Ben

On Thu, Aug 9, 2012 at 11:49 AM, Jörg Knappen

Jörg Knappen

unread,
Aug 9, 2012, 12:36:43 PM8/9/12
to Support and info exchange list for Fedora users., Benjamin Armintor
Thanks, this helped a lot. I now have a working fedora-3.6 instance,
but I'm still not though, because some configurations seems to be lost
and I have to repair them, too.

(The page fedora/describe shows the wrong Administrator emails (ssaly
and bob @example.org and the sample URL are plain wrong)

In the meantime I suggest to add the following sentence to
https://wiki.duraspace.org/display/FEDORA36/Upgrading+from+3.x

... after 1. from CATALINA_HOME/webapps delete the directories fedora,
fedora-demo, fop, imagemanip, and saxon.

--Jörg
Reply all
Reply to author
Forward
0 new messages