java.lang.OutOfMemoryError: Java heap space

2004-11-24 Thread Lee Chin Khiong

ERROR : java.lang.OutOfMemoryError: Java heap space. What is this ?



RE: java.lang.OutOfMemoryError: Java heap space

2004-11-24 Thread Lee Chin Khiong
How to solve this ?

-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 25, 2004 11:39 AM
To: Tomcat Users List
Subject: Re: java.lang.OutOfMemoryError: Java heap space


It's an error message telling you that your JVM has run out of memory.


On Wed, 2004-11-24 at 22:34, Lee Chin Khiong wrote:
 ERROR : java.lang.OutOfMemoryError: Java heap space. What is this ?
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: java.lang.OutOfMemoryError: Java heap space

2004-11-24 Thread Lee Chin Khiong

I'm using Tomcat 5, jdk1.5, running XP.
This happen after a while and I didn't configure the memory, it's default.


-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 25, 2004 12:09 PM
To: Tomcat Users List
Subject: RE: java.lang.OutOfMemoryError: Java heap space


You're not giving us much to work with.

What version of Tomcat are you running?
What JVM are you using?
What OS are you running on?
Does this happen at startup, after an hour, after a month?
Have you configured the memory settings for tomcat?
If so, what are they?
Is there more to this stack trace than you're sharing with us?

Here's a page in the Tomcat documentation that deals with memory:
http://jakarta.apache.org/tomcat/faq/memory.html

Hope it helps.

-Ben




On Wed, 2004-11-24 at 23:01, Lee Chin Khiong wrote:
 How to solve this ?
 
 -Original Message-
 From: Ben Souther [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 25, 2004 11:39 AM
 To: Tomcat Users List
 Subject: Re: java.lang.OutOfMemoryError: Java heap space
 
 
 It's an error message telling you that your JVM has run out of memory.
 
 
 On Wed, 2004-11-24 at 22:34, Lee Chin Khiong wrote:
  ERROR : java.lang.OutOfMemoryError: Java heap space. What is this ?
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How to disable directory listing

2004-11-23 Thread Lee Chin Khiong

How to disable directory listing under Tomcat 5 ?


How to disable directory listing ???

2004-11-23 Thread Lee Chin Khiong

How to disable directory listing under Tomcat 5 or Apache 2  ???


RE: How to disable directory listing

2004-11-23 Thread Lee Chin Khiong

Is there any better way to configure Tomcat 5 to no Directory listing just
like IIS ?

-Original Message-
From: Quinton Delpeche [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 2:19 PM
To: [EMAIL PROTECTED]
Subject: Re: How to disable directory listing


On Wednesday 24 November 2004 08:09, Lee Chin Khiong wrote:
 How to disable directory listing under Tomcat 5 ?

I use a blank index.html file and put it in all the directories that I don't

want to have listed. :)

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

All snakes who wish to remain in Ireland will please raise their right
hands.
-- Saint Patrick


RE: How to disable directory listing

2004-11-23 Thread Lee Chin Khiong
Thanks. But what about certain directory ?

-Original Message-
From: Carl Olivier [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 3:00 PM
To: Tomcat Users List
Subject: RE: How to disable directory listing


Yes there is.

In the $CATALINA_HOME/conf/web.xml

Change the init paramter listings to false see below:

init-param
param-namelistings/param-name
param-valuefalse/param-value
/init-param 

Regards,

Carl

-Original Message-
From: Lee Chin Khiong [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 24, 2004 8:29 AM
To: 'Tomcat Users List'
Subject: RE: How to disable directory listing


Is there any better way to configure Tomcat 5 to no Directory listing just
like IIS ?

-Original Message-
From: Quinton Delpeche [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 2:19 PM
To: [EMAIL PROTECTED]
Subject: Re: How to disable directory listing


On Wednesday 24 November 2004 08:09, Lee Chin Khiong wrote:
 How to disable directory listing under Tomcat 5 ?

I use a blank index.html file and put it in all the directories that I don't

want to have listed. :)

Q
--
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

All snakes who wish to remain in Ireland will please raise their right
hands.
-- Saint Patrick

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How to validate a session created on one server

2004-11-22 Thread Lee Chin Khiong

How to validate a session created on one server ?

Means if I have an apps running on 1st server then another apps runnning on
the other server, of course I don't want them to re-login.

Any idea ?


RE: How to validate a session created on one server

2004-11-22 Thread Lee Chin Khiong
How to use clustering.

-Original Message-
From: Peter Johnson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 1:55 PM
To: Tomcat Users List
Subject: Re: How to validate a session created on one server


Use clustering.

Lee Chin Khiong wrote:

How to validate a session created on one server ?

Means if I have an apps running on 1st server then another apps runnning on
the other server, of course I don't want them to re-login.

Any idea ?

  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


connection pool docu

2004-07-29 Thread Lee Chin Khiong

Is the example in tomcat site document works ? 

I do what it say but not working, especially the taglib?

Anybody knows what problem ?

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

org.apache.jasper.JasperException: The absolute uri:
http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or
the jar files deployed with this application

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
java:50)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409
)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:118
)

