Hide Forgot
When trying Procedure 4.4. Install and run the IronJacamar Migration tool I got the following error: Exception in thread "main" java.lang.UnsupportedClassVersionError: org/jboss/jca/as/converters/Main : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:634) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) at java.net.URLClassLoader.access$000(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:212) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not find the main class: org.jboss.jca.as.converters.Main. Program will exit. I was following the procedure step by step as described in the guide: 1. Procedure 4.5 - download and unzip IronJacamar 1.1 2. Copy example file into jboss-seam-booking-ds.xml 3. Procedure 4.6 - in IRONJACAMAR_HOME/doc/as/ run ./converter.sh -ds jboss-seam-booking-ds.xml new-datasource-config.xml The same error occurrs when trying Procedure 4.7 in section 4.1.9. Use the IronJacamar Migration Tool to Convert a Resource Adapter Configuration File Probably the procedure is missing some steps or notes. NOTES: (A) URL http://docs.jboss.org/ironjacamar/userguide/1.1/en-US/html/tools.html#tools_migration is broken (Not Found) (B) There is no "docs" directory in IRONJACAMAR_HOME, it is called "doc" (C) A space is missing in the commands: ./converter.sh -ds jboss-seam-booking-ds.xmlnew-datasource-config.xml ./converter.bat -ds jboss-seam-booking-ds.xmlnew-datasource-config.xml ./converter.sh -ra mttestadapter-ds.xmlnew-adapter-config.xml ./converter.bat -ra mttestadapter-ds.xmlnew-adapter-config.xml
Nikoleta: I found and fixed the following bugs: The URL for the download had a trailing '/'. Replaced: Download the IronJacamar 1.1 or greater distribution from here: http://www.ironjacamar.org/download.html/. With: Download the IronJacamar 1.1 or greater distribution from here: http://www.ironjacamar.org/download.html/ Use the IronJacamar Migration Tool to Convert a Datasource Configuration [5409] Invalid 'doc' directory: Replaced: Open a command line and navigate to the IRONJACAMAR_HOME/docs/as/ directory/.. With: Open a command line and navigate to the IRONJACAMAR_HOME/doc/as/ directory. I downloaded the latest distribution and ran it without a problem. I changed the instructions to tell them to download the latest distribution. My guess is that 1.1 no longer works with EAP 6.3. Could you follow the new instructions and let me know if it works?
*** Bug 1089852 has been marked as a duplicate of this bug. ***
Beware of really removing the trailing slash, see comment above. There should be also mentioned that coverter scripts require java 1.7 or higher, otherwise you get exception like Nikoleta.
I noticed that there are missing spaces in Procedure 4.4. Convert a Datasource Configuration File: For Linux: ./converter.sh -ds jboss-seam-booking-ds.xmlnew-datasource-config.xml For Microsoft Windows: ./converter.bat -ds jboss-seam-booking-ds.xmlnew-datasource-config.xml it should be: For Linux: ./converter.sh -ds jboss-seam-booking-ds.xml new-datasource-config.xml For Microsoft Windows: ./converter.bat -ds jboss-seam-booking-ds.xml new-datasource-config.xml
This one slipped past me since it remained in a modified state. Modified: Use the IronJacamar Migration Tool to Convert a Datasource Configuration File [5409, rev: 640988]
Noticed the same problem in another topic. Fixed: Use the IronJacamar Migration Tool to Convert a Resource Adapter Configuration File Topics will be staged here: http://documentation-devel.engineering.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/6.3/html-single/Migration_Guide/index.html#Use_the_IronJacamar_Migration_Tool_to_Convert_a_Datasource_Configuration_File1 http://documentation-devel.engineering.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/6.3/html-single/Migration_Guide/index.html#Use_the_IronJacamar_Migration_Tool_to_Convert_a_Resource_Adapter_Configuration_File
This cn be verified at the above links.
(In reply to sgilda from comment #1) > I downloaded the latest distribution and ran it without a problem. I changed > the instructions to tell them to download the latest distribution. My guess > is that 1.1 no longer works with EAP 6.3. 1.1 still works with EAP 6.3, the problem is with the java version - see comment 3 Both 1.1 and 1.2 require java 1.7 or higher, please make a note about it in the guide.
Added a note about the need for Java 7 or higher to the following topics: Download and Install the IronJacamar Migration Tool [5411] Use the IronJacamar Migration Tool to Convert a Datasource Configuration File [5409] Use the IronJacamar Migration Tool to Convert a Resource Adapter Configuration File [5410]
This can be verified here: documentation-devel.engineering.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/6.3/html-single/Migration_Guide/index.html#Use_the_IronJacamar_Tool_to_Migrate_Datasource_and_Resource_Adapter_Configurations
Verified, revision 6.3.0-14