config help

2003-07-23 Thread Geoff Peters
Hi - I am currently in the process of deploying a web app using Tomcat 4.1.18, MySQL 
3.23 on a Win2K Server. The app will be used heavily for a period of 3 - 4 hours, 
(probably a couple of thousand hits per minute), then never used again. 

I am wondering what exactly I should do to enhance performace - other than some 
changes recommended to the server.xml file (i.e. setting debug to zero), I am not 100% 
sure what some of the other changes will do, specifically min and max processors, and 
other settings. Can someone please give me some pointers as to what I can so to 
maximize performance over this 3-4 hour period??

Application is a series of MySQL based reports (all servlets), containing several 
select statements and using the MySQL JDBC driver.

Thanks for any advice!

Geoff

Geoff Peters, SCJPPhone  : (441) 296-9640
Applications DeveloperFax: (441) 292-1509
Logic Communications  E-mail : [EMAIL PROTECTED]
12 Par-La-Ville Road  WWW: http://www.logic.bm
Hamilton, Bermuda  HM JX


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



RE: config help

2003-07-23 Thread Geoff Peters
Andoni - thanks for the advice - someone else just mentioned the same thing in a reply 
(Riaan) - setting the datasource connection pool parameter - where would this 
parameter go? Is it a parameter at the server level config or application level?  We 
have a MySQL person in house, I will ask her about the maximum concurrent MySQL 
connections

Thanks, Geoff

-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 8:54 AM
To: Tomcat Users List
Subject: Re: config help


I would recommend you write a tiny java program that keeps opening
connections to your database and counting the number of open connections.
Then when it starts getting errors you can shut the connections but record
the maximum number of open connections.

Then since your period is so intense you should put your initial pool of
open connections to very close to this number.  e.g. if your max number of
connections is, 170 (like mine) then set your initial pool size to 140-150
so that there is practically no connection opening/closing done by your
program while it's running.

Andoni.


- Original Message -
From: Geoff Peters [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 12:38 PM
Subject: config help


Hi - I am currently in the process of deploying a web app using Tomcat
4.1.18, MySQL 3.23 on a Win2K Server. The app will be used heavily for a
period of 3 - 4 hours, (probably a couple of thousand hits per minute), then
never used again.

I am wondering what exactly I should do to enhance performace - other than
some changes recommended to the server.xml file (i.e. setting debug to
zero), I am not 100% sure what some of the other changes will do,
specifically min and max processors, and other settings. Can someone please
give me some pointers as to what I can so to maximize performance over this
3-4 hour period??

Application is a series of MySQL based reports (all servlets), containing
several select statements and using the MySQL JDBC driver.

Thanks for any advice!

Geoff

Geoff Peters, SCJPPhone  : (441) 296-9640
Applications DeveloperFax: (441) 292-1509
Logic Communications  E-mail : [EMAIL PROTECTED]
12 Par-La-Ville Road  WWW: http://www.logic.bm
Hamilton, Bermuda  HM JX


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



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


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



RE: config help

2003-07-23 Thread Geoff Peters
Thanks - I am plugging through that now. Another question - if I use the following as 
a basic connection creator / counter:

public static void main (String[] args) {


try{


for (int i = 0; i  1; i++){

Class.forName(org.gjt.mm.mysql.Driver);

con = 
DriverManager.getConnection(jdbc:mysql://MYIPADDRESS/DBNAME?autoReconnect=true,user,pass);

System.out.println(Got connection:  + i );

}

 }


catch(SQLException se){

System.out.println (SQL Error:  + se.getMessage());

}


catch(ClassNotFoundException cnfe){

System.out.println(Class Not Found Exception:  + 
cnfe.getMessage());

}




}



What exactly does this do? Is it leaving connections open and then gc'ing them 
whenever it wants? I assume because I am not closing them anywhere that they are not 
being instantly destroyed.

-Original Message-
From: Riaan Oberholzer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 9:01 AM
To: Tomcat Users List
Subject: RE: config help


It sounds as if you are indeed opening/closing
connections as you need them.

You need to configure a datasource for your db
connections:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html

Its fairly easy to set up and the gain is significant.
I would say it is probably a good practice to use this
anyway, even if you do not expect heavy traffic.


--- Geoff Peters [EMAIL PROTECTED] wrote:
 Andoni - thanks for the advice - someone else just
 mentioned the same thing in a reply (Riaan) -
 setting the datasource connection pool parameter -
 where would this parameter go? Is it a parameter at
 the server level config or application level?  We
 have a MySQL person in house, I will ask her about
 the maximum concurrent MySQL connections
 
 Thanks, Geoff
 
 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 23, 2003 8:54 AM
 To: Tomcat Users List
 Subject: Re: config help
 
 
 I would recommend you write a tiny java program that
 keeps opening
 connections to your database and counting the number
 of open connections.
 Then when it starts getting errors you can shut the
 connections but record
 the maximum number of open connections.
 
 Then since your period is so intense you should put
 your initial pool of
 open connections to very close to this number.  e.g.
 if your max number of
 connections is, 170 (like mine) then set your
 initial pool size to 140-150
 so that there is practically no connection
 opening/closing done by your
 program while it's running.
 
 Andoni.
 
 
 - Original Message -
 From: Geoff Peters [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, July 23, 2003 12:38 PM
 Subject: config help
 
 
 Hi - I am currently in the process of deploying a
 web app using Tomcat
 4.1.18, MySQL 3.23 on a Win2K Server. The app will
 be used heavily for a
 period of 3 - 4 hours, (probably a couple of
 thousand hits per minute), then
 never used again.
 
 I am wondering what exactly I should do to enhance
 performace - other than
 some changes recommended to the server.xml file
 (i.e. setting debug to
 zero), I am not 100% sure what some of the other
 changes will do,
 specifically min and max processors, and other
 settings. Can someone please
 give me some pointers as to what I can so to
 maximize performance over this
 3-4 hour period??
 
 Application is a series of MySQL based reports (all
 servlets), containing
 several select statements and using the MySQL JDBC
 driver.
 
 Thanks for any advice!
 
 Geoff
 
 Geoff Peters, SCJPPhone  : (441)
 296-9640
 Applications DeveloperFax: (441)
 292-1509
 Logic Communications  E-mail :
 [EMAIL PROTECTED]
 12 Par-La-Ville Road  WWW:
 http://www.logic.bm
 Hamilton, Bermuda  HM JX
 
 

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

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

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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


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



RE: config help

2003-07-23 Thread Geoff Peters
I guess my confusion arises from lack of complete understanding of what is going on. 

So, does Concurrent Users differ from requests? 

If a connection is opened in the init() method, and closed in the destroy method, 
would that not mean that the concurrency only applies to the amount of time needed 
to instantiate, create, use to get data and then destroy? After the page has been 
requested and passed to the browser, wouldn't the connection be available for gc 
immediately?

So if I am assuming 2000 - 3000 users accessing the information over the same time 
frame (3 - 4 hours), what would be the estimate of required concurrent users? Does 
that mean simultaneous HTTP / JDBC requests??

Thanks..

Geoff

-Original Message-
From: Riaan Oberholzer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 9:01 AM
To: Tomcat Users List
Subject: RE: config help


It sounds as if you are indeed opening/closing
connections as you need them.

You need to configure a datasource for your db
connections:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html

Its fairly easy to set up and the gain is significant.
I would say it is probably a good practice to use this
anyway, even if you do not expect heavy traffic.


--- Geoff Peters [EMAIL PROTECTED] wrote:
 Andoni - thanks for the advice - someone else just
 mentioned the same thing in a reply (Riaan) -
 setting the datasource connection pool parameter -
 where would this parameter go? Is it a parameter at
 the server level config or application level?  We
 have a MySQL person in house, I will ask her about
 the maximum concurrent MySQL connections
 
 Thanks, Geoff
 
 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 23, 2003 8:54 AM
 To: Tomcat Users List
 Subject: Re: config help
 
 
 I would recommend you write a tiny java program that
 keeps opening
 connections to your database and counting the number
 of open connections.
 Then when it starts getting errors you can shut the
 connections but record
 the maximum number of open connections.
 
 Then since your period is so intense you should put
 your initial pool of
 open connections to very close to this number.  e.g.
 if your max number of
 connections is, 170 (like mine) then set your
 initial pool size to 140-150
 so that there is practically no connection
 opening/closing done by your
 program while it's running.
 
 Andoni.
 
 
 - Original Message -
 From: Geoff Peters [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, July 23, 2003 12:38 PM
 Subject: config help
 
 
 Hi - I am currently in the process of deploying a
 web app using Tomcat
 4.1.18, MySQL 3.23 on a Win2K Server. The app will
 be used heavily for a
 period of 3 - 4 hours, (probably a couple of
 thousand hits per minute), then
 never used again.
 
 I am wondering what exactly I should do to enhance
 performace - other than
 some changes recommended to the server.xml file
 (i.e. setting debug to
 zero), I am not 100% sure what some of the other
 changes will do,
 specifically min and max processors, and other
 settings. Can someone please
 give me some pointers as to what I can so to
 maximize performance over this
 3-4 hour period??
 
 Application is a series of MySQL based reports (all
 servlets), containing
 several select statements and using the MySQL JDBC
 driver.
 
 Thanks for any advice!
 
 Geoff
 
 Geoff Peters, SCJPPhone  : (441)
 296-9640
 Applications DeveloperFax: (441)
 292-1509
 Logic Communications  E-mail :
 [EMAIL PROTECTED]
 12 Par-La-Ville Road  WWW:
 http://www.logic.bm
 Hamilton, Bermuda  HM JX
 
 

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

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

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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


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



heap size

2003-07-23 Thread Geoff Peters
Yoav - Where do you specify heap size? I understand it is a parameter of the java 
command, but is in a Tomcat startup script somewhere? Or do I just execute it at the 
command line?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 9:55 AM
To: Tomcat Users List
Subject: RE: config help



Howdy,
Give at much memory to the heap as your server hardware will allow (-Xmx
java option).  I guess Windows doesn't have a ulimit-equivalent so you
probably don't need to worry about that.

Remove all unneeded connectors, valves, services from server.xml.
Remove all unneeded webapps (examples, docs, etc.) from tomcat.

If you're using a logging system that allows this configuration, turn
off debug-level statements.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Geoff Peters [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 7:39 AM
To: [EMAIL PROTECTED]
Subject: config help

Hi - I am currently in the process of deploying a web app using Tomcat
4.1.18, MySQL 3.23 on a Win2K Server. The app will be used heavily for
a
period of 3 - 4 hours, (probably a couple of thousand hits per minute),
then never used again.

I am wondering what exactly I should do to enhance performace - other
than
some changes recommended to the server.xml file (i.e. setting debug to
zero), I am not 100% sure what some of the other changes will do,
specifically min and max processors, and other settings. Can someone
please
give me some pointers as to what I can so to maximize performance over
this
3-4 hour period??

Application is a series of MySQL based reports (all servlets),
containing
several select statements and using the MySQL JDBC driver.

Thanks for any advice!

Geoff

Geoff Peters, SCJPPhone  : (441) 296-9640
Applications DeveloperFax: (441) 292-1509
Logic Communications  E-mail : [EMAIL PROTECTED]
12 Par-La-Ville Road  WWW: http://www.logic.bm
Hamilton, Bermuda  HM JX


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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


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



RE: heap size

2003-07-23 Thread Geoff Peters
Thanks Yoav - one last dumb question and I will leave you alone! So by adding that to 
my environment variables list, Tomcat knows to add it as a startup parameter for Java? 
Or do I need to specify something else in the setclasspath.bat file as well?? Is there 
an easy way to check the JVM to see the parameters once it is running??

Thanks!

Geoff

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 12:36 PM
To: Tomcat Users List
Subject: RE: heap size



Howdy,

Yoav - Where do you specify heap size? I understand it is a parameter
of
the java command, but is in a Tomcat startup script somewhere? Or do I
just
execute it at the command line?

Add 
JAVA_OPTS='-Xmx512m'
to 
$CATALINA_HOME/bin/catalina.sh
on unix.  On windows, you can do this with a JAVA_OPTS environment
variable, or (if running as a service) via the registry.  Search this
list's archives for more information.

The 512m above specifies a maximum heap of 512 MB.  Run java -X to see
other options.

Yoav Shapira 



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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


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



Weird occurrence - thoughts??

2003-04-02 Thread Geoff Peters
Ok here is a new one to me - on my dev box (WIn 2K server, Tomcat 4.1.18), plugging 
along this morning, not working with config files at all, when I get the servlet not 
available message, on servlets and .html pages. Can't start anything from the 
manager, Tomcat will restart, but still cannot seem to find applications running 
minutes ago. Haven't touched the JAR files in weeks, everything has been running 
smoothly.  Got this in my localhost output log. Stopped and started TOmcat repeatedly, 
still couldn't get a single page to serve (the manager app worked, as well as the root 
homepage 'Welcome to Tomcat...'). Rebooted the box and all seems well, but very 
concerned!!

Ideas? Thanks, Geoff

log file:



2003-04-02 10:20:20 ContextConfig[/election]: Marking this application unavailable due 
to previous error(s)
2003-04-02 10:20:20 StandardManager[/election]: Seeding random number generator class 
java.security.SecureRandom
2003-04-02 10:20:20 StandardManager[/election]: Seeding of random number generator has 
been completed
2003-04-02 10:20:20 StandardContext[/election]: Context startup failed due to previous 
errors
2003-04-02 10:20:20 HTMLManager: list: Listing contexts for virtual host 'localhost'
2003-04-02 10:20:21 HTMLManager: start: Starting web application at '/election'
2003-04-02 10:20:21 StandardHost[localhost]: standardHost.start /election
2003-04-02 10:20:21 WebappLoader[/election]: Deploying class repositories to work 
directory D:\Work_Files\jakarta-tomcat-4.1.18\work\Standalone\localhost\election
2003-04-02 10:20:21 WebappLoader[/election]: Deploy class files /WEB-INF/classes to 
D:\Work_Files\jakarta-tomcat-4.1.18\webapps\election\WEB-INF\classes
2003-04-02 10:20:21 WebappLoader[/election]: Deploy JAR /WEB-INF/lib/classes.jar to 
D:\Work_Files\jakarta-tomcat-4.1.18\webapps\election\WEB-INF\lib\classes.jar
2003-04-02 10:20:21 WebappLoader[/election]: Deploy JAR /WEB-INF/lib/cos.jar to 
D:\Work_Files\jakarta-tomcat-4.1.18\webapps\election\WEB-INF\lib\cos.jar
2003-04-02 10:20:21 WebappLoader[/election]: Deploy JAR /WEB-INF/lib/tools.jar to 
D:\Work_Files\jakarta-tomcat-4.1.18\webapps\election\WEB-INF\lib\tools.jar
2003-04-02 10:20:21 ContextConfig[/election] Exception processing JAR at resource path 
/WEB-INF/lib/cos.jar
javax.servlet.ServletException: Exception processing JAR at resource path 
/WEB-INF/lib/cos.jar
at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
at 
org.apache.catalina.core.StandardHostDeployer.start(StandardHostDeployer.java:458)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:872)
at org.apache.catalina.servlets.ManagerServlet.start(ManagerServlet.java:1014)
at 
org.apache.catalina.servlets.HTMLManagerServlet.start(HTMLManagerServlet.java:379)
at 
org.apache.catalina.servlets.HTMLManagerServlet.doGet(HTMLManagerServlet.java:149)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:550)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 

RE: Weird occurrence - thoughts??

2003-04-02 Thread Geoff Peters
I would agree that (surprisingly?) it is probably a windows issue, but no to both of 
your suggestions, it is completely sitting on the local file system, and I didn't 
manually change permissions on that folder - however if it happens again I will check 
and see if they were changed somehow.

Thanks!

geoff

-Original Message-
From: James Lewis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 10:45 AM
To: Tomcat Users List
Subject: RE: Weird occurrence - thoughts??


Hmm, looking at the exception it seems the explanation may lie here:

 - Root Cause -
 java.io.IOException: The system cannot find the path specified
   at java.io.WinNTFileSystem.createFileExclusively(Native Method)


Is it possible that permissions were changed somehow on the
/WEB-INF/lib/cos.jar file/directory?

Or do you have some interesting network mounted NT file system that was
unavailable?

Gut feeling it's an OS thing anyway.

Cheers,

james


James Lewis
Java Developer
www.goodtechnology.com


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


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



RE: Weird occurrence - thoughts??

2003-04-02 Thread Geoff Peters
Once again John has proved to be UNstumpable!!!

I ran chkdsk and had some errors in my swap file...

Thanks again John!

Geoff

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 10:50 AM
To: Tomcat Users List
Subject: Re: Weird occurrence - thoughts??



The error was in a native method.  Looks like a disk error to me.  I would 
run chkdsk:

- Root Cause -
java.io.IOException: The system cannot find the path specified
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1313)

Either that, or you ran out of swap and/or temp disk space.

John

On Wed, 2 Apr 2003 10:37:50 -0400, Geoff Peters [EMAIL PROTECTED] wrote:

 Ok here is a new one to me - on my dev box (WIn 2K server, Tomcat 4.1.18) 
 , plugging along this morning, not working with config files at all, when 
 I get the servlet not available message, on servlets and .html pages. 
 Can't start anything from the manager, Tomcat will restart, but still 
 cannot seem to find applications running minutes ago. Haven't touched the 
 JAR files in weeks, everything has been running smoothly.  Got this in my 
 localhost output log. Stopped and started TOmcat repeatedly, still 
 couldn't get a single page to serve (the manager app worked, as well as 
 the root homepage 'Welcome to Tomcat...'). Rebooted the box and all seems 
 well, but very concerned!!

 Ideas? Thanks, Geoff

 log file:



 2003-04-02 10:20:20 ContextConfig[/election]: Marking this application 
 unavailable due to previous error(s)
 2003-04-02 10:20:20 StandardManager[/election]: Seeding random number 
 generator class java.security.SecureRandom
 2003-04-02 10:20:20 StandardManager[/election]: Seeding of random number 
 generator has been completed
 2003-04-02 10:20:20 StandardContext[/election]: Context startup failed 
 due to previous errors
 2003-04-02 10:20:20 HTMLManager: list: Listing contexts for virtual host 
 'localhost'
 2003-04-02 10:20:21 HTMLManager: start: Starting web application at 
 '/election'
 2003-04-02 10:20:21 StandardHost[localhost]: standardHost.start /election
 2003-04-02 10:20:21 WebappLoader[/election]: Deploying class repositories 
 to work directory D:\Work_Files\jakarta-tomcat- 
 4.1.18\work\Standalone\localhost\election
 2003-04-02 10:20:21 WebappLoader[/election]: Deploy class files /WEB- 
 INF/classes to D:\Work_Files\jakarta-tomcat-4.1.18\webapps\election\WEB- 
 INF\classes
 2003-04-02 10:20:21 WebappLoader[/election]: Deploy JAR /WEB- 
 INF/lib/classes.jar to D:\Work_Files\jakarta-tomcat- 
 4.1.18\webapps\election\WEB-INF\lib\classes.jar
 2003-04-02 10:20:21 WebappLoader[/election]: Deploy JAR /WEB- 
 INF/lib/cos.jar to D:\Work_Files\jakarta-tomcat- 
 4.1.18\webapps\election\WEB-INF\lib\cos.jar
 2003-04-02 10:20:21 WebappLoader[/election]: Deploy JAR /WEB- 
 INF/lib/tools.jar to D:\Work_Files\jakarta-tomcat- 
 4.1.18\webapps\election\WEB-INF\lib\tools.jar
 2003-04-02 10:20:21 ContextConfig[/election] Exception processing JAR at 
 resource path /WEB-INF/lib/cos.jar
 javax.servlet.ServletException: Exception processing JAR at resource path 
 /WEB-INF/lib/cos.jar
   at 
 org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930) 


   at 
 org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
   at 
 org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
   at 
 org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243) 


   at 
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
  


   at 
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
   at 
 org.apache.catalina.core.StandardHostDeployer.start(StandardHostDeployer.java:458) 


   at org.apache.catalina.core.StandardHost.start(StandardHost.java:872)
   at 
 org.apache.catalina.servlets.ManagerServlet.start(ManagerServlet.java:1014) 


   at 
 org.apache.catalina.servlets.HTMLManagerServlet.start(HTMLManagerServlet.java:379) 


   at 
 org.apache.catalina.servlets.HTMLManagerServlet.doGet(HTMLManagerServlet.java:149) 


   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
  


   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
  


   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) 


   at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  


   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 


   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995

