You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Vika <Vi...@nasa.gov> on 2009/02/07 00:25:54 UTC
problem deploying quickstart application on tomcat+apache (mod_jk)
Hi,
I have no problem running quickstart in eclipse on jetty. However having
problem deploying it on tomcat/apache. Here are the steps I followed:
1. Modified build.xml - changed wicket-quickstart to quickstart
2. ran ant war and dropped quickstart.war file into ~tomcat/webapps
3. added to mod_jk the following
###################################################
Alias /quickstart "/usr/local/tomcat/webapps/quickstart"
<Directory "/usr/local/tomcat/webapps/quickstart">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>
JkMount /quickstart/app/* ajp13
ErrorLog logs/quickstart-error_log
TransferLog logs/quickstart-access_log
########################################
4. after restarting tomcat and apache i went to this url in web browser
http://<my domain>/quickstart
and got redirected to
http://<my domain>/quickstart/app
and got a message
"The requested URL /quickstart/app was not found on this server."
I have several other project with servlets running on the same instance of
tomcat/apache. Any idea what i might be missing with wicket quickstart?
thank you in advance!
Vicky
--
View this message in context: http://www.nabble.com/problem-deploying-quickstart-application-on-tomcat%2Bapache-%28mod_jk%29-tp21882831p21882831.html
Sent from the Wicket - User 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: problem deploying quickstart application on tomcat+apache
(mod_jk)
Posted by Vika <Vi...@nasa.gov>.
Thank you!
I switched to Filter and the problem is gone - Now it works with JkMount
/quickstart/app/* ajp13
Vicky
Erik van Oosten wrote:
>
> Only requests that start with /quickstart are directed to Tomcat.
> Only requests that start with /quickstart/app are directed to Wicket.
>
> BTW, it is recommended to use Wicket from a Filter instead of a Servlet.
>
> Regards,
> Erik.
>
>
> Vika wrote
>> I discovered that if in mod_jk.conf i change
>>
>> JkMount /quickstart/app/* ajp13
>>
>> to
>>
>> JkMount /quickstart/* ajp13
>>
>> it works.
>>
>> Servlet mapping in web.xml :
>>
>> <servlet-mapping>
>> <servlet-name>quickstart</servlet-name>
>> <url-pattern>/app/*</url-pattern>
>> </servlet-mapping>
>>
>> Any idea how I can solve this problem ? I wouldn't want all requests to
>> be
>> directed to tomcat.
>>
>> Thanks
>>
>> Vicky
>>
>>
>
>
> --
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/problem-deploying-quickstart-application-on-tomcat%2Bapache-%28mod_jk%29-tp21882831p21922299.html
Sent from the Wicket - User 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: problem deploying quickstart application on tomcat+apache (mod_jk)
Posted by Erik van Oosten <e....@grons.nl>.
Only requests that start with /quickstart are directed to Tomcat.
Only requests that start with /quickstart/app are directed to Wicket.
BTW, it is recommended to use Wicket from a Filter instead of a Servlet.
Regards,
Erik.
Vika wrote
> I discovered that if in mod_jk.conf i change
>
> JkMount /quickstart/app/* ajp13
>
> to
>
> JkMount /quickstart/* ajp13
>
> it works.
>
> Servlet mapping in web.xml :
>
> <servlet-mapping>
> <servlet-name>quickstart</servlet-name>
> <url-pattern>/app/*</url-pattern>
> </servlet-mapping>
>
> Any idea how I can solve this problem ? I wouldn't want all requests to be
> directed to tomcat.
>
> Thanks
>
> Vicky
>
>
--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: problem deploying quickstart application on tomcat+apache
(mod_jk)
Posted by Vika <Vi...@nasa.gov>.
I discovered that if in mod_jk.conf i change
JkMount /quickstart/app/* ajp13
to
JkMount /quickstart/* ajp13
it works.
Servlet mapping in web.xml :
<servlet-mapping>
<servlet-name>quickstart</servlet-name>
<url-pattern>/app/*</url-pattern>
</servlet-mapping>
Any idea how I can solve this problem ? I wouldn't want all requests to be
directed to tomcat.
Thanks
Vicky
--
View this message in context: http://www.nabble.com/problem-deploying-quickstart-application-on-tomcat%2Bapache-%28mod_jk%29-tp21882831p21916488.html
Sent from the Wicket - User 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