RE: Problem connecting Tomcat 4.0.1 with IIS 5.0

2002-01-17 Thread Miao, Franco CAWS:EX

you forgot to change 8080 to 80, when Tomcat install, 8080 is default port. 

http://localhost  always mean 80 port
 

-Original Message-
From: Chuck Rockey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 17, 2002 1:38 PM
To: [EMAIL PROTECTED]
Subject: Problem connecting Tomcat 4.0.1 with IIS 5.0



Hi All,

I have Tomcat and IIS running fine separately, but when I try and access a 
file that should be redirected by isapi_redirect.dll I get a 500 error.

i.e. this works:
http://localhost:8080/examples/jsp/num/numguess.jsp

this doesn't:
http://localhost/examples/jsp/num/numguess.jsp

The contents of uriworkermap.properties is:
/*.jsp=ajp13

I used http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/ as a 
guide to get this far.

Any suggestions would be greatly appreciated.

Chuck


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
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: SQLServer JDBCRealm

2002-01-09 Thread Miao, Franco CAWS:EX

no need to do anything with JDBCRealm, just copy 3 .jar tom \lib folder,
then use standard SQL Server JDBC syntax to connect to SQL will work.

Franco

-Original Message-
From: Andrew Wilcox [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 1:52 PM
To: Tomcat Users List
Subject: SQLServer JDBCRealm


Hi,

I am having a problem configuring a JDBCRealm under Tomcat 4.0.1 for FORM
based authentication. I'm using a SQLServer database and I get the following
exception in the Catalina log when I try to authenticate:

[Microsoft][SQLServer JDBC Driver] Can't start a cloned connection while in
manual transaction mode.

Thanks.

Andrew.
Andrew Wilcox
MentorGen LLC
614.846.0838 x 1008
[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]




Crystal report work with Tomcat

2001-12-11 Thread Miao, Franco CAWS:EX

Hi there, 

anyone has experience about show Crystal report in Jsp on Tomcat? anything
need to install in Tomcat?

Franco 

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




RE: SQL*Server JDBC Driver

2001-12-06 Thread Miao, Franco CAWS:EX

go to MS download SQL JDBC driver, that one is the best for SQL server

put .jar files in \common\lib\

Franco 



-Original Message-
From: Timlin, Bob [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 10:41 AM
To: '[EMAIL PROTECTED]'
Subject: SQL*Server JDBC Driver


Hello, I am trying to get the SQL*Server driver to work with Tomcat 4.0.
The driver I am using is Opta2000.jar.  

The message I am getting is Error Loading Driver:
java.lang.ClassNotFoundException: com.inet.tds.TdsDriver 

I believe this is because I am not putting the driver in the right directory
under Tomcat, but cannot figure out where I should put it.  Can somebody
tell me where it belongs?

Thanks in advance.

Bob.


--
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: SQL*Server JDBC Driver

2001-12-06 Thread Miao, Franco CAWS:EX

why u need to do Runtime.getRuntime().freeMemory()/1000)? Pls provide more
detail info.

you may do 

try {
   }

catch {   }

if no exception come up, your code suppose ran. Regarding to freeMomery, JVM
will do it itself, no need to worry too much. Regard to SQL, always put
().close mothed after each SQL statement ran. 


Franco


-Original Message-
From: Niclas Rothman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 10:38 AM
To: 'Tomcat Users List'
Subject: SV: SQL*Server JDBC Driver


Okey Miao, do you know how I can se if the changes have come through?
Is there a log for these things or do I have to print out the following code
from a jsp page:
out.println(+Runtime.getRuntime().freeMemory()/1000);
out.println(+Runtime.getRuntime().totalMemory()/1000);

Best Regards 
Niclas Rothman

-Oprindelig meddelelse-
Fra: Miao, Franco CAWS:EX [mailto:[EMAIL PROTECTED]]
Sendt: 6. december 2001 19:44
Til: 'Tomcat Users List'
Emne: RE: SQL*Server JDBC Driver


go to MS download SQL JDBC driver, that one is the best for SQL server

put .jar files in \common\lib\

Franco 



-Original Message-
From: Timlin, Bob [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 10:41 AM
To: '[EMAIL PROTECTED]'
Subject: SQL*Server JDBC Driver


Hello, I am trying to get the SQL*Server driver to work with Tomcat 4.0.
The driver I am using is Opta2000.jar.  

The message I am getting is Error Loading Driver:
java.lang.ClassNotFoundException: com.inet.tds.TdsDriver 

I believe this is because I am not putting the driver in the right directory
under Tomcat, but cannot figure out where I should put it.  Can somebody
tell me where it belongs?

Thanks in advance.

Bob.


--
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]

--
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: Need the 1,2,3 of JDBC realm (plz)

2001-12-05 Thread Miao, Franco CAWS:EX

1. try to put  .jar files in \common\lib 

2. directly put  
connectionURL=jdbc:as400://192.168.12.240/;libraries=itso?user=myuser;passw
ord=mypwd   in your Jsp code, that should works, not sure if you need to
put port number in your code, like 1433 for SQL server.


my code sample:

// Loading Microsoft SQL 2000 Server JDBC Driver

Class.forName(com.microsoft.jdbc.sqlserver.SQLServerDriver); 
Connection conn = DriverManager.getConnection 
 
(jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=sales;user=sa;passw
ord=password);

// Query statement
Statement SQLStatement = conn.createStatement();

// Generate query

String Query = select user from sales where
user=...;



My experience: I am using SQL 2000, I do the same way as I say above,
nothing changed in realm, it works fine. 
Always put JDBC driver maker's word on top of Tomcat's tech stuff, that is
the smartest way, as those JDBC driver makers have already test it.

Franco 



-Original Message-
From: Mike Kelley [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 3:08 PM
To: [EMAIL PROTECTED]
Subject: Need the 1,2,3 of JDBC realm (plz)


Before I begin I'd like to thank all the users of this (Highly used!) list,
you guys are patient, helpful,and greatly appreciated!


I'd like to set up a realm, I'm accessing an AS400, I have the drivers and
can access the db. Now I'd like to set up a secure app that will
authenticatge a user and allow them to run some prebuilt SQL statements,

I could use the basic 1,2,3 of how to do what I'd like (I'll do the reading
and experimenting to figure out the details but being such a newbie I don't
know where to start.


What I've done so far,

1. set up a directory under webapps (for the app)
within this directory I have a WEB-INF folder in this folder I have
my jdbc.jar files

2. put an entry into the httpd file toallow for recognition of the app.

3. made an entry into my server.xml file (which follows)
snip
  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=hit.as400.As400Driver
 
connectionURL=jdbc:as400://192.168.12.240/;libraries=itso?user=myuser;passw
ord=mypwd
  userTable=itsausr userNameCol=USNAM userCredCol=USATTR
 userRoleTable=itsausr roleNameCol=USAUTHL /
/snip

(I want the realm to only be for this app ... Context??, realm??? How to
make the difference?)

4. I need to set up the authority  HOW?? Do I need a login page? Is it a
popup? I would like a user to login to this area and then have full access
within this subtree (basic or form???)



5. what else am I missing



SIDE NOTE;
In the realm I'm using the same table for user roles as I am for Users ...
Is allowed???
The passwords are not plain text in the DB and this table was in existance
prior to me starting this project, but it has the users I want to give
access to the app and it has something I can use as a role.



TIA

MIKE

--
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]




setup global session, how ?

2001-11-30 Thread Miao, Franco CAWS:EX



Hi there,

how can I create a global session, that means the session (userid and
password) created in User login form can be used anywhere (any Jsp page) in
the site?  Right now I just can create session within individual Jsp, other
jsp page can't take advantage of it,  it shows null in other Jsp page.

Thanks,

Franco 


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




Tomcat 4.01 SSL - how to reduce the encription strength

2001-11-25 Thread Miao, Franco CAWS:EX

Hi there, did you get  any message like The name of the security
certificate is invalid or does not match the name of the site with your
self-signed certificate? I have made one for testing, but got that message.
Let me know if you didn't get that.

Franco 


-Original Message-
From: Tal Dayan [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 25, 2001 9:25 PM
To: Tomcat Users List
Subject: Tomcat 4.01 SSL - how to reduce the encription strength


Hello,

We are using Tomcat 4.01 standalone with self signed certificate and all
works just great. When we connect from IE, the browser indicates that the
encryption is 128 bit long.

Is there a way to instruct Tomcat to use a weaker encryption? Our motivation
is to reduce the CPU overhead since the data in that specific system is not
THAT important.

Thanks,

Tal


--
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]




Return Telnet result in Jsp how?

2001-11-24 Thread Miao, Franco CAWS:EX

Hi there, I got a project need to do with Jsp, which let user input their
userID and password in Jsp, then Jsp talk to backend Telnet server, and
return the login result in Jsp or Html format, further more it also can let
user run more query command.  Anyone can give me some idea for this?

Thanks!


Franco

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




RE: Return Telnet result in Jsp how?

2001-11-24 Thread Miao, Franco CAWS:EX

any web site as sample / doc reference ? thanks!

Franco 

-Original Message-
From: Huaxin [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 23, 2001 1:08 PM
To: Tomcat Users List
Subject: Re: Return Telnet result in Jsp how?


You should use a legacy system driver to do this.
one example would be BlackSmith at Celcorp, they
have a Java interface for it, good for me
(VT100, IBM 3725)

On Fri, 23 Nov 2001, Miao, Franco CAWS:EX wrote:

 Hi there, I got a project need to do with Jsp, which let user input their
 userID and password in Jsp, then Jsp talk to backend Telnet server, and
 return the login result in Jsp or Html format, further more it also can
let
 user run more query command.  Anyone can give me some idea for this?

 Thanks!


 Franco

 --
 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]

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




The name of the security certificate is invalid or does not match thename of the site.

2001-11-14 Thread Miao, Franco CAWS:EX

I already let  'CN' field that matches the name of the machine on which are
running tomcat when I generated the key with keytool, just wondering why I
still get  The name of the security certificate is invalid or does not
match the name of the site. message ? Anything I should do about server.xml
file?

Franco 

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




how to put self-made certificate for SSL

2001-11-13 Thread Miao, Franco CAWS:EX

Hi there, 


I have made a certificate with MS certicate server, want to put it into
Tomcat 4.01 for SSL website test, just wondering anyone has experience on
that, thanks!

Franco

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




what is the default place for keystore file in Tomcat

2001-11-13 Thread Miao, Franco CAWS:EX

what is the  default place  for keystore file in Tomcat 4.01, I use keytool
generate it, but it is located in my profile folder. 

Franco 

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




how to embed Javascript in Jsp?

2001-11-13 Thread Miao, Franco CAWS:EX




Basically I would like to put javascript file .js inside %%,
just don't know the syntax. thanks!


Franco 

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




SSL doesn't work in Tomcat 4.01

2001-11-13 Thread Miao, Franco CAWS:EX

What I did:

used command keytool -genkey -keyalg RSA  -alias tomcat generate a
.keystore file, then copied it to C:\ , and modified the server.xml file as
following. But no luck with SSL test, pls advise, thanks!  


 !-- Define an SSL HTTP/1.1 Connector on port 8443 --

Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
   keystoreFile=c:\.keystore
   keystorePass=password
   clientAuth=false protocol=TLS/
/Connector




Franco

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




show country / region by getRemoteAddr(), in Tomcat ?

2001-11-02 Thread Miao, Franco CAWS:EX

how to show country / region information in Jsp by getting remote IP address
with getRemoteAddr() ? Like the system get a remote IP address, and Jsp can
show up it from where. Does Tomcat can help this out?

Thanks!


Franco

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




getRemoteHost()

2001-10-31 Thread Miao, Franco CAWS:EX

Modified my code many times with getRemoteHost(), still only remote host's
IP, no host name.  DNS lookups are enabled by default, setting is 
enableLookups=true .

Any advise?  thanks!

Franco


Here is my server.xml file, created by installation.

!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to
the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port
8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second
Connector
 entry.  SSL support requires the following steps (see the SSL
Config
 HOWTO in the Tomcat 4.0 documentation bundle for more detailed
 instructions):
 * Download and install JSSE 1.0.2 or later, and put the JAR files
   into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
(Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
(Unix)
   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are
disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value 
 to -1 --

!-- Define an SSL HTTP/1.1 Connector on port 8443 --
!--
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS/
/Connector
--

!-- Define an AJP 1.3 Connector on port 8009 --
!--
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/
--

!-- Define a Proxied HTTP/1.1 Connector on port 8081 --
!-- See proxy documentation for more information about using this. --
!--
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8081 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 connectionTimeout=6
   proxyPort=80/
--

!-- Define a non-SSL HTTP/1.0 Test Connector on port 8082 --
!--
Connector
className=org.apache.catalina.connector.http10.HttpConnector
   port=8082 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0/
--

!-- An Engine represents the entry point (within Catalina) that
processes
 every request.  The Engine implementation for Tomcat stand alone
 analyzes the HTTP headers included with the request, and passes
them
 on to the appropriate Host (virtual host). --

!-- Define the top level container in our container hierarchy --
Engine name=Standalone defaultHost=localhost debug=0

  !-- The request dumper valve dumps useful debugging information about
   

RE: apache --- tomcat

2001-10-31 Thread Miao, Franco CAWS:EX

why don't you use IIS 5.0  which comes with Win2K Pro, my experience is that
Tomcat intergrate with Apache not easy for new beginer, also do you know
Tomcat can be used standalone? I use standalone Tomcat, so save much
trouble. ^=^

Franco 



-Original Message-
From: Lars Gentz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 12:12 PM
To: Tomcat-User
Subject: apache --- tomcat


hi list,

i have tomcat 4.0 and apache 1.3.22 on win2000Prof.
i´m new in this mailing list. i come from germany (... so my english is not
perfect - sorry...)
and i work in a small german software-company. we are developing a browser-
based software for
trading- company´s. we use *.jsp´s therefor.
my personal knowledge in this territory is very small --- but i try to
become bigger :-)

Here my question:

i try to connect the tomcat server with apache, about the warp-connector.
therefor i edited the httpd.conf file; i added the following lines at end
of the file:

# Apache --- tomcat
 LoadModule webapp_module libexec/mod_webapp.so
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy examples warpConnection /examples/
# end apache --- tomcat

but now i have an error-message while starting apache:
can´t find the mod_webapp module :-(

where can i get this module??? the only file i found on apache.org is the
mod_webapp.c ???

the following lines are in the server.xml of tomcat:

  Service name=Tomcat-Apache

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=0/

!-- Replace localhost with what your Apache ServerName is set
to --
Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache debug=0 appBase=webapps

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

  !-- Because this Realm is here, an instance will be shared
globally --
  Realm className=org.apache.catalina.realm.MemoryRealm /

/Engine

  /Service

is this all correct or are there mistakes???

i´m happy about every information:-)

thanx for helping me...


greetings from Delmenhorst in germany

Lars.


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

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




RE: apache --- tomcat

2001-10-31 Thread Miao, Franco CAWS:EX

one thing forgot to tell you, the article I feel very good for IIS and
Tomcat, 


http://www.vacodi.com/howto/tomcat/iisnt/index.html


-Original Message-
From: Miao, Franco CAWS:EX [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 1:24 PM
To: 'Tomcat Users List'
Subject: RE: apache --- tomcat


why don't you use IIS 5.0  which comes with Win2K Pro, my experience is that
Tomcat intergrate with Apache not easy for new beginer, also do you know
Tomcat can be used standalone? I use standalone Tomcat, so save much
trouble. ^=^

Franco 



-Original Message-
From: Lars Gentz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 12:12 PM
To: Tomcat-User
Subject: apache --- tomcat


hi list,

i have tomcat 4.0 and apache 1.3.22 on win2000Prof.
i´m new in this mailing list. i come from germany (... so my english is not
perfect - sorry...)
and i work in a small german software-company. we are developing a browser-
based software for
trading- company´s. we use *.jsp´s therefor.
my personal knowledge in this territory is very small --- but i try to
become bigger :-)

Here my question:

i try to connect the tomcat server with apache, about the warp-connector.
therefor i edited the httpd.conf file; i added the following lines at end
of the file:

# Apache --- tomcat
 LoadModule webapp_module libexec/mod_webapp.so
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy examples warpConnection /examples/
# end apache --- tomcat

but now i have an error-message while starting apache:
can´t find the mod_webapp module :-(

where can i get this module??? the only file i found on apache.org is the
mod_webapp.c ???

the following lines are in the server.xml of tomcat:

  Service name=Tomcat-Apache

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=0/

!-- Replace localhost with what your Apache ServerName is set
to --
Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache debug=0 appBase=webapps

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

  !-- Because this Realm is here, an instance will be shared
globally --
  Realm className=org.apache.catalina.realm.MemoryRealm /

/Engine

  /Service

is this all correct or are there mistakes???

i´m happy about every information:-)

thanx for helping me...


greetings from Delmenhorst in germany

Lars.


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

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

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




RE: comparison between SERVLET/JSP to Cold Fusion

2001-10-31 Thread Miao, Franco CAWS:EX

you need to pay thousand bucks for Coldfusion server first, no free server
in the market like tomcat.

Coldfusion is great product, it comes with lots feature, unlike Tomcat,
Coldfusion is a commerical product so you will find great support from
manufacturer.

I will say it depenps on what do you want to do with your biz.

Franco 


-Original Message-
From: Henry [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 2:20 PM
To: Tomcat Users List
Subject: comparison between SERVLET/JSP to Cold Fusion


I am not familiar with cold fusion, but when using html
can not fulfill our business needs for rich client side
control (like input masks), does other product has better
control on the client's side?



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

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




RE: getRemoteAddr() vs getRemoteHost()

2001-10-27 Thread Miao, Franco CAWS:EX

This is what my current seting in server.xml file, but still no luck! Aslo I
check all enableLookups value in server.xml file, they all are true.


---

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are
disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL HTTP/1.1 Connector on port 80 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=80 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value 
 to -1 --

Franco 


-Original Message-
From: Yoav Shapira [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 26, 2001 6:46 AM
To: [EMAIL PROTECTED]
Subject: Re: getRemoteAddr() vs getRemoteHost()


Hi,
My guess is you need to enable remote address lookups in your 
server.xml.  Since they are expensive to log, they are usually turned
off by default, and the behavior is to simply return the address
rather than the host.

Yoav

Miao, Franco CAWS:EX wrote:
 
  When I put the following code in my Jsp, it comes up two identical
 remote IP addresses, instead of one remote IP and one remote host name. My
 computer  has Internet IP and valid Internet DNS server. Any suggestion
 about
 that?
 
 Thanks!
 
 out.print( request.getRemoteAddr() );
 out.print( request.getRemoteHost() );
 
 Franco

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




getRemoteAddr() vs getRemoteHost()

2001-10-25 Thread Miao, Franco CAWS:EX

 When I put the following code in my Jsp, it comes up two identical
remote IP addresses, instead of one remote IP and one remote host name. My
computer  has Internet IP and valid Internet DNS server. Any suggestion
about
that?


Thanks!

out.print( request.getRemoteAddr() );
out.print( request.getRemoteHost() );

Franco




How to put getRemoteAddr() into SQL server table in Tomcat 4.0 ?

2001-10-24 Thread Miao, Franco CAWS:EX

Source code:

-



if (rs.next())

String updateip =Update tbluser set incomingip= 'request.getRemoteAddr()'
where uname =' + uname + ';

---

No erro come up, but it didn't put remote Ip address into SQL server's
table, value is null, if I change to   '+request.getRemoteAddr()+'  ,
you will see
'+request.getRemoteAddr()+' as the value in SQL table.

Don't know why, looks like request.getRemoteAddr() doesn't function in SQL
statement. Pls advise, thanks!


Franco



out.println ?

2001-10-21 Thread Miao, Franco CAWS:EX

Source code:


---
out.println(tdA HREF=http://localhost/adduser.jsp;You have no account

 here, please register one!/A/td);



Error code:


--
Unable to compile class for JSPNote: sun.tools.javac.Main has been
deprecated.

 ')' expected.
out.println(You have no account   




What I missed? Pls advise, thanks!


Franco 



RE: out.println ?

2001-10-21 Thread Miao, Franco CAWS:EX

I got this error now

String not terminated at end of line.
out.println(You have no account


Franco 



-Original Message-
From: naveen [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 21, 2001 9:39 PM
To: [EMAIL PROTECTED]
Subject: Re: out.println ?


hi,
use this!
 out.println(tdA HREF=\http://localhost/adduser.jsp\;You have no
account
 here, please register one!/A/td);



- Original Message -
From: Miao, Franco CAWS:EX [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 22, 2001 1:35 PM
Subject: out.println ?


 Source code:

 --
--
 ---
 out.println(tdA HREF=http://localhost/adduser.jsp;You have no
account

  here, please register one!/A/td);

 

 Error code:

 --
--
 --
 Unable to compile class for JSPNote: sun.tools.javac.Main has been
 deprecated.

  ')' expected.
 out.println(You have no account


 

 What I missed? Pls advise, thanks!


 Franco




RE: out.println ?

2001-10-21 Thread Miao, Franco CAWS:EX

I have cut and paste your code, stiil no luck! thanks.

Franco


-Original Message-
From: Shah, Chintan V (Chintan) [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 21, 2001 10:01 PM
To: '[EMAIL PROTECTED]'
Subject: RE: out.println ?


check out the number of quotes you are using...and try to do..as i've
written in my previous mail...

regards,
Chintan


-Original Message-
From: Miao, Franco CAWS:EX [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 10:16 AM
To: '[EMAIL PROTECTED]'
Subject: RE: out.println ?


I got this error now

String not terminated at end of line.
out.println(You have no account


Franco 



-Original Message-
From: naveen [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 21, 2001 9:39 PM
To: [EMAIL PROTECTED]
Subject: Re: out.println ?


hi,
use this!
 out.println(tdA HREF=\http://localhost/adduser.jsp\;You have no
account
 here, please register one!/A/td);



- Original Message -
From: Miao, Franco CAWS:EX [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 22, 2001 1:35 PM
Subject: out.println ?


 Source code:

 --
--
 ---
 out.println(tdA HREF=http://localhost/adduser.jsp;You have no
account

  here, please register one!/A/td);

 

 Error code:

 --
--
 --
 Unable to compile class for JSPNote: sun.tools.javac.Main has been
 deprecated.

  ')' expected.
 out.println(You have no account


 

 What I missed? Pls advise, thanks!


 Franco




how to change Tomcat default page

2001-10-19 Thread Miao, Franco CAWS:EX

Hi Guys,

how to change default page, for example  from index.html to default.jsp? in
server.xml file or where?

Thanks!
 

Franco 



RE: TomCat 4.0 first time user

2001-10-19 Thread Miao, Franco CAWS:EX

start Tomat in service manager if in NT.

Franco 

-Original Message-
From: Amjad Salameh [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 3:15 PM
To: [EMAIL PROTECTED]
Subject: TomCat 4.0 first time user


Hi all,

I am first time user of Tomcat. I just did two things.
first, i Installed jdk1.3.1_01 in my C:\jdk1.3.1_01
directory and 2nd thing, i installed
jakarta-tomcat-4.0 in  C:\jakarta-tomcat-4.0
directory. but i have a problem. i can't start the
Tomcat. i need to know how to set paths or classpaths.
if any one can modify his or her startup.bat,
shutdown.bat, and any other startup related files to
reflect my java kit directory and the Tomcat
directory.
i really appreciate everyone help.

Thanks,

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



RE: how to change Tomcat default page

2001-10-19 Thread Miao, Franco CAWS:EX

thanks Edward!

Franco 

-Original Message-
From: Edward Ivanovic [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 2:54 PM
To: [EMAIL PROTECTED]
Subject: RE: how to change Tomcat default page


Web.xml
Default Welcome File List section

-Original Message-
From: Miao, Franco CAWS:EX [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 5:33 PM
To: '[EMAIL PROTECTED]'
Subject: how to change Tomcat default page


Hi Guys,

how to change default page, for example  from index.html to default.jsp? in
server.xml file or where?

Thanks!
 

Franco 



How to change Tomcat default port from 8080 to standard port 80?

2001-10-18 Thread Miao, Franco CAWS:EX

How to change Tomcat default port from 8080 to standard port 80?

Thanks!

Franco 



how to setup virtual directory

2001-10-18 Thread Miao, Franco CAWS:EX

how to setup virtual directory that source directory located somewhere else,
not under the
tomcat tree.

Franco