<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how can I solve problem about internationalization in an bundle in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-solve-problem-about-internationalization-in-an-bundle/m-p/325817#M12818</link>
    <description>&lt;P&gt;The failing code is &lt;CODE&gt;new File("C:\nuxeo-cap-5.5-tomcat-sdk\nxserver\nuxeo.war\WEB-INF\classes\messages.properties").createNewFile();&lt;/CODE&gt;.&lt;BR /&gt;
The first issue is it shouldn't fail at creating it. Could you check if the file exist, and if not, if you can manually create it?&lt;BR /&gt;
The second issue I don't understand is it should not try to create the file but append into it... why isn't the file already existing..? Maybe your bundle is started to early: adding "&lt;REQUIRE&gt;org.nuxeo.ecm.platform.lang&lt;/REQUIRE&gt;" to the OSGI-INF/deployment-fragment.xml file will ensure it's deployed after the default translation files.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2012 19:29:50 GMT</pubDate>
    <dc:creator>Julien_Carsique</dc:creator>
    <dc:date>2012-01-26T19:29:50Z</dc:date>
    <item>
      <title>how can I solve problem about internationalization in an bundle</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-solve-problem-about-internationalization-in-an-bundle/m-p/325816#M12817</link>
      <description>&lt;P&gt;I'm developing an bundle using nuxeo ide and have one  messages.property for internationalization, but when I tried deploy my bundle on server, it shows this error:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    2012-01-26 12:50:47,327 ERROR [org.nuxeo.runtime.deployment.preprocessor.DeploymentPreprocessor] java.io.IOException: Could not create C:\nuxeo-cap-5.5-tomcat-sdk\nxserver\nuxeo.war\WEB-INF\classes\messages.properties
java.io.IOException: Could not create C:\nuxeo-cap-5.5-tomcat-sdk\nxserver\nuxeo.war\WEB-INF\classes\messages.properties
	at org.nuxeo.runtime.deployment.preprocessor.install.commands.AppendCommand.exec(AppendCommand.java:75)
	at org.nuxeo.runtime.deployment.preprocessor.install.CommandProcessorImpl.exec(CommandProcessorImpl.java:49)
	at org.nuxeo.runtime.deployment.preprocessor.DeploymentPreprocessor.predeploy(DeploymentPreprocessor.java:279)
	at org.nuxeo.runtime.deployment.preprocessor.DeploymentPreprocessor.predeploy(DeploymentPreprocessor.java:246)
	at org.nuxeo.runtime.deployment.preprocessor.DeploymentPreprocessor.main(DeploymentPreprocessor.java:565)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.nuxeo.runtime.tomcat.NuxeoDeployer.handleEvent(NuxeoDeployer.java:107)
	at org.nuxeo.runtime.tomcat.NuxeoDeployer.lifecycleEvent(NuxeoDeployer.java:53)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.io.IOException: El sistema no puede encontrar la ruta especificada
	at java.io.WinNTFileSystem.createFileExclusively(Native Method)
	at java.io.File.createNewFile(File.java:883)
	at org.nuxeo.runtime.deployment.preprocessor.install.commands.AppendCommand.exec(AppendCommand.java:73)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'm working on windows 7 64bit, nuxeo 5.5, tomcat&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2012 18:37:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-solve-problem-about-internationalization-in-an-bundle/m-p/325816#M12817</guid>
      <dc:creator>geekonspace</dc:creator>
      <dc:date>2012-01-26T18:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: how can I solve problem about internationalization in an bundle</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-solve-problem-about-internationalization-in-an-bundle/m-p/325817#M12818</link>
      <description>&lt;P&gt;The failing code is &lt;CODE&gt;new File("C:\nuxeo-cap-5.5-tomcat-sdk\nxserver\nuxeo.war\WEB-INF\classes\messages.properties").createNewFile();&lt;/CODE&gt;.&lt;BR /&gt;
The first issue is it shouldn't fail at creating it. Could you check if the file exist, and if not, if you can manually create it?&lt;BR /&gt;
The second issue I don't understand is it should not try to create the file but append into it... why isn't the file already existing..? Maybe your bundle is started to early: adding "&lt;REQUIRE&gt;org.nuxeo.ecm.platform.lang&lt;/REQUIRE&gt;" to the OSGI-INF/deployment-fragment.xml file will ensure it's deployed after the default translation files.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2012 19:29:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-solve-problem-about-internationalization-in-an-bundle/m-p/325817#M12818</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2012-01-26T19:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: how can I solve problem about internationalization in an bundle</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-solve-problem-about-internationalization-in-an-bundle/m-p/325818#M12819</link>
      <description>&lt;P&gt;Hi, thanks for your answer. About to&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2012 20:08:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-solve-problem-about-internationalization-in-an-bundle/m-p/325818#M12819</guid>
      <dc:creator>geekonspace</dc:creator>
      <dc:date>2012-01-26T20:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: how can I solve problem about internationalization in an bundle</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-solve-problem-about-internationalization-in-an-bundle/m-p/325819#M12820</link>
      <description>&lt;P&gt;Maybe your WebEngine module is deployed after nuxeo-platform-lang, even without the require tag.&amp;lt;br&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2012 01:57:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-solve-problem-about-internationalization-in-an-bundle/m-p/325819#M12820</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2012-01-27T01:57:58Z</dc:date>
    </item>
  </channel>
</rss>

