For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 11 replies, 2 voices, and was last updated 20 years, 4 months ago by
Riyad Kalla.
-
AuthorPosts
-
hongeclipseMemberHi 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)April 7, 2006 at 2:36 pm #250025
Riyad KallaMemberOpen 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.
April 10, 2006 at 10:59 am #250156
hongeclipseMemberHi 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,
HongApril 10, 2006 at 12:35 pm #250170
Riyad KallaMemberDo you have an xdoclet build file in your project that you are running by chance?
April 10, 2006 at 12:56 pm #250181
hongeclipseMemberNo, I do not see it.
April 10, 2006 at 1:03 pm #250185
Riyad KallaMemberTry 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.
April 10, 2006 at 1:29 pm #250190
hongeclipseMemberI tried restarting using the -clean command line argument. Then I rerun the XDoclet, I still got the same error message.
April 10, 2006 at 2:55 pm #250204
hongeclipseMemberCan anybody help me? I will really appreciate it.
April 10, 2006 at 3:03 pm #250206
Riyad KallaMemberHong,
Some other folks were having a similar problem here: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=56437It looks like it might be source control related. What source control software or plugin are you using?
April 10, 2006 at 4:23 pm #250216
Riyad KallaMemberI 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.htmlI’m sorry for the inconvenience. If you create a new project and run XDoclet on that project, does it work?
April 10, 2006 at 4:44 pm #250219
hongeclipseMemberI 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?April 10, 2006 at 5:49 pm #250225
Riyad KallaMemberYes 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.
-
AuthorPosts
