**Greetings I have been running my project locally but today when I tried to run it again, it gave me a Java Compilation Error. I have cleaned my Deployment Directory but and downloaded the Community Commons Module but the error has persisted. Thank you** Below is the error I am getting Buildfile: C:\Users\Collins\Documents\Mendix\Loan Manager-main2\deployment\buildcore.xml compile: [javac] Compiling 177 source files to C:\Users\Collins\Documents\Mendix\Loan Manager-main2\deployment\run\bin [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\CommonsLoggingListener.java:11: error: package org.apache.commons.logging does not exist [javac] import org.apache.commons.logging.LogConfigurationException; [javac] ^ [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\CommonsLoggingListener.java:12: error: package org.apache.commons.logging does not exist [javac] import org.apache.commons.logging.LogFactory; [javac] ^ [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\CommonsLoggingListener.java:52: error: cannot find symbol [javac] throws LogConfigurationException, SecurityException [javac] ^ [javac] symbol: class LogConfigurationException [javac] location: class CommonsLoggingListener [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDUtils.java:6: error: package org.apache.axiom.util.base64 does not exist [javac] import org.apache.axiom.util.base64.Base64Utils; [javac] ^ [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDUtils.java:7: error: package org.apache.commons.lang does not exist [javac] import org.apache.commons.lang.StringUtils; [javac] ^ [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:15: error: package org.apache.commons.lang does not exist [javac] import org.apache.commons.lang.StringEscapeUtils; [javac] ^ [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:16: error: package org.openid4java.association does not exist [javac] import org.openid4java.association.AssociationSessionType; [javac] ^ [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:17: error: package org.openid4java.consumer does not exist [javac] import org.openid4java.consumer.ConsumerManager; [javac] ^ [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:18: error: package org.openid4java.consumer does not exist [javac] import org.openid4java.consumer.InMemoryConsumerAssociationStore; [javac] ^ [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:19: error: package org.openid4java.consumer does not exist [javac] import org.openid4java.consumer.InMemoryNonceVerifier; [javac] ^ [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:20: error: package org.openid4java.consumer does not exist [javac] import org.openid4java.consumer.VerificationResult; [javac] ^ [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:21: error: package org.openid4java.discovery does not exist [javac] import org.openid4java.discovery.DiscoveryInformation; [javac] ^ [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:22: error: package org.openid4java.discovery does not exist [javac] import org.openid4java.discovery.Identifier; [javac] ^ [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:23: error: package org.openid4java.message does not exist [javac] import org.openid4java.message.AuthRequest; [javac] ^ [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:24: error: package org.openid4java.message does not exist [javac] import org.openid4java.message.ParameterList; [javac] ^ [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:99: error: cannot find symbol [javac] private DiscoveryInformation discovered; [javac] ^ [javac] symbol: class DiscoveryInformation [javac] location: class OpenIDHandler [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:101: error: cannot find symbol [javac] private ConsumerManager manager; [javac] ^ [javac] symbol: class ConsumerManager [javac] location: class OpenIDHandler [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:265: error: cannot find symbol [javac] ParameterList openidResp, String mxid2Continuation) throws Exception { [javac] ^ [javac] symbol: class ParameterList [javac] location: class OpenIDHandler [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\actions\GenerateRandomPassword.java:14: error: package org.apache.commons.lang does not exist [javac] import org.apache.commons.lang.RandomStringUtils; [javac] ^ [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\actions\GenerateRandomPassword.java:15: error: package org.apache.commons.lang.math does not exist [javac] import org.apache.commons.lang.math.RandomUtils; [javac] ^ [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\CommonsLoggingListener.java:59: error: package org.apache.commons.logging.impl does not exist [javac] org.apache.commons.logging.impl.Jdk14Logger lognode = (org.apache.commons.logging.impl.Jdk14Logger) LogFactory.getLog(logName); [javac] ^ [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\CommonsLoggingListener.java:59: error: package org.apache.commons.logging.impl does not exist [javac] org.apache.commons.logging.impl.Jdk14Logger lognode = (org.apache.commons.logging.impl.Jdk14Logger) LogFactory.getLog(logName); [javac] ^ [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\CommonsLoggingListener.java:59: error: cannot find symbol [javac] org.apache.commons.logging.impl.Jdk14Logger lognode = (org.apache.commons.logging.impl.Jdk14Logger) LogFactory.getLog(logName); [javac] ^ [javac] symbol: variable LogFactory [javac] location: class CommonsLoggingListener [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDUtils.java:26: error: cannot find symbol [javac] return Base64Utils.encode(bytes); [javac] ^ [javac] symbol: variable Base64Utils [javac] location: class OpenIDUtils [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDUtils.java:61: error: cannot find symbol [javac] return StringUtils.rightPad(res, value.length(), '*'); [javac] ^ [javac] symbol: variable StringUtils [javac] location: class OpenIDUtils [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:120: error: cannot find symbol [javac] manager = new ConsumerManager(); [javac] ^ [javac] symbol: class ConsumerManager [javac] location: class OpenIDHandler [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:121: error: cannot find symbol [javac] manager.setAssociations(new InMemoryConsumerAssociationStore()); [javac] ^ [javac] symbol: class InMemoryConsumerAssociationStore [javac] location: class OpenIDHandler [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:122: error: cannot find symbol [javac] manager.setNonceVerifier(new InMemoryNonceVerifier(5000)); [javac] ^ [javac] symbol: class InMemoryNonceVerifier [javac] location: class OpenIDHandler [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:123: error: cannot find symbol [javac] manager.setMinAssocSessEnc(AssociationSessionType.DHSHA256); [javac] ^ [javac] symbol: variable AssociationSessionType [javac] location: class OpenIDHandler [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:213: error: cannot find symbol [javac] ParameterList openidResp = new ParameterList(origreq.getParameterMap()); [javac] ^ [javac] symbol: class ParameterList [javac] location: class OpenIDHandler [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:213: error: cannot find symbol [javac] ParameterList openidResp = new ParameterList(origreq.getParameterMap()); [javac] ^ [javac] symbol: class ParameterList [javac] location: class OpenIDHandler [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:275: error: cannot find symbol [javac] VerificationResult verification = manager.verify(receivingURL.toString(), openidResp, discovered); [javac] ^ [javac] symbol: class VerificationResult [javac] location: class OpenIDHandler [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:278: error: cannot find symbol [javac] Identifier verified = verification.getVerifiedId(); [javac] ^ [javac] symbol: class Identifier [javac] location: class OpenIDHandler [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:319: error: cannot find symbol [javac] AuthRequest authReq = manager.authenticate(discovered, OpenIDReturnURL); [javac] ^ [javac] symbol: class AuthRequest [javac] location: class OpenIDHandler [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:403: error: cannot find symbol [javac] .replace("{{title}}", StringEscapeUtils.escapeHtml(responseType.title)) [javac] ^ [javac] symbol: variable StringEscapeUtils [javac] location: class OpenIDHandler [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\OpenIDHandler.java:402: error: cannot find symbol [javac] .replace("{{message}}", StringEscapeUtils.escapeHtml(message)) [javac] ^ [javac] symbol: variable StringEscapeUtils [javac] location: class OpenIDHandler [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\actions\GenerateRandomPassword.java:46: error: cannot find symbol [javac] sb.append(pwcharset.charAt(RandomUtils.nextInt(pwcharset [javac] ^ [javac] symbol: variable RandomUtils [javac] location: class GenerateRandomPassword [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\actions\GenerateRandomPassword.java:50: error: cannot find symbol [javac] sb.append(RandomStringUtils.random(1, "ABCDEFGHIJKLMNOPQRSTUVWXYZ")); [javac] ^ [javac] symbol: variable RandomStringUtils [javac] location: class GenerateRandomPassword [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\actions\GenerateRandomPassword.java:51: error: cannot find symbol [javac] sb.append(RandomStringUtils.random(1, "abcdefghijklmnopqrstuvwxyz")); [javac] ^ [javac] symbol: variable RandomStringUtils [javac] location: class GenerateRandomPassword [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\actions\GenerateRandomPassword.java:52: error: cannot find symbol [javac] sb.append(RandomStringUtils.random(1, [javac] ^ [javac] symbol: variable RandomStringUtils [javac] location: class GenerateRandomPassword [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\actions\GenerateRandomPassword.java:54: error: cannot find symbol [javac] sb.append(RandomStringUtils.random(1, "1234567890")); [javac] ^ [javac] symbol: variable RandomStringUtils [javac] location: class GenerateRandomPassword [javac] C:\Users\Collins\Documents\Mendix\Loan Manager-main2\javasource\appcloudservices\actions\GenerateRandomPassword.java:64: error: cannot find symbol [javac] result.append(base.remove(RandomUtils.nextInt(base.size()))); [javac] ^ [javac] symbol: variable RandomUtils [javac] location: class GenerateRandomPassword [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: C:\Users\Collins\Documents\Mendix\Loan Manager-main_2\javasource\com\mendix\core\Core.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 42 errors BUILD FAILED C:\Users\Collins\Documents\Mendix\Loan Manager-main2\deployment\buildcore.xml:27: Compile failed; see the compiler error output for details. Total time: 4 seconds
asked
Collins Mugabi
4 answers
0
It looks like you may not have, or have deleted, all or part of the AppCloudServices module. This is used for the SSO for applications running in the Mendix cloud, but is not used when running locally.
You can (re)download the AppCloudServices module from the App Store.
answered
David Sanders
0
I added the "AppCloudServices" module and the error was gone. Obviously it was because of a missing dependency (jar) in the user lib folder that was brought when adding the "AppCloudServices" module, but I'm yet to find which jar exactly.
As a quick fix just add the "AppCloudServices" module to your project. (Thanks David for a pointer)
answered
Viral Patel
-1
I am experiencing the same issue. I thought it had to do with running the Mendix Modeler (6.10.3) in a Parallels VM on an iMac (OS X), but I've repeated the error on a machine running Windows 7 64-bit. I tried the suggestion made by André Lindeman, but that didn't resolve the issue. I haven't done anything with the AppCloudServices module so that shouldn't be the issue either. The app ran fine until I built the domain model with basic one-to-many relationships and a few pages. It broke after that.
One possibility: I am storing the .mpr files in a Dropbox folder. Could that have something to do with it?
answered
Aaron Pace
-2
In Modeler try Project/Clean Deployment Directory and run again.