users@glassfish.java.net

Re: Using Sun's Migration Tool...

From: <glassfish_at_javadesktop.org>
Date: Tue, 19 Aug 2008 14:47:06 PDT

sekhar, you mention there is no need to modify classpath-suffix element, yet that instruction is still there in the installation guide: http://wiki.glassfish.java.net/Wiki.jsp?page=M2GInstSetup >> look all the way down to the last paragraph on that web page... (this instruction is using the admin gui, but it does the same thing as manually editing the domain.xml file). Why do you say this is not necessary?

Anyway... I uninstalled (deleted) the Sun Migration tool and downloaded, unzipped and placed the Glassfish migration tool in its place. I kept the environment variables the same as I already have them defined globally within the Winders environs. I invoked the asmigrate.cmd -u to bring up the gui (I'm not sure I understand the command-line yet and just want to see this run). I selected "archive" and navigated to an EAR file, selected Websphere 5.x, selected an output directory and clicked on Migrate. resulted in a slightly different error message:
[code]Exception in thread "Thread-4" java.lang.NoSuchMethodError: javax.xml.bind.annotation.XmlAccessorType.value()Ljavax/xml/bind/annotation/AccessType;
        at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getAccessType(ClassInfoImpl.java:244)
        at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getProperties(ClassInfoImpl.java:195)
        at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getProperties(RuntimeClassInfoImpl.java:79)
        at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:112)
        at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:45)
        at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:37)
        at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:141)
        at com.sun.xml.bind.v2.model.impl.RegistryInfoImpl.<init>(RegistryInfoImpl.java:50)
        at com.sun.xml.bind.v2.model.impl.ModelBuilder.addRegistry(ModelBuilder.java:183)
        at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:152)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:306)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:179)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:70)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:50)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:118)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:133)
        at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
        at sun.iasmt.util.ASMTJaxbContext.<init>(Unknown Source)
        at sun.iasmt.convertors.common.xmlconvertor.EjbJarReader.read(Unknown Source)
        at sun.iasmt.control.SJSMTXmlFileHandler.readXMLFile(Unknown Source)
        at sun.iasmt.control.ASMTController.startupEngineAndConvert(Unknown Source)
        at sun.iasmt.control.ASMTController.startupEngineAndConvert(Unknown Source)
        at sun.iasmt.user.cmd.CommandCallController.<init>(Unknown Source)
        at sun.iasmt.user.gui.MigrationInitiator.run(Unknown Source)[/code]
So... what now Kimosabee? Am I getting closer? It still seems the tool does not understand where to look for the sun.iasmt.* references...

Da Lizard
[Message sent by forum member 'loungelizard' (loungelizard)]

http://forums.java.net/jive/thread.jspa?messageID=294230