Slightly OT: SocketException with MySQL

2003-04-01 Thread Geoff Peters
I am using Tomcat 4.1.18, MySQL 3.23, newest driver, running on Linux 7.3. Problem is 
similar to others who have posted on this subject, just want some advice (can't seem 
to get a definite answer). 

I'm not using connection pooling. If I walk away and leave the server running for 
several hours, I come back and cannot access the database via the servlet, the 
catalina.out file tells me SQL Error: Communication link failure: 
java.net.SocketException. Happens whether or not I am running TOmcat remotely on or 
the same box as MySQL (i.e. not a network issue). I made sure all of my connection 
objects were close in the destroy() method of each servlet thinking all of the sockets 
were full, still didn't work. I just recently set autoReconnect = true in my 
server.xml realm tag - that doesn't seem to make a difference.  

Should that work? Or, should I be closing the connection object IMMEDIATELY after each 
executeUpdate or executeQuery? Currently am opening a connection in the init() method, 
and killing in the destroy(). 

Any suggestions greatly appreciated!! 

Thanks, Geoff 


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



RE: Server.xml

2003-03-17 Thread Geoff Peters
Sandra - I have had similar experiences with similar frustrating results, and it 
always seems to be placement of the Context /Context tags - for some reason 
sometimes you need closing /Context tags, other times you don't, I can't seem to 
figure out when to use them and when not to, so I end up fiddling around with various 
combinations until Tomcat starts! (that was a really dumb answer but it works for me)

Geoff

