java - openshift: maven compiler error : Base64 can not find the symbol -


i deploying webapp openshift cloud.

while compiling resources maven automatically after deploying, shows base64: symbol not found when maven compile on pc, no errors , build successfull. tried change base64 java.util apache.commons.codecs. error still there while deploying , runs @ local machine

following pom.xml

           <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-compiler-plugin</artifactid>             <version>2.5.1</version>             <inherited>true</inherited>             <configuration>                 <source>1.7</source>                 <target>1.7</target>             </configuration>         </plugin>     </plugins>   <dependencies> <dependency>         <groupid>commons-codec</groupid>         <artifactid>commons-codec</artifactid>         <version>1.4</version>     </dependency> 

should place commons-codec jar in web_inf directory. read solution somewhere not sure it. please suggest solution. thank you

</dependencies> 

my guess you're using jdk 8 on machine, jdk 7 error happening java.util.base64 available since java se 8.

i recommend use same java version on both machines.

otherwise should consider cross-compiling. setting source , target level not enough, can see, you're still able call new apis.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -