Configuration for SpringCompatibleXMPPServer is broken
------------------------------------------------------
Key: VYSPER-259
URL: https://issues.apache.org/jira/browse/VYSPER-259
Project: VYSPER
Issue Type: Bug
Affects Versions: 0.7
Reporter: Matthias Weßendorf
Checked out trunk, executed the build (mvn clean install)
went to "dist" and extracted the "vysper-0.7-SNAPSHOT-bin.tar.gz" to some
folder.
Now I went to "vysper-0.7-SNAPSHOT/bin/" and started the server (./run.sh)
I am getting the following exeception:
Exception in thread "main"
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'server' defined in class path resource [spring-config.xml]:
Invocation of init method failed; nested exception is
java.io.FileNotFoundException: src/main/config/bogus_mina_tls.cert (No such
file or directory)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at org.apache.vysper.spring.ServerMain.main(ServerMain.java:38)
Caused by: java.io.FileNotFoundException: src/main/config/bogus_mina_tls.cert
(No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at
org.apache.vysper.xmpp.server.XMPPServer.setTLSCertificateInfo(XMPPServer.java:93)
at
org.apache.vysper.spring.SpringCompatibleXMPPServer.init(SpringCompatibleXMPPServer.java:66)
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.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 15 more
reason is that the spring-config.xml has the following entry (for
SpringCompatibleXMPPServer):
...
<property name="certificateFile"
value="src/main/config/bogus_mina_tls.cert" />
...
changed to the full qualified path on my machine made it working...
in previous releases it used to work with "classpath:xxxxxx"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.