travla
|
2011-03-23
, 20:48
|
|
Posts: 397 |
Thanked: 241 times |
Joined on Mar 2010
@ Melbourne, Australia
|
#161
|
|
2011-03-23
, 21:14
|
|
Posts: 152 |
Thanked: 91 times |
Joined on Dec 2009
@ Spain
|
#162
|
Okay, I tried using the command line arg you provided earlier (modifed to indicate path to source and output XML files):
And got this output:Code:java.exe -cp xalan.jar org.apache.xalan.xslt.Process -in c:\temp\keepass.xml -xsl c:\temp\convert.xsl -out c:\temp\wallet.xml
Could it be because I am behind a corporate firewall, and can't access the xalan file? If you are able to provide it to me, and let me know what to change in the command line, it would be most appreciated.Code:Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xalan/xslt /Process Caused by: java.lang.ClassNotFoundException: org.apache.xalan.xslt.Process at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Could not find the main class: org.apache.xalan.xslt.Process. Program will exit.
The Following User Says Thank You to nowhereman For This Useful Post: | ||
|
2011-03-23
, 21:18
|
|
Posts: 397 |
Thanked: 241 times |
Joined on Mar 2010
@ Melbourne, Australia
|
#163
|
You need to download xalan from http://www.apache.org/dyn/closer.cgi/xml/xalan-j
unzip in a folder, and you will find a file called xalan.jar.
Copy this file on same folder where you are executing the previous command.
xalan-j_2_7_1-bin.zip
|
2011-03-23
, 21:34
|
|
Posts: 152 |
Thanked: 91 times |
Joined on Dec 2009
@ Spain
|
#164
|
Downloading now, there are several archives at that location, I have gone for:
Is this correct? It is running at 32 Kb/s, which will take about 1.5 hours for a 17Mb file!Code:xalan-j_2_7_1-bin.zip
Thanks for hanging in there with me.
The Following User Says Thank You to nowhereman For This Useful Post: | ||
|
2011-03-23
, 21:43
|
|
Posts: 397 |
Thanked: 241 times |
Joined on Mar 2010
@ Melbourne, Australia
|
#165
|
C:\Program Files (x86)\Java\jre6\bin>java.exe -cp c:\temp\xalan.jar org.apache.xalan.xslt.Process -in c:\temp\keepass.xml -xsl c:\t emp\convert.xsl -out c:\temp\wallet.xml
(Location of error unknown)XSLT Error (java.lang.NoClassDefFoundError): org/apache/xml/serializer/ExtendedContentHandler Exception in thread "main" java.lang.RuntimeException: org/apache/xml/serializer/ExtendedContentHandler at org.apache.xalan.xslt.Process.doExit(Process.java:1155) at org.apache.xalan.xslt.Process.main(Process.java:1128)
|
2011-03-23
, 22:14
|
|
Posts: 152 |
Thanked: 91 times |
Joined on Dec 2009
@ Spain
|
#166
|
Sorry, I hope I'm not frustrating you. I have downloaded the archive, moved xalan.jar to the same directory as the XML files, and modified the command line as follows:
And now I get:Code:C:\Program Files (x86)\Java\jre6\bin>java.exe -cp c:\temp\xalan.jar org.apache.xalan.xslt.Process -in c:\temp\keepass.xml -xsl c:\t emp\convert.xsl -out c:\temp\wallet.xml
Any idea what the error means?Code:(Location of error unknown)XSLT Error (java.lang.NoClassDefFoundError): org/apache/xml/serializer/ExtendedContentHandler Exception in thread "main" java.lang.RuntimeException: org/apache/xml/serializer/ExtendedContentHandler at org.apache.xalan.xslt.Process.doExit(Process.java:1155) at org.apache.xalan.xslt.Process.main(Process.java:1128)
C:\Program Files (x86)\Java\jre6\bin>java.exe -cp c:\temp\xalan.jar;c:\temp\serializer.jar org.apache.xalan.xslt.Process -in c:\temp\keepass.xml -xsl c:\t emp\convert.xsl -out c:\temp\wallet.xml
The Following User Says Thank You to nowhereman For This Useful Post: | ||
|
2011-03-24
, 01:22
|
|
Posts: 397 |
Thanked: 241 times |
Joined on Mar 2010
@ Melbourne, Australia
|
#167
|
try to put the other files like this
Code:C:\Program Files (x86)\Java\jre6\bin>java.exe -cp c:\temp\xalan.jar;c:\temp\serializer.jar org.apache.xalan.xslt.Process -in c:\temp\keepass.xml -xsl c:\t emp\convert.xsl -out c:\temp\wallet.xml
|
2011-03-24
, 10:24
|
|
Posts: 152 |
Thanked: 91 times |
Joined on Dec 2009
@ Spain
|
#168
|
I did what you said, and it did indeed produce an output, but not what I expected (the file did not look like an XML). I then created a new sample database, put 5 entries in there and tried again, and got a similar result (but obviously with different data).
I have attached the input and output files (I had to zip, too large for text files), if you have time and you can look at them and see what I may be missing that would be great.
The Following User Says Thank You to nowhereman For This Useful Post: | ||
|
2011-03-24
, 21:10
|
|
Posts: 397 |
Thanked: 241 times |
Joined on Mar 2010
@ Melbourne, Australia
|
#169
|
|
2011-03-24
, 21:17
|
|
Posts: 152 |
Thanked: 91 times |
Joined on Dec 2009
@ Spain
|
#170
|
nowhereman, you are indeed a gentleman. We now have imported entries in to wall from KeePass, you have no idea how much time this will save me.
Only one problem left, and I hope you can help me. The 2nd xsl you created for me is creating/generating duplicates of each password. I had a look at the xsl, but I've no idea what I'm looking for. I have attached the output XML, can you see why it may be creating duplicates?