| Author |
RMI isssue Security/Connection issue
|
alireza kian
Greenhorn
Joined: Feb 18, 2013
Posts: 1
|
|
Hey guy's im pretty new to j2ee .
i'm using RMI for communication between Model and VC layer in my application when i start web application i have following exceptios :
for security issue add this code to my model distribution section :
and by adding this section i have this exception in model application :
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [configs/beans.xml]; nested exception is java.io.FileNotFoundException: class path resource [configs/beans.xml] cannot be opened because it does not exist
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFactory.java:78)
at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFactory.java:66)
at BL.User.<init>(User.java:22)
at Server.main(Server.java:22)
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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: java.io.FileNotFoundException: class path resource [configs/beans.xml] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:157)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
... 10 more
Any suggestions ?
|
 |
Pat Farrell
Rancher
Joined: Aug 11, 2007
Posts: 4422
|
|
alireza kian wrote:Hey guy's im pretty new to j2ee .
i'm using RMI for communication between Model and VC layer in my application when i start web application i have following exceptios :
Any suggestions ?
Yes, do not use RMI.
RMI was acceptable 15 years go, but no new systems should use it. Use a reliable message passing protocol, such as REST.
|
 |
kanna naha
Greenhorn
Joined: Mar 26, 2013
Posts: 3
|
|
|
This is an useful program that I can be used in a required one are used.
|
 |
Mr. C Lamont Gilbert
Ranch Hand
Joined: Oct 05, 2001
Posts: 1170
|
|
You probably need to have the security manager loaded by the JVM. Also need a security policy that grants permission. on jvm command line
-Djava.security.manager -Djava.security.policy=file:F:\client.policy
client policy file contains
grant {
permission java.security.AllPermission;
};
maybe something similar for the server.
|
 |
 |
|
|
subject: RMI isssue Security/Connection issue
|
|
|