tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kalai selvan <ksel...@yantri.com>
Subject Illeagal Argument Exception - Cookies -JSP Page
Date Tue, 02 Jan 2001 09:42:35 GMT
I am developing a small Demo WAP Application.
My WML page is generated by the following JSP Page.

My JSP Page


          <?xml version="1.0"?>
          <!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN"
          "http://www.phone.com/dtd/wml11.dtd">

          <%@ page import="javax.servlet.http.HttpSession" %>
          <%@ page language="java" %>
          <%@ page contentType="text/vnd.wap.wml;charset=ISO-8859-1" %>

          <wml>
          <!-- THIS IS THE FIRST CARD IN THE DECK -->
          <card id="Card1" title="Welcome">
           <p align="center">
            <img src="Yantrilogo.wbmp" alt="Can not display Image"/><br/>
            <b><big>Welcome</big></b>
            <br/>(c)  Yantri Enterprise Solutions Pvt Ltd
            <do type="accept" label="Login">
             <go href="#auth"/>
            </do>
           </p>
          </card>

          <!-- user authentication card -->
          <card id="auth" title="Authentication">
              <p align="center">User Authentication</p>
                  <p align="left">
                          <fieldset id="fs1" title="name">
                                  login <input name="login" type="text"/>
                                  password <input name="pwd" type="password"/>

                                  <do type="accept">
                                   <go
href="validateUser.jsp?lname=$(login)&#38;passwd=$(pwd)#38"/>
                 >
                                  </do>
                          </fieldset>
                  </p>
          </card>
          </wml>


Problem:


          When i execute the page, the JSESSIONID=190383948 is being set. This
inturn stops further executing
          any JSP page.
          I just don't understand why this? And it is important before it was
working fine, and i don't understand
          what is the mistaike i did.


Env:

                 Wap  Browser     - WInWAP Pro 3.0
                 Tomcat Web Server


Please kindly some one help me in getting out of this problem.

Note: Actually, i didnot mention anywhre/ no code is written to set the cookie
or session. How come this happen
suudenly?!!!@@@@

Errorr Looklike:

     Context log: path="/examples" <b>Internal Servlet Error:</b><br>
     <pre>
     java.lang.IllegalArgumentException: Cookie name Path is a reserved token
      at javax.servlet.http.Cookie.<init>(Cookie.java:185)
      at
org.apache.tomcat.util.RequestUtil.processCookies(RequestUtil.java:187)
      at org.apache.tomcat.core.RequestImpl.getCookies(RequestImpl.java:379)
      at
org.apache.tomcat.request.SessionInterceptor.requestMap(SessionInterceptor.java:101)

      at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:594)
      at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:552)
      at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)

      at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
      at java.lang.Thread.run(Unknown Source)
     </pre>


Thanks in advance
kalaiselvan
software engineer




Mime
View raw message