Re: Please Help!

2004-06-29 Thread Kunthar
Hello,
Please give us more detail.
Your OS and database to connect to,
Send your server.xml and web.xml definitions.
Then we can have clear idea...
Take care
Gokhan

Aris Javier wrote:
Please Help!
This error kept on bugging me everytime i run tomcat5 as service...
My environment variables are already declared as well as my system
dsn...
but still...
org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General
error
Please Help!
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]


signatures on the downloads and build fails

2004-06-29 Thread Joel
Okay, I checked the signatures on the downloads. No ultimate authority.
Well, I don't particularly trust the ultimate authority concept anyway,
so that's just fine.

When ant builds tomcat, does the build.xml cause that the signatures of all
the dependency downloads are also checked?

-- 
Joel [EMAIL PROTECTED]


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



RE: Please Help!

2004-06-29 Thread Aris Javier
Thanks!

My system works fine when i run tomcat5.0 in console...
but when i run tomcat5.0 in service, this error occurs...

org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General
error

I already declared my enviroment variables.. 
i declared bootstrap.jar and tools.jar in classpath...

anyway, here's my system info...

OS: Windows 2000
Database: MS Access 2000
System DSN: EZX_DS
Technology: Java Servlet/JSP MVC
Tomcat Folder: D:\Tomcat_5.0

Server.xml context...
Context path=/tees docBase=tees debug=5 reloadable=true
crossContext=true
  Logger className=org.apache.catalina.logger.FileLogger
   prefix=localhost_tees_log. suffix=.txt
   timestamp=true/
  Resource name=jdbc/EZX_DS
   auth=Container
   type=javax.sql.DataSource/
  ResourceParams name=jdbc/EZX_DS
  parameter
  namefactory/name
 
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
  namemaxActive/name
  value100/value
  /parameter
  parameter
  namemaxIdle/name
  value30/value
  /parameter
  parameter
  namemaxWait/name
  value1/value
  /parameter
  parameter
   namedriverClassName/name
   valuesun.jdbc.odbc.JdbcOdbcDriver/value
  /parameter
  parameter
  nameurl/name
  valuejdbc:odbc:EZX_DS/value
   /parameter
  /ResourceParams
/Context

Web.xml contains...
web-app
  display-nameEAZIX TEES Tomcat to Access/display-name
  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/EZX_DS/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
  context-param
 param-nameconfigFile/param-name
 
param-valued:\\eazixprojects\\tees\\xml\\mapping.xml/param-value
  /context-param
  servlet
servlet-nameEazixServlet/servlet-name
servlet-classtees.main.util.EazixServlet/servlet-class
  /servlet
  servlet-mapping
servlet-nameEazixServlet/servlet-name
url-pattern*.ezx/url-pattern
  /servlet-mapping

servlet
servlet-nameCewolfServlet/servlet-name
servlet-classde.laures.cewolf.CewolfRenderer/servlet-class
!-- sets overlib.js location relative to webapp --
init-param
param-nameoverliburl/param-name
 
param-valueD:\\eazixprojects\\tees\\js\\etc\\overlib.js/param-value
/init-param
!-- turn on or off debugging logging --
init-param
param-namedebug/param-name
param-valuetrue/param-value
/init-param
load-on-startup1/load-on-startup
/servlet
  servlet-mapping
servlet-nameCewolfServlet/servlet-name
url-pattern/cewolf/*/url-pattern
  /servlet-mapping
 welcome-file-list
  welcome-filewelcome.jsp/welcome-file
 /welcome-file-list
  error-page
locationmsewFailed.jsp/location
  /error-page
/web-app

-Original Message-
From: Kunthar [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 3:41 PM
To: Tomcat Users List
Subject: Re: Please Help!


Hello,

Please give us more detail.
Your OS and database to connect to,
Send your server.xml and web.xml definitions.
Then we can have clear idea...

Take care
Gokhan




Aris Javier wrote:

Please Help!

This error kept on bugging me everytime i run tomcat5 as service... My 
environment variables are already declared as well as my system dsn...
but still...

org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General 
error


Please Help!

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]


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



target release conflicts with default source?

2004-06-29 Thread Joel
I tried google against jakarta.apache.org and marc.theaimsgroup.com and
got no clues. Maybe I'm blind, maybe trying to build on MSWxp is lame?

Here's the part I assume is most relevant.

---
build-main:
 [echo] - Java-utils -
 [echo] -- puretls.present = ${puretls.present}
 [echo] -- jsse.present = true /usr/share/java/jsse-1.0.3/lib/jsse.jar
 [echo] -- commons-logging = true
 [echo] -- jmx = true /usr/share/java/mx4j-1.1.1/lib/mx4j-jmx.jar
 [echo] -- modeler = true /usr/share/java/commons-modeler-1.1/commons-modele
r.jar
 [echo] -- JDK14 = true
[javac] Compiling 63 source files to D:\Program_Files\jakarta\jakarta-tomcat
-5.0.25-src\jakarta-tomcat-5\build\classes
[javac] javac: target release 1.1 conflicts with default source release 1.5

BUILD FAILED


I'm using Java 1.5 beta. Is that a no-no?

-- 
Joel [EMAIL PROTECTED]


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



trouble with tomcat 5 and apache 1.3

2004-06-29 Thread james robinson
Hi,
I'm having some difficulties making tomcat work with apache.
I only need to use apache because I need to use an auth system that uses 
the .htaccess files of apache. So i really don't want to have to fuss 
about to much. Ideally I'd like to use the apache auto configuration for 
tomcat but can't seem to switch it on, as per the jk2 apache howto...

At present i have apache 1.3 installed from slack package and tomcat 
5.0.25 which i compile from source. All on slackware 9.1.

I've spent all of yesturday trying to fix this and am quite confused...
Firstly, if i've compiled tomcat from source do i need to then compile a 
jk2 module seperatly or will this have been done.

Secondly, should i be editing httpd.conf and defining workers etc there 
or editing server.xml and pointing apache at appropriate tomcat conf file?

All I'm looking to do is have a restricted access apache document root, 
and then map the tomcat context of my app into it.

I'm a complete noob to this so please keep it simple.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: target release conflicts with default source?

2004-06-29 Thread Giuseppe Briotti
 ==
 [javac] Compiling 63 source files to 
 D:\Program_Files\jakarta\jakarta-tomcat
 -5.0.25-src\jakarta-tomcat-5\build\classes
 [javac] javac: target release 1.1 conflicts with default 
 source release 1.5
 
 BUILD FAILED
 
 
 I'm using Java 1.5 beta. Is that a no-no?
 
 --
 Joel [EMAIL PROTECTED]

Quite strange... the option target 1.1 in javac is for compiling
applet source in java1 for backward compatibility (due to the
changing of byte code since java 1.3, if I remember correctly).

G

--

Giuseppe Briotti
[EMAIL PROTECTED]

Alme Sol, curru nitido diem qui 
promis et celas aliusque et idem 
nasceris, possis nihil urbe Roma 
visere maius.
 (Orazio)



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



unix sockets vs. channel sockets vs. apr sockets

2004-06-29 Thread dawg fan
Hello,

Has anyone done any research into performance results from unix sockets vs. channel 
sockets vs. apr sockets?  

I am currently loading apache2, mod_jk2, and tomcat 5.  I would like to know the 
difference in performance for the 3 sockets. 

I was using apache 1.3, mod_jk, and tomcat 4.1.30.  I believe it used channel sockets 
by default.  Am I correct on that?


-dawgfan
-- 
___
Get your free Verizonmail at www.verizonmail.com


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



Log rotation HOWTO

2004-06-29 Thread Frank Zammetti
I haven't been able to find a clear answer to this anywhere online, 
hopefully you fine folks can help...

I need a way to rotate my stdout log in Tomcat 5.0.18.  It could be dalily 
or weekly (monthly might be OK too).

Is thre any way to do this?  I assume so, so how?  Thanks in advance all!
_
Get fast, reliable Internet access with MSN 9 Dial-up – now 3 months FREE! 
http://join.msn.click-url.com/go/onm00200361ave/direct/01/

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


RE: Log rotation HOWTO

2004-06-29 Thread Jérôme Duval
Search the mailing list! This question was asked recently... 

These messages might be useful...

-Original Message-
From: Frank Zammetti [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 10:04 AM
To: [EMAIL PROTECTED]
Subject: Log rotation HOWTO

I haven't been able to find a clear answer to this anywhere online,
hopefully you fine folks can help...

I need a way to rotate my stdout log in Tomcat 5.0.18.  It could be dalily
or weekly (monthly might be OK too).

Is thre any way to do this?  I assume so, so how?  Thanks in advance all!

_
Get fast, reliable Internet access with MSN 9 Dial-up – now 3 months FREE! 
http://join.msn.click-url.com/go/onm00200361ave/direct/01/


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

---BeginMessage---
Could you please use tomcats web admin to change logging settings...

By default you can access http://localhost:8080/admin

You can activate a separate log for several contents.


-Ursprüngliche Nachricht-
Von: Veera Sivakumar [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 22. Juni 2004 11:47
An: Tomcat Users List
Betreff: Managing Tomcat logs

Hi,
I am using Tomcat as web server for my application. I start Tomcat using
windows service. All the logs generated by the Application are written in to
a file called stdout.log which is under tomca/logs folder.
I have noticed that with continuous use of application,stdout file size
increasing to a large extent. To delete the it I have to stop the tomcat.
Is there any way that I can manage the logs date wise automatically(without
manual intervention). I am not using any third party tool for logging.
The logging mechanism I use is very simple.

We have class Debug.java that have a method log(String); This log() method
use System.out.println(); In the application, I use Debug.log(Exception);

I will be more happy if there is any way to manage logs.
I have also noticed the following logs generated by Tomcat:
1.localhost_log.2004-06-18.txt
2.localhost_access_log.2004_06_22.txt

How to maintain these logs?. Can we off them permanently?
Thanks in advance.

Regards
S.V.Sivakumar
QCA Project
Tata Infotech Limited
Tel:+44 1235 823411
[EMAIL PROTECTED] / [EMAIL PROTECTED]

Visit our website at http://www.rm.com

This message is confidential.  You should not copy it or disclose its
contents to anyone.  You may use and apply the information only for the
intended purpose.  Internet communications are not secure and therefore RM
does not accept legal responsibility for the contents of this message.  Any
views or opinions presented are only those of the author and not those of
RM.  If this email has come to you in error please delete it and any
attachments.  Please note that RM may intercept incoming and outgoing e-mail
communications.

This email has been scanned for viruses by Trend ScanMail.



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

---End Message---
---BeginMessage---
Instead of using System.out.println() to log your messages, use the
HttpServlet's log() method. You can specify the logging class you want to
use,
the path it writes to, the base name, and extension. Each day a new file is
created and you can simply delete the old ones as they are closed when a new
file is started each day. You could also create your own logger that manages
the
file size in some way. I have used the former and have specified the file
name
and path so that it easy form me to manage. My logs are separate from the
normal
logs as well.

Robert S. Harper
801.265.8800 ex. 255

 -Original Message-
 From: Veera Sivakumar [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 22, 2004 3:47 AM
 To: Tomcat Users List
 Subject: Managing Tomcat logs
 
 Hi,
 I am using Tomcat as web server for my application. I start Tomcat using
 windows service. All the logs generated by the Application are written in
to a
 file called stdout.log which is under tomca/logs folder.
 I have noticed that with continuous use of application,stdout file size
 increasing to a large extent. To delete the it I have to stop the tomcat.
 Is there any way that I can manage the logs date wise
automatically(without
 manual intervention). I am not using any third party tool for logging.
 The logging mechanism I use is very simple.
 
 We have class Debug.java that have a method log(String);
 This log() method use System.out.println();
 In the application, I use Debug.log(Exception);
 
 I will be more happy if there is any way to manage logs.
 I have also noticed the following logs generated by Tomcat:
 1.localhost_log.2004-06-18.txt
 2.localhost_access_log.2004_06_22.txt
 
 How to maintain these logs?. Can we off them permanently?
 Thanks in advance.
 
 Regards
 S.V.Sivakumar
 QCA 

Using javax.servlet.Filter to alter HTTP headers (was RE: How can the Server header in an HTTP response be customised?)

2004-06-29 Thread Ian Stevens
 Is it possible to programmatically change the Server header?  
 Barring that, is it possible to set a Server header for a 
 servlet within its web.xml file?
 My least preferred method is to change the Server header 
 within Tomcat's server.xml file.

I looked at Tomcat's source code, and that Server header is hard-coded with
values read in from a properties file and set in source.  As such, there
looks to be no way to specify a different value in the server.xml or
web.xml.  A poor design decision in my mind, but nevertheless.

I was thinking that a javax.servlet.Filter which intercepts a call to set an
HTTP header would do the trick.  I wrote a naive Filter (listed below) and
added parameters to my web.xml (also shown below) to accomplish this.  Its
init() and doFilter() methods are called, but the setHeader() method of the
HttpServletResponseWrapper is never hit.

Can calls to setHeader() in Tomcat source, specifically HttpConnector, be
wrapped with Filter objects? or does that only apply to calls within servlet
source?  How can I wrap all calls to setHeader()?

thanks,
Ian.

/**
 * The javax.servlet.Filter to set HTTP headers to null.
 */