-Original Message-
From: Hunter, Sandra [mailto:[EMAIL PROTECTED]
Sent: Monday, March 17, 2003 5:00 PM
To: 'Tomcat Users List'
Subject: Server.xml



Frustration abounds:
I am plodding through a tomcat tutorial and it suggests modifying the
Server.xml file to include a new context path line to allow for playing with
a sample file.
Everything works tickety boo until I do that, then Tomcat won't startup at
all. When I enter the startup command I just get a really brief flash of
screen and poof! It's gone again.
When I take the new line out of the server.xml file the problem persists:
poof! Gone.
That is the only change I make.
Any thoughts?

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


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



[OT] - Excellent API

2003-03-13 Thread Geoff Peters
Waayy off topic here, just wanted to pass along a link to a very useful and well 
built Java API for reading from and writing to Excel spreadsheets, works like a charm. 
I was so impressed I had to pass it along to someone!

http://www.andykhan.com/

Geoff

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



default document question

2003-02-19 Thread Geoff Peters
Dumb question here, but how do I change the default document in a webapp from 
index.html in Tomcat Standalone 4.1.18?

Thanks, Geoff

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




RE: default document question

2003-02-19 Thread Geoff Peters
Thanks guys, it worked fine!

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 19, 2003 11:17 AM
To: Tomcat Users List
Subject: Re: default document question


In web.xml in the welcome file List. Example:
welcome-file-list
   welcome-filei-need-more-cowbell.html/welcome-file
   welcome-fileindex.jsp/welcome-file
   welcome-fileindex.html/welcome-file
   welcome-fileindex.htm/welcome-file
/welcome-file-list

For more detail see section 9.9 of the Servlet 2.3 Spec from sun.

-Tim

Geoff Peters wrote:
 Dumb question here, but how do I change the default document in a webapp from 
index.html in Tomcat Standalone 4.1.18?
 
 Thanks, Geoff
 


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


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




RE: JDBC Realm problem

2003-02-18 Thread Geoff Peters
Gregg - Are Tomcat and MySQL on the same box? I had some previous issues with not 
being able to reach the box, also had to do a lot of friggin with the permissions in 
MySQL.  I am assuming you have granted permission to 'uname' @ 'localhost'

Here is a copy of my server.xml as is right now and functioning:


Server port=8005 shutdown=SHUTDOWN debug=0

  Service name=Tomcat-Standalone

   

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=80 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true /

 
Engine name=Standalone defaultHost=localhost debug=0


  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/

  
Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.gjt.mm.mysql.Driver
   connectionURL=jdbc:mysql://198.000.000.00/MailAdmn
  connectionName=user connectionPassword=pass
userTable=tblUsers userNameCol=user_name userCredCol=user_pass
  userRoleTable=tblUser_Role roleNameCol=role_name digest = md5/ 
  
  
  Host name=localhost debug=0 appBase=webapps unpackWARs=true 
autoDeploy=true

   
   Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=gpeters_access_log. suffix=.txt
 pattern=common resolveHosts=false/

Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=gpeters_log. suffix=.txt
timestamp=true/
 
  Context path= docBase=ROOT debug=99/
  
  
Context path=/Mail docBase=Mail debug=99
  reloadable=true crossContext=true 
  
Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver
connectionURL=jdbc:mysql://198.000.000.00/MailAdmn
connectionName=user connectionPassword=pass  userTable=tblUsers  
 userNameCol=user_name userCredCol=user_pass
userRoleTable=tblUser_Role roleNameCol=role_name digest = md5/
 

  
 Logger className=org.apache.catalina.logger.FileLogger
  prefix=tomcat_MailApp_log. suffix=.txt timestamp=true / 
/Context
  /Host

/Engine

  /Service

/Server
-Original Message-
From: Barley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 1:40 PM
To: [EMAIL PROTECTED]
Subject: JDBC Realm problem


I am unable to start Tomcat with a JDBC Realm
configured. I am guessing it is because Tomcat can't
find the JDBC driver, but it should be able to. I have
the driver in shared/lib and shared/classes. Here is my
Realm configuration from server.xml:

Realm

className=org.apache.catalina.realm.JDBCRealm
driverName=org.gjt.mm.mysql.Driver

connectionURL=jdbc:mysql://localhost/dbmis?user=uname
amp;password=pass
userTable=users
userNameCol=userlogin
userCredCol=userpass
userRoleName=usergroups
roleNameCol=groupname
debug=99
/

I added the %amp; when Tomcat wouldn't start because of
an XML error when I had a plain '' in there.

This is the relevant section of catalina.out:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
Catalina.start: LifecycleException:  Exception opening
database connection:  java.sql.SQLException:
org.gjt.mm.mysql.Driver
LifecycleException:  Exception opening database
connection:  java.sql.SQLException:
org.gjt.mm.mysql.Driver
at
org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.jav
a:681)
at
org.apache.catalina.core.ContainerBase.start(ContainerB
ase.java:1173)
at
org.apache.catalina.core.StandardEngine.start(StandardE
ngine.java:347)
at
org.apache.catalina.core.StandardService.start(Standard
Service.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardS
erver.java:2189)
at
org.apache.catalina.startup.Catalina.start(Catalina.jav
a:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.j
ava:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.j
ava:180)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMetho
dAccessorImpl.java:61)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegat
ingMethodAccessorImpl.java:40)
at
java.lang.reflect.Method.invoke(Method.java:335)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.ja
va:203)
- Root Cause -
java.sql.SQLException: org.gjt.mm.mysql.Driver
at

RE: JTHOWTO

2003-02-12 Thread Geoff Peters
Too funny John!

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 4:37 PM
To: 'Tomcat Users List'
Subject: RE: JTHOWTO



Steve ON
Excuse me, Mr. Ricker, I don't believe we have ever met before, but if we
have and I have forgotten *please* excuse me, as I am not well versed in all
of the, how shall we say, social graces.  Now, I am sure there are others
on this list who will *cringe* at my question, but I am still having a LOT
of problems with my BIG FEET and all I want to know, Mr. Ricker, is How did
you know I have big feet?  I hope you will reply, Capiche?
Steve OFF

John

 -Original Message-
 From: Ben Ricker [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 12, 2003 3:26 PM
 To: Tomcat Users List
 Subject: Re: JTHOWTO
 
 
 On Wed, 2003-02-12 at 14:00, Alberto A C A S Magalhães wrote:
 
  John, i am using your document, Red Hat Linux 7.2 + 
 Apache... + Tomcat
  4.1.18,
  I finish installing, java and tomcat.
  When i startup tomcat, it gives an error, of, JAVA_HOME 
 environment variable
  not correctly defined!!
  Can you help me...
 
 Although I am not John, I will fill his rather huge shoes for a
 moment...
 
 You need to set the JAVA_HOME variable. You can do this by setting it
 manually on the command line (type: 'JAVA_HOME=/path/to/java/install')
 or. better yet, assign the variable in the startup.sh file. Include a
 line at the beginning under the comments:
 
 JAVA_HOME=/path/to/java/install
 
 The '/path/to/java/install' depends on how you installed Java. If by
 RPM, I believe it is /usr/java/jdk_version#.
 
 Ben Ricker
 
 -- 
 Ben Ricker [EMAIL PROTECTED]
 Wellinx.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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


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




RE: JDBC Realm Authentication Problem

2003-02-07 Thread Geoff Peters
Sean - I didn't omit anything in my post - the serverl.xml is as it is in my app. I 
think you might have inadvertently answered my question, does my context level realm 
physically have to reside inside the context tag? (do I have to put a /context on 
after the realm)? I manager to get everything working, it is authenticating the 
manager app against the database fine now, and the lower level authentication works as 
well, I am not sure which realm is being used where, I am going to create a new 
database and see that it is working right.


Thanks for the reply!!

Geoff

-Original Message-
From: Sean Dockery [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 06, 2003 8:34 PM
To: Tomcat Users List
Subject: Re: JDBC Realm Authentication Problem


Where I wrote did you remove, I meant to write did you omit.  Basically 
I want to know exactly what you edited out of the server.xml file that you 
put in your message because you didn't think it was relevant.

Basically, I suspect that if you left the memory realm at the engine level 
that authentication is failing against the memory realm (so it doesn't 
bother checking your JDBC realm at the engine level).

At 17:27 2003-02-06 -0700, you wrote:
Um.  I don't see a context-level realm in there.  There is a host-level 
realm, however.  :-)

Did you remove anything at all (such as other Realms) from the server.xml 
file that you presented?

At 13:29 2003-02-06 -0400, you wrote:
A small problem here, can't seem to figure out why.

In the following server.xml, if I remove the context level realm, the 
authentication fails against the database (I can connect on startup, but 
I cannot authenticate to access the manager or admin applications). 
However, if I put the context level JDBC realm back in (exactly the same 
as the top level realm)

Removing the top level realm makes no difference on startup or 
authentication. Shouldn't I be able to authenticate for the manager and 
admin outside of a contect level database?


Thanks!!

Geoff


SERVER.XML:

Server port=8005 shutdown=SHUTDOWN debug=0

   Service name=Tomcat-Standalone



 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 port=80 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=100 debug=0 connectionTimeout=2
useURIValidationHack=false disableUploadTimeout=true /


 Engine name=Standalone defaultHost=localhost debug=0


   Logger className=org.apache.catalina.logger.FileLogger
   prefix=catalina_log. suffix=.txt
   timestamp=true/


  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
   driverName=org.gjt.mm.mysql.Driver
connectionURL=jdbc:mysql://somewhere.com/MailAdmn
   connectionName=user connectionPassword=password
 userTable=tblUsers userNameCol=user_name 
 userCredCol=user_pass
   userRoleTable=tblUser_Role roleNameCol=role_name digest = 
 md5/


   Host name=localhost debug=0 appBase=webapps unpackWARs=true 
 autoDeploy=true


Valve className=org.apache.catalina.valves.AccessLogValve
  directory=logs  prefix=gpeters_access_log. 
 suffix=.txt
  pattern=common resolveHosts=false/

 Logger className=org.apache.catalina.logger.FileLogger
  directory=logs  prefix=gpeters_log. suffix=.txt
 timestamp=true/

   Context path= docBase=ROOT debug=99/


 Context path=/Mail docBase=Mail debug=99
   reloadable=true crossContext=true /

 Realm  className=org.apache.catalina.realm.JDBCRealm 
 debug=99
 driverName=org.gjt.mm.mysql.Driver
 connectionURL=jdbc:mysql://somewhere.com/MailAdmn
 connectionName=user 
 connectionPassword=password  userTable=tblUsers 
 userNameCol=user_name   userCredCol=user_pass
 userRoleTable=tblUser_Role 
 roleNameCol=role_name digest = md5/


 Logger className=org.apache.catalina.logger.FileLogger
   prefix=tomcat_MailApp_log. suffix=.txt 
 timestamp=true /


   /Host

 /Engine

   /Service

/Server


Geoff Peters, BScFE, AIT  Phone  : (441) 296-9640
Applications DeveloperFax: (441) 292-1509
Logic Communications  E-mail : [EMAIL PROTECTED]
12 Par-La-Ville Road  WWW: http://www.logic.bm
Hamilton, Bermuda  HM JX


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

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com



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

RE: COMMUNICATION LINK FAILURE

2003-02-07 Thread Geoff Peters
Laxmikanth - I was getting the exact same exception about a week ago, I spent a lot of 
time playing with MySQL and TOmcat, came to discover that it was something to so with 
the server where MYSQL was residing, my network admin saw the requests form TOmcat 
hitting the box, but it was not accepting any requests - try telnet'ing to port 3306 
on the MySQL box and see if you can connect - if you can't (if it drops the 
connection) it is not a Tomcat or MySQL problem to my knowledge, possible something to 
do with the OS or permissions - I scrapped it and used another box.

Geoff

-Original Message-
From: Laxmikanth M.S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 12:20 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: COMMUNICATION LINK FAILURE


Hi all,
well and wish the same...
I am getting a peculiar error .. 
I am using MySQL3.23.43 with tomcat4.1.12.
I have written a bean which talks with DB and updates a table...this is
running in a loop and so I have used PreparedStatement
after 33 rows are Inserted it shows the below error

java.sql.SQLException: Communication link failure: java.io.IOException
at org.gjt.mm.mysql.MysqlIO.clearAllReceive(Unknown Source)
at org.gjt.mm.mysql.MysqlIO.sqlQueryDirect(Unknown Source)
at org.gjt.mm.mysql.Connection.execSQL(Unknown Source)
at org.gjt.mm.mysql.PreparedStatement.executeQuery(Unknown Source)
at hkbeans.fundProfileToDB.updateprice(fundProfileToDB.java:2058)
at hkbeans.fundProfileToDB.csvToDB(fundProfileToDB.java:70)
at hkbeans.fundProfileToDB.main(fundProfileToDB.java:34)

what could be the problem
thanks in advance for the help
regards
Laxmikanth

*
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*

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


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




JDBC Realm Authentication Problem

2003-02-06 Thread Geoff Peters
A small problem here, can't seem to figure out why. 

In the following server.xml, if I remove the context level realm, the authentication 
fails against the database (I can connect on startup, but I cannot authenticate to 
access the manager or admin applications). However, if I put the context level JDBC 
realm back in (exactly the same as the top level realm)

Removing the top level realm makes no difference on startup or authentication. 
Shouldn't I be able to authenticate for the manager and admin outside of a contect 
level database?


Thanks!!

Geoff


SERVER.XML:

Server port=8005 shutdown=SHUTDOWN debug=0

  Service name=Tomcat-Standalone

   

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=80 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true /

 
Engine name=Standalone defaultHost=localhost debug=0


  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/

  
 Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.gjt.mm.mysql.Driver
   connectionURL=jdbc:mysql://somewhere.com/MailAdmn
  connectionName=user connectionPassword=password
userTable=tblUsers userNameCol=user_name userCredCol=user_pass
  userRoleTable=tblUser_Role roleNameCol=role_name digest = md5/
  
  
  Host name=localhost debug=0 appBase=webapps unpackWARs=true 
autoDeploy=true

   
   Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=gpeters_access_log. suffix=.txt
 pattern=common resolveHosts=false/

Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=gpeters_log. suffix=.txt
timestamp=true/
 
  Context path= docBase=ROOT debug=99/
  
  
Context path=/Mail docBase=Mail debug=99
  reloadable=true crossContext=true /
  
Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver
connectionURL=jdbc:mysql://somewhere.com/MailAdmn
connectionName=user connectionPassword=password  
userTable=tblUsers userNameCol=user_name   
userCredCol=user_pass
userRoleTable=tblUser_Role roleNameCol=role_name digest = 
md5/
 
  
 Logger className=org.apache.catalina.logger.FileLogger
  prefix=tomcat_MailApp_log. suffix=.txt timestamp=true / 


  /Host

/Engine

  /Service

/Server


Geoff Peters, BScFE, AIT  Phone  : (441) 296-9640
Applications DeveloperFax: (441) 292-1509
Logic Communications  E-mail : [EMAIL PROTECTED]
12 Par-La-Ville Road  WWW: http://www.logic.bm
Hamilton, Bermuda  HM JX


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




RE: MemoryRealm

2003-02-06 Thread Geoff Peters
James - If you can find it the WROX book (Professional Apache Tomcat) - ISBN 
1-86100-773-6 has pretty good examples of everything - I used it today to help me 
debug a JDBC realm, it is pretty good step by step instruction

Geoff

-Original Message-
From: James R. Marcus [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 06, 2003 5:53 PM
To: [EMAIL PROTECTED]
Subject: MemoryRealm


Besides the Realm Configuration HOW-TO on the tomcat documentation page,
where can I find a verbose document with an example of using
MemoryRealm?  I only have one user that needs to authenticate.
 
Thanks,
James
 

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




[OFFTOPIC] MySQL Exception - Need Suggestions

2003-02-03 Thread Geoff Peters
Somewhat offtopic, I apologize if it is completely, I know there are some SMART people 
on this list (ass kissing always helps :)

Tomcat 4.1.18
MySQL 3.22.32
MySQL Connector J 2.0.14

Trying to establish a connection from client to server, getting a MySQL Versions 
Older than 3.23.15 do not support transactions exception. 

Fine - I really don't care as I just need to build a 2 table form input application, 
really simple, I don't really care about transactions, so why am I getting this error 
through Tomcat when I try to start? Is there something I need to configure somewhere 
before I try to download and update MySQL?

Thanks, Geoff

Geoff Peters, BScFE, AIT  Phone  : (441) 296-9640
Applications DeveloperFax: (441) 292-1509
Logic Communications  E-mail : [EMAIL PROTECTED]
12 Par-La-Ville Road  WWW: http://www.logic.bm
Hamilton, Bermuda  HM JX


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




debugging help

2003-01-31 Thread Geoff Peters
I am trying to configure a new realm for MySQL, and I am finding debuggin problems at 
this point is next to impossible and very frustrating. When I try to start Tomcat, the 
console window pops up for a second, an exception message is thrown and the window 
closes before I can read it. The log files do not show any of this output, so I am 
stuck with changing things one at a time to see if I can get Tomcat to fire up and 
generate logs!

Any advice on how to get output to a log file when I can't start Tomcat???

Thanks, Geoff



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




RE: debugging help

2003-01-31 Thread Geoff Peters
YESSS!!! thanks Matt, that did exactly what I wanted to, showed me it was a driver 
exception, the window stayed open. John - I tried your idea and the window still 
closed imediately after the exception. Hamish - When I actually get it running again I 
am going to install it as a service!!

Thanks again guys, Geoff

-Original Message-
From: Raible, Matt [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 9:58 AM
To: 'Tomcat Users List'
Subject: RE: debugging help


Here's an Ant task that can be very helpful in these situations:

target name=start.tomcat
java classname=org.apache.catalina.startup.Bootstrap fork=yes
jvmarg value=-Dcatalina.home=${tomcat.home}/
arg value=start/
classpath
fileset dir=${tomcat.home}
include name=bin/bootstrap.jar/
include name=server/catalina.jar/
/fileset
/classpath
/java
/target

If you're not using Ant, you can use the following command line argument
from your $CATALINA_HOME directory:

java -cp bin/bootstrap.jar;server/catalina.jar
org.apache.catalina.startup.Bootstrap start

HTH,

Matt

 -Original Message-
 From: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 31, 2003 6:52 AM
 To: [EMAIL PROTECTED]
 Subject: debugging help
 
 
 I am trying to configure a new realm for MySQL, and I am 
 finding debuggin problems at this point is next to impossible 
 and very frustrating. When I try to start Tomcat, the console 
 window pops up for a second, an exception message is thrown 
 and the window closes before I can read it. The log files do 
 not show any of this output, so I am stuck with changing 
 things one at a time to see if I can get Tomcat to fire up 
 and generate logs!
 
 Any advice on how to get output to a log file when I can't 
 start Tomcat???
 
 Thanks, Geoff
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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


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




MySQL/Tomcat startup problem

2003-01-31 Thread Geoff Peters
Hello again - I have spent most of the day on this and don't seem to be getting 
anywhere, searched the archives here and the java.sun.com forums to no avail. Running 
Tomcat 4.1.18 on my dev box Win2K Server, running MySQL 3.23.49 on the same network on 
a  Redhat 7.3 install. I am simply trying to make a database connection, have 2 tables 
created with usernames and roles, usernames and passwords, and set the mysqladmin 
password to connect through the string. The systems guy sees my packets hitting the 
box, so it doesn't seem to be a network / firewall problem. 

Here is the realm tag (commented out the memory realm):

   Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver
  
connectionURL=jdbc:mysql://javadev.logic.bm/steve?user=user;password=password
 
  userTable=tblUsers userNameCol=user_name userCredCol=user_pass
  userRoleTable=tblUser_Role roleNameCol=role_name /

Here is the output (no matter what I change the username / password to):



Catalina.start: LifecycleException:  Exception opening database connection:  jav
a.sql.SQLException: Communication link failure: java.io.IOException
LifecycleException:  Exception opening database connection:  java.sql.SQLExcepti
on: Communication link failure: java.io.IOException
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:681)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
97)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:218
9)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
- Root Cause -
java.sql.SQLException: Communication link failure: java.io.IOException
at com.mysql.jdbc.MysqlIO.init(Unknown Source)
at com.mysql.jdbc.Connection.connectionInit(Unknown Source)
at com.mysql.jdbc.jdbc2.Connection.connectionInit(Unknown Source)
at com.mysql.jdbc.Driver.connect(Unknown Source)
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:616)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:679)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
97)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:218
9)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Stopping service Tomcat-Standalone
Catalina.stop: LifecycleException:  Coyote connector has not been started
LifecycleException:  Coyote connector has not been started
at org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1
075)
at org.apache.catalina.core.StandardService.stop(StandardService.java:54
6)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2224
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:543)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


Communication link failure seems a little vague, anyone point me in the right 
direction?

Thanks!!!

Geoff


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




RE: MySQL/Tomcat startup problem

2003-01-31 Thread Geoff Peters
I do get a slightly different error:

SEVERE: Parse Fatal Error at line 199 column 69: The entity name must immediatel
y follow the '' in the entity reference.
org.xml.sax.SAXParseException: The entity name must immediately follow the '' i
n the entity reference.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Er
rorHandlerWrapper.java:232)

However moving the  and ; around in every possible different spot does not seem to 
make a difference..

-Original Message-
From: Raible, Matt [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 2:21 PM
To: 'Tomcat Users List'
Subject: RE: MySQL/Tomcat startup problem


Try using an amp; in place of the ; in your connectionURL:

connectionURL=jdbc:mysql://javadev.logic.bm/steve?user=useramp;password=pa
ssword

 -Original Message-
 From: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 31, 2003 11:08 AM
 To: [EMAIL PROTECTED]
 Subject: MySQL/Tomcat startup problem
 
 
 Hello again - I have spent most of the day on this and don't 
 seem to be getting anywhere, searched the archives here and 
 the java.sun.com forums to no avail. Running Tomcat 4.1.18 on 
 my dev box Win2K Server, running MySQL 3.23.49 on the same 
 network on a  Redhat 7.3 install. I am simply trying to make 
 a database connection, have 2 tables created with usernames 
 and roles, usernames and passwords, and set the mysqladmin 
 password to connect through the string. The systems guy sees 
 my packets hitting the box, so it doesn't seem to be a 
 network / firewall problem. 
 
 Here is the realm tag (commented out the memory realm):
 
Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.gjt.mm.mysql.Driver
   
 connectionURL=jdbc:mysql://javadev.logic.bm/steve?user=user;p
 assword=password
  
   userTable=tblUsers userNameCol=user_name 
 userCredCol=user_pass
   userRoleTable=tblUser_Role roleNameCol=role_name /
 
 Here is the output (no matter what I change the username / 
 password to):
 
 
 
 Catalina.start: LifecycleException:  Exception opening 
 database connection:  jav
 a.sql.SQLException: Communication link failure: java.io.IOException
 LifecycleException:  Exception opening database connection:  
 java.sql.SQLExcepti
 on: Communication link failure: java.io.IOException
 at 
 org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:681)
 at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
 
 at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
 )
 at 
 org.apache.catalina.core.StandardService.start(StandardService.java:4
 97)
 at 
 org.apache.catalina.core.StandardServer.start(StandardServer.java:218
 9)
 at 
 org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at 
 org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at 
 org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at 
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 - Root Cause -
 java.sql.SQLException: Communication link failure: java.io.IOException
 at com.mysql.jdbc.MysqlIO.init(Unknown Source)
 at com.mysql.jdbc.Connection.connectionInit(Unknown Source)
 at 
 com.mysql.jdbc.jdbc2.Connection.connectionInit(Unknown Source)
 at com.mysql.jdbc.Driver.connect(Unknown Source)
 at 
 org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:616)
 at 
 org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:679)
 at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
 
 at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
 )
 at 
 org.apache.catalina.core.StandardService.start(StandardService.java:4
 97)
 at 
 org.apache.catalina.core.StandardServer.start(StandardServer.java:218
 9)
 at 
 org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at 
 org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at 
 org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at 
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 Stopping service Tomcat-Standalone
 Catalina.stop: LifecycleException:  Coyote connector has not 
 been started
 LifecycleException:  Coyote connector has not been

RE: tomcat-server

2003-01-24 Thread Geoff Peters
How about a metric adjustable wrench?

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 24, 2003 10:04 AM
To: 'Tomcat Users List'
Subject: RE: tomcat-server



LOL

I used to run a pizza joint.  I loved sending the new guy to one of the
other stores in the chain to borrow the screen stretcher.  If the other
managers were on the ball, we could keep the guy roaming around the city for
hours.  ;)

John


 -Original Message-
 From: Victor Lewis [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 24, 2003 9:02 AM
 To: 'Tomcat Users List'
 Subject: RE: tomcat-server
 
 
 Wait am minute.  Someone sent this guy out to buy some open source
 software and to make sure that Tomcat is fully compatible 
 with ASP.  Might
 this be the software equivalent of sending the new guy to get 
 a left handed
 monkey wrench?
 
 
  -Original Message-
  From: Leela Nanda [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 23, 2003 8:07 PM
  To: [EMAIL PROTECTED]
  Subject: tomcat-server
  
  
  
  Dear Sir,
 I, Leelanand Reddy hereby would like to 
  introduce myself as a Java programmer in a software 
  development firm in Kuala Lumpur, Malaysia. 
  Hence I'm hereby submitting my queries for which I need a 
  detailed explanation.
  
  We have been developing a web based application for a reputed 
  semi-government organization in Malaysia. My application is 
  to display live information on the web pages where as the 
  live feed is a frequent flow during day hours(from 8:30am to 
  6:30pm). The live information on the web pages is displayed 
  by Java Swing Applets, for this currently I'm implementing 
  the Tomcat3.2.4. But according to suggestion of 
  technologists I want to buy the  Tomcat Server 
  
  1. So I need to know, whether Tomcat Server is fully 
  compatible with   ASP or not (because my web pages are 
  developed in ASP)
  
  2. Can I have a price quotation for Tomcat Sever?
  
  3. What is the right place (vendor)in Malaysia that I can put 
  a purchase-order for above?
  
  4. Finally, whether the server can  serve number of users?
  
  I'm so grateful to you if you respond for this mail.
  Thanking you,
  
  Sincerely yours,
  Leelanand Reddy B
  
  
 
 --
 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]




context-param

2003-01-15 Thread Geoff Peters
Yoav (or anyone else that can help me) - I made the changes to my web.xml file as 
recommended. Two questions:
1) do I need a seperate context-param tag for each context parameter, or can I put 
them all in the same block?
2) where is the best place to call getServletContext().getInitParameter(driver) 
within a servlet? In the init() method? Or on the fly, for example at the start of the 
doGet() method?

