|
View:
New views
13 Messages
—
Rating Filter:
Alert me
|
|
|
Tapestry 5 : The requested resource (/login) is not available. error in TomcatDear All,
I would like to mention an issue which i have recently faced and still fighting to resolve, I have developed an application using Tapestry (5.0.10) and finally hosted in newly purchased GoDaddy account. its a deluxe hosting plan and supports JSP/servlet they use Tomcat 5.0.27 version. Although they provide only WEB-INF forlder for us, i mean it's a shared tomcat server and cannot manage the server by ourself, Tomcat will be restarted everyday by them. Once we uploaded the content it will be available once tomcat restarted by them. After uploading the my .war file, it will exploded correctly, but after accessing the URL it reports As they say, after exploding the .war file it should be worked properly and do not need any special configs HTTP Status 404 - /login type Status report message /login description The requested resource (/login) is not available. Apache Tomcat/5.0.27 This application is works fine in localhost and other networks under same Tomcat version. I have attached a screen shot of my home directory's file structure and i have not done any special configurations than Tapestry 5 default configs, following is the web.xml file <?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2007 The Apache Software Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>valuator Tapestry 5 Application</display-name> <context-param> <!-- The only significant configuration for Tapestry 5, this informs Tapestry of where to look for pages, components and mixins. --> <param-name>tapestry.app-package</param-name> <param-value>com.dsm.web</param-value> </context-param> <filter> <filter-name>app</filter-name> <filter-class>org.apache.tapestry.TapestryFilter</filter-class> </filter> <filter-mapping> <filter-name>app</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <listener> <listener-class> com.dsm.web.services.SessionExpirationListener </listener-class> </listener> <session-config> <session-timeout>30</session-timeout> </session-config> </web-app> please help me on this issue... thanks a lot filemanager-view.JPG |
|
|
Re: Tapestry 5 : The requested resource (/login) is not available. error in TomcatEm Tue, 07 Oct 2008 11:00:29 -0300, LakshithaS <lakyboy1@...>
escreveu: > HTTP Status 404 - /login > > type Status report > > message /login > > description The requested resource (/login) is not available. > Apache Tomcat/5.0.27 Check your logs. It looks like your application was not started successfully. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor Consultor, desenvolvedor e instrutor em Java http://www.arsmachina.com.br/thiago --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
T5: select updating in form?I have a select dropdown that will determine what is displayed in a second dropdown. Both of these are in a form. Am I correct in thinking that this cannot be done using Zones (I seem to recall a recent posting that said it was not possible if it's inside a form). In that case, how can I do it? I have looked on the wiki howtos but can't seem to find any examples. thanks, p. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Tapestry 5 : The requested resource (/login) is not available. error in TomcatSome hosting companies that allow you to run servlets do not allow/don't
give you resources for using higher end web frameworks, such as Tapestry, Spring, etc. Some explicitly forbid apps that use Hibernate. In these cases, you are stuck with very basic JSPs. You may want to check and make sure they are giving you enough RAM, etc. On Tue, Oct 7, 2008 at 10:04 AM, Thiago H. de Paula Figueiredo < thiagohp@...> wrote: > Em Tue, 07 Oct 2008 11:00:29 -0300, LakshithaS <lakyboy1@...> > escreveu: > > HTTP Status 404 - /login >> >> type Status report >> >> message /login >> >> description The requested resource (/login) is not available. >> Apache Tomcat/5.0.27 >> > > Check your logs. It looks like your application was not started > successfully. > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > Consultor, desenvolvedor e instrutor em Java > http://www.arsmachina.com.br/thiago > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > |
|
|
Re: Tapestry 5 : The requested resource (/login) is not available. error in TomcatYeah,, I also thought that, I will contact them and find out about their supporting Tapestry and all. Actually they only mention the Tomcat server and JSP/Servlet support. So better to check the server logs also, ill check with them
Thank you all for your ideas.... :) Cheers
|
|
|
Re: T5: select updating in form?Anyone?
Quoting photos@...: > > I have a select dropdown that will determine what is displayed in a > second dropdown. Both of these are in a form. > > Am I correct in thinking that this cannot be done using Zones (I seem > to recall a recent posting that said it was not possible if it's > inside a form). > > In that case, how can I do it? I have looked on the wiki howtos but > can't seem to find any examples. > > thanks, > p. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: T5: select updating in form?Do a form submit upon selecting something in the first dropdown, then
render the second dropdown according to the selection made. And vote for https://issues.apache.org/jira/browse/TAP5-138. Uli Am Mi, 8.10.2008, 09:39, schrieb photos@...: > Anyone? > > > Quoting photos@...: > >> >> I have a select dropdown that will determine what is displayed in a >> second dropdown. Both of these are in a form. >> >> Am I correct in thinking that this cannot be done using Zones (I seem >> to recall a recent posting that said it was not possible if it's >> inside a form). >> >> In that case, how can I do it? I have looked on the wiki howtos but >> can't seem to find any examples. >> >> thanks, >> p. >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@... >> For additional commands, e-mail: users-help@... > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: T5: select updating in form?Quoting Ulrich Stärk <uli@...>:
> Do a form submit upon selecting something in the first dropdown, then > render the second dropdown according to the selection made. And vote for > https://issues.apache.org/jira/browse/TAP5-138. Thanks, but I must be doing something wrong as I cannot get this to work (ignore the fact I have only one select dropdown on here for now): <form t:type="form"> Name Space: <select onchange="javascript:this.form.submit();" t:id="tagSelect" t:type="select" t:model="nsBases" t:value="nsBase" t:encoder="nsBases" t:blankOption="NEVER"></select> <input type="submit" value="Search"/> </form> void onSelectedFromTagSelect() { System.out.println("*******************************"); } How can I tell the submit comes from the select? I thought this would have worked but...? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: T5: select updating in form?Further to this, I can see it can be done using two forms, but that isn't very nice. As this is such a common requirement (and one that I used without problems in an application using Tapestry 3) I am somewhat surprised that there are no examples offered as to how to do this in Tapestry 5. Further information would be much appreciated. thanks, p. Quoting photos@...: > Quoting Ulrich Stärk <uli@...>: > >> Do a form submit upon selecting something in the first dropdown, then >> render the second dropdown according to the selection made. And vote for >> https://issues.apache.org/jira/browse/TAP5-138. > > > Thanks, but I must be doing something wrong as I cannot get this to > work (ignore the fact I have only one select dropdown on here for now): > > > <form t:type="form"> > Name Space: <select onchange="javascript:this.form.submit();" > t:id="tagSelect" t:type="select" t:model="nsBases" t:value="nsBase" > t:encoder="nsBases" t:blankOption="NEVER"></select> > <input type="submit" value="Search"/> > > </form> > > > > void onSelectedFromTagSelect() > { > System.out.println("*******************************"); > } > > > How can I tell the submit comes from the select? I thought this would > have worked but...? > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: T5: select updating in form?Come on, you could really invest some mental effort instead of asking us
to do your work... It's not working out of the box, that much is clear. But you don't have to use two forms either... <t:form> <t:select model="values" value="value" t:id="select" onchange="this.form.submit()" /> <t:if test="value"> <t:select model="strings" value="anotherValue" /> </t:if> </t:form> @Property private String[] values = { "foo", "bar" }; private String[] fooStrings = { "foo1", "foo2", "foo3" }; private String[] barStrings = { "bar1", "bar2", "bar3" }; @Persist @Property private String value; @Persist @Property private String anotherValue; public String[] getStrings() { if (value == null) return null; if (value.equals("foo")) return fooStrings; if (value.equals("bar")) return barStrings; return null; } public void onSubmitFromForm() { System.out.println("user selected " + value + " and " + anotherValue); if(value != null && anotherValue != null) ; //do something } Uli Am Mi, 8.10.2008, 14:36, schrieb photos@...: > > Further to this, I can see it can be done using two forms, but that > isn't very nice. > > As this is such a common requirement (and one that I used without > problems in an application using Tapestry 3) I am somewhat surprised > that there are no examples offered as to how to do this in Tapestry 5. > > Further information would be much appreciated. > > thanks, > p. > > > Quoting photos@...: > >> Quoting Ulrich Stärk <uli@...>: >> >>> Do a form submit upon selecting something in the first dropdown, then >>> render the second dropdown according to the selection made. And vote >>> for >>> https://issues.apache.org/jira/browse/TAP5-138. >> >> >> Thanks, but I must be doing something wrong as I cannot get this to >> work (ignore the fact I have only one select dropdown on here for now): >> >> >> <form t:type="form"> >> Name Space: <select onchange="javascript:this.form.submit();" >> t:id="tagSelect" t:type="select" t:model="nsBases" t:value="nsBase" >> t:encoder="nsBases" t:blankOption="NEVER"></select> >> <input type="submit" value="Search"/> >> >> </form> >> >> >> >> void onSelectedFromTagSelect() >> { >> System.out.println("*******************************"); >> } >> >> >> How can I tell the submit comes from the select? I thought this would >> have worked but...? >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@... >> For additional commands, e-mail: users-help@... > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: T5: select updating in form?Quoting Ulrich Stärk <uli@...>:
> Come on, you could really invest some mental effort instead of asking us > to do your work... It's not working out of the box, that much is clear. > But you don't have to use two forms either... Thanks for the example Uli. Contrary to what you may think, I did you my brain. However, when I get stuck and a solution doesn't seem obvious and there are no examples to be found and I've spent a day on the problem then I have to resort to asking on this list (which is one of its purposes - or, at least, I thought so). Your help much appreciated, p. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: T5: select updating in form?I've never tried to do this on my own yet, but I'm just wondering : is it
hard to step outside of T5 as a framework and do the same w/ just plain AJAX (e.g. an XHR request through prototype, JSON coming back and populating the second select with the right values) ? Or would this somehow mess up the state of the form ? Cheers, Alex Kotchnev On Wed, Oct 8, 2008 at 10:03 AM, <photos@...> wrote: > Quoting Ulrich Stärk <uli@...>: > > Come on, you could really invest some mental effort instead of asking us >> to do your work... It's not working out of the box, that much is clear. >> But you don't have to use two forms either... >> > > > Thanks for the example Uli. Contrary to what you may think, I did you my > brain. However, when I get stuck and a solution doesn't seem obvious and > there are no examples to be found and I've spent a day on the problem then I > have to resort to asking on this list (which is one of its purposes - or, at > least, I thought so). > > Your help much appreciated, > p. > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > |
|
|
Re: T5: select updating in form?Em Wed, 08 Oct 2008 16:09:22 -0300, Alex Kotchnev <akochnev@...>
escreveu: > I've never tried to do this on my own yet, but I'm just wondering : is it > hard to step outside of T5 as a framework and do the same w/ just plain > AJAX (e.g. an XHR request through prototype, JSON coming back and > populating the second select with the right values) ? You could try t5components' OnEvent mixin: http://87.193.218.134:8080/t5c-demo/oneventpage > Or would this somehow mess up the > state of the form ? I don't think so, as you're not changing its structure, just its data, and form data will be changed by the user anyways. :) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor Consultor, desenvolvedor e instrutor em Java http://www.arsmachina.com.br/thiago --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free Forum Powered by Nabble | Forum Help |