VYSPER
  1. VYSPER
  2. VYSPER-259

Configuration for SpringCompatibleXMPPServer is broken

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.7
    • Component/s: None
    • Labels:
      None

      Description

      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"

        Activity

        Niklas Gustavsson made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Bernd Fondermann made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 0.7 [ 12315280 ]
        Resolution Fixed [ 1 ]
        Hide
        Bernd Fondermann added a comment -

        fixed on trunk, classpath: construct works again. pls. verify. thanks for reporting!

        Show
        Bernd Fondermann added a comment - fixed on trunk, classpath: construct works again. pls. verify. thanks for reporting!
        Matthias Weßendorf created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Matthias Weßendorf
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development