Thanks again, I appreciate the help!!

Geoff

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 5:22 PM
To: Tomcat Users List
Subject: RE: Can't find servlet


Hi,
I didn't read previous messages in your thread, so my answer may be
incorrect / out of context... Why are you repeating all the init-params
that are the same, such as the driver?  It's better practice to have
just one context-param for this.  Every servlet can then get it by doing
getServletContext().getInitParameter(driver);

You don't need to declare your servlets in $CATALINA_HOME/conf/web.xml,
only in your own webapp's web.xml.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Geoff Peters [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 4:19 PM
To: Tomcat Users List
Subject: RE: Can't find servlet

John - You solved another one of my problems that I wasn't even sure
that I
had! (did that make sense??) If I uncomment that servlet-mapping block
for
the invoker my servlet works, if not, my servlet throws the servlet
not
available error. The funny thing is I have declared all of my servlets
in
my application web.xml, do I need to define these in the /conf/web.xml
as
well?

Here is my application web.xml, am I missing anything?

THANKS!!!

Geoff


?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

display-nameiFax Development/display-name
  description
iFax Development
  /description

   servlet

   servlet-namesend/servlet-name
   display-nameIfaxSend/display-name
   servlet-classIfaxSend/servlet-class
   init-param
   param-namedriver/param-name

param-valuesun.jdbc.odbc.JdbcOdbcDriver/param-value
   /init-param
   init-param
   param-nameuploadDir/param-name
   param-valued:\Work_Files\jakarta-tomcat-
4.1.18\webapps\IfaxSend\temp/param-value
   /init-param
   init-param
   param-nameodbc/param-name
   param-valuejdbc:odbc:replixdb/param-value
   /init-param
   init-param
   param-namedbUser/param-name
   param-valueuser/param-value
   /init-param
   init-param
   param-namedbPass/param-name
   param-valuepass/param-value
   /init-param

   /servlet

   servlet

   servlet-nameuserdetails/servlet-name
   display-nameIfaxUserDetails/display-name
   servlet-classIfaxUserDetails/servlet-class
   init-param
   param-namedriver/param-name

param-valuesun.jdbc.odbc.JdbcOdbcDriver/param-value
   /init-param
   init-param
   param-nameodbc/param-name
   param-valuejdbc:odbc:replixdb/param-value
   /init-param
   init-param
   param-namedbUser/param-name
   param-valueuser/param-value
   /init-param
   init-param
   param-namedbPass/param-name
   param-valuepass/param-value
   /init-param


   /servlet

   servlet

   servlet-nameonefax/servlet-name
   display-nameIfaxOneFax/display-name
   servlet-classIfaxOneFax/servlet-class
   init-param
   param-namedriver/param-name

param-valuesun.jdbc.odbc.JdbcOdbcDriver/param-value
   /init-param
   init-param
   param-nameodbc/param-name
   param-valuejdbc:odbc:replixdb/param-value
   /init-param
   init-param
   param-namedbUser/param-name
   param-valueuser/param-value
   /init-param
   init-param
   param-namedbPass/param-name
   param-valuepass/param-value
   /init-param
   init-param
   param-namefaxPath/param-name

param-valuec:\\Softlinx\\ReplixServer\\spool\\/param-
value
   /init-param
   init-param
   param-nameuploadDir/param-name
   param-valued:\Work_Files\jakarta-tomcat-
4.1.18\webapps

RE: servlet with Tomcat

2003-01-14 Thread Geoff Peters
Nicola - Read the thread from yesterday with the titles Can't find servlet - I had 
the exact same problem, it has to do with the invoker servlet - you need to add 
specific mappings in your web.xml file for each servlet, and disable the mappings for 
the invoker servlet under /conf/web.xml, it is a security fix from 4.1 and up I 
believe...

(with thanks to John turner again)

Geoff

