Tomcat 4 NT Service

2002-03-26 Thread Karthik Gopal

Hi ,
Where can I find the jk_nt_service.exe for Tomcat 4?

Or can I reuse any older version of this exe.

Thankx
Karthik

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Logout Failure - Tomcat 4.0

2002-03-20 Thread Karthik Gopal

Hi,

I have simple application, which has a logout feature in it's pages.
The logout servlet gets the session object from request, and passes the
session id to the CtrSessionEnd.
This class has a list of active sessions, it goes through the list checking
if the session id sent is equal to
the session id of the session in the list.
This exception occurs when I try to get the session id of the session in the
list.


java.lang.NullPointerException
 at
org.apache.tomcat.facade.HttpSessionFacade.getId(HttpSessionFacade.java:114)
 at
com.art.controller.CtrSessionEnd.invalidateSession(CtrSessionEnd.java:259)
 at LogoutServlet.doGet(LogoutServlet.java:73)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Unknown Source)


Any pointers to solve this problem.

regards,
Karthik

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Switching on UTF-8 Encoding

2002-02-07 Thread Karthik Gopal

Hi Tony,

The issue maybe in these places:

1. Request object
- Jeff has covered the issue.

2. Database I/O
- You have find out what type of Unicode encoding does the Database
support. (UTF-8 or UCS-2).
   If it is UCS-2 then you have convert the data into UTF-8 at the java
end.

3. The JSP's encoding should set as UTF-8. As mentioned by Jeff.
Moreover the browser should have access to the appropriate fonts to show
the data.


Regards,
Karthik

- Original Message -
From: "Antony Stace" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 8:33 AM
Subject: Re: Switching on UTF-8 Encoding


> Thanks Jeff, Timothy, Craig for your replies.
>
> I have a situation where I have a form which is UTF-8 format.  In the
servlet(I am acutally using struts)
> when I am processing a user request I use
>
>
> name = userForm.getName();  file://Struts saves the information from a
form in a Bean
> name = new String(name.getBytes(),"UTF-8");
>
> I can then save the name value in a database without problems.
>
> I then use the contents of the Bean to write output in a jsp file but I
get garbage.
> Does this mean that the format of the data in the Bean is incorrect?
Should the
> values in this bean be written in a different format?
>
> If it is any use, I printed out the request and response encoding to a log
file in the servlet,
>
>  request.getCharacterEncoding()  = null
>  response.getCharacterEncoding() = ISO-8859-1
>
>
> Cheers
>
> Tony
>
>
> On Thu, 7 Feb 2002 08:59:53 -0600
> [EMAIL PROTECTED] wrote:
>
> >
> >  You can use <%@ page contentType="text/html;charset=UTF-8" %> in the
JSP or
> > alternatively include the  tag in your HTML.  This will tell the browser to use the
UTF-8
> > Encoding.
> >
> > Then when getting the requests, you can do a
request.setCharacterEncoding
> > ("UTF-8") before getting anything from the request to allow you to read
in
> > parameters as UTF-8.  You could also try just reading in the parameters
> > without setting that, and then doing param.getBytes("UTF-8").
> >
> > I've been struggling with some encoding issues for a little while now,
but I
> > have it working, so if you have any other questions, please feel free to
email
> > me and I'll see if I can help.
> >
> > Good luck,
> > -Jeff
> >
> >
> >
> >
> > Antony Stace
> >  > hoo.com> cc:
> >  Subject: Switching on UTF-8
Encoding
> > 02/07/02
> > 07:45 AM
> > Please
> > respond to
> > "Tomcat Users
> > List"
> >
> >
> >
> >
> >
> >
> > Hi
> >
> > What do I need to do so that data returned from Tomcat 4 is returned in
UTF-8
> > encoding to a requesting browser and
> > requests received are read as UTF-8.
> >
> > --
> >
> >
> > Cheers
> >
> > Tony。
> > -
> >
> >
> > _
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
> >
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
>
>
> --
>
>
> Cheers
>
> Tony。
> -
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




NT Service Problem

2001-09-04 Thread Karthik Gopal

Hi,
I installed Tomcat as an NT Service in a Win2k Server.
While am logged in the Server as an Administrator.
Whenever the administrator logs off the server the Tomcat service stops.
Am using JRE1.3 as the java package.
I think this maybe a bug with JRE1.3. As the problem doesn't arise
if I use JRE1.2.2.

Any help to solve this problem will be appreciated.

Thankx,
Karthik



Re: charset problem

2001-08-27 Thread Karthik Gopal

For the browser to show the characters you will have to install the
appropriate fonts.

On the server side, one can get the data by this simple method.

value = request.getParameter(name);
value = new String(value.getBytes("8859_1"), "8859_7");

For the list of supported character sets please refer:
http://java.sun.com/products/jdk/1.1/docs/guide/intl/encoding.doc.html

karthik


- Original Message -
From: "Sibi Joseph" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 6:50 AM
Subject: Re: charset problem


> hi Giannis
>
> I have the same problem .. pls let me know if u get any solutions
> for the same..
>
> Thanks in advance
> sibi
>
>
> - Original Message -
> From: "Giannis" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, August 27, 2001 4:45 AM
> Subject: charset problem
>
>
> > I make some JSP pages on Jacarta tomcat.
> > I have problem with the character set.
> > I use content type ISO-8859-7 but the server doesnt appear the
characters
> > (it appear ?) even if  I use a META tag or a
> > page directive for the contentType.
> > The problem is especially on request.getParameter when I submit a form.
> > Please help
>
>