You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by drf <da...@gmail.com> on 2011/05/01 10:44:36 UTC

Running Wicket under WebSphere

We are using WebSphere 6.1, front ended by Apache (IBM HTTP Server)
Our Wicket application uses WicketFilter
When moving our war file from our Eclipse/Jetty environment to Websphere,
WebShpere is not finding the url of the project. However, if we put a static
resource, eg an html file, under the application context root, then
WebSphere WILL find it. If anyone has any ideas how to resolve the issue,
thanks very much.

Our web.xml is defined as follows:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
	 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
	 version="2.4">

	<display-name>pki</display-name>
	<listener>
	
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
	</listener>

	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>classpath:applicationContext.xml</param-value>
	</context-param>
	<filter>
		<filter-name>wicket.pki</filter-name>
 		<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
		<init-param>
			<param-name>applicationClassName</param-name>
		
<param-value>com.drf.hapoalim.gui.application.HapoalimApplication</param-value>
 		</init-param>
 	</filter>
 <filter-mapping>
     <filter-name>wicket.pki</filter-name> 
     <url-pattern>/*</url-pattern>
 </filter-mapping>
</web-app>

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Running-Wicket-under-WebSphere-tp3487476p3487476.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Running Wicket under WebSphere

Posted by Bruno Borges <br...@gmail.com>.
There's no need for an index.jsp / index.html if you enable the property I
mentioned before.

Cheers,

Bruno Borges
www.brunoborges.com.br
+55 21 76727099



On Wed, May 4, 2011 at 4:51 PM, D D <da...@gmail.com> wrote:

> try adding index file under WebContent - make sure that extension
> matches the welcome-file-list element in your deployment descriptor.
>
> you are probably seeing 404 as I was.
>
> Dave
>
> On Tue, May 3, 2011 at 2:56 PM, Bruno Borges <br...@gmail.com>
> wrote:
> > You must enable the
> > *com.ibm.ws.webcontainer.invokefilterscompatibility*property.
> >
> > Check this webpage:
> >
> http://greatwebguy.com/programming/java/urlrewritefilter-servlet-filter-problem-in-websphere-6105-and-greater/
> >
> > Hope this helps.
> >
> > Cheers,
> >
> > *Bruno Borges*
> > www.brunoborges.com.br
> > +55 21 76727099
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Running Wicket under WebSphere

Posted by D D <da...@gmail.com>.
try adding index file under WebContent - make sure that extension
matches the welcome-file-list element in your deployment descriptor.

you are probably seeing 404 as I was.

Dave

On Tue, May 3, 2011 at 2:56 PM, Bruno Borges <br...@gmail.com> wrote:
> You must enable the
> *com.ibm.ws.webcontainer.invokefilterscompatibility*property.
>
> Check this webpage:
> http://greatwebguy.com/programming/java/urlrewritefilter-servlet-filter-problem-in-websphere-6105-and-greater/
>
> Hope this helps.
>
> Cheers,
>
> *Bruno Borges*
> www.brunoborges.com.br
> +55 21 76727099
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Running Wicket under WebSphere

Posted by Bruno Borges <br...@gmail.com>.
You must enable the
*com.ibm.ws.webcontainer.invokefilterscompatibility*property.

Check this webpage:
http://greatwebguy.com/programming/java/urlrewritefilter-servlet-filter-problem-in-websphere-6105-and-greater/

Hope this helps.

Cheers,

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099

Re: Running Wicket under WebSphere

Posted by Clint Checketts <ch...@gmail.com>.
I heard that Webspere gets confused with a filter as the endpoint. Try
WicketServlet. I think there also is a patch for more recent Websphere
versions.

On Sunday, May 1, 2011, drf <da...@gmail.com> wrote:
> I should add that we are using Spring 3, which uses ContextLoaderListener,
> not ContextLoaderServlet
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Running-Wicket-under-WebSphere-tp3487476p3487531.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Running Wicket under WebSphere

Posted by drf <da...@gmail.com>.
I should add that we are using Spring 3, which uses ContextLoaderListener,
not ContextLoaderServlet
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Running-Wicket-under-WebSphere-tp3487476p3487531.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org