|
|
|
|
Welcome to the Java Forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
- have access to post topics
- communicate privately with other members (PM)
- not see advertisements between posts
- have the possibility to earn one of our surprises if you are an active member
- access many other special features that will be introduced later.
Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact us.
|
|

04-09-2008, 01:55 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
no  it doesn't want to work
|
|

04-09-2008, 01:57 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
Hei Lema,
Can You please, brief what error you are getting, While running
this application?
|
|

04-09-2008, 01:58 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
when click on button it gives an error on browser like:
The requested resource (/example/${pageContext.request.contextPath}/LoginServlet.class) is not available.
|
|

04-09-2008, 02:02 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
no toher errors, anywhere
|
|

04-09-2008, 02:02 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
Hei Lema,
Just Change This from your login.jsp "${pageContext.request.contextPath}/LoginServlet.class" to The Url Pattern What you have given for this LoginServlet. Url Pattern Is The Logical Name For Your Servlet. It Will Be Available In Web.xml
|
|

04-09-2008, 02:09 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 2
|
|
Originally Posted by lema
when click on button it gives an error on browser like:
The requested resource (/example/${pageContext.request.contextPath}/LoginServlet.class) is not available.
I dont see any reason why this path should work. This should be LoginSerlvet.java. Check the mapping that you've done.
|
|

04-09-2008, 02:11 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
this is what i have in my web.xml
<servlet>
<servlet-name>LoginServlet</servlet-name>
<servlet-class>smd.server.LoginServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>LoginServlet</servlet-name>
<url-pattern>/application</url-pattern>
</servlet-mapping>
i changed in jsp this:
<..... action="/application/LoginServlet">
error says
The requested resource (/application/LoginServlet) is not available
|
|

04-09-2008, 02:13 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
Lema,
No Need Of /application/LoginServlet, just give /application.
|
|

04-09-2008, 02:17 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
Originally Posted by game
I dont see any reason why this path should work. This should be LoginSerlvet.java. Check the mapping that you've done.
the same happens
|
|

04-09-2008, 02:19 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
This Time What It Gives Errors?
|
|

04-09-2008, 02:20 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
javarishi, i did what u said last, but the same happens, mean error "The requested resource (/application) is not available." appears
|
|

04-09-2008, 02:21 PM
|
 |
Senior Member
|
|
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
|
|
|
lema,
try to use this :
action=yourapp/servlet/ServletName'> // ServletName.class
|
|

04-09-2008, 02:22 PM
|
 |
Senior Member
|
|
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
|
|
|
give this only
<..... action="application/LoginServlet">
|
|

04-09-2008, 02:25 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
Hei Lema,
Try Like This,
"application"
That is without a back slash
|
|

04-09-2008, 02:29 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
for <..... action="application/LoginServlet">
The requested resource (smd/application/LoginServlet.java) is not available.
|
|

04-09-2008, 02:30 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
Hei Lema try with "application"
|
|

04-09-2008, 02:33 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
this is what i get on log when trying the variant from 36thpost (i'm using SmsDeliveryServiceImpl instead of LoginServlet.. )
2008-04-09 17:31:13,267 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/sms-delivery]] Exception while dispatching incoming RPC call
javax.servlet.ServletException: Content-Type must be 'text/plain' with 'charset=utf-8' (or unspecified charset)
at com.google.gwt.user.server.rpc.RemoteServiceServle t.readPayloadAsUtf8(RemoteServiceServlet.java:119)
at com.google.gwt.user.server.rpc.RemoteServiceServle t.doPost(RemoteServiceServlet.java:178)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF ilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationV alve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.inv oke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread .run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:619)
|
|

04-09-2008, 02:35 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
and "The page cannot be displayed" on the browser
|
|

04-09-2008, 02:37 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
i think there is smth wrong in what i wrote there in 19th post.. isn there
|
|

04-09-2008, 02:39 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
can it be cause of this
public class LoginServlet extends RemoteServiceServlet
implements LoginService
{
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
All times are GMT +3. The time now is 10:47 AM.
|
|
VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org