IBM JDK problem

2000-12-03 Thread Simon Lam

Hi! All,
I got the following error when starting Tomcat 3.2 with IBM JDK 1.3 in 
Japanese Linux(Laser5 Linux). Can anyone help me? Thanks in advance.

Exception in thread "main" java.lang.ExceptionInInitializerError: 
java.lang.NullPointerException
at java.util.TimeZone.getTimeZone(TimeZone.java:322)
at java.util.TimeZone.getDefault(TimeZone.java:404)
at java.util.TimeZoneData.(TimeZone.java:1976)
at java.util.TimeZone.getTimeZone(TimeZone.java:320)
at java.util.TimeZone.getDefault(TimeZone.java:404)
at java.util.GregorianCalendar.(GregorianCalendar.java:323)
at java.util.SimpleTimeZone.(SimpleTimeZone.java:901)
at java.util.TimeZone.(TimeZone.java:467)
at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:324)
at java.text.SimpleDateFormat.(SimpleDateFormat.java:274)
at java.text.SimpleDateFormat.(SimpleDateFormat.java:262)
at org.apache.tomcat.logging.Logger.(Logger.java:419)
at org.apache.tomcat.logging.TomcatLogger.(TomcatLogger.java:179)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:254)
at org.apache.tomcat.util.xml.ObjectCreate.start(XmlMapper.java:578)
at org.apache.tomcat.util.xml.XmlMapper.matchStart(XmlMapper.java:384)
at org.apache.tomcat.util.xml.XmlMapper.startElement(XmlMapper.java:81)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
at com.sun.xml.parser.Parser.content(Parser.java:1499)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
at com.sun.xml.parser.Parser.parse(Parser.java:284)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:126)
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)



Regards,     Z 
Simon Lam   Z
   z
  z
 ||| 
   m(_ _)m
--------
Simon Lam(Lin Yang) ICQ:33310990
Email: [EMAIL PROTECTED]
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]
 ___ _  _
