好吧,结果是这个建筑在无声中失败了。在部署应用程序时,我注意到以下几点:
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.15.RELEASE)
(C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\gco\dc87hz\war\WEB-INF\lib\_wl_cls_gen.jar started by joao.menighin in C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain)
2018-12-11 11:01:01.944 INFO 24972 --- [ (self-tuning)'] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@74af55a0: startup date [Tue Dec 11 11:01:01 BRST 2018]; root of context hierarchy
<Dec 11, 2018 11:01:03 AM BRST> <Error> <Class Loaders> <BEA-2162500> <Class, org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory, was compiled with an incompatible version of Java. Make sure that all the classes needed by the application have been compiled with a compatible java version. java.lang.UnsupportedClassVersionError: org/apache/activemq/artemis/jms/client/ActiveMQConnectionFactory : Unsupported major.minor version 52.0
java.lang.UnsupportedClassVersionError: org/apache/activemq/artemis/jms/client/ActiveMQConnectionFactory : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:412)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:366)
Truncated. see log file for complete stacktrace
>
1.5.6
)添加时按梯度
org.springframework.boot:spring-boot-starter-artemis
compile 'org.apache.activemq:artemis-commons:1.4.0'
compile 'org.apache.activemq:artemis-core-client:1.4.0'
compile 'org.apache.activemq:artemis-jms-client:1.4.0'
compile 'org.apache.activemq:artemis-selector:1.4.0'
这就解释了为什么它使用Java8而不是Java7。