Combination View Flat View Tree View
Threads [ Previous | Next ]
pooja mahajan
HotDeployException: Error initializing Spring
February 1, 2013 12:57 AM
Answer

pooja mahajan

Rank: Junior Member

Posts: 45

Join Date: January 29, 2013

Recent Posts

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].] (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]
Siby Mathew
RE: HotDeployException: Error initializing Spring
February 1, 2013 2:36 AM
Answer

Siby Mathew

Rank: Expert

Posts: 256

Join Date: March 4, 2011

Recent Posts

Hi Pooja,
Can you re-verify the file by copy pasting the path from the error console.

Thanks,
Siby
pooja mahajan
RE: HotDeployException: Error initializing Spring
February 1, 2013 2:56 AM
Answer

pooja mahajan

Rank: Junior Member

Posts: 45

Join Date: January 29, 2013

Recent Posts

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
Siby Mathew
RE: HotDeployException: Error initializing Spring
February 1, 2013 3:07 AM
Answer

Siby Mathew

Rank: Expert

Posts: 256

Join Date: March 4, 2011

Recent Posts

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 :
1Loading file:/D:/liferay/


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

Thanks,
Siby