facebook

Xdoclet problem

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #250006 Reply

    hongeclipse
    Member

    Hi all,

    I am new to MyEclipse, I am using version 4.1.1.
    When I clicked on “Run Xdoclet” button, I got following error msg in console:

    xdoclet.template.TemplateException: Template file file:/D:/software/eclipse_myeclipse/lhong/workspace/NEbackup_prototype/ not found.
    [ejbdoclet] at xdoclet.template.TemplateEngine.start(TemplateEngine.java:434)

    Could anyone help me with this problem. I am in a hurry with my project and any help will be greatly appreciated.

    !ENTRY org.eclipse.core.runtime 4 2 2006-04-06 17:01:15.66
    !MESSAGE An internal error occurred during: “XDoclet Generation”.
    !STACK 0
    java.lang.IllegalArgumentException: Attempted to beginRule: P/TestProject, does not match outer scope rule: P/NEbackup_prototype
    at org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java:58)
    at org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:117)
    at org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:226)
    at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:81)
    at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:190)
    at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:96)
    at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1676)
    at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1240)
    at org.eclipse.debug.ui.RefreshTab.refreshResources(RefreshTab.java:440)
    at org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDelegate.runInSeparateVM(AntLaunchDelegate.java:563)
    at org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:194)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:590)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:515)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:152)
    at org.jboss.ide.eclipse.xdoclet.run.ui.XDocletRunAction$2.run(XDocletRunAction.java:375)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

    #250025

    Riyad Kalla
    Member

    Open up your project properties, and go to MyEclipse-XDoclet, go to the Build tab and make sure “Use dynamic build specification” is selected under the Build Policy. Then refresh your project, Clean it, then try and run XDoclet.

    Also what do you mean “XDoclet button”, MyEclipse only offers Run XDoclet from the right -click context menu, there is no toolbar button, so I wonder if you might have another plugin installed separately (like JBossIDE) that is conflicting.

    #250156

    hongeclipse
    Member

    Hi Riyad,

    I am sorry that I confused you about the “Xdoclet” button, what I meant was to select “Run Xdoclet”.

    Thank you very much for your reply. I tried your solution. But it still gave me the same error message when I run Xdoclet. Could you please help me?

    Thanks,
    Hong

    #250170

    Riyad Kalla
    Member

    Do you have an xdoclet build file in your project that you are running by chance?

    #250181

    hongeclipse
    Member

    No, I do not see it.

    #250185

    Riyad Kalla
    Member

    Try restarting using the -clean command line argument, it could be a stale plugin state.

    I also sent your issue to another engineer more farmiliar with the XDoclet work tos ee if he knows.

    #250190

    hongeclipse
    Member

    I tried restarting using the -clean command line argument. Then I rerun the XDoclet, I still got the same error message.

    #250204

    hongeclipse
    Member

    Can anybody help me? I will really appreciate it.

    #250206

    Riyad Kalla
    Member

    Hong,
    Some other folks were having a similar problem here: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=56437

    It looks like it might be source control related. What source control software or plugin are you using?

    #250216

    Riyad Kalla
    Member

    I did some searching and this does seem to be related to source control but besides that it appears to be a bug that is targetted to be fixed in MyEclipse 5.0:
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-6248-highlight-attempted+beginrule.html

    I’m sorry for the inconvenience. If you create a new project and run XDoclet on that project, does it work?

    #250219

    hongeclipse
    Member

    I just created a new project, it works when I run XDoclet on that project.
    So what I should do is to move the old project to new project? How to do that?

    #250225

    Riyad Kalla
    Member

    Yes you can try to do that, by copy and pasting all your files from the first project into the second one and see if that helps.

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: Xdoclet problem

You must be logged in to post in the forum log in