Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





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.

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 04-09-2008, 01:55 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
no it doesn't want to work
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #22 (permalink)  
Old 04-09-2008, 01:57 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Hei Lema,
Can You please, brief what error you are getting, While running
this application?
Bookmark Post in Technorati
Reply With Quote
  #23 (permalink)  
Old 04-09-2008, 01:58 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
when click on button it gives an error on browser like:

The requested resource (/example/${pageContext.request.contextPath}/LoginServlet.class) is not available.
Bookmark Post in Technorati
Reply With Quote
  #24 (permalink)  
Old 04-09-2008, 02:02 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
no toher errors, anywhere
Bookmark Post in Technorati
Reply With Quote
  #25 (permalink)  
Old 04-09-2008, 02:02 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
  #26 (permalink)  
Old 04-09-2008, 02:09 PM
Member
 
Join Date: Apr 2008
Posts: 2
game is on a distinguished road
Quote:
Originally Posted by lema View Post
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.
Bookmark Post in Technorati
Reply With Quote
  #27 (permalink)  
Old 04-09-2008, 02:11 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
  #28 (permalink)  
Old 04-09-2008, 02:13 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Lema,
No Need Of /application/LoginServlet, just give /application.
Bookmark Post in Technorati
Reply With Quote
  #29 (permalink)  
Old 04-09-2008, 02:17 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
Quote:
Originally Posted by game View Post
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
Bookmark Post in Technorati
Reply With Quote
  #30 (permalink)  
Old 04-09-2008, 02:19 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
This Time What It Gives Errors?
Bookmark Post in Technorati
Reply With Quote
  #31 (permalink)  
Old 04-09-2008, 02:20 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
javarishi, i did what u said last, but the same happens, mean error "The requested resource (/application) is not available." appears
Bookmark Post in Technorati
Reply With Quote
  #32 (permalink)  
Old 04-09-2008, 02:21 PM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
sanjeevtarar is on a distinguished road
lema,

try to use this :

action=yourapp/servlet/ServletName'> // ServletName.class
Bookmark Post in Technorati
Reply With Quote
  #33 (permalink)  
Old 04-09-2008, 02:22 PM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
sanjeevtarar is on a distinguished road
give this only

<..... action="application/LoginServlet">
Bookmark Post in Technorati
Reply With Quote
  #34 (permalink)  
Old 04-09-2008, 02:25 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Hei Lema,
Try Like This,

"application"

That is without a back slash
Bookmark Post in Technorati
Reply With Quote
  #35 (permalink)  
Old 04-09-2008, 02:29 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
for <..... action="application/LoginServlet">
The requested resource (smd/application/LoginServlet.java) is not available.
Bookmark Post in Technorati
Reply With Quote
  #36 (permalink)  
Old 04-09-2008, 02:30 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Hei Lema try with "application"
Bookmark Post in Technorati
Reply With Quote
  #37 (permalink)  
Old 04-09-2008, 02:33 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
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)
Bookmark Post in Technorati
Reply With Quote
  #38 (permalink)  
Old 04-09-2008, 02:35 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
and "The page cannot be displayed" on the browser
Bookmark Post in Technorati
Reply With Quote
  #39 (permalink)  
Old 04-09-2008, 02:37 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
i think there is smth wrong in what i wrote there in 19th post.. isn there
Bookmark Post in Technorati
Reply With Quote
  #40 (permalink)  
Old 04-09-2008, 02:39 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
can it be cause of this

public class LoginServlet extends RemoteServiceServlet
implements LoginService
{
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
get data from servlet to html lema Java Servlet 7 05-22-2008 05:00 PM
how to search xml file data based on the given keyword from html form? nicemothi XML 0 04-04-2008 10:36 AM
Getting HTML form values in Servlet Java Tip Java Tips 0 11-17-2007 09:13 PM
How to retrieve data from servlet valery Java Servlet 1 08-06-2007 09:25 PM
how to upload a file along with html form data pranith Java Servlet 3 07-30-2007 03:33 AM


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