0 Replies Latest reply on May 4, 2005 1:06 AM by Andrew Davey

    XDoclet errors after CVS checkout

    Andrew Davey Newbie

      Operating system - Fedora Core 3
      Java version - JDK 1.5
      Eclipse version - 3.0.2
      JBoss-IDE version - 1.4.1-e30
      JBoss version - 4.0.2RC2

      Created a simple EJB that acts as a timer to perform some business function and used JBoss-IDE XDoclet to create the deployment descriptors for me. Everything worked fine and could even deploy to jboss without a problem.

      So here's the problem...
      I checked my project in to CVS and then I imported the project from CVS using the File->Import menu. Everything looks fine and compiles ok but when I go to run XDoclet I get the following error message:

      An internal error occurred during: "XDoclet Generation".
      java.lang.IllegalArgumentException: Element not found: /EJBTimer/gen_src/CVS.
      org.eclipse.core.internal.watson.ElementTree.elementNotFound(ElementTree.java:377)
      org.eclipse.core.internal.watson.ElementTree.createElement(ElementTree.java:286)
      org.eclipse.core.internal.resources.Workspace.createResource(Workspace.java:711)
      org.eclipse.core.internal.resources.Workspace.createResource(Workspace.java:681)
      org.eclipse.core.internal.resources.Workspace.createResource(Workspace.java:745)
      org.eclipse.core.internal.localstore.RefreshLocalVisitor.createResource(RefreshLocalVisitor.java:78)
      org.eclipse.core.internal.localstore.RefreshLocalAliasVisitor.createResource(RefreshLocalAliasVisitor.java:28)
      org.eclipse.core.internal.localstore.RefreshLocalVisitor.synchronizeExistence(RefreshLocalVisitor.java:202)
      org.eclipse.core.internal.localstore.RefreshLocalVisitor.visit(RefreshLocalVisitor.java:278)
      org.eclipse.core.internal.localstore.UnifiedTree.accept(UnifiedTree.java:75)
      org.eclipse.core.internal.localstore.FileSystemResourceManager.refreshResource(FileSystemResourceManager.java:622)
      org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh(FileSystemResourceManager.java:609)
      org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1228)
      org.jboss.ide.eclipse.xdoclet.run.ui.actions.XDocletRunAction$1.run(XDocletRunAction.java:191)
      org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

      Each time I try to run XDoclet the path on line three of the error message changes and the cvs directory is added to the project. The project then also loses it CVS status. ie. reverts back to a normal project that is not checked into cvs.

      Can anyone shed some light on this as it is driving me nuts :S

      Thanks,
      Andrew