-Original Message-
From: Nicola Galante [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 11:29 AM
To: Tomcat User List
Subject: servlet with Tomcat


I will expose you a problem I found with Tomcat 4.1.18 but first is 
better if I describe to you what's happened. System administrators of my 
department installed J2SDK 1.4.1 and Tomcat 4.1.18 in a local machine. 
After that I have setted the enviroment variables CATALINA_HOME to the 
install_dir of Tomcat and JAVA_HOME to the install_dir of J2SDK1.4.1 
classes. Then I can start Tomcat using the script 
$CATALINA_HOME/bin/startup.sh (it is a Linux machine) and I can see the 
local home page
$CATALINA_HOME/webapp/ROOT/index.html
browsing http://localhost:8080/ .
I can see aslo the example servlets situated at 
$CATALINA_HOME/webapp/examples/WEB-INF/classes/  browsing 
http://localhost:8080/examples/servlet/ServletName
but I cannot see servlets situated in the usual work directory
$CATALINA_HOME/webapp/ROOT/WEB-INF/classes
browsing http://localhost:8080/servlet/ServletName
(I'm just a beginner of JSP technology and this is what I found in a JSP 
manual that I should do). I mean that if I create any my servlet file 
called MyServlet.class and I put it in the directory
$CATALINA_HOME/webapp/examples/WEB-INF/classes/
I can see it, but I canno see it If I put it in the directory
$CATALINA_HOME/webapp/ROOT/WEB-INF/classes.
I can also tell you that I can see any html page situated at
$CATALINA_HOME/webapp/ROOT/MyPage.html
browsing http://localhost:8080/MyPage.html

Do you think this is a problem of configuration of Tomcat? How can I 
have a dedicated directory for my servlet classes?

I send to you this mail because I'm just a beginner of servlets and 
Tomcat, and system administrators of my department told me that they 
never used Tonmcat before now, so they cannot (or they don't want to) 
help me.

I would be very please to you if someone of you could help me.

Thanks

Nicola

-- 
---
Nicola Galante
Universita' degli studi di Siena -- ITALY
Tel. (PD) (+39) 049 827 7214
e-mail: [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]




tomcat manager question

2003-01-13 Thread Geoff Peters


I recently upgraded from 4.0.2 to 4.1.18 on a development box running Windows 2K 
server. I am in the process of migrating some applications to this version of Tomcat, 
also to jdsk 1.4.1_01.  Got everything up and running with one small problem related 
to the manager interface. 

I have the following context in my server.xml file:

!-- IfaxSend Context --  
Context path=/IfaxSend docBase=IfaxSend debug=0 
reloadable=true crossContext=true /
 
Realm  className=org.apache.catalina.realm.JDBCRealm debug=5
  driverName=sun.jdbc.odbc.JdbcOdbcDriver
  connectionURL=jdbc:odbc:replixdb
  userTable=Users userNameCol=FaxUserId userCredCol=PIN
  userRoleTable=Users roleNameCol=UserRole /
 
 Logger className=org.apache.catalina.logger.FileLogger
  prefix=iFax_IfaxSend_log. suffix=.txt timestamp=true / 

Which works fine. The problem is that when I include this context, the authorization 
for manager application seems to try to authenticate against the context level JDBC 
realm (application level), instead of the 

 Realm className=org.apache.catalina.realm.MemoryRealm /

tomcat-users.xml file that it normally uses (this realm tag is just below the engine 
tag, at the global level.

what could be causing the global level realm to be overridden at a lower level? 
Shouldn't a context level realm only relate to the application within the context?

Nothing major, just an annoyance in that I can't access the manager interface when 
this application is running, unless I change a user in the JDBC database to admin or 
manager, which I don't want to do. 

Thanks!!

Geoff

Geoff Peters, BScFE, AIT  Phone  : (441) 296-9640
Applications DeveloperFax: (441) 292-1509
Logic Communications  E-mail : [EMAIL PROTECTED]
12 Par-La-Ville Road  WWW: http://www.logic.bm
Hamilton, Bermuda  HM JX


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




wrong realm being used

2003-01-13 Thread Geoff Peters

I recently upgraded from 4.0.2 ro 4.1.18 on a development box running Windows 2K 
server. I am in the process of migrating some applications to this version of Tomcat, 
also to jdsk 1.4.1_01.  Got everything up and running with one small problem related 
to the manager interface. 

I have the following context in my server.xml file:

!-- IfaxSend Context --  
Context path=/IfaxSend docBase=IfaxSend debug=0 
reloadable=true crossContext=true /
 
Realm  className=org.apache.catalina.realm.JDBCRealm debug=5
  driverName=sun.jdbc.odbc.JdbcOdbcDriver
  connectionURL=jdbc:odbc:replixdb
  userTable=Users userNameCol=FaxUserId userCredCol=PIN
  userRoleTable=Users roleNameCol=UserRole /
 
 Logger className=org.apache.catalina.logger.FileLogger
  prefix=iFax_IfaxSend_log. suffix=.txt timestamp=true / 

Which works fine. The problem is that when I include this context, the authorization 
for manager application seems to try to authenticate against the context level JDBC 
realm (application level), instead of the 

 Realm className=org.apache.catalina.realm.MemoryRealm /

tomcat-users.xml file that it normally uses (this realm tag is just below the engine 
tag, at the global level.

what could be causing the global level realm to be overridden at a lower level? 
Shouldn't a context level realm only relate to the application within the context?

Nothing major, just an annoyance in that I can't access the manager interface when 
this application is running, unless I change a user in the JDBC database to admin or 
manager, which I don't want to do. 

Thanks!!

Geoff

Geoff Peters, BScFE, AIT  Phone  : (441) 296-9640
Applications DeveloperFax: (441) 292-1509
Logic Communications  E-mail : [EMAIL PROTECTED]
12 Par-La-Ville Road  WWW: http://www.logic.bm
Hamilton, Bermuda  HM JX


--
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: Can't find servlet

2003-01-13 Thread Geoff Peters
John - You solved another one of my problems that I wasn't even sure that I had! (did 
that make sense??) If I uncomment that servlet-mapping block for the invoker my 
servlet works, if not, my servlet throws the servlet not available error. The funny 
thing is I have declared all of my servlets in my application web.xml, do I need to 
define these in the /conf/web.xml as well?

Here is my application web.xml, am I missing anything?

THANKS!!!

Geoff


?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

display-nameiFax Development/display-name
  description
iFax Development
  /description

servlet

servlet-namesend/servlet-name
display-nameIfaxSend/display-name
servlet-classIfaxSend/servlet-class
init-param
param-namedriver/param-name
param-valuesun.jdbc.odbc.JdbcOdbcDriver/param-value
/init-param
init-param
param-nameuploadDir/param-name

param-valued:\Work_Files\jakarta-tomcat-4.1.18\webapps\IfaxSend\temp/param-value
/init-param
init-param
param-nameodbc/param-name
param-valuejdbc:odbc:replixdb/param-value
/init-param
init-param
param-namedbUser/param-name
param-valueuser/param-value
/init-param
init-param
param-namedbPass/param-name
param-valuepass/param-value
/init-param

/servlet

servlet

servlet-nameuserdetails/servlet-name
display-nameIfaxUserDetails/display-name
servlet-classIfaxUserDetails/servlet-class
init-param
param-namedriver/param-name
param-valuesun.jdbc.odbc.JdbcOdbcDriver/param-value
/init-param
init-param
param-nameodbc/param-name
param-valuejdbc:odbc:replixdb/param-value
/init-param
init-param
param-namedbUser/param-name
param-valueuser/param-value
/init-param
init-param
param-namedbPass/param-name
param-valuepass/param-value
/init-param


/servlet

servlet

servlet-nameonefax/servlet-name
display-nameIfaxOneFax/display-name
servlet-classIfaxOneFax/servlet-class
init-param
param-namedriver/param-name
param-valuesun.jdbc.odbc.JdbcOdbcDriver/param-value
/init-param
init-param
param-nameodbc/param-name
param-valuejdbc:odbc:replixdb/param-value
/init-param
init-param
param-namedbUser/param-name
param-valueuser/param-value
/init-param
init-param
param-namedbPass/param-name
param-valuepass/param-value
/init-param
init-param
param-namefaxPath/param-name
param-valuec:\\Softlinx\\ReplixServer\\spool\\/param-value
/init-param
init-param
param-nameuploadDir/param-name

param-valued:\Work_Files\jakarta-tomcat-4.1.18\webapps\IfaxSend\temp/param-value
/init-param


/servlet

servlet

servlet-nameonerecvfax/servlet-name
display-nameIfaxOneRecvFax/display-name
servlet-classIfaxOneRecvFax/servlet-class
init-param
param-namedriver/param-name
param-valuesun.jdbc.odbc.JdbcOdbcDriver/param-value
/init-param
init-param
param-nameodbc/param-name
param-valuejdbc:odbc:replixdb/param-value
/init-param
init-param
param-namedbUser/param-name
param-valueuser/param-value
/init-param
init-param
param-namedbPass/param-name
param-valuepass/param-value
/init-param
init-param

RE: Opinions of available Tomcat books

2003-01-13 Thread Geoff Peters
Bill - I recently purchased Mastering Tomcat Development (Wiley)by Peter Harrison 
and Ian McFarland, and Professional Apache Tomcat - WROX (9 authors). The Goodwill 
book was the first one I purchased, and it was good for initial setup and basic 
application deployment, however as Subir said once you get into anything difficult it 
is kind of useless. Out of the other two, I would recommend the Wiley book, excellent 
reference, but there are things covered in Wrox that aren't in Wiley - I am at a 
junior - intermediate developer level in Java, and I find both worth the money.

Geoff

-Original Message-
From: Subir Sengupta [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 10, 2003 6:15 PM
To: 'Tomcat Users List'
Subject: RE: Opinions of available Tomcat books


I found the James Goodwill book much too basic.  You could learn as much
from the Tomcat docs.

-Original Message-
From: Bill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 7:41 AM
To: tomcat user
Subject: Opinions of available Tomcat books


I've been thinking about picking a copy of one of the Tomcat books out
there and was looking for suggestions and comments.  I noticed about 5
different pubs but I had a hard time finding anything about the books
other than the evaluation systems the book sellers use.  I saw John T.
commented about the Wrox book, does anyone have one of the others?

My particular concerns are that the book deal in length about
integration with other technologies/products (e.g. Apache ) and that it
cover up-to if not close-to the current version.

-b




--
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: Can't find servlet

2003-01-13 Thread Geoff Peters
Thanks for the hint, I have only been using Tomcat for about 6 months and have no 
senior developer in my group to point out things like that, so tips from experienced 
people always help!

Geoff

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 5:22 PM
To: Tomcat Users List
Subject: RE: Can't find servlet


Hi,
I didn't read previous messages in your thread, so my answer may be
incorrect / out of context... Why are you repeating all the init-params
that are the same, such as the driver?  It's better practice to have
just one context-param for this.  Every servlet can then get it by doing
getServletContext().getInitParameter(driver);

You don't need to declare your servlets in $CATALINA_HOME/conf/web.xml,
only in your own webapp's web.xml.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Geoff Peters [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 4:19 PM
To: Tomcat Users List
Subject: RE: Can't find servlet

John - You solved another one of my problems that I wasn't even sure
that I
had! (did that make sense??) If I uncomment that servlet-mapping block
for
the invoker my servlet works, if not, my servlet throws the servlet
not
available error. The funny thing is I have declared all of my servlets
in
my application web.xml, do I need to define these in the /conf/web.xml
as
well?

Here is my application web.xml, am I missing anything?

THANKS!!!

Geoff


?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

display-nameiFax Development/display-name
  description
iFax Development
  /description

   servlet

   servlet-namesend/servlet-name
   display-nameIfaxSend/display-name
   servlet-classIfaxSend/servlet-class
   init-param
   param-namedriver/param-name

param-valuesun.jdbc.odbc.JdbcOdbcDriver/param-value
   /init-param
   init-param
   param-nameuploadDir/param-name
   param-valued:\Work_Files\jakarta-tomcat-
4.1.18\webapps\IfaxSend\temp/param-value
   /init-param
   init-param
   param-nameodbc/param-name
   param-valuejdbc:odbc:replixdb/param-value
   /init-param
   init-param
   param-namedbUser/param-name
   param-valueuser/param-value
   /init-param
   init-param
   param-namedbPass/param-name
   param-valuepass/param-value
   /init-param

   /servlet

   servlet

   servlet-nameuserdetails/servlet-name
   display-nameIfaxUserDetails/display-name
   servlet-classIfaxUserDetails/servlet-class
   init-param
   param-namedriver/param-name

param-valuesun.jdbc.odbc.JdbcOdbcDriver/param-value
   /init-param
   init-param
   param-nameodbc/param-name
   param-valuejdbc:odbc:replixdb/param-value
   /init-param
   init-param
   param-namedbUser/param-name
   param-valueuser/param-value
   /init-param
   init-param
   param-namedbPass/param-name
   param-valuepass/param-value
   /init-param


   /servlet

   servlet

   servlet-nameonefax/servlet-name
   display-nameIfaxOneFax/display-name
   servlet-classIfaxOneFax/servlet-class
   init-param
   param-namedriver/param-name

param-valuesun.jdbc.odbc.JdbcOdbcDriver/param-value
   /init-param
   init-param
   param-nameodbc/param-name
   param-valuejdbc:odbc:replixdb/param-value
   /init-param
   init-param
   param-namedbUser/param-name
   param-valueuser/param-value
   /init-param
   init-param
   param-namedbPass/param-name
   param-valuepass/param-value
   /init-param
   init-param
   param-namefaxPath/param-name

param-valuec:\\Softlinx\\ReplixServer\\spool\\/param-
value
   /init-param
   init-param
   param-nameuploadDir/param-name
   param-valued:\Work_Files\jakarta-tomcat-
4.1.18\webapps\IfaxSend\temp/param-value
   /init-param


   /servlet

   servlet

   servlet-nameonerecvfax/servlet-name
   display-nameIfaxOneRecvFax/display-name
   servlet-classIfaxOneRecvFax/servlet-class

RE: Can't find servlet

2003-01-13 Thread Geoff Peters
ok, this must be something to do with 4.1+ only, I didn't include any mappings in 
Tomcat 4.0.2 and everything worked fine - as I mentioned before I am in the process of 
upgrading from 4.0.2 to 4.1.18, and only now ran into this problem...

thanks again, Geoff

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 5:27 PM
To: 'Tomcat Users List'
Subject: RE: Can't find servlet



Looks to me like you are missing all of your servlet mappings.  A basic
servlet entry in web.xml looks like this:

servlet
  servlet-nameSomeServlet/servlet-name
  servlet-classSomeServlet/servlet-class
/servlet
servlet-mapping
  servlet-nameSomeServlet/servlet-name
  url-pattern/SomeURLPattern/url-pattern
/servlet-mapping

You have to do that for each and every servlet, unless you want to use the
Invoker servlet, which is unwise because of the security implications.

I'm more sys-admin than developer, so there's probably more to it that one
of the real developers on this list can explain.

John

 -Original Message-
 From: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 13, 2003 4:19 PM
 To: Tomcat Users List
 Subject: RE: Can't find servlet
 
 
 John - You solved another one of my problems that I wasn't 
 even sure that I had! (did that make sense??) If I uncomment 
 that servlet-mapping block for the invoker my servlet works, 
 if not, my servlet throws the servlet not available error. 
 The funny thing is I have declared all of my servlets in my 
 application web.xml, do I need to define these in the 
 /conf/web.xml as well?
 
 Here is my application web.xml, am I missing anything?
 
 THANKS!!!
 
 Geoff
 
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
   
 web-app
 
 display-nameiFax Development/display-name
   description
 iFax Development
   /description
 
   servlet
 
   servlet-namesend/servlet-name
   display-nameIfaxSend/display-name
   servlet-classIfaxSend/servlet-class
   init-param
   param-namedriver/param-name
   
 param-valuesun.jdbc.odbc.JdbcOdbcDriver/param-value
   /init-param
   init-param
   param-nameuploadDir/param-name
   
 param-valued:\Work_Files\jakarta-tomcat-4.1.18\webapps\IfaxS
 end\temp/param-value
   /init-param
   init-param
   param-nameodbc/param-name
   param-valuejdbc:odbc:replixdb/param-value
   /init-param
   init-param
   param-namedbUser/param-name
   param-valueuser/param-value
   /init-param
   init-param
   param-namedbPass/param-name
   param-valuepass/param-value
   /init-param
   
   /servlet

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




tomcat manager question

2003-01-10 Thread Geoff Peters
I recently upgraded from 4.0.2 ro 4.1.18 on a development box running Windows 2K 
server. I am in the process of migrating some applications to this version of Tomcat, 
also to jdsk 1.4.1_01.  Got everything up and running with one small problem related 
to the manager interface. 

I have the following context in my server.xml file:

!-- IfaxSend Context --  
Context path=/IfaxSend docBase=IfaxSend debug=0 
reloadable=true crossContext=true /
 
Realm  className=org.apache.catalina.realm.JDBCRealm debug=5
  driverName=sun.jdbc.odbc.JdbcOdbcDriver
  connectionURL=jdbc:odbc:replixdb
  userTable=Users userNameCol=FaxUserId userCredCol=PIN
  userRoleTable=Users roleNameCol=UserRole /
 
 Logger className=org.apache.catalina.logger.FileLogger
  prefix=iFax_IfaxSend_log. suffix=.txt timestamp=true / 

Which works fine. The problem is that when I include this context, the authorization 
for manager application seems to try to authenticate against the context level JDBC 
realm (application level), instead of the 

 Realm className=org.apache.catalina.realm.MemoryRealm /

tomcat-users.xml file that it normally uses (this realm tag is just below the engine 
tag, at the global level.

what could be causing the global level realm to be overridden at a lower level? 
Shouldn't a context level realm only relate to the application within the context?

Nothing major, just an annoyance in that I can't access the manager interface when 
this application is running, unless I change a user in the JDBC database to admin or 
manager, which I don't want to do. 

Thanks!!

Geoff

Geoff Peters, BScFE, AIT  Phone  : (441) 296-9640
Applications DeveloperFax: (441) 292-1509
Logic Communications  E-mail : [EMAIL PROTECTED]
12 Par-La-Ville Road  WWW: http://www.logic.bm
Hamilton, Bermuda  HM JX


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




RE: Book recommendation

2002-06-21 Thread Geoff Peters

I've got the James Goodwill book - it is good for a beginner to Tomcat and servlet / 
jsp technology, very easy to follow and well written - but not a lot of detail on 
specific tweaking / configuration issues. There is a new Tomcat book being published 
this month or next month (can't remember) - you could pre - order it on amazon.com 
last time I looked, it was to be a  thicker book (not sure if that means more useful 
info or more pictures?)

Geoff


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: June 21, 2002 2:26 PM
To: [EMAIL PROTECTED]
Subject: Book recommendation



Any recommendation for a good book that covers Tomcat and
other related open source technologies? More from an application
developers point of view as to how various components fit
together rather than sysadmin details or exhaustive details
about any one particular thing (say JBoss, Servlet etc).

Some books that came up on Internet search were...

1) MySQL and JSP Web Applications: Data-Driven Programming
Using Tomcat and MySQL By James Turner

2) Apache Jakarta-Tomcat by James Goodwill

3) JSP, Servlets, and Mysql by Dave Harms

4) Professional Java Server Programming (many authors)

Any other ones out there and which one would you recommend?


das

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




Tomcat Unexplained Shutdown

2002-06-11 Thread Geoff Peters



-Original Message-
From: Geoff Peters 
Sent: June 7, 2002 11:12 AM
To: Tomcat Users List
Subject: Tomcat Unexplained Shutdown


I am running Tomcat 4.0.2 on Windows NT 4.0, it is running a web based faxing 
application that users can attach a document to send to a server process that sends it 
as an attachment. This is done using servlets. Every so often, if a user uploads an 
attachment the server doesn't like, it shuts down Tomcat, other times it seems if the 
user tries to view a file on the server that doesn't exist, the Tomcat server shuts 
itself down. This is very annoying, and the customer is not impressed - is there is a 
way to simply throw an exception and continue running, instead of Tomcat shutting 
itself down? I can't really be more specific as there are no errors in the log files 
to correspond to these occurrences, all I know is that it happens and makes the app 
look WAY less stable than if it was built using ASP's and running under IIS.. 

Any suggestions?

Geoff


--
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: Tomcat Unexplained Shutdown

2002-06-11 Thread Geoff Peters

Ralph:
Using jdsk 1.3.1_2 (sun), have not tried other versions but if you think that is a 
possible cause, I will check into it.

I am using TOmcat 4.0.3 standalone running the App, however IIS 4.0 is running another 
application on another port (switched IIS to 8080, Tomcat to Port 80), but has nothing 
to do with my application, is it possible IIS is causing it?

The libraries I am using are for the most part the standard java API's - (servlet.jar 
and tools.jar), as well as an API for the fax functionality, and the com.oreilly 
package I am also using the JDBC driver sun.jdbc.odbc.JdbcOdbcDriver.

Thanks, I have a few other areas to explore, that is all I am trying to find out what 
I could possibly look at

Geoff

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: June 11, 2002 9:23 AM
To: Tomcat Users List
Subject: AW: Tomcat Unexplained Shutdown


An unintended shutdown of tomcat whithout a log message
typically indicates a problem in the VM or in a native library.

- Whick JDK are you using (Vendor and version).
- Did you try other JDK's (other version, other vendor)
- Do you use tomcat standalone or behind a web server
  - If behind a web server which one, and which
connector in which version do you use ?
- Do you use any library that includes native libraries ?
  - e.g. JDBC Driver

 -Ursprngliche Nachricht-
 Von: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 13:34
 An: [EMAIL PROTECTED]
 Betreff: Tomcat Unexplained Shutdown
snip/
 I am running Tomcat 4.0.2 on Windows NT 4.0, it is running a 
 web based faxing application that users can attach a document 
 to send to a server process that sends it as an attachment. 
 This is done using servlets. Every so often, if a user 
 uploads an attachment the server doesn't like, it shuts down 
 Tomcat, other times it seems if the user tries to view a file 
 on the server that doesn't exist, the Tomcat server shuts 
 itself down. This is very annoying, and the customer is not 
 impressed - is there is a way to simply throw an exception 
 and continue running, instead of Tomcat shutting itself down? 
 I can't really be more specific as there are no errors in the 
 log files to correspond to these occurrences, all I know is 
 that it happens and makes the app look WAY less stable than 
 if it was built using ASP's and running under IIS.. 
 
snip/

--
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: Tomcat Unexplained Shutdown

2002-06-11 Thread Geoff Peters

What alternatives would I have to that ODBC driver as a testing option?

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]]
Sent: June 11, 2002 9:32 AM
To: Tomcat Users List
Subject: Re: Tomcat Unexplained Shutdown


