users@glassfish.java.net

start-local-instance fails with JAXBException

From: <forums_at_java.net>
Date: Thu, 23 Feb 2012 16:14:34 -0600 (CST)

I am setting up a GlassFish cluster following the guide at
http://javadude.wordpress.com/2011/04/25/glassfish-3-1-clustering-tutorial/.
I started from fresh installs of GlassFish 3.1.1. I also have the same
architecture as in the guide: two nodes with one instance each. The DAS is on
node1.

I've tried starting from scratch several times and am able to create the
cluster, nodes and instances without issue. I also have the DAS communicating
with node2 via SSH. However, each time when I get to the point where I
attempt to start instance2 it fails:

[code]$ ./asadmin start-local-instance --node node1 --sync normal instance2
Previous synchronization failed at Feb 23, 2012 2:41:53 PM
Will perform full synchronization.
Removing all cached state for instance instance2.
CLI802 Synchronization failed for directory config, caused by:
  javax.xml.bind.JAXBException
 - with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
Command start-local-instance failed.[/code]

I spent the day Googling and searching Jira, but couldn't find a solution to
this issue. I'd very much appreciate any ideas you have on how to solve this
problem.

OS: CentOS 5.7
Java version: 1.6.0_20


--
[Message sent by forum member 'takaitra']
View Post: http://forums.java.net/node/883742