users@glassfish.java.net

Re: Using Sun's Migration Tool...

From: <glassfish_at_javadesktop.org>
Date: Wed, 20 Aug 2008 15:06:42 PDT

How can I test to tell what version of JAXB I'm invoking?

I decided to uninstall everything and create a whole new install of the latest j2EE JDK (since my original install had stuff inside of c:\Program Files\Java - and I wanted to eliminate tricky issues with having a space in the path). So, I went through the registry on my dev machine after uninstall and deleting all Java and did a search for "c:\Program Files\Java" and replaced them all with "c:\java" - the new location for java stuff to be installed - then reinstalled everything anew.

then I tried migrating an ear that was a web app...
[code]C:\>%asmt_home%\bin\asmigrate -c -S ws50 -T glassfish -t c:\temp\gfout c:\temp\cbc_20080717\source\cbci_app_v2\cbci_app.ear

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

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

Extracting: cbci_app.ear
xxx

Extracting: cbci_app.war
xxxxxx

Clean up...

Selected Directory is not empty. Some Output file(s) may be overwritten. Do you
want to continue? (Y/N):y

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.AppReader.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)

C:\> [/code]

I am still getting the same old stuff as in the previous posting...

time for a brew...

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

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