Home » Eclipse Projects » Virgo » Upgrading version of spring
| | |
Re: Upgrading version of spring [message #650111 is a reply to message #649501] |
Fri, 21 January 2011 19:33 |
gkontos Messages: 10 Registered: January 2011 |
Junior Member |
|
|
Hi Glyn, it didn't work again... perhaps I am doing something else wrong. Either way, I will probably go ahead and stick with what works until the next release.
FYI, I've attached the log file. Also included is my manifest file.
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: whale_probe
Bundle-SymbolicName: whale_probe
Bundle-Version: 1.0.0.qualifier
Bundle-ClassPath: whale_probe.jar,
WebRoot/WEB-INF/lib/FastInfoset.jar,
WebRoot/WEB-INF/lib/activation.jar,
WebRoot/WEB-INF/lib/aopalliance-1.0.jar,
WebRoot/WEB-INF/lib/aspectjrt-1.5.4.jar,
WebRoot/WEB-INF/lib/backport-util-concurrent.jar,
WebRoot/WEB-INF/lib/bcmail-jdk14-128.jar,
WebRoot/WEB-INF/lib/bcprov-ext-jdk15-141.jar,
WebRoot/WEB-INF/lib/bcprov-jdk15-141.jar,
WebRoot/WEB-INF/lib/cglib-nodep-2.1_3.jar,
WebRoot/WEB-INF/lib/commons-beanutils.jar,
WebRoot/WEB-INF/lib/commons-codec.jar,
WebRoot/WEB-INF/lib/commons-collections.jar,
WebRoot/WEB-INF/lib/commons-dbcp.jar,
WebRoot/WEB-INF/lib/commons-digester.jar,
WebRoot/WEB-INF/lib/commons-fileupload.jar,
WebRoot/WEB-INF/lib/commons-httpclient.jar,
WebRoot/WEB-INF/lib/commons-logging.jar,
WebRoot/WEB-INF/lib/commons-pool.jar,
WebRoot/WEB-INF/lib/el-api.jar,
WebRoot/WEB-INF/lib/el-ri.jar,
WebRoot/WEB-INF/lib/icefaces-comps.jar,
WebRoot/WEB-INF/lib/icefaces-facelets.jar,
WebRoot/WEB-INF/lib/icefaces.jar,
WebRoot/WEB-INF/lib/json_simple.jar,
WebRoot/WEB-INF/lib/jta.jar,
WebRoot/WEB-INF/lib/krysalis-jCharts-1.0.0-alpha-1.jar,
WebRoot/WEB-INF/lib/log4j-1.2.14.jar,
WebRoot/WEB-INF/lib/mail.jar,
WebRoot/WEB-INF/lib/mysql-connector-java-5.0.7-bin.jar,
WebRoot/WEB-INF/lib/objenesis-1.0.jar,
WebRoot/WEB-INF/lib/quartz-all-1.6.1.jar,
WebRoot/WEB-INF/lib/standard-1.1.2.jar,
WebRoot/WEB-INF/lib/standard.jar,
WebRoot/WEB-INF/lib/xercesImpl.jar,
WebRoot/WEB-INF/lib/xml-apis.jar,
WebRoot/WEB-INF/lib/mybatis-3.0.2.jar,
WebRoot/WEB-INF/lib/spring-security-acl-3.0.3.RELEASE.jar,
WebRoot/WEB-INF/lib/spring-security-acl-3.0.5.RELEASE-source s.jar,
WebRoot/WEB-INF/lib/spring-security-acl-3.0.5.RELEASE.jar,
WebRoot/WEB-INF/lib/spring-security-aspects-3.0.5.RELEASE-so urces.jar,
WebRoot/WEB-INF/lib/spring-security-aspects-3.0.5.RELEASE.ja r,
WebRoot/WEB-INF/lib/spring-security-config-3.0.3.RELEASE.jar ,
WebRoot/WEB-INF/lib/spring-security-config-3.0.5.RELEASE-sou rces.jar,
WebRoot/WEB-INF/lib/spring-security-config-3.0.5.RELEASE.jar ,
WebRoot/WEB-INF/lib/spring-security-core-3.0.3.RELEASE.jar,
WebRoot/WEB-INF/lib/spring-security-core-3.0.5.RELEASE-sourc es.jar,
WebRoot/WEB-INF/lib/spring-security-core-3.0.5.RELEASE.jar,
WebRoot/WEB-INF/lib/spring-security-taglibs-3.0.3.RELEASE.ja r,
WebRoot/WEB-INF/lib/spring-security-taglibs-3.0.5.RELEASE-so urces.jar,
WebRoot/WEB-INF/lib/spring-security-taglibs-3.0.5.RELEASE.ja r,
WebRoot/WEB-INF/lib/spring-security-web-3.0.3.RELEASE.jar,
WebRoot/WEB-INF/lib/spring-security-web-3.0.5.RELEASE-source s.jar,
WebRoot/WEB-INF/lib/spring-security-web-3.0.5.RELEASE.jar,
WebRoot/WEB-INF/lib/jsf-api-1.2.jar,
WebRoot/WEB-INF/lib/jsf-impl-1.2.jar,
WebRoot/WEB-INF/lib/com.springsource.javax.servlet.jsp.jstl- 1.2.0.jar,
WebRoot/WEB-INF/lib/testing/easymockclassextension.jar,
WebRoot/WEB-INF/lib/testing/hamcrest-core-1.1.jar,
WebRoot/WEB-INF/lib/testing/hamcrest-library-1.1.jar,
WebRoot/WEB-INF/lib/testing/jmock-2.5.1.jar,
WebRoot/WEB-INF/lib/testing/jmock-legacy-2.5.1.jar,
WebRoot/WEB-INF/lib/testing/jmock-script-2.5.1.jar,
WebRoot/WEB-INF/lib/testing/junit-4.8.2.jar,
WebRoot/WEB-INF/lib/testing/shale-core-1.0.5.jar,
WebRoot/WEB-INF/lib/testing/shale-spring-1.0.5.jar,
WebRoot/WEB-INF/lib/testing/shale-test-1.0.5.jar,
.
Export-Package: com.icesoft.faces.application,
... there's a bunck that were loaded by eclipse when I converted the project...
... including log4j if that's relevant to the errors ..
Import-Bundle: org.springframework.web;version="[3.0.3.RELEASE,3.0.3.RELEASE] "
Import-Package: javax.servlet,
javax.servlet.http,
org.springframework.context,
org.springframework.core.io.support,
org.springframework.dao,
org.springframework.jdbc.core.support,
org.springframework.scheduling.quartz,
org.springframework.web.context,
org.springframework.web.servlet,
org.springframework.web.util
Import-Library: org.springframework.spring
-
Attachment: log.log
(Size: 372.43KB, Downloaded 414 times)
|
|
| | | | |
Re: Upgrading version of spring [message #659199 is a reply to message #652440] |
Fri, 11 March 2011 14:05 |
|
I second that, the script is indeed elegant - Cheers
The one issue I faced is that spring-framework-3.0.5.RELEASE does not come with the source bundles in the dist directory, they are now shipped in the src directory. I have attached a modified script that handles this.
Many thank,
Joel
#!/bin/sh
# This script upgrades the Spring version in the Virgo Kernel or Web Server.
# Applies to a vanilla Virgo Kernel/Web Server v2.1.0.RELEASE instance using Spring 3.0.0
#
if [[ "$VIRGO_HOME" == "" ]]; then
VIRGO_HOME=$HOME/opt/virgo-web-server-2.1.0.RELEASE
fi
if [[ "$SPRING_DIR" == "" ]]; then
SPRING_DIR=$HOME/Library/spring
fi
source_version="3.0.0"
target_version="3.0.5"
target_version_dist="$SPRING_DIR/spring-framework-${target_version}.RELEASE/dist "
target_version_src="$SPRING_DIR/spring-framework-${target_version}.RELEASE/src "
cd $VIRGO_HOME
for x in $(find . -name "*${source_version}*")
do
base=$(basename $x)
base_target=$(echo $base | sed -e "s/${source_version}/${target_version}/g")
if [[ -f $target_version_dist/$base_target ]]; then
rm $x
cp $target_version_dist/$base_target $(dirname $x)
elif [[ -f $target_version_src/$base_target ]]; then
rm $x
cp $target_version_src/$base_target $(dirname $x)
else
echo "WARN: $target_version_dist/$base_target DOES NOT EXIST"
fi
done
sed -ie "s/${source_version}.RELEASE/${target_version}.RELEASE/g" lib/org.eclipse.virgo.kernel.launch.properties
echo "Done upgrade."
[Updated on: Fri, 11 March 2011 14:07] Report message to a moderator
|
|
| |
Goto Forum:
Current Time: Sat Dec 14 10:23:28 GMT 2024
Powered by FUDForum. Page generated in 0.05232 seconds
|