aspose file tools *
The moose likes JDBC and the fly likes Problems with Ant / JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Problems with Ant / JDBC" Watch "Problems with Ant / JDBC" New topic
Author

Problems with Ant / JDBC

Alessio Piccinini
Greenhorn

Joined: Jun 06, 2012
Posts: 2
I must to store some information into a filemaker's DB.
I downloaded "fmjdbc.jar" and I have no problems if I compile and run my class when I use javac/java.

I have problem if I try to run it under ANT in a project.
There's a similar topic in this forum. The errors are very similar but the build file is different.

Here my biuld.xml file .




execute:
[java] svID = ITNIC EPP Registry
[java] svDate = 2012-06-06T11:45:31.892+02:00
Unable to obtain resource from /users/utente1/Documents/nic/epp-client-cmd-line/build/it/nic/epp/client/httpClient/example/HelloDue.class: java.util.zip.ZipException: error in opening zip file
[java] Unable to obtain resource from /users/utente1/Documents/nic/epp-client-cmd-line/build/it/nic/epp/client/httpClient/example/HelloDue.class:
[java] Unable to obtain resource from /users/utente1/Documents/nic/epp-client-cmd-line/trusted.keystore:
[java] java.util.zip.ZipException: error in opening zip file
[java] at java.util.zip.ZipFile.open(Native Method)
[java] at java.util.zip.ZipFile.<init>(ZipFile.java:127)
[java] at java.util.jar.JarFile.<init>(JarFile.java:135)
[java] at java.util.jar.JarFile.<init>(JarFile.java:99)
[java] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:1002)
[java] at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:145)
[java] at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.nextElement(AntClassLoader.java:130)
[java] at org.apache.tools.ant.util.CollectionUtils$CompoundEnumeration.nextElement(CollectionUtils.java:239)
[java] at sun.misc.Service$LazyIterator.hasNext(Service.java:258)
[java] at java.sql.DriverService.run(DriverManager.java:663)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.sql.DriverManager.loadInitialDrivers(DriverManager.java:506)
[java] at java.sql.DriverManager.initialize(DriverManager.java:612)
[java] at java.sql.DriverManager.registerDriver(DriverManager.java:281)
[java] at com.filemaker.jdbc.Driver.<clinit>(Unknown Source)
[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Class.java:169)
[java] at it.nic.epp.client.httpClient.example.ProvaDataBase.inserimento(ProvaDataBase.java:41)
[java] at it.nic.epp.client.httpClient.example.HelloDue.main(HelloDue.java:38)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.Target.execute(Target.java:390)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[java] at org.apache.tools.ant.Main.runBuild(Main.java:809)
[java] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[java]
[java] --- Cattura Errori SQLException ---
[java]
[java] Messaggio : [FileMaker][FileMaker JDBC] (802): Unable to open file
[java] SQLState : 08007
[java] Codice Errore : 0
[java]
[java] Chiusura del Data Base
[java]
[java] lang = en
[java] lang = it
[java] version = 1.0
[java] objURI = urn:ietf:params:xml:ns:contact-1.0
[java] objURI = urn:ietf:params:xml:ns:domain-1.0
[java] extURI = http://www.nic.it/ITNIC-EPP/extepp-2.0
[java] extURI = http://www.nic.it/ITNIC-EPP/extcon-1.0
[java] extURI = http://www.nic.it/ITNIC-EPP/extdom-2.0
[java] extURI = urn:ietf:params:xml:ns:rgp-1.0

BUILD SUCCESSFUL
Total time: 2 seconds
MacBookPro09-9:epp-client-cmd-line utente1$

Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

Welcome to the ranch Alessio
but sorry i can't help, hopefully somebody will be along soon who will be able to.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems with Ant / JDBC