Hi Justin,

Thanks for the info. I have a sneaking suspicion that the "Advanced Dispatch
Filter" (see web.xml) filter is what is causing your issues. Can you try
disabling it to see if that fixes the issue?

Other then that your config looks ok but I am no expert when it comes to
spring mvc either.

-Justin

On Mon, Feb 28, 2011 at 10:25 AM, Ray, Justin A. <[email protected]>wrote:

> Justin,
>
>
>
> Thanks for the reply.
>
>
>
> Yes, unfortunately, it does need to be contained within the same webapp.  I
> did see a post before about someone wanting to serve dynamic
>
> content out of the data directory and your recommendation was to host a
> separate webapp.
>
>
>
> It would be something simple.  In fact, the resource really only exists to
> forward to the JSP.  So if there is a simpler way to map a JSP I could use
> that instead.  Apologies, I’m new to Spring MVC.
>
>
>
> Here are some details of my configuration:
>
>
>
> Example  Call:
>
> http://.../geoserver/myCustomResource
>
>
>
> that would hit a custom spring controller mapped in an
> applicationContext.xml file
>
>
>
> <prop key=”/myCustomResource”>myControllerId</prop>
>
> <prop key=”/myCustomResource/**”> myControllerId </prop>
>
>
>
> And forwarding to a JSP found in WEB-INF also configured in an
> applicationContext.xml
>
> <bean id=”myCustomViewResolver” class=”…InternalResourceViewResolver”>
>
>                 <property name=”prefix” value=”/WEB-INF/jsp/” />
>
>                 <property name=”suffix” value=”.jsp” />
>
> </bean>
>
>
>
> Thanks again,
>
> Justin
>
>
>
> *From:* Justin Deoliveira [mailto:[email protected]]
> *Sent:* Monday, February 28, 2011 10:10 AM
> *To:* Ray, Justin A.
> *Cc:* [email protected]
> *Subject:* Re: [Geoserver-users] Problem adding a custom JSP
>
>
>
> What is the url you are hitting your custom webapp at? I would not be
> surprised at all if there was something in place that was throwing off your
> webapp as I don't think geoserver is extended in this way very often. Do you
> need to be running within the same webapp as geoserver, as opposed to a
> different app in the same container.
>
> On Mon, Feb 28, 2011 at 6:57 AM, Ray, Justin A. <[email protected]>
> wrote:
>
> Hi all,
>
>
>
> I am trying to add to add a new web resource on top of a base geoserver
> webapp.  I have added a custom URL mapping in an applicationContext.xml
> file.  I can get my Spring MVC controller to call, but every time I try to
> forward to my view (Either directly via forward or with a Spring
> ViewResolver), the request contains the geoserver webapp name.  I have
> configured the ViewResolver just like several examples on the web, so my
> guess is this is some type of filter or mangler in geoserver modifying the
> forward.
>
>
>
> Here is the error I am getting.
>
> 404 (Not Found):
>
> RequestURI=/geoserver/WEB-INF/jsp/myView.jsp
>
>
>
> Any help would be greatly appreciated.
>
>
>
> Thanks in advance,
>
> Justin
>
>
>
>
>
> ------------------------------------------------------------------------------
> Free Software Download: Index, Search & Analyze Logs and other IT data in
> Real-Time with Splunk. Collect, index and harness all the fast moving IT
> data
> generated by your applications, servers and devices whether physical,
> virtual
> or in the cloud. Deliver compliance at lower cost and gain new business
> insights. http://p.sf.net/sfu/splunk-dev2dev
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
>
>
> --
> Justin Deoliveira
>
> OpenGeo - http://opengeo.org
>
> Enterprise support for open source geospatial.
>
>
>



-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to