01-26-2012 01:37 PM
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:
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)
I'm working on windows 7 64bit, nuxeo 5.5, tomcat
01-26-2012 02:29 PM
The failing code is new File("C:\nuxeo-cap-5.5-tomcat-sdk\nxserver\nuxeo.war\WEB-INF\classes\messages.properties").createNewFile();
.
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?
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 "
01-26-2012 02:29 PM
The failing code is new File("C:\nuxeo-cap-5.5-tomcat-sdk\nxserver\nuxeo.war\WEB-INF\classes\messages.properties").createNewFile();
.
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?
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 "
01-26-2012 03:08 PM
Hi, thanks for your answer. About to
01-26-2012 08:57 PM
Maybe your WebEngine module is deployed after nuxeo-platform-lang, even without the require tag.<br>
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.