How to set different java version to WSDLtoJava - spring

Im working with WSDLToJava but i want to create the java classes with differente java version, right now im working with spring how can i generate these classes with java 11,8,7 etc? Any argument on wsdltojava? or something to change in pom.xml

Related

IntelliJ web application resources missing from classpath

I'm using IntelliJ to build a standard java web application on top of Tomcat and Spring. I'm fairly new to IntellJ and feel like I'm missing something setup wise because I cannot seem to resolve resource files from the classpath.
Relevant Info -
IJ 2017.1.4
Tomcat 8.5.15
Java 8
Spring platform-bom:2.0.8.RELEASE
I should also mention I'm using a java only configuration, taking advantage of the Spring's annotations and the servlet 3.0+ spec.
Since I'm pretty sure this is an issue with my IJ configuration, here's a series of screenshots outlining my setup & the error. Appreciate any help on this one, it's had me stumped for a bit.
Modules
Facets
Artifacts
Project src
Exploded War ouptut
Code where I'm attempting to load in a file on the classpath
Error

How to get version 4.0 spring jar on maven?

I searched spring on maven, and I find it at this page :http://mvnrepository.com/artifact/org.springframework/spring. The problem is I want to download 4.0 version but there is no 4.0 version in the chart.
Newer version of Spring can be found under group id org.springframework - Spring 4+
There is no reason to include all features of Spring Framework in one .jar. Spring is huge and you will probably won't use every feature of Spring. Including everything will cause unnecessary overhead. Pick what components you need add them to pom.xml and Maven will download them. If you found out later you need additional dependency just add it on the fly...
As an alternative you can use Spring Boot which will generate project for you with default set up. You can generate such a project using Spring Initializr Spring Boot Initializr. At the bottom click Switch to the full version. Pick what you need and hit generate project.

How to use custom reasteasy instead of jboss standard one

I am working with jboss 6.2 that has resteasy standard version set to 2.3.7.
I need to use resteasy 3.0.8 and currently I am trying to achieve this result using maven and specifying that version in the pom, the correct resteasy is put in the war but seems like jboss keeps on using 2.3.7.
I am wondering if I am following the right path and if somebody can provide me some web resources to solve my issues.
I had the same issue.
This link could be usefull, it works great for me.

Error from "spring-test" and "spring-boot-starter-thymeleaf"

If we start from this Spring guide , and just add the following additional dependencies in the build.gradle (without modifying any Java code), there will be a lot of error messages coming out during project compilng.
compile("org.springframework.boot:spring-boot-starter-thymeleaf:1.1.5.RELEASE")
compile("org.springframework:spring-test:4.1.1.RELEASE")
However, if we switch the version of spring-test from 4.1.1.RELEASE to 3.2.11.RELEASE, we can run this Spring project again.
Does anyone know the reason of this "conflict"?

Spring with maven-shade-plugin

I am trying to use to versions of spring in the same application: the first one is a webapp with spring 2.6 and the second it a jar client, with spring 4.0.2. The client communicates with another application and will be a dependency for the webapp. The problem is that the classloader will just load one time the common classes from spring and it will certainly fail.
I tried to use ElasticSearch aproach of using shaded dependencies(maven shade plugin) and relocate spring from the client to a different package (from org.springframework to my.springframework) and the uber jar seems to be constructed fine.
The issue is that Spring is based on spring.schemas and spring.handlers for validating xml config files and loads this files from classpath (META-INF folder and this paths are hardcoded in Spring code - e.q. PluggableSchemaResolver). I modified this files to point from org.srpingframework to my.springframework.
At runtime it seems that the classloader reads these files from the webapp, which has this files but with the real spring path and the exception is something like
org.realsearch.springframework.beans.FatalBeanException: Class [org.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] does not implement the [my.springframework.beans.factory.xml.NamespaceHandler] interface.
To me it seems that is impossible to achieve what I am trying (use tho spring versions in the same application with one of them relocated). Any ideas here? Am I wright?:d

Resources