You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Jukka Zitting <ju...@gmail.com> on 2008/12/05 12:30:11 UTC
Re: jackrabbit 1.5 springmodule Jcr conflict ???
Hi,
On Fri, Dec 5, 2008 at 10:23 AM, gongtao <go...@yahoo.cn> wrote:
> [application-repository.xml]: Invocation of init method failed; nested
> exception is org.apache.jackrabbit.core.config.ConfigurationException:
> Configuration file syntax error. (Line: 4 Column: 28): Invalid byte 2 of
> 2-byte UTF-8 sequence.: Invalid byte 2 of 2-byte UTF-8 sequence.
>
> It is not error When I am using the jackrabbit 1.4
Do you have a <?xml prefix in your configuration file? It looks like
your configuration file is not in UTF-8, so you'll need something like
<?xml version="1.0" encoding="..."?> as the prefix.
In Jackrabbit 1.5 we are a bit more careful in how the configuration
files are being parsed, and things like this may well come up.
BR,
Jukka Zitting
Re: jackrabbit 1.5 springmodule Jcr conflict ???
Posted by Alexander Klimetschek <ak...@day.com>.
On Mon, Dec 8, 2008 at 3:17 AM, gongtao <go...@yahoo.cn> wrote:
> My configuration file is in UTF-8
> The following is before 5 line of my configuration file
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
That's the wrong file. Jackrabbit has a repository.xml file for its
configuration. The one you posted is your Spring bean config.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetschek@day.com
Re: jackrabbit 1.5 springmodule Jcr conflict ???
Posted by gongtao <go...@yahoo.cn>.
Jukka Zitting wrote:
>
> Hi,
>
> On Fri, Dec 5, 2008 at 10:23 AM, gongtao <go...@yahoo.cn> wrote:
>> [application-repository.xml]: Invocation of init method failed; nested
>> exception is org.apache.jackrabbit.core.config.ConfigurationException:
>> Configuration file syntax error. (Line: 4 Column: 28): Invalid byte 2 of
>> 2-byte UTF-8 sequence.: Invalid byte 2 of 2-byte UTF-8 sequence.
>>
>> It is not error When I am using the jackrabbit 1.4
>
> Do you have a <?xml prefix in your configuration file? It looks like
> your configuration file is not in UTF-8, so you'll need something like
> <?xml version="1.0" encoding="..."?> as the prefix.
>
> In Jackrabbit 1.5 we are a bit more careful in how the configuration
> files are being parsed, and things like this may well come up.
>
> BR,
>
> Jukka Zitting
>
>
Thank you Jukka Zitting!
My configuration file is in UTF-8
The following is before 5 line of my configuration file
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
Error message:
ConfigurationException:
Configuration file syntax error. (Line: 4 Column: 28): Invalid byte 2 of
2-byte UTF-8 sequence.
Line: 4 Column: 28 ??? Great wonder
--
View this message in context: http://www.nabble.com/jackrabbit-1.5---springmodule-Jcr-conflict-----tp20850358p20888602.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.