Page 1 of 1

Site does not run after executing change-identifier task

Posted: Tue May 06, 2014 5:29 am
by lcm
Hi everybody!

I run site without problems, but when I executed change-identifier task (I made a successful maven install after that) it didn't work. I think it has something to do with Spring, but I don't know what can I get from the message. This is part of the output:

Code: Select all

[artifact:mvn] 2014-05-06 10:32:44.609:INFO:oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.
[artifact:mvn] 2014-05-06 10:42:34.937:INFO:/:No Spring WebApplicationInitializer types detected on classpath
[artifact:mvn] 2014-05-06 10:42:58.765:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/,file:/C:/desarrollo/java/wk-broadleaf311/DemoSite/site/target/mitiendauno/},file:/C:/desarrollo/java/wk-broadleaf311/DemoSite/site/target/mitiendauno/
[artifact:mvn] 2014-05-06 10:42:58.765:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/,file:/C:/desarrollo/java/wk-broadleaf311/DemoSite/site/target/mitiendauno/},file:/C:/desarrollo/java/wk-broadleaf311/DemoSite/site/target/mitiendauno/
[artifact:mvn] 2014-05-06 10:42:58.765:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/,file:/C:/desarrollo/java/wk-broadleaf311/DemoSite/site/target/mitiendauno/},file:/C:/desarrollo/java/wk-broadleaf311/DemoSite/site/target/mitiendauno/
[artifact:mvn] 2014-05-06 10:42:58.875:INFO:/:Set web app root system property: 'site.root' = [C:\desarrollo\java\wk-broadleaf311\DemoSite\site\target\mitiendauno]
[artifact:mvn] SLF4J: Class path contains multiple SLF4J bindings.
[artifact:mvn] SLF4J: Found binding in [jar:file:/C:/Documents%20and%20Settings/programacion/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
[artifact:mvn] SLF4J: Found binding in [jar:file:/C:/desarrollo/java/wk-broadleaf311/DemoSite/site/target/mitiendauno/WEB-INF/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
[artifact:mvn] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
[artifact:mvn] SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
[artifact:mvn] 2014-05-06 10:42:59.390:INFO:/:Initializing log4j from [C:\desarrollo\java\wk-broadleaf311\DemoSite\site\target\mitiendauno\WEB-INF\log4j.xml]
[artifact:mvn] 2014-05-06 10:43:00.562:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/,file:/C:/desarrollo/java/wk-broadleaf311/DemoSite/site/target/mitiendauno/},file:/C:/desarrollo/java/wk-broadleaf311/DemoSite/site/target/mitiendauno/
[artifact:mvn] 2014-05-06 10:43:00.578:INFO:/:Initializing Spring root WebApplicationContext
[artifact:mvn] [Fatal Error] :472:51: Invalid byte 2 of 3-byte UTF-8 sequence.
[artifact:mvn] [ERROR] 10:43:23 ContextLoader - Context initialization failed
[artifact:mvn] org.springframework.beans.FatalBeanException: Unable to merge source and patch locations; nested exception is org.broadleafcommerce.common.extensibility.context.merge.exceptions.MergeException: org.xml.sax.SAXParseException: Invalid byte 2 of 3-byte UTF-8 sequence.


It is said that this exception arises because xml has UTF-8 encoding in its tag, but the file is saved with another encoding. It doesn't make sense for me in this case, but I don't know what happens. I also tryed to change all identifiers by hand, just in case, and I got the same error.
Could anyone give me a light? Thank you.

Re: Site does not run after executing change-identifier task

Posted: Fri May 09, 2014 3:59 am
by Theo Schumacher
When you are looking into /desarrollo/java/wk-broadleaf311/DemoSite/site/target/mitiendauno/WEB-INF/applicationContext.xml

Do you have a line 472 ?