Quick stab in the dark - Since you are using an ODBC driver - I bet the 
driver is not thread safe. So if tomcat is trying to serve 2 different 
requests concurrently, it may be dying in native odbc code.

-Tim

Geoff Peters wrote:
 Here are the uncompiled servlets (the ones that would possibly cause the shutdowns) 
- if you need the associated jar file let me know...
 
 thanks!
 
 Geoff
 


--
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: Tomcat Unexplained Shutdown

2002-06-11 Thread Geoff Peters

No unfortunately it is Access 97, or else I would have used a more specific driver... 
(couldn't find a specific Access driver as no one in their right mind would use it 
anyway)

Thanks for your suggestions, it definitely gives me some avenues to explore!!!

Geoff

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: June 11, 2002 9:51 AM
To: Tomcat Users List
Subject: AW: Tomcat Unexplained Shutdown


My first bet is the JdbcOdbcDriver.
It has no production quality.

What database do you access with it ?

To access SQL Server 2000 you can use a driver
from microsoft. (they licensed it from merant)
http://msdn.microsoft.com/downloads/sample.asp?url=/MSDN-FILES/027/001/7
79/msdncompositedoc.xmlframe=true

I don't think that the IIS is a cause in your case.

My second guess is to try the JDK from IBM

 -Ursprngliche Nachricht-
 Von: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 14:27
 An: Tomcat Users List
 Betreff: RE: Tomcat Unexplained Shutdown
 
 Using jdsk 1.3.1_2 (sun), have not tried other versions but 
 if you think that is a possible cause, I will check into it.
 
 I am using TOmcat 4.0.3 standalone running the App, however 
 IIS 4.0 is running another application on another port 
 (switched IIS to 8080, Tomcat to Port 80), but has nothing to 
 do with my application, is it possible IIS is causing it?
 
 am also using the JDBC driver sun.jdbc.odbc.JdbcOdbcDriver.
 

--
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: Tomcat Unexplained Shutdown

2002-06-11 Thread Geoff Peters

Ralph - Thanks for pointing that out, I am new to Tomcat and servlets, and have heard 
about connection pooling but never used it, obviously I should I am going to make 
those changes, also going to try the changes to my try block.

thanks again, I appreciate the advice of people who have experienced these problems 
before, and taking the time to reply to other peoples problems!!!

Geoff

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: June 11, 2002 10:05 AM
To: Tomcat Users List
Subject: AW: Tomcat Unexplained Shutdown



Some sidenotes to your source code:
- You shouldn't open a connection in the init method.
  This way you share one connection between two concurent requests to 
  the same servlet.
  It's better to use a connection pool and get the connection for every
request.
- All your instance variables are dangerous, because they are shared
between
  two concurrent requests to the same servlet.
- Maybe you should use Throwable instead of Exception

   try {
   } catch {Throwable ex}
   } 

This way you will have also control about the Errors that might occur.
 -Ursprngliche Nachricht-
 Von: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 14:13
 An: Tomcat Users List
 Betreff: RE: Tomcat Unexplained Shutdown
 
 
 Here are the uncompiled servlets (the ones that would 
 possibly cause the shutdowns) - if you need the associated 
 jar file let me know...
 

--
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: Tomcat Unexplained Shutdown

2002-06-11 Thread Geoff Peters

I tried and TRIED to use another DB, even upgrade to SQL server as our company has a 
site license, however the fax server software by softlinx uses access and access only, 
it makes updates to the access database as well as an admin site running under IIS 
(asp code), so I am stuck with it.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: June 11, 2002 10:26 AM
To: Tomcat Users List
Subject: AW: Tomcat Unexplained Shutdown


Access calls for trouble, as it isn't designed for multithreaded write
access.

Two option for a cheap database:
- mysql (Although I personally don't like it much it might be good
enough for you: No Views, No Subselects)
  http://www.mysql.com/downloads/mysql-max-3.23.html
- postgreSQL (I like it more, but it's much harder to get started, esp.
under windows)

 -Ursprngliche Nachricht-
 Von: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 14:49
 An: Tomcat Users List
 Betreff: RE: Tomcat Unexplained Shutdown

 No unfortunately it is Access 97, or else I would have used a 
 more specific driver... (couldn't find a specific Access 
 driver as no one in their right mind would use it anyway)
 
 Thanks for your suggestions, it definitely gives me some 
 avenues to explore!!!
 
 Geoff
 

--
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: Tomcat Unexplained Shutdown

2002-06-11 Thread Geoff Peters

Aha! So that may also be another thing to look at - I didn't know that could possibly 
shut down Tomcat - but that exception may be a result of the user actions listed in my 
origianl email, in which case it would crap out - I am going to take those out right 
now.

Thanks Larry!!

Geoff

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: June 11, 2002 2:33 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Unexplained Shutdown


Have you verified that the System.exit()s in IfaxSend.java.
are not being executed?  If executed, they would to a fine job
of taking down Tomcat.

Cheers,
Larry

 -Original Message-
 From: Geoff Peters [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, June 11, 2002 8:13 AM
 To: Tomcat Users List
 Subject: RE: Tomcat Unexplained Shutdown
 
 
 Here are the uncompiled servlets (the ones that would 
 possibly cause the shutdowns) - if you need the associated 
 jar file let me know...
 
 thanks!
 
 Geoff
 
 -Original Message-
 From: FEDERICO MARTIN LARA [mailto:[EMAIL PROTECTED]]
 Sent: June 11, 2002 9:06 AM
 To: Tomcat Users List
 Subject: RE: Tomcat Unexplained Shutdown
 
 
 Great!
 
 Have you got the sevlets?.
 
 -Mensaje original-
 De: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Enviado el: martes, 11 de junio de 2002 13:34
 Para: [EMAIL PROTECTED]
 Asunto: Tomcat Unexplained Shutdown
 
 
 
 
 -Original Message-
 From: Geoff Peters
 Sent: June 7, 2002 11:12 AM
 To: Tomcat Users List
 Subject: Tomcat Unexplained Shutdown
 
 
 I am running Tomcat 4.0.2 on Windows NT 4.0, it is running a web based
 faxing application that users can attach a document to send 
 to a server
 process that sends it as an attachment. This is done using 
 servlets. Every
 so often, if a user uploads an attachment the server doesn't 
 like, it shuts
 down Tomcat, other times it seems if the user tries to view a 
 file on the
 server that doesn't exist, the Tomcat server shuts itself 
 down. This is very
 annoying, and the customer is not impressed - is there is a 
 way to simply
 throw an exception and continue running, instead of Tomcat 
 shutting itself
 down? I can't really be more specific as there are no errors 
 in the log
 files to correspond to these occurrences, all I know is that 
 it happens and
 makes the app look WAY less stable than if it was built using 
 ASP's and
 running under IIS..
 
 Any suggestions?
 
 Geoff
 
 
 --
 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]
 
 

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




Tomcat Unexplained Shutdown

2002-06-07 Thread Geoff Peters

I am running Tomcat 4.0.2 on Windows NT 4.0, it is running a web based faxing 
application that users can attach a document to send to a server process that sends it 
as an attachment. This is done using servlets. Every so often, if a user uploads an 
attachment the server doesn't like, it shuts down Tomcat, other times it seems if the 
user tries to view a file on the server that doesn't exist, the Tomcat server shuts 
itself down. This is very annoying, and the customer is not impressed - is there is a 
way to simply throw an exception and continue running, instead of Tomcat shutting 
itself down? I can't really be more specific as there are no errors in the log files 
to correspond to these occurrences, all I know is that it happens and makes the app 
look WAY less stable than if it was built using ASP's and running under IIS.. 

Any suggestions?

Geoff


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




RE: Help! I am so stuck. Tomcat NT credential

2002-06-06 Thread Geoff Peters

You can either use the tomcat-users.xml file to define users, passwords and roles 
(located in the conf folder in the root of Tomcat), or use a realm to authenticate to 
a database, either way there is really good documentation on it at the jakarta tomcat 
site, it took me about 15 min to have an authentication set up against an Access 
database, really straightforward...

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html

Geoff

Geoff Peters, BScFE, AIT  Phone  : (441) 296-9640
Applications DeveloperFax: (441) 292-1509
Logic Communications  E-mail : [EMAIL PROTECTED]
12 Par-La-Ville Road  WWW: http://www.logic.bm
Hamilton, Bermuda  HM JX



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: June 6, 2002 1:49 PM
To: [EMAIL PROTECTED]
Subject: Help! I am so stuck. Tomcat NT credential


Hi all,
 
When Tomcat is installed on W2K, what NT Security Role does it use to access
files?  How can I tell Tomcat4 to use NT Security?  
 
Thanks very much.
 
Bao-Ha Dam Bui
[EMAIL PROTECTED]
S. Jude Medical, Inc
651.765.1018
 

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




RE: Help! I am so stuck. Tomcat NT credential

2002-06-06 Thread Geoff Peters

