Illeagal Argument Exception - Cookies -JSP Page
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/ bbigWelcome/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" bInternal Servlet Error:/bbr 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: CLASSPATH trouble
Hi! This is very usual problem. In general , CLASSPATH is refer to the set of classes. say, it could be set to /Lib direcotry or where your *.Jar(set of class files required by the application is in compressed form) fiels are kept. In tomcat, you can test your classes putting under the following directory: /tomcat/webapps/examples/web-inf/classes if you havc packaged all the classess under one package name, say Demo keep the class files under the directory /tomcat/webapps/examples/web-inf/classess/demo rgds kalaiselvan "Dustin M. Hawley" wrote: Greetings - This is my first mail to the list so I hope I don't offend. I am running Tomcat 3.2 under Windows NT 4.0 and I am having trouble running JSP pages that use Java classes. I get a 500 error (Internal Servlet error) when trying to load them. First of all, tomcat.bat is not building CLASSPATH dynamically as it should. After Tomcat is running if I check CLASSPATH by typing "echo %CLASSPATH%" at the command line I get no results. I have tried creating TOMCAT_HOME\classes and putting the classes there with no luck. Also, in the test tree there are a few JSP documents that use classes that do not function either. I have also tried setting CLASSPATH staticly myself which does not work either. This leaves me to wonder if CLASSPATH is the right variable or if it is even being checked by Tomcat at any time. Basically, I just need to know where to put my classes and what I need to do to get Tomcat to see them. Everything else under Tomcat seems to be okay. Thanks in advance, Dustin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: bug report
This is nothing to do with Tomcat. Actually, the classpath can't be set for a name having a space in it.i.,e C:\Program Files\Demo Kits1.2.3 That's all. regds kalaiselvan software engineer Vincent Chen wrote: Hi, I wanna to run tomcat as NT service, so I download jk_nt_service.exe and update wrapper.properties as stated in the document (NT-Service.-howto.html). My JDK is installed in e:/Program Files/JavaSoft/jdk1.3, and when I start Jakarta service, it shows error in log file: java.lang.NoClassDefFoundError: Files\JavaSoft\jdk1/3\bin\java/exe After I remove JDK from e:/Program Files/JavaSoft/jdk1.3 to e:/jdk, it works. Does this imply jk_nt_service.exe does not handle long file name with space correct? Thank you for all your work. Sincerely Yours, Vincent Chen ]}^ eServiceRealm Technology]U^ +886-919541425 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]