Bug #167
build.xml:196: Java returned: 1 After generate
| Status: | Closed | Start: | 05/02/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | Jonathan Clarke | % Done: | 0% |
|
| Category: | Sample | |||
| Target version: | - | |||
| Problem in version: |
Description
Hi im trying to sync an Active Directory server and an OpenLDAP server.
Im using Win2k3 and Ubuntu 8.04. I followed the following guide:
http://lsc-project.org/wiki/documentation/howtos/activedirectory
And got an error after generate.
So tried it in windows instead of linux. with the following guide and filled out the wizard the same (except here I filled in windows first and linux second.)
Followed http://lsc-project.org/wiki/documentation/howtos/windows for Windows.
I get the following error with both Windows and Linux.
org.tp23.antinstaller.InstallException: Error running the install, The following error occurred while executing this line:
E:\lsc-sample-1.1.1\build.xml:196: Java returned: 1
at org.tp23.antinstaller.runtime.exe.AntProjectFilter.exec(AntProjectFilter.java:172)
at org.tp23.antinstaller.runtime.ExecInstall.exec(ExecInstall.java:85)
at org.tp23.antinstaller.selfextract.NonExtractor.main(NonExtractor.java:59)
Caused by: jar:file:/E:/lsc-sample-1.1.1/lib/lsc-sample-generator.jar!/build.xml:99: The following error occurred while executing this line:
E:\lsc-sample-1.1.1\build.xml:196: Java returned: 1
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.tp23.antinstaller.runtime.exe.AntProjectFilter.exec(AntProjectFilter.java:166)
... 2 more
Caused by: E:\lsc-sample-1.1.1\build.xml:196: Java returned: 1
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
... 15 more
--- Nested Exception ---
jar:file:/E:/lsc-sample-1.1.1/lib/lsc-sample-generator.jar!/build.xml:99: The following error occurred while executing this line:
E:\lsc-sample-1.1.1\build.xml:196: Java returned: 1
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.tp23.antinstaller.runtime.exe.AntProjectFilter.exec(AntProjectFilter.java:166)
at org.tp23.antinstaller.runtime.ExecInstall.exec(ExecInstall.java:85)
at org.tp23.antinstaller.selfextract.NonExtractor.main(NonExtractor.java:59)
Caused by: E:\lsc-sample-1.1.1\build.xml:196: Java returned: 1
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
... 15 more
--- Nested Exception ---
E:\lsc-sample-1.1.1\build.xml:196: Java returned: 1
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.tp23.antinstaller.runtime.exe.AntProjectFilter.exec(AntProjectFilter.java:166)
at org.tp23.antinstaller.runtime.ExecInstall.exec(ExecInstall.java:85)
at org.tp23.antinstaller.selfextract.NonExtractor.main(NonExtractor.java:59)
History
Updated by Jonathan Clarke 6 months ago
- Status changed from New to Feedback
Hi,
Unfortunately, it is very hard to tell from this output what exactly is causing this error - although you have provided clear information (thank you for that).
However, I can suggest a few points to start checking:- You seem to be using version 1.1.1. Some important bug fixes are in 1.1.2. I recommend downloading the archive of this here: http://tools.lsc-project.org/attachments/download/59/lsc-sample-1.1.2.tar.bz2.
- Do you have a JDK (not JRE, but JDK) installed, and defined in your JAVA_HOME? And ant and maven? See http://lsc-project.org/wiki/documentation/1.1/requirements to cover the requirements.
- If the problem persists, check the file "antinstaller.log" (or similar). The output in there may make things clearer as to the cause of this error.
Please let us know how this goes.
Regards,
Jonathan
Updated by bob roozekrans 6 months ago
- File ant.install.log added
Hi,
I installed the newer version of the sample and ran the instalation again. Got the exact same error. Looked at "ant.install.log" and I saw a lot of errors..
Wanted to send this in an email but I cant seem to be able to. Here is the text:
Thanks,
Bob R.
Updated by Jonathan Clarke 6 months ago
bob roozekrans wrote:
Hi,
I installed the newer version of the sample and ran the instalation again. Got the exact same error. Looked at "ant.install.log" and I saw a lot of errors..
I see this errors, at the end:
[java] 0 - INFO - Generating bean for class "inetOrgPerson" from target directory...
[java] 94 - INFO - Connecting to LDAP server ldap://192.168.2.50:389/dc=gemeentehuis-linx,dc=local as cn=admin
[java] 156 - ERROR - Error opening the LDAP connection to the destination!
...
[java] Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
It looks like the account/password you specified to connect to your destination directory is not valid. The DN, "cn=admin" should probably be suffixed, something like "cn=admin,dc=gemeentehuis-linx,dc=local". Hope this helps!
A word of encouragement: this graphical installer is not the best, we are aware. In the upcoming version 1.2 of LSC, it has been replaced. Patience, and you won't have to fight with this soon!
Wanted to send this in an email but I cant seem to be able to. Here is the text:
This is a bug tracking system, only available through the web for now. Feel free to discuss this by email on the [[http://lists.lsc-project.org/ mailing lists]].
Updated by bob roozekrans 6 months ago
- File ant.install.log added
Thanks for the unbelievable fast reply!
This fixed the 3 error lines in the log but the rest remains.
Here is my new error log. I'm going to try it in Linux once more since I'm not a big fan of Linux software in Windows.
Thanks,
Bob R.
Updated by Jonathan Clarke 6 months ago
bob roozekrans wrote:
Thanks for the unbelievable fast reply!
This fixed the 3 error lines in the log but the rest remains.
Here is my new error log. I'm going to try it in Linux once more since I'm not a big fan of Linux software in Windows.
Unfortunately, this file seems corrupted in some way. I managed to read a bit of it anyway, and saw that at the end you now have a different error. You obviously fixed the first one:
[java] 0 - INFO - Generating bean for class "inetOrgPerson" from target directory...^M
[java] 375 - INFO - Connecting to LDAP server ldap://192.168.2.50:389/dc=gemeentehuis-linux,dc=local as cn=admin,dc=gemeentehuis-linux,dc=local^M
But now, at the end, is another one, for the source directory:
[java] 1219 - INFO - Generating Java class for LDAP objectclass "inetOrgPerson" from source directory...
[java] 1219 - INFO - Connecting to LDAP server ldap://192.168.2.6:389/dc=gemeentehuis,dc=local as cn=administrator,dc=gemeentehuis,dc=local
[java] 1484 - ERROR - Error opening the LDAP connection to the source!
...
[java] Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece^@]
This seems to be a similar problem - your authentication to the source LDAP directory (Active Directory, by the looks of it) is not working. You can test this quite easily on the command line using ldapsearch, or with a graphical LDAP browser such as "Apache Directory Studio".
I don't see any other errors in the log - there is lots of verbose output, and some errors are displayed but they are worked around. In this file, it's always best to check from the bottom of the file, to see which error caused the process to stop.
Good luck, and let us know how it goes on Linux!
Updated by bob roozekrans 6 months ago
- File ant.install.log added
Thanks, I tried connecting with Apache Directory Studio.
First I connected to linux and that worked. But at Active Directory I got: LDAP error code 49. Googled it and found that when connecting to AD you shouldn't use the full DN but in my case: administrator@gemeentehuis.local
And this worked! I connected with Apache Directory studio.
Used the same information in LSC wizard, and now I get no more error at the end.
So for OpenLDAP use: cn=admin,dc=domain,dc=com
And for Active Directory: administrator@domain.com
Thanks a lot,
Bob
Updated by Jonathan Clarke 6 months ago
- Status changed from Feedback to Closed
- Assigned to set to Jonathan Clarke
bob roozekrans wrote:
First I connected to linux and that worked. But at Active Directory I got: LDAP error code 49. Googled it and found that when connecting to AD you shouldn't use the full DN but in my case: administrator@gemeentehuis.local
And this worked! I connected with Apache Directory studio.
Used the same information in LSC wizard, and now I get no more error at the end.
Thanks for letting us know. I'm glad it works now. Closing this issue, now.
Just for information, what version of Active Directory are you using?
Regards,
Jonathan
Updated by bob roozekrans 6 months ago
I am using Windows 2003 Enterprise Edition SP2
With Active Directory Users and Computers
Version: 5.2.3790.3959
Regards,
Bob