12 Replies Latest reply on Jul 8, 2012 12:44 PM by Matías Elola

    Unable to read the configuration file \opencms\WEB-INF\config\opencms.properties

    Avneesh Sisodia Newbie

      Hello Everyone,

      I am trying to deploy an ear on JBoss AS 7.1. It giving error.

       

       

      19:54:33,750 ERROR [org.opencms.main.OpenCmsCore] (MSC service thread 1-2) Critical error during OpenCms initialization: Unable to read the configuration file \opencms\WEB-INF\config\opencms.properties.: org.opencms.main.CmsException: Critical error during OpenCms initialization: Unable to read the configuration file \opencms\WEB-INF\config\opencms.properties.
          at org.opencms.main.OpenCmsCore.setErrorCondition(OpenCmsCore.java:320) [opencms-7.5.2.jar:]
          at org.opencms.main.CmsInitException.setErrorCondition(CmsInitException.java:121) [opencms-7.5.2.jar:]
          at org.opencms.main.CmsInitException.<init>(CmsInitException.java:92) [opencms-7.5.2.jar:]
          at org.opencms.main.OpenCmsCore.initContext(OpenCmsCore.java:1224) [opencms-7.5.2.jar:]
          at org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1736) [opencms-7.5.2.jar:]
          at org.opencms.main.OpenCmsListener.contextInitialized(OpenCmsListener.java:87) [opencms-7.5.2.jar:]
          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_25]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_25]
          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_25]
      
      19:54:33,765 ERROR [org.opencms.main.OpenCmsListener] (MSC service thread 1-2) Critical error during OpenCms initialization: Unable to read the configuration file \opencms\WEB-INF\config\opencms.properties.: org.opencms.main.CmsInitException: Critical error during OpenCms initialization: Unable to read the configuration file \opencms\WEB-INF\config\opencms.properties.
          at org.opencms.main.OpenCmsCore.initContext(OpenCmsCore.java:1224) [opencms-7.5.2.jar:]
          at org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1736) [opencms-7.5.2.jar:]
          at org.opencms.main.OpenCmsListener.contextInitialized(OpenCmsListener.java:87) [opencms-7.5.2.jar:]
          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_25]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_25]
          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_25]
      Caused by: java.io.FileNotFoundException: \opencms\WEB-INF\config\opencms.properties (The system cannot find the path specified)
          at java.io.FileInputStream.open(Native Method) [rt.jar:1.6.0_25]
          at java.io.FileInputStream.<init>(FileInputStream.java:120) [rt.jar:1.6.0_25]
          at org.opencms.util.CmsPropertyUtils.loadProperties(CmsPropertyUtils.java:98) [opencms-7.5.2.jar:]
          at org.opencms.main.OpenCmsCore.initContext(OpenCmsCore.java:1222) [opencms-7.5.2.jar:]
          ... 10 more
      
      19:54:33,875 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (MSC service thread 1-2) org.tuckey.web.filters.urlrewrite.utils.Log ERROR: logLevelConf: ERROR
      19:54:33,875 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (MSC service thread 1-2) org.tuckey.web.filters.urlrewrite.UrlRewriteFilter ERROR: unable to find urlrewrite conf file at /WEB-INF/urlrewrite.xml
      19:54:33,922 INFO  [org.jboss.web] (MSC service thread 1-2) JBAS018210: Registering web context: 
      19:54:33,922 INFO  [org.jboss.as] (MSC service thread 1-2) JBAS015951: Admin console listening on http://127.0.0.1:9990
      19:54:33,922 ERROR [org.jboss.as] (MSC service thread 1-2) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 31909ms - Started 385 of 466 services (2 services failed or missing dependencies, 78 services are passive or on-demand)
      19:54:34,062 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "ri-ear-0.0.0.01-SNAPSHOT.ear"
      

       

       

      I have "opencms.properties" file on "opencms.war\WEB-INF\config " path. I don't know what is going on with this ear.

      please help to find out solution for this error.