Error creating deployment package

1
I have got a strange error when deploying to the cloud. Local the model is running normal (after upgrading community commons to latest version, see other post) and all changes where commited to the teamserver. Clicking deploy generates this error: Buildfile: C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\deployment\build.xml compile: [javac] Compiling 650 source files to C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\deployment\model\lib\bin [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\ImportGroups.java:47: cannot find symbol [javac] symbol : method query(com.mendix.systemwideinterfaces.core.IContext,java.lang.String,ldap.proxies.LdapPath.MemberNames,long) [javac] location: class ldap.LdapModule [javac] List<IMendixObject> ldapPaths = LdapModule.query(context, LdapPath.getType(), LdapPath.MemberNames.LdapPath_LdapServer, ldapServer.getMendixObject().getId().toLong()); [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\ImportGroups.java:66: cannot find symbol [javac] symbol : method readDirectoryEntries(java.lang.String,org.springframework.ldap.core.LdapTemplate) [javac] location: class ldap.LdapModule [javac] List<Directory> dirs = LdapModule.getInstance().readDirectoryEntries(String.valueOf(baseDN), ldapTemplate); [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\ImportGroups.java:73: cannot find symbol [javac] symbol : method query(com.mendix.systemwideinterfaces.core.IContext,java.lang.String) [javac] location: class ldap.LdapModule [javac] List <IMendixObject> ldapDirectories = LdapModule.query(context, String.format("//%s[%s='%s'][%s='%s']", [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\ImportGroups.java:85: cannot find symbol [javac] symbol : method getLdapDirectory_LdapGroup() [javac] location: class ldap.proxies.LdapDirectory [javac] List<ldap.proxies.LdapGroup> memberOfGroups = ldapDirectory.getLdapDirectory_LdapGroup(); [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\ImportGroups.java:93: cannot find symbol [javac] symbol : method query(com.mendix.systemwideinterfaces.core.IContext,java.lang.String,ldap.proxies.LdapGroup.MemberNames,java.lang.String) [javac] location: class ldap.LdapModule [javac] List<IMendixObject> ldapgroups = LdapModule.query(context, LdapGroup.getType(), LdapGroup.MemberNames.GroupName, groupName); [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\ImportGroups.java:113: cannot find symbol [javac] symbol : method setLdapDirectory_LdapGroup(java.util.List<ldap.proxies.LdapGroup>) [javac] location: class ldap.proxies.LdapDirectory [javac] ldapDirectory.setLdapDirectory_LdapGroup(memberOfGroups); [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\ImportGroups.java:143: cannot find symbol [javac] symbol : method query(com.mendix.systemwideinterfaces.core.IContext,java.lang.String,ldap.proxies.LdapGroup.MemberNames,long) [javac] location: class ldap.LdapModule [javac] List<IMendixObject> groups = LdapModule.query(context, LdapGroup.getType(), LdapGroup.MemberNames.LdapGroup_LdapServer, ldapServer.getMendixObject().getId().toLong()); [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\ImportGroups.java:165: cannot find symbol [javac] symbol : method query(com.mendix.systemwideinterfaces.core.IContext,java.lang.String,ldap.proxies.LdapGroup.MemberNames,long) [javac] location: class ldap.LdapModule [javac] List<IMendixObject> groups = LdapModule.query(context, LdapGroup.getType(), LdapGroup.MemberNames.LdapGroup_LdapServer, ldapServer.getMendixObject().getId().toLong()); [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\ImportGroups.java:201: cannot find symbol [javac] symbol : method query(com.mendix.systemwideinterfaces.core.IContext,java.lang.String,ldap.proxies.LdapGroup.MemberNames,long) [javac] location: class ldap.LdapModule [javac] List<IMendixObject> groups = LdapModule.query(context, LdapGroup.getType(), LdapGroup.MemberNames.LdapGroup_LdapServer, ldapServer.getMendixObject().getId().toLong()); [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\ReadRootDirectory.java:33: cannot find symbol [javac] symbol : method query(com.mendix.systemwideinterfaces.core.IContext,java.lang.String,ldap.proxies.LdapPath.MemberNames,long) [javac] location: class ldap.LdapModule [javac] if (LdapModule.query(context, LdapPath.getType(), LdapPath.MemberNames.LdapPath_LdapServer, ldapServer.getMendixObject().getId().toLong()).size() > 0) [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\ReadRootDirectory.java:48: cannot find symbol [javac] symbol : method readDirectoryEntry(java.lang.String,org.springframework.ldap.core.LdapTemplate) [javac] location: class ldap.LdapModule [javac] Directory dir = LdapModule.getInstance().readDirectoryEntry(ldapServer.getRoot(), template); [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\ReadRootDirectory.java:49: cannot find symbol [javac] symbol : method readChildren(java.lang.String,org.springframework.ldap.core.LdapTemplate) [javac] location: class ldap.LdapModule [javac] dir.setChildren(LdapModule.getInstance().readChildren(ldapServer.getRoot(), template)); [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\ReadRootDirectory.java:51: cannot find symbol [javac] symbol : method convertFromDirectory(ldap.proxies.LdapServer,com.mendix.systemwideinterfaces.core.IContext,ldap.Directory,org.springframework.ldap.core.LdapTemplate,java.lang.String) [javac] location: class ldap.LdapModule [javac] LdapDirectory ldapDirectory = LdapModule.getInstance().convertFromDirectory(ldapServer, context, dir, template, ldapServer.getLoginField()); [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\ReadRootDirectory.java:52: cannot find symbol [javac] symbol : method setIsRoot(boolean) [javac] location: class ldap.proxies.LdapDirectory [javac] ldapDirectory.setIsRoot(true); [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\ReadRootDirectory.java:62: cannot find symbol [javac] symbol : method query(com.mendix.systemwideinterfaces.core.IContext,java.lang.String,ldap.proxies.LdapDirectory.MemberNames,long) [javac] location: class ldap.LdapModule [javac] List<IMendixObject> objects = LdapModule.query(context, LdapDirectory.getType(), LdapDirectory.MemberNames.LdapDirectory_LdapServer, ldapServer.getMendixObject().getId().toLong()); [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\ReadRootDirectory.java:66: cannot find symbol [javac] symbol : method query(com.mendix.systemwideinterfaces.core.IContext,java.lang.String,ldap.proxies.LdapDirectory.MemberNames,long) [javac] location: class ldap.LdapModule [javac] Assert.isTrue(0 == LdapModule.query(context, LdapDirectory.getType(), LdapDirectory.MemberNames.LdapDirectory_LdapServer, ldapServer.getMendixObject().getId().toLong()).size(), "Not all LDAP objects are removed correctly!"); [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\actions\ImportLdapGroups.java:39: cannot find symbol [javac] symbol : method importGroups(com.mendix.systemwideinterfaces.core.IContext,ldap.proxies.LdapServer) [javac] location: class ldap.LdapModule [javac] this.addTextMessageFeedback(MessageType.INFO, ldap.LdapModule.getInstance().importGroups(getContext(), ldapServer), true); [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\actions\ReadLdap.java:38: cannot find symbol [javac] symbol : method readLDAP(com.mendix.systemwideinterfaces.core.IContext,ldap.proxies.LdapServer) [javac] location: class ldap.LdapModule [javac] this.addTextMessageFeedback(MessageType.INFO, ldap.LdapModule.getInstance().readLDAP(getContext(), ldapServer), true); [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\actions\ReadLdapUserEntityAttributes.java:48: cannot find symbol [javac] symbol : variable UserEntity [javac] location: class ldap.proxies.LdapServer.MemberNames [javac] String userentity = ldapServer.getMendixObject().getMember(context, LdapServer.MemberNames.UserEntity.toString()).parseValueToString(context); [javac] ^ [javac] C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\javasource\ldap\actions\SelectLdapDirectory.java:38: cannot find symbol [javac] symbol : method addLdapDirectory(com.mendix.systemwideinterfaces.core.IContext,ldap.proxies.LdapDirectory) [javac] location: class ldap.LdapModule [javac] LdapServer server = LdapModule.getInstance().addLdapDirectory(getContext(), ldapDirectory); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 20 errors BUILD FAILED C:\Users\Ronald\AppData\Local\Temp\tmpED55.tmp\deployment\build.xml:62: Compile failed; see the compiler error output for details. Total time: 15 seconds Why do I not get these error when running local, but do I get them when I want to deploy to the standard cloud? [EDIT] Cleaning the Deployment directory resulted in not being able to run local anymore. Deprecated code in the new LDAP version 4 module? Regards, Ronald
asked
3 answers
1

Found the sollution. Clearing not only the userlib dir but also javasource/ldap. Removed the ldap directory and reimported the latest 4 version. Then the java errors are gone.

Regards,

Ronald

answered
0

I think the problem is in the new LDAP Version 4 module. I did what the documentation said and removed all old LDAP files (removed any userlib/spring.jar and userlib/mxldap.jar). From these errors it seems it is looking for some old java actions that are no longer there.

Is it true that the new version 4 module does not have a mxldap jar file anymore?

Ronald

answered
0

Hello Ronald,

 

Did you solve this one in the meantime? I am experiencing a similar issue.

 

Thanks

answered