Author Message
shrawanibharati
Joined: Sep 1, 2017
Messages: 5
Offline
Hi Team,

We are trying to integrate spring framework in avaya snap-in which is not getting through. This is sample project where we are using functionalities as rest controllers and DI. Once we configure spring in a snap-in regular Jax RS implementation(originally present in the snap in) and spring rest controllers fail even after successful deployment on Breeze platform. While as, if we separate the war file and try to run it locally it runs successfully. Please find the attached config and java class files which are in addition to the original structure of a snap-in. Hoping for a prompt response.

Thank you.
Filename Forum_Files.7z [Disk] Download
shrawanibharati
Joined: Sep 1, 2017
Messages: 5
Offline
Also, We are deploying the war on a tomcat apache server v.7 locally.
JoelEzell
Joined: Nov 15, 2013
Messages: 780
Offline
Hello,

We have seen issues with class version conflicts with some versions of Breeze and Spring. For various reasons, we must use "Parent first" classloading with Breeze, meaning that jars included with the platform are loaded ahead of any jars / classes included with the snap-in. What versions of Breeze and Spring are you using?
shrawanibharati
Joined: Sep 1, 2017
Messages: 5
Offline
Hi,

The spring version is 4.3.10 latest version and breeze version is 3.3.1.1.331105.

Following are the dependencies and version properties present in the pom.xml :

<properties>
<endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<Jersey-version>1.19.1</Jersey-version>
<springframework.version>4.3.10.RELEASE</springframework.version>
<hibernate.version>4.2.8.Final</hibernate.version>
<postgresql.version>9.4.1212</postgresql.version>
<jackson-version>2.7.5</jackson-version>
<org.slf4j-version>1.6.6</org.slf4j-version>
</properties>

<dependencies>

<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.avaya.collaboration.api</groupId>
<artifactId>avaya-aura-collaboration-api-3.3.1</artifactId>
<version>3.3.1.1.331105</version>
<scope>provided</scope>
</dependency>
<!-- Logging -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${org.slf4j-version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${org.slf4j-version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${org.slf4j-version}</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.15</version>
<exclusions>
<exclusion>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
</exclusion>
<exclusion>
<groupId>javax.jms</groupId>
<artifactId>jms</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jdmk</groupId>
<artifactId>jmxtools</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jmx</groupId>
<artifactId>jmxri</artifactId>
</exclusion>
</exclusions>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>javax.servlet.jsp-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${springframework.version}</version>
</dependency>

<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>${postgresql.version}</version>
</dependency>
<!-- Hibernate -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson-version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson-version}</version>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-server</artifactId>
<version>1.8</version>
</dependency>

</dependencies>

Regards.
Shrawani Bharati
JoelEzell
Joined: Nov 15, 2013
Messages: 780
Offline
Hello again. If you check our Breeze developer guide (3.3 version is here: https://www.devconnectprogram.com/fileMedia/download/1df598d6-751e-4784-acf4-aab674d1cc1b), you can find a list of third-party jars on the platform. You'll see that the below spring 4.2.1 jars are on the platform. While I realize that it would be ideal to use the latest version, would 4.2.1 suffice? We'll likely be upgrading to a newer version in an upcoming release of the platform.
spring
-aop
-4.2.1.RELEASE.jar
? spring
-beans
-4.2.1.RELEASE.jar
? spring
-context
-4.2.1.RELEASE.jar
? spring
-core
-4.2.1.RELEASE.jar
? spring
-expression
-4.2.1.RELEASE.jar
? spring
-jdb
c
-4.2.1.RELEASE.jar
? spring
-tx
-4.2.1.RELEASE.jar
ShriramUntawale
Joined: Sep 21, 2017
Messages: 1
Offline
Hi Team,
Just out of curiosity are we supporting any of the springBoot releases on this platform ?

Thanks
Shriram
Go to:   
Mobile view