Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Generate JAXB Classes - cannot find XJCFacade(Generate JAXB classes menu gets ClassNotFoundException)
Generate JAXB Classes - cannot find XJCFacade [message #662010] Mon, 28 March 2011 17:04 Go to next message
Michael Giroux is currently offline Michael Giroux
Messages: 78
Registered: July 2009
Location: Phoenix, AZ
Member
I'm attempting to generate JAXB classes from an XSD. When I right-click the schema and select the Generate->JAXB Classes, I get the following error on the console.

java.lang.NoClassDefFoundError: com/sun/tools/xjc/XJCFacade
Caused by: java.lang.ClassNotFoundException: com.sun.tools.xjc.XJCFacade
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301 )
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

I've been digging through Eclipse docs for better part of a day now, and cannot find anything that suggests that I need to do anything special to Generate JAXB Classes.

Config:
Version: Helios Service Release 2 Java EE version.
Build id: 20110218-0911

EclipseLink SDK 2.2.0 (not sure if I need this or not)

JDK 1.6.0_24

Can someone point me to docs that explain where XJCFacade is and how to install it into eclipse?

Thanks
Michael

Re: Generate JAXB Classes - cannot find XJCFacade [message #662014 is a reply to message #662010] Mon, 28 March 2011 17:21 Go to previous messageGo to next message
Michael Giroux is currently offline Michael Giroux
Messages: 78
Registered: July 2009
Location: Phoenix, AZ
Member
BTW, I do see com.sun.tools.internal.xjc.XJCFacade.class in JDK 1.6 tools.jar.
Re: Generate JAXB Classes - cannot find XJCFacade [message #662137 is a reply to message #662010] Tue, 29 March 2011 09:40 Go to previous messageGo to next message
Michael Giroux is currently offline Michael Giroux
Messages: 78
Registered: July 2009
Location: Phoenix, AZ
Member
Is there a better newsgroup to post this issue?
Re: Generate JAXB Classes - cannot find XJCFacade [message #662200 is a reply to message #662010] Tue, 29 March 2011 13:17 Go to previous messageGo to next message
Blaise Doughan is currently offline Blaise Doughan
Messages: 131
Registered: July 2009
Senior Member

Hi Michael,

The JAXB tooling is provided through the Dali project. Here is a link to their forum:

http://www.eclipse.org/forums/index.php?t=thread&frm_id= 113&S=81dc99f12bb978b240758df9ef174836

-Blaise
Re: Generate JAXB Classes - cannot find XJCFacade [message #803662 is a reply to message #662010] Tue, 21 February 2012 11:41 Go to previous messageGo to next message
Frank Lawlor is currently offline Frank Lawlor
Messages: 1
Registered: February 2012
Junior Member
I had the same problem.

I changed my jdk to 1.7 and the problem went away.

-- Frank
Re: Generate JAXB Classes - cannot find XJCFacade [message #1012273 is a reply to message #662010] Thu, 21 February 2013 03:46 Go to previous message
Mohammed-Salah OKA is currently offline Mohammed-Salah OKA
Messages: 1
Registered: February 2013
Junior Member
Hello

You have to use the JDK as runtime for your project in eclipse

It work well with JDK 1.6 but not with JRE6

regards
Previous Topic:DBWS Error on Deployment
Next Topic:JAXB unmarshaller : no AttachmentUnmarshaller set
Goto Forum:
  


Current Time: Thu May 23 21:11:03 EDT 2013

Powered by FUDForum. Page generated in 0.01676 seconds