how to connect a remote MS-SQL server?

2001-07-28 Thread Jerry QU



Hi All,

How to connect to a remote (Not at the same machine) MS-SQL 
database using JDBC-ODBC bridge?

looking for a simplesample code

TIA

Jerry Qu


Re: Apxs problem

2001-07-28 Thread Jerry QU

I have the same error on linux, so I use binary from www.apache.org

Jerry

- Original Message - 
From: Mykola A. Nickishov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 28, 2001 6:51 AM
Subject: Re: Apxs problem


 Aaron Cooper [EMAIL PROTECTED] writes:
 
  I re-installed the apache web server , building it from source.  Now I am trying 
to configure tomcat with apache using the mod_jk web adapter.  However, when I run 
apxs, it produces the following message:
  
  gcc -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_CORE -
  DSHARED_MODULE -I/usr/local/apache/include -I../common -I/opt/java1.2/include -I
  /opt/java1.2/include/hp-ux -DHPUX11GCC  -c ../common/jk_ajp12_worker.c
  apxs:Break: Command failed with rc=255
  Error with apxs
 
 I have the same :(
 
 -- 
 ICQ #83060237
 MAN-UANIC NIK6-RIPE
 



Re: how to connect a remote MS-SQL server?

2001-07-28 Thread Jerry QU

but, the client is on a linux machine...then How?

thanks

Jerry


  
- Original Message - 
From: Tim O'Neil [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 29, 2001 1:47 AM
Subject: Re: how to connect a remote MS-SQL server?


 At 10:52 AM 7/28/2001, you wrote:
 Hi All,
 
 How to connect to a remote (Not at the same machine) MS-SQL database using 
 JDBC-ODBC bridge?
 
 looking for a simple sample code
 
 Do you have the ms-sql client on your client machine? If so
 configure it for tcp/ip and then connect with the same jdbc
 code you would use for any data source.
 



how to send email from jsp?

2001-07-28 Thread Jerry QU



Hi All

how to send email from jsp (tomcat on linux)?

TIA

Jerry




jdbc odbc bridge on linux

2001-07-28 Thread Jerry QU



Hi All,

I posted question about how to use Sun's jdbc.odbc bridge from 
jsp on linux to access SQL server on windows. because all examples I saw were 
using LOCALdsn like jdbc:odbc:dsnName. but how to do it if theJSP is 
onlinux and the SQL server is on a remotehost.

something like jdbc:odbc:@host:port:DB_name(or 
DSN)???

I am kind of confused!!

TIA

Jerry





Re: virtual hosting conf question

2001-07-26 Thread Jerry QU

it works by using ajp12. what I missed was vhost setting in server.xml. and I did in 
right way but the code was actually comment out . a very very stupid mistake

thanks anyway

Jerry


 
- Original Message - 
From: Kaneda K [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 26, 2001 4:45 PM
Subject: Re: virtual hosting conf question


 I Might be wrong, but in order to allow Apache to communicate with tomcat, 
 you need to use ajp13 instead of 12. and did you correctly set mod_jk.so. ?
 
 At 07:01 26/07/2001 +0800, you wrote:
 Hi All,
 
 We are using Tomact3.2.3 and Apache1.3.20 with mod_jk.so.
 
 it works fine when use Directory:
 
  Alias /loc /home/.../path
 
  Directory /home/.../path
  Options Indexes FollowSymLinks
  /Directory
  JkMount /loc/servlet/* ajp12
  JkMount /loc/*.jsp ajp12
 
 But when trying virtual hosting:
 
 NameVirutalHost ip
 
  VirtualHost ip
  ServerName http://www.domain.comwww.domain.com
  DocumentRoot /home/.../path
  JkMount /servlet/* ajp12
  JkMount /*.jsp ajp12
  Directory /home/.../path
  Options Includes Indexes FollowSymlinks
  AllowOverride AuthConfig FileInfo Indexes Limit Options
  Order allow, deny
  Allow from all
  /Directory
 
  /VirtualHost
 
 WE are geting 404 error for all .jsp files and looks like the apache to 
 tomcat redirect not works
 
 anything missing?
 
 
 TIA
 
 Jerry
 
 
 
 
 
 



Re: apache+mod_jk+tomcat virtual host sample setting

2001-07-26 Thread Jerry QU

I fixed the problem

thanks 

Jerry


- Original Message - 
From: Dmitri Colebatch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 26, 2001 1:14 PM
Subject: Re: apache+mod_jk+tomcat virtual host sample setting


 Hi,
 
 http://www.mail-archive.com/tomcat-user@jakarta.apache.org/ is a wonderful
 place:
 
 search for httpd.conf server.xml virtual hosts example and the sixth
 result is:
 
 http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg24768.html
 
 that should give you a start (o:
 
 cheesr
 dim
 
 On Thu, 26 Jul 2001, Jerry Qu wrote:
 
  Hi All,
  
  is there any one has working sample(s) for setting apache+mod_jk+tomcat virtual 
host in httpd.conf and server.xml (if needed )
  
  thanks
  
  Jerry Qu
  
 



virtual hosting conf question

2001-07-25 Thread Jerry QU



Hi All,

We are using Tomact3.2.3 and Apache1.3.20 with 
mod_jk.so.

it works fine when use Directory:

 Alias /loc "/home/.../path"

 Directory 
"/home/.../path"
  Options Indexes 
FollowSymLinks
 /Directory
 JkMount /loc/servlet/* ajp12
 JkMount /loc/*.jsp ajp12

But when trying virtual hosting:
 
NameVirutalHost ip
 
 VirtualHost ip
  ServerName www.domain.com
  DocumentRoot 
"/home/.../path"
  JkMount /servlet/* 
ajp12
  JkMount /*.jsp 
ajp12
 Directory 
"/home/.../path"
  Options Includes Indexes 
FollowSymlinks
  AllowOverride AuthConfig 
FileInfo Indexes Limit Options
  Order allow, 
deny
  Allow from 
all
 /Directory

 /VirtualHost

WEare geting 404 errorfor all .jsp files and looks 
like the apache to tomcat redirect not works

anything missing?


TIA

Jerry



 



apache+mod_jk+tomcat virtual host sample setting

2001-07-25 Thread Jerry Qu



Hi All,

is there any one has working sample(s) for setting 
apache+mod_jk+tomcat virtual hostin httpd.conf and server.xml (if needed 
)

thanks

Jerry Qu


Re: mod_jserv.so question

2001-07-23 Thread Jerry QU

Hi John,

we have the same question.
but:
how to install using the binary ?
any reqirement on the version of Apache?
do we need to re build Apache?

thanks


Jerry


 


- Original Message - 
From: John Hebert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 23, 2001 11:38 PM
Subject: Re: mod_jserv.so question


 isleofdogs wrote:
 
  I am installing the latest binary version of Tomcat
  with Apache 1.3.19 on a Linux box.
  
  The user guide has the following in the mini 
  Tomcat-Apache config file:
  
  # (1) Loading the jserv module that serves as Tomcat's apache adapter.
   LoadModule jserv_module libexec/mod_jserv.so
  
  I read in the FAQ that I should use the Tomcat shared object here.
  
  Where do I get that? It's not part of the binary download
  and I don't see it on the download page.
  
  Do I need to make my own?
  If so, which one do I make?
  
  iod
 
 
 mod_jserv.so is the old connector and is being replaced by mod_jk.so, 
 which you can find here:
 
 http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/bin/linux/
 
  
 
 John Hebert
 
 
 
 
 -- 
 John Alex Hebert
 [EMAIL PROTECTED]
 System Engineer
 



Re: re mod_jserv.so + New Question

2001-07-23 Thread Jerry QU

John,

which jk_mod should i download from
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/bin/linux/

mod_jk-eapi.so or mod_jk-noeapi.so

thanks



- Original Message - 
From: John Bazeley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 24, 2001 5:41 AM
Subject: RE: re mod_jserv.so + New Question


 When you say similar, what's the errno?
 
 I'm guessing Mr / Ms OfDogs (or can I call you Isle?) is
 running linux and 111 is therefore connection refused. That
 error is usually returned by TCP when the port it tried to
 connect to (8009) does not have a server on it, so either:
 
 1. you are starting apache before tomcat (don't do this)
 2. you're running a slow machine and tomcat didn't get round
to starting the Ajp13 connection handler yet before you started
Apache
 3. Tomcat is not starting an Ajp13 connection handler (i.e. the lines
I mentioned in server.conf are not activated)
 
 Check tomcat's output. You should see
 
 -mm-dd hh:mm:ss - PoolTcpConnector: Starting Ajp13ConnectionHandler on
 8009
 
 when you start up. If you don't, recheck server.xml.
 
 Cheers,
 --
 John
 
  -Original Message-
  From: Nance, Michael [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, 24 July 2001 09:12
  To: '[EMAIL PROTECTED]'
  Subject: RE: re mod_jserv.so + New Question
 
 
  I am getting a similar error but have those lines in my server.xml...
  where else can I look?!?!?!?
 
  -Original Message-
  From: John Bazeley [mailto:[EMAIL PROTECTED]]
  Sent: Monday, July 23, 2001 2:03 PM
  To: [EMAIL PROTECTED]
  Subject: RE: re mod_jserv.so + New Question
 
 
  check server.xml.
 
  Do you have the Ajp13 connection handler activated
  (i.e. make sure the following lines exist and are not
  commented out)
 
  !-- Apache AJP13 support.  --
  Connector className=org.apache.tomcat.service.PoolTcpConnector
  Parameter name=handler
 
  value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/
  Parameter name=port value=8009/
  /Connector
 
  (note this was from 3.2.2 - don't imagine it's changed)
 
  Cheers,
  --
  John
 
   -Original Message-
   From: isleofdogs [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, 24 July 2001 08:36
   To: [EMAIL PROTECTED]
   Subject: re mod_jserv.so + New Question
  
  
   At 04:19 AM 7/24/01 +0800, you wrote:
   Hi John,
   
   we have the same question.
   but:
   how to install using the binary ?
   any reqirement on the version of Apache?
   do we need to re build Apache?
  
   I've made a lot of progress.
  
   In my httpsd.com (im running a secure server)
   but this will work in httpd.conf I added the following:
  
   LoadModule jk_module /usr/lib/apache/mod_jk.so
  
   IfModule mod_jk.c
   Include /usr/local/jakarta/jakarta-tomcat-3.2.3/conf/mod_jk.conf-auto
   /IfModule
  
  
   From there you need to edit the tomcat config files.
  
  
  
   I can run the test servlets on 8080 running the tomcat server
   but when I try to run them on my apache+mod_ssl server I get:
  
   I am now getting the following error in the logs:
  
   # tail mod_jk.log
   [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111
   [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
  
   ...
  
   (In the browser)
   Internal Server Error
  
   The server encountered an internal error or misconfiguration and
   was unable
   to complete your request.
  
  
  
   Anyone have any thoughts on why running servlets creates these
   errors?
  
   Thanks in advance,
   iod
  
  
 
 



tomcat+oracle sample

2001-07-17 Thread Jerry Qu



Hi All

could someone provide a sample jspfor tomcat 
that access oracle 8i with detailed setting?

TIA

Jerry



tomcat and oracle 8.1.6 for linux

2001-07-17 Thread Jerry Qu



Hi All,

we have tomcat 3.2.1 and oracle 8.1.6 installed on 
a linux machine.

from the bookOracle 8i for Linux 
StarterKit: "Also note that although other releasesof 8.1.6 on 
other platforms support JDK 1.2 for JDBC application development, the 8.1.6.1.0 
release of Orcale8i for Linux does not ship with the classes necessary to 
support JDK 1.2 development"(p157)

we tried to use the jdbc classes from the oracle8i 
CD. it can only work with JDK1.1.6 but not higher versions. 

because the Jdbc classes are necessary and only 
from oracle8i CD ( ? I can not find from oracle website). 

Does it mean we Can Only use JDK1.1.6 as the Java 
engine of Tomcat 3.2.1?
Any alternative way such that higher Java Version 
could be used for Tomcat with Oracle 8.1.6, like new oracle jdbc driver availabe 
or specical setting that put higher java engine and the old Oracle Jdbc driver 
together?

TIA


Jerry Qu



how to set virtual host for stand-alone Tomcat?

2001-07-16 Thread Jerry QU



Hi All,

how to set virtual hosts for stand-alone Tomcat?

does it have to be cooperate with Apache to use virtual 
hosts?

TIA

Jerry