Re: PostgreSQL

2001-03-03 Thread Markus Keller OrcaSoft

Hello Mikhail


I am compiling PostgreSQL 7.0.3 to be used with the Tomcat 3.2.1 web
application. Does anyone have any success stories or nightmares about
postgresql and java connectivity. What drivers did you use and why?
Please share.


I use the JDBC Java 2 driver which comes with the postgresql source
 src/interfaces/jdbc ). Until now I have no problems. But at the moment i
run only some tests. I plane to publish my first application in november.

Markus


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




RE: help with Tomcat under windows ME...

2001-03-03 Thread Adam Fowler

Hi,

If all goes well then hopefully you should be able to do the following in IE
http://localhost:8080
And a little tomcat will appear with some tomcat info.

Hope that's what you mean(?)

Regards,
Adam.


Adam Fowler
Second year Computer Science undergraduate
University of Wales, Aberystwyth
Carroll College, WI, USA(2000-2001)
web: http://gucciboy.dyndns.org/aff9
e-mail: [EMAIL PROTECTED]
"Every new beginning comes from some other beginning's end"



-Original Message-
From: dick [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 7:38 PM
To: [EMAIL PROTECTED]
Subject: Re: help with Tomcat under windows ME...


Hi Rob,

I do run Tomcat on Window ME and it runs smooth. So,would you give more
information?
e.g. What do you see when you start Tomcat?


Dick
- Original Message -
From: "Rob Smyth" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 02, 2001 11:35 PM
Subject: help with Tomcat under windows ME...


 I can't start Tomcat under windows ME...

 Is there a way I can do this?  I've made all the appropriate changes to
the
 classpath in the autoexec.bat, but I keep getting the 'out of environment'
 error.

 Thanks for any help.

 Rob Smyth








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


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



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




Upcoming Tomcat book...

2001-03-03 Thread Adam Fowler

Hi all,

I will shortly be writing a book for Sams Publishing in a similar format to
the recently released(and well received) book on Python.

I currently have the task of writing a proposal for content of the book. The
book's target audience is web developers who will be using Tomcat. It will
be based on Tomcat 4.0, but will also be useful for Tomcat 3.x.

I am e-mailing this list to ask for serious suggestions for sections of the
book. From installation through configuration to deploying custom
applications.

Any help would be appreciated and would benefit everyone as this book is
meant to be for you people.

If any Tomcat User Group(TUG) members wish to write user documentation for
Tomcat (The 'paths' that have been discussed) then drop me an e-mail and
maybe we can help each other.

Regards,
Adam.


Adam Fowler
Second year Computer Science undergraduate
University of Wales, Aberystwyth
Carroll College, WI, USA(2000-2001)
web: http://gucciboy.dyndns.org/aff9
e-mail: [EMAIL PROTECTED]
"Every new beginning comes from some other beginning's end"




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




RE: help with Tomcat under windows ME...

2001-03-03 Thread Cynic

This is actually described somewhere in the docs. I just 
don't remember where. You have to increase memory allocated 
to the app.

- Original Message -
From: "Rob Smyth" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 02, 2001 11:35 PM
Subject: help with Tomcat under windows ME...


 I can't start Tomcat under windows ME...

 Is there a way I can do this?  I've made all the appropriate changes to
the
 classpath in the autoexec.bat, but I keep getting the 'out of environment'
 error.

 Thanks for any help.

 Rob Smyth



Cynic:

A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.

[EMAIL PROTECTED]



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




Re: Réf . : Pb runningTomcat with Apache on a Linux Server

2001-03-03 Thread Moin Anjum H.

Hi,

Please use English.

Regards
Moin.

[EMAIL PROTECTED] wrote:

 Je te conseille de mettre un chemin absolu dans ton mod_jk.conf, sinon il
 va utiliser le Root_Path avant.
 Place le au bon endroit (exemple chez moi /usr/libexec/mod_jk.so) , puis configure 
le mod_jk.conf
 LoadModule jk_module /lecheminousetrouvelefichier/mod_jk.so

 J'espre que a va t'aider .

 Cordialement,

 SERGENT David
 Dveloppeur informatique
 [EMAIL PROTECTED]

 "BENARD Christophe, DDE 34/SG" [EMAIL PROTECTED]
 02/03/01 09:08
 Veuillez rpondre  tomcat-user


 Pour :  "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
 cc :
 Objet : Pb running Tomcat with Apache on a Linux Server

 Hi,

 I'm trying to run Tomcat with Apache on Linux. When I try to start Apache,
 I
 get this error message :
 Syntax error on line 9 of /usr/jakarta-tomcat-3.2.1/conf/mod_jk.conf :
 invalid command 'LoadModule', perhaps mis-spelled or defined by a module
 not
 included in the server configuration.
 ./apachectl start could not be started.

 I put the mod_jk.so module in the /apache-1.3.19/libexec directory. The
 line
 9 of my mod_jk.conf file :
 LoadModule  jk_module  libexec/mod_jk.so

 Any help or suggestion would be appreciated ;o)

 TIA

 Chris

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

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


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Tomcat Mod_jk and NFC Chat

2001-03-03 Thread Juan Alberto Cirez

Hello to all.
I am new to this list and to tomcat as well (I come from an apache
background).
I have the following questions:
I am trying to setup Apache to work with TomCat w/mod_jk to work with
NFC Chat Server.
My apache configuration files are located on /web/apache-conf
I start the server with the following command
/path/to/binary/httpd -f /web/apache-conf/httpd.conf