public class HttpRemoveHeaderFilter implements Filter
{
private String headerToRemove;

public void destroy()
{
}

public void doFilter( ServletRequest request, ServletResponse response,
FilterChain chain ) throws IOException, ServletException
{
chain.doFilter( request, new RemoveHeaderWrapper(
(HttpServletResponse)response, headerToRemove ) );
}

public void init( FilterConfig config ) throws ServletException
{
headerToRemove = config.getInitParameter( remove );
}

private final class RemoveHeaderWrapper extends
HttpServletResponseWrapper
{
private String headerToRemove;

public RemoveHeaderWrapper( HttpServletResponse response, String
headerToRemove )
{
super( response );
this.headerToRemove = headerToRemove;
}

public void setHeader( String s, String s1 )
{
if( s.matches( headerToRemove ) )
{
super.setHeader( s, null );
}
else
{
super.setHeader( s, s1 );
}
}
}
}


Below are the associated contents of my web.xml file.

filter
filter-nameremoveHeader/filter-name
filter-classHttpRemoveHeaderFilter/filter-class
init-param
param-nameremove/param-name
param-valueServer/param-value
/init-param
/filter

filter-mapping
filter-nameremoveHeader/filter-name
url-pattern/servlet/url-pattern
/filter-mapping


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



Tomcat 5 sets cookies although i have disabled cookies in server.xml

2004-06-29 Thread Thilo Krawietz
Hi folks,
i actually face a strange phenomenon with the Tomcat session handling 
mechanism. I want to use URL-rewriting instead of cookies and i used 
therefore the cookies=false attribute in the Context element.
First the entry in the server.xml looked like that:

Context path=app docBase=app cookies=false reloadable=false/
With this setting, Tomcat simply ignores the cookies=false attribute 
and continues to set cookies and leaves the url unrewritten. I then 
tried a little bit around and changed the server.xml entry to like that:

Context path= docBase=app cookies=false reloadable=false/
and voila, Tomcat stops setting cookies and rewrites the url with the 
jsessionid value, as desired.

It seems, that Tomcat only does URL-rewriting, when the path attribute 
is empty.
Did anybody else face this phenomenon? Is it possible, that this might 
be an implementation bug? I actually use Tomcat 5.0.24 on a Linux RedHat 
9 distro machine.

Comments are welcome!
Best regards,
Thilo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Please Help!

2004-06-29 Thread Jacob Kjome
You specify Tomcat5.0.  If that's true, you are using a pre-release version of
Tomcat5.  Update to the latest official version (or Tomcat-5.0.27beta) and
retest.  Make sure your driver is in common/lib as well.  Note that
CATALINA_HOME/bin/service.bat can be used to install/remove the service.  Make
sure to set your CATALINA_HOME variable before you run service.bat.

Jake

Quoting Aris Javier [EMAIL PROTECTED]:

 Thanks!
 
 My system works fine when i run tomcat5.0 in console...
 but when i run tomcat5.0 in service, this error occurs...
 
 org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General
 error
 
 I already declared my enviroment variables..
 i declared bootstrap.jar and tools.jar in classpath...
 
 anyway, here's my system info...
 
 OS: Windows 2000
 Database: MS Access 2000
 System DSN: EZX_DS
 Technology: Java Servlet/JSP MVC
 Tomcat Folder: D:\Tomcat_5.0
 
 Server.xml context...
 Context path=/tees docBase=tees debug=5 reloadable=true
 crossContext=true
   Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_tees_log. suffix=.txt
timestamp=true/
   Resource name=jdbc/EZX_DS
auth=Container
type=javax.sql.DataSource/
   ResourceParams name=jdbc/EZX_DS
   parameter
   namefactory/name
 
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
   namemaxActive/name
   value100/value
   /parameter
   parameter
   namemaxIdle/name
   value30/value
   /parameter
   parameter
   namemaxWait/name
   value1/value
   /parameter
   parameter
namedriverClassName/name
valuesun.jdbc.odbc.JdbcOdbcDriver/value
   /parameter
   parameter
   nameurl/name
   valuejdbc:odbc:EZX_DS/value