org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibrary
InfoImpl.java:316)

org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java
:147)

org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:22
0)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
11)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
95)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)






Tomcat Administration

2004-04-16 Thread Lee Chin Khiong

Can't login into tomcat administration. /admin/. not found. why ?


How to format number

2003-10-06 Thread Lee Chin Khiong
How to format a double in JSP or java ?

for example :

10/3=3.3

I want to format it to 3.33.



RE: How can I run tomcat on port 8080 and have the users think it's on port 80?

2003-06-09 Thread Lee Chin Khiong

But this site doesn't contain any detail configuration.


-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 10:57 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: How can I run tomcat on port 8080 and have the users think
it's on port 80?


Forget mod_rewrite.  You just have to use the AJP Connector that is supplied
with Tomcat to connect it to Apache and have apache work on port  80.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html

Surf about a bit to find the correct version for you if you are not running
Tomcat 4.0.

If there is something preventing you from using this connector tell the list
about it and we'll see what we can do ;-)

Enjoy,

Andoni.

- Original Message -
From: Michael Mattox [EMAIL PROTECTED]
To: Xavier Ambrosioni [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 2:34 PM
Subject: RE: How can I run tomcat on port 8080 and have the users think it's
on port 80?


 We have this working for incoming requests, the problem we're having is
the
 website uses relative links.  Since tomcat is running on port 8080, a
 relative link has port 8080 in it.  Apparently Apache isn't rewriting this
 before it's sent back to the client, and port 8080 shows up in the
client's
 browser.

 Is Apache's mod_rewrite supposed to handle this?  Perhaps we haven't set
it
 up properly??

 Thanks,
 Michael


  -Original Message-
  From: Xavier Ambrosioni [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 06, 2003 2:17 PM
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Subject: Re: How can I run tomcat on port 8080 and have the users think
  it's on port 80?
 
 
  You can use the mod_rewrite module in apache to rewrite and redirect URL
  from port 80 to port 8080.
  With this module, apache can be used as a proxy that only redirect urls
  to the right port.
 
 
  Xavier
 
 
 
  [EMAIL PROTECTED] wrote:
  
   I'd like to run Tomcat on port 80 but I don't want to run it as
  root.  Is it
   possible to run it on 8080 yet have the users access it via port 80?
My
   admin has set it up this way but the problem is all relative
  links in my app
   show up as :8080.  So once the user clicks on a link they see
  8080 from then
   on.
  
   Thanks,
   Michael Mattox
  
   --
   This E-mail is confidential.  It may also be legally
  privileged.  If you are
   not the addressee you may not copy, forward, disclose or use
  any part of it.
   If you have received this message in error, please delete it
  and all copies
   from your system and notify the sender immediately by return E-mail.
   Internet communications cannot be guaranteed to be timely,
  secure, error or
   virus-free.  The sender does not accept liability for any
  errors or omissions.
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 



 --
 This E-mail is confidential.  It may also be legally privileged.  If you
are
 not the addressee you may not copy, forward, disclose or use any part of
it.
 If you have received this message in error, please delete it and all
copies
 from your system and notify the sender immediately by return E-mail.
 Internet communications cannot be guaranteed to be timely, secure, error
or
 virus-free.  The sender does not accept liability for any errors or
omissions.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ASP module

2003-04-03 Thread Lee Chin Khiong

Is there anybody know where to get the asp module for apache ?


RE: ASP module

2003-04-03 Thread Lee Chin Khiong


Thanks.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 03 April 2003 17:39
To: [EMAIL PROTECTED]
Subject: RE: ASP module


http://modules.apache.org/

-Original Message-
From: Lee Chin Khiong [mailto:[EMAIL PROTECTED]
Sent: 03 April 2003 10:34
To: 'Tomcat Users List'
Subject: ASP module



Is there anybody know where to get the asp module for apache ?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: ASP module

2003-04-03 Thread Lee Chin Khiong

But can't find the Bin module ?


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 03 April 2003 17:39
To: [EMAIL PROTECTED]
Subject: RE: ASP module


http://modules.apache.org/

-Original Message-
From: Lee Chin Khiong [mailto:[EMAIL PROTECTED]
Sent: 03 April 2003 10:34
To: 'Tomcat Users List'
Subject: ASP module



Is there anybody know where to get the asp module for apache ?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat setup troubles

2002-12-16 Thread Lee Chin Khiong
You should set JAVA_HOME as C:\j2sdk1.4.1_01

-Original Message-
From: Ines Robbers [mailto:[EMAIL PROTECTED]]
Sent: 17 December 2002 09:23
To: 'Tomcat Users List'
Subject: Tomcat setup troubles


Hello again,

Sorry to bother you with these simple things but could someone tell me
whether this is correct:

I tried to set up the environment variable like this:

CATALINA_HOMEC:\Programme\Apache Group\Tomcat 4.1   

I put it into both the user variables and system variables. Is this
correct?

Also I set a JAVA_HOME variable like this:

JAVA_HOME C:\j2sdk1.4.1_01\bin

The problem is that when I type in the Prompt field I get the error
message: JAVA_HOME variable is not defined.
Also a window popps up saying: -djava.endorse= could not be found...

Tomcat is installed under C:\Programme\Apache Group\Tomcat 4.1 
The JavaEngine under C:\j2sdk1.4.1_01

I'd appreciate any hint how I could get Tomcat to work!!

Many thanks

Ines

  



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



IIS and Tomcat

2002-10-31 Thread Lee Chin Khiong

Anybody using IIS isapi_redirect ?

I just can't make it work enven I follow the instruction from apache.org
site.




BARCODE

2002-06-11 Thread Lee Chin Khiong

DOES ANYBODY KNOWS HOW TO GENERATE BARCODE USING JAVA OR JSP ?
 



RE: Tomcat+Apache

2002-06-09 Thread Lee Chin Khiong


TRY THIS LINK
http://www.codesta.com/knowledge/technical/tomcat_warp_apache/page_01.jsp


-Original Message-
From: Vico Palomino, José Antonio [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 6:44 PM
To: 'Tomcat Users List'
Subject: Tomcat+Apache
Importance: High


Hello!

My english is bad, sorry.

I need integrated Tomcat with Apache. :-? 

Please help!

PD: si alguien sabe como integrar Tomcat bajo apache con una RedHat que me
eche un cablecito, por favor.

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



RE: SSL Tomcat problem

2002-06-05 Thread Lee Chin Khiong


What is the password used for your CERT ? It seems you have to use
'changeit' to get it work.

-Original Message-
From: Sanjeev Rathore [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 12:24 PM
To: [EMAIL PROTECTED]
Subject: SSL  Tomcat problem



I would like to use secure connection with Tomcat.  I have followed the
instructions that were given on Apache website with respect to SSL and
Tomcat connection.  I have put in the three jar files(jcert.jar, jnet.jar,
jsse.jar) in /usr/java/jdk1.3.1_01/jre/lib/ext and have edited the
/etc/profile to make sure that the jar files can be picked up.  My
.keystore file is located in /usr/java/jdk1.3.1_01/jre/lib/ext.  I have
edited the server.xml file to include SSL connection, but when I place
keystoreFile='/usr/java/jdk1.3.1_01/jre/lib/ext inside Factory tag, the
web browser seems to get stuck when it tries to search the web page
http://localhost:8080 let alone trying to access secure connection.  If I
remove the keystoreFile='/usr/java/jdk1.3.1_01/jre/lib/ext from the
Factory  tag, then I am at least able to access http://localhost:8080 .
What would I have to do so that I can access secure connection.

Thanks,

Sanjeev Rathore



-
Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup



RE: oracle drivers

2002-06-04 Thread Lee Chin Khiong


put it into tomcat_directory/common/lib
All driver comes with oracle or you cane download it from oracle web site.


-Original Message-
From: puneet sachar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 04, 2002 2:25 PM
To: Tomcat Users List
Subject: oracle drivers 


good morning developers!


tell me if i want to use oracle as my database where
do i keep my drivers in the tomcat and 

2)
where r the oracles drivers 

3) from where i get type 3 or type 4 drivers

4) does oracle 8i personla edition have them...

where is location , so that i copy /paste them to
desired folder


regards
Puneet

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



RE: How to donate: Apache-Tomcat HOWTO?

2002-05-31 Thread Lee Chin Khiong


Can I have one ?

TQ

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 6:07 PM
To: Tomcat Users List
Subject: Re: How to donate: Apache-Tomcat HOWTO?


 you might find starting points here:
 http://jakarta.apache.org/site/getinvolved.html

Well, that's fine, but it looks like it is too much for me. I've fiddled
with the problem for some time, found a solution and written a document. I
don't want to open a maintainer/developer account or anything like that. I
just want to donate. I have already been contacted by one of the developers
(Thorsten Frank) and I've sent him the docs. Hopefully, it will find it's
way to the official site.

If someone is in a hurry, I can send it to the list as well.

Nix.



RE: Apache 2.x and tomcat 4.x integration

2002-05-30 Thread Lee Chin Khiong

Please refer to this page :
http://www.galatea.com/flashguides/apache-tomcat-24-win32.xml


-Original Message-
From: Paul Dobson [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 1:59 AM
To: [EMAIL PROTECTED]
Subject: Apache 2.x and tomcat 4.x integration


I have been away from the apache/tomcat scene for a while.  I am trying to
find the best place to start.
The most recent info I have found is for integrating apache 1.3.24 with
tomcat 4.0.3.
Is possible to integrate any more recent versions of apache to tomcat 4.x?
If so, where could I find documentation?

Thanks!
Paul

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



RE: Help on mmmySQL/JDBC/Tomcat

2002-05-28 Thread Lee Chin Khiong


You should place your .jar file under Tomcat_home/common/lib.


-Original Message-
From: Ying Zhang [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 25, 2002 6:03 PM
To: [EMAIL PROTECTED]
Subject: Help on mmmySQL/JDBC/Tomcat 



Hi,

I am trying to connect mysql database in jsp file. Mysql itself works well.
but when I use jsp file, I got ClassNotFoundException caused by could not
load JDBC/mysql Driver. I have installed mm.mysql.Driver. If connect by java
code only, it works well. I do not know why the same kind of code does not
work for jsp file, does my tomcat has any problem?

I am in Linux, tomcat is working with Apache. 

This is the jsp code I am using:

...

%@page language=java
   import=java.sql.*%
%
Connection con = null;
try{

  System.out.println(start);
  Class.forName(org.gjt.mm.mysql.Driver).newInstance();
  System.out.println(JDBC driver loaded);

  con = DriverManager.getConnection(
  jdbc:mysql://localhost/zhaoding ?user=zhaodingpassword=zhaoding);
  System.out.println(Database connection established);

} catch(ClassNotFoundException cnfe){
  System.out.println(ClassNotFoundException: Could not locate driver);
} catch(SQLException cnfe){
  System.out.println(SQLException:+cnfe);
} catch(Exception e){
  System.out.println(An unknow error occurred while connecting to the
database);
   } finally {
  try{
if(con!=null)
con.close();
  }catch(SQLException sqle){
   System.out.println(Unable to close database connection.);

  }
}
%
...

Thanks a lot for your time.

Ying

 



-
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup



RE: Openssl

2002-05-24 Thread Lee Chin Khiong


IS IT POSSIBLE TO DESCRIBE IN DETAIL WITH EXAMPLE.
I STILL DON'T GET YOU


-Original Message-
From: KUMAR,PANKAJ (HP-Cupertino,ex1) [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 24, 2002 1:39 AM
To: 'Tomcat Users List'
Subject: RE: Openssl


You can do this in one of the two ways:

A. Use keytool to generate certificate signing request and openssl to sign
it.
   Sub-steps:
   1. Generate key-pair using keytool ( -genkey operation )
   2. Generate Certificate Signing Request or CSR ( -certreq )
   3. Sign CSR with openssl ( ca operation in openssl )
   4. Import openssl CA certificate into keystore specified in step 1.
Remember
to use a different alias than in step 1.
   5. Import the signed certificate ( generated by step 3 ) into the
keystore.
  Remember to use the same alias as in step 1.
   6. Remove the CA certificate entry from the keystore.

Without step 4, step 5 will fail ( as keytool cannot form a certificate
chain ). Without step 6, there is a possiblity that tomcat might present the
wrong certificate to the client ( as JSSE uses the first certificate it
finds in the keystore, using an order determined by a hash function ).

B. Create a PKCS8 certificate ( or certificate chain ) and import it in a
keystore.
-- steps left as an exercise.

Note: If you find the steps bit complicated and hard to get right, You are
not alone :). I spent many frustrating hours to get it right. But you get an
idea.
I do have plans to document these but have not been able to find time.

Pankaj Kumar
Web Services Architect
HP Middleware
http://www.pankaj-k.net

 -Original Message-
 From: Lee Chin Khiong [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 22, 2002 10:21 PM
 To: '[EMAIL PROTECTED]'
 Subject: Openssl
 
 
 Does anyone know how to generate cert using openssl an apply to tomcat
 instead of keytool ?
  
 

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



RE: JDBC trouble

2002-05-24 Thread Lee Chin Khiong


WHY DON'T YOU TRY TO PUT THE .JAR FILE IN $CATALINA_HOME/COMMON/LIB AND YOUR
.JSP IN $CATALINA_HOME/WEBAPPS/ROOT/YOUR_JSP_FOLDER/YOUR_JSP.JSP
 

-Original Message-
From: Mauricio Tia Ni Gong Lin [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 24, 2002 4:57 AM
To: [EMAIL PROTECTED]
Subject: JDBC trouble


Hi everybody,

When I try to access the PostgreSQL DataBase using Tomcat 4.0.3 the
following error message is displayed at the browser:

--
Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error

type: Exception report

message: Internal Server Error

description: The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.

exception:

org.apache.jasper.compiler.ParseException: /Expressions.jsp(10,38) Attribute
org.postgresql.Driver has no value

...
--

The package postgresql.jar (driver for the database) I put in
$CATALINA_HOME/webapps/myapp/WEB-INF/lib directory and the .jsp file
in $CATALINA_HOME/webapps/myapp directory. But it does not work.

I checked the same source code in a normal application .java (terminal)
instead of using .jsp in Tomcat (web browser) and it's doing well. I guess
that I need to configure the Tomcat in order to find the DataBase
driver, but I am not sure.

Could you help me? I need some instructions or examples.

Regards,

Mauricio Lin.



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



Openssl

2002-05-23 Thread Lee Chin Khiong


Does anyone know how to generate cert using openssl an apply to tomcat
instead of keytool ?
 



Openssl

2002-05-22 Thread Lee Chin Khiong

Does anyone know how to generate cert using openssl an apply to tomcat
instead of keytool ?
 



RE: Is Tomcat/MySQL suitable to deploy as a production platform under Windows 2000 Pro?

2002-04-22 Thread Lee Chin Khiong


I think Tomcat doesn't have a detail document regarding how to deploy or
rather the architecture of the system that's why there are so many questions
been ask.


-Original Message-
From: David Lu [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 12:49 PM
To: Tomcat Users List
Subject: Re: Is Tomcat/MySQL suitable to deploy as a production platform
under Windows 2000 Pro?



presumably your current configuration is not java based, so
the largest cost of moving to tomcat/mysql would be development.
unless your site is very simple, chances are the development
cost will overshadow any savings you may realize from software
licenses.


On 2002.04.21 03:52 Adrian Beech wrote:
 Hi folks,
 
 Is Tomcat/MySQL stable enough to deploy as a production platform under
 Windows 2000 Pro?  I'm looking for a suitable platform to publish data
 driven web
 pages in a local Intranet environment.  At present we are using PWS/MS
 Access  under Windows 95.  I'd like to move onto something which is
 slightly
 more
 robust solution that doesn't cost the earth... actually if it doesn't
 cost
 nothing then much the better!
 
 Adrian
 [EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



RE: Foreing Character encoding from jsp form (Character Encoding doesn't work)

2002-04-11 Thread Lee Chin Khiong


Yes, can I have it too.  Thanks.


-Original Message-
From: Evan Child [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 8:21 AM
To: 'Tomcat Users List'
Subject: RE: Foreing Character encoding from jsp form (Character
Encoding doesn't work)


What browser are you using to submit the form?

Before you start getting parameters, you need to do a 
request.setCharacterEncoding(UTF-8);

I couldn't understand from below if you're already doing that. Assuming that
you ultimately want the characters to end up in a utf-8 encoding.

If the browser url-encodes the parameters, (for example if this is an HTTP
GET request), you'll need to get a decoder to decode that and convert it
into regular UTF-8. I have a decoder in java, if you want it.

Thanks,

Evan

-Original Message-
From: Steve Vanspall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 6:27 PM
To: Tomcat Users List
Subject: Foreing Character encoding from jsp form (Character Encoding
doesn't work)


HI there,

I am having problem with reading foreign characters from a form.

I am trying to make it do that Chinese characters can be entered.

When I enter them the a received by the request in the form #23495;#34054;

etc...

I have set the character encoding and filter for UTF-8 in web.xml, I know
that it goes through the filter, but the output is the same. presumably
because it reads each character in as '' '#' '2' '3' 4' '9' '5' ';', seeing
these character as regular ascii character, it doesn't try to change them

All my pages are set to UTF-8 charcter encoding.

I have altered the filter code myself to intercept the filter and recursive
replace these code.

basically converting the integere one by one into chars.

two problems arise from this.

1. When I then add then string them together using a string buffer/string I
get a string of '??', this is also how it is entered into the database
(which is set to UTF-8 encoding also)

2. Surely there is a better way to do this.

Can anybody help me here,

Thanks in advance

Steve Vanspall



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



RE: Please help me on a question about TOMCAT OR APACHE + TOMCAT

2002-04-10 Thread Lee Chin Khiong


Anybody familiar with sql ?
I have a question here, how to link 2 tables from JSP when they have a same
field name ?

 



MS Access

2002-04-10 Thread Lee Chin Khiong


Does anyone know what's the problem ?


type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.

exception 

javax.servlet.ServletException: [Microsoft][ODBC Microsoft Access
Driver]Invalid descriptor index
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:463)
at
org.apache.jsp.index1_0005f1$jsp._jspService(index1_0005f1$jsp.java:155)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:536)


root cause 

java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Invalid
descriptor index
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
at sun.jdbc.odbc.JdbcOdbc.SQLColAttributes(JdbcOdbc.java:2041)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getColAttribute(JdbcOdbcResultSet.java:5241)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getColumnType(JdbcOdbcResultSet.java:5870)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getMaxCharLen(JdbcOdbcResultSet.java:5269)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:267)
at
org.apache.jsp.index1_0005f1$jsp._jspService(index1_0005f1$jsp.java:137)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application

HTTPS error

2002-03-21 Thread Lee Chin Khiong


Hi 
I have installed Tomcat 4 on Windows 2000. I get this weird exception
generated by Tomcat the first time I use HTTPS to access the server.
I am using a self-signed keystore. A dialog does popup in the browser to
allow the user to accept the certificate. The page does load fine and Tomcat
continues to work. However, this only happens the first time an HTTPS
connection is made. Any ideas???


2002-03-21 10:31:36 - Ctx() : IOException in R( /) -
java.net.SocketException: Socket closed
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
at
com.sun.net.ssl.internal.ssl.AppOutputStream.write([DashoPro-V1.2-120198])
at org.apache.tomcat.modules.server.Http10.sendHeaders(Unknown
Source)
at org.apache.tomcat.modules.server.HttpResponse.endHeaders(Unknown
Source)
at org.apache.tomcat.core.OutputBuffer.realWriteBytes(Unknown
Source)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(Unknown Source)
at org.apache.tomcat.core.OutputBuffer.flush(Unknown Source)
at org.apache.tomcat.core.OutputBuffer.close(Unknown Source)
at org.apache.tomcat.core.Response.finish(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown
Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)

2002-03-21 10:31:36 - ErrorHandler: Error loop for R( /) error
java.net.SocketException: Socket closed