You may encounter an error message that the jaxb object factory was not found. Well, there are several ways to solve this problem, and we will cover them shortly.
As @Chris pointed out, JAXB may not work with POJOs, basically schema cannot be mapped to Java. These cases require the JAXBElement wrapper objects to help provide additional type information. I have come across two specific examples where this is certainly a common practice.
I configured eclipse-cpp-europa-SR1and PTP 2.1 Candidate rc2 (build 10/20)I create a lot of unresolved dependencies in the system, but no UI complaints/Applications/ecl/ptp21rc2/eclipse$./eclipse/Applications/ecl/ptp21rc2/eclipse$ !SESSION Oct 20, 2008 2:10:17.544 ----------------------- ---------- ----- --------------eclipse.buildId=M20080911-1700java.version=1.5.0_16java.vendor=Apple Inc.Loader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_USFramework Keychain Arguments: /Users/beth/.eclipse_keyring -showlocationCommand line discussion: -os macosx Carbon -ws -arch x86 -keyring /Users/beth/.eclipse_keyring -consoleLog -showlocation!ENTRY org.eclipse.equinox.p2.director 2 2 2008-10-20 14:10:20.389!MESSAGE Deployment plan permission issues.!SUBENTRY single org.eclipse.equinox.p2.director 2 0 2008-10-20 14:10:20.389!MESSAGE Unable to map dependency org.eclipse.ptp.rdt.core.tests 1.0.0 to required capacity: osgi.bundle/org.junit4/4.3.1.!SUBENTRY at least one org.eclipse.equinox.p2.director 2 0 2008-10-20 14:10:20.389!MESSAGE Cannot be satisfiedBuilt by dependency org.eclipse.ptp.rdt.ui 1.0.0.200810191823 and required feature: java.package/org.eclipse.rse.internal.subsystems.files.dstore/0.0.0.!ENTRY org.eclipse.equinox.p2.director 4 0 2008-10-20 14:10:20.665!MESSAGE Deployment plan permission issues.!SUBENTRY 1 org.eclipse.equinox.p2.director #2 0 2008-10-20 14:10:20.666!Custom MESSAGE from org.eclipse.ptp.rdt.ui 1.0.0.200810191823 for requiredCapability: java.package/org.eclipse.rse.internal.subsystems.files.dstore/0.0.0 could not be satisfied.!SUBENTRY specific person org.eclipse.equinox.p2.director 2 0 2008-10-20 14:10:20.667!MESSAGE Not possible, which matches dependency org.eclipse.ptp.rdt.core.tests 1.0.0, so you have the required capability: osgi.bundle/org.junit4/4.3.1.!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2008-10-20 14:10:20.667!MESSAGE No solution found because /tmp/p2Encoding65342.opb cannot resolve the problem.!ENTRY org.eclipse.equinox.p2.director 4 single 10/20/2008 2:10:21.415 PM!MESSAGE Complete cannot be installed because many dependencies cannot be satisfied!SUBENTRY 1 org.eclipse.equinox.p2.director two 0 2008-10-20 14:10:21.416!MESSAGE Unmet dependency: [org.eclipse.ptp.rdt.core.tests 1.0.0] requiredCapability: osgi.bundle/org.junit4/4.3.1!SUBENTRY 1 org.eclipse.equinox.p2.director 4 4 2008-10-20 14:10:21.417!MESSAGE Unmet dependency: [org.eclipse.ptp.rdt.ui 1.0.0.200810191823] requiredCapability: java.package/org.eclipse.rse.internal.subsystems.files.dstore/0.0.0!SUBENTRY specific specific org.eclipse.equinox.p2.director 4 0 2008-10-20 14:10:21.418!MESSAGE Unmet dependency: [org.eclipse.ptp.rdt.feature.group 2.1.0.200810191823] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ptp.rdt.core.tests/[1.0.0 , 1.0.0]!SUBENTRY just org.eclipse.equinox.p2.director 4 0 2008-10-20 14:10:21.419!MESSAGE Unmet dependency: [org.eclipse.ptp.rdt.feature.group 2.1.0.200810191823] 0.200810191823]!SUBENTRY 1 org.eclipse.equinox.p2.director 4 2 2008-10-20 14:10:21.421!MESSAGE Unmet dependency: [org.eclipse.ptp.rdt.ui 1.0.0.200810191823] requiredCapability: java.package/org.eclipse.rse.internal.subsystems.files.dstore/0.0.0!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2008-10-20 14:10:21.421!MESSAGE Unmet dependency: [org.eclipse.ptp.rdt.core.tests 1.0.0] requiredCapability: osgi.bundle/org.junit4/4.3.1!ENTRY org.eclipse.cdt.core at least one 0 2008-10-20 14:18:59.289!MESSAGE indexed (1 source 'a1_mpi', 20 headers) in 2 seconds: end 03 3691 declaration; 2443 links; 0 unauthorized inclusions; 7 syntax error; 0 unresolved names (0.00%)CDT version: 5.0.2.200810170802Looks like RSE dependencies are not listed at the moment???When I reinstall (using Eclipse SDK 3.4.1 anyway) and explicitly set RSE End User Runtime and End User Actions, my friends and I don't get this error.Please note that I would say thatThe installation "quick guide" below points to http://wiki.eclipse.org/PTP/builds/2.1.say do it and I don't. When I do this, something disappears.
comment 1 Beth Tibbits 10/20/2008 3:17:06 PM EDT
Correction: I installedeclipse-cpp-ganymede-sr1-macosx-carbon.tar.gznot eclipse-cpp-europe
Is it awkward to construct a JAXBElement object?
However, JAXBElement objects are difficult to create because you usually need to know the name and namespace of the XML element, which is usually not the case in business logic. Fortunately, in cases where XJC generates a class model, the software also generates a class named ObjectFactory.
comment 2 Chris Recoskie October 21, 2008 3:27:41 pm EDT
Fortect is the world's most popular and effective PC repair tool. It is trusted by millions of people to keep their systems running fast, smooth, and error-free. With its simple user interface and powerful scanning engine, Fortect quickly finds and fixes a broad range of Windows problems - from system instability and security issues to memory management and performance bottlenecks.
1. Download Fortect and install it on your computer
2. Launch the program and click "Scan"
3. Click "Repair" to fix any issues that are found