掲示板

HotDeployException: Error initializing Spring

11年前 に pooja mahajan によって更新されました。

HotDeployException: Error initializing Spring

Junior Member 投稿: 45 参加年月日: 13/01/30 最新の投稿
Can anyone please help me with the error while deploying application on liferay 6.1 + jboss 7
In my application :
e2Vault.properties is present at the given location still it is giving me error while deployin my application for.

ApplicationContext.xml contain following entry:
<jee:jndi-lookup id="e2VaultProperties" jndi-name="e2VaultProperties" />

I have also configured standalone.xml:
<subsystem xmlns="urn:jboss:domain:naming:1.1">
<bindings>
<simple name="e2VaultProperties" value="E:/PoojaMahajan/CPFODR/Properties/ClientPortal/e2Vault.properties"/>
</bindings>
</subsystem>

07:43:54,716 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/clientportal]] (MSC service thread 1-4) Initializing Spring root WebApplicationContext
07:43:54,763 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-4) Context initialization failed: org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/E:/PoojaMahajan/CPFODR/Properties/ClientPortal/e2Vault.properties
at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:78) [org.springframework.beans-3.0.3.jar:3.0.3.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:663) [org.springframework.context-3.0.3.jar:3.0.3.RELEASE]
11年前 に Siby Mathew によって更新されました。

RE: HotDeployException: Error initializing Spring

Expert 投稿: 268 参加年月日: 11/03/04 最新の投稿
Hi Pooja,
Can you re-verify the file by copy pasting the path from the error console.

Thanks,
Siby
11年前 に pooja mahajan によって更新されました。

RE: HotDeployException: Error initializing Spring

Junior Member 投稿: 45 参加年月日: 13/01/30 最新の投稿
I tried again still it is giving me same error :

but i don't understand why there is "/" slash before path

org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/E:/PoojaMahajan/CPFODR/Properties/ClientPortal/e2Vault.properties
11年前 に Siby Mathew によって更新されました。

RE: HotDeployException: Error initializing Spring

Expert 投稿: 268 参加年月日: 11/03/04 最新の投稿
Hi Pooja,
Even i was thinking if that is taken as a relative path.
But during liferay server startup also, the paths are displayed like this :
Loading file:/D:/liferay/


Maybe you could try appending "file:".
But I am not not sure about this. You can try it out !

Thanks,
Siby