(jspf fragment) was not found at expected path - Adding external [message #687563] |
Wed, 22 June 2011 14:35  |
Eclipse User |
|
|
|
Rather than turning off jspf validation, I'd rather try and get WTP to "see" some jsp's that are part of a core web application that is not in my project, but is in the final build.
Yeah, so I've got two builds I do. One is the auto build that Eclipse does, and the other is an Apache Ant script that unpacks a core bunch of files, then follows that step with writing files out of my project. So the resulting build folder has more than what's in my project.
That all works pretty good, except that I get tons of "(jspf fragment) was not found at expected path" errors. Since the core files don't change at all, I would like to set those up somehow so that the jsp validator could "see" them.
In other words, is it possible for me to put the external jsp files somewhere, then configure the jsp validator to recognize that these files, although not in (project)/WEB-INF/web/blahblah (where it expects them), are really in this external location?
--Dale--
|
|
|
|
|
|
|
Re: (jspf fragment) was not found at expected path - Adding external [message #689622 is a reply to message #689536] |
Mon, 27 June 2011 22:29   |
Eclipse User |
|
|
|
On 6/27/2011 3:30 PM, Dale wrote:
> Nitin, Thanks for the reply. I don't mind digging around in a
> configuration file, but there seems to be not enough information from
> what you wrote to guide me.
>
> When I look at that configuration file, there's only 3 bits of info in
> there, and two have to do with a "classes" (Java, not jsp). The only
> other is the context root. It doesn't allow me to put in a fully
> qualified file path the context root. And even if I put the fully
> qualified path directly into the config text file, it still does not see
> the jsp's from the build path.
>
> So could you be more specific about how one would make changes to allow
> the validator to see the external jsp path?
Unfortunately I'm not an expert on how you author that file by hand as
I've only seen it accessed through APIs, and really only know that the
JSP validator will make use of its contents. As you probably saw,
however, multiple paths from the the project can be deployed to the same
location on the server. You might want to do some experimentation with
linked resources (the Advanced section in the New File and New Folder
wizard) and how specifically you can set up the deployment.
--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational
|
|
|
|
|
|
|
Re: (jspf fragment) was not found at expected path - Adding external [message #696415 is a reply to message #696310] |
Wed, 13 July 2011 18:51  |
Eclipse User |
|
|
|
Greg Amerson wrote on Wed, 13 July 2011 12:55edit JSPs that are part of a larger web application that they build against... That's very similar to the problem I'm up against.
Greg Amerson wrote on Wed, 13 July 2011 12:55... I tried your symlink idea and was able to get it to work, however, I don't need those other JSPs deployed as a part of the WTP deployment mechanism. Although it's possible for me to do this too, that's pretty much just pulling these files completely into the project, which I don't want to do, for the deployment and various similar "weight" issues. I looked at the schema referenced above, and there doesn't seem to be a way to get the analyzer to look outside of the context root.
--Dale--
|
|
|
Powered by
FUDForum. Page generated in 0.10123 seconds