I have include directive so apache includes the tomcat-apache-conf-auto
file in its configuration.
By the way, how do I tell tomcat to look for mod_jk.so in
/path/to/apache/libexec rather than the server's root?

I want to include the configuration for Tomcat in /web/tomcat-conf
How do I start TomCat so it uses this location for all its configuration
file?

I also wat to include the configuration for the NFC Server in
/web/nfc_chat-conf
How do I start the chat server so it uses this configuration file...?

Help, please

---
Juan Alberto Cirez - Chief Creative Officer
[EMAIL PROTECTED] - [EMAIL PROTECTED]

-- hip2linux Professional Services, Inc.---
- Fortalezza VPN/Firewall
- Commandante Remote Network Management
- Network Security
- Intranet  Extranet Management
---
www.hip2linux.com www.micanno.com
www.dominicanarmy.com www.basementsuite.com
www.micanno.com  www.fortalezza.com
---
 Sunny and Beautiful Vancouver, Canada.
---

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




TOMCAT(mod_jk)+APACHE????

2001-03-03 Thread Slymer

Hello all, I've installed Apache 1.3.12 an Tomcat 3.2.1 on my Linux
Slackware 7.0.
I've also compiled mod_jk to make Apache and Tomcat work together.
No problems installing Tomcat,Apache and neither compiling mod_jk.
When I use a browser to connect to for example localhost I can see
correctly the page index.html from Apache and also if I request a page on
localhost:8080 Tomcat works well (I can see the examples working), but if
I make a request of a jsp page from index.html of Apache I see all the
tags of the jsp directives.
Seems like jsp pages are not recognised from Apache and they are not
processed by Tomcat.
I'm including in this mail my "mod_jk.conf-auto" file:

###
# Auto generated configuration. Dated: Sat Mar 03 10:08:43 CET 2001
###
#
# The following line instructs Apache to load the jk module
#
LoadModule jk_module libexec/mod_jk.so
JkWorkersFile
/dark/fabri/scarico/PROJ/jakarta-tomcat-3.2.1/conf/workers.properties
JkLogFile /dark/fabri/scarico/PROJ/jakarta-tomcat-3.2.1/logs/mod_jk.log
#
# Log level to be used by mod_jk
#
JkLogLevel error
###
# SSL configuration   #
# 
# By default mod_jk is configured to collect SSL information from
# the apache environment and send it to the Tomcat workers. The
# problem is that there are many SSL solutions for Apache and as
# a result the environment variable names may change.
#
# The following (commented out) JK related SSL configureation
# can be used to customize mod_jk's SSL behaviour.
# 
# Should mod_jk send SSL information to Tomact (default is On)
# JkExtractSSL Off
# 
# What is the indicator for SSL (default is HTTPS)
# JkHTTPSIndicator HTTPS
# 
# What is the indicator for SSL session (default is SSL_SESSION_ID)
# JkSESSIONIndicator SSL_SESSION_ID
# 
# What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
# JkCIPHERIndicator SSL_CIPHER
# 
# What is the indicator for the client SSL certificated (default is
SSL_CLIENT_CERT)
# JkCERTSIndicator SSL_CLIENT_CERT
# 
# #
###
#
# Root context mounts for Tomcat
#
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12
#
# Auto configuration for the /examples context starts.
#
#
# The following line makes apache aware of the location of the /examples
context
#
Alias /examples
"/dark/fabri/scarico/PROJ/jakarta-tomcat-3.2.1/webapps/examples"
Directory
"/dark/fabri/scarico/PROJ/jakarta-tomcat-3.2.1/webapps/examples"
Options Indexes FollowSymLinks
/Directory
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /examples/servlet/* ajp12
JkMount /examples/*.jsp ajp12
#
# The following line prohibits users from directly accessing WEB-INF
#
Location "/examples/WEB-INF/"
AllowOverride None
deny from all
/Location
#
# The following line prohibits users from directly accessing META-INF
#
Location "/examples/META-INF/"
AllowOverride None
deny from all
/Location
###
# Auto configuration for the /examples context ends.
###

#
# Auto configuration for the /admin context starts.
#
#
# The following line makes apache aware of the location of the /admin
context
#
Alias /admin "/dark/fabri/scarico/PROJ/jakarta-tomcat-3.2.1/webapps/admin"
Directory "/dark/fabri/scarico/PROJ/jakarta-tomcat-3.2.1/webapps/admin"
Options Indexes FollowSymLinks
/Directory
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /admin/servlet/* ajp12
JkMount /admin/*.jsp ajp12
#
# The following line prohibits users from directly accessing WEB-INF
#
Location "/admin/WEB-INF/"
AllowOverride None
deny from all
/Location
#
# The following line prohibits users from directly accessing META-INF
#
Location "/admin/META-INF/"
AllowOverride None
deny from all
/Location
###
# Auto configuration for the /admin context ends.
###
#
# Auto configuration for the /test context starts.
#
#
# The following line makes apache aware of the location of the /test
context
Alias /test "/dark/fabri/scarico/PROJ/jakarta-tomcat-3.2.1/webapps/test"
Directory "/dark/fabri/scarico/PROJ/jakarta-tomcat-3.2.1/webapps/test"
Options Indexes FollowSymLinks
/Directory
#
# The following 

How to use JavaMail API 1.2 with Tomcat 3.1

2001-03-03 Thread ann patil

Hi,
I need to develop a Email system with servlets.


Environment:
1) Tomcat 3.1.
2) JDK 1.3.
3) JavaMail API 1.2.


Note: The demo examples in JavaMail are working in JDK1.3.

Can anybody please help me out as to how can I develop a Email system
with Tomcat.

Thanks.

Ann




_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




Re: TOMCAT(mod_jk)+APACHE????

2001-03-03 Thread Slymer



On Sat, 3 Mar 2001, Slymer wrote:

 
 
 On Sat, 3 Mar 2001, Cynic wrote:
 
  At 11:00 3.3. 2001, Slymer wrote the following:
  -- 
  Hello all, I've installed Apache 1.3.12 an Tomcat 3.2.1 on my Linux
  Slackware 7.0.
  I've also compiled mod_jk to make Apache and Tomcat work together.
  No problems installing Tomcat,Apache and neither compiling mod_jk.
  When I use a browser to connect to for example localhost I can see
  correctly the page index.html from Apache and also if I request a page on
  localhost:8080 Tomcat works well (I can see the examples working), but if
  I make a request of a jsp page from index.html of Apache I see all the
  tags of the jsp directives.
  Seems like jsp pages are not recognised from Apache and they are not
  processed by Tomcat.
  I'm including in this mail my "mod_jk.conf-auto" file:
  snip
  
  Err, are you sure this file is included in httpd.conf? 
  Have you started Apache _after_ Tomcat?
  
  
  

 Hello, thanks for the help.
 Yes, I put this line in httpd.conf:
include 
/dark/fabri/scarico/PROJ/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto
 
 And I've also started Tomcat before Apache but (RRRGGGHHH.) it
 doesn't work. 


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




Re: change web.xml restart

2001-03-03 Thread Valeriy Molyakov




Yes restart or yes other way(what way) ?
Thank's !

  - Original Message - 
  From: 
  Carlos 
  To: [EMAIL PROTECTED] 
  Sent: Friday, March 02, 2001 1:49 
PM
  Subject: Re: change web.xml  
  restart
  
  yes
  
- Original Message - 
From: 
Valeriy 
Molyakov 
To: [EMAIL PROTECTED] 

Sent: Friday, March 02, 2001 11:26 
AM
Subject: change web.xml  
restart


I change the configuration file of the application - web.xml.
I must restart server or exist other way ?
Best regards, 
Valera M. mailto:[EMAIL PROTECTED]


Re: Logout form-based authentication

2001-03-03 Thread Valeriy Molyakov

Thank's it's working !

HttpSession currentSession = request.getSession();

currentSession.invalidate();

 - Original Message - 
From: "Craig R. McClanahan" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 02, 2001 10:42 PM
Subject: Re: Logout  form-based authentication


 Valeriy Molyakov wrote:
 
  Hi !
 
  I use form-based authentication.
 
  Can I logout without close browser?
   Best regards,
  Valera M.
  mailto:[EMAIL PROTECTED]
 
 Yes ... just invalidate the current session.
 
 Craig McClanahan
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


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




page not refreshing in IE

2001-03-03 Thread Raghavendra V. Kulkarni

Friends,

I am using tomcat for my servlet processing. 
Whenever I navigate within my application,
using myown links (I mean not using browser
links), I want my page to be refreshed. My 
pages are not getting refreshed in IE. On 
Netscape they work very fine. I used to use 
JWS and it was working very fine on IE  NN.

I tried setting up following headers:

httpservletresponse.setHeader("Cache-Control", "no-cache");
httpservletresponse.setHeader("Cache-Control", "no-store");
httpservletresponse.setHeader("Pragma", "no-cache");


I tried setting up following META tags also:

meta name='Cache-Control' content='no-cache'
meta name='Pragma' content='no-cache'
meta name='max-age' content='0'
meta name='Expires' content='0'

Both of these solutions have failed. 
Please help me.

Warm Regards,
Raghu

---
Company  URL : www.accord-soft.com
Products URL : www.accord-products.com
Web Products : www.accord-products.com/internet.htm
Telephone: +91-80-5354059 x 240
Fax  : +91-80-5352723
---



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




Problems getting tomcat to work with apache

2001-03-03 Thread Dave Townsend

Can anyone explain this? I have tomcat running fine and serving out pages,
servlets and jsps on port 8080. I included the mod_jk.conf-auto into
httpd.conf and apache refuses to send jsp and servlet requests to tomcat. It
has aliased all the webapps in the correct place so it is reading the config
file.

Any ideas?

Dave


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




Re: Problems getting tomcat to work with apache

2001-03-03 Thread Kenneth Westelinck

Dave,

Have you also included these lines in your httpd.conf file:
LoadModulejk_module  modules/mod_jk.dll
AddModule mod_jk.c

and did you copy the mod_jk.dll to the modules directory of apache?


regards,

Kenneth Westelinck


From: "Dave Townsend" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Problems getting tomcat to work with apache
Date: Sat, 3 Mar 2001 13:19:26 -

Can anyone explain this? I have tomcat running fine and serving out pages,
servlets and jsps on port 8080. I included the mod_jk.conf-auto into
httpd.conf and apache refuses to send jsp and servlet requests to tomcat. 
It
has aliased all the webapps in the correct place so it is reading the 
config
file.

Any ideas?

Dave


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


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




RE: Problems getting tomcat to work with apache

2001-03-03 Thread Dave Townsend

Well, I use apache in linux, so I have

LoadModule  jk_module   modules/mod_jk.so
AddModule   mod_jk.c

But basically yeah. Although not sure if they have to be included in
httpd.conf since they are automatically generated in the mod_jk.conf-auto
file, but I have tried both ways.

Dave

-Original Message-
From: Kenneth Westelinck [mailto:[EMAIL PROTECTED]]
Sent: 03 March 2001 14:47
To: [EMAIL PROTECTED]
Subject: Re: Problems getting tomcat to work with apache


Dave,

Have you also included these lines in your httpd.conf file:
LoadModulejk_module  modules/mod_jk.dll
AddModule mod_jk.c

and did you copy the mod_jk.dll to the modules directory of apache?


regards,

Kenneth Westelinck


From: "Dave Townsend" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Problems getting tomcat to work with apache
Date: Sat, 3 Mar 2001 13:19:26 -

Can anyone explain this? I have tomcat running fine and serving out pages,
servlets and jsps on port 8080. I included the mod_jk.conf-auto into
httpd.conf and apache refuses to send jsp and servlet requests to tomcat.
It
has aliased all the webapps in the correct place so it is reading the
config
file.

Any ideas?

Dave


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


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-
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: Mail

2001-03-03 Thread Brett W. McCoy

On Fri, 2 Mar 2001, Arafat Mohamed wrote:

 I apologize if this is the wrong forum, but I really need a quick solution.

 I have a jsp page with an error associated with it. How do I set it up so
 that the error.jsp emails me with the error message?

Can you dump the stack trace from an exception into a variable and email
that to you?  You could even have the variable containing that stacktrace
in a hidden variable in a form, and have a textbox that will allow the
user to also add extra notes to send along with it.

-- Brett
 http://www.chapelperilous.net/~bmccoy/
---
If you don't like the way I drive, stay off the sidewalk!


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




Re: More on JServ to Tomcat

2001-03-03 Thread Brett W. McCoy

On Fri, 2 Mar 2001, Craig R. McClanahan wrote:

 ApacheCon Advertisement
 I am doing a session at ApacheCon next month in Santa Clara that highlights the
 important issues of migrating from Apache JServ to Tomcat.
 /ApacheCon Advertisement

Dang, probably won't be there.  And my deadline to have this done is in 2
weeks.  Is there any way to get a trascription or any handouts form your
session?

-- Brett
 http://www.chapelperilous.net/~bmccoy/
---
Do not believe in miracles -- rely on them.


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




Re: How to use text/vnd.wap.wml MIME Type ?

2001-03-03 Thread Bo Xu

Vijay Suryawanshi wrote:

 How to use text/vnd.wap.wml MIME Type to serve WML pages from Tomkat ?
 It's not working after putting mime type mappings in web.xml. This is
 similar problem that Raf Colson had faced.

 Raf, did u get any workaroud ? If you could help me in this regard,
 that would be appriciated.Thanks and Regards, Vijay
 [...]

Hi :-)   if you use jakarta-tomcat-4.0-b1, did you ever try to add
the following into TOMCAT_HOME/conf/web.xml?

  mime-mapping
extensionwml/extension
mime-typetext/vnd.wap.wml/mime-type
  /mime-mapping
  mime-mapping
extensionwbmp/extension
mime-typeimage/vnd.wap.wbmp/mime-type
  /mime-mapping
  ...


Bo
Mar.03, 2001




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




Re: Upcoming Tomcat book...

2001-03-03 Thread Falcon cheetah
 That is a very cool thing ;)
I have been looking on the bookshelves for such a book! If you ever need any help let me know. Here is my email.
[EMAIL PROTECTED]

Ahmed Alawy,

 Adam Fowler [EMAIL PROTECTED] wrote: 
Hi all,I will shortly be writing a book for Sams Publishing in a similar format tothe recently released(and well received) book on Python.I currently have the task of writing a proposal for content of the book. Thebook's target audience is web developers who will be using Tomcat. It willbe based on Tomcat 4.0, but will also be useful for Tomcat 3.x.I am e-mailing this list to ask for serious suggestions for sections of thebook. From installation through configuration to deploying customapplications.Any help would be appreciated and would benefit everyone as this book ismeant to be for you people.If any Tomcat User Group(TUG) members wish to write user documentation forTomcat (The 'paths' that have been discussed) then drop me an e-mail andmaybe we can help each other.Regards,Adam.Adam FowlerSecond year Computer Science undergraduateUniversity of Wales, AberystwythCarroll College, WI, USA(2000-2001)web: http://gucciboy.dyndns.org/aff9e-mail: [EMAIL PROTECTED]"Every new beginning comes from some other beginning's end"-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, email: [EMAIL PROTECTED]Do You Yahoo!?
Yahoo! Mail Personal Address - 
Get email at your own domain with Yahoo! Mail.

Re: Sybase (ASA7.0.2) connection question

2001-03-03 Thread anonymous

I don't know if this helps, since I use ASE on Linux not ASA on NT but here
goes:

import com.sybase.jdbcx.*;
   // 
public String sServer = "198.151.254.121:1433";
  // ...
public String url = "jdbc:sybase:Tds:"; // + sServer

The only real difference I can see between my code and your code is you're
using "localhost" whereas I supply a real IP address.  The only other
suggestion is check the port # that ASA is listening on.  I've usually only
seen tcp endpoint errors when a client app is unable to establish a
connection on with a server app because of socket# or ip addr issues.  I've
used this code for ASE  web server running on one machine and ASE  web
server on separate machines.

- Original Message -
From: "Wong, Connie" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 02, 2001 10:37 AM
Subject: Sybase (ASA7.0.2) connection question


 Hi,

 I have trouble using the URL on Sybase. I hope someone can help me.

 Configurations:

 NT
 Sybase ASA7.0.2
 Tomcat 3.1
 DriverName = "com.sybase.jdbc2.jdbc.SybDriver"

 The following files are in my CLASSPATH:
   c:\Program Files\Sybase\SQL Anywhere 7\jConnect\classes
   c:\Program Files\Sybase\SQL Anywhere 7\java\jdbcdrv.zip
   c:\Program Files\Sybase\Shared\jConnect-5_2\classes\jconn2.jar


 Scenarios:

 Case 1. Set URL = "jdbc:sybase:Tds:localhost:2638"

  I got the IOException error:

 java.sql.SQLException: JZ006: Caught IOException:
java.net.ConnectException:
 Connection refused: no further information at
 com.sybase.jdbc2.jdbc.ErrorMessage.raiseError(ErrorMessage.java:423) at
 com.sybase.jdbc2.tds.Tds.handleIOE(Tds.java:2780) at
 com.sybase.jdbc2.tds.Tds.login(Tds.java:338) at
 com.sybase.jdbc2.jdbc.SybConnection.tryLogin(SybConnection.java:213) at
 com.sybase.jdbc2.jdbc.SybConnection.regularConnect(SybConnection.java:190)
 at com.sybase.jdbc2.jdbc.SybConnection.(SybConnection.java:169) at
 com.sybase.jdbc2.jdbc.SybConnection.(SybConnection.java:122) at
 com.sybase.jdbc2.jdbc.SybDriver.connect(SybDriver.java:175) at
 java.sql.DriverManager.getConnection(DriverManager.java:517) at
 java.sql.DriverManager.getConnection(DriverManager.java:146) at
 Benchmark_sybase.query(Benchmark_sybase.java:94) at
 Benchmark_sybase.doGet(Benchmark_sybase.java:48) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at

org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
 at

org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
 at
 org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at

org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
 onnectionHandler.java:160) at

org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
 ) at java.lang.Thread.run(Thread.java:484)



 Case 2: same URL (URL = "jdbc:sybase:Tds:localhost:2638"), I have to
 connect the database from Sybase central in order for my program to run.


 Case 3: set URL = "jdbc:sybase:asademo"  -- I created my table in asademo
 database.

I got the following Exception.:

 java.sql.SQLException: JZ0D5: Error loading protocol
 com.sybase.jdbc2.asademo.asademo. at
 com.sybase.jdbc2.jdbc.ErrorMessage.raiseError(ErrorMessage.java:423) at

com.sybase.jdbc2.jdbc.ProtocolManager.getProtocol(ProtocolManager.java:102)
 at
com.sybase.jdbc2.jdbc.SybUrlManager.loadProtocol(SybUrlManager.java:191)
 at com.sybase.jdbc2.jdbc.SybUrlManager.init(SybUrlManager.java:133) at
 com.sybase.jdbc2.jdbc.SybUrlManager.getUrlProvider(SybUrlManager.java:110)
 at com.sybase.jdbc2.jdbc.SybDriver.connect(SybDriver.java:167) at
 java.sql.DriverManager.getConnection(DriverManager.java:517) at
 java.sql.DriverManager.getConnection(DriverManager.java:146) at
 Benchmark_sybase.query(Benchmark_sybase.java:99) at
 Benchmark_sybase.doGet(Benchmark_sybase.java:53) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at

org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
 at

org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
 at
 org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at

org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
 onnectionHandler.java:160) at

org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
 ) at 

Re: change web.xml restart

2001-03-03 Thread Carlos de la Flor



restart

  - Original Message - 
  From: 
  Valeriy 
  Molyakov 
  To: [EMAIL PROTECTED] 
  
  Sent: Saturday, March 03, 2001 11:30 
  AM
  Subject: Re: change web.xml  
  restart
  
  
  Yes restart or yes other way(what way) ?
  Thank's !
  
- Original Message - 
From: 
Carlos 
To: [EMAIL PROTECTED] 

Sent: Friday, March 02, 2001 1:49 
PM
Subject: Re: change web.xml  
restart

yes

  - Original Message - 
  From: 
  Valeriy 
  Molyakov 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, March 02, 2001 11:26 
  AM
  Subject: change web.xml  
  restart
  
  
  I change the configuration file of the application - web.xml.
  I must restart server or exist other way ?
  Best 
  regards, Valera M. mailto:[EMAIL PROTECTED]


Re: Upcoming Tomcat book...

2001-03-03 Thread Rob Tanner

Adam,

It's not really a Tomcat issue, but one of the things that's covered 
sometimes poorly and sometimes not at all is thread synchronization. 
Unless you're using th SingleThreadModel interface, that's a serious 
issue for servlet programming, and unless you're familiar with 
threading in Java you can get yourself in all kinds of trouble (writing 
servlets was my first exposure to Java and I wasn't at all familiar 
with threads, and I suspect there are a lot of others who have gotten 
caught off-guard like that).  Though it's not really a Tomcat issue, it 
would be a valuable appendix.

The other area that drives me crazy (and I still haven't found any 
satisfactory mechanisms) is how to secure credentials the servlet needs 
to access database resources.  For instance, if a user's credentials 
are stored in a MySQL database, the servlet must access that database, 
and to do so, it needs a valid uname and password.  These would not 
normally be the uname and password passed in from the request object 
(assuming some variety of forms based authentication) since you don't 
normally have hundreds or even thousands of users setup with database 
privileges.  Rather, the servlet uses it's own credentials to access 
the database and retrieve the user's specific credentials stored in an 
ordinary table.  The problem is that web.xml is not a secure place to 
store the servlet's credentials, especially if you're running Tomcat on 
a UNIX machine with many applications and many developers, not all of 
whom should have access to the particular servlet's credentials.  I 
have asked that same question on several different venues, but the few 
answers I've gotten have all been non sequitur, and I think that's 
because the question has not been fully understood.  A discussion of 
issues like that (especially for folks coming from an apache/cgi world 
where good solutions are well-known) would be very valuable.

Beyond that, if you need readers or folks to beta test examples and 
procedures, I'd be more that happy to help out.

-- Rob


--On Saturday, March 03, 2001 02:51:35 AM -0600 Adam Fowler 
[EMAIL PROTECTED] wrote:

 Hi all,

 I will shortly be writing a book for Sams Publishing in a similar
 format to the recently released(and well received) book on Python.

 I currently have the task of writing a proposal for content of the
 book. The book's target audience is web developers who will be using
 Tomcat. It will be based on Tomcat 4.0, but will also be useful for
 Tomcat 3.x.

 I am e-mailing this list to ask for serious suggestions for sections
 of the book. From installation through configuration to deploying
 custom applications.

 Any help would be appreciated and would benefit everyone as this book
 is meant to be for you people.

 If any Tomcat User Group(TUG) members wish to write user
 documentation for Tomcat (The 'paths' that have been discussed) then
 drop me an e-mail and maybe we can help each other.

 Regards,
 Adam.

 
 Adam Fowler
 Second year Computer Science undergraduate
 University of Wales, Aberystwyth
 Carroll College, WI, USA(2000-2001)
 web: http://gucciboy.dyndns.org/aff9
 e-mail: [EMAIL PROTECTED]
 "Every new beginning comes from some other beginning's end"
 



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





   _ _ _ _   __ _ _ _ _
  /\_\_\_\_\/\_\ /\_\_\_\_\_\
 /\/_/_/_/_/   /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
/\/_/__\/_/ __/\/_//\/_/  PROFUNDUM VIDITUR
   /\/_/_/_/_/ /\_\  /\/_//\/_/
  /\/_/ \/_/  /\/_/_/\/_//\/_/ (Whatever is said in Latin
  \/_/  \/_/  \/_/_/_/_/ \/_/  appears profound)

  Rob Tanner
  McMinnville, Oregon
  [EMAIL PROTECTED]


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




set auto-apache-config to ajp13

2001-03-03 Thread Thomas



How do you set 
tomcat to create its mod_jk.conf-auto file with:

JkMount /*.jsp ajp13

instead of the 
default:

JkMount /*.jsp 
ajp12

?

Thanks

Thomas 
M


Re: change web.xml restart

2001-03-03 Thread Robert Keddie



im a newbie at this...and i just need someone to tell me exactly what i 
need, where to put it...and what changes i need to make to what config files... 
and what my enviroment is supposed to say...anyone have a url or a guide ?
this is on NT with apache. Plaaase?


Robert Keddieweb developmentMarion County, FL 
[EMAIL PROTECTED] 03/03/01 05:02PM 
restart

  - Original Message - 
  From: 
  Valeriy 
  Molyakov 
  To: [EMAIL PROTECTED] 
  
  Sent: Saturday, March 03, 2001 11:30 
  AM
  Subject: Re: change web.xml  
  restart
  
  
  Yes restart or yes other way(what way) ?
  Thank's !
  
- Original Message - 
From: 
Carlos 
To: [EMAIL PROTECTED] 

Sent: Friday, March 02, 2001 1:49 
PM
Subject: Re: change web.xml  
restart

yes

  - Original Message - 
  From: 
  Valeriy 
  Molyakov 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, March 02, 2001 11:26 
  AM
  Subject: change web.xml  
  restart
  
  
  I change the configuration file of the application - web.xml.
  I must restart server or exist other way ?
  Best 
  regards, Valera M. mailto:[EMAIL PROTECTED]


Error 500?

2001-03-03 Thread David Ireland

Hi

I am using tomcat 3.2.1 and JDK 1.3 under Windows 98.  I have installed 
tomcat ok and I can access it through localhost:8080. It also runs the 
servlet examples ok but when I try to run the JSP examples I get errors... I 
have set up JAVA_HOME and TOMCAT_HOME in tomcat.bat which also references 
TOMCAT_HOME\lib\tools.jar.

Any help greatly appreciated,  also could someone tell me how I view 
previous messages on this list...

Thanks

Error: 500
Location: /examples/jsp/num/numguess.jsp
Internal Servlet Error:

javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
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:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
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(Thread.java:484)

Root cause:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at 
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at 
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
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:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
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(Thread.java:484)


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




Re: Error 500?

2001-03-03 Thread RaviShankar K
Hi

Put all jar files which are under TOMCAT_HOME/lib in your class path.
They are servlet.jar, jasper.jar .. etc

Ravi
- Original Message -
From: "David Ireland" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 04, 2001 AM 09:12
Subject: Error 500?


Hi

I am using tomcat 3.2.1 and JDK 1.3 under Windows 98.  I have installed
tomcat ok and I can access it through localhost:8080. It also runs the
servlet examples ok but when I try to run the JSP examples I get errors... I
have set up JAVA_HOME and TOMCAT_HOME in tomcat.bat which also references
TOMCAT_HOME\lib\tools.jar.

Any help greatly appreciated,  also could someone tell me how I view
previous messages on this list...

Thanks

Error: 500
Location: /examples/jsp/num/numguess.jsp
Internal Servlet Error:

javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
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.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
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(Thread.java:484)

Root cause:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
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.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
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(Thread.java:484)


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-
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: set auto-apache-config to ajp13

2001-03-03 Thread Brett W . McCoy

On 2001.03.03 18:17 Thomas wrote:

 How do you set tomcat to create its mod_jk.conf-auto file with:
 
 JkMount /*.jsp ajp13
 
 instead of the default:
 
 JkMount /*.jsp ajp12

You have to put that in by hand -- Tomcat defaults to using Ajp12 with Apache
unless you tell it otherwise.

-- Brett 
  http://www.chapelperilous.net/~bmccoy/

Inheritance taxes are getting so out of line, that the deceased family
often doesn't have a legacy to stand on.

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




Re: Upcoming Tomcat book...

2001-03-03 Thread Allen Akers

My suggestion would be to use an LDAP database as your authentication
database for your individual users.  You can authenticate that person
and then access information about their database access group and the
associated group password, if you set up the LDAP database correctly. 
In this way, the user doesn't need their own SQL user account, just a
valid LDAP entry tied to a generic user group and no type of sensitive
information need reside on your machine running Tomcat.  There are some
other ways you could do it, but that is probably the most versatile and
straightforward.

   Allen Akers
   Programmer Analyst
   Strategic Web and Voice Development
   
   [EMAIL PROTECTED]


 [EMAIL PROTECTED] 03/03/01 05:03PM 
Adam,

It's not really a Tomcat issue, but one of the things that's covered 
sometimes poorly and sometimes not at all is thread synchronization. 
Unless you're using th SingleThreadModel interface, that's a serious 
issue for servlet programming, and unless you're familiar with 
threading in Java you can get yourself in all kinds of trouble (writing

servlets was my first exposure to Java and I wasn't at all familiar 
with threads, and I suspect there are a lot of others who have gotten 
caught off-guard like that).  Though it's not really a Tomcat issue, it

would be a valuable appendix.

The other area that drives me crazy (and I still haven't found any 
satisfactory mechanisms) is how to secure credentials the servlet needs

to access database resources.  For instance, if a user's credentials 
are stored in a MySQL database, the servlet must access that database,

and to do so, it needs a valid uname and password.  These would not 
normally be the uname and password passed in from the request object 
(assuming some variety of forms based authentication) since you don't 
normally have hundreds or even thousands of users setup with database 
privileges.  Rather, the servlet uses it's own credentials to access 
the database and retrieve the user's specific credentials stored in an

ordinary table.  The problem is that web.xml is not a secure place to 
store the servlet's credentials, especially if you're running Tomcat on

a UNIX machine with many applications and many developers, not all of 
whom should have access to the particular servlet's credentials.  I 
have asked that same question on several different venues, but the few

answers I've gotten have all been non sequitur, and I think that's 
because the question has not been fully understood.  A discussion of 
issues like that (especially for folks coming from an apache/cgi world

where good solutions are well-known) would be very valuable.

Beyond that, if you need readers or folks to beta test examples and 
procedures, I'd be more that happy to help out.

-- Rob


--On Saturday, March 03, 2001 02:51:35 AM -0600 Adam Fowler 
[EMAIL PROTECTED] wrote:

 Hi all,

 I will shortly be writing a book for Sams Publishing in a similar
 format to the recently released(and well received) book on Python.

 I currently have the task of writing a proposal for content of the
 book. The book's target audience is web developers who will be using
 Tomcat. It will be based on Tomcat 4.0, but will also be useful for
 Tomcat 3.x.

 I am e-mailing this list to ask for serious suggestions for sections
 of the book. From installation through configuration to deploying
 custom applications.

 Any help would be appreciated and would benefit everyone as this
book
 is meant to be for you people.

 If any Tomcat User Group(TUG) members wish to write user
 documentation for Tomcat (The 'paths' that have been discussed) then
 drop me an e-mail and maybe we can help each other.

 Regards,
 Adam.

 
 Adam Fowler
 Second year Computer Science undergraduate
 University of Wales, Aberystwyth
 Carroll College, WI, USA(2000-2001)
 web: http://gucciboy.dyndns.org/aff9 
 e-mail: [EMAIL PROTECTED] 
 "Every new beginning comes from some other beginning's end"
 




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





   _ _ _ _   __ _ _ _ _
  /\_\_\_\_\/\_\ /\_\_\_\_\_\
 /\/_/_/_/_/   /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
/\/_/__\/_/ __/\/_//\/_/  PROFUNDUM VIDITUR
   /\/_/_/_/_/ /\_\  /\/_//\/_/
  /\/_/ \/_/  /\/_/_/\/_//\/_/ (Whatever is said in Latin
  \/_/  \/_/  \/_/_/_/_/ \/_/  appears profound)

  Rob Tanner
  McMinnville, Oregon
  [EMAIL PROTECTED] 


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


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

log file

2001-03-03 Thread Nguyen Truong Giang

Hi,

How can I report all error messages into a log file?


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




Re: Error 500?

2001-03-03 Thread David Ireland

Thanks for the reply - I think I have this all in there already here's 
the CLASSPATH section of my tomcat.bat

DOES this look right?

*

rem - Set Up The Runtime Classpath 
--

:setClasspath
set CP=%TOMCAT_HOME%\classes

rem Try to determine if TOMCAT_HOME contains spaces
if exist %TOMCAT_HOME%\lib\servlet.jar goto dynClasspath
echo Your TOMCAT_HOME appears to contain spaces.
echo Unable to set CLASSPATH dynamically.
goto staticClasspath

:dynClasspath
set _LIBJARS=
for %%i in (%TOMCAT_HOME%\lib\*.jar) do call %TOMCAT_HOME%\bin\cpappend.bat 
%%i
if not "%_LIBJARS%" == "" goto gotLibJars
echo Unable to set CLASSPATH dynamically.
if "%OS%" == "Windows_NT" goto staticClasspath
echo Note: To set the CLASSPATH dynamically on Win9x systems
echo   only DOS 8.3 names may be used in TOMCAT_HOME!
goto staticClasspath

:gotLibJars
echo Including all jars in %TOMCAT_HOME%\lib in your CLASSPATH.
rem Note: _LIBJARS already contains a leading semicolon
set CP=%CP%%_LIBJARS%
goto chkClasspath

:staticClasspath
echo Setting your CLASSPATH statically.
if exist "%TOMCAT_HOME%\lib\ant.jar" set CP=%CP%;%TOMCAT_HOME%\lib\ant.jar
if exist "%TOMCAT_HOME%\lib\jasper.jar" set 
CP=%CP%;%TOMCAT_HOME%\lib\jasper.jar
if exist "%TOMCAT_HOME%\lib\jaxp.jar" set CP=%CP%;%TOMCAT_HOME%\lib\jaxp.jar
if exist "%TOMCAT_HOME%\lib\parser.jar" set 
CP=%CP%;%TOMCAT_HOME%\lib\parser.jar
if exist "%TOMCAT_HOME%\lib\servlet.jar" set 
CP=%CP%;%TOMCAT_HOME%\lib\servlet.jar
if exist "%TOMCAT_HOME%\lib\webserver.jar" set 
CP=%CP%;%TOMCAT_HOME%\lib\webserver.jar

:chkClasspath
if "%CLASSPATH%" == "" goto noClasspath
set CP=%CP%;%CLASSPATH%
:noClasspath
if not exist "%JAVA_HOME%\lib\tools.jar" goto installClasspath
set CP=%CP%;%JAVA_HOME%\lib\tools.jar
:installClasspath
echo.
echo Using CLASSPATH: %CP%
echo.
set CLASSPATH=%CP%



From: "RaviShankar K" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: Error 500?
Date: Sun, 4 Mar 2001 14:30:24 +0900

Hi

Put all jar files which are under TOMCAT_HOME/lib in your class path.
They are servlet.jar, jasper.jar .. etc

Ravi
- Original Message -
From: "David Ireland" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 04, 2001 AM 09:12
Subject: Error 500?


Hi

I am using tomcat 3.2.1 and JDK 1.3 under Windows 98.  I have installed
tomcat ok and I can access it through localhost:8080. It also runs the
servlet examples ok but when I try to run the JSP examples I get errors... 
I
have set up JAVA_HOME and TOMCAT_HOME in tomcat.bat which also references
TOMCAT_HOME\lib\tools.jar.

Any help greatly appreciated,  also could someone tell me how I view
previous messages on this list...

Thanks

Error: 500
Location: /examples/jsp/num/numguess.jsp
Internal Servlet Error:

javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
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.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
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(Thread.java:484)

Root cause:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
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

Re: PostgreSQL

2001-03-03 Thread Qiqi Dong

I'm using the same JDBC driver. The problem I got is that it doesn't support
CallableStatement. Also, PostgreSQL's function won't return Recordset. So,
if you plan to use stored procedure for query and call it from your java
application, you are out of luck. I don't know when there will be fixes.

Qiqi

- Original Message -
From: "Markus Keller OrcaSoft" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 03, 2001 2:29 AM
Subject: Re: PostgreSQL


 Hello Mikhail


 I am compiling PostgreSQL 7.0.3 to be used with the Tomcat 3.2.1 web
 application. Does anyone have any success stories or nightmares about
 postgresql and java connectivity. What drivers did you use and why?
 Please share.


 I use the JDBC Java 2 driver which comes with the postgresql source
  src/interfaces/jdbc ). Until now I have no problems. But at the moment i
 run only some tests. I plane to publish my first application in november.

 Markus


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



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