/ __(_)_ __  ___ _ _   | |   __ _ _ __
\__ \ | '  \/ _ \ ' \  | |__/ _` | '  \
|___/_|_|_|_\___/_||_| |\__,_|_|_|_|





Re: Ajp13 help needed.

2000-12-01 Thread Simon Lam

Thank you for your reply. I solved this problem after rebooting my Linux system.

"Stubenrauch,Andreas" <[EMAIL PROTECTED]> wrote:

> Did you enable a ajp13 connector in server.xml?
> 
> 
> > -Original Message-
> > From: Simon Lam [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, December 01, 2000 8:16 AM
> > To: Tomcat Users
> > Subject: Ajp13 help needed.
> > 
> > 
> > Hi! All.
> > I got the following error in mod_jk's error log when trying 
> > to use Ajp13. Does anyone know what may be the cause of the error?
> > Thanks in advance.
> > 
> > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111
> > [jk_ajp13_worker.c (173)]: In 
> > jk_endpoint_t::connect_to_tomcat, failed errno = 111
> > [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.
> > 




Ajp13 help needed.

2000-11-30 Thread Simon Lam

Hi! All.
I got the following error in mod_jk's error log when trying to use Ajp13. Does anyone 
know what may be the cause of the error?
Thanks in advance.

[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111
[jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 111
[jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.




Fwd: Fwd: caught SIGTERM?

2000-11-30 Thread Simon Lam

Sorry. I think I made a mistake. SIGTERM doesn't matter. My only trouble is that I 
can't use Ajp13 protocal. Is there anything special need to be done to use it?

Simon Lam <[EMAIL PROTECTED]> wrote:
> 
>  Subject: Fwd: caught SIGTERM?
> 
> This happens when I use Ajp13 protocol. If I change the protocol to Ajp12, 
>everything is alright.
> 
> Simon Lam <[EMAIL PROTECTED]> wrote:
> > 
> >  Subject: caught SIGTERM?
> > 
> > Hi! All.
> > I got a notice says "caught SIGTERM, shutting down" in Apache's error log when I 
>was trying to use mod_jk with Tomcat 3.2. And there was an Internal Server Error in 
>my browser window. What does this notice mean? How can I avoid it?
> > Thanks in advance.
> > 
> > 
> > Regards,
> > Simon Lam




Fwd: caught SIGTERM?

2000-11-30 Thread Simon Lam

This happens when I use Ajp13 protocol. If I change the protocol to Ajp12, everything 
is alright.

Simon Lam <[EMAIL PROTECTED]> wrote:
> 
>  Subject: caught SIGTERM?
> 
> Hi! All.
> I got a notice says "caught SIGTERM, shutting down" in Apache's error log when I was 
>trying to use mod_jk with Tomcat 3.2. And there was an Internal Server Error in my 
>browser window. What does this notice mean? How can I avoid it?
> Thanks in advance.
> 
> 
> Regards,
> Simon Lam




caught SIGTERM?

2000-11-30 Thread Simon Lam

Hi! All.
I got a notice says "caught SIGTERM, shutting down" in Apache's error log when I was 
trying to use mod_jk with Tomcat 3.2. And there was an Internal Server Error in my 
browser window. What does this notice mean? How can I avoid it?
Thanks in advance.


Regards,
Simon Lam



Re: chinese language

2000-11-29 Thread Simon Lam

1. Try to put  tag to specify character set directly in your jsp.
2. Try to convert your Chinese string to "8859_1" encoding outside jsp. For example, 
in a JavaBean.
The two methods above works fine for Japanese.
3. Visit Internationlization forum in java.sun.com.

Hope this might help.

"zhan yi" <[EMAIL PROTECTED]> wrote:

> I met two problems with chinese text. 
> 1 When i include file from another chinese file, the included file will not 
>display correctly. See attached file1.jsp and file2.jsp.
> 2 In tomcat-4.0-m4, I used setCharacterEncoding to process chinese form 
>attribute, but it doesn't work. See attached file3.jsp.
> 
> I am not clear where to seek support. Any suggestion is appreciated.
> 




Re: Need database recommendation

2000-11-24 Thread Simon Lam

In fact, I also plan to change my database to PostgreSQL at the end of the project. 
I'm using Oracle because I'm not quite familiar with PostgreSQL and the database 
design of our project is in a hurry. So my question is if PostgreSQL is compatable 
with Oracle. How many changes do I need to do to use Oracle SQL statements such as 
creating table, stored procedure and trigger in PostgreSQL?

Sorry. It seems to be something off topic. :-) But I really wanna know the answer.

"Alistair Hopkins" <[EMAIL PROTECTED]> wrote:

> I'ld just like to advocate postgresql.  It's more fully featured than MySQL,
> just as cheap, does better in tests.  And you won't need to employ Oracle
> database administrators for an arm and a leg an hour, like you do with
> Oracle.
> 
> -Original Message-
> From: Simon Lam [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 24, 2000 9:00 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Need database recommendation
> 
> 
> Oracle for Linux is free to download. Is it also free for commercial usage?
> Thanks.
> 
> [EMAIL PROTECTED] (Saurabh Shukla) wrote:
> 
> >
> > Orcale.
> > -Original Message-
> > From: c cw288 [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, November 23, 2000 1:30 AM
> > To: [EMAIL PROTECTED]
> > Subject: Need database recommendation
> >
> >
> > Hi all,
> > We are going to develop an application on apache + tomcat + mod_jk on
> > Solaris 8, and we need a database for our application. There are lots of
> > databases exit, we need some recommendation of which  is easier to
> > implement.
> >
> > Thanks,
> >
> > Cathy
> >
> 
> > _
> > Get more from the Web.  FREE MSN Explorer download :
> http://explorer.msn.com




One servlet or multiple servlets?

2000-11-10 Thread Simon Lam

Dear Simon Lam,

Hi!
I have some functions than can be implemented by one single servlet or 
multiple servlets. I wonder which method to choose because servlet is like a service 
on the server side. How will the number of deployed servlets affects the performance 
of Tomcat?
Thanks in advance.


Regards, Z 
Simon Lam   Z
   z
  z
 ||| 
   m(_ _)m




One servlet or multiple servlets?

2000-11-09 Thread Simon Lam

Hi!
I have some functions than can be implemented by one single servlet or 
multiple servlets. I wonder which method to choose because servlet is like a service 
on the server side. How will the number of deployed servlets affects the performance 
of Tomcat?
Thanks in advance.


Regards, Z 
Simon Lam   Z
   z
  z
 ||| 
   m(_ _)m




One servlet or multiple servlets?

2000-11-08 Thread Simon Lam

Hi!
I have some functions than can be implemented by one single servlet or 
multiple servlets. I wonder which method to choose because servlet is like a service 
on the server side. How will the number of deployed servlets affects the performance 
of Tomcat?
Thanks in advance.


Regards, Z 
Simon Lam   Z
   z
  z
 ||| 
   m(_ _)m

Simon Lam(Lin Yang) ICQ:33310990
Email: [EMAIL PROTECTED]
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]
 ___ _  _
/ __(_)_ __  ___ _ _   | |   __ _ _ __
\__ \ | '  \/ _ \ ' \  | |__/ _` | '  \
|___/_|_|_|_\___/_||_| |\__,_|_|_|_|





