RE: design issue .....

2004-01-27 Thread Goehring, Chuck Mr., RCI - San Diego
Shanta,

We store the images on the file system instead of in the database.  A couple things to 
conspired are:

  Images in the database will severely bloat up your database backups - exports etc.

  Having the images/documents in the database would be more secure because someone 
would have to get passed the database login to get to the files.

  There may be a speed difference - depending on if the database caches blobs

Other than that, it is a personal preference question.

Of course, this has nothing to do with Tomcat though.

Chuck

-Original Message-
From: Shanta B [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 9:26 AM
To: 'Shapira, Yoav '; 'Tomcat Users List '
Subject: design issue .


Hi
   I have a requirement .we have to develop  a webservice Following
is our requirement.



1)Client will send SOAP/HTTP request for imge(s).
2)We have(Service) to serve the corresponding image(s) through SOAP/HTTP.


Now the design issues...


I have two types of solutions...


Type-1
---
1)Storing images in  Database  as a BLOB.
2)Extract the images and send it over SOAP/HTTP


Type-2
---
1) Store the images on the hard disk with a predefined path and format, and
store the reference (access path) in the Oracle   database.

2)Get the relative path and get image and send it over SOAP/HTTP.



could u please tell me which one is better interms of performance  and
scalability.We are using J2EE/J2SE/AXIS and Tomcat.




Thanks
Shanta.B

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

2004-01-27 Thread Goehring, Chuck Mr., RCI - San Diego
Pinguti,

Download:
http://apache.webmeta.com/jakarta/struts/binaries/jakarta-struts-1.1.zip

Unzip It.


You can open struts-documentation.war with WinZip and unzip it somwhere so you can 
look at it.  File index.html would be top-level of documentation.  There are several 
installation-xx.html and release-notes-xx.html files that should help.

Chuck

-Original Message-
From: Pinguti Sridevi [mailto:[EMAIL PROTECTED]
Sent: Monday, January 26, 2004 11:16 PM
To: anand; javagroup; parvez; tomcat
Subject: Struts


 
I have tomcat 4.1.29 and jdk1.3. I had understood what is Struts,complete flow thru 
jakarta site. Can somebody tell  what jars,wars i have to install to run sample. I 
have searched 5 hrs in jakarta but I have not understood what to install in my tomcat 
folder to run ? I don't want tiles or log4j.Suggest me ?



With Regards, 
PS.Durga,



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

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



RE: jk_nt_service.exe

2004-01-27 Thread Goehring, Chuck Mr., RCI - San Diego
Jeff,

The only way I have gotten a service setup is to remove  re-install Tomcat.  You have 
to scroll down during the install and check nt service.  Otherwise, your in for hell 
getting it to run that way.  I don't know why they opted to make it so difficult - it 
is a breeze with Apache web server.

Chuck


-Original Message-
From: Jeff Godin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 6:57 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: jk_nt_service.exe


I am having a terrible time finding this file. I am currently using
Tomcat version 4.1.29 and would like to set it up as an NT service. Any
help locating this file would be greatly appreciated.

Jeff

-
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: Geomatica Webserver

2004-01-23 Thread Goehring, Chuck Mr., RCI - San Diego
Candyman,

If you don't want to develop and just want to set it and forget it, you may as well 
use the version and configuration the maker of Geomatica recommends. 

Chuck


-Original Message-
From: Candyman [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 7:50 PM
To: Tomcat Users List
Subject: Geomatica Webserver


Hi. I make some silly comments about Tomcat Apache, which
interpretation was incorrect. My native language is not english, so I
told it with the words that I find fast to express my dissapointment:(
The thing is I'm using Apache+Tomcat+Perl to run Geomatica Webserver.
And I have some specific problems whith v.5.* which I dont have with Tomcat 4.*
Does anybody have tryed to work with this server? I am not an J developer,
so my objective is install-configure-run. If anybody have expirience
to work with this server, any help will be useful. Maybe its errors of
this program but why it works well with versions 4 and doesnt works
well with 5?
Thank you in advance.


-
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: SQLPLUS and TOMCAT conflict?

2004-01-12 Thread Goehring, Chuck Mr., RCI - San Diego
epyonne,

It is not sqlPlus that uses 8080.  xmldb is a new thing they came up with for 9i.  It 
takes 8080. Technically, it is sql*net rather than SQL*Plus and it should be using 
1521 by default.  If you have also installed Oracle's application server, it may also 
present a conflict.

For me, it was easiest to change the tomcat port, but if not needed, these other 
products should be disabled or removed for security  maintenance reasons.

Chuck

-Original Message-
From: epyonne [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 6:39 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: SQLPLUS and TOMCAT conflict?


Port 8080 is the default port for many different application.  Oracle HTTP
server is one of them.  Therefore, it is not a good idea to use the default
8080 for your Tomcat installation.  You can always change it in the
server.xml file yourself.


- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, January 12, 2004 08:26 AM
Subject: SQLPLUS and TOMCAT conflict?


 Hi All,

 I earlier did install Tomcat 5.0 but soon found out that i
 wasnt able to work with SQL PLUS. Everytime i try to login
 into SQL Plus i get the error message ORA 12571 : Tns
 packet writer failure.

 Since i didnt find any effective solution to avoid this
 problem, I soon had to uninstall the OS itself to enable me
 to work in SQL Plus.
 :-(

 Soon I came to know that both these applications use the
 same port-number 8080, so this conflict makes SQL Plus
 inoperable.

 Is there any way through which I can change the port-number
 of Apache, so that I can work in both these applications
 without any problems?

 Please help.

 -
 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: JSP Editors

2003-11-28 Thread Goehring, Chuck Mr., RCI - San Diego


http://www.netbeans.org

Welcome to netbeans.org, the project that develops NetBeans IDE, the full-featured 
integrated environment for Java Developers and NetBeans Platform, the widely adopted 
infrastructure backplane for complex desktop applications.

They (netbeans.org) don't have Sun One Studio 4.0 but they have Netbeans 3.5.1.  Or, 
you get a bundle of the latest Java with Netbeans 3.5.1 at 
http://java.sun.com/j2se/1.4.2/download.html.



-Original Message-
From: LEONARDO MARTINEZ [mailto:[EMAIL PROTECTED]
Sent: Friday, November 28, 2003 7:57 AM
To: Tomcat Users List
Subject: RE: JSP Editors


SunOne CE (nice, based on NetBeans)
NetBeans
 ^
 |
You cant download this IDE from java.sun.com

Jcreator.com

Best Regards

Leonardo Martinez
From Chile

-Mensaje original-
De: David Sierra Fernández [mailto:[EMAIL PROTECTED] 
Enviado el: Viernes, 28 de Noviembre de 2003 09:15
Para: Tomcat Users List
Asunto: RE: JSP Editors



¿Any of this editors you mentioned (or other)supports step 
by step debbuging in JSP ¿or simply debugging?

David Sierra Fernández
e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]


 -Mensaje original-
 De: Shanta B [mailto:[EMAIL PROTECTED]
 Enviado el: viernes, 28 de noviembre de 2003 11:35
 Para: ''Tomcat Users List' '
 Asunto: RE: JSP Editors



 JIDEA is also best .by using this u can go through internal java 
 scource code and also option to remote debug ur servlets by using 
 tomcat -Original Message-
 From: Bodycombe, Andrew
 To: 'Tomcat Users List'
 Sent: 28/11/2003 3:48 PM
 Subject: RE: JSP Editors

 www.jedit.org
 www.eclipse.org

 Both are free and up to the task.

 Andy

 -Original Message-
 From: Duncan [mailto:[EMAIL PROTECTED]
 Sent: 28 November 2003 09:54
 To: Tomcat User List
 Subject: JSP Editors


 Sorry if off topic but...

 What do people use to edit JSPs?

 I'm after an editor, free if possible, to run on windows, 
with syntax 
 colouring and possibly auto complete for java.

 Have tried vim for windows, but it doesn't seem as nice on 
windows as 
 it is on linux.


 Any other suggestions?

 Cheers
 Duncan Smith
 Decker Telecom Ltd


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



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



OT: RE: Tomcat 4.1.29 and Remedy 5.1.2 MidTier

2003-11-26 Thread Goehring, Chuck Mr., RCI - San Diego
Simon,

Just for curiosity, is the Remedy trouble reporting system (don't know the specific 
name) Java-based?  We have some support folks that are running Remedy for the Gov.

Thanks
Chuck


-Original Message-
From: Simon Taylor [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 12:41 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1.29 and Remedy 5.1.2 MidTier


Ok thanks for the feedback. 
Ended up reverting to Tomcat 4.0.6 which played better with the midtier.
Cheers

Simon

-Original Message-
From: Jeff Tulley [mailto:[EMAIL PROTECTED] 
Sent: 26 November 2003 18:04
To: [EMAIL PROTECTED]
Subject: RE: Tomcat 4.1.29 and Remedy 5.1.2 MidTier


Yeah, that is mostly correct.  There are also places where the spec is vague
or doesn't specify behavior, and different application servers implement
things differently.

There are not a whole lot of spec or operation changes from the 4.0.x series
that would completely break you.  Offhand I can think of one
though:  The invoker servlet.  It allows you to fire up a servlet directly
by class name without defining it in your web.xml.  Relying on that is
dangerous and does lead to non-portable applications.  As of Tomcat 4.1.12,
the invoker was disabled by default.  But, since you are running a JSP,
there is no guarantee that there is a servlet in the mix (unless the JSP is
doing a forward to a servlet or something).

I think our Remedy team is using the ServletExec, so I do not have any
examples myself of how to get it working on Tomcat.  And, the full exception
does not seem to be of much help.

Maybe set debug=99 in the context definition and in all places where
debug=0 in server.xml.  That might yield a better error message. 
(Maybe not though).

 [EMAIL PROTECTED] 11/26/03 2:48:29 AM 
Hi Jeff,

Thanks for the response.
I already have a call in with Remedy and postings on the ARSLIST (no value
from either so far). The ARSList does not have one posting that states the
Midtier can be made to work with Tomcat (even though the doc states it can).
Remedy Midtier comes with ServletExec as the default container - but I am
loathe to swap Tomcat out as we already use it for other servlets. The
support for 5.1.2 on Tomcat is there. Plus we are already running Remedy
ARWEB 4.1.1 using Tomcat.

I am new to Java, Tomcat and Servlets but have been reading around, Murachs
Servlets and Wrox - Professional Apache Tomcat book. If a webapp is built so
it doesn't rely on container specific extensions then it should be portable
across containers right?

Also what might be an obstacle to a webapp running on Tomcat 4.0.x but not
on 4.1.x. I have read that these versions support different servlet
specifications but aren't they backwardly compatible? 


On attempting to use Coyote HTTP Connector straight to Tomcat via
http://enmc-mic:4321/arsys/apps/shared/config/config.jsp 

I get:-

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
54)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.StandardContext.invoke(StandardContext.java:2417)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at

RE: Removing Examples context in Tomcat 4.1

2003-11-25 Thread Goehring, Chuck Mr., RCI - San Diego
Bob,
 
I had the same problem but got completely different errors.  I think it needed 
ExampleFilter.class but I'm not sure.  I couldn't tell you what version either - still 
have Examples in there.
 
Chuck

-Original Message-
From: Bob Jacoby [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2003 12:26 PM
To: [EMAIL PROTECTED]
Subject: Removing Examples context in Tomcat 4.1


I'm having some difficulties with Tomcat 4.1.24. I tried searching the archives and 
bug database. Chances are I missed it somewhere, but I've been looking at this for the 
better part of the day and need some new leads. :)
 
Environment:
HP-UX 11
JVM - HP 1.3
Tomcat 4.1.24
 
I installed and configured the examples context fine. I then installed and configured 
my webapp fine. Everything seems to work. The problem is when I try and remove the 
examples context from the server.xml and directory from the webapps dir. I suddenly 
get an error trying to load my own webapp. I'm at a complete loss as to why I can load 
both, or just examples, but not my webapp by itself. I finally just broke the examples 
webapp by removing the realm from the server.xml file so the examples context just 
fails upon loadup (but my webapp still succeeds).
 
I included the error below, and attached my server.xml file. Any help or leads would 
be appreciated. Unfortunatley I'm on a shared machine so I can't upgrade to the latest 
build to see if it's fixed (if it's even a bug).
 
Thanks,
Bob
 
2003-11-25 14:01:42 ContextConfig[] Parse error in default web.xml
java.lang.NullPointerException
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:908)
at org.apache.commons.digester.Digester.parse(Digester.java:1543)
at 
org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:548)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
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.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
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 java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
2003-11-25 14:01:42 ContextConfig[] Parse error in application web.xml
java.lang.NullPointerException
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:908)
at org.apache.commons.digester.Digester.parse(Digester.java:1543)
at 
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
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.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
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 java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)




RE: My hosting company upgraded to the Apache Tomcat/4.1.27

2003-11-21 Thread Goehring, Chuck Mr., RCI - San Diego



Kent,

The jar containing the driver would have to be in the JAVA_HOME\jre\lib\ext
or probably preferably in WEB-INF\lib so Java can find it.

Probably have to re-start Tomcat as well.

You can view the contents of the jar with WinZip to make sure the package name matches 
and is in the jar.

Chuck  


-Original Message-
From: Kent Gilley [mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 11:03 AM
To: [EMAIL PROTECTED]
Subject: My hosting company upgraded to the Apache Tomcat/4.1.27


and my jsp pages aren't working.  They say it's simple syntax error on 
my part.

I've loaded a page with only two lines of code in them, and the problem 
is with calling the driver.

Example:
 http://www.azlehornets.com/apps/g092603.jsp 

old code

!--
%//Class.forName(org.gjt.mm.mysql.Driver);%

--

new code that I have tried.
!--
Class.forName(com.mysql.jdbc.Driver);

Class.forName(com.mysql.jdbc.Driver).newInstance();

--



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



RE: Server URL Before Request

2003-11-21 Thread Goehring, Chuck Mr., RCI - San Diego
Harris,

If you don't get a maintenance-free method from the group, you can always do the 
following:

In the servlet:
  public void init() throws ServletException {
String lConnectTNSName = getServletContext().getInitParameter(ConnectTNSName);
if(lConnectTNSName == null)
  throw new RuntimeException(ConnectTNSName is null);
...

In the web applications web.xml I store the site-specific info:
web-app
display-name (display-name)/display-name
description*** servlets and JSP pages./description
context-param
  param-nameConnectTNSName/param-name
  param-value/param-value
/context-param
...

You could store any info you want this way and it only needs to be re-entered when a 
change to your web.xml is required.

Hope the group gives you a better answer, but this is handy for a variety of things.

Chuck



-Original Message-
From: Harris Reynolds [mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 12:29 PM
To: '[EMAIL PROTECTED]'
Subject: Server URL Before Request


Is there a mgmt API that will allow me to get the URL that the server is
running on from within the servlet init method (i.e. *before* the first
request comes in)?  ...really all I would need is the port number (the
hostname and context paths would be easy enough to get).
thanks for any tips,
~harris 


-
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: Server URL Before Request

2003-11-21 Thread Goehring, Chuck Mr., RCI - San Diego
Justin,

I would be interested in seeing how to read an environment variable from the init 
method of a servlet.

Chuck

-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 2:54 PM
To: Tomcat Users List
Subject: RE: Server URL Before Request



[This is a general comment: I don't disagree with Chuck Goehring]

This is a common way to solve a problem such as the one Harris asked, but 
in general I don't think using init parameters are a very reasonable 
solution.  Here's why:

The web.xml defines the way in which the components of an application 
interact.  It defines what urls are mapped to which resources, how errors 
should be handled, and (unfortunately, IMHO) definitions of roles and 
resource authorization mappings.  These are all properties of your web 
application and say *nothing* about how the app is deployed.

Frequently, developers have situations where a webapp needs to be aware 
of the environment in which it is running.  In this case, it's the name 
and/or port that the app is running on.  In others, it's JNDI resource 
lookup information.  In still others, it's application configuration 
information that is long lived (how to configure management threads, for 
example).

The point is, this is all information that belongs to a particular 
*server*, not to the webapp.  It's different for every deployment because 
the machine for every deployment is different.  You could always 
configure this stuff in a Context, but that's Tomcat specific and is of 
no help when you need to run on different platforms -- now or in the 
future.

Instead, leave the deployment configuration parameters up to the person 
responsible for deploying -- and observe the boundaries even if it's a 
one-developer developed app.  Create a separate configuration mechanism 
(xml on the classpath, properties file, command line args, whatever is 
accessible on every platform) and use that to store this type of 
information.

Granted, small projects can use the crutches of built-in nicities, but 
for anyone developing a true J2EE app (not a Tomcat app), do yourself a 
favor and maintain strict separation between build-time configuration 
parameters and deploy-time ones.

justin

[Can you tell there's pent up frustration from having to deal with 
this?]  :)


At 01:51 PM 11/21/2003, you wrote:
If you don't get a maintenance-free method from the group, you can 
always do the following:

In the servlet:
   public void init() throws ServletException {
 String lConnectTNSName = 
 getServletContext().getInitParameter(ConnectTNSName);
 if(lConnectTNSName == null)
   throw new RuntimeException(ConnectTNSName is null);
...

In the web applications web.xml I store the site-specific info:
web-app
 display-name (display-name)/display-name
 description*** servlets and JSP pages./description
 context-param
   param-nameConnectTNSName/param-name
   param-value/param-value
 /context-param
...

You could store any info you want this way and it only needs to be 
re-entered when a change to your web.xml is required.

Hope the group gives you a better answer, but this is handy for a 
variety of things.

Chuck



-Original Message-
From: Harris Reynolds [mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 12:29 PM
To: '[EMAIL PROTECTED]'
Subject: Server URL Before Request


Is there a mgmt API that will allow me to get the URL that the server is
running on from within the servlet init method (i.e. *before* the first
request comes in)?  ...really all I would need is the port number (the
hostname and context paths would be easy enough to get).
thanks for any tips,
~harris


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


__
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
__


-
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: Designing Systems Help!

2003-11-20 Thread Goehring, Chuck Mr., RCI - San Diego
Vaneet,

There are a ton of open source projects at www.sourceforge.net.  There is a keyword 
search capably to find existing projects.  Check the Development Status and other 
project attributes to see if a project meets your objectives.  Don't know if there is 
a Document Management system, but you might find a framework or taglib that will cover 
some of the pieces.

And of course Jakarta has many framework and components libraries for doing various 
things.

Chuck

-Original Message-
From: Vaneet Sharma [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 1:19 AM
To: Tomcat Users List
Subject: Designing Systems Help!


Hi all.
. Currently i am designing a document management system. According to the architecture 
proposed, it will be a three - tier architecture. (web based)I am looking forward to 
use J2EE ..  i will be using Tomcat to run it.
 What i need to know is ? Is there any open source project for Document and Knowledge 
Management Systems. (Basically versioning the files and searching, storing, and other 
features). I think i can use good ready made reusable objects in my design.? Where can 
i get an idea .. on how to desing a good document management system.  I want the 
business rules to lie in an XML file so that the inteface , database and coding need 
not be changed. Lets say, if my company wants to add some features on the interface , 
then they can specify in XML file and whole system can be reflected.
 I would 
appreciate very much any help on this subject.
 My research work has led me to Adaptive Reflective Systems. But still, as there are 
lot of industry experts, i would like to have a feedback.
   Kind Regards to all
Yours Vaneet
 

-Original Message- 
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wed 19/11/2003 14:25 
To: Tomcat Users List 
Cc: 
Subject: RE: Tomcat  OpenJMS Design Pattern?




Howdy,
I've used and use OpenJMS with tomcat all the time, including in several
production systems.

What are you looking for specifically?  A document?  Code that sends
messages to an OpenJMS queue/topic, received from an OpenJMS
queue/topic, all of the above?

I've actually gone from using tomcat's JNDI support to specifying the
JMS connection parameters in an app-specific configuration file and
creating the JMS objects myself.  But I had it working via tomcat's JNDI
before as well.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Gavin, Rick [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 6:25 PM
To: Tomcat Users List
Subject: Tomcat  OpenJMS Design Pattern?

Hi All,
  Just wondering if any could post a working design pattern for using
openJMS or another open
JMS engine with tomcat, preferably a model using asynchronous queue
message
handling.  I
figured someone around here has done it and I would rather use a tried
and
true model.

Looking for some basics about best intregration method, and or for
dealing
with async message
Handling.

I currently have openJMS setup using persistent Database storage, using
JNDI
content lookup to
Get the JMS connection factory, is this better looked up once and bound
to
servlet context as an
Application scope variable, etc, etc?

Thanks for you any help,

Rick



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]





RE: Bit off topic : What happened to RedHat?

2003-11-18 Thread Goehring, Chuck Mr., RCI - San Diego



Rumor was they were not going to allow free downloading of binaries.  They have 
launched http://fedora.redhat.com as an open source project.  It has binaries under a 
different naming/numbering scheme.  I expect they will shut down ftp.redhat.org to the 
public.  So, they may be stopping/re-organizing public forums as well.

Don't know anything more.

Chuck

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 9:54 PM
To: [EMAIL PROTECTED]
Subject: Bit off topic : What happened to RedHat?


Hi, does anyone know what happened to RedHat, its mailing list and
forum?
Haven't used it for a while and it seems they are no more.
Also, I run JVM and TC4 on RH7.1 kernel 2.4.2 and thinking about RH9,
but someone said that's the last version and there won't be a
*stability* version coming out after that.
Also, rumour has it RH8 is full of bugs ? Can someone share their
experience please ?
can anyone shed some light please.
TIA:-)

-
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: UNSUBSCRIBE!!!

2003-11-17 Thread Goehring, Chuck Mr., RCI - San Diego
ArcherDaPunk,

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

I think some email clients don't show this for some reason.

Chuck

-Original Message-
From: ArcherDaPunk [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 2:46 PM
To: Tomcat Users List
Subject: UNSUBSCRIBE!!!


UNSUBSCRIBE ME PLEASE! OR TELL ME HOW!!

-
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: UNSUBSCRIBE!!!

2003-11-17 Thread Goehring, Chuck Mr., RCI - San Diego
Jean ,

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

I think some email clients don't show this (at the bottom of the emails) for some 
reason.

Chuck

-Original Message-
From: Jean B. Denis [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 3:50 PM
To: 'Tomcat Users List'
Subject: RE: UNSUBSCRIBE!!!


Me t

-Original Message-
From: ArcherDaPunk [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 17, 2003 4:46 PM
To: Tomcat Users List
Subject: UNSUBSCRIBE!!!

UNSUBSCRIBE ME PLEASE! OR TELL ME HOW!!

-
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: [OT] Re: UNSUBSCRIBE!!!

2003-11-17 Thread Goehring, Chuck Mr., RCI - San Diego
Jens,

I think I couldn't see it when I had MS Outlook Express.  They have since upgraded me 
to regular Outlook so I can't test for it now.  From the UNSUBSCRIBE messages we get 
on the list, it seams like some can't see it.

Chuck



-Original Message-
From: Jens Skripczynski [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 3:56 PM
Cc: Tomcat Users List
Subject: [OT] Re: UNSUBSCRIBE!!!


Hi,

it might be good, to investigate that. Many lists rely on the bottom line.
If a / some MUA hides it, it will be no use to those using it...

Hopefully it is a 'user' error...


Goehring, Chuck Mr., RCI - San Diego:
 Jean ,
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 I think some email clients don't show this (at the bottom of the emails) for some 
 reason.

Ciao

Jens Skripczynski
-- 
E-Mail: skripi-lists(at)myrealbox(dot)com

One of the richest men in the world made his billions selling a toy `operating
system' that is more accurately described as a glorified bootstrap loader.
-- Phil Karn


-
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: Help : Linux Debian

2003-11-14 Thread Goehring, Chuck Mr., RCI - San Diego
Roberto,

A few days ago, I went looking for Java for Debian when I was deciding which Linux 
port to use on a machine I was rebuilding.  There is no Java from Sun that claims to 
run on it.  The non-Sun compilers and libs for Java are available for Debian, but may 
not be complete.  Their site has some info, but it didn't look very encouraging to me. 
 I went back to Redhat.

If you get it running, I'd like to hear about it.

Chuck



-Original Message-
From: Roberto Bottoni - AfterBit (TMP) [mailto:[EMAIL PROTECTED]
Sent: Friday, November 14, 2003 1:58 AM
To: Tomcat Users List
Subject: Help : Linux Debian


Anyone has successfully installed Apache 2 and Tomcat 4.1.29 on  Debian? And
most important.. the integration between Apache and Tomcat !!

Roberto



-
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: Win2k+Apache+Tomcat Problems

2003-11-12 Thread Goehring, Chuck Mr., RCI - San Diego
Steve,

Tomcat has to be started first because it generates a conf file that Apache will read.

Note that on the referenced link there are two (different) items that contain the word 
ApacheConfig.  They both need to be in there.  This causes the config file to be 
generated.  Tomcat may take a while to do all this so, you need to wait 10 seconds or 
so before starting apache.

Once everything works properly, you can disable the generation of the conf and 
continue using the one that that was last generated.   Then the 10 second wait is no 
longer needed.

The file generated is:
%CATALINA_HOME\conf\auto\mod_jk.conf

Chuck






-Original Message-
From: Steve Milner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 7:51 AM
To: Tomcat Users List
Subject: Re: Win2k+Apache+Tomcat Problems


Out of curiosity why would 4.1.24/27 be any easier than 4.1.29? Is 
there currently issues with 4.1.29?

Thanks,
Steve


On Nov 10, 2003, at 11:19 PM, kgsat wrote:

 why donot u try reading logs and make sure u make all the entries in 
 conf
 files as they are supposed to be.
 If u can not spot the culprit change to 4.1.24/27 to work with.I am 
 sure
 this will do
 good luck
 sat
 - Original Message -
 From: Steve Milner [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 11, 2003 11:13 AM
 Subject: Win2k+Apache+Tomcat Problems


 I have installed Apache and Tomcat-4.1.29 on my Windows 2000 server. I
 have followed the instructions from
 http://www.johnturner.com/howto/winxp-howto.html (a how-to I was
 pointed to by other admins) to a T and I can't get it to work. I can
 point my browser to port 8080 of my server and get tomcat, but I get
 nothing but an Apache error message not being able to find the file
 when trying to get the same jsp from port 80 (Apache is using JKMount
 directives which I was told to add later). One thing I noticed is that
 Tomcat didn't make a apache-tomcat.conf file for me like the how-to
 said it would. I tried starting apache first, and then second. I tried
 restarting one or the other but they don't seem to communicate. I am
 using mod_jk 1.2 , apache 1.3.x and Tomcat 4.1.29 with Tomcat and
 mod_jk coming directly from the Jakarta binary site.

 Basically, I'm not sure where or what is going wrong and what I should
 do next. All help is greatly appreciated.

 Steve


 -
 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: better error messages (was re: Exception at Tomcat startup)

2003-11-10 Thread Goehring, Chuck Mr., RCI - San Diego
Anton,

I totally agree.  Somehow a blank line found it's way into the top of one of my config 
files and I had to waste a lot of time trying to figure out the problem.  Meanwhile 
Tomcat would not start and the system was down.

The problem gets worse if you have multiple web applications.

Chuck


-Original Message-
From: Anton Modaresi [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 12:58 AM
To: 'Tomcat Users List'
Subject: better error messages (was re: Exception at Tomcat startup)


But tomcat should really try to do something about its exceptions.
the error messages if existent at all besides merely an exception,
leave lots to wish for. Especially the xml parsers that not even say
what xml file is being parsed (like ok its probably a web.xml but which
one?), 
let alone where in there the problem is.

I would say it's a blocker for next stable release! :p *my opinion*


-Original Message-
From: Schalk [mailto:[EMAIL PROTECTED]
Sent: den 8 november 2003 02:26
To: 'Tomcat Users List'
Subject: RE: Exception at Tomcat startup


Het there

You may want to have a look at this line in your web.xml:
Child name 'ControlSer vlet' is not unique

It seems that is should say ControlServlet and not ControlSer vlet

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or diclosed to any other party without
the permission of the sender. If you received this message in error, please
notify me immediately so that I can correct and delete the original email.
Thank you. 

:: -Original Message-
:: From: Rishikesh Tembe [mailto:[EMAIL PROTECTED]
:: Sent: Saturday, November 08, 2003 3:09 AM
:: To: [EMAIL PROTECTED]
:: Subject: Exception at Tomcat startup
:: 
:: Hi experts,
:: 
:: This is the display I get when I start up Tomcat v4.1.27. As you can see
:: an InvocationTargetException gets thrown. I did not make any changes
:: anywhere. What could be the cause?
:: Is this a known bug? I couldn't find a similar bug in BugZilla...
:: 
:: ---
:: Nov 7, 2003 4:51:28 PM org.apache.commons.modeler.Registry loadRegistry
:: INFO: Loading registry information
:: Nov 7, 2003 4:51:29 PM org.apache.commons.modeler.Registry getRegistry
:: INFO: Creating new Registry instance
:: Nov 7, 2003 4:51:30 PM org.apache.commons.modeler.Registry getServer
:: INFO: Creating MBeanServer
:: Nov 7, 2003 4:51:32 PM org.apache.coyote.http11.Http11Protocol init
:: INFO: Initializing Coyote HTTP/1.1 on port 8080
:: Starting service Tomcat-Standalone
:: Apache Tomcat/4.1.27
:: Nov 7, 2003 4:51:35 PM org.apache.commons.digester.Digester endElement
:: SEVERE: End event threw exception
:: java.lang.reflect.InvocationTargetException
:: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
:: at
::
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
:: java:39)
:: at
::
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
:: sorImpl.java:25)
:: at java.lang.reflect.Method.invoke(Method.java:324)
:: at
::
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav
:: a:252)
:: at
:: org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
:: at org.apache.commons.digester.Rule.end(Rule.java:276)
:: at
::
org.apache.commons.digester.Digester.endElement(Digester.java:1058)
:: at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
:: Source
:: )
:: at
::
org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
:: Source)
:: at
::
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
:: S
:: ource)
:: at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
:: Source)
:: 
:: at
::
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
:: Unknown Source)
:: at
::
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
:: Dispatcher.dispatch(Unknown Source)
:: at
::
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
:: known Source)
:: at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
:: Source)
:: at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
:: Source)
:: at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
:: at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
:: Source)
:: at org.apache.commons.digester.Digester.parse(Digester.java:1548)
:: at
::
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
:: nfig.java:282)
:: at
::
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
:: 9)
:: 

RE: [OT] Re: Tomcat 4 losing session (may be related to Win XP)

2003-11-05 Thread Goehring, Chuck Mr., RCI - San Diego

Do you also have a get_this_crap_off_my_system script I can borrow.  

Thanks
Chuck


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 2:32 PM
To: Tomcat Users List
Subject: [OT] Re: Tomcat 4 losing session (may be related to Win XP)


for those of you who want to run their oracle, beware that oracle will grab
the port 8080 from your system (the tomcat port)
you can either change tomcat (conf/server.xml) or oracle (see scripts below)
as sysdba execute
call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(),
'/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()',8081))

then restart Oracle, reference below
http://www.interealm.com/technotes/roby/xdb_ports.html

- Original Message -
From: Longley, Andrew [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 2:27 PM
Subject: Tomcat 4 losing session (may be related to Win XP)


Hi all,

I've come across a situation I can't figure out and I'm wondering if it
has to do with the fact that this is the first time we've installed
Tomcat on Windows XP Prof.

Symptom: Tomcat loses session.  If you set up a very simple two JSP
process where page 1 stuffs (setAttribute) something into the session,
and page 2 displays it, the value comes back as null

Tests: if I copy the two JSPs to the examples directory included in the
Tomcat distribution, the pages perform properly.  If I create my own
context and execute the pages from there, the getAttribute returns null.

I created the context by duplicating the context in the server.xml file
and pretty much just changing the codebase.

Other environment info: running behind Apache2 (latest), on port 8082
(http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port
8080 (side note: anyone have info on how to get the flying pig to go
away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and
this is Tomcat 4 (latest).

The exact same set up works fine on Windows 2003 and Windows 2000 Prof.
And this machine works fine as a client to the server running on any
other machine, so it's not a cookie issue I don't think.

Am I missing something obvious?  Could it be permission-related?
Something in the way the session data is stored on disk?  Sure would
appreciate any advice.

Andrew Longley
Senior Software Developer
MindFlow Technologies, Inc.
http://www.mindflow.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: Unable to access shared network drives with Tomcat service

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
Joeri,

I haven't had to do this with Tomcat yet but am using it in Apache 1.x and 2.x on 
Windows 2000.  In Apache this works:

# Local Drive (old way)
#Alias /Documents e:/Documents
# Network Share (new way)
Alias /Documents //server/Documents

Couldn't find any documentation on it, but somehow I came up with this.  The Web 
Server service has to run as a domain account that is a member of a domain group that 
has access to the share.

Could be the same applies to Tomcat.  Let me know how you make out.

Chuck


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 5:31 AM
To: [EMAIL PROTECTED]
Subject: Unable to access shared network drives with Tomcat service


Hi,

I am running Tomcat 4.1.27 as a Windows service in the Windows XP operating
system. I have a problem accessing network shared drives from within my
servlets and JSP-pages.

For instance, if S is a mapped drive pointing to something like a shared
network drive \\shared_server\shared_drive, then this scriplet returns
false:

%
  java.io.File file = new java.io.File(S:/test.txt);
  boolean exists = file.exists();
  out.print(exists:  + exists);
%

The file test.txt does exist, but Tomcat does not see the shared drive.
Running Tomcat in command line mode (no service) does work!

I assume this has something to do with Windows network security?

Can anybody help me?

Thanks,

Joeri


-
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: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
Jose,

I spent a long time trying to manually setup Tomcat to run as a service.  Finally 
ended up re-installing and checking the little checkbox that makes it usable as a 
service.  It is unchecked by default. Once it is installed, you can change the account 
it executes as in the services thingy in control panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:  

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = Select * FROM DICAS WHERE ID_TOPICO =  + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
 {   // -- THIS IS LINE 413 --
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher(/semconteudo.jsp);
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before --
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides.





-
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: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products (Tomcat, Source etc) 
if you scroll down, there is and unchecked item that says to install it as a service.  
You must check this one to get it installed.  If you are re-installing you also need 
to make sure it installs in the same directory to prevent other problems.  

Once the installer completes you can run it as a service or disable the service and 
use the startup.bat in the bin directory to start it from a command prompt.  Sometimes 
this is desirable when debugging things that go wrong at startup.

Chuck


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:  

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = Select * FROM DICAS WHERE ID_TOPICO =  + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
 {   // -- THIS IS LINE 413 --
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher(/semconteudo.jsp);
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before --
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides.





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


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



RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
Jose,

Yes.  I'd rename the top level dir so you have your servlets, jsps and images saved.  
Otherwise, I'd zip it and copy it somewhere.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:45 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Thank you, Chuck. I will do it! So, i should keep saved the existing
server.xml and web.xml files before the new installation starts, i guess...
Isnt it?
Euclides

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:37
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products (Tomcat,
Source etc) if you scroll down, there is and unchecked item that says to
install it as a service.  You must check this one to get it installed.  If
you are re-installing you also need to make sure it installs in the same
directory to prevent other problems.  

Once the installer completes you can run it as a service or disable the
service and use the startup.bat in the bin directory to start it from a
command prompt.  Sometimes this is desirable when debugging things that go
wrong at startup.

Chuck


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:  

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = Select * FROM DICAS WHERE ID_TOPICO =  + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
 {   // -- THIS IS LINE 413 --
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher(/semconteudo.jsp);
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before --
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides.





-
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

RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego


I got a mail loop error??

-Original Message-
From: Goehring, Chuck Mr., RCI - San Diego 
Sent: Tuesday, October 21, 2003 10:49 AM
To: 'Jose Euclides da Silva Junior - DATAPREVRJ'; 'Tomcat Users List'
Subject: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Yes.  I'd rename the top level dir so you have your servlets, jsps and images saved.  
Otherwise, I'd zip it and copy it somewhere.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:45 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Thank you, Chuck. I will do it! So, i should keep saved the existing
server.xml and web.xml files before the new installation starts, i guess...
Isnt it?
Euclides

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:37
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products (Tomcat,
Source etc) if you scroll down, there is and unchecked item that says to
install it as a service.  You must check this one to get it installed.  If
you are re-installing you also need to make sure it installs in the same
directory to prevent other problems.  

Once the installer completes you can run it as a service or disable the
service and use the startup.bat in the bin directory to start it from a
command prompt.  Sometimes this is desirable when debugging things that go
wrong at startup.

Chuck


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:  

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = Select * FROM DICAS WHERE ID_TOPICO =  + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
 {   // -- THIS IS LINE 413 --
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher(/semconteudo.jsp);
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before --
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides

RE: Unable to access shared network drives with Tomcat service

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
Joeri,

I think, a mapped drive can't be used for running as a service.  The mappings aren't 
seen by services because noone is logged in so no login script runs.  

Chuck



-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:45 AM
To: 'Tomcat Users List'
Subject: RE: Unable to access shared network drives with Tomcat service


Also remember that UNC in java should use forward slash(/) instead of
backward(\).  Use this or you'll get funny problems from UNC names and
file access.

Wade

-Original Message-
From: John Corrigan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2003 12:17 PM
To: Tomcat Users List
Subject: RE: Unable to access shared network drives with Tomcat service


Tomcat needs to be logged in as a user with permission to use the S:
drive. You might also need to use UNC paths instead of drive mappings.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 5:31 AM
To: [EMAIL PROTECTED]
Subject: Unable to access shared network drives with Tomcat service






Hi,

I am running Tomcat 4.1.27 as a Windows service in the Windows XP
operating system. I have a problem accessing network shared drives from
within my servlets and JSP-pages.

For instance, if S is a mapped drive pointing to something like a
shared network drive \\shared_server\shared_drive, then this scriplet
returns
false:

%
  java.io.File file = new java.io.File(S:/test.txt);
  boolean exists = file.exists();
  out.print(exists:  + exists);
%

The file test.txt does exist, but Tomcat does not see the shared
drive. Running Tomcat in command line mode (no service) does work!

I assume this has something to do with Windows network security?

Can anybody help me?

Thanks,

Joeri


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


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



RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
Jose,

Yes.  I'd rename the top level dir so you have your servlets, jsps and images saved.  
Otherwise, I'd zip it and copy it somewhere.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:45 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Thank you, Chuck. I will do it! So, i should keep saved the existing
server.xml and web.xml files before the new installation starts, i guess...
Isnt it?
Euclides

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:37
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products (Tomcat,
Source etc) if you scroll down, there is and unchecked item that says to
install it as a service.  You must check this one to get it installed.  If
you are re-installing you also need to make sure it installs in the same
directory to prevent other problems.  

Once the installer completes you can run it as a service or disable the
service and use the startup.bat in the bin directory to start it from a
command prompt.  Sometimes this is desirable when debugging things that go
wrong at startup.

Chuck


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:  

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = Select * FROM DICAS WHERE ID_TOPICO =  + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
 {   // -- THIS IS LINE 413 --
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher(/semconteudo.jsp);
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before --
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides.


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



RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
Jose,

Regarding the service installed by the tcservcfg - don't know anything about what it 
did.  But, since you installed the service outside of the Tomcat installer, it 
probably won't uninstall it.  Could be that tool will remove it also, don't know.

There is no GUI command to remove services that I know of. Generically, to remove a 
service, you have to go into the registry with regedit by using the run command on the 
start menu.  This is generally considered dangerous so you must pay attention and be 
carefull.  And backup anything that is important first.  Don't do this if your not 
used to using regedit.exe to fix things.

Use run conmmand or Command prompt to execute regedit.exe.
Go to HKEY_LOCAL_MACHINE
Under that, go to SYSTEM
Under that, go to CurrentControlSet
Under that, go to Services

There you should see Apache Tomcat listed on the left side.  When you clisk it, you 
will see DisplayName on the right with Apache Tomcat as the value.  Make sure the 
Apache Tomcat on the left is selected by clicking it again and use the menu to 
select Edit/Delete.  That should remove the Apache Tomcat from the left and values 
for it from the right.

Close regedit and reboot.

That should do it.

Chuck



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



RE: Why should I use Tomcat vs .NET?

2003-10-13 Thread Goehring, Chuck Mr., RCI - San Diego
Eduardo,

A couple interesting points involves myself and my coworker. He has about ten years of 
VB programming experience.  None of his code can be migrated to vb.net without major 
rewriting because there is no semblance of backward compatibility.  It wouldn't be 
practical for the customer to pay him to convert the app to dot.net, so he's stuck in 
1998.  All the VB programmers have been screwed by Microsoft this way.

With me, I've been doing Java and perl for about 6 years.  Because of the contracting 
environment I'm in, it looked like my work was going to dry up.  An opportunity came 
along for me within the company.  They wanted to do ASP 2.0 web development because 
they had to meet a variety of government requirements and ASP had been approved for 
use.  Thinking I was going to have to do that project, I checked into it.  Firstly, 
the ASP code they were going to write is totally incompatible with ASP.net, so it was 
going down a dead path.  To cover all the bases, I did some research into upgrading my 
copy of Visual C++ 6.0 to Visual Studio.net.  MS wanted $450 for the upgrade.  That's 
a lot for me to fork over to start over with a completely different system that has 
limited uses.  Fortunately, I didn't have to go that route, but it came close.

Comparing that to continuing with Tomcat and Eclipse or NetBeans or JCreator (free 
version), I can't see why anyone would choose to go the dot.net route.  MS has also 
done a powerplay on the folks that use Frontpage Extensions.  The Frontpage 200x now 
requires that you subscribe to a service from Microsoft to enable important features 
of the product.  It is a lot like extortion.

I like using the free products because I can dump any of them at any time without 
feeling guilty about wasting the company's money.  Once you spend thousands to use a 
proprietary product, you may never be able to escape.  I still have to support an 
ancient Developer 2000 product that can't be cost-effectively be migrated to a newer 
version and has all kinds of compatibility issues when used with newer products.

Chuck


-Original Message-
From: Eduardo Vazquez [mailto:[EMAIL PROTECTED]
Sent: Monday, October 13, 2003 10:48 AM
To: 'Tomcat Users List'
Subject: RE: Why should i use Tomcat vs .NET?


Up front I do need to say that the support of this user group has
been more than outstanding. I was a sole person looking for help and I
received more than I could have expected, and for that thanks to all.
Eventually I have lost the war; my CTO has decided on a new technology on
his lonesome and has hinted that any effort expended moving forward won't
result in any reconsideration of his decision (so much for standards and not
putting all your eggs in one basket) Again, I've learned much from all those
who have replied to my request and hope that others have learnt a little
sumthin' along the way.

Much Thanks,
Eduardo



-Original Message-
From: epyonne [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 13, 2003 9:26 AM
To: Tomcat Users List
Subject: Re: Why should i use Tomcat vs .NET?

Simple decision.  If your company is a pure Microsoft shop, i.e. you use
Windows desktops, Windows servers, and SQL Server databases, then it is a
no-brainer, go with .NET.

On the other hand, if your company has a mixed environment like ours, i.e.
Windows and Linux OSs, UNIX Servers, Windows Servers, Oracle databases
so on and so on. You may not want to use .NET.  Microsoft claims that .NET
can port to UNIX, but there is still a long way to go IMHO.  J2EE will be a
better choice for such diverse environment.

By the way, Tomcat is merely a web/servlet container and .NET is an
enterpirse architecture.  You are comparing apple to orange.

Hope this helps.


- Original Message -
From: Eduardo Vazquez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 10, 2003 10:48 AM
Subject: Why should i use Tomcat vs .NET?


I work for a small company which is seriously considering the .NET route
moving into the future. My mission if I chose to accept is to sway popular
opinion towards Tomcat (Jakarta) for reasons I've yet to summarize because I
can't confidently regurgitate any (I'm new to Linux/Tomcat for the most
part). Is there anyone who has made this argument yet? Are there anyone have
a url with the comparison done already or a list of reasons why .NET isn't
optimal versus the other options or on the flip side of that; why tomcat
rocks? Any help would be appreciated; I'm not looking forward to becoming
even more reliant on one company.



Thanks in advance,

Eduardo


-
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: RE: Is it a Memory leak issue???

2003-10-05 Thread Goehring, Chuck Mr., RCI - San Diego
Satya ,

I'm just passing on that at least some versions of javac were alleged to have memory 
leaks.  If that is the problem, the version of Tomcat wouldn't matter.  I don't really 
know much about this issue, I was just passing on some info I thought might be 
helpful.  If you are sure you are putting the pre-compiled class files in the right 
place, then the issue I brought up is not your problem.

Chuck



-Original Message-
From: Satya Narayan Dash [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 05, 2003 3:08 AM
To: Tomcat Users List
Subject: Re: RE: Is it a Memory leak issue???


Chuck,

In fact I've upgraded from Tomcat 4.0.4  to 4.1.27. I have precompiled JSPs w.r.t 
tomcat 4.0.4. Do you want me to compile them w.r.t 4.1.27 and retest??

Satya.

On Sun, 05 Oct 2003 Goehring, Chuck Mr., RCI - San Diego wrote :
Satya,

Roomer was the Java compiler leaks memory when it compiles(as for JSPs).  Solution is 
to compile offline.   Don't know what versions or if even true, but I've seen it 
mentioned several times.  Search the archives at http://marc.theaimsgroup.com.

Chuck

-Original Message-
 From: Satya Narayan Dash [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 04, 2003 7:20 AM
To: [EMAIL PROTECTED]
Subject: Is it a Memory leak issue???


Hi All,

Last time I posted this question, but did not get any response. Hope, this time I'll 
get.

I am running Apache 2.0.47 and Tomcat 4.1.27 with mod_jk as the connector. I am 
some issues w.r.t the memory consumption. In fact, in apache users forum, the user 
thinks it is an issue with mod_jk.so/dll.

I bombardded Apache with a large no. of JSP/Servlet pages and it ate up a few MBs of 
memory and did not release it,though it stablizes after consuming the memory. Again, 
if I am loading more JSP/Servlet pages, is starts increasing. The increment is in MB 
range, which is quite significant.

Even after killing all the clients, the memory is not getting released.
The redirections of JSP/Servlet pages is proper and they are getting executed by 
Tomcat (from mod_jk.log).

Can anyone tell me where is the problem??? This happens only in Windows(I have tested 
in Win2k). In linux platform this is absent.

Any help is appreciated.

regards,
Satya.

-
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: Is it a Memory leak issue???

2003-10-04 Thread Goehring, Chuck Mr., RCI - San Diego
Satya,

Roomer was the Java compiler leaks memory when it compiles(as for JSPs).  Solution is 
to compile offline.   Don't know what versions or if even true, but I've seen it 
mentioned several times.  Search the archives at http://marc.theaimsgroup.com.

Chuck

-Original Message-
From: Satya Narayan Dash [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 04, 2003 7:20 AM
To: [EMAIL PROTECTED]
Subject: Is it a Memory leak issue???


Hi All,

Last time I posted this question, but did not get any response. Hope, this time I'll 
get.

I am running Apache 2.0.47 and Tomcat 4.1.27 with mod_jk as the connector. I am some 
issues w.r.t the memory consumption. In fact, in apache users forum, the user thinks 
it is an issue with mod_jk.so/dll.

I bombardded Apache with a large no. of JSP/Servlet pages and it ate up a few MBs of 
memory and did not release it,though it stablizes after consuming the memory. Again, 
if I am loading more JSP/Servlet pages, is starts increasing. The increment is in MB 
range, which is quite significant.

Even after killing all the clients, the memory is not getting released. 
The redirections of JSP/Servlet pages is proper and they are getting executed by 
Tomcat (from mod_jk.log).

Can anyone tell me where is the problem??? This happens only in Windows(I have tested 
in Win2k). In linux platform this is absent.

Any help is appreciated.

regards,
Satya.

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



RE: Urgent plz...modjk2, Tomcat 4.1.27, apache 1.3.24 integration

2003-09-24 Thread Goehring, Chuck Mr., RCI - San Diego
Mohan,

I believe this Address already in use message always means something else is already 
listening on the port/LAN card/IP address.  Could be another Tomcat or another web 
server.  Doc at www.johnturner.com/howto is best instruction on modjk2/Tomcat/apache.  
If on Windows, check services and use netstat (dos box) to check the system.

Chuck


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 9:32 AM
To: [EMAIL PROTECTED]
Subject: Urgent plz...modjk2, Tomcat 4.1.27, apache 1.3.24 integration


Hi All
I am having apache 1.3.27, tomcat 4.1.27, i have compiled mod_jk2 on my
machine, when i open the URL it says document contains no data the
tomcat looks to be starting fine saying:
Starting service Tomcat-Apache
Apache Tomcat/4.1.27
Sep 23, 2003 9:17:17 AM org.apache.jk.common.ChannelSocket init
INFO: Port busy 8009 java.net.BindException: Address already in use
Sep 23, 2003 9:17:17 AM org.apache.jk.common.ChannelSocket in

The httpd logs give out this error. Please help me if anyone knows
anything about this error:

aught SIGTERM, shutting down
[Tue Sep 23 09:25:12 2003] [error] Cannot remove module mod_jk2.c: not
found in module list
[Tue Sep 23 09:25:13 2003] [error] Cannot remove module mod_jk2.c: not
found in module list
[Tue Sep 23 16:25:13 2003]  ( info) [mod_jk2.c (208)]: Set serverRoot
/etc/httpd
Create config for main host
[Tue Sep 23 09:25:14 2003] [notice] Apache/1.3.27 (Unix)  (Red-Hat/Linux)
mod_python/2.7.8 Python/1.5.2 mod_ssl/2.8.12 OpenSSL/0.9.6b PHP/4.1.2
mod_perl/1.26 FrontPage/5.0.2.2510 configured -- resuming normal
operations
[Tue Sep 23 09:25:14 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Tue Sep 23 09:25:14 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)



[Tue Sep 23 09:25:34 2003] [notice] child pid 1328 exit signal
Segmentation fault (11)
[Tue Sep 23 09:25:35 2003] [notice] child pid 1331 exit signal
Segmentation fault (11)


Thank you very much, please help me i am on a tight deadline

--Mohan






-
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: How deploy EJB on Tomcat?

2003-09-15 Thread Goehring, Chuck Mr., RCI - San Diego

Igor,

Tomcat has no EJB Container as they call it.  I'd use JBoss (www.jboss.org) if I had 
EJB work to do.  Otherwise, one of the commercial products would be needed.

Chuck


-Original Message-
From: Igor Grygorov [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 10:41 PM
To: [EMAIL PROTECTED]
Subject: How deploy EJB on Tomcat?


Does the Tomcat-IIS support deploing Enterprise Java
Beans?
Can you send me information or links about it, please?

__
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: Development Tools

2003-09-10 Thread Goehring, Chuck Mr., RCI - San Diego
Nihita,

I use eclipse for applet and application development.  But for servlet writing, I use 
jcreator (http://www.jcreator.com/).  The free version does not have debugger support 
but is small, Java version independent, easy/fast to install and doesn't use up 40mb 
of memory when it runs.  It also doesn't have any type of Tomcat or EJB support, but 
my server-side stuff is limited to servlets so this is not an issue.  Since is it is 
free, it can be installed on every server as needed to make quick changes during 
testing/qa.

Eclipse has a plugin for Tomcat but I haven't used it.

Chuck


-Original Message-
From: Nihita [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 5:54 AM
To: Tomcat
Subject: Development Tools


Are there any free available development tools like Oracle Developer suite  for 
developing J2EE application which are also Tomcat complaint ? And will the forms and 
pages developed using Oracle Internet development Suite work with tomcat ?

Thanks
Nihita

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



RE: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start

2003-09-08 Thread Goehring, Chuck Mr., RCI - San Diego
To the next guy,

Found the problem here.  JAVA_HOME should be d:\j2sdk1.4.2_01 instead of what it is 
below.

Chuck

-Original Message-
From: Goehring, Chuck Mr., RCI - San Diego 
Sent: Friday, September 05, 2003 3:17 PM
To: [EMAIL PROTECTED]
Subject: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start


Tomcatters,

I'm having trouble getting tomcat installed as a Win2000 service.

Below is the command I'm using:
%CATALINA_HOME%\bin\tomcat.exe -install Apache Tomcat 
%JAVA_HOME%\jre\bin\server\jvm.dll 
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar 
-Djava.endorsed.dirs=%CATALINA_HOME%\bin;%CATALINA_HOME%\common\lib 
-Dcatalina.home=%CATALINA_HOME% -start org.apache.catalina.startup.BootstrapService 
-params start -stop org.apache.catalina.startup.BootstrapService -params stop -out 
%CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log

It succeeds and produces registry entries that look the same as those created by the 
Tomcat installer.  When it tries to load, the following messages get logged to the 
event log:

  The LoadLibrary function failed for the following reason: The specified module could 
not be found.
  Could not load the Java Virtual Machine. 
  The Apache Tomcat service failed to start. 

There is nothing in any of tomcats logs.  The version info is as folowes:
  Win 2000 service pack 4
  Tomcat 4.1.24
  Java j2sdk1.4.2_01 (never used this new one before)

Environment(wrapped):
  CATALINA_HOME=f:\Tomcat4.1
  JAVA_HOME=d:\j2re1.4.2_01
  Path=F:\Tomcat4.1\bin;E:\perl\bin;E:\Apache2\bin;D:\j2sdk1.4.2_01\bin;C:\PROGRA~
  1\SIMSEX~1;c:\aux_bin;C:\Oracle\Ora81\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\Sy
  stem32\Wbem;C:\PROGRA~1\MICROS~3\Common\msdev98\BIN;C:\PROGRA~1\MICROS~3\VC98\BI
  N;C:\PROGRA~1\MICROS~3\Common\TOOLS\WINNT;C:\PROGRA~1\MICROS~3\Common\TOOLS;C:\
  Program Files\Symantec_Client_Security\Symantec AntiVirus

If I start it with the startup.bat, it comes up fine.

Anyone have a suggestion?

Chuck





 

-
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: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start

2003-09-08 Thread Goehring, Chuck Mr., RCI - San Diego
Tomcatters,

I spoke too soon on this.  Now (after rebooting) the Event Viewer shows an entry that 
the service started but I'm getting the following in stdout.log:

Bootstrap: Create Catalina server
org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:355)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
at org.apache.commons.digester.Digester.init(Digester.java:352)
at org.apache.catalina.startup.Catalina.createStartDigester(Catalina.java:280)
at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:183)
at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:258)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:231)
at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297)
Caused by: java.lang.NullPointerException
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:543)
... 12 more
Bootstrap: Starting service
Bootstrap: Service started

Any help would be appreciated
Chuck


-Original Message-
From: Goehring, Chuck Mr., RCI - San Diego 
Sent: Monday, September 08, 2003 11:24 AM
To: Tomcat Users List
Subject: RE: Installing Tomcat 4.1.24 as a service on Win 2000 - won't
start


To the next guy,

Found the problem here.  JAVA_HOME should be d:\j2sdk1.4.2_01 instead of what it is 
below.

Chuck

-Original Message-
From: Goehring, Chuck Mr., RCI - San Diego 
Sent: Friday, September 05, 2003 3:17 PM
To: [EMAIL PROTECTED]
Subject: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start


Tomcatters,

I'm having trouble getting tomcat installed as a Win2000 service.

Below is the command I'm using:
%CATALINA_HOME%\bin\tomcat.exe -install Apache Tomcat 
%JAVA_HOME%\jre\bin\server\jvm.dll 
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar 
-Djava.endorsed.dirs=%CATALINA_HOME%\bin;%CATALINA_HOME%\common\lib 
-Dcatalina.home=%CATALINA_HOME% -start org.apache.catalina.startup.BootstrapService 
-params start -stop org.apache.catalina.startup.BootstrapService -params stop -out 
%CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log

It succeeds and produces registry entries that look the same as those created by the 
Tomcat installer.  When it tries to load, the following messages get logged to the 
event log:

  The LoadLibrary function failed for the following reason: The specified module could 
not be found.
  Could not load the Java Virtual Machine. 
  The Apache Tomcat service failed to start. 

There is nothing in any of tomcats logs.  The version info is as folowes:
  Win 2000 service pack 4
  Tomcat 4.1.24
  Java j2sdk1.4.2_01 (never used this new one before)

Environment(wrapped):
  CATALINA_HOME=f:\Tomcat4.1
  JAVA_HOME=d:\j2re1.4.2_01
  Path=F:\Tomcat4.1\bin;E:\perl\bin;E:\Apache2\bin;D:\j2sdk1.4.2_01\bin;C:\PROGRA~
  1\SIMSEX~1;c:\aux_bin;C:\Oracle\Ora81\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\Sy
  stem32\Wbem;C:\PROGRA~1\MICROS~3\Common\msdev98\BIN;C:\PROGRA~1\MICROS~3\VC98\BI
  N;C:\PROGRA~1\MICROS~3\Common\TOOLS\WINNT;C:\PROGRA~1\MICROS~3\Common\TOOLS;C:\
  Program Files\Symantec_Client_Security\Symantec AntiVirus

If I start it with the startup.bat, it comes up fine.

Anyone have a suggestion?

Chuck





 

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



Installing Tomcat 4.1.24 as a service on Win 2000 - won't start

2003-09-05 Thread Goehring, Chuck Mr., RCI - San Diego
Tomcatters,

I'm having trouble getting tomcat installed as a Win2000 service.

Below is the command I'm using:
%CATALINA_HOME%\bin\tomcat.exe -install Apache Tomcat 
%JAVA_HOME%\jre\bin\server\jvm.dll 
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar 
-Djava.endorsed.dirs=%CATALINA_HOME%\bin;%CATALINA_HOME%\common\lib 
-Dcatalina.home=%CATALINA_HOME% -start org.apache.catalina.startup.BootstrapService 
-params start -stop org.apache.catalina.startup.BootstrapService -params stop -out 
%CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log

It succeeds and produces registry entries that look the same as those created by the 
Tomcat installer.  When it tries to load, the following messages get logged to the 
event log:

  The LoadLibrary function failed for the following reason: The specified module could 
not be found.
  Could not load the Java Virtual Machine. 
  The Apache Tomcat service failed to start. 

There is nothing in any of tomcats logs.  The version info is as folowes:
  Win 2000 service pack 4
  Tomcat 4.1.24
  Java j2sdk1.4.2_01 (never used this new one before)

Environment(wrapped):
  CATALINA_HOME=f:\Tomcat4.1
  JAVA_HOME=d:\j2re1.4.2_01
  Path=F:\Tomcat4.1\bin;E:\perl\bin;E:\Apache2\bin;D:\j2sdk1.4.2_01\bin;C:\PROGRA~
  1\SIMSEX~1;c:\aux_bin;C:\Oracle\Ora81\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\Sy
  stem32\Wbem;C:\PROGRA~1\MICROS~3\Common\msdev98\BIN;C:\PROGRA~1\MICROS~3\VC98\BI
  N;C:\PROGRA~1\MICROS~3\Common\TOOLS\WINNT;C:\PROGRA~1\MICROS~3\Common\TOOLS;C:\
  Program Files\Symantec_Client_Security\Symantec AntiVirus

If I start it with the startup.bat, it comes up fine.

Anyone have a suggestion?

Chuck





 

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



RE: Tomcat 5 book

2003-09-04 Thread Goehring, Chuck Mr., RCI - San Diego

Part of Wrox stuff went to Apress and part went to John Wiley and Sons. (from 
http://www.booksmatter.com)

Chuck


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 6:04 AM
To: Tomcat Users List
Subject: RE: Tomcat 5 book



Howdy,
An amazon search doesn't yield much... I know there was a Wrox book in
the works a while ago, since they asked me and other developers to write
parts of it, but I think that whole company went kaput and so I don't
know what's up with their book...  Rest assured, once tomcat 5 is out,
all the companies that have tomcat 4 books out will scramble to update
their books to tomcat 5 ;)


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Marco Tedone [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 2:40 AM
To: Tomcat Users List
Subject: Tomcat 5 book

Hi, is there in prevision any book about Tomcat 5?

Marco



-
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: Re-routing messages from the console on Win NT/2000

2003-08-14 Thread Goehring, Chuck Mr., RCI - San Diego


Thanks, I'll try it.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 8:34 AM
To: Tomcat Users List
Subject: RE: Re-routing messages from the console on Win NT/2000



Howdy,

I am running Tomcat 4.1.24 on Windows NT 4.0.  When I get a runtime
error
in my servlet, I'm getting stack traces on the console instead of in
the
log.  Is there a way to force all output to the log.  I have a log
specified that it writes to while the container loads, but for some
reason,
runtime errors.  Should I be doing something other than
exception.printStackTrace();.  If I could get a copy of the stack
trace,
I could use getServletContext().log().

Several options:

-Add swallowOutput=true to your context definition, and the console
output will be redirected to your servlet context log, as if you had
used ServletContext#log(...).

- Use a StringWriter to get the stack trace, e.g. for Exception e,
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
pw.flush();
getServletContext().log(sw.toString());

- Use a logging system like log4j and just do 
try {
  ... 
} catch(Exception e) {
  LOGGER.error(Messed up: , e);
}

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]



Re-routing messages from the console on Win NT/2000

2003-08-04 Thread Goehring, Chuck Mr., RCI - San Diego
Tomcatters,

I am running Tomcat 4.1.24 on Windows NT 4.0.  When I get a runtime error in my 
servlet, I'm getting stack traces on the console instead of in the log.  Is there a 
way to force all output to the log.  I have a log specified that it writes to while 
the container loads, but for some reason, runtime errors.  Should I be doing something 
other than exception.printStackTrace();.  If I could get a copy of the stack trace, 
I could use getServletContext().log().

Suggestions please.

Thanks
Chuck

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



RE: Please help with unusual configuration

2003-07-14 Thread Goehring, Chuck Mr., RCI - San Diego


Since ssl is required/not required based on the directory, how can I have ssl and 
non-ssl users access the same files with only the protocol  port different?  Is this 
why I would use separate virtual hosts?

Thanks
Chuck


-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 5:22 PM
To: Tomcat Users List
Subject: Re: Please help with unusual configuration


It doesn't sound like you are doing at all unusual.
It sounds like pretty normal HTTP/HTTPS apache/tomcat configuration.

Just have the firewall block port 80 traffic and have apache listen on ports 80 
and 443.

Then outside traffic uses https://yoursite.gov (port 443) and inside traffic 
uses http://yoursite.gov (port 80)

1 Apache
1 Tomcat
1 computer

-- 
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***


-
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: Please help with unusual configuration

2003-07-14 Thread Goehring, Chuck Mr., RCI - San Diego


Tried like below.  Seams simple enough, but it complains about overlapping and 
localhost:0. All I want is two virtual hosts that are identical except for the 
protocol and port.  I think I want overlapping in this case

#Listen 206.128.139.123:80
#Listen 206.128.139.123:443

Listen 80
Listen 443

ServerName dis.resourceconsultants.com

NameVirtualHost 206.128.139.123:80
NameVirtualHost 206.128.139.123:443

ServerAdmin [EMAIL PROTECTED]

VirtualHost 206.128.139.123:80
# Didn't like this VirtualHost _default_:80
DocumentRoot c:/apache/htdocs
#ServerName dis.resourceconsultants.com
ErrorLog logs/error_log.txt
/VirtualHost
VirtualHost 206.128.139.123:443
# Didn't like this VirtualHost _default_:443
DocumentRoot c:/apache/htdocs2
#ServerName dis.resourceconsultants.com
ErrorLog logs/error_ssl_log.txt
/VirtualHost


And it complains about localhost and overlapping like

C:\Apache\binapache
[Mon Jul 14 18:07:49 2003] [warn] VirtualHost localhost:0 overlaps with VirtualH
ost localhost:0, the first has precedence, perhaps you need a NameVirtualHost di
rective
[Mon Jul 14 18:07:49 2003] [warn] VirtualHost 206.128.139.123:443 overlaps with
VirtualHost dis.resourceconsultants.com:0, the first has precedence, perhaps you
 need a NameVirtualHost directive

Got any pointers


-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 8:34 PM
To: Tomcat Users List
Subject: Re: Please help with unusual configuration


Yhea,

I do something similar using the virtualhost directive.  It works great.

Rick Roberts wrote:

 It doesn't sound like you are doing at all unusual.
 It sounds like pretty normal HTTP/HTTPS apache/tomcat configuration.

 Just have the firewall block port 80 traffic and have apache listen on 
 ports 80 and 443.

 Then outside traffic uses https://yoursite.gov (port 443) and inside 
 traffic uses http://yoursite.gov (port 80)

 1 Apache
 1 Tomcat
 1 computer


-- 

Developer
Greenfield Research Inc.
atreya(AT)greenfieldresearch(DOT)ca
(902)422-9426




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



Please help with unusual configuration

2003-07-11 Thread Goehring, Chuck Mr., RCI - San Diego
Connector fans,

I'm currently running Apache 2.x and Tomcat 4.24 (no ssl) on Windows 2000 on a 
Government intranet web server.  This will be placed on the public internet and use 
full-time ssl for connections outside the firewall. Only port 443 will be available 
from outside the firewall. Inside the firewall, users can communicate without ssl.

The system uses mod_perl scripts, Java servlets and six static pages.   I'm trying to 
evaluate if it is better to use one Apache that listens on two ports or use two 
Apaches with two config files.  I'd like to avoid having to maintain two sets of 
directories on the server, if possible, but I haven't used Windows 2000's symbolic 
links (junctions) before.  Because of the limited info on junctions, I'm leery of 
using them.  In my code, I'm already setup to handle multiple server names and ports, 
but having to use different directory names or cgi file names might be a problem.

I figure I need to run Apache twice with separate config files that alias the same 
directories.  I also figure I need to convert the static pages to jsp files so I can 
put the correct port and protocol on links at run time.  On the Tomcat side I'll need 
two connectors to communicate with the two mod_jk that will be running.  I'd also need 
two entries in the workers.properties file to mate them up.  I don't think I should 
need to use ssl for Apache to talk to Tomcat but I'm not sure.  

Am I on the right track, or am I going to get sharing violations and other problems?

Below is a summary of what I think I need:

Tomcat direct port 8080.
Apache 1 port 80 Tomcat connector port 8009
Apache 2 port 443 Tomcat connector port 8010

Thanks for any inputs you can give me.
Chuck



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



RE: Need your suggestion

2003-07-02 Thread Goehring, Chuck Mr., RCI - San Diego
Cui,

Tomcat is non-proprietary, so, if you are a little careful, anything you write could 
outlive any product commercial or otherwise.  Same with the knowledge/skill you 
develop.  If you start with Tomcat and something better comes along, you can switch 
without feeling guilty about spending thousands of company dollars on something that 
isn't being used.  

Another good reason is you have no licenses to worry about.  If you need to setup some 
sort of prototype system, you can make another box and not have to worry about the 
corporate police or some company coming after you.  If you wanted, you could put one 
on every users machine in the company.

Otherwise, it's mainly a religious question like Microsoft vs. Linux vs. Mac.

I've had Tomcat in production for a couple years and never had any kind of a crash or 
failure with it.  I also got all the upgrades free - no begging or waiting or install 
keys or flaky setup programs.

Chuck


-Original Message-
From: Cui Xiaojing-a13339 [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 4:30 AM
To: Tomcat Users List
Subject: Need your suggestion


Hello All,

We plan to develop two web applications. Now we have two solutions for them and only 
one solution could be chosen for the two applications, that means the two application 
must use same solution. 

The two solutions are:
1. Oracle JServer+Oracle 9iAS 1.0.2
2. Tomcat + Apache

Could you please give some suggestion about which solution is better?

ThanksRegards,
Xiaojing
 

-
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: running tomcat offline

2003-06-27 Thread Goehring, Chuck Mr., RCI - San Diego
Pierre,

I use a hosts file to name the machine whatever I want.  I think this would also 
eliminate the need for an internet connection (to get to DNS).  I put the same name in 
the server.xml everywhere that localhost appears.  Seams to work for me.

Chuck

-Original Message-
From: P.Ruijters [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 2:03 PM
To: [EMAIL PROTECTED]
Subject: running tomcat offline


Hello,

Is it possible to develop servlets in tomcat offline? Currently I do need an internet 
connection to be able to run my servlets/jsp. Without the connection it does not. This 
is inconvenient if you want to work on say a laptop temporarily not being able to 
connect to the internet. If it is possible to have tomcat run this way what settings 
should be applied to which files?

Thanks for your time

Pierre

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



RE: running tomcat offline

2003-06-27 Thread Goehring, Chuck Mr., RCI - San Diego
Pierre,

You may also have to turn lookups off in the server.xml (enableLookups=false) on the 
connectors.
You will still probably need the network card and driver.

Chuck

-Original Message-
From: Goehring, Chuck Mr., RCI - San Diego 
Sent: Friday, June 27, 2003 2:12 PM
To: Tomcat Users List
Subject: RE: running tomcat offline


Pierre,

I use a hosts file to name the machine whatever I want.  I think this would also 
eliminate the need for an internet connection (to get to DNS).  I put the same name in 
the server.xml everywhere that localhost appears.  Seams to work for me.

Chuck

-Original Message-
From: P.Ruijters [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 2:03 PM
To: [EMAIL PROTECTED]
Subject: running tomcat offline


Hello,

Is it possible to develop servlets in tomcat offline? Currently I do need an internet 
connection to be able to run my servlets/jsp. Without the connection it does not. This 
is inconvenient if you want to work on say a laptop temporarily not being able to 
connect to the internet. If it is possible to have tomcat run this way what settings 
should be applied to which files?

Thanks for your time

Pierre

-
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: Running Tomcat on port 80

2003-06-12 Thread Goehring, Chuck Mr., RCI - San Diego
Terry,

Tomcat would need exclusive use of the port.  You probably have Apache or some other 
web server already listening on that port.  You will have to move it to another if you 
want to run Tomcat on 80.  The other option is to have Apache act as the front-end to 
Tomcat using a connector such as mod_jk.

Chuck


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 4:53 PM
To: [EMAIL PROTECTED]
Subject: Running Tomcat3 on port 80


What do I have to do to get Tomcat 3.3.1 to run with port 80?  I modified server.xml 
to alter the port number, and it now fails with lack of permission on port 80.  The 
Redhad doc for Apache says it must be started by root for this to work, but I start it 
as root and it still fails.

A command line procedure would be best, and pointer to commands and doc is fine.

Thanks!

Regards, 
Terry Fuller
[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: Tomcat unstable - Dr. Watson. Why?

2003-04-03 Thread Goehring, Chuck Mr., RCI - San Diego
Iain,

Most backup software I've seen does so much I/O, anything else running will be so 
severely starved for CPU it may confuse itself to death.  Backup software does this on 
purpose to get the process over with as quick as possible.  So, it may not affect an 
idle server process, but trying to do any kind of work while the backup is running is 
probably futile.  You can see this by being around when the backup is running.  I 
don't think there is a reliable way to lower the priority of the backup process on 
nt/2000 unless the software itself has an option for it.

You probably need to setup a hot backup arrangement that pulls the data out of the 
database and writes it to another machine acting as a staging area for going to tape.  
If you have other stuff on the server that needs to be backed up and you run 24x7, you 
will need to make other arrangements to back that data up.

Chuck

-Original Message-
From: Iain Sanderson [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 9:32 AM
To: [EMAIL PROTECTED]
Subject: Tomcat unstable - Dr. Watson. Why?


Hello,

Tomcat is crashing on my  application server when my database server is 
busy with a running backup, which is every night from 12am to 7am ( 80 
Gb).

I'm running Tomcat 4.22 on Windows NT sp6  using the Java 1.41 VM as a 
service with the  -Xxms256m -Xxmx256m  switches set in the registry for 
the VM. (This is the same as setting these options in Catalina Opts when 
you're not running Tomcat as a service).

Tomcat.exe is throwing a Dr. Watson error

Application exception occurred:
App:  (pid=603)   -which is tomcat.exe
When: 4/3/2003 @ 1:45:16.203
Exception number: c005 (access violation)

There is no information in Tomcat's logs at all.  Windows just shuts down 
the Tomcat service. Tomcat remains unstable like this as long as my 
database server  ( a different and very powerful box) is backing up.
Here are some clues:-

a) This instability is cured by enabling incremental garbage collection  ( 
-Xincgc JVM switch), but performance reduces by 300%. Our SQL  queries on 
the server  are large ( Operating room schedules etc. Queries take 0.15 to 
0.2 seconds, but page refreshes in Tomcat  5-6 seconds, which is 
acceptable. With incremental GC this increases to 17 seconds, which is 
not.)

I'm sure the problem is due to database connections, but I can't fault my 
code. I'm using Tomcat's JNDI datasource pool (commons DBCP), set in 
server.xml.  I have been very careful to close all my connections using 
the following code straight out of Tomcat's documentation (see below)

Can anybody help? I've been chasing this for some time now and have lost 
most of my hair.

Iain

Below is datasource configuration from web-app context in server.xml and 
sample of database connection code.

code.


Connection conn = null;
  Statement stmt = null;  // Or PreparedStatement if needed
  ResultSet rs = null;
  try {
conn = ... get connection from connection pool ...
stmt = conn.createStatement(select ...);
rs = stmt.executeQuery();
... iterate through the result set ...
rs.close();
rs = null;
stmt.close();
stmt = null;
conn.close(); // Return to connection pool
conn = null;  // Make sure we don't close it twice
  } catch (SQLException e) {
... deal with errors ...
  } finally {
// Always make sure result sets and statements are closed,
// and the connection is returned to the pool
if (rs != null) {
  try { rs.close(); } catch (SQLException e) { ; }
  rs = null;
}
if (stmt != null) {
  try { stmt.close(); } catch (SQLException e) { ; }
  stmt = null;
}
if (conn != null) {
  try { conn.close(); } catch (SQLException e) { ; }
  conn = null;
}
  }





 Server.xml Settings are:-
ResourceParams name=jdbc/saturn
parameter
  namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
  namemaxActive/name
  value100/value
/parameter
parameter
  namemaxWait/name
  value10/value
/parameter
parameter
  namepassword/name
  value/value
/parameter
parameter
  nameurl/name
  valuejdbc:sybase:Tds:/value
/parameter
parameter
  namedriverClassName/name
  valuecom.sybase.jdbc2.jdbc.SybDriver/value
/parameter
parameter
  namemaxIdle/name
  value30/value
/parameter
parameter
  nameusername/name
  value/value
/parameter
parameter
  nameremoveAbandoned/name
  valuetrue/value
/parameter
   parameter
  nameremoveAbandonedTimeout/name
  value120/value
 

RE: Tomcat unstable - Dr. Watson. Why?

2003-04-03 Thread Goehring, Chuck Mr., RCI - San Diego
Iain,

Might also be that your tape drive draws so much current, it browns out the system.  
I've seen this before.  A huge power supply might be in order.

Also, there is a nasty memory leak in j2sdk 1.4.1 that is not entirely cured by doing 
c/l args such as -Xxms256m -Xxmx256m.  This bug is not in 1.4.0. (Ref bug 4724129 
http://developer.java.sun.com/developer/bugParade/bugs/4724129.html)

Chuck

-Original Message-
From: Goehring, Chuck Mr., RCI - San Diego 
Sent: Thursday, April 03, 2003 12:46 PM
To: Tomcat Users List
Subject: RE: Tomcat unstable - Dr. Watson. Why?


Iain,

Most backup software I've seen does so much I/O, anything else running will be so 
severely starved for CPU it may confuse itself to death.  Backup software does this on 
purpose to get the process over with as quick as possible.  So, it may not affect an 
idle server process, but trying to do any kind of work while the backup is running is 
probably futile.  You can see this by being around when the backup is running.  I 
don't think there is a reliable way to lower the priority of the backup process on 
nt/2000 unless the software itself has an option for it.

You probably need to setup a hot backup arrangement that pulls the data out of the 
database and writes it to another machine acting as a staging area for going to tape.  
If you have other stuff on the server that needs to be backed up and you run 24x7, you 
will need to make other arrangements to back that data up.

Chuck

-Original Message-
From: Iain Sanderson [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 9:32 AM
To: [EMAIL PROTECTED]
Subject: Tomcat unstable - Dr. Watson. Why?


Hello,

Tomcat is crashing on my  application server when my database server is 
busy with a running backup, which is every night from 12am to 7am ( 80 
Gb).

I'm running Tomcat 4.22 on Windows NT sp6  using the Java 1.41 VM as a 
service with the  -Xxms256m -Xxmx256m  switches set in the registry for 
the VM. (This is the same as setting these options in Catalina Opts when 
you're not running Tomcat as a service).

Tomcat.exe is throwing a Dr. Watson error

Application exception occurred:
App:  (pid=603)   -which is tomcat.exe
When: 4/3/2003 @ 1:45:16.203
Exception number: c005 (access violation)

There is no information in Tomcat's logs at all.  Windows just shuts down 
the Tomcat service. Tomcat remains unstable like this as long as my 
database server  ( a different and very powerful box) is backing up.
Here are some clues:-

a) This instability is cured by enabling incremental garbage collection  ( 
-Xincgc JVM switch), but performance reduces by 300%. Our SQL  queries on 
the server  are large ( Operating room schedules etc. Queries take 0.15 to 
0.2 seconds, but page refreshes in Tomcat  5-6 seconds, which is 
acceptable. With incremental GC this increases to 17 seconds, which is 
not.)

I'm sure the problem is due to database connections, but I can't fault my 
code. I'm using Tomcat's JNDI datasource pool (commons DBCP), set in 
server.xml.  I have been very careful to close all my connections using 
the following code straight out of Tomcat's documentation (see below)

Can anybody help? I've been chasing this for some time now and have lost 
most of my hair.

Iain

Below is datasource configuration from web-app context in server.xml and 
sample of database connection code.

code.


Connection conn = null;
  Statement stmt = null;  // Or PreparedStatement if needed
  ResultSet rs = null;
  try {
conn = ... get connection from connection pool ...
stmt = conn.createStatement(select ...);
rs = stmt.executeQuery();
... iterate through the result set ...
rs.close();
rs = null;
stmt.close();
stmt = null;
conn.close(); // Return to connection pool
conn = null;  // Make sure we don't close it twice
  } catch (SQLException e) {
... deal with errors ...
  } finally {
// Always make sure result sets and statements are closed,
// and the connection is returned to the pool
if (rs != null) {
  try { rs.close(); } catch (SQLException e) { ; }
  rs = null;
}
if (stmt != null) {
  try { stmt.close(); } catch (SQLException e) { ; }
  stmt = null;
}
if (conn != null) {
  try { conn.close(); } catch (SQLException e) { ; }
  conn = null;
}
  }





 Server.xml Settings are:-
ResourceParams name=jdbc/saturn
parameter
  namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
  namemaxActive/name
  value100/value
/parameter
parameter
  namemaxWait/name
  value10/value
/parameter
parameter
  namepassword/name
  value/value
/parameter
parameter
  nameurl/name
  valuejdbc:sybase:Tds

RE: How to hand in the passwords to 3000 users [urgent!]

2003-04-01 Thread Goehring, Chuck Mr., RCI - San Diego

Nancy,

Hope I understood you problem correctly.  It might be worth doing a signup 
application, then advertise it through the management chain of command with a url and 
instructions.  Have the app capture the information to a text file or database.  Get 
the email, username and password that way.  I think I'd also put password change  
mailback capabilities in the app so you don't have to change passwords for users all 
the time.  

Chuck


-Original Message-
From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 12:55 PM
To: Tomcat Users List
Subject: How to hand in the passwords to 3000 users [urgent!]


Hi all!

I'm trying to entablish the best way to hand in their own user_id and
password to the 3000 users of an applicattion developed to Internet.

I don't know which could be the best way to do this without forgetting
the security because each user has some confidential information in
his/her session.

Could you please help me?
Any clue could help me!
Thanks in advance!

Nancy.

ps. I don't have their e-mails so, descart the email way.




-
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: Out of memory error

2003-04-01 Thread Goehring, Chuck Mr., RCI - San Diego


I just looked at this in Bug Parade.  They put out a J2SE Version 1.4.1_02 but the 
release notes don't mention this bug. The bug (4724129) is still listed as In 
progress. I don't see a Known problem section of the release notes either.

This probably explains a bunch of problems reported recently on this list.



-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 2:38 PM
To: Tomcat Users List
Subject: RE: Out of memory error



could be because of this awful bug introduced in j2sdk1.4.1.  It wasn't in 
j2sdk1.4.0
http://developer.java.sun.com/developer/bugParade/bugs/4724129.html

Jake

At 04:16 PM 4/1/2003 -0600, you wrote:
I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms 
switches, but nothing seemed to help. I then switched to IBMJava2-14 and 
it solved the problem.

Steve

-Original Message-
From: Darian Shimy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 1:16 PM
To: 'Tomcat Users List'
Subject: RE: Out of memory error


Set the memory using -Xmx and -Xms.  This should take care of the memory
problems.

If you want to monitor the heap usage, add -verbose:gc

--
Darian Shimy

  -Original Message-
  From: Januski, Ken [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 31, 2003 12:21 PM
  To: Tomcat Users List
  Subject: Out of memory error
 
 
  Hi,
 
  Very occasionally my Tomcat server runs into out of memory
  errors. I'ts not
  a heavily used server, less than 10 users a day I'd guess on
  an Intranet.
  But every month or so it runs into memory problems. The
  newest ones occurred
  yesterday and I didn't hear about them until today. When I
  investigated I
  found hundreds of these lines repeating themselves in the
  catalina log.
 
  2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
  'nnn.nnn.nn.nn'
 
  They were eventually followed by this:
 
  2003-03-30 22:38:08 HttpProcessor[80][1] process
  java.lang.OutOfMemoryError
 
  Can anyone tell me whether the first lines indicate a cause
  of the out of
  memory error or whether they're just another symptom of running out of
  memory?
 
  Thanks for any ideas,
 
  Ken
 
 
 
  -
  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: Multiple databases for basic auth

2003-03-28 Thread Goehring, Chuck Mr., RCI - San Diego
Michael,

If you do anonymous authentication and write a filter or valve that does the 
authentication, you could do your own login screen and whatever you want in that area.

Chuck

-Original Message-
From: Michael D. Kirkpatrick [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 3:05 PM
To: [EMAIL PROTECTED]
Subject: Multiple databases for basic auth


I am running Tomcat 4.1.
I have successfully configured the default basic auth to work with MSSQL
2000.

I have multiple clients.  Each one wants their own User database to
administer for themselves.  That is fine, but I can't seem to configure
Tomcat to respect a different User Database for each different app.  I
have messed with web.xml till I am blue in the face.  No such luck with
getting Tomcat to use any other database except for the server default.

I realize that Tomcat is different then Apache.  Since they both are
made by the same people, and Apache can easly do something simular, I
figure it can be achieved with Tomcat as well.  I can't control the
authentication with Apache since I am using a Linux box to access MSSQL
2000 with the Java drivers.

Can anyone offer some guidance here?

Any help in the matter would be greatly appreciated.
Thanks in advance.

Michael D. Kirkpatrick


-
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: Tomcat and IIS

2003-03-27 Thread Goehring, Chuck Mr., RCI - San Diego



It occurred to me to put Tomcat in front of Apache. Why?  Because I'm on Windows 2000. 
And, Apache 1.x with mod_perl is a single-threaded dog that even ASF does not 
recommend using for production.  Apache 2 and mod_perl beta is out but nonone can tell 
me if it is ready for prime time on Windows (or when it will be). So I'm rolling the 
dice whichever way I go.  We have been on Apache 1.x with mod_perl for several years 
and it is reliable, but not multi-user friendly.  Our load is very low but the current 
solution will not scale.  I have 3 static pages and the whole rest of the system 
(almost) is written in perl to run under mod_perl.  I inquired about the possibility 
of doing a mod_perl for Tomcat and I got poopooed.  On unix they have none of the 
problems I have, so they can stay on Apache 1 and play around with Apache 2 for the 
next decade.

The way I see it, the Apache/mod_perl/perl camp wrote all their stuff in C language 
for performance - which is fine.  Its fine until your stuck in betaland for 4 years 
because Windows is hind tit in Apacheland, and few windows programmers can help with 
C.  Java may be a bit slower, but the clustering and load balancing might be better 
with just Tomcat.  The connector between Apache and Tomcat will work for me, but it 
doesn't solve my single-thread issue if I have to stay on Apache1.x.  Also, I need to 
run ssl all the time because of the customer's requirement.  Windows is hind tit in 
mod_ssl land also.  The mod_ssl list often responds with a lecture on how stupid you 
are for using Windows instead of offering any useful help.  So, support is a supreme 
factor in the decision on architectures.  If you can't fix it yourself, you are not 
necessarily any better off than if you use a closed source product.


So, I'm thinking it may be better to put Apache in the back, so it can be phased out.

That's my 2 cents.

Chuck

-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 4:26 PM
To: Tomcat Users List
Subject: RE: Tomcat and IIS



This issue of Tomcat and Apache comes up over and over and over again on 
the list here because everyone tells everyone else that they should run 
Apache in front of Tomcat without understanding what the person is 
doing.  There are definitely reasons for this (which have been discussed 
more than many times), but I have *never* seen anyone give _conclusive_ 
*performance-centric* proof for this.

I agree -- conceptually it gives you performance boost after some activity 
threshold, but I surmise that the *large majority* of people out there 
aren't even close to this threshold.  It seems to me that it's more of a 
common knowledge thing than anything.  The more often something is 
repeated, the more likely it will become defacto truth.

In fact, our app supports connections both through a proxy (IIS or Apache) 
*and* directly to Tomcat because response times are very important to us 
and the turnaround going through Apache is ~100ms while the turnaround 
directly to Tomcat is ~20ms.  Tomcat is an excellent HTTP server.  It 
easily supports the requirements of most projects out there.  IMHO, using 
Tomcat as Http server should be the default and Apache should only be used 
if you have a specific reason to use it (of which there are many very real, 
very valid ones, some of which Jeffrey Peloquin, amongst others, have 
mentioned in this thread).

My point in writing this is that we should all be careful what we suggest 
before understanding what exactly the person needs.  And, quite frankly, 
those asking should find these threads *easily* with a little effort.  ;)

justin


At 03:26 PM 3/27/2003, you wrote:
What if the majority of your pages are either servlets or JSP. I have only a
couple pages that are not dynamically created, so Apache will only handle
those, right? I'm running in a pure Tomcat environment because of this...
and the fact I don't know how to set up apache with tomcat :-)

-Brian

-Original Message-
From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 3:23 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat and IIS


That's possible BUT performance will suffer.  Tomcat isn't as powerful
as Apache.  If you are running a small website, intranet and such,
Tomcat would probably work fine but it's not Commercially fit as a Web
Server.  Apache on the other hand is.  Later, J



Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential
See http://www.nextengine.com/confidentiality.php



-
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: Tomcat auth acting crazy

2003-03-19 Thread Goehring, Chuck Mr., RCI - San Diego
Christian,

I have the same problem with Oracle9i.  The xlm app the other poster is referring to 
is XML Developer Kit.  On Windows 2000 netstat -a doesn't list anything listening on 
port 8080.  The Tomcat log shows Address already in use error.  My JAVA_HOME is not 
set.  I also noticed that Oracle 9i rel 2 installs two more JREs so the path may be an 
issue at some point.

I'll let you know how mine works when I make these changes.

Chuck

-Original Message-
From: Christian Dechery [mailto:[EMAIL PROTECTED]
Sent: Monday, March 17, 2003 7:14 AM
To: Tomcat Users List
Subject: Tomcat auth acting crazy


I can't seem to use Tomcat 4.1.18 at all.

I just installed it for the third time... it's totally crazy... right after I install, 
WITH no changes in any configs I try to access the /admin or /manager app or even the 
base app (the one with the welcome screen and all)... and everytime a logon window 
(with XDB in the title) appears, and nothing works as a login/pass...

what's that?
.:| Christian Dechery
.:| Web/Java Developer
.:| Gaita-L Owner
.:| [EMAIL PROTECTED] 


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



RE: Tomcat auth acting crazy

2003-03-19 Thread Goehring, Chuck Mr., RCI - San Diego


Setting JAVA_HOME and disabling the OracleHTTPServer service allowed Tomcats Admin 
application to work for me.  Also, the window for Oracles http server (which is Apache 
1.x) contains the fastcgi module, which would also take a port or two. The Oracle 
installer said the http server would be listening on 7778 and 4443.

Hope this helps.

Chuck


-Original Message-
From: Goehring, Chuck Mr., RCI - San Diego 
Sent: Wednesday, March 19, 2003 12:40 PM
To: Tomcat Users List; Christian Dechery
Subject: RE: Tomcat auth acting crazy


Christian,

I have the same problem with Oracle9i.  The xlm app the other poster is referring to 
is XML Developer Kit.  On Windows 2000 netstat -a doesn't list anything listening on 
port 8080.  The Tomcat log shows Address already in use error.  My JAVA_HOME is not 
set.  I also noticed that Oracle 9i rel 2 installs two more JREs so the path may be an 
issue at some point.

I'll let you know how mine works when I make these changes.

Chuck

-Original Message-
From: Christian Dechery [mailto:[EMAIL PROTECTED]
Sent: Monday, March 17, 2003 7:14 AM
To: Tomcat Users List
Subject: Tomcat auth acting crazy


I can't seem to use Tomcat 4.1.18 at all.

I just installed it for the third time... it's totally crazy... right after I install, 
WITH no changes in any configs I try to access the /admin or /manager app or even the 
base app (the one with the welcome screen and all)... and everytime a logon window 
(with XDB in the title) appears, and nothing works as a login/pass...

what's that?
.:| Christian Dechery
.:| Web/Java Developer
.:| Gaita-L Owner
.:| [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: Oracle JDBC, what do do?

2003-03-04 Thread Goehring, Chuck Mr., RCI - San Diego

I did what Michael said and put them in the jre\lib\ext directory of the Java 
installation.

Chuck

-Original Message-
From: Tam, Michael [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 12:47 PM
To: 'Tomcat Users List'
Subject: RE: Oracle JDBC, what do do?


Depends which Oracle version you're running.
For 8i,  I believe you have to get class12.zip and rename it as jar file.
For 9i, I forgot the name of the file but it should work the same way as 8i
which you need to rename it to jar.

Hope this help.

Michael

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 12:40 PM
To: [EMAIL PROTECTED]
Subject: Oracle JDBC, what do do?


Hi all,

I am trying to connect to Oracle.  What do I need to do to get tomcat to see
the zip files that contain the driver? 

I am running Tomcat 4.1.2 on Win2k.

Thanks very much.

Bao-Ha Dam Bui
 



* 
This communication may contain information that is proprietary, privileged,
confidential or legally exempt from disclosure.  If you are not a named
addressee, you are notified that you are not authorized to read, print,
retain, copy or disseminate this communication without the consent of the
sender and that doing so may be unlawful. If you have received this
communication in error, please notify the sender via return e-mail and
delete it from your computer. Thank you. St. Jude Medical, Inc. 
*

-
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: javax jar

2003-02-21 Thread Goehring, Chuck Mr., RCI - San Diego
Jacques,

javax.* are in multiple places.  That particular set of classes is in in rt.jar for 
j2sdk 1.4.

On windows, searching for files containing javax.xml.parsers finds it because that 
string winds up in the jar.

Chuck

-Original Message-
From: Jacques Capesius [mailto:[EMAIL PROTECTED]
Sent: Friday, February 21, 2003 2:23 PM
To: 'Tomcat Users List'
Subject: javax jar


Hi folks,

I have a somewhat bizarre question: do you know which of the tomcat jars
contains the javax.* classes?

The reason I ask is that I'm trying to get a JSP page that imports
javax.xml.parsers.* and a few other javax classes onto a Oracle9i Portal
server. It's not finding the classes, so I'm hoping moving the jar over into
the oracle portal server's classpath would help.

hopefully, that question wasn't too block-headed. thanks :)

-
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: [OT] free Database with Transaction (Sorry for the noise)

2003-02-18 Thread Goehring, Chuck Mr., RCI - San Diego
Filip,

Firebird is the opensource version of Borland Interbase.  Has a lot of docs and is a 
full-up database.  Works well on W2K (posgress does not).

http://firebird.sourceforge.net/

It is worth cheking out.

Chuck


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 11:03 AM
To: Tomcat Users List; Jens Skripczynski
Subject: RE: [OT] free Database with Transaction (Sorry for the noise)


mysql does have transactions,
just go through the docs

Filip

-Original Message-
From: Jens Skripczynski [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 10:20 AM
Cc: [EMAIL PROTECTED]
Subject: [OT] free Database with Transaction (Sorry for the noise)


hi,

I'm looking for a Database, that can do 
- sql transactions,  
  (or anything similiar to sql - if it works with a xml
  database, xml is fine)
- has a java 1.4.1 jdbc driver
- is free (even better if for commercial use)

'Mysql' was my first option, but it does not have transactions.

In an _old_ computer magazine i found 'instantdb' but this one
seems to be discontinued.

The database tables i want to create, are only for one application.
So a client server system or connection pooling are not neccessary.

If someone knows what 'instantdb' is, its features seem to be enough.
Anything additional is good.

But i think the 'free' statement reduces the return results to '0'. :(

Ciao

Jens Skripczynski
-- 
E-Mail: skripi(at)myrealbox(dot)com

In this world there are only two tragedies; one is not getting
what one wants, the other is getting it.
  -- Oscar Wild


-
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: Why won't anyone help me out??

2003-02-06 Thread Goehring, Chuck Mr., RCI - San Diego


Yeah, you're right.  In my mind, I tend to lump all those licenses together because I 
don't have any  intentions on making a commercial version of Apache or even putting it 
on a CD. 

Chuck


-Original Message-
From: Tim Moore [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 06, 2003 8:34 AM
To: Tomcat Users List
Subject: RE: Why won't anyone help me out??


One nit...Apache is most definitely not licensed under the GPL, but the
Apache Software License, which can be read here:
http://httpd.apache.org/docs/LICENSE

Notably, it allows you to redistribute modified versions without source
code, unlike the GPL.

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


 -Original Message-
 From: Goehring, Chuck Mr., RCI - San Diego 
 [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, February 05, 2003 4:20 PM
 To: Tomcat Users List
 Subject: RE: Why won't anyone help me out??
 
 
 Steve,
 
 Apache, Tomcat and a huge array of other products are 
 so-called open-source.  Usually this means they are 
 licensed under the GPL (as Apache is).  These products come 
 in runtime and source downloads and have instructions on 
 installation, compiling source etc.  A web site called 
 sourceforge (http://sourceforge.net/) houses a repository of 
 these projects.  It is worth perusing these projects and 
 looking at what (and how)they have done their code, jars etc. 
  Many are just like commercial products but are usually free 
 for most usages.  They aren't tutorials on programming or web 
 development, they are products.  The jars are packaged 
 products.  If you emulate what they did and can get their 
 stuff to run under Tomcat, you will see how your stuff should 
 be done, in order to run in the same environment.  For 
 example, if you loot for a class file in a jar and go find 
 the corresponding source file, you will see how they 
 specified their package declaration and where the class file 
 ended up in the jar that they deploy.  You can open the jar in winzip.
 
 Chuck
 
 -Original Message-
 From: Steve Burrus [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 05, 2003 1:07 PM
 To: Tomcat Users List
 Subject: RE: Why won't anyone help me out??
 
 
 Hi Chuck, I just now read your little post to me, and I 
 apologize for my sheer stupidity, but would u please humor 
 me and tell me what exactly you mean by an open source 
 product??!  Am I to assume that the jar files in the product 
  will demonstrate to me the fine art of packaging up class 
 files? 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]


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




RE: Why won't anyone help me out??

2003-02-05 Thread Goehring, Chuck Mr., RCI - San Diego
Steve,

One way to learn these types of things is to download an open-source product and open 
the jars and look at the source to see how they have done things.  This method costs 
you nothing and accommodates whatever schedule you are on.  Also, there are some 
examples with Tomcat itself.  

Chuck

-Original Message-
From: Steve Burrus [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 1:36 PM
To: [EMAIL PROTECTED]
Subject: Why won't anyone help me out??



Well, seeing how no one, so far, has seen fit to respond back to my plea for 
help/assistance, I will re-post this from late last nite!! I am getting quite 
desperate the longer that I have to go on without getting this right!

 

Hello again, Filip, I tried to package up the 2 required files, login.jsp and 
LDAPAuth.java into a newly created org.burrus.test folder, and then compiled them 
into that same folder/directory to create 2 .class files, but then when I tried to 
run the whole program in my JBuilder 8, I STILL got, for my efforts, the old 505 
server error page:

Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Errortype Exception 
reportmessage Internal Server Errordescription The server encountered an internal 
error 
(Internal Server Error) that prevented it from fulfilling this request.exception 
org.apache.jasper.JasperException: Unable to compile class for JSPNote: 
sun.tools.javac.Main has been deprecated.


An error occurred at line: 4 in the jsp file: /login.jsp

Generated servlet error:
C:\Documents and Settings\Steven R. 
Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java:64: Class 
org.apache.jsp.LDAPAuthBean not found.
LDAPAuthBean auth = null;
^


An error occurred at line: 4 in the jsp file: /login.jsp

Generated servlet error:
C:\Documents and Settings\Steven R. 
Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java:67: Class 
org.apache.jsp.LDAPAuthBean not found.
auth= (LDAPAuthBean)
   ^


An error occurred at line: 4 in the jsp file: /login.jsp

Generated servlet error:
C:\Documents and Settings\Steven R. 
Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java:72: Class 
org.apache.jsp.LDAPAuthBean not found.
auth = (LDAPAuthBean) 
java.beans.Beans.instantiate(this.getClass().getClassLoader(), LDAPAuthBean);
^
Note: C:\Documents and Settings\Steven R. 
Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java uses or overrides a 
deprecated API.  Recompile with 
-deprecation for details.
3 errors, 2 warnings

 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
 at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
 at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
 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:243)
 at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
 at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
 at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at 

RE: Why won't anyone help me out??

2003-02-05 Thread Goehring, Chuck Mr., RCI - San Diego
Steve,

Apache, Tomcat and a huge array of other products are so-called open-source.  
Usually this means they are licensed under the GPL (as Apache is).  These products 
come in runtime and source downloads and have instructions on installation, compiling 
source etc.  A web site called sourceforge (http://sourceforge.net/) houses a 
repository of these projects.  It is worth perusing these projects and looking at what 
(and how)they have done their code, jars etc.  Many are just like commercial products 
but are usually free for most usages.  They aren't tutorials on programming or web 
development, they are products.  The jars are packaged products.  If you emulate what 
they did and can get their stuff to run under Tomcat, you will see how your stuff 
should be done, in order to run in the same environment.  For example, if you loot for 
a class file in a jar and go find the corresponding source file, you will see how they 
specified their package declaration and where the class file ended up in the jar that 
they deploy.  You can open the jar in winzip.

Chuck

-Original Message-
From: Steve Burrus [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 1:07 PM
To: Tomcat Users List
Subject: RE: Why won't anyone help me out??


Hi Chuck, I just now read your little post to me, and I apologize for my sheer 
stupidity, but would u please humor me and tell me what exactly you mean by an 
open source product??!  Am I to assume that the jar files in the product  will 
demonstrate to me the fine art of packaging up class files? Thank you. 

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




RE: little off-topic: tomcat and jasperreports

2003-01-09 Thread Goehring, Chuck Mr., RCI - San Diego

Copy it to where your web app will find it - web-inf/lib.

Chuck


-Original Message-
From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 11:11 AM
To: Tomcat Users List
Subject: little off-topic: tomcat and jasperreports


  Hi all!
  I'm starting to use JasperReports (JR from now on) to generate PDF
reports on my project, using Tomcat 4.1.12
  My problem is that JR needs the commons-digester.jar in its classpath.
This package is found on /server/lib (invisible to jasperreports, it's
on common/lib), but I can't move it from there to common/lib or my
Tomcat stops working. 
  What can I do??

-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Centro Universitário Ritter dos Reis
http://www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303341


--
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: File classes12.zip for Oracle on Tomcat ...

2003-01-07 Thread Goehring, Chuck Mr., RCI - San Diego


I had to rename them to .jar and put them in c:\ApacheTomcat\lib

Chuck

  -Original Message-
 From: PALLUEL Sylvie [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, January 07, 2003 1:42 AM
 To:   [EMAIL PROTECTED]
 Subject:  File classes12.zip for Oracle on Tomcat ...
 
 Hello,
 
 Where must I put the file classes12.zip on Tomcat (4.0.1 and 4.0.03)
 to be able to use the Oracle Jdbc driver ?
 
 Sylvie.
   File: ATT11898.txt  

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




RE: reducing tomcat jasper memory footprint

2002-12-31 Thread Goehring, Chuck Mr., RCI - San Diego
Julian

I would consider writing some sort of pre-processing program that will convert the 
documents form individual jsps to one generic jsp that processes the body of the 
document.  Either the raw jsp could be processed or the html generated from it 
captured and processed.  If they are machine generated jsps, they might not be too 
hard to extract out the variable portion.  I've been looking at Geary's templates 
(link below).  It has some nice capabilities.

http://developer.java.sun.com/developer/technicalArticles/javaserverpages/jsp_templates/

Chuck


-Original Message-
From: Julian Löffelhardt [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 30, 2002 11:37 AM
To: Tomcat Users List
Subject: reducing tomcat  jasper memory footprint


Hi,

I'm using Apache 1.3.26 and 3 tomcat 4.0.4 instances with AJP13  loadbalancing .
Our application is a CMS where all the published articles are generated offline as 
JSP-Files, one jsp per article.

We had hige problems with the memory footprint. Due to the fact that every jsp is 
generated as a class and there are about 200 new artices per day the permanent segment 
of the JVM heap gets filled with all the classes, and I get an OutOfMemoryError.
My workaround for now is setting -XX:PermSize and --XX:MapPermSize to higher values, 
but this just delays application hang-up.

With 64 megs of permSize our Server had an approx. uptime of 1 day now it's about 3-4 
days.

Is there any way to unload jsp-Files (unload the class) ?

llap,
julian



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