- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的应用程序正在尝试使用 API EWS 从 java 收件箱获取电子邮件,但有一个异常(exception):
java.lang.NoSuchMethodError: org.joda.time.format.DateTimeFormatter.withZoneUTC()Lorg/joda/time/format/DateTimeFormatter; at microsoft.exchange.webservices.data.util.DateTimeUtils.createDateTimeFormats(DateTimeUtils.java:99)
我在依赖项中添加了 joda
但仍然有错误。这是我完整的 pom.xml
。我知道您需要用于 EWS 的 joda-time 2.8,但我找不到导致出现问题的依赖项。
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.lbc.scheduler</groupId>
<artifactId>LBCSchedulerParent</artifactId>
<version>1.0.0</version>
<relativePath>../LBCSchedulerParent</relativePath>
</parent>
<groupId>com.lbc.scheduler</groupId>
<artifactId>LBCSchedulerEJB</artifactId>
<version>1.0.0</version>
<packaging>ejb</packaging>
<name>LBCSchedulerEJB</name>
<url>http://LBCSchedulerEJB</url>
<distributionManagement>
<repository>
<id>deployment</id>
<name>Internal Releases</name>
<url>http://nd1981dav02.blc.banquelaurentienne.ca:8084/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>deployment</id>
<name>Internal Releases</name>
<url>http://nd1981dav02.blc.banquelaurentienne.ca:8084/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
<properties>
<quartz.version>2.1.6</quartz.version>
<hibernate-entitymanager.version>4.1.7.Final</hibernate-entitymanager.version>
<maven-ejb-plugin.version>2.3</maven-ejb-plugin.version>
<commons-configuration.version>1.6</commons-configuration.version>
<junit.version>4.8.2</junit.version>
<commons-discovery.version>0.2</commons-discovery.version>
<aspectj.version>1.6.9</aspectj.version>
<jboss-7.1.1-home>C:\jboss-as-7.1.1.Final</jboss-7.1.1-home>
<jaxrs.version>1.1.1</jaxrs.version>
<sonar.plugin.version>2.8</sonar.plugin.version>
<spring-security.version>3.0.5.RELEASE</spring-security.version>
<commons.collections.version>3.2.1</commons.collections.version>
<soapui-plugin.version>4.0.1</soapui-plugin.version>
<persistence-api.version>1.0.2</persistence-api.version>
<dozer.version>5.3.2</dozer.version>
<war-plugin.version>2.2</war-plugin.version>
<javax-jsp-api.version>2.1</javax-jsp-api.version>
<bean-validation.version>1.0.0.GA</bean-validation.version>
<wtp.version>2.0</wtp.version>
<jboss-as-maven-plugin.version>7.1.1.Final</jboss-as-maven-plugin.version>
<netty.version>3.5.9.Final</netty.version>
<ear-plugin.version>2.8</ear-plugin.version>
<ejb.version>3.0</ejb.version>
<jboss-ejb-api_3.1_spec.version>1.0.1.Final</jboss-ejb-api_3.1_spec.version>
<hibernate-jpa-2.0-api.version>1.0.1.Final</hibernate-jpa-2.0-api.version>
<jboss-jaxws-api_2.2_spec.version>2.0.0.Final</jboss-jaxws-api_2.2_spec.version>
<thirdPartyPlugin.version>1.0</thirdPartyPlugin.version>
<opencsv.version>2.3</opencsv.version>
<ehcache-core.version>2.6.0</ehcache-core.version>
<ojdbc5.version>11.2.0.3</ojdbc5.version>
<source-plugin.version>2.2</source-plugin.version>
<javax-jstl.version>1.2</javax-jstl.version>
<gilenya.build.id>1.0.0-${maven.build.timestamp}</gilenya.build.id>
<jboss-ejb-api.version>3.0.0.GA_SP1</jboss-ejb-api.version>
<compiler-plugin.version>2.3.2</compiler-plugin.version>
<wls-maven-plugin.version>12.1.1.0</wls-maven-plugin.version>
<commons-logging.version>1.1.1</commons-logging.version>
<hibernate-validator.version>4.1.0.Final</hibernate-validator.version>
<commons-beanutils.version>1.8.3</commons-beanutils.version>
<jdom.version>2.0.2</jdom.version>
<commons-lang3.version>3.1</commons-lang3.version>
<javax.mail.version>1.4.2</javax.mail.version>
<slf4j.version>1.6.6</slf4j.version>
<java.version>1.6</java.version>
<c3p0.version>0.9.1.1</c3p0.version>
<commons-lang.version>2.6</commons-lang.version>
<updateimpact.apikey>PbCCTaotiyWhRDEtrjQIrNALip0c1f3C</updateimpact.apikey>
<spring.version>3.0.5.RELEASE</spring.version>
<easymock.version>3.0</easymock.version>
<log4j.version>1.2.16</log4j.version>
<javax.ejb.version>3.1.0</javax.ejb.version>
<javax-servlet-api.version>2.5</javax-servlet-api.version>
<updateimpact.openbrowser>true</updateimpact.openbrowser>
<dom4j.version>1.6.1</dom4j.version>
<axis.version>1.4</axis.version>
<nexus.url>http://nd1981dav02.blc.banquelaurentienne.ca:8084/nexus</nexus.url>
<javax-jsr311-api.version>1.1.1</javax-jsr311-api.version>
</properties>
<dependencies>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.8</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.microsoft.ews-java-api</groupId>
<artifactId>ews-java-api</artifactId>
<version>2.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.lbc.gateway</groupId>
<artifactId>LBCClient</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.lbc.gateway</groupId>
<artifactId>LBCGatewayCommon</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.6.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.1.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
<version>2.1.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz-oracle</artifactId>
<version>2.1.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz-weblogic</artifactId>
<version>2.1.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz-jboss</artifactId>
<version>2.1.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.oracle.javax.ejb</groupId>
<artifactId>javax.ejb</artifactId>
<version>3.1.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mailapi</artifactId>
<version>1.4.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.8</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient-cache</artifactId>
<version>4.2.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.2.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>xpp3</groupId>
<artifactId>xpp3</artifactId>
<version>1.1.4c</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.moonrug</groupId>
<artifactId>moonrug</artifactId>
<version>1.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.4.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>central</id>
<url>http://central</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>central</id>
<url>http://central</url>
</pluginRepository>
</pluginRepositories>
<build>
<sourceDirectory>C:\WorkingJava\DaVinci_Projet\LBCSchedulerEJB\src\main\java</sourceDirectory>
<scriptSourceDirectory>C:\WorkingJava\DaVinci_Projet\LBCSchedulerEJB\src\main\scripts</scriptSourceDirectory>
<testSourceDirectory>C:\WorkingJava\DaVinci_Projet\LBCSchedulerEJB\src\test\java</testSourceDirectory>
<outputDirectory>C:\WorkingJava\DaVinci_Projet\LBCSchedulerEJB\target\classes</outputDirectory>
<testOutputDirectory>C:\WorkingJava\DaVinci_Projet\LBCSchedulerEJB\target\test-classes</testOutputDirectory>
<resources>
<resource>
<filtering>false</filtering>
<directory>C:\WorkingJava\DaVinci_Projet\LBCSchedulerEJB\src\main\resources</directory>
</resource>
<resource>
<filtering>true</filtering>
<directory>C:\WorkingJava\DaVinci_Projet\LBCSchedulerEJB\src\main\filtered-resources</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>C:\WorkingJava\DaVinci_Projet\LBCSchedulerEJB\src\test\resources</directory>
</testResource>
</testResources>
<directory>C:\WorkingJava\DaVinci_Projet\LBCSchedulerEJB\target</directory>
<finalName>LBCSchedulerEJB-1.0.0</finalName>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.3</version>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.0</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-ejb-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<id>default-ejb</id>
<phase>package</phase>
<goals>
<goal>ejb</goal>
</goals>
<configuration>
<ejbVersion>3.0</ejbVersion>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
<addClasspath>true</addClasspath>
</manifest>
<manifestEntries>
<Application-Name>LBCSchedulerEJB-1.0.0</Application-Name>
<Application-Version>1.0.0</Application-Version>
<Iteration-Name>${iteration}</Iteration-Name>
<JenkinsBuildNumber>${BUILD_NUMBER}</JenkinsBuildNumber>
<JenkinsBuildId>${BUILD_ID}</JenkinsBuildId>
<JenkinsJobName>${JOB_NAME}</JenkinsJobName>
<JenkinsBuildTag>${BUILD_TAG}</JenkinsBuildTag>
<JenkinsExecutorNumber>${EXECUTOR_NUMBER}</JenkinsExecutorNumber>
<JenkinsWorkspace>${WORKSPACE}</JenkinsWorkspace>
<JenkinsSvnRevision>${SVN_REVISION}</JenkinsSvnRevision>
</manifestEntries>
</archive>
</configuration>
</execution>
</executions>
<configuration>
<ejbVersion>3.0</ejbVersion>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
<addClasspath>true</addClasspath>
</manifest>
<manifestEntries>
<Application-Name>LBCSchedulerEJB-1.0.0</Application-Name>
<Application-Version>1.0.0</Application-Version>
<Iteration-Name>${iteration}</Iteration-Name>
<JenkinsBuildNumber>${BUILD_NUMBER}</JenkinsBuildNumber>
<JenkinsBuildId>${BUILD_ID}</JenkinsBuildId>
<JenkinsJobName>${JOB_NAME}</JenkinsJobName>
<JenkinsBuildTag>${BUILD_TAG}</JenkinsBuildTag>
<JenkinsExecutorNumber>${EXECUTOR_NUMBER}</JenkinsExecutorNumber>
<JenkinsWorkspace>${WORKSPACE}</JenkinsWorkspace>
<JenkinsSvnRevision>${SVN_REVISION}</JenkinsSvnRevision>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<executions>
<execution>
<id>default-testCompile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</execution>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</execution>
</executions>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>com.oracle.weblogic</groupId>
<artifactId>wls-maven-plugin</artifactId>
<version>12.1.1.0</version>
<configuration>
<middlewareHome>C:\Oracle\Middleware</middlewareHome>
<domainHome>C:\Oracle\Middleware\user_projects\domains\base_domain3</domainHome>
<weblogicHome>C:\Oracle\Middleware\wlserver_12.1</weblogicHome>
<user>weblogic</user>
<password>adminadmin1</password>
<source>C:\WorkingJava\DaVinci_Projet\LBCSchedulerEJB\target\classes</source>
<source>C:\WorkingJava\DaVinci_Projet\LBCSchedulerEJB\target/LBCSchedulerEJB-1.0.0.jar</source>
<name>LBCSchedulerEJB</name>
</configuration>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.4.1</version>
<executions>
<execution>
<id>default-clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<id>default-install</id>
<phase>install</phase>
<goals>
<goal>install</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>default-resources</id>
<phase>process-resources</phase>
<goals>
<goal>resources</goal>
</goals>
</execution>
<execution>
<id>default-testResources</id>
<phase>process-test-resources</phase>
<goals>
<goal>testResources</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>default-test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.0</version>
<executions>
<execution>
<id>default-site</id>
<phase>site</phase>
<goals>
<goal>site</goal>
</goals>
<configuration>
<outputDirectory>C:\WorkingJava\DaVinci_Projet\LBCSchedulerEJB\target\site</outputDirectory>
<reportPlugins>
<reportPlugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</reportPlugin>
</reportPlugins>
</configuration>
</execution>
<execution>
<id>default-deploy</id>
<phase>site-deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
<configuration>
<outputDirectory>C:\WorkingJava\DaVinci_Projet\LBCSchedulerEJB\target\site</outputDirectory>
<reportPlugins>
<reportPlugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</reportPlugin>
</reportPlugins>
</configuration>
</execution>
</executions>
<configuration>
<outputDirectory>C:\WorkingJava\DaVinci_Projet\LBCSchedulerEJB\target\site</outputDirectory>
<reportPlugins>
<reportPlugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</reportPlugin>
</reportPlugins>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<outputDirectory>C:\WorkingJava\DaVinci_Projet\LBCSchedulerEJB\target\site</outputDirectory>
</reporting>
</project>
最佳答案
我的问题是 weblgoic 12c 采用了 joda 包而不是我的应用程序中的包。我需要创建一个 weblogic-application.xml 来指定 weblogic 以获取我的 joda 版本
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">
<container-descriptor>
<prefer-web-inf-classes>false</prefer-web-inf-classes>
<prefer-application-packages>
<package-name>org.joda.*</package-name>
</prefer-application-packages>
</container-descriptor>
</weblogic-web-app>
以下是对我有帮助的链接:https://github.com/jruby/jruby-rack/wiki/Deploying-with-WebLogic
关于java - EWS java.lang.NoSuchMethodError : org. joda.time.format.DateTimeFormatter.withZoneUTC,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35295801/
我正在用来自JSON文件的一些数据填充Flutter中的列表。 但是,我的代码不断抛出异常"NoSuchMethodError (NoSuchMethodError: The method 'add'
通过eclipse运行Tomcat 7报错是: javax.servlet.ServletException: java.lang.NoSuchMethodError: org.eclipse.jdt
这是我的错误行: 这是我的代码: 最佳答案 final jobs= json.decode(response.body)['name_database_table']; 关于mobile - NoSu
很难说出这里问的是什么。这个问题是模棱两可的、模糊的、不完整的、过于宽泛的或修辞的,无法以目前的形式得到合理的回答。为了帮助澄清这个问题以便可以重新打开它,visit the help center
我已经被这个错误困扰了几个小时。。我的pom.xml。应用程序未启动。所有的Spring框架依赖于相同的版本,但仍然得到相同的错误。。更新。MVN依赖的结果:树。看起来这里一切都很好。
我得到: NoSuchMethodError: com.foo.SomeService.doSmth()Z 我是否正确理解这个'Z'意味着doSmth()方法的返回类型是 boolean 值?如果为
我在 Speed 类中引用 PlayerUtil.getMovementSpeed(player);,在我的 PlayerUtil 类中,我将方法定义为: public static double g
我得到: NoSuchMethodError: com.foo.SomeService.doSmth()Z 我是否正确理解这个 'Z' 意味着 doSmth() 方法的返回类型是 boolean 值?
我在使用 Spark 和 Scala 时遇到了一个奇怪的错误。我有一段代码声明了一个变量: var offset = 0 这会导致以下异常: java.lang.NoSuchMethodError:
我已经成功实现了 reflectionEquals 方法,其中包含一个排除字段列表。 return EqualsBuilder.reflectionEquals(this, obj, new Str
我正在使用 Spring 框架和 Maven 开发 Java Enterprise 应用程序。我正在为此学习一门类(class),并且一直坚持集成 Hibernate JPA。当我运行项目时,它返回以
I/flutter ( 8282): The following NoSuchMethodError was thrown building Meme(dirty, state: _MemeState
运行以下代码时出现 NoSuchMethodError - 我想从 JSON url 打印出轨道标题 - 我错过了什么吗? import 'dart:async'; import 'dart:conv
我正在做 Searchview flutter 中的例子 https://github.com/MageshPandian20/Flutter-SearchView 但我想对 进行更改子项类有一个 最
尝试从Eclipse中的简单Java程序连接到Hive时出现以下错误。看起来好像连接,然后引发此错误。我可以通过beeline在本地连接到Hive Thrift服务器,而不会出现问题。 两个libth
当我向安全资源发出请求时,会发生NoSuchMethodError。 基于基于Spring Boot 1.4.4的Grails 3.2.5的项目 AppConfig: @EnableWebSecuri
这个问题已经有答案了: Differences between Exception and Error (11 个回答) 已关闭 7 年前。 我的印象是 Exception 非常适合捕获所有可能的异常
祝大家有美好的一天!我使用 google Vision API,当我在 IntelliJ Idea 中运行我的程序时,它工作得很好,但是当我编译 jar 文件时,它在处理照片时给出错误 java.la
我一直在为这个问题苦苦挣扎。我正在开发一个包含很多包的 netbeans java 项目,起初我更改了 gui,但是当我运行代码时,它没有反射(reflect)任何更改,即使我在保存、清理、清理和编译
我一直在寻找问题的解决方案,但没有得到足够的答案。 我正在开发 Bukkit插件的更新系统。因此,我必须自己编写这些类的代码。但我一直想从 debug(String) 调用一个方法(具体来说: ano
我是一名优秀的程序员,十分优秀!