/parameter
   /ResourceParams
 /Context
 
 Web.xml contains...
 web-app
   display-nameEAZIX TEES Tomcat to Access/display-name
   resource-ref
   descriptionDB Connection/description
   res-ref-namejdbc/EZX_DS/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
   /resource-ref
   context-param
  param-nameconfigFile/param-name
 
 param-valued:\\eazixprojects\\tees\\xml\\mapping.xml/param-value
   /context-param
   servlet
 servlet-nameEazixServlet/servlet-name
 servlet-classtees.main.util.EazixServlet/servlet-class
   /servlet
   servlet-mapping
 servlet-nameEazixServlet/servlet-name
 url-pattern*.ezx/url-pattern
   /servlet-mapping
 
 servlet
 servlet-nameCewolfServlet/servlet-name
 servlet-classde.laures.cewolf.CewolfRenderer/servlet-class
   !-- sets overlib.js location relative to webapp --
 init-param
 param-nameoverliburl/param-name
 
 param-valueD:\\eazixprojects\\tees\\js\\etc\\overlib.js/param-value
 /init-param
   !-- turn on or off debugging logging --
 init-param
 param-namedebug/param-name
 param-valuetrue/param-value
 /init-param
 load-on-startup1/load-on-startup
 /servlet
   servlet-mapping
 servlet-nameCewolfServlet/servlet-name
 url-pattern/cewolf/*/url-pattern
   /servlet-mapping
  welcome-file-list
   welcome-filewelcome.jsp/welcome-file
  /welcome-file-list
   error-page
 locationmsewFailed.jsp/location
   /error-page
 /web-app
 
 -Original Message-
 From: Kunthar [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 29, 2004 3:41 PM
 To: Tomcat Users List
 Subject: Re: Please Help!
 
 
 Hello,
 
 Please give us more detail.
 Your OS and database to connect to,
 Send your server.xml and web.xml definitions.
 Then we can have clear idea...
 
 Take care
 Gokhan
 
 
 
 
 Aris Javier wrote:
 
 Please Help!
 
 This error kept on bugging me everytime i run tomcat5 as service... My
 environment variables are already declared as well as my system dsn...
 but still...
 
 org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General
 error
 
 
 Please Help!
 
 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]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To 

docbase=myapp.war does not work correctly

2004-06-29 Thread Woodchuck
i'm using tomcat 4.1.24

i have both unpackWARs and autoDeploy set to true.

i have a context for myapp defined:
Context path=/myapp docBase=myapp debug=0
 reloadable=true

tomcat is not expanding my myapp.war file.  why is this?  so after
reading archives people suggested setting docbase=myapp.war so i did
that, but my application is not working correctly, there are run-time
nullpointer exceptions.

however, if i manually unpack my war, my app works fine, no errors.

why is tomcat not unpacking?  (or why does setting docBase=myapp.war
not work 100%?)






__
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

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



Connection pooling with two databases

2004-06-29 Thread Frans Flippo
Hi,

We're using Tomcat 4.1.30 and PostgreSQL 7.3.4 to run a high-volume
website.

We connect to two different databases using database connection
pooling and occasionally a mixup seems to occur where a query intended for
database A is executed on database B, or vice versa. Postgres says
Relation 'xxx' does not exist and the database log shows a query being
executed on a Postgres instance that previously connected to the 'wrong'
database. It looks like the JNDI lookup is returning the wrong DataSource
object.
The strange thing is most of the time it works fine. We've run for 3 weeks
without a problem; then just yesterday it happened twice in a row. A
Tomcat restart 'fixes' it, but of course we'd rather avoid that.


Has anybody used _two_ databases in a single web application using
connection pooling? Is it something that should be supported? Does this
seem like a problem in Tomcat, the commons dbcp/pooling code, or the
Postgres jdbc driver?

Thanks in advance for anything that could point us in the right direction.

Regards,
Frans


Here's the code we use to lookup the DataSource and obtain the Connection.
The code is in a method that gets executed twice, with a different
dataSourceName parameter each time (db1 and db2).

-== ==-
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;
import java.sql.Connection;

. . .
DataSource dataSource;
Connection connection;

Context initialContext = new InitialContext();
Context envContext = (Context)initialContext.lookup(java:/comp/env);
dataSource = (DataSource)envContext.lookup(dataSourceName);
connection = dataSource.getConnection();

-== ==-


Here's the Resources we define in the DefaultContext section of
server.xml:

-== ==-
Resource name=jdbc/db1 auth=Container type=javax.sql.DataSource/
ResourceParams name=jdbc/db1
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
namedriverClassName/name
valueorg.postgresql.Driver/value
/parameter
parameter
nameurl/name
valuejdbc:postgresql://127.0.0.1:5432/db1/value
/parameter
parameter
nameusername/name
valuepostgres/value
/parameter
parameter
namepassword/name
value/value
/parameter
parameter
namemaxActive/name
value20/value
/parameter
parameter
namemaxIdle/name
value10/value
/parameter
parameter
namemaxWait/name
value-1/value
/parameter
parameter
nameremoveAbandoned/name
valuetrue/value
/parameter
parameter
nameremoveAbandonedTimeout/name
value60/value
/parameter
parameter
namelogAbandoned/name
valuetrue/value
/parameter
/ResourceParams

Resource name=jdbc/db2 auth=Container type=javax.sql.DataSource/
ResourceParams name=jdbc/db2
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
namedriverClassName/name
valueorg.postgresql.Driver/value
/parameter
parameter
nameurl/name
valuejdbc:postgresql://127.0.0.1:5432/db2/value
/parameter
parameter
nameusername/name
valuepostgres/value
/parameter
parameter
namepassword/name
value/value
/parameter
parameter
namemaxActive/name
value30/value
/parameter
parameter
namemaxIdle/name
value10/value
/parameter
parameter
namemaxWait/name
value-1/value
/parameter
parameter
nameremoveAbandoned/name
valuetrue/value
/parameter
parameter
nameremoveAbandonedTimeout/name
value60/value
/parameter
parameter
namelogAbandoned/name
valuetrue/value
/parameter
/ResourceParams

-== ==-



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



Solaris9/Tomcat406-Apache2.0.43 not redirecting

2004-06-29 Thread Shawn . Pate

Apache and tomcat are working on there
own independently. Mod_jk.so compiled cleanly.

when I try to do the redirect I get
the following in my mod_jk.log. I don't get error in any of my other logs.
Any idea's what is going on?



Thanks,

Shawn Pate
Technology Consultant
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

DOCTYPE wrong yet still works, why?

2004-06-29 Thread Woodchuck
i just discovered that my DOCTYPE points to an old link:

http://java.sun.com/j2ee/dtds/web-app_2_3.dtd

if you go there you will see a message with the correct link:

http://java.sun.com/dtd/web-app_2_3.dtd

however, my app still works, and tomcat didn't complain, nor did it
warn me..

why does tomcat still understand my web.xml (or does it?) when the dtd
points to something that is not a dtd?



__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



RE: Overriding the default servlet

2004-06-29 Thread Ken Coward
Thanks for the response.

I can certainly do that but then I don't get access to the
implementation provided by the DefaultServlet.
I'll check into the filters.

Cheers
Ken



-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: Monday, June 28, 2004 10:14 PM
To: [EMAIL PROTECTED]
Subject: Re: Overriding the default servlet


Now that is one sick puppy :(.

You don't have to touch $CATALINA_HOME/conf/web.xml to override the
default
servlet.  If you have any servlet in your apps web.xml file with a
mapping
to url-pattern//url-pattern, the Tomcat will replace it's default
servlet with yours.

You should also strongly consider using a Filter to do what you want, if
all
you want is to set some headers.

Ken Coward [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I would like to replace the defaultServlet for image files within my web
application.
I want to set the Expires header to some date in the future to take
advantage of the
client cache.

I modified the server web.xml (jakarta-tomcat-4.1.24\conf) by commenting
out
the existing declaration and then added
a declaration in my application's web.xml to a derived class. However,
Tomcat throws exceptions on startup (shown below).

Is there some otherway I'm supposed to override the DefaultServlet ?

Cheers
Ken


SEVERE: Caught exception executing
[EMAIL PROTECTED]
c8b5, terminating thread
java.lang.ExceptionInInitializerError
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.init(
Http11Protocol.java:355)
at
org.apache.tomcat.util.net.TcpWorkerThread.getInitData(PoolTcpEndpoin
t.java:517)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:614)
at java.lang.Thread.run(Thread.java:536)
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.Class
CastException
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558)

at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:345)

at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
at
org.apache.coyote.http11.Http11Processor.clinit(Http11Processor.jav
a:207)
... 4 more
Caused by: java.lang.ClassCastException
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:554)

... 7 more
Jun 28, 2004 3:33:25 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8443
Jun 28, 2004 3:33:25 PM org.apache.jk.server.JkMain newHandler
SEVERE: Can't create request
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
at org.apache.jk.server.JkMain.start(JkMain.java:341)
at
org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
at
org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:
1141)
at
org.apache.catalina.core.StandardService.start(StandardService.java:5
06)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:219
0)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.Class
CastException
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558)

at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:345)

at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
at
org.apache.jk.common.HandlerRequest.clinit(HandlerRequest.java:97)
... 16 more
Caused by: java.lang.ClassCastException
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:554)

... 19 more
Jun 28, 2004 3:33:25 PM org.apache.jk.server.JkMain newHandler
SEVERE: Can't create channelSocket
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
at org.apache.jk.server.JkMain.start(JkMain.java:341)
at
org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
at
org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:
1141)
at
org.apache.catalina.core.StandardService.start(StandardService.java:5
06)
at

RE: DOCTYPE wrong yet still works, why?

2004-06-29 Thread Jérôme Duval
Because, if I remember correctly from a previous message on the list, Tomcat
does not validate web.xml files. (Anyone care to confirm this?)

-Original Message-
From: Woodchuck [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 12:10 PM
To: tomcat
Subject: DOCTYPE wrong yet still works, why?

i just discovered that my DOCTYPE points to an old link:

http://java.sun.com/j2ee/dtds/web-app_2_3.dtd

if you go there you will see a message with the correct link:

http://java.sun.com/dtd/web-app_2_3.dtd

however, my app still works, and tomcat didn't complain, nor did it warn
me..

why does tomcat still understand my web.xml (or does it?) when the dtd
points to something that is not a dtd?



__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



FW: re: Tomcat unexpectedly shuts down

2004-06-29 Thread Bliesner, Christopher P
Hello-I am working with version 4.1.12 and today, Tomcat shut down
unexpectedly with the following error:

 

2004-06-29 09:32:07 StandardWrapperValve[invoker]: Servlet.service() for
servlet invoker threw exception

java.lang.NullPointerException

at ewovqa.VqaNcDB.searchVqaNc(VqaNcDB.java:33)

at ewovqa.VqaNcSrv.doGet(VqaNcSrv.java:83)

at ewovqa.VqaNcSrv.doPost(VqaNcSrv.java:116)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.
java:458)

at
org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:2
16)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)

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

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

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

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

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

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)

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

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

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

at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:239
6)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)

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

at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)

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

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

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)

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

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

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

at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:40
5)

at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:380)

at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:50
8)

at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:533)

at java.lang.Thread.run(Thread.java:484)

 

 

Is this a BUG or ?

 

Chris Bliesner

Lead Oracle DBA/Unix admin

Wk Phone 915-834-1757

 



Re: docbase=myapp.war does not work correctly

2004-06-29 Thread Jacob Kjome
that's just behavior you will have to live with if you insist on using an
ancient (by today's standards) version of Tomcat.  Upgrade to the latest Tomcat5
release and do docBase=myapp.war and the WAR file *will* be unpacked.

Jake

Quoting Woodchuck [EMAIL PROTECTED]:

 i'm using tomcat 4.1.24
 
 i have both unpackWARs and autoDeploy set to true.
 
 i have a context for myapp defined:
 Context path=/myapp docBase=myapp debug=0
  reloadable=true
 
 tomcat is not expanding my myapp.war file.  why is this?  so after
 reading archives people suggested setting docbase=myapp.war so i did
 that, but my application is not working correctly, there are run-time
 nullpointer exceptions.
 
 however, if i manually unpack my war, my app works fine, no errors.
 
 why is tomcat not unpacking?  (or why does setting docBase=myapp.war
 not work 100%?)
 
 
 
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Mail is new and improved - Check it out!
 http://promotions.yahoo.com/new_mail
 
 -
 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: Anyone really using JAX-RPC?

2004-06-29 Thread Andrew Shirk
Yes, we're using it (Sun JWSDP). Works as advertised.
Andrew
At 03:43 PM 6/28/2004, you wrote:
Folks,
Is anyone out there running a deployed application using JAX-RPC for
soap/wsi? If so, are you using Axis, or the Sun JWSDP stuff? Or
something else entirely?
-
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: Solaris9/Tomcat406-Apache2.0.43 not redirecting

2004-06-29 Thread Shawn . Pate
sorry about that. the log got stripped because I sent it as an attachment

here it is 



[Tue Jun 29 09:48:10 2004]  [jk_uri_worker_map.c (486)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Tue Jun 29 09:48:10 2004]  [jk_uri_worker_map.c (500)]: Attempting to map 
URI '/cgi-lawson/printenv.exe'
[Tue Jun 29 09:48:10 2004]  [jk_uri_worker_map.c (618)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Tue Jun 29 09:48:15 2004]  [jk_uri_worker_map.c (486)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Tue Jun 29 09:48:15 2004]  [jk_uri_worker_map.c (500)]: Attempting to map 
URI '/cgi-lawson/printenv.exe'
[Tue Jun 29 09:48:15 2004]  [jk_uri_worker_map.c (618)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Tue Jun 29 11:37:45 2004]  [jk_uri_worker_map.c (486)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Tue Jun 29 11:37:45 2004]  [jk_uri_worker_map.c (500)]: Attempting to map 
URI '/index.html'
[Tue Jun 29 11:37:45 2004]  [jk_uri_worker_map.c (618)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Tue Jun 29 11:37:45 2004]  [jk_uri_worker_map.c (486)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Tue Jun 29 11:37:45 2004]  [jk_uri_worker_map.c (500)]: Attempting to map 
URI '/index.html'
[Tue Jun 29 11:37:45 2004]  [jk_uri_worker_map.c (618)]: 
jk_uri_worker_map_t::mp_uri_to_worker, done without a match



Shawn Pate
Technology Consultant
[EMAIL PROTECTED]




[EMAIL PROTECTED] 
06/29/2004 10:09 AM
Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
[EMAIL PROTECTED]
cc

Subject
Solaris9/Tomcat406-Apache2.0.43 not redirecting







Apache and tomcat are working on there own independently. Mod_jk.so 
compiled cleanly. 

when I try to do the redirect I get the following in my mod_jk.log. I 
don't get error in any of my other logs. Any idea's what is going on? 



Thanks, 

Shawn Pate
Technology Consultant
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Mime Mapping

2004-06-29 Thread badal jain

I am using tomcat 5...
i would like to know what is the mime mappping for
.msg extension...

thanx,
Badal





__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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



Not using the admin app

2004-06-29 Thread Benson Margulies
I'd like to build a completely wired-down webapp with an Axis soap
service included therein.

The default wsdd includes some machine-specific pathnames, so I can't
just capture it send it around.

I'm poking gently at the axix-specific api, but I'm not finding the
right thing if there is one. I'm looking for something I could call from
a ServletContextListener.


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



RE: Connection pooling with two databases

2004-06-29 Thread Holly, Michael
Frans

I use dbcp to pool two different databases on different servers. A mysql
on localhost and an Oracle on a remote host.  I have never had a
problem.
I define my pools in my webapp.xml so they are specifically restricted
to the app that uses them.   I would examine your dataSourceName and
understand how this value affects which database the query gets given
to.  You might try making the dsnames differ for more than one charater.
The other thing that comes to mind is if you are running some sort of
query object/layer in between the pool and your object model. If you
reuse an object like this you might get crosstalk. The other question
that I would ask would be if the error happens within the same session
or across sessions.  If it happens across sessions then you are storing
a reference to a connection in an instance var in a servlet (a major No
No).   I know these are vague... Hope this points you toward a solution.



Regards

Michael 

-Original Message-
From: Frans Flippo [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 10:58 AM
To: [EMAIL PROTECTED]
Subject: Connection pooling with two databases


Hi,

We're using Tomcat 4.1.30 and PostgreSQL 7.3.4 to run a high-volume
website.

We connect to two different databases using database connection pooling
and occasionally a mixup seems to occur where a query intended for
database A is executed on database B, or vice versa. Postgres says
Relation 'xxx' does not exist and the database log shows a query being
executed on a Postgres instance that previously connected to the 'wrong'
database. It looks like the JNDI lookup is returning the wrong
DataSource object. The strange thing is most of the time it works fine.
We've run for 3 weeks without a problem; then just yesterday it happened
twice in a row. A Tomcat restart 'fixes' it, but of course we'd rather
avoid that.


Has anybody used _two_ databases in a single web application using
connection pooling? Is it something that should be supported? Does this
seem like a problem in Tomcat, the commons dbcp/pooling code, or the
Postgres jdbc driver?

Thanks in advance for anything that could point us in the right
direction.

Regards,
Frans


Here's the code we use to lookup the DataSource and obtain the
Connection. The code is in a method that gets executed twice, with a
different dataSourceName parameter each time (db1 and db2).

-== ==-
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;
import java.sql.Connection;

. . .
DataSource dataSource;
Connection connection;

Context initialContext = new InitialContext();
Context envContext =
(Context)initialContext.lookup(java:/comp/env);
dataSource = (DataSource)envContext.lookup(dataSourceName);
connection = dataSource.getConnection();

-== ==-


Here's the Resources we define in the DefaultContext section of
server.xml:

-== ==-
Resource name=jdbc/db1 auth=Container type=javax.sql.DataSource/
ResourceParams name=jdbc/db1
parameter
namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
namedriverClassName/name
valueorg.postgresql.Driver/value
/parameter
parameter
nameurl/name
valuejdbc:postgresql://127.0.0.1:5432/db1/value
/parameter
parameter
nameusername/name
valuepostgres/value
/parameter
parameter
namepassword/name
value/value
/parameter
parameter
namemaxActive/name
value20/value
/parameter
parameter
namemaxIdle/name
value10/value
/parameter
parameter
namemaxWait/name
value-1/value
/parameter
parameter
nameremoveAbandoned/name
valuetrue/value
/parameter
parameter
nameremoveAbandonedTimeout/name
value60/value
/parameter
parameter
namelogAbandoned/name
valuetrue/value
/parameter
/ResourceParams

Resource name=jdbc/db2 auth=Container type=javax.sql.DataSource/
ResourceParams name=jdbc/db2
parameter
namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
namedriverClassName/name
valueorg.postgresql.Driver/value
/parameter
parameter
nameurl/name
valuejdbc:postgresql://127.0.0.1:5432/db2/value
/parameter
parameter
nameusername/name
valuepostgres/value
/parameter
parameter
namepassword/name
value/value
/parameter
parameter

RE: Not using the admin app

2004-06-29 Thread Benson Margulies
Oh, sorry, sorry, this was supposed to be directed to axis. 

 -Original Message-
 From: Benson Margulies [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, June 29, 2004 12:46 PM
 To: Tomcat Users List
 Subject: Not using the admin app
 
 I'd like to build a completely wired-down webapp with an Axis 
 soap service included therein.
 
 The default wsdd includes some machine-specific pathnames, so 
 I can't just capture it send it around.
 
 I'm poking gently at the axix-specific api, but I'm not 
 finding the right thing if there is one. I'm looking for 
 something I could call from a ServletContextListener.
 
 
 -
 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: Log rotation HOWTO

2004-06-29 Thread Emerson Cargnin
I didn't find how to make the catalina.log file split each day.
!-- Logger shared by all Contexts related to this virtual host.  By
default (when using FileLogger), log files are created in the logs
directory relative to $CATALINA_HOME.  If you wish, you can specify
a different directory with the directory attribute.  Specify either a
relative (to $CATALINA_HOME) or absolute path to the desired
directory.--
Logger className=org.apache.catalina.logger.FileLogger
   directory=logs  prefix=localhost_log. suffix=.txt
   timestamp=true/
what should I change in the following tag to get it done...?
thanks
Emerson
Jrme Duval wrote:
Search the mailing list! This question was asked recently... 

These messages might be useful...
-Original Message-
From: Frank Zammetti [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 10:04 AM
To: [EMAIL PROTECTED]
Subject: Log rotation HOWTO

I haven't been able to find a clear answer to this anywhere online,
hopefully you fine folks can help...
I need a way to rotate my stdout log in Tomcat 5.0.18.  It could be dalily
or weekly (monthly might be OK too).
Is thre any way to do this?  I assume so, so how?  Thanks in advance all!
_
Get fast, reliable Internet access with MSN 9 Dial-up  now 3 months FREE! 
http://join.msn.click-url.com/go/onm00200361ave/direct/01/

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


Subject:
AW: Managing Tomcat logs
From:
Gunnar Prschke [EMAIL PROTECTED]
Date:
Tue, 22 Jun 2004 09:24:09 -0400
To:
'Tomcat Users List' [EMAIL PROTECTED]
To:
'Tomcat Users List' [EMAIL PROTECTED]
Could you please use tomcats web admin to change logging settings...
By default you can access http://localhost:8080/admin
You can activate a separate log for several contents.
-Ursprngliche Nachricht-
Von: Veera Sivakumar [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 22. Juni 2004 11:47
An: Tomcat Users List
Betreff: Managing Tomcat logs

Hi,
I am using Tomcat as web server for my application. I start Tomcat using
windows service. All the logs generated by the Application are written in to
a file called stdout.log which is under tomca/logs folder.
I have noticed that with continuous use of application,stdout file size
increasing to a large extent. To delete the it I have to stop the tomcat.
Is there any way that I can manage the logs date wise automatically(without
manual intervention). I am not using any third party tool for logging.
The logging mechanism I use is very simple.
We have class Debug.java that have a method log(String); This log() method
use System.out.println(); In the application, I use Debug.log(Exception);
I will be more happy if there is any way to manage logs.
I have also noticed the following logs generated by Tomcat:
1.localhost_log.2004-06-18.txt
2.localhost_access_log.2004_06_22.txt
How to maintain these logs?. Can we off them permanently?
Thanks in advance.
Regards
S.V.Sivakumar
QCA Project
Tata Infotech Limited
Tel:+44 1235 823411
[EMAIL PROTECTED] / [EMAIL PROTECTED]
Visit our website at http://www.rm.com
This message is confidential.  You should not copy it or disclose its
contents to anyone.  You may use and apply the information only for the
intended purpose.  Internet communications are not secure and therefore RM
does not accept legal responsibility for the contents of this message.  Any
views or opinions presented are only those of the author and not those of
RM.  If this email has come to you in error please delete it and any
attachments.  Please note that RM may intercept incoming and outgoing e-mail
communications.
This email has been scanned for viruses by Trend ScanMail.

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


Subject:
RE: Managing Tomcat logs
From:
Robert Harper [EMAIL PROTECTED]
Date:
Tue, 22 Jun 2004 10:20:15 -0400
To:
'Tomcat Users List' [EMAIL PROTECTED]
To:
'Tomcat Users List' [EMAIL PROTECTED]
Instead of using System.out.println() to log your messages, use the
HttpServlet's log() method. You can specify the logging class you want to
use,
the path it writes to, the base name, and extension. Each day a new file is
created and you can simply delete the old ones as they are closed when a new
file is started each day. You could also create your own logger that manages
the
file size in some way. I have used the former and have specified the file
name
and path so that it easy form me to manage. My logs are separate from the
normal
logs as well.
Robert S. Harper
801.265.8800 ex. 255

-Original Message-
From: Veera Sivakumar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 

Re: web.xml pointing to other xml files?

2004-06-29 Thread Woodchuck
hi QM,

just thought i'd follow up on how i ended up doing mine.  it's
essentially the same strategy but instead of including everything in
the jspc generated file, i'm only including the exact segment that i
need and i'm using the plain replace task.

build file:

loadfile srcfile=web.xml property=myfile
filterchain
headfilter lines=-1 skip=10/
tailfilter lines=-1 skip=3/
/filterchain
/loadfile

replace file=${webapp.build}/WEB-INF/web.xml 
token=lt;!-- @SERVLET_MAPPINGS@ --gt; 
value=${myfile}/


web.xml file:

servlet
servlet-nameaction/servlet-name
   
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
load-on-startup2/load-on-startup
  /servlet

  !-- @SERVLET_MAPPINGS@ --

  !-- Standard Action Servlet Mapping --
  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping

by replacing the my entire 'placeholder' string !--
@SERVLET_MAPPINGS@ -- with the servlet mappings from jspc, my web.xml
file is still valid even if i never pre-compile.

thanks again for your help!  TMTOWTDI is really true for Ant!

woodchuck
 

--- QM [EMAIL PROTECTED] wrote:
 On Mon, Jun 28, 2004 at 09:45:55AM -0700, Woodchuck wrote:
 : actually i'm using Ant too.  i'm pre-compiling using the jspc
 task
 : and it generates a file containing servlet and servlet-mapping
 : tags.  that's exactly what i need to do really, is to merge this
 file
 : with my web.xml file.  if you can show me how you're doing it that
 : would be great, thanks!
 
 Appended below.  Perl's TMTOWTDI motto reigns here, because I'm
 certain there are other (and gmore elegant) ways to do this...
 
 -QM
 
 
 ... from build.xml ...
   !--
   make the contents of the precompiled JSP mappings
   (from the jspc task) available as a replacement
   variable @PRECOMPILED_JSPS@ in web.xml
   --
 
   loadfile
   property=jsp.precomp.data
   srcFile=${warfile.build_dir}/WEB-INF/precompiled_jsps.xml
   /
 
   !--
   copy the web.xml to its destination, and in the process,
   replace @PRECOMPILED_JSPS@ with the content of the
   precompiled_jsps.xml file
   --
 
   copy
   file=files.WEB-INF/web.xml
   overwrite=true
   toFile=${warfile.build_dir}/WEB-INF/web.xml
   
   filterset
   filter
   token=PRECOMPILED_JSPS
   value=${jsp.precomp.data}
   /
   /filterset
 
   /copy
 
 ... from web.xml (before it's copied with Ant's copy task ...
 
   !-- BEGIN: precompiled JSPs --
   @PRECOMPILED_JSPS@
   !-- END: precompiled JSPs --
 
 
 -- 
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 





__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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



RE: Mime Mapping

2004-06-29 Thread Shapira, Yoav
Hi,
Look at $CATALINA_HOME/conf/web.xml for mime mappings.  If there's nothing there for 
.msg, it's unmapped.
 
Yoav Shapira

-Original Message- 
From: badal jain [mailto:[EMAIL PROTECTED] 
Sent: Tue 6/29/2004 12:43 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Mime Mapping




I am using tomcat 5...
i would like to know what is the mime mappping for
.msg extension...

thanx,
Badal



   
   
__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail

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

RE: Log rotation HOWTO

2004-06-29 Thread Dale, Matt

You can't rotate catalina.out. You shouldnt have much in there anyway if your webapps 
are coded correctly. If you have an webapp that outputs a lot to it you can add a 
customer logger to the context and it is rotated automatically every day.

Ta
Matt

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: 29 June 2004 18:30
To: Tomcat Users List
Subject: Re: Log rotation HOWTO


I didn't find how to make the catalina.log file split each day.


!-- Logger shared by all Contexts related to this virtual host.  By
default (when using FileLogger), log files are created in the logs
directory relative to $CATALINA_HOME.  If you wish, you can specify
a different directory with the directory attribute.  Specify either a
relative (to $CATALINA_HOME) or absolute path to the desired
directory.--


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

what should I change in the following tag to get it done...?

thanks
Emerson


Jrme Duval wrote:
 Search the mailing list! This question was asked recently... 
 
 These messages might be useful...
 
 -Original Message-
 From: Frank Zammetti [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, June 29, 2004 10:04 AM
 To: [EMAIL PROTECTED]
 Subject: Log rotation HOWTO
 
 I haven't been able to find a clear answer to this anywhere online,
 hopefully you fine folks can help...
 
 I need a way to rotate my stdout log in Tomcat 5.0.18.  It could be dalily
 or weekly (monthly might be OK too).
 
 Is thre any way to do this?  I assume so, so how?  Thanks in advance all!
 
 _
 Get fast, reliable Internet access with MSN 9 Dial-up  now 3 months FREE! 
 http://join.msn.click-url.com/go/onm00200361ave/direct/01/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 Subject:
 AW: Managing Tomcat logs
 From:
 Gunnar Prschke [EMAIL PROTECTED]
 Date:
 Tue, 22 Jun 2004 09:24:09 -0400
 To:
 'Tomcat Users List' [EMAIL PROTECTED]
 
 To:
 'Tomcat Users List' [EMAIL PROTECTED]
 
 
 Could you please use tomcats web admin to change logging settings...
 
 By default you can access http://localhost:8080/admin
 
 You can activate a separate log for several contents.
 
 
 -Ursprngliche Nachricht-
 Von: Veera Sivakumar [mailto:[EMAIL PROTECTED] 
 Gesendet: Dienstag, 22. Juni 2004 11:47
 An: Tomcat Users List
 Betreff: Managing Tomcat logs
 
 Hi,
 I am using Tomcat as web server for my application. I start Tomcat using
 windows service. All the logs generated by the Application are written in to
 a file called stdout.log which is under tomca/logs folder.
 I have noticed that with continuous use of application,stdout file size
 increasing to a large extent. To delete the it I have to stop the tomcat.
 Is there any way that I can manage the logs date wise automatically(without
 manual intervention). I am not using any third party tool for logging.
 The logging mechanism I use is very simple.
 
 We have class Debug.java that have a method log(String); This log() method
 use System.out.println(); In the application, I use Debug.log(Exception);
 
 I will be more happy if there is any way to manage logs.
 I have also noticed the following logs generated by Tomcat:
 1.localhost_log.2004-06-18.txt
 2.localhost_access_log.2004_06_22.txt
 
 How to maintain these logs?. Can we off them permanently?
 Thanks in advance.
 
 Regards
 S.V.Sivakumar
 QCA Project
 Tata Infotech Limited
 Tel:  +44 1235 823411
 [EMAIL PROTECTED] / [EMAIL PROTECTED]
 
 Visit our website at http://www.rm.com
 
 This message is confidential.  You should not copy it or disclose its
 contents to anyone.  You may use and apply the information only for the
 intended purpose.  Internet communications are not secure and therefore RM
 does not accept legal responsibility for the contents of this message.  Any
 views or opinions presented are only those of the author and not those of
 RM.  If this email has come to you in error please delete it and any
 attachments.  Please note that RM may intercept incoming and outgoing e-mail
 communications.
 
 This email has been scanned for viruses by Trend ScanMail.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 Subject:
 RE: Managing Tomcat logs
 From:
 Robert Harper [EMAIL PROTECTED]
 Date:
 Tue, 22 Jun 2004 10:20:15 -0400
 To:
 'Tomcat Users List' [EMAIL PROTECTED]
 
 To:
 'Tomcat Users List' [EMAIL PROTECTED]
 
 
 Instead of using System.out.println() to log your messages, use the
 HttpServlet's log() method. You can specify the 

need mod_jk2

2004-06-29 Thread Samuel V . Green III
I can't seem to find a binary version of the module and am having 
issues attempting to build from source.

Has anybody built this module from source for Mac OS 10.3?
I'm using the example from this site:  
http://homepage.mac.com/melowe/iblog/B141099555/C760077128/E1326304651/

and when I get to:
cd jakarta-tomcat-connectors/jk/native2
I'm getting an error:  i.e.,  -bash: ./configure: No such file or 
directory

Any ideas?
Thanks,
Samuel.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Log rotation HOWTO

2004-06-29 Thread Shapira, Yoav
Hi,
Or rather, you can't rotate catalina.out using functionality built into tomcat.  You 
can use an external tool such as Apache's logrotate (no space in the name, google for 
it).  And as the original poster mentioned this has been discussed numerous times ;)
 
Yoav

-Original Message- 
From: Dale, Matt [mailto:[EMAIL PROTECTED] 
Sent: Tue 6/29/2004 3:05 PM 
To: Tomcat Users List 
Cc: 
Subject: RE: Log rotation HOWTO




You can't rotate catalina.out. You shouldnt have much in there anyway if your 
webapps are coded correctly. If you have an webapp that outputs a lot to it you can 
add a customer logger to the context and it is rotated automatically every day.

Ta
Matt

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: 29 June 2004 18:30
To: Tomcat Users List
Subject: Re: Log rotation HOWTO


I didn't find how to make the catalina.log file split each day.


!-- Logger shared by all Contexts related to this virtual host.  By
default (when using FileLogger), log files are created in the logs
directory relative to $CATALINA_HOME.  If you wish, you can specify
a different directory with the directory attribute.  Specify either a
relative (to $CATALINA_HOME) or absolute path to the desired
directory.--


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

what should I change in the following tag to get it done...?

thanks
Emerson


Iqme Duval wrote:
 Search the mailing list! This question was asked recently...

 These messages might be useful...

 -Original Message-
 From: Frank Zammetti [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 29, 2004 10:04 AM
 To: [EMAIL PROTECTED]
 Subject: Log rotation HOWTO

 I haven't been able to find a clear answer to this anywhere online,
 hopefully you fine folks can help...

 I need a way to rotate my stdout log in Tomcat 5.0.18.  It could be dalily
 or weekly (monthly might be OK too).

 Is thre any way to do this?  I assume so, so how?  Thanks in advance all!

 _
 Get fast, reliable Internet access with MSN 9 Dial-up now 3 months FREE!
 http://join.msn.click-url.com/go/onm00200361ave/direct/01/


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



 

 Subject:
 AW: Managing Tomcat logs
 From:
 Gunnar Orschke [EMAIL PROTECTED]
 Date:
 Tue, 22 Jun 2004 09:24:09 -0400
 To:
 'Tomcat Users List' [EMAIL PROTECTED]

 To:
 'Tomcat Users List' [EMAIL PROTECTED]


 Could you please use tomcats web admin to change logging settings...

 By default you can access http://localhost:8080/admin

 You can activate a separate log for several contents.


 -Ursprngliche Nachricht-
 Von: Veera Sivakumar [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 22. Juni 2004 11:47
 An: Tomcat Users List
 Betreff: Managing Tomcat logs

 Hi,
 I am using Tomcat as web server for my application. I start Tomcat using
 windows service. All the logs generated by the Application are written in to
 a file called stdout.log which is under tomca/logs folder.
 I have noticed that with continuous use of application,stdout file size
 increasing to a large extent. To delete the it I have to stop the tomcat.
 Is there any way that I can manage the logs date wise automatically(without
 manual intervention). I am not using any third party tool for logging.
 The logging mechanism I use is very simple.

 We have class Debug.java that have a method log(String); This log() method
 use System.out.println(); In the application, I use Debug.log(Exception);

 I will be more happy if there is any way to manage logs.
 I have also noticed the following logs generated by Tomcat:
 1.localhost_log.2004-06-18.txt
 2.localhost_access_log.2004_06_22.txt

 How to maintain these logs?. Can we off them permanently?
 Thanks in 

RE: Log rotation HOWTO

2004-06-29 Thread Trond Herslv
Hi, maybe you would try the following:
Create a bash-script (or on windows a .bat, with modifications)

create a file called e.g. /path/to/script/rotate_log
#!/bin/sh
file_to_zip=`date +'%m%d'
cp /your_path_to/catalina.out /your_rot_dir/$file_to_zip
echo -n   catalina.out
cd /your_rot_dir
gzip $file_to_zip
cd /your_path_to

$ crontab -e (as a user with reading permission for catalina.log and add the
following line to rotate the log 1 am every day)
0 1 * * * /path/to/script/rotate_log  /path/to/script/rotate_log 21

If you are very unlucky, you might loose log entrys between the cp statement
and the echo statement.
At least this doesn't change the i-node of the catalina.out file, hence the
logging should continue.

I have not tried this myself, and there is NO WARRENTY that it is working.
I SUGGEST you await some comments from other users here before you trie it
out.
Be aware of possible misspellings of file names. It is ment to give you an
idea of how to rotate the logs.

\trond



-Opprinnelig melding-
Fra: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sendt: Tuesday, June 29, 2004 21:09
Til: Tomcat Users List
Emne: [GFI-SPAM-BA] - RE: Log rotation HOWTO - Bayesian Filter detected
spam


Hi,
Or rather, you can't rotate catalina.out using functionality built into
tomcat.  You can use an external tool such as Apache's logrotate (no space
in the name, google for it).  And as the original poster mentioned this has
been discussed numerous times ;)
 
Yoav

-Original Message- 
From: Dale, Matt [mailto:[EMAIL PROTECTED] 
Sent: Tue 6/29/2004 3:05 PM 
To: Tomcat Users List 
Cc: 
Subject: RE: Log rotation HOWTO




You can't rotate catalina.out. You shouldnt have much in there
anyway if your webapps are coded correctly. If you have an webapp that
outputs a lot to it you can add a customer logger to the context and it is
rotated automatically every day.

Ta
Matt

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: 29 June 2004 18:30
To: Tomcat Users List
Subject: Re: Log rotation HOWTO


I didn't find how to make the catalina.log file split each day.


!-- Logger shared by all Contexts related to this virtual host.  By
default (when using FileLogger), log files are created in the logs
directory relative to $CATALINA_HOME.  If you wish, you can specify
a different directory with the directory attribute.  Specify
either a
relative (to $CATALINA_HOME) or absolute path to the desired
directory.--


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

what should I change in the following tag to get it done...?

thanks
Emerson


Iqme Duval wrote:
 Search the mailing list! This question was asked recently...

 These messages might be useful...

 -Original Message-
 From: Frank Zammetti [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 29, 2004 10:04 AM
 To: [EMAIL PROTECTED]
 Subject: Log rotation HOWTO

 I haven't been able to find a clear answer to this anywhere
online,
 hopefully you fine folks can help...

 I need a way to rotate my stdout log in Tomcat 5.0.18.  It could
be dalily
 or weekly (monthly might be OK too).

 Is thre any way to do this?  I assume so, so how?  Thanks in
advance all!

 _
 Get fast, reliable Internet access with MSN 9 Dial-up now 3
months FREE!
 http://join.msn.click-url.com/go/onm00200361ave/direct/01/



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






 Subject:
 AW: Managing Tomcat logs
 From:
 Gunnar Orschke [EMAIL PROTECTED]
 Date:
 Tue, 22 Jun 2004 09:24:09 -0400
 To:
 'Tomcat Users List' [EMAIL PROTECTED]

 To:
 'Tomcat Users List' [EMAIL PROTECTED]


 Could you please use tomcats web admin to change logging
settings...

 By default you can access http://localhost:8080/admin

 You can activate a separate log for several contents.


 -Ursprngliche Nachricht-
 Von: Veera Sivakumar [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 22. Juni 2004 11:47
 

Re: need mod_jk2

2004-06-29 Thread Mark Lowe
Samual..
I guess we can see if the one I've compiled on a mac will work with  
your stuff. It might work, its does on the box i compiled it on.

I'll put it some where you can get to it.
Mark
On 29 Jun 2004, at 20:29, Samuel V. Green III wrote:
I can't seem to find a binary version of the module and am having  
issues attempting to build from source.

Has anybody built this module from source for Mac OS 10.3?
I'm using the example from this site:   
http://homepage.mac.com/melowe/iblog/B141099555/C760077128/ 
E1326304651/

and when I get to:
cd jakarta-tomcat-connectors/jk/native2
I'm getting an error:  i.e.,  -bash: ./configure: No such file or  
directory

Any ideas?
Thanks,
Samuel.
-
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: Log rotation HOWTO

2004-06-29 Thread Trond Hersløv
Oh, noSYNTAX ERROR..sorry
 
WRONG: 
0 1 * * * /path/to/script/rotate_log  /path/to/script/rotate_log 21
 
I forgot to name the log file (otherwise you overwrite your rotate_log
script, and it will only work once):
RIGHT:
0 1 * * * /path/to/script/rotate_log  /path/to/script/logfile 21
 
Anyway...a good example of how you not should name your files..
 
\trond
 
 
Hi, maybe you would try the following:

Create a bash-script (or on windows a .bat, with modifications)

create a file called e.g. /path/to/script/rotate_log

#!/bin/sh

file_to_zip=`date +'%m%d'

cp /your_path_to/catalina.out /your_rot_dir/$file_to_zip

echo -n   catalina.out

cd /your_rot_dir

gzip $file_to_zip

cd /your_path_to

$ crontab -e (as a user with reading permission for catalina.log and add the
following line to rotate the log 1 am every day)

0 1 * * * /path/to/script/rotate_log  /path/to/script/rotate_log 21

If you are very unlucky, you might loose log entrys between the cp statement
and the echo statement.

At least this doesn't change the i-node of the catalina.out file, hence the
logging should continue.

I have not tried this myself, and there is NO WARRENTY that it is working.

I SUGGEST you await some comments from other users here before you trie it
out.

Be aware of possible misspellings of file names. It is ment to give you an
idea of how to rotate the logs.

\trond

 

 

-Opprinnelig melding-

Fra: Shapira, Yoav [mailto:[EMAIL PROTECTED]

Sendt: Tuesday, June 29, 2004 21:09

Til: Tomcat Users List

Emne: [GFI-SPAM-BA] - RE: Log rotation HOWTO - Bayesian Filter detected

spam

 

Hi,

Or rather, you can't rotate catalina.out using functionality built into
tomcat. You can use an external tool such as Apache's logrotate (no space in
the name, google for it). And as the original poster mentioned this has been
discussed numerous times ;)

Yoav

-Original Message- 

From: Dale, Matt [mailto:[EMAIL PROTECTED] 

Sent: Tue 6/29/2004 3:05 PM 

To: Tomcat Users List 

Cc: 

Subject: RE: Log rotation HOWTO

 

You can't rotate catalina.out. You shouldnt have much in there anyway if
your webapps are coded correctly. If you have an webapp that outputs a lot
to it you can add a customer logger to the context and it is rotated
automatically every day.

Ta

Matt

-Original Message-

From: Emerson Cargnin [mailto:[EMAIL PROTECTED]

Sent: 29 June 2004 18:30

To: Tomcat Users List

Subject: Re: Log rotation HOWTO

I didn't find how to make the catalina.log file split each day.

!-- Logger shared by all Contexts related to this virtual host. By

default (when using FileLogger), log files are created in the logs

directory relative to $CATALINA_HOME. If you wish, you can specify

a different directory with the directory attribute. Specify either a

relative (to $CATALINA_HOME) or absolute path to the desired

directory.--

Logger className=org.apache.catalina.logger.FileLogger

directory=logs prefix=localhost_log. suffix=.txt

timestamp=true/

what should I change in the following tag to get it done...?

thanks

Emerson

I©q´me Duval wrote:

 Search the mailing list! This question was asked recently...



 These messages might be useful...



 -Original Message-

 From: Frank Zammetti [mailto:[EMAIL PROTECTED]

 Sent: Tuesday, June 29, 2004 10:04 AM

 To: [EMAIL PROTECTED]

 Subject: Log rotation HOWTO



 I haven't been able to find a clear answer to this anywhere online,

 hopefully you fine folks can help...



 I need a way to rotate my stdout log in Tomcat 5.0.18. It could be dalily

 or weekly (monthly might be OK too).



 Is thre any way to do this? I assume so, so how? Thanks in advance all!



 _

 Get fast, reliable Internet access with MSN 9 Dial-up? now 3 months FREE!

 http://join.msn.click-url.com/go/onm00200361ave/direct/01/





 -

 To unsubscribe, e-mail: [EMAIL PROTECTED]

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







 



 Subject:

 AW: Managing Tomcat logs

 From:

 Gunnar Oörschke [EMAIL PROTECTED]

 Date:

 Tue, 22 Jun 2004 09:24:09 -0400

 To:

 'Tomcat Users List' [EMAIL PROTECTED]



 To:

 'Tomcat Users List' [EMAIL PROTECTED]





 Could you please use tomcats web admin to change logging settings...



 By default you can access http://localhost:8080/admin



 You can activate a separate log for several contents.





 -Urspr¼ngliche Nachricht-

 Von: Veera Sivakumar [mailto:[EMAIL PROTECTED]

 Gesendet: Dienstag, 22. Juni 2004 11:47

 An: Tomcat Users List

 Betreff: Managing Tomcat logs



 Hi,

 I am using Tomcat as web server for my application. I start Tomcat using

 windows service. All the logs generated by the Application are written in
to

 a file called stdout.log which is under tomca/logs folder.

 I have noticed that with continuous use of 

Re: need mod_jk2

2004-06-29 Thread Mark Lowe
Try downloading this and untar  it in /usr/libexec/apache2
It might work for you, it does for me. Same one that i blogged.
http://homepage.mac.com/melowe/mod_jk2.so.tar.gz
 Apache/2.0.49 (Unix) mod_jk2/2.0.5-dev
OSX 10.3
Mark
On 29 Jun 2004, at 23:28, Mark Lowe wrote:
Samual..
I guess we can see if the one I've compiled on a mac will work with  
your stuff. It might work, its does on the box i compiled it on.

I'll put it some where you can get to it.
Mark
On 29 Jun 2004, at 20:29, Samuel V. Green III wrote:
I can't seem to find a binary version of the module and am having  
issues attempting to build from source.

Has anybody built this module from source for Mac OS 10.3?
I'm using the example from this site:   
http://homepage.mac.com/melowe/iblog/B141099555/C760077128/ 
E1326304651/

and when I get to:
cd jakarta-tomcat-connectors/jk/native2
I'm getting an error:  i.e.,  -bash: ./configure: No such file or  
directory

Any ideas?
Thanks,
Samuel.
-
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]


Tomcat - MySQL = No suitable driver ERROR

2004-06-29 Thread Briggs, Patrick
I'm trying to setup Tomcat 5.0.25 to talk to a MySQL database and I've had
no luck after several days of fighting with this thing.  I'm following along
the documentation at this URI:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-how
to.html

The example says to edit server.xml Add this in between the /Context tag
of the examples context and the /Host tag closing the localhost
definition. 
So far I've not found any Context example in server.xml.  So that doesn't
appear to exist.  However, I have placed it before the /Host tag and have
also tried putting it in the GlobalNamingResources as well, but that
didn't make any difference for me.
I have placed the mysql-connector-java-3.0.14-production-bin.jar file in
/tomcat/common/lib as instructed.  I have also tried placing it WEB-INF/lib,
that didn't work.  Also tried putting it in tomcat/server/lib and that
didn't help either.
I have the impressiont that the datasource-examples-howto is somehow out of
date, hasn't been really tested much, or is just plain incorrect because
I've found numerous other hits on GOOGLE.COM about this problem, but nobody
really has much of a solution.  Seems to me that setting this up shouldn't
be this complicated.
The error message I keep getting all the time is:
javax.servlet.ServletException: Unable to get connection, DataSource
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null', cause: No suitable driver

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:825)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:758)
org.apache.jsp.test_jsp._jspService(test_jsp.java:81)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
98)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

Root Cause:
javax.servlet.jsp.JspException: Unable to get connection, DataSource
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null', cause: No suitable driver

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(Unk
nown Source)

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(Unknow
n Source)
org.apache.jsp.test_jsp._jspx_meth_sql_query_0(test_jsp.java:100)
org.apache.jsp.test_jsp._jspService(test_jsp.java:58)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
98)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


server.xml:

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

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

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

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- Comment these entries out to disable JMX MBeans support --
  !-- You may also configure custom components (e.g. Valves/Realms) by 
   including your own mbean-descriptor file(s), and setting the 
   descriptors attribute to point to a ';' seperated list of paths
   (in the ClassLoader sense) of files to add to the default list.
   e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
 

JSP debugging no longer working with tomcat 5 using vanilla eclipse

2004-06-29 Thread Mark Palmer
I have been using eclipse 3.0R? for quite some time.
And have been able to debug jsp's in tomcat 4 by
simplying
copying the *.java files created by tomcat's jasper
compiler, into my eclipse workspace, into a directory
called org/apache/jsp and attaching a remot e
debugger.

That way I can see the raw jsp files as a java source
file
and debug it.

However with tomcat 5 this no longer works correctly.

The remote debugger still stop on breakpoints that i
have set, but it is unable to correctly associate the
*.java file with line number it is on and consequently
it does not step through the code on the screen.

It has however still in debug mode because I can set
addition breakpoint in a file and it will stop when it
get there, and I can examine all the varialbles.

Any ideas on what is different with tomcat5 and
jasper2 that might be causing this?



__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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



Re: Log rotation HOWTO

2004-06-29 Thread Emerson Cargnin
I thought that would be an easier way, just as you can do using a 
diferent class appender with log4j.

Trond Hersløv wrote:
Oh, noSYNTAX ERROR..sorry
 
WRONG: 
0 1 * * * /path/to/script/rotate_log  /path/to/script/rotate_log 21
 
I forgot to name the log file (otherwise you overwrite your rotate_log
script, and it will only work once):
RIGHT:
0 1 * * * /path/to/script/rotate_log  /path/to/script/logfile 21
 
Anyway...a good example of how you not should name your files..
 
\trond
 
 
Hi, maybe you would try the following:

Create a bash-script (or on windows a .bat, with modifications)
create a file called e.g. /path/to/script/rotate_log
#!/bin/sh
file_to_zip=`date +'%m%d'
cp /your_path_to/catalina.out /your_rot_dir/$file_to_zip
echo -n   catalina.out
cd /your_rot_dir
gzip $file_to_zip
cd /your_path_to
$ crontab -e (as a user with reading permission for catalina.log and add the
following line to rotate the log 1 am every day)
0 1 * * * /path/to/script/rotate_log  /path/to/script/rotate_log 21
If you are very unlucky, you might loose log entrys between the cp statement
and the echo statement.
At least this doesn't change the i-node of the catalina.out file, hence the
logging should continue.
I have not tried this myself, and there is NO WARRENTY that it is working.
I SUGGEST you await some comments from other users here before you trie it
out.
Be aware of possible misspellings of file names. It is ment to give you an
idea of how to rotate the logs.
\trond
 

 

-Opprinnelig melding-
Fra: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sendt: Tuesday, June 29, 2004 21:09
Til: Tomcat Users List
Emne: [GFI-SPAM-BA] - RE: Log rotation HOWTO - Bayesian Filter detected
spam
 

Hi,
Or rather, you can't rotate catalina.out using functionality built into
tomcat. You can use an external tool such as Apache's logrotate (no space in
the name, google for it). And as the original poster mentioned this has been
discussed numerous times ;)
Yoav
-Original Message- 

From: Dale, Matt [mailto:[EMAIL PROTECTED] 

Sent: Tue 6/29/2004 3:05 PM 

To: Tomcat Users List 

Cc: 

Subject: RE: Log rotation HOWTO
 

You can't rotate catalina.out. You shouldnt have much in there anyway if
your webapps are coded correctly. If you have an webapp that outputs a lot
to it you can add a customer logger to the context and it is rotated
automatically every day.
Ta
Matt
-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: 29 June 2004 18:30
To: Tomcat Users List
Subject: Re: Log rotation HOWTO
I didn't find how to make the catalina.log file split each day.
!-- Logger shared by all Contexts related to this virtual host. By
default (when using FileLogger), log files are created in the logs
directory relative to $CATALINA_HOME. If you wish, you can specify
a different directory with the directory attribute. Specify either a
relative (to $CATALINA_HOME) or absolute path to the desired
directory.--
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=localhost_log. suffix=.txt
timestamp=true/
what should I change in the following tag to get it done...?
thanks
Emerson
I©q´me Duval wrote:

Search the mailing list! This question was asked recently...


These messages might be useful...


-Original Message-

From: Frank Zammetti [mailto:[EMAIL PROTECTED]

Sent: Tuesday, June 29, 2004 10:04 AM

To: [EMAIL PROTECTED]

Subject: Log rotation HOWTO


I haven't been able to find a clear answer to this anywhere online,

hopefully you fine folks can help...


I need a way to rotate my stdout log in Tomcat 5.0.18. It could be dalily

or weekly (monthly might be OK too).


Is thre any way to do this? I assume so, so how? Thanks in advance all!


_

Get fast, reliable Internet access with MSN 9 Dial-up? now 3 months FREE!

http://join.msn.click-url.com/go/onm00200361ave/direct/01/


-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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






Subject:

AW: Managing Tomcat logs

From:

Gunnar Oörschke [EMAIL PROTECTED]

Date:

Tue, 22 Jun 2004 09:24:09 -0400

To:

'Tomcat Users List' [EMAIL PROTECTED]


To:

'Tomcat Users List' [EMAIL PROTECTED]


Could you please use tomcats web admin to change logging settings...


By default you can access http://localhost:8080/admin


You can activate a separate log for several contents.


-Urspr¼ngliche Nachricht-

Von: Veera Sivakumar [mailto:[EMAIL PROTECTED]

Gesendet: Dienstag, 22. Juni 2004 11:47

An: Tomcat Users List

Betreff: Managing Tomcat logs


Hi,

I am using Tomcat as web server for my application. I start Tomcat using

windows service. All the logs generated by the Application are written in
to

a file called stdout.log which is under tomca/logs folder.

I have noticed that with continuous 

Re: JSP debugging no longer working with tomcat 5 using vanilla eclipse

2004-06-29 Thread Mark Palmer
I figured it out

it is to do with JSP 2.0 spec

if you put 

suppressSmap - false in web.xml 

like so... 

it works

servlet
servlet-namejsp/servlet-name   
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namesuppressSmap/param-name
param-valuetrue/param-value
/init-param
/servlet

I will do a how-to web page in the next couple of days

--- Mark Palmer [EMAIL PROTECTED] wrote:
 I have been using eclipse 3.0R? for quite some time.
 And have been able to debug jsp's in tomcat 4 by
 simplying
 copying the *.java files created by tomcat's jasper
 compiler, into my eclipse workspace, into a
 directory
 called org/apache/jsp and attaching a remot e
 debugger.
 
 That way I can see the raw jsp files as a java
 source
 file
 and debug it.
 
 However with tomcat 5 this no longer works
 correctly.
 
 The remote debugger still stop on breakpoints that i
 have set, but it is unable to correctly associate
 the
 *.java file with line number it is on and
 consequently
 it does not step through the code on the screen.
 
 It has however still in debug mode because I can set
 addition breakpoint in a file and it will stop when
 it
 get there, and I can examine all the varialbles.
 
 Any ideas on what is different with tomcat5 and
 jasper2 that might be causing this?
 
 
   
 __
 Do you Yahoo!?
 New and Improved Yahoo! Mail - Send 10MB messages!
 http://promotions.yahoo.com/new_mail 
 




__
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

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



RE: Please Help!

2004-06-29 Thread Aris Javier
My current tomcat version is tomcat5.0.7 
also, i dont see service.bat under catalina_home/bin folder...

do i have to download latest tomcat version?

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 11:46 PM
To: Tomcat Users List
Subject: RE: Please Help!


You specify Tomcat5.0.  If that's true, you are using a pre-release
version of Tomcat5.  Update to the latest official version (or
Tomcat-5.0.27beta) and retest.  Make sure your driver is in common/lib
as well.  Note that CATALINA_HOME/bin/service.bat can be used to
install/remove the service.  Make sure to set your CATALINA_HOME
variable before you run service.bat.

Jake

Quoting Aris Javier [EMAIL PROTECTED]:

 Thanks!
 
 My system works fine when i run tomcat5.0 in console...
 but when i run tomcat5.0 in service, this error occurs...
 
 org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General 
 error
 
 I already declared my enviroment variables..
 i declared bootstrap.jar and tools.jar in classpath...
 
 anyway, here's my system info...
 
 OS: Windows 2000
 Database: MS Access 2000
 System DSN: EZX_DS
 Technology: Java Servlet/JSP MVC
 Tomcat Folder: D:\Tomcat_5.0
 
 Server.xml context...
 Context path=/tees docBase=tees debug=5 
 reloadable=true crossContext=true
   Logger
className=org.apache.catalina.logger.FileLogger
prefix=localhost_tees_log. suffix=.txt
timestamp=true/
   Resource name=jdbc/EZX_DS
auth=Container
type=javax.sql.DataSource/
   ResourceParams name=jdbc/EZX_DS
   parameter
   namefactory/name
 
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
   namemaxActive/name
   value100/value
   /parameter
   parameter
   namemaxIdle/name
   value30/value
   /parameter
   parameter
   namemaxWait/name
   value1/value
   /parameter
   parameter
namedriverClassName/name
valuesun.jdbc.odbc.JdbcOdbcDriver/value
   /parameter
   parameter
   nameurl/name
   valuejdbc:odbc:EZX_DS/value
/parameter
   /ResourceParams
 /Context
 
 Web.xml contains...
 web-app
   display-nameEAZIX TEES Tomcat to Access/display-name
   resource-ref
   descriptionDB Connection/description
   res-ref-namejdbc/EZX_DS/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
   /resource-ref
   context-param
  param-nameconfigFile/param-name
 
 param-valued:\\eazixprojects\\tees\\xml\\mapping.xml/param-value
   /context-param
   servlet
 servlet-nameEazixServlet/servlet-name
 servlet-classtees.main.util.EazixServlet/servlet-class
   /servlet
   servlet-mapping
 servlet-nameEazixServlet/servlet-name
 url-pattern*.ezx/url-pattern
   /servlet-mapping
 
 servlet
 servlet-nameCewolfServlet/servlet-name
 servlet-classde.laures.cewolf.CewolfRenderer/servlet-class
   !-- sets overlib.js location relative to webapp --
 init-param
 param-nameoverliburl/param-name
 

param-valueD:\\eazixprojects\\tees\\js\\etc\\overlib.js/param-value
 /init-param
   !-- turn on or off debugging logging --
 init-param
 param-namedebug/param-name
 param-valuetrue/param-value
 /init-param
 load-on-startup1/load-on-startup
 /servlet
   servlet-mapping
 servlet-nameCewolfServlet/servlet-name
 url-pattern/cewolf/*/url-pattern
   /servlet-mapping
  welcome-file-list
   welcome-filewelcome.jsp/welcome-file
  /welcome-file-list
   error-page
 locationmsewFailed.jsp/location
   /error-page
 /web-app
 
 -Original Message-
 From: Kunthar [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 29, 2004 3:41 PM
 To: Tomcat Users List
 Subject: Re: Please Help!
 
 
 Hello,
 
 Please give us more detail.
 Your OS and database to connect to,
 Send your server.xml and web.xml definitions.
 Then we can have clear idea...
 
 Take care
 Gokhan
 
 
 
 
 Aris Javier wrote:
 
 Please Help!
 
 This error kept on bugging me everytime i run tomcat5 as service... 
 My environment variables are already declared as well as my system 
 dsn... but still...
 
 org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General

 error
 
 
 Please Help!
 
 Thanks!
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 -
 To unsubscribe, 

SQLServer 2000 Driver for JDBC - setting selectmethod=cursor

2004-06-29 Thread Matt Krevs
Hi all

I am using the SQLServer 2000 Driver for JDBC with Tomcat 5 and have an
exception being raised whenever I try to execute more than one insert or
update using the same database connection. The exception is 

java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Can't
start a cloned connection while in manual transaction mode.

I have searched various forums and have found that if you set
selectmethod=true it fixes the problem. However, I haven't yet found a
way to set this property. No matter what I do, tomcat or the driver
itself seems to ignore the setting.

Has anyone successfully been able to specify the 'selectmethod=true'
property? If someone could post a sample server.xml that would be great.
I have tried specifying 'SelectMethod' as a parameter and also tacked on
the end of the url with no luck. Actually, anything added to the url
(instead of specifying it as a parameter in the xm) seems to be ignored.

A snippet from my server.xml is as follows


Resource name=jdbc/mater-exam auth=Container
type=com.microsoft.jdbcx.sqlserver.SQLServerDataSource/

  ResourceParams name=jdbc/mater-exam
parameter
  namefactory/name

valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory/value
/parameter
parameter
  namemaxActive/name
  value10/value
/parameter
parameter
  namemaxIdle/name
  value10/value
/parameter
parameter
  namemaxWait/name
  value1/value
/parameter
parameter
  nameserverName/name
  valuelocalhost/value
/parameter
parameter
 nameuser/name
 valuemater_exam/value
/parameter
parameter
 namepassword/name
 valuemater_exam/value
/parameter
parameter
 nameSelectMethod/name
 valuecursor/value
/parameter
parameter
   namedriverClassName/name

valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSource/value
/parameter
parameter
  nameurl/name
  valuejdbc:microsoft:sqlserver://localhost/value
/parameter
  /ResourceParams
/Context

Any help much appreciated

Matt


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



Please Help! Tomcat 5.0.25

2004-06-29 Thread Aris Javier
Hello!

I installed Tomcat 5.0.25
i noticed that tomcat won't start unless i first make service install
command?
under catalina_home/bin/service.bat

also, after running tomcat service... my previous error 
(org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General)
was converted to

org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory, cause: General error

but when i run startup.bat, no error occured... 

what's the difference then? running tomcat as a service and running
tomcat using startup.bat...???
i need to run my application as a service.. so that it will keep on
running eventhough i'm not logged-in...



-Original Message-
From: Aris Javier 
Sent: Wednesday, June 30, 2004 8:22 AM
To: Tomcat Users List
Subject: RE: Please Help!


My current tomcat version is tomcat5.0.7 
also, i dont see service.bat under catalina_home/bin folder...

do i have to download latest tomcat version?

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 11:46 PM
To: Tomcat Users List
Subject: RE: Please Help!


You specify Tomcat5.0.  If that's true, you are using a pre-release
version of Tomcat5.  Update to the latest official version (or
Tomcat-5.0.27beta) and retest.  Make sure your driver is in common/lib
as well.  Note that CATALINA_HOME/bin/service.bat can be used to
install/remove the service.  Make sure to set your CATALINA_HOME
variable before you run service.bat.

Jake

Quoting Aris Javier [EMAIL PROTECTED]:

 Thanks!
 
 My system works fine when i run tomcat5.0 in console...
 but when i run tomcat5.0 in service, this error occurs...
 
 org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General
 error
 
 I already declared my enviroment variables..
 i declared bootstrap.jar and tools.jar in classpath...
 
 anyway, here's my system info...
 
 OS: Windows 2000
 Database: MS Access 2000
 System DSN: EZX_DS
 Technology: Java Servlet/JSP MVC
 Tomcat Folder: D:\Tomcat_5.0
 
 Server.xml context...
 Context path=/tees docBase=tees debug=5
 reloadable=true crossContext=true
   Logger
className=org.apache.catalina.logger.FileLogger
prefix=localhost_tees_log. suffix=.txt
timestamp=true/
   Resource name=jdbc/EZX_DS
auth=Container
type=javax.sql.DataSource/
   ResourceParams name=jdbc/EZX_DS
   parameter
   namefactory/name
 
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
   namemaxActive/name
   value100/value
   /parameter
   parameter
   namemaxIdle/name
   value30/value
   /parameter
   parameter
   namemaxWait/name
   value1/value
   /parameter
   parameter
namedriverClassName/name
valuesun.jdbc.odbc.JdbcOdbcDriver/value
   /parameter
   parameter
   nameurl/name
   valuejdbc:odbc:EZX_DS/value
/parameter
   /ResourceParams
 /Context
 
 Web.xml contains...
 web-app
   display-nameEAZIX TEES Tomcat to Access/display-name
   resource-ref
   descriptionDB Connection/description
   res-ref-namejdbc/EZX_DS/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
   /resource-ref
   context-param
  param-nameconfigFile/param-name
 
 param-valued:\\eazixprojects\\tees\\xml\\mapping.xml/param-value
   /context-param
   servlet
 servlet-nameEazixServlet/servlet-name
 servlet-classtees.main.util.EazixServlet/servlet-class
   /servlet
   servlet-mapping
 servlet-nameEazixServlet/servlet-name
 url-pattern*.ezx/url-pattern
   /servlet-mapping
 
 servlet
 servlet-nameCewolfServlet/servlet-name
 servlet-classde.laures.cewolf.CewolfRenderer/servlet-class
   !-- sets overlib.js location relative to webapp --
 init-param
 param-nameoverliburl/param-name
 

param-valueD:\\eazixprojects\\tees\\js\\etc\\overlib.js/param-value
 /init-param
   !-- turn on or off debugging logging --
 init-param
 param-namedebug/param-name
 param-valuetrue/param-value
 /init-param
 load-on-startup1/load-on-startup
 /servlet
   servlet-mapping
 servlet-nameCewolfServlet/servlet-name
 url-pattern/cewolf/*/url-pattern
   /servlet-mapping
  welcome-file-list
   welcome-filewelcome.jsp/welcome-file
  /welcome-file-list
   error-page
 locationmsewFailed.jsp/location
   /error-page
 /web-app
 
 -Original Message-
 From: Kunthar [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 29, 2004 3:41 PM
 To: Tomcat Users List
 

Tomcat and JBoss

2004-06-29 Thread ramesh
Hi,

 

I am using Tomcat 4.1 that comes packaged with JBoss 3.2.3. I am trying to
deploy my war which has two servlets.  I am not able to connect to my
servlets by doing a http://localhost:8080/ccgIntf. I tried different
variations of the URL but with no luck. I looked at the jmx-console and
found that the Servlets are not getting deployed. The war itself seems to be
but the Servlet Names are not appearing.

 

Can anyone tell me what I am missing?

 

Thanks,

 

Ramesh.

 

 

 

The structure for the war is

 

Tam.war

  |-- meta-inf

  | |-- manifest.mf

  |-- web-inf

  | |-- web.xml

  | |-- jboss-web.xml

  | |-- classes

  | |  |-- my two servlet classes with directories.

 

The web.xml is:

 

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

!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN 

  http://java.sun.com/dtd/web-app_2_3.dtd;

 

web-app

 

servlet

servlet-nameccgIntf/servlet-name

 
servlet-classcom.transerainc.tam.servlet.TAMServlet/servlet-class

/servlet

 

servlet

servlet-nameStatistics/servlet-name

 
servlet-classcom.transerainc.tam.servlet.StatisticsServlet/servlet-class

/servlet

 

  servlet-mapping

servlet-nameccgIntf/servlet-name

url-pattern/ccgIntf/url-pattern

  /servlet-mapping

 

  servlet-mapping

servlet-nameStatistics/servlet-name

url-pattern/stats/url-pattern

  /servlet-mapping

 

/web-app

 

The Jboss-web.xml is:

 

jboss-web

  !-- An empty context root map the war to the root context,

  e.g., http://localhost:8080/ --

  context-root /

/jboss-web



Re: Tomcat and JBoss

2004-06-29 Thread QM
On Tue, Jun 29, 2004 at 06:39:28PM -0700, ramesh wrote:
: I am using Tomcat 4.1 that comes packaged with JBoss 3.2.3. I am trying to
: deploy my war which has two servlets.  I am not able to connect to my
: servlets by doing a http://localhost:8080/ccgIntf. I tried different
: variations of the URL but with no luck.

How does JBoss map your WAR file to a context?  Does it use Tomcat's
autodeploy?  If so, for a WAR file named some_app.war try to access:

http://localhost:8080/some_app/ccgIntf

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Tomcat and Java WSDP

2004-06-29 Thread Peter Foley


How do I setup WSDP 1.4 to talk to Jakarta-Tomcat (instead of its own tomcat)?

Thanks




---
ABS Web Site:  www.abs.gov.au


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



Re: Please Help! Tomcat 5.0.25

2004-06-29 Thread Jacob Kjome
At 09:37 AM 6/30/2004 +0800, you wrote:
Hello!
I installed Tomcat 5.0.25
i noticed that tomcat won't start unless i first make service install
command?
under catalina_home/bin/service.bat
also, after running tomcat service... my previous error
(org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General)
was converted to
org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory, cause: General error
I see you are using the sun.jdbc.odbc.JdbcOdbcDriver driver.  This is a bad 
idea.  What Database are you connecting to?  You should use the driver made 
for that database.

However, I think the error is coming from not having tools.jar in the 
classpath.  You'll have to add this to service.bat.  You might also notice 
that JSP's don't compile for the same reason.  I have asked the Tomcat 
developers to add tools.jar to classpath in service.bat, but it never seems 
to get done.  I have created my own copy of service.bat that works better 
for me and brings it more in line with starting from the startup.bat 
file.  I'll attach it.

Jake

but when i run startup.bat, no error occured...
what's the difference then? running tomcat as a service and running
tomcat using startup.bat...???
i need to run my application as a service.. so that it will keep on
running eventhough i'm not logged-in...

-Original Message-
From: Aris Javier
Sent: Wednesday, June 30, 2004 8:22 AM
To: Tomcat Users List
Subject: RE: Please Help!
My current tomcat version is tomcat5.0.7
also, i dont see service.bat under catalina_home/bin folder...
do i have to download latest tomcat version?
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 29, 2004 11:46 PM
To: Tomcat Users List
Subject: RE: Please Help!
You specify Tomcat5.0.  If that's true, you are using a pre-release
version of Tomcat5.  Update to the latest official version (or
Tomcat-5.0.27beta) and retest.  Make sure your driver is in common/lib
as well.  Note that CATALINA_HOME/bin/service.bat can be used to
install/remove the service.  Make sure to set your CATALINA_HOME
variable before you run service.bat.
Jake
Quoting Aris Javier [EMAIL PROTECTED]:
 Thanks!

 My system works fine when i run tomcat5.0 in console...
 but when i run tomcat5.0 in service, this error occurs...

 org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General
 error

 I already declared my enviroment variables..
 i declared bootstrap.jar and tools.jar in classpath...

 anyway, here's my system info...

 OS: Windows 2000
 Database: MS Access 2000
 System DSN: EZX_DS
 Technology: Java Servlet/JSP MVC
 Tomcat Folder: D:\Tomcat_5.0

 Server.xml context...
 Context path=/tees docBase=tees debug=5
 reloadable=true crossContext=true
   Logger
className=org.apache.catalina.logger.FileLogger
prefix=localhost_tees_log. suffix=.txt
timestamp=true/
   Resource name=jdbc/EZX_DS
auth=Container
type=javax.sql.DataSource/
   ResourceParams name=jdbc/EZX_DS
   parameter
   namefactory/name

 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
   namemaxActive/name
   value100/value
   /parameter
   parameter
   namemaxIdle/name
   value30/value
   /parameter
   parameter
   namemaxWait/name
   value1/value
   /parameter
   parameter
namedriverClassName/name
valuesun.jdbc.odbc.JdbcOdbcDriver/value
   /parameter
   parameter
   nameurl/name
   valuejdbc:odbc:EZX_DS/value
/parameter
   /ResourceParams
 /Context

 Web.xml contains...
 web-app
   display-nameEAZIX TEES Tomcat to Access/display-name
   resource-ref
   descriptionDB Connection/description
   res-ref-namejdbc/EZX_DS/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
   /resource-ref
   context-param
  param-nameconfigFile/param-name

 param-valued:\\eazixprojects\\tees\\xml\\mapping.xml/param-value
   /context-param
   servlet
 servlet-nameEazixServlet/servlet-name
 servlet-classtees.main.util.EazixServlet/servlet-class
   /servlet
   servlet-mapping
 servlet-nameEazixServlet/servlet-name
 url-pattern*.ezx/url-pattern
   /servlet-mapping

 servlet
 servlet-nameCewolfServlet/servlet-name
 servlet-classde.laures.cewolf.CewolfRenderer/servlet-class
   !-- sets overlib.js location relative to webapp --
 init-param
 param-nameoverliburl/param-name



Re: target release conflicts with default source?

2004-06-29 Thread Joel
  ==
  [javac] Compiling 63 source files to 
  D:\Program_Files\jakarta\jakarta-tomcat
  -5.0.25-src\jakarta-tomcat-5\build\classes
  [javac] javac: target release 1.1 conflicts with default 
  source release 1.5
  
  BUILD FAILED
  
  
  I'm using Java 1.5 beta. Is that a no-no?
 
 Quite strange... the option target 1.1 in javac is for compiling
 applet source in java1 for backward compatibility (due to the
 changing of byte code since java 1.3, if I remember correctly).

Okay, does this have something to do with, for instance, in 

jakarta-tomcat-catalina/catalina/build.xml

the following:

!-- JDK flags --
available property=jdk.1.2.present classname=java.util.HashMap /
available property=jdk.1.3.present 
 classname=java.lang.reflect.Proxy /
available property=jdk.1.4.present classname=java.nio.Buffer /

!-- Ant flags --

that is, a lack of available property=jdk.1.5.present/s?

-- 
Joel [EMAIL PROTECTED]


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



RE: Please Help! Tomcat 5.0.25

2004-06-29 Thread Aris Javier
Thanks for the updated service.bat Sir Jake!
I'll test it at once... 

Regarding my database... I'm just using MS Access 2000...
I don't know what driver to use or how to install or configure it
that's why I use sun.jdbc.odbc.JdbcOdbcDriver driver. 
What do you think is the proper driver for MS Access 2000?
and how to install it...?

Thanks!
I'll test your updated service.bat and update you of my progress...

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 10:52 AM
To: Tomcat Users List
Subject: Re: Please Help! Tomcat 5.0.25


At 09:37 AM 6/30/2004 +0800, you wrote:
Hello!

I installed Tomcat 5.0.25
i noticed that tomcat won't start unless i first make service install

command? under catalina_home/bin/service.bat

also, after running tomcat service... my previous error
(org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General)

was converted to

org.apache.commons.dbcp.SQLNestedException: Cannot create 
PoolableConnectionFactory, cause: General error

I see you are using the sun.jdbc.odbc.JdbcOdbcDriver driver.  This is a
bad 
idea.  What Database are you connecting to?  You should use the driver
made 
for that database.

However, I think the error is coming from not having tools.jar in the 
classpath.  You'll have to add this to service.bat.  You might also
notice 
that JSP's don't compile for the same reason.  I have asked the Tomcat 
developers to add tools.jar to classpath in service.bat, but it never
seems 
to get done.  I have created my own copy of service.bat that works
better 
for me and brings it more in line with starting from the startup.bat 
file.  I'll attach it.


Jake


but when i run startup.bat, no error occured...

what's the difference then? running tomcat as a service and running 
tomcat using startup.bat...??? i need to run my application as a 
service.. so that it will keep on running eventhough i'm not 
logged-in...



-Original Message-
From: Aris Javier
Sent: Wednesday, June 30, 2004 8:22 AM
To: Tomcat Users List
Subject: RE: Please Help!


My current tomcat version is tomcat5.0.7
also, i dont see service.bat under catalina_home/bin folder...

do i have to download latest tomcat version?

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 29, 2004 11:46 PM
To: Tomcat Users List
Subject: RE: Please Help!


You specify Tomcat5.0.  If that's true, you are using a pre-release 
version of Tomcat5.  Update to the latest official version (or
Tomcat-5.0.27beta) and retest.  Make sure your driver is in common/lib 
as well.  Note that CATALINA_HOME/bin/service.bat can be used to 
install/remove the service.  Make sure to set your CATALINA_HOME 
variable before you run service.bat.

Jake

Quoting Aris Javier [EMAIL PROTECTED]:

  Thanks!
 
  My system works fine when i run tomcat5.0 in console...
  but when i run tomcat5.0 in service, this error occurs...
 
  org.apache.commons.dbcp.DbcpException: java.sql.SQLException: 
  General error
 
  I already declared my enviroment variables..
  i declared bootstrap.jar and tools.jar in classpath...
 
  anyway, here's my system info...
 
  OS: Windows 2000
  Database: MS Access 2000
  System DSN: EZX_DS
  Technology: Java Servlet/JSP MVC
  Tomcat Folder: D:\Tomcat_5.0
 
  Server.xml context...
  Context path=/tees docBase=tees debug=5 
  reloadable=true crossContext=true
Logger
className=org.apache.catalina.logger.FileLogger
 prefix=localhost_tees_log. suffix=.txt
 timestamp=true/
Resource name=jdbc/EZX_DS
 auth=Container
 type=javax.sql.DataSource/
ResourceParams name=jdbc/EZX_DS
parameter
namefactory/name
 
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
namemaxActive/name
value100/value
/parameter
parameter
namemaxIdle/name
value30/value
/parameter
parameter
namemaxWait/name
value1/value
/parameter
parameter
 namedriverClassName/name
 valuesun.jdbc.odbc.JdbcOdbcDriver/value
/parameter
parameter
nameurl/name
valuejdbc:odbc:EZX_DS/value
 /parameter
/ResourceParams
  /Context
 
  Web.xml contains...
  web-app
display-nameEAZIX TEES Tomcat to Access/display-name
resource-ref
descriptionDB Connection/description
res-ref-namejdbc/EZX_DS/res-ref-name
res-typejavax.sql.DataSource/res-type

RE: Tomcat - MySQL = No suitable driver ERROR

2004-06-29 Thread FRANCOIS Dufour
here maybee it could help you! im using mysql database whit Tomcat4.0 and 
the config look like this!
first
download mysql-connector-java-3.0.10-stable-bin read install instruction (or 
simply copy the file under
Tomcat_home/comon/lib)
the conection acess to database ! xml
DRIVERcom.mysql.jdbc.Driver/DRIVER
URLjdbc:mysql://localhost:port/database name/URL
LOGINroot/LOGIN
PASSWORD/PASSWORD the pasword is not neded if you use localhost

hope it help you friendly frank
[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc


From: Briggs, Patrick [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: Tomcat - MySQL = No suitable driver ERROR
Date: Tue, 29 Jun 2004 15:00:59 -0700
I'm trying to setup Tomcat 5.0.25 to talk to a MySQL database and I've had
no luck after several days of fighting with this thing.  I'm following 
along
the documentation at this URI:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-how
to.html

The example says to edit server.xml Add this in between the /Context tag
of the examples context and the /Host tag closing the localhost
definition.
So far I've not found any Context example in server.xml.  So that doesn't
appear to exist.  However, I have placed it before the /Host tag and have
also tried putting it in the GlobalNamingResources as well, but that
didn't make any difference for me.
I have placed the mysql-connector-java-3.0.14-production-bin.jar file in
/tomcat/common/lib as instructed.  I have also tried placing it 
WEB-INF/lib,
that didn't work.  Also tried putting it in tomcat/server/lib and that
didn't help either.
I have the impressiont that the datasource-examples-howto is somehow out of
date, hasn't been really tested much, or is just plain incorrect because
I've found numerous other hits on GOOGLE.COM about this problem, but nobody
really has much of a solution.  Seems to me that setting this up shouldn't
be this complicated.
The error message I keep getting all the time is:
javax.servlet.ServletException: Unable to get connection, DataSource
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null', cause: No suitable driver

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:758)
org.apache.jsp.test_jsp._jspService(test_jsp.java:81)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
98)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
Root Cause:
javax.servlet.jsp.JspException: Unable to get connection, DataSource
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null', cause: No suitable driver
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(Unk
nown Source)
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(Unknow
n Source)
org.apache.jsp.test_jsp._jspx_meth_sql_query_0(test_jsp.java:100)
org.apache.jsp.test_jsp._jspService(test_jsp.java:58)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
98)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
server.xml:
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --
!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.
 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --
Server port=8005 shutdown=SHUTDOWN debug=0
  !-- Comment these entries out to disable JMX MBeans support --
  !-- You may also configure custom components (e.g. Valves/Realms) by
   including your own mbean-descriptor file(s), and setting the
   descriptors attribute to point to a ';' seperated list of paths
   (in the ClassLoader sense) of files to add to the default list.
   e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener

RE: Please Help! Tomcat 5.0.25

2004-06-29 Thread Aris Javier
Still the same error occured after replacing my service.bat with your
service.bat... (declares tools.jar inside) =|

org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory, cause: General error

When i run startup.bat... it worked fine again... the following are the
logged
scripts in MS DOS when i run startup.bat...

Jun 30, 2004 11:59:11 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 30, 2004 11:59:11 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 7240 ms
Jun 30, 2004 11:59:12 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 30, 2004 11:59:12 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.25
Jun 30, 2004 11:59:12 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jun 30, 2004 11:59:17 AM org.apache.catalina.core.StandardHost
getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Jun 30, 2004 11:59:17 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:D:\Tomcat_5.0\conf\Catalina
\localhost\admin.xml
Jun 30, 2004 11:59:19 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=tru
e
Jun 30, 2004 11:59:19 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNul
l=true
Jun 30, 2004 11:59:21 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', retur
nNull=true
Jun 30, 2004 11:59:30 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:D:\Tomcat_5.0\conf\Catalina
\localhost\balancer.xml
Jun 30, 2004 11:59:31 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:D:\Tomcat_5.0\conf\Catalina
\localhost\manager.xml
Jun 30, 2004 11:59:31 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /jsp-examples from URL
file:D:\
Tomcat_5.0\webapps\jsp-examples
Jun 30, 2004 11:59:33 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path  from URL
file:D:\Tomcat_5.0\we
bapps\ROOT
Jun 30, 2004 11:59:34 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /servlets-examples from
URL fil
e:D:\Tomcat_5.0\webapps\servlets-examples
Jun 30, 2004 11:59:35 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /tomcat-docs from URL
file:D:\T
omcat_5.0\webapps\tomcat-docs
Jun 30, 2004 11:59:35 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /webdav from URL
file:D:\Tomcat
_5.0\webapps\webdav
Jun 30, 2004 11:59:36 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 30, 2004 11:59:38 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jun 30, 2004 11:59:38 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/280
config=D:\Tomcat_5.0\conf\jk2.properties
Jun 30, 2004 11:59:38 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 26689 ms


-Original Message-
From: Aris Javier 
Sent: Wednesday, June 30, 2004 11:36 AM
To: Tomcat Users List
Subject: RE: Please Help! Tomcat 5.0.25


Thanks for the updated service.bat Sir Jake!
I'll test it at once... 

Regarding my database... I'm just using MS Access 2000...
I don't know what driver to use or how to install or configure it that's
why I use sun.jdbc.odbc.JdbcOdbcDriver driver. 
What do you think is the proper driver for MS Access 2000?
and how to install it...?

Thanks!
I'll test your updated service.bat and update you of my progress...

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 10:52 AM
To: Tomcat Users List
Subject: Re: Please Help! Tomcat 5.0.25


At 09:37 AM 6/30/2004 +0800, you wrote:
Hello!

I installed Tomcat 5.0.25
i noticed that tomcat won't start unless i first make service install

command? under catalina_home/bin/service.bat

also, after running tomcat service... my previous error
(org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General)

was converted to

org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory, cause: General error

I see you are using the sun.jdbc.odbc.JdbcOdbcDriver driver.  This is a
bad 
idea.  What Database are you connecting to?  You should use the driver
made 
for that database.

However, I think the error is coming from not having tools.jar in the 
classpath.  You'll have to add this to service.bat.  You might also
notice 
that JSP's don't 

RE: Please Help! Tomcat 5.0.25

2004-06-29 Thread Jacob Kjome
I'm at a loss at this point.  I'm not sure if there is a specific JDBC 
driver for Access.  I would avoid using Access anyway, but I suppose it 
might not be by choice.  Hopefully someone else will know what is up with 
using the Sun driver and the Tomcat service.  BTW, you did do service 
remove and then service install, right?

Jake
At 12:16 PM 6/30/2004 +0800, you wrote:
Still the same error occured after replacing my service.bat with your
service.bat... (declares tools.jar inside) =|
org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory, cause: General error
When i run startup.bat... it worked fine again... the following are the
logged
scripts in MS DOS when i run startup.bat...
Jun 30, 2004 11:59:11 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 30, 2004 11:59:11 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 7240 ms
Jun 30, 2004 11:59:12 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 30, 2004 11:59:12 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.25
Jun 30, 2004 11:59:12 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jun 30, 2004 11:59:17 AM org.apache.catalina.core.StandardHost
getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Jun 30, 2004 11:59:17 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:D:\Tomcat_5.0\conf\Catalina
\localhost\admin.xml
Jun 30, 2004 11:59:19 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=tru
e
Jun 30, 2004 11:59:19 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNul
l=true
Jun 30, 2004 11:59:21 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', retur
nNull=true
Jun 30, 2004 11:59:30 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:D:\Tomcat_5.0\conf\Catalina
\localhost\balancer.xml
Jun 30, 2004 11:59:31 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:D:\Tomcat_5.0\conf\Catalina
\localhost\manager.xml
Jun 30, 2004 11:59:31 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /jsp-examples from URL
file:D:\
Tomcat_5.0\webapps\jsp-examples
Jun 30, 2004 11:59:33 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path  from URL
file:D:\Tomcat_5.0\we
bapps\ROOT
Jun 30, 2004 11:59:34 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /servlets-examples from
URL fil
e:D:\Tomcat_5.0\webapps\servlets-examples
Jun 30, 2004 11:59:35 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /tomcat-docs from URL
file:D:\T
omcat_5.0\webapps\tomcat-docs
Jun 30, 2004 11:59:35 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /webdav from URL
file:D:\Tomcat
_5.0\webapps\webdav
Jun 30, 2004 11:59:36 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 30, 2004 11:59:38 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jun 30, 2004 11:59:38 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/280
config=D:\Tomcat_5.0\conf\jk2.properties
Jun 30, 2004 11:59:38 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 26689 ms
-Original Message-
From: Aris Javier
Sent: Wednesday, June 30, 2004 11:36 AM
To: Tomcat Users List
Subject: RE: Please Help! Tomcat 5.0.25
Thanks for the updated service.bat Sir Jake!
I'll test it at once...
Regarding my database... I'm just using MS Access 2000...
I don't know what driver to use or how to install or configure it that's
why I use sun.jdbc.odbc.JdbcOdbcDriver driver.
What do you think is the proper driver for MS Access 2000?
and how to install it...?
Thanks!
I'll test your updated service.bat and update you of my progress...
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 10:52 AM
To: Tomcat Users List
Subject: Re: Please Help! Tomcat 5.0.25
At 09:37 AM 6/30/2004 +0800, you wrote:
Hello!

I installed Tomcat 5.0.25
i noticed that tomcat won't start unless i first make service install
command? under catalina_home/bin/service.bat

also, after running tomcat service... my previous error
(org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General)
was converted to

org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory, 

Is there's Any body using J2EE 1.4

2004-06-29 Thread praba karan
Hi Friends,

  Is there is any body using J2ee 1.4.

  If So, plz send me reply the deployment procedure
for CMP in EJB

Expecting urs reply
K.PRABAKARAN



__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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



Re: signatures on the downloads and build fails

2004-06-29 Thread Bill Barker

Joel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Okay, I checked the signatures on the downloads. No ultimate authority.
 Well, I don't particularly trust the ultimate authority concept anyway,
 so that's just fine.

 When ant builds tomcat, does the build.xml cause that the signatures of
all
 the dependency downloads are also checked?


Nope.

 -- 
 Joel [EMAIL PROTECTED]




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



Re: target release conflicts with default source?

2004-06-29 Thread Bill Barker

Joel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I tried google against jakarta.apache.org and marc.theaimsgroup.com and
 got no clues. Maybe I'm blind, maybe trying to build on MSWxp is lame?

 Here's the part I assume is most relevant.

 ---
 build-main:
  [echo] - Java-utils -
  [echo] -- puretls.present = ${puretls.present}
  [echo] -- jsse.present = true /usr/share/java/jsse-1.0.3/lib/jsse.jar
  [echo] -- commons-logging = true
  [echo] -- jmx = true /usr/share/java/mx4j-1.1.1/lib/mx4j-jmx.jar
  [echo] -- modeler = true
/usr/share/java/commons-modeler-1.1/commons-modele
 r.jar
  [echo] -- JDK14 = true
 [javac] Compiling 63 source files to
D:\Program_Files\jakarta\jakarta-tomcat
 -5.0.25-src\jakarta-tomcat-5\build\classes
 [javac] javac: target release 1.1 conflicts with default source
release 1.5

 BUILD FAILED
 

 I'm using Java 1.5 beta. Is that a no-no?


Tomcat (currently) doesn't build with 1.5.  You have to use 1.4 to build it.
However, it runs fine on 1.5 once built.

 -- 
 Joel [EMAIL PROTECTED]




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