Not sure (haven't done it) - but that sounds like standard folder security issue, just 
set up a user or user group with the User Manager in windows, and change folder 
permissions on the server, but as far as making NT security mesh with Tomcat, I am 
unfamiliar with that - Tomcat uses the windows authentication in its own way (to 
authenticate against the tomcat-users.xml or the database defined in the realm), but 
integrating it with folder permissions - maybe someone else has done this?

Geoff

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: June 6, 2002 1:56 PM
To: [EMAIL PROTECTED]
Subject: RE: Help! I am so stuck. Tomcat NT credential


Hi,

Thanks for responding so quickly.

How about using NT User Group to authenticate access to JSP files inside a
secured directory?  (I will read the paper now but I thought I should ask.)

Thanks again.

Bao-Ha Dam Bui
[EMAIL PROTECTED]
S. Jude Medical, Inc
651.765.1018


-Original Message-
From: Geoff Peters [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 06, 2002 11:46 AM
To: Tomcat Users List
Subject: RE: Help! I am so stuck. Tomcat NT credential

You can either use the tomcat-users.xml file to define users, passwords and
roles (located in the conf folder in the root of Tomcat), or use a realm to
authenticate to a database, either way there is really good documentation on
it at the jakarta tomcat site, it took me about 15 min to have an
authentication set up against an Access database, really
straightforward...

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html

Geoff

Geoff Peters, BScFE, AIT  Phone  : (441) 296-9640
Applications DeveloperFax: (441) 292-1509
Logic Communications  E-mail : [EMAIL PROTECTED]
12 Par-La-Ville Road  WWW: http://www.logic.bm
Hamilton, Bermuda  HM JX



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: June 6, 2002 1:49 PM
To: [EMAIL PROTECTED]
Subject: Help! I am so stuck. Tomcat NT credential


Hi all,
 
When Tomcat is installed on W2K, what NT Security Role does it use to access
files?  How can I tell Tomcat4 to use NT Security?  
 
Thanks very much.
 
Bao-Ha Dam Bui
[EMAIL PROTECTED]
S. Jude Medical, Inc
651.765.1018
 

--
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: Help! I am so stuck. Tomcat NT credential

2002-06-06 Thread Geoff Peters

DO you have a database with users and passwords? Or if you simply have a couple of 
users and won't need to add / remove lots of users frequently I would recommend using 
the tomcat-users.xml file, it does the job easily..

Geoff

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: June 6, 2002 1:56 PM
To: [EMAIL PROTECTED]
Subject: RE: Help! I am so stuck. Tomcat NT credential


Hi,

Thanks for responding so quickly.

How about using NT User Group to authenticate access to JSP files inside a
secured directory?  (I will read the paper now but I thought I should ask.)

Thanks again.

Bao-Ha Dam Bui
[EMAIL PROTECTED]
S. Jude Medical, Inc
651.765.1018


-Original Message-
From: Geoff Peters [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 06, 2002 11:46 AM
To: Tomcat Users List
Subject: RE: Help! I am so stuck. Tomcat NT credential

You can either use the tomcat-users.xml file to define users, passwords and
roles (located in the conf folder in the root of Tomcat), or use a realm to
authenticate to a database, either way there is really good documentation on
it at the jakarta tomcat site, it took me about 15 min to have an
authentication set up against an Access database, really
straightforward...

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html

Geoff

Geoff Peters, BScFE, AIT  Phone  : (441) 296-9640
Applications DeveloperFax: (441) 292-1509
Logic Communications  E-mail : [EMAIL PROTECTED]
12 Par-La-Ville Road  WWW: http://www.logic.bm
Hamilton, Bermuda  HM JX



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: June 6, 2002 1:49 PM
To: [EMAIL PROTECTED]
Subject: Help! I am so stuck. Tomcat NT credential


Hi all,
 
When Tomcat is installed on W2K, what NT Security Role does it use to access
files?  How can I tell Tomcat4 to use NT Security?  
 
Thanks very much.
 
Bao-Ha Dam Bui
[EMAIL PROTECTED]
S. Jude Medical, Inc
651.765.1018
 

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

2002-06-05 Thread Geoff Peters

I take it from her 400 emails that she does not know who we are.

-Original Message-
From: anette mysel [mailto:[EMAIL PROTECTED]]
Sent: June 5, 2002 12:06 PM
To: Tomcat Users List
Subject: Re: CrossContext


PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW YOU. TAHNK YOU...
- Original Message -
From: Jonathan Perry [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, June 05, 2002 7:25 AM
Subject: Re: CrossContext


 I'm at a loss of how to debug this.  Does anyone have any ideas of what to
 do?

 Thanks,
 JP

 On 5/6/02 11:45 am, Jonathan Perry [EMAIL PROTECTED] wrote:

  So having downloaded the source, built it, included it in my classpath
(and
  then, of course, discovered I had already done all this when I first
built
  tomcat, Duh...), and stared at it for a while, I'm not too sure how to
check
  that the crossContext attribute is getting through at all: the
  ApplicationContextFacade that gets passed back by tomcat in response to
  getContext( ) doesn't have any ways in, and I can't see any other ways
in
  that aren't private/protected.  Most frustrating.  Anyone have any
ideas?
 
  Thanks,
  JP
 
  On 5/6/02 9:09 am, Jonathan Perry [EMAIL PROTECTED] wrote:
 
  Didn't seem to make a difference.
 
  I'm downloading the source, as I should have before I asked anyone...
No
  doubt I'll have further questions.
 
  Thanks,
  JP
 
  On 5/6/02 12:53 am, Phillip Morelock
[EMAIL PROTECTED]
  wrote:
 
  Are you supposed to have the trailing slash?
 
  maybe:
  getServletContext( ).getContext( /A )
 
  I haven't used this feature, just trying to help.
 
  fillup
 
 
  On 6/4/02 2:44 PM, Jonathan Perry [EMAIL PROTECTED] wrote:
 
  Anybody?  Please?  This is really doing my head in.
 
  Thanks a lot,
  JP
 
  On 4/6/02 10:51 am, Jonathan Perry [EMAIL PROTECTED] wrote:
 
  Hi,
I'm running jakarta-tomcat-4.0.3 on Mac OSX.  I've got two
contexts set
  up, A, and B.  Both have crossContext=true in their section of
  server.xml.  I have a copy of a servlet in each context, which has
the
  following lines of code:
 
  ServletContext c = getServletContext( ).getContext( /A/ );
  RequestDispatcher dispatcher = c.getRequestDispatcher(
/helloWorld.jsp
  );
 
  This code works as expected in context A, but fails to obtain a
context
  (simply returning null, no exceptions thrown) in context B.  I've
searched
  through archives on several sites, including this one, and haven't
found
  anything promising.  Does anyone have any ideas of what I might be
doing
  wrong?
 
  Thanks for your time,
  JP
 
 
  --
  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]
 
 
  --
  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]



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




Bypassing user role assignment???

2002-06-04 Thread Geoff Peters

Does anyone know if it is possible to bypass the requirement to have user roles 
defined within a table in the JDBC Realm? Reason being is that I have an app where all 
users need to be standard, and I have scripts and other apps creating the users, 
therefore bypassing the user role definition would save me from having to edit these 
other scripts and processes (which are not Java based..)
Currently when a new user is created I manually add them to the user role table as 
defined in my realm tags in my server.xml file, but as mentioned above I want to get 
away from this altogether - any thoughts?

Thanks Geoff 

Geoff Peters, BScFE, AIT  Phone  : (441) 296-9640
Applications DeveloperFax: (441) 292-1509
Logic Communications  E-mail : [EMAIL PROTECTED]
12 Par-La-Ville Road  WWW: http://www.logic.bm
Hamilton, Bermuda  HM JX



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




RE: Bypassing user role assignment???

2002-06-04 Thread Geoff Peters

So it isn't possible to set a default role for everyone at login with a parameter in 
the web.xml file?

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: June 4, 2002 8:34 AM
To: Tomcat Users List
Subject: AW: Bypassing user role assignment???


The only way I see, is to create your own realm by
extending JDBC Realm and overriding the hasRole() 
method.

 -Ursprüngliche Nachricht-
 Von: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 4. Juni 2002 13:19
 An: [EMAIL PROTECTED]
 Betreff: Bypassing user role assignment???
 
 
 Does anyone know if it is possible to bypass the requirement 
 to have user roles defined within a table in the JDBC Realm? 
 Reason being is that I have an app where all users need to be 
 standard, and I have scripts and other apps creating the 
 users, therefore bypassing the user role definition would 
 save me from having to edit these other scripts and processes 
 (which are not Java based..)

--
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: Bypassing user role assignment???

2002-06-04 Thread Geoff Peters

See THAT is why I subscribe to this list - easy solutions right under my nose, but 
someone else can think of them quicker!

Thanks, that should do the job perfectly, even though it is Access 97 (yuck)

Thanks again, Geoff


-Original Message-
From: Barney Hamish [mailto:[EMAIL PROTECTED]]
Sent: June 4, 2002 8:47 AM
To: 'Tomcat Users List'
Subject: RE: Bypassing user role assignment???


Why don't you set the user roles table to be the same as the users table.
Have a user_role field in the users table with a default value default
role or something. That way when you create a new user a role is
automatically created for them with the role of default role. Then you
don't have to change anything or rewrite the hasRole() method.

-Original Message-
From: Geoff Peters [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 04, 2002 1:36 PM
To: Tomcat Users List
Subject: RE: Bypassing user role assignment???


So it isn't possible to set a default role for everyone at login with a
parameter in the web.xml file?

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: June 4, 2002 8:34 AM
To: Tomcat Users List
Subject: AW: Bypassing user role assignment???


The only way I see, is to create your own realm by
extending JDBC Realm and overriding the hasRole() 
method.

 -Ursprüngliche Nachricht-
 Von: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 4. Juni 2002 13:19
 An: [EMAIL PROTECTED]
 Betreff: Bypassing user role assignment???
 
 
 Does anyone know if it is possible to bypass the requirement 
 to have user roles defined within a table in the JDBC Realm? 
 Reason being is that I have an app where all users need to be 
 standard, and I have scripts and other apps creating the 
 users, therefore bypassing the user role definition would 
 save me from having to edit these other scripts and processes 
 (which are not Java based..)

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


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




RE: uploading files software

2002-05-17 Thread Geoff Peters

If you are referring to the com.oreilly package I have used it successfully for a 
personal application, it works quite well, I'm not sure of any file size restriction 
though

Problems with multi file upload though, as you need to have multiple File controls 
on your HTML form (i.e. 3 uploads equals 3 box / browse button combos)

I have it working with Tomcat 4.0.2...

Geoff

 -Original Message-
 From: pascal GEND [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 17, 2002 11:07 AM
 To: [EMAIL PROTECTED]
 Subject: uploading files software
 
 
 Hello,
 
 I'm using a package I found over the internet 2 years later 
 and permitting upload of files through a POST on a java servlet.
 But it doesn't work correctly with data files bigger than 1 megabyte.
 Has anyone such a package (I use j2sdk 1.4) or where can I find it?
 
 thanks
 
 Pascal
 

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




something strange need help

2002-05-16 Thread Geoff Peters

Had something strange happen - running a servlet application in Tomcat 4.0.2, NT 4.0.

User validation through an ODBC JDBC Realm to an Access 2000 database. The application 
has been in the testing phase for the past few weeks, no real amount of traffic yet.

Problem occurred today when a user viewed the results of a SQL query in their browser, 
changes that were reflected in the database were not reflected in the  SQL query (i.e. 
all records prior to May 1, 2002 were returned, all records since May 1, 2002 were not 
returned) - I tested and retested my SQL code in the database and it returned the 
proper number of records, just not through the application. I stopped and re started 
TOmcat and the problem was fixed, the correct amount of records were returned.

Something to do with the connection string? As I mentioned I am using an ODBC driver 
in my config file.

Thanks, Geoff

Geoff Peters, BScFE, AIT  Phone  : (441) 296-9640
Applications DeveloperFax: (441) 292-1509
Logic Communications  E-mail : [EMAIL PROTECTED]
12 Par-La-Ville Road  WWW: http://www.logic.bm
Hamilton, Bermuda  HM JX


 

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