2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2020

06/28/2006: Spring; BeanStoreDefinitionException; Fix for 'Unexpected failure during bean definition parsing'

While working to get one of my projects working under Ubunu Linux which was working under Windows, I ran into the following error:

org.springframework.beans.factory.BeanDefinitionStoreException: Error ' element


for property 'location' is only allowed to contain either 'ref' attribute OR 'value'
attribute OR sub-element' in resource'class path resource [applicationContext.xml]'
at: Bean 'propertyConfigurer'</pre>

The error was definitely wrong since the XML file hadn't changed between the two OSes.

The problem was that I was using GNU's Java v1.4 instead of Sun's Java v1.5. I don't know if it was GNU vs Sun or v1.4 vs v1.5 that was the real problem. But switching to Sun Java v1.5 made Spring work which is good enough for me.

Oh... one quick note. Don't simply copy your Windows JDK directory to Linux and expect it to work. Download the Linux version from Javasoft. I installed mine to /usr/local.

06/25/2006: Ubuntu, Oracle Installation: No response from /etc/init.d/oracle-xe configure

I've been working with virtual machines. Which turned out to be a good idea while trying to install Oracle on Ubuntu Linux. I ran into a few problems.

  • install the libaio1 package.

2008-Jan-07 Update: A reader mentioned that the package name ends in a one not an el.

Oracle needs this package installed before you install the .deb package. After the package is installed with the dpkg -i command, you are supposed to run the /etc/init.d/oracle-xe configure command. However this command produced no response. Nor did trying to stop and start Oracle. After a bit of playing, I did the followig:

ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export ORACLE_HOME
$ORACLE_HOME/config/script/XE.sh

I still can’t get Oracle to work but at least that XE script did something.