users@glassfish.java.net

Re: Using Sun's Migration Tool...

From: <glassfish_at_javadesktop.org>
Date: Wed, 20 Aug 2008 14:38:18 PDT

Finally tackled "asmigrate -c" to see if there is any difference in output and here is the CMD window output as well as a little more info in the Exception statement:
[code]C:\>%asmt_home%\bin\asmigrate -c -S ws50 -T glassfish -t c:\temp\gfout c:\temp\cbc_20080717\source\cwmmanager_ejb\cwmmanager_ejb.ear

JAVA_HOME=C:\Java\SDK\jdk\
ASMT_HOME=c:\Java\SDK\asmt
J2EE_HOME=C:\Java\SDK\

Extracting archives :-
-------------------

Extracting: cwmmanager_ejb.ear
xxx

Extracting: cwmmanager_ejb.jar
xxxxxxxxx

Clean up...

Pre-processing input :-
-------------------
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||



Migration Status :-
----------------

Exception in thread "main" 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.IASMTMain.runTool(Unknown Source)
        at sun.iasmt.user.IASMTMain.<init>(Unknown Source)
        at sun.iasmt.user.IASMTMain.main(Unknown Source)
[/code]

Note: this time, I didn't have to invoke CTRL-C to quit - the command exited properly after displaying the exception.

So - what's up with the exception line: javax.xml.bind.annotation.XmlAccessorType.value()Ljavax/xml/bind/annotation/AccessType;

And as soon as the exception path string hits any sun.iasmt.* class, as before (seen in yesterday's posting), there is that "unknown source" thingy making me think that there is a referencing issue caused by something not properly setup. Where should I look to resolve this???

thanks,

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

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