there is always the wicket servlet you can use instead of the filter.

-igor

On Mon, Nov 17, 2008 at 5:41 AM, moraleslos <[EMAIL PROTECTED]> wrote:
>
> I gave two things a shot and they both don't work.
>
> 1) I changed my context root of my Wicket application to /xyz (instead of
> the default /) and I put an index.html file in my root that looks like this:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
> <title>XYZ</title>
> <meta http-equiv="Refresh" content="0;URL=http://www.xyz.com/xyz";>
> </head>
> </html>
>
> The site reads my index.html properly and redirects, but redirects to a 404
> error page.
>
> 2) I uploaded the entire wicket_in_action_0.9 war file under the context
> root /wicket_in_action.  When I type www.xyz.com/wicket_in_action, I get a
> 404 because it tries to redirect me to www.xyz.com/wicket_in_action/app
> (which is correct since the default index.html file uses the same refresh
> technique but to /app which does not exist).  Now if I type in this
> directly: http://www.xyz.com/wicket_in_action/home, I also get a 404 error.
>
> From the above, it seems to me that the Java hosting site's Tomcat is not
> able to load any Wicket-based app probably due to not being able to
> understand and/or load the Wicket filter defined in the web.xml file.
> Regardless if I have a static default page (index.html) that redirects to a
> Wicket URL will not work.
>
> Any other ideas I may try out before giving up?  Thanks!
>
> -los
>
>
> igor.vaynberg wrote:
>>
>> you just need a file named index.html in your /xyz dir
>>
>> -igor
>>
>> On Sun, Nov 16, 2008 at 5:01 PM, moraleslos <[EMAIL PROTECTED]>
>> wrote:
>>>
>>> Hi,
>>>
>>> Thanks for the reply.  I'm a bit confused on how to write the index.html.
>>> So, let's say my godaddy directory structure looks like this:
>>>
>>> /
>>> /xyz
>>> /xyz/WEB-INF
>>> /xyz/WEB-INF/web.xml
>>> /xyz/WEB-INF/classes/com/xyz/Index.html
>>> /xyz/WEB-INF/classes/com/xyz/Index.class
>>> ...
>>>
>>> In my web.xml looks like this:
>>>
>>> <web-app
>>>        version="2.4"
>>>        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";>
>>>
>>>        <display-name>xyz</display-name>
>>>        <context-param>
>>>                <param-name>configuration</param-name>
>>>                <param-value>deployment</param-value>
>>>        </context-param>
>>>        <filter>
>>>                <filter-name>wicket.xyz</filter-name>
>>>
>>> <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
>>>                <init-param>
>>>                        <param-name>applicationClassName</param-name>
>>>                        <param-value>com.xyz.XyzApplication</param-value>
>>>                </init-param>
>>>        </filter>
>>>        <filter-mapping>
>>>                <filter-name>wicket.xyz</filter-name>
>>>                <url-pattern>/*</url-pattern>
>>>        </filter-mapping>
>>> </web-app>
>>>
>>>
>>> So how do I write the index.html that's going to be in the root directory
>>> to
>>> invoke Wicket's Index.html under /xyz/WEB-INF/classes/com/xyz/Index.html?
>>> Thanks!
>>>
>>> -los
>>>
>>>
>>> Martijn Dashorst wrote:
>>>>
>>>> so your wicket filter would service all requests going to:
>>>>
>>>> http://godaddy.com/myapplication/app
>>>>
>>>> or, you could still keep the filter mapping to /* but redirect to your
>>>> mounted homepage with mount name "home" or something similar.
>>>>
>>>> Martijn
>>>>
>>>> On Mon, Nov 17, 2008 at 1:40 AM, Martijn Dashorst
>>>> <[EMAIL PROTECTED]> wrote:
>>>>> mount the wicket filter under context root app and tell the index.html
>>>>> to redirect to that url with a pragma header.
>>>>>
>>>>> Martijn
>>>>>
>>>>> On Mon, Nov 17, 2008 at 1:10 AM, moraleslos <[EMAIL PROTECTED]>
>>>>> wrote:
>>>>>>
>>>>>> Ok,
>>>>>>
>>>>>> Finally talked to someone at GoDaddy who gave me some advice.  With
>>>>>> their
>>>>>> Java hosting, it seems that they force Tomcat to look for a default
>>>>>> file
>>>>>> (e.g. index.html) at the root directory.  Since I don't have one (all
>>>>>> of
>>>>>> my
>>>>>> files are under WEB-INF/classes/...), I get the 403 error.
>>>>>>
>>>>>> Now here's the question.  How do I write up a default index.html file
>>>>>> and
>>>>>> place this in the root directory such that it will "start" up the
>>>>>> Wicket
>>>>>> filter in the web.xml file and run the Wicket application
>>>>>> appropriately?
>>>>>> Again, my actual Index.html, and hence it's Index.class, is packaged
>>>>>> under
>>>>>> the WEB-INF/classes/... directory.  Thanks!
>>>>>>
>>>>>> -los
>>>>>>
>>>>>>
>>>>>>
>>>>>> Erik van Oosten wrote:
>>>>>>>
>>>>>>> Maybe this helps. I've found that you need to start Tomcat from a
>>>>>>> directory that is writable for the user you are using (no idea why
>>>>>>> though). Besides the application log, you should also check Tomcat's
>>>>>>> log
>>>>>>> files.
>>>>>>>
>>>>>>> Good luck,
>>>>>>>     Erik.
>>>>>>>
>>>>>>> moraleslos wrote:
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I'm running into an issue where my Wicket-based application will
>>>>>>>> absolutely
>>>>>>>> not load in the shared hosting environment.  I'm trying out
>>>>>>>> GoDaddy's
>>>>>>>> Java
>>>>>>>> Web hosting that uses Java 1.5 and Tomcat 5.0.27.  I have this same
>>>>>>>> setup
>>>>>>>> on
>>>>>>>> my box and deploying my Wicket 1.3.4-based application works....
>>>>>>>
>>>>>>> --
>>>>>>> Erik van Oosten
>>>>>>> http://www.day-to-day-stuff.blogspot.com/
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20531825.html
>>>>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Become a Wicket expert, learn from the best: http://wicketinaction.com
>>>>> Apache Wicket 1.3.4 is released
>>>>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Become a Wicket expert, learn from the best: http://wicketinaction.com
>>>> Apache Wicket 1.3.4 is released
>>>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20532223.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20539580.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to