Re: Apache/Tomcat Setup on Win2000 Professional

2000-11-02 Thread Simon Lam

Dear Don Lee,

You'd better post your tomcat-apache.conf here.

At 2000-10-31 11:42:00 you wrote:
>Hi,
>I'm trying to run Apache/Jakarta-Tom cat on Windows 2000 Professional but it's not 
>successful.
>If anyone has suggestion/input about what I did for setup, I'll eternally appreciate 
>it.
>(Please bear in mind that I'm a beginner in Java/JSP/Apache world)
>
>Again, my OS is Windows 2000 Professional, not unix.
>
>(1) JDK1.3
>Downloaded JDK1.3 and installed under c:\jdk1.3.
>Set the path value for  C:\jdk1.3\bin;C:\jdk1.3\lib.
>(from System property GUI not from autoexec.bat)
>
>(2) Apache
>Downloaded apache_1_3_12_win32.exe.
>Installed under C:\program Files\Apache Group\Apache
>Added "ServerName localhost" on \conf\httpd.conf
>(actual line doesn't have quotes)
>
>(3) Jakarta-Tomcat
>Downloaded jakarta-tomcat Win32 version.
>Installed under C:\program files\apache group\jakarta-tomcat
>
>(4) Mod_jserv
>Downloaded ApacheModuleJServ.dll
>Installed under C:\Program files\apache group\apache\modules
>Registered dll with regsrv32.exe
>
>(5) httpd.conf edit
>Include "C:/program files/apache group/jakarta-tomcat/conf/tomcat-apache.conf" to the 
>end.
>Start tomcat using \bin\startup.bat.
>Start Apache.
>
>After I did all these steps, I tried with http://localhost:8080/ , it's working.
>I can see html files.
>Also, I can execute sample serverlets that come with tomcat-jakarta.
>But when I tried to execute sample jsp files, I'm getting 500 error.
>
>What am I doing wrong here?
>
>Any input will be greatly appreciated.
>
>Don
>
>
>  


Regards, Z 
Simon Lam   Z
   z
  z
 ||| 
   m(_ _)m

Simon Lam(Lin Yang) ICQ:33310990
Email: [EMAIL PROTECTED]
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]
 ___ _  _
/ __(_)_ __  ___ _ _   | |   __ _ _ __
\__ \ | '  \/ _ \ ' \  | |__/ _` | '  \
|___/_|_|_|_\___/_||_| |\__,_|_|_|_|





Re: (Possible VIRUS) Re: ???????? - ????????????

2000-10-31 Thread Simon Lam

William Brogden <[EMAIL PROTECTED]> wrote:

> Crashed my Netscape 4.61 but I don't think it was a virus,
> just some really weird data.
> -- 
> WBB

It's just an ad in Chinese. Netscape crashed? I think that happens. My Chinese version 
of Netscape gives me an error message every time I exit it.