RE: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-07 Thread Peter Crowther
 From: Sean Carnes [mailto:[EMAIL PROTECTED]
 The highest that we could set the heap was to 1200.

That feels a little low, even on Windows.  I wonder what's fragmenting the 
address space.  I can get to about 1500 on x86 Windows 2003 Server Standard 
before the VM fails to start.

 We have everything up and running now and we are load
 balancing which is how it should have been set up in the
 first place.  The
 memory usage of tomcat has dropped ~40% since we made that
 change.   It was
 normally using between 600M  800M now its down to about
 4-500M give or take.

That's good news.  Hope some of the worry is now fading!

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat seems to not startup, only when using tcnative

2007-12-07 Thread tony zuccarino
Hi,

I have Tomcat 6.0.14 running fine with mod_jk and Apache 2.2.
When I place tcnative library path in the java library path, then the
catalina.out log starts/stops at below:

Dec 7, 2007 4:40:06 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded Apache Tomcat Native library 1.1.10.
Dec 7, 2007 4:40:06 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
 ... nothing after this  I never get the Server startup in xxx ms.

If I again remove the tcnative libraries from the java lib path, tomcat
starts up just fine.

Any ideas? I compiled and built the latest APR for building the tcnative
library.

thanks for any help.

-tony


Re: Hundreds of Instances

2007-12-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Delian,

Delian Krustev wrote:
 Really? From your other message, you make it look like Java is taking
 something like 1GB of memory. Sure, the JVM adds some overhead to the
 heap size you configured, but it shouldn't be more than 5% or 10%...
 nothing like 200%.
 
 It could be more that 200% depending on the heap size and other parameters.

True. If you have a 5MB heap then maybe the JVM takes more than twice as
much space. :p

 Furthermore if the swapping is a problem you'd better limit the memory 
 available to the JVM. IMHO this could not be done via VM parameters.
 Use ulimit instead.

Use JVM parameters instead of ulimit.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHWV9s9CaO5/Lv0PARAks6AJ0SwEG2hUmE4og6/pCUHGQQrhMfAwCfUwN1
4nhreRkgngACvVSwYIeQ18Q=
=lvPN
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat ssl handshaking

2007-12-07 Thread Md. Jahid Shohel
Hi,

Can anyone tell me, how can I take control of SSL handshaking of https
from tomcat, so that I can maintain the protocol by myself? This is
really important for me.


Regards,


Jahid

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-07 Thread Stefano Martines
Hi Sean,
I have exactly the same problem. Tomcat5.exe is increasing memory allocation 
day by day.

you mentioned:
The  memory usage of tomcat has dropped ~40% since we made that change

Would you kindly provide with a document or reference on how you did it step by 
step?
How did you setup the load balancer for tomcat?

thank you 
Stefano


- Original Message 
From: Andrew Miehs [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, December 7, 2007 11:47:58 AM
Subject: Re: Tomcat 4.1.31 crashing with memory errors, crashing with no errors 
and shutting down cleanly without manual intervention

On 06/12/2007, at 10:34 PM, Sean Carnes wrote:
 The highest that we could set the heap was to 1200.  I tried higher  
 and it
 would not start.  It also seemed somewhat unstable above 1024 which  
 was the
 previous setting, slowness updating the client and other things.  The
 company that develops the enterprise s/w that uses tomcat said that  
 settings
 over 1024 were unstable so my feeling was confirmed by them.  We use   
 an snmp
 agent to our nms to get system statistics.  There was nothing out of   
 the
 ordinary, other than tomcat using about 1298M which is the most that   
 we have
 seen it use.  We have everything up and running now and we are load
 balancing which is how it should have been set up in the first  
 place.  The
 memory usage of tomcat has dropped ~40% since we made that change.
 It was
 normally using between 600M  800M now its down to about 4-500M give   
 or
 take.

Hi Sean

It seems as if it sort of works at the moment by the sounds of this...

Things you can try when you are board and have time:

- Does Windows JVM 1.42 have jstat ?
- Try upgrading to JVM 1.5 - (linux if not available on windows)
- run jstat every minute and you should be able to get a good look   
at
  users vs. memory to see if this is really the problem.

And definitely - upgrade to the 64 bit JVM as soon as possible - RAM  
is cheap

Andrew


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-07 Thread Andrew Miehs

On 06/12/2007, at 10:34 PM, Sean Carnes wrote:
The highest that we could set the heap was to 1200.  I tried higher  
and it
would not start.  It also seemed somewhat unstable above 1024 which  
was the

previous setting, slowness updating the client and other things.  The
company that develops the enterprise s/w that uses tomcat said that  
settings
over 1024 were unstable so my feeling was confirmed by them.  We use  
an snmp
agent to our nms to get system statistics.  There was nothing out of  
the
ordinary, other than tomcat using about 1298M which is the most that  
we have

seen it use.  We have everything up and running now and we are load
balancing which is how it should have been set up in the first  
place.  The
memory usage of tomcat has dropped ~40% since we made that change.
It was
normally using between 600M  800M now its down to about 4-500M give  
or

take.


Hi Sean

It seems as if it sort of works at the moment by the sounds of this...

Things you can try when you are board and have time:

- Does Windows JVM 1.42 have jstat ?
- Try upgrading to JVM 1.5 - (linux if not available on windows)
   - run jstat every minute and you should be able to get a good look  
at

 users vs. memory to see if this is really the problem.

And definitely - upgrade to the 64 bit JVM as soon as possible - RAM  
is cheap


Andrew

smime.p7s
Description: S/MIME cryptographic signature


Re: tomcat ssl handshaking

2007-12-07 Thread Md. Jahid Shohel
Hi,

I am not using virtual host. there is only one host in one machine.
but i want to take control so that server sends my own certificate
where i will point it. also i want to handle the handshaking so that
client's certificate will be varified from my own code, but not from
Certificate Authorities.


Regards,

Jahid

On Dec 7, 2007 5:22 PM, Martin Gainty [EMAIL PROTECTED] wrote:
 are you using virtual-hosts?
 if so are your virtual-hosts domain-based or address-based?

 M-
 - Original Message -
 From: Md. Jahid Shohel [EMAIL PROTECTED]
 To: users@tomcat.apache.org

 Sent: Friday, December 07, 2007 9:46 AM
 Subject: tomcat ssl handshaking


  Hi,
 
  Can anyone tell me, how can I take control of SSL handshaking of https
  from tomcat, so that I can maintain the protocol by myself? This is
  really important for me.
 
 
  Regards,
 
 
  Jahid
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-07 Thread Peter Crowther
 From: Stefano Martines [mailto:[EMAIL PROTECTED]
 I have exactly the same problem. Tomcat5.exe is increasing
 memory allocation day by day.

I think you may have a different problem.

Sean's problem was that increasing load on his server meant increasing memory 
use.  Do you *also* have increasing load, or do you have a steady load?  If you 
have a steady load, and memory usage is increasing, then you almost certainly 
have a memory leak in your web application.  You should find and fix the leak 
or leaks.

 How did you setup the load balancer for tomcat?

If your problem is a memory leak, load balancing will simply give you longer 
before you have to restart the application - and it will give you the 
opportunity to restart one Tomcat while still serving requests with the other.  
It is not a full solution in the case of memory leaks.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat ssl handshaking

2007-12-07 Thread Martin Gainty
are you using virtual-hosts?
if so are your virtual-hosts domain-based or address-based?

M-
- Original Message - 
From: Md. Jahid Shohel [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Friday, December 07, 2007 9:46 AM
Subject: tomcat ssl handshaking


 Hi,
 
 Can anyone tell me, how can I take control of SSL handshaking of https
 from tomcat, so that I can maintain the protocol by myself? This is
 really important for me.
 
 
 Regards,
 
 
 Jahid
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Request parameters incorrect

2007-12-07 Thread Len Popp
If this is a recurring problem, you can try logging the requests at
some other points and compare the logs to see where the parameters are
getting mixed up. The problem may be caused by a proxy between the
client and server, for example.
1. If the params are sent via GET requests, Tomcat's AccessLogValve
will log them before they reach your webapp.
2. Wireshark or similar can show you the requests coming into the server.
3. Log the requests sent by the client, using a browser plug-in or
Wireshark. (This is hard to do unless you can reproduce the problem
easily.)
-- 
Len


On Dec 5, 2007 4:02 PM, Bob Riaz [EMAIL PROTECTED] wrote:
 Thanks, Chuck.
 We had considered concurrency as an issue. The string in question is entered
 into a logging table - every request gets logged, and the log entry includes
 a timestamp. So we know there was no other request in process concurrent.
 Also, we're not using a Session object to store request-specific data - we
 use hidden fields to identify users, and pass the hidden fields form page to
 page. (We have our reasons for doing it this way!!)
 From the doPost(...) we simply pass the request object to a method that
 does:

 Enumeration e = request.getParameterNames();
 while(e.hasMoreElements()){
 String name = (String)e.nextElement();
 strngBldr.append(request.getParameter(name));
 }
 log(strngBldr); //enters the string into the db along with a timestamp

 So we're keeping things as simple as possible.

 Also, examining this particular string we find that it contains parameter
 name/values from a requqest that was logged hours before this one.
 Your thoughts would be deeply appreciated.

 Thanks!
 Bob


 -Original Message-
 From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 05, 2007 2:27 PM
 To: Tomcat Users List
 Subject: RE: Request parameters incorrect


  From: Bob Riaz [mailto:[EMAIL PROTECTED]
  Subject: Request parameters incorrect
 
  The parameters we find in this string come from 3
  different pages! We're baffled!!

 This is pretty much always a problem with incorrect scoping or
 synchronization in the webapp.  For example, code processing a Request
 stores request-specific data into the Session or Servlet object, then
 comes back later to find that a different concurrent request has
 overwritten it.  Or, two request processing threads are accessing a
 Session field via some method that isn't synchronized appropriately.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Fw: Processing of multipart/form-data request failed. Socket read failed

2007-12-07 Thread 宋杨
Hi all:

I use ajp between Apache2.2.6 and tomcat5.5.25, when I upload a file 
Exception occurred like below, anybody could tell me why? Thanks.
I think the key is  java.io.IOException: Socket read failed 
org.apache.coyote.ajp.AjpAprProcessor.read(AjpAprProcessor.java:1037)
Is it a Apr error when I install apache and tomcat? I'm not sure about 
it.


Regards
Derek


HTTP Status 500 -



type Exception report
message
description The server encountered an internal error () that prevented it 
from fulfilling this request.
exception
javax.servlet.ServletException: Processing of multipart/form-data request 
failed. Socket read failed
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:77)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)

root cause
javax.servlet.ServletException: Processing of multipart/form-data request 
failed. Socket read failed
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java:194)
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:405)
org.apache.struts.chain.commands.servlet.PopulateActionForm.populate(PopulateActionForm.java:50)
org.apache.struts.chain.commands.AbstractPopulateActionForm.execute(AbstractPopulateActionForm.java:60)
org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:77)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)

root cause
org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: 
Processing of multipart/form-data request failed. Socket read failed
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:359)
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:302)
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java:185)
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:405)
org.apache.struts.chain.commands.servlet.PopulateActionForm.populate(PopulateActionForm.java:50)
org.apache.struts.chain.commands.AbstractPopulateActionForm.execute(AbstractPopulateActionForm.java:60)
org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:77)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)

root cause
java.io.IOException: Socket read failed
org.apache.coyote.ajp.AjpAprProcessor.read(AjpAprProcessor.java:1037)
org.apache.coyote.ajp.AjpAprProcessor.readMessage(AjpAprProcessor.java:1158)
org.apache.coyote.ajp.AjpAprProcessor.receive(AjpAprProcessor.java:1090)
org.apache.coyote.ajp.AjpAprProcessor.refillReadBuffer(AjpAprProcessor.java:1129)
org.apache.coyote.ajp.AjpAprProcessor.access$000(AjpAprProcessor.java:59)
org.apache.coyote.ajp.AjpAprProcessor$SocketInputBuffer.doRead(AjpAprProcessor.java:1232)
org.apache.coyote.Request.doRead(Request.java:419)
org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:265)
org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:403)

Re: DataSource created but not initialized = Cannot create JDBC driver of class '' for connect URL 'null'

2007-12-07 Thread Thomas Okken

Hi Martin,

My MySQL server is alive and well; I can connect to it using the same 
parameters, using a JDBC-based database browser.
I didn't know about autoReconnect being deprecated; it still appears to 
be supported, but I see that the MySQL 5.0 reference manual recommends 
cranking up the server's wait_timeout instead. I'll do that and get rid 
of the autoReconnect; I don't want the server to ever drop idle 
connections anyway.
Unfortunately, this doesn't fix the problem of the DataSource not 
getting initialized... but thanks anyway! :-)


- Thomas

[EMAIL PROTECTED] wrote:

Hi Tom

here is my jdbc.properties which is used for petstore access to MySQL tables
#jdbc.driverClassName=org.hsqldb.jdbcDriver
jdbc.driverClassName=com.mysql.jdbc.Driver
#jdbc.url=jdbc:hsqldb:hsql://localhost:9001
jdbc.url=jdbc:mysql://localhost:3306/petclinic
jdbc.username=fu
jdbc.password=bar

your URL is quite similar and constructed correctly
url=jdbc:mysql://ss-1.research.att.com:3306/wmmdev?autoReconnect=true/

so I would check to see if there is a MySQL Listening on
ss1-.research.att.com e.g.
login to ss-1.research.att.com
netstat -a | grep 3306

the newer versions of mySQL (specifically 4 and 5) dont support deprecated
autoReconnect attribute
http://forums.mysql.com/read.php?39,32231,32231

HTH
Martin-
- Original Message -
Wrom: UZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPN
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, December 07, 2007 12:14 PM
Subject: DataSource created but not initialized = Cannot create JDBC driver
of class '' for connect URL 'null'


  

Hi all,

I'm trying to set up a DataSource to manage connections to a MySQL
database, but whenever I call getConnection(), I get this error:

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver


of class '' for connect URL 'null'
  

at


org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource
java:1150)
  

at


org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:880)
  

...
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at


org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource
java:1143)
  

...


The datasource is defined in a file called
$TOMCAT_HOME/conf/Catalina/localhost/smm.xml (the web app's context path
is /smm); it looks like this:

Context path=/smm docBase=smm debug=5 reloadable=true
crossContext=true
Resource name=jdbc/SmmDB auth=Container


type=javax.sql.DataSource
  

maxActive=100 maxIdle=30 maxWait=1
username=wmmdev password=wmmdev
driverClassName=com.mysql.jdbc.Driver

url=jdbc:mysql://ss-1.research.att.com:3306/wmmdev?autoReconnect=true/
/Context

The fact that the datasource gets created and bound in JNDI tells me
that smm.xml is getting read, but apparently it is not getting
initialized properly; getDriverClassName(), getUrl(), getUsername(), and
getPassword() all return null, and it looks like that's what causes the
exception in getConnection().
I've seen quite a few questions about this error, but in the archived
threads on this mailing list, I haven't found any solution to this
particular problem... One poster who had the same diagnosis mentioned
that the problem went away when he got rid of the Context element in
META-INF/context.xml, but in my case, that file does not exist; in fact,
the only Context elements I have are the one shown above, and the
standard one in $TOMCAT_HOME/conf/context.xml.
The MySQL JDBC driver is in $TOMCAT_HOME/lib, and when I do
Class.forName(com.mysql.jdbc.Driver) in a JSP, it succeeds, but I'm
not sure that's relevant because, first of all, DriverManager will only
use drivers that were loaded by the same class loader as itself, and
second, the DataSource can't use the driver anyway as long as its
driverClassName and url properties remain unset.

I'm using Tomcat 6.0.14, JDK 1.5.0_11, MySQL 5.0.45, and
mysql-connector-java-5.1.5-bin.jar.

I'm stumped... Any thoughts would be much appreciated!

 - Thomas

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


Tomcat 6.0.15 released?

2007-12-07 Thread Joe Bohn
Is Tomcat 6.0.15 released and is it stable?  I see discussions on the 
dev list and votes but I didn't find a conclusion.  Also, I don't see 
Tomcat 6.0.15 available for download on the web page.  However, I do see 
a tag for it in svn.


Thanks,
Joe Bohn

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DataSource created but not initialized = Cannot create JDBC driver of class '' for connect URL 'null'

2007-12-07 Thread Thomas Okken
The MySQL driver is in $TOMCAT_HOME/lib, but I don't think that is even 
the issue here -- the real problem is that the DataSource object is not 
initialized, so it doesn't even have the url, driver class name, etc.

This is what my log looks like when I restart Tomcat:

Dec 7, 2007 1:18:50 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance 
in production environments was not found on the java.library.path: 
/home/tokken/software/jdk1.5.0_11/bin:/home/tokken/apache-tomcat-6.0.14/bin

Dec 7, 2007 1:18:51 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-
Dec 7, 2007 1:18:51 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 729 ms
Dec 7, 2007 1:18:51 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 7, 2007 1:18:51 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
Dec 7, 2007 1:18:51 PM org.apache.catalina.startup.HostConfig 
deployDescriptor
WARNING: A docBase /home/tokken/apache-tomcat-6.0.14/webapps/smm inside 
the host appBase has been specified, and will be ignored

Dec 7, 2007 1:18:52 PM org.apache.struts.action.ActionServlet initChain
INFO: Loading chain catalog from 
jar:file:/home/tokken/apache-tomcat-6.0.14/webapps/smm/WEB-INF/lib/struts-core-1.3.8.jar!/org/apache/struts/chain/chain-config.xml

Dec 7, 2007 1:18:53 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive BBYPServer.war
Dec 7, 2007 1:18:53 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Dec 7, 2007 1:18:53 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Dec 7, 2007 1:18:53 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-
Dec 7, 2007 1:18:53 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Dec 7, 2007 1:18:54 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/43  config=null
Dec 7, 2007 1:18:54 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3005 ms

There is a warning about the docBase attribute (strange; I copied that 
text verbatim from the Tomcat FAQ); if I remove that attribute, the 
warning goes away, but the DataSource remains uninitialized.


- Thomas

David Smith wrote:
Where did you place your mysql driver jar file?  It has to be in 
tomcat's /lib directory to be visible to tomat's internal code for 
building the db pool and your webapp.  Also did you happen to look at 
the logs around when your webapp started for any relevant messages?


--David

Thomas Okken wrote:


Hi all,

I'm trying to set up a DataSource to manage connections to a MySQL 
database, but whenever I call getConnection(), I get this error:


org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC 
driver of class '' for connect URL 'null'
at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150) 

at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) 


...
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1143) 


...


The datasource is defined in a file called 
$TOMCAT_HOME/conf/Catalina/localhost/smm.xml (the web app's context 
path is /smm); it looks like this:


Context path=/smm docBase=smm debug=5 reloadable=true 
crossContext=true
   Resource name=jdbc/SmmDB auth=Container 
type=javax.sql.DataSource

   maxActive=100 maxIdle=30 maxWait=1
   username=wmmdev password=wmmdev 
driverClassName=com.mysql.jdbc.Driver
   
url=jdbc:mysql://ss-1.research.att.com:3306/wmmdev?autoReconnect=true/ 


/Context

The fact that the datasource gets created and bound in JNDI tells me 
that smm.xml is getting read, but apparently it is not getting 
initialized properly; getDriverClassName(), getUrl(), getUsername(), 
and getPassword() all return null, and it looks like that's what 
causes the exception in getConnection().
I've seen quite a few questions about this error, but in the archived 
threads on this mailing list, I haven't found any solution to this 
particular problem... One poster who had the same diagnosis mentioned 
that the problem went away when he got rid of the Context element in 
META-INF/context.xml, but in my case, that file does not exist; in 
fact, the only Context elements I have are the one shown above, and 
the standard one in $TOMCAT_HOME/conf/context.xml.
The MySQL JDBC driver is in $TOMCAT_HOME/lib, and when I do 
Class.forName(com.mysql.jdbc.Driver) in a JSP, it succeeds, but I'm 
not sure that's relevant because, first of all, DriverManager will 
only use drivers that were 

Re: DataSource created but not initialized = Cannot create JDBC driver of class '' for connect URL 'null'

2007-12-07 Thread mgainty
Hi Tom

here is my jdbc.properties which is used for petstore access to MySQL tables
#jdbc.driverClassName=org.hsqldb.jdbcDriver
jdbc.driverClassName=com.mysql.jdbc.Driver
#jdbc.url=jdbc:hsqldb:hsql://localhost:9001
jdbc.url=jdbc:mysql://localhost:3306/petclinic
jdbc.username=fu
jdbc.password=bar

your URL is quite similar and constructed correctly
url=jdbc:mysql://ss-1.research.att.com:3306/wmmdev?autoReconnect=true/

so I would check to see if there is a MySQL Listening on
ss1-.research.att.com e.g.
login to ss-1.research.att.com
netstat -a | grep 3306

the newer versions of mySQL (specifically 4 and 5) dont support deprecated
autoReconnect attribute
http://forums.mysql.com/read.php?39,32231,32231

HTH
Martin-
- Original Message -
Wrom: UZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPN
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, December 07, 2007 12:14 PM
Subject: DataSource created but not initialized = Cannot create JDBC driver
of class '' for connect URL 'null'


 Hi all,

 I'm trying to set up a DataSource to manage connections to a MySQL
 database, but whenever I call getConnection(), I get this error:

 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver
of class '' for connect URL 'null'
 at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource
java:1150)
 at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:880)
 ...
 Caused by: java.sql.SQLException: No suitable driver
 at java.sql.DriverManager.getDriver(DriverManager.java:243)
 at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource
java:1143)
 ...


 The datasource is defined in a file called
 $TOMCAT_HOME/conf/Catalina/localhost/smm.xml (the web app's context path
 is /smm); it looks like this:

 Context path=/smm docBase=smm debug=5 reloadable=true
 crossContext=true
 Resource name=jdbc/SmmDB auth=Container
type=javax.sql.DataSource
 maxActive=100 maxIdle=30 maxWait=1
 username=wmmdev password=wmmdev
 driverClassName=com.mysql.jdbc.Driver

 url=jdbc:mysql://ss-1.research.att.com:3306/wmmdev?autoReconnect=true/
 /Context

 The fact that the datasource gets created and bound in JNDI tells me
 that smm.xml is getting read, but apparently it is not getting
 initialized properly; getDriverClassName(), getUrl(), getUsername(), and
 getPassword() all return null, and it looks like that's what causes the
 exception in getConnection().
 I've seen quite a few questions about this error, but in the archived
 threads on this mailing list, I haven't found any solution to this
 particular problem... One poster who had the same diagnosis mentioned
 that the problem went away when he got rid of the Context element in
 META-INF/context.xml, but in my case, that file does not exist; in fact,
 the only Context elements I have are the one shown above, and the
 standard one in $TOMCAT_HOME/conf/context.xml.
 The MySQL JDBC driver is in $TOMCAT_HOME/lib, and when I do
 Class.forName(com.mysql.jdbc.Driver) in a JSP, it succeeds, but I'm
 not sure that's relevant because, first of all, DriverManager will only
 use drivers that were loaded by the same class loader as itself, and
 second, the DataSource can't use the driver anyway as long as its
 driverClassName and url properties remain unset.

 I'm using Tomcat 6.0.14, JDK 1.5.0_11, MySQL 5.0.45, and
 mysql-connector-java-5.1.5-bin.jar.

 I'm stumped... Any thoughts would be much appreciated!

  - Thomas

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat seems to not startup, only when using tcnative

2007-12-07 Thread ewsinc

fyi, I built this tcnative using the latest APR src libraries 1.2.12, if that
helps.


ewsinc wrote:
 
 Hi,
 
 I have Tomcat 6.0.14 running fine with mod_jk and Apache 2.2.
 When I place tcnative library path in the java library path, then the
 catalina.out log starts/stops at below:
 
 Dec 7, 2007 4:40:06 AM org.apache.catalina.core.AprLifecycleListener init
 INFO: Loaded Apache Tomcat Native library 1.1.10.
 Dec 7, 2007 4:40:06 AM org.apache.catalina.core.AprLifecycleListener init
 INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
 [false], random [true].
  ... nothing after this  I never get the Server startup in xxx ms.
 
 If I again remove the tcnative libraries from the java lib path, tomcat
 starts up just fine.
 
 Any ideas? I compiled and built the latest APR for building the tcnative
 library.
 
 thanks for any help.
 
 -tony
 
 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-seems-to-not-startup%2C-only-when-using-tcnative-tf4961526.html#a14217280
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DataSource created but not initialized = Cannot create JDBC driver of class '' for connect URL 'null'

2007-12-07 Thread David Smith
Where did you place your mysql driver jar file?  It has to be in 
tomcat's /lib directory to be visible to tomat's internal code for 
building the db pool and your webapp.  Also did you happen to look at 
the logs around when your webapp started for any relevant messages?


--David

Thomas Okken wrote:


Hi all,

I'm trying to set up a DataSource to manage connections to a MySQL 
database, but whenever I call getConnection(), I get this error:


org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC 
driver of class '' for connect URL 'null'
at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150) 

at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) 


...
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1143) 


...


The datasource is defined in a file called 
$TOMCAT_HOME/conf/Catalina/localhost/smm.xml (the web app's context 
path is /smm); it looks like this:


Context path=/smm docBase=smm debug=5 reloadable=true 
crossContext=true
   Resource name=jdbc/SmmDB auth=Container 
type=javax.sql.DataSource

   maxActive=100 maxIdle=30 maxWait=1
   username=wmmdev password=wmmdev 
driverClassName=com.mysql.jdbc.Driver
   
url=jdbc:mysql://ss-1.research.att.com:3306/wmmdev?autoReconnect=true/

/Context

The fact that the datasource gets created and bound in JNDI tells me 
that smm.xml is getting read, but apparently it is not getting 
initialized properly; getDriverClassName(), getUrl(), getUsername(), 
and getPassword() all return null, and it looks like that's what 
causes the exception in getConnection().
I've seen quite a few questions about this error, but in the archived 
threads on this mailing list, I haven't found any solution to this 
particular problem... One poster who had the same diagnosis mentioned 
that the problem went away when he got rid of the Context element in 
META-INF/context.xml, but in my case, that file does not exist; in 
fact, the only Context elements I have are the one shown above, and 
the standard one in $TOMCAT_HOME/conf/context.xml.
The MySQL JDBC driver is in $TOMCAT_HOME/lib, and when I do 
Class.forName(com.mysql.jdbc.Driver) in a JSP, it succeeds, but I'm 
not sure that's relevant because, first of all, DriverManager will 
only use drivers that were loaded by the same class loader as itself, 
and second, the DataSource can't use the driver anyway as long as its 
driverClassName and url properties remain unset.


I'm using Tomcat 6.0.14, JDK 1.5.0_11, MySQL 5.0.45, and 
mysql-connector-java-5.1.5-bin.jar.


I'm stumped... Any thoughts would be much appreciated!

- Thomas

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DataSource created but not initialized = Cannot create JDBC driver of class '' for connect URL 'null'

2007-12-07 Thread David Smith

Ok...

The other statistical common thread in this type of issue is a typo or 
missing config somewhere along the line in one of these files:


context.xml  -- you've provided that and named the resource jdbc/SmmDB

web.xml -- do you have this in your WEB-INF/web.xml:
resource-ref
   res-ref-namejdbc/SmmDB/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
   /resource-ref

your java source code -- did you try to fech the DataSource using the 
path 'java:/comp/env/jdbc/SmmDB'?


Case is important all the way through this as well.  FWIW the Resource 
element you posted below looks fine -- good case, valid attributes, 
etc., ... 

Two things you might want to consider once your db pool starts working 
is removing autoReconnect=true from your database url and adding 
validationQuery=select 1.  Autoreconnect doesn't re-establish a 
connection until a request has failed -- makes it virtually useless in a 
db pool.  validationQuery=select 1 as a Resource attribute causes the 
database pool to test the connection with a simple query on borrowing.


--David

Thomas Okken wrote:

The MySQL driver is in $TOMCAT_HOME/lib, but I don't think that is 
even the issue here -- the real problem is that the DataSource object 
is not initialized, so it doesn't even have the url, driver class 
name, etc.

This is what my log looks like when I restart Tomcat:

Dec 7, 2007 1:18:50 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the 
java.library.path: 
/home/tokken/software/jdk1.5.0_11/bin:/home/tokken/apache-tomcat-6.0.14/bin 


Dec 7, 2007 1:18:51 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-
Dec 7, 2007 1:18:51 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 729 ms
Dec 7, 2007 1:18:51 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 7, 2007 1:18:51 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
Dec 7, 2007 1:18:51 PM org.apache.catalina.startup.HostConfig 
deployDescriptor
WARNING: A docBase /home/tokken/apache-tomcat-6.0.14/webapps/smm 
inside the host appBase has been specified, and will be ignored

Dec 7, 2007 1:18:52 PM org.apache.struts.action.ActionServlet initChain
INFO: Loading chain catalog from 
jar:file:/home/tokken/apache-tomcat-6.0.14/webapps/smm/WEB-INF/lib/struts-core-1.3.8.jar!/org/apache/struts/chain/chain-config.xml 


Dec 7, 2007 1:18:53 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive BBYPServer.war
Dec 7, 2007 1:18:53 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Dec 7, 2007 1:18:53 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Dec 7, 2007 1:18:53 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-
Dec 7, 2007 1:18:53 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Dec 7, 2007 1:18:54 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/43  config=null
Dec 7, 2007 1:18:54 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3005 ms

There is a warning about the docBase attribute (strange; I copied that 
text verbatim from the Tomcat FAQ); if I remove that attribute, the 
warning goes away, but the DataSource remains uninitialized.


- Thomas

David Smith wrote:

Where did you place your mysql driver jar file?  It has to be in 
tomcat's /lib directory to be visible to tomat's internal code for 
building the db pool and your webapp.  Also did you happen to look at 
the logs around when your webapp started for any relevant messages?


--David

Thomas Okken wrote:


Hi all,

I'm trying to set up a DataSource to manage connections to a MySQL 
database, but whenever I call getConnection(), I get this error:


org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC 
driver of class '' for connect URL 'null'
at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150) 

at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) 


...
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1143) 


...


The datasource is defined in a file called 
$TOMCAT_HOME/conf/Catalina/localhost/smm.xml (the web app's context 
path is /smm); it looks like this:


Context path=/smm docBase=smm debug=5 reloadable=true 
crossContext=true
   Resource name=jdbc/SmmDB auth=Container 
type=javax.sql.DataSource

   maxActive=100 maxIdle=30 maxWait=1
   username=wmmdev password=wmmdev 

RE: DataSource created but not initialized = Cannot create JDBCdriver of class '' for connect URL 'null'

2007-12-07 Thread Caldarale, Charles R
 From: Thomas Okken [mailto:[EMAIL PROTECTED] 
 Subject: Re: DataSource created but not initialized = Cannot 
 create JDBCdriver of class '' for connect URL 'null'
 
 There is a warning about the docBase attribute (strange; I 
 copied that text verbatim from the Tomcat FAQ); if I remove
 that attribute, the warning goes away, but the DataSource
 remains uninitialized.

The FAQ is out of date for 5.5 and later levels.

You should also remove the path attribute, since it's illegal when the
Context element is not in server.xml (and such elements should never
be in server.xml).

The docBase attribute is illegal unless the app is located somewhere
outside of the Host's appBase directory.

However, neither of the above is causing your DB connection problem.

Have you checked permissions on the mysql-connector-java-5.1.5-bin.jar
to make sure Tomcat can read it?

Does that jar (or any MySQL jar) also exist in the webapp's WEB-INF/lib
directory?  If so, remove it; it shouldn't be in two places at once.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Configuring Tomcat on Fedora Core 8

2007-12-07 Thread Caldarale, Charles R
 From: linuxChique [mailto:[EMAIL PROTECTED] 
 Subject: RE: Configuring Tomcat on Fedora Core 8
 
 But what I mean is, how do I know what the root directory 
 is for web serving purposes?

(Be careful of the term root.  Tomcat requires that the default webapp
name for a given Host be named ROOT, so using the term in other
situations will undoubtedly lead to confusion.  You might want to refer
to it as the webapp's base directory.)

When a Tomcat webapp is installed in some location other than under the
Host appBase directory (default value of webapps), the docBase
attribute of the webapp's Context element must point to the location
in which the webapp is installed.  You can often identify the proper
directory by the presence of the WEB-INF directory immediately under the
webapp location.  In JIRA, this is conveniently (albeit somewhat
confusingly) named webapp.  Your docBase attribute should be something
like:
  /var/www/html/???/atlassian-jira-standard-3.11/webapp
where ??? is whatever directory you expanded the tar file into and
assuming you used the standard path names from the download.

The path attribute should be removed from the Context element, since
the URI path is derived from the name of the .xml file in which the
Context is located.

 Is it related to the .jar file that maven created when I
 compiled the jsp code?

I have no idea, since I don't know what script you were using to compile
JSPs.  These are usually compiled as needed on demand, but can be
pre-compiled to avoid the one-time delay.  You certainly don't need to
if you're just getting started with this.

 Is it the directory default.jsp is in?

The JIRA download does include a default.jsp in its webapp directory; if
that's the one you're referring to, then yes.  There are three other
default.jsp files in various subdirectories of webapp, so if you're
referring to any of those, no.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: discrepancy for tomcat connector file names for win32

2007-12-07 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Subject: discrepancy for tomcat connector file names for win32
 
 Is there a discrepancy at this URL 

http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk
-1.2.25/
 for downloading the binaries for win32.

Yes, the files are misnamed.  Rainer posted this earlier today in
another thread:

Use the 2.0.29 file, because that was obviously simply named wrong when

putting on the download server and is in fact for httpd 2.0.*5*9 :)
(and is fine for your 2.0.61).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



discrepancy for tomcat connector file names for win32

2007-12-07 Thread [EMAIL PROTECTED]
Hi,

Is there a discrepancy at this URL 

http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.25/
for downloading the binaries for win32. Please, see below the name of the files 
and the description at the bottom.

Thx.
Lalit
 mod_jk-apache-2.0.29.so   07-Aug-2007 10:33  192K  
shared object file
 mod_jk-apache-2.0.29.so.asc   07-Aug-2007 10:54  185   
OpenPGP ASCII armored signature
 mod_jk-apache-2.0.29.so.md5   07-Aug-2007 10:54   58   MD5 
checksum file
 mod_jk-apache-2.0.29.so.sha1  07-Aug-2007 10:54   66   
SHA1 checksum file
 mod_jk-apache-2.0.29.so.sha25607-Aug-2007 10:54   90   
SHA256 checksum file

Apache Tomcat JK 1.2.25 for WIN32


Here you'll find the binaries for IIS, Apache and Sun ONE Web Servers.





mod_jk-apache-1.3.37.so is for Apache 1.3, and works with Apache 1.3.37 and 
later.
Rename to mod_jk.so before putting it in your 
Apache2/modules directory.

mod_jk-apache-2.0.59.so is for Apache 2.0, and works with Apache 2.0.59 and 
later.
Rename to mod_jk.so before putting it in your 
Apache2/modules directory.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: need help with Tomcat5.5.25 and Apache2.0.61 modJK configuration

2007-12-07 Thread Martin Gainty
change modJk=E:\apache\2.0.61\Apache2\modules\mod_jk.dll
to
modJk=E:\apache\2.0.61\Apache2\modules\mod_jk.dll

 follow rainier's advice and read up on mod_jk

Martin-
- Original Message -
From: Rainer Jung [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, December 07, 2007 5:51 PM
Subject: Re: need help with Tomcat5.5.25 and Apache2.0.61 modJK
configuration


 Sangeeta Verma wrote:
   Hi,
  I have installed Apache 2.0.61 and Tomcat 5.5.25 on windows 2003
  machine.Ifound mod_jk-
  apache-2.0.29.so and mod_jk_1.2.6_2.0.50.dll both on web and downloaded.

 The 1.2.6 version is *very* old, we are at version 1.2.25 of mod_jk.
 Use the 2.0.29 file, because that was obviously simply named wrong when
 putting on the download server and is in fact for httpd 2.0.*5*9 :)
 (and is fine for your 2.0.61).

  Copied the dll file to apache_home/module directory. When i edit the
  server.xml file for adding entry under the
  Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.jk.config.ApacheConfig
  modJk=E:\apache\2.0.61\Apache2\modules\mod_jk.dll /
  Tomcat just refuses to startup with following error:
 
  Dec 7, 2007 11:09:27 AM org.apache.tomcat.util.digester.Digester
fatalError
 
  SEVERE: Parse Fatal Error at line 37 column 63: Open quote is expected
for
  attribute modJk associated with an element type Listener.
 
  org.xml.sax.SAXParseException: Open quote is expected for attribute
modJk
  associated with an element type Listener.

 OK, so why not adding an open quote to the mod_Jk attribute you put into
 the server.xml? Look at the config line above, the open quote is missing.

  at
 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseEx
ception(Unknown
  Source)
  What wrong am I doing?
  Unless i can get Tomcat started, the automatic generation of mod-conf
file
  will not take place and apache cant also start with a include directive
in
  it looking for the mod conf file.
 
  Is there a place where I can get complete steps to configure connector
with
  the above versions. I checked so many websites and they have similar
steps
  but some variations depending on OS. I didnt find a windows config guide
for
  Tomcat 5.5.25 to work with mod_jk.

 mod_jk configuration on windows works the same as for other platforms.

 Look at the docs for Apache mod_jk config under

 http://tomcat.apache.org/connectors-doc/

 and then also at the workers.properties doc.

 The above addition to server.xml is only necessary, if you want Tomcat
 to produce a basic mod_jk configuration for you. You can also write one
 from scratch, without any changes to server.xml.

  Please help.Thanks a lot.
 
  Sangeeta

 Regards,

 Rainer

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Configuring Tomcat on Fedora Core 8

2007-12-07 Thread linuxChique

It was jira-server.xml before I fixed it, but I saw an error message in the
log about /var/www/html/jira/jira-server not existing, and that filename was
the only instance of the phrase jira-server anywhere in the configuration,
so I changed the docBase from /var/www/html/jira to /var/www/html/ and the
filename to jira.xml and that error went away, so now it is jira.xml.

Inside jira.xml (the default one that came with Jira), is this line:
Context path=/jira docBase=/var/www/html/ debug=0  That's what I
meant that I had changed. It was already in the default jira.xml that came
with Jira.

But what I mean is, how do I know what the root directory is for web
serving purposes? Is it related to the .jar file that maven created when I
compiled the jsp code? Is it the directory default.jsp is in?

Thanks,  Erin



Caldarale, Charles R wrote:
 
 
 You were referring to jira-server.xml, not jira.xml; which is it?
 
 Normally, you do not specify either path or docBase attributes; it's the
 location of the webapp that determines the URI used to access it.
 

-- 
View this message in context: 
http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14223699
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Value can't be changed in bean extended from AbstractControllerof Spring

2007-12-07 Thread Caldarale, Charles R
 From: kkus [mailto:[EMAIL PROTECTED] 
 Subject: Re: Value can't be changed in bean extended from 
 AbstractControllerof Spring
 
 But Java can handle hot-swapping for normal Java application
 automatically, so still can't understand why Tomcant can't work
 this way.

Your assumption is incorrect.  Java doesn't handle hot-swapping
automatically; the application (or the environment it's running in) must
make use of the redefineClasses() method of the
java.lang.instrument.Instrumentation interface.  JBoss has code to do
this (part of its AOP implementation), but Tomcat itself does not.
JVMTI agents available with Eclipse, NetBeans, etc., may be able to do
it, but I can't say I'm familiar with them.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Value can't be changed in bean extended from AbstractController of Spring

2007-12-07 Thread kkus

For JBoss project it has automatic publishing checked, I guess that is why
it can hot-swapping properly without restart/redeployment. Thank you for
your pointing!

For Tomcat project I start Tomcat from its bootstrap class, so it will be
treated as a normal Java application rather than a server application. So
there is no automatic publish for Tomcat (maybe that is reason I can't see
changed value?). But Java can handle hot-swapping for normal Java
application automatically, so still can't understand why Tomcant can't work
this way.


Konstantin Kolinko wrote:
 
 Do you have Serve modules without publishing option in Eclipse
 configuration for the server turned on or off?
 
 (Double click the server on the servers view to open the configuration
 dialog).
 
 
 2007/12/8, kkus [EMAIL PROTECTED]:

 In my another project (JBoss+Spring+Hibernate), I see my changes take
 effect
 immediately in Eclipse IDE Debug without restart/redeployment.
...

 This project is Tomcat+Spring+Hibernate.

 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Value-can%27t-be-changed-in-bean-extended-from-AbstractController-of-Spring-tf4944277.html#a14221831
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Configuring Tomcat on Fedora Core 8

2007-12-07 Thread Caldarale, Charles R
 From: linuxChique [mailto:[EMAIL PROTECTED] 
 Subject: RE: Configuring Tomcat on Fedora Core 8
 
 I guess the thing is that I don't know what a 
 PersistentManager is or if I need it.

Again, to quote from the doc:

In addition to the usual operations of creating and deleting sessions,
a PersistentManager has the capability to swap active (but idle)
sessions out to a persistent storage mechanism, as well as to save all
sessions across a normal restart of Tomcat.

http://tomcat.apache.org/tomcat-5.5-doc/config/manager.html

 Should I use it?

If you don't know what it's for, that would be a good indication that
you shouldn't use it.  Just remove the Manager element and let the
default manager do its thing.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Configuring Tomcat on Fedora Core 8

2007-12-07 Thread linuxChique

I guess the thing is that I don't know what a PersistentManager is or if I
need it. Or what file this configuration is stored in. Should I use it?

Erin


Caldarale, Charles R wrote:
 
 To quote from the doc:
 
 In order to successfully use a PersistentManager, you must nest inside
 it a Store element, as described below.
 
 http://tomcat.apache.org/tomcat-5.5-doc/config/manager.html
 
  - Chuck
 

-- 
View this message in context: 
http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14221809
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Value can't be changed in bean extended from AbstractController of Spring

2007-12-07 Thread Konstantin Kolinko
Do you have Serve modules without publishing option in Eclipse
configuration for the server turned on or off?

(Double click the server on the servers view to open the configuration dialog).


2007/12/8, kkus [EMAIL PROTECTED]:

 In my another project (JBoss+Spring+Hibernate), I see my changes take effect
 immediately in Eclipse IDE Debug without restart/redeployment.
...

 This project is Tomcat+Spring+Hibernate.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Configuring Tomcat on Fedora Core 8

2007-12-07 Thread Caldarale, Charles R
 From: linuxChique [mailto:[EMAIL PROTECTED] 
 Subject: RE: Configuring Tomcat on Fedora Core 8
 
 Now I'm getting this, No Store configured, persistence
 disabled,

To quote from the doc:

In order to successfully use a PersistentManager, you must nest inside
it a Store element, as described below.

http://tomcat.apache.org/tomcat-5.5-doc/config/manager.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Value can't be changed in bean extended from AbstractController of Spring

2007-12-07 Thread kkus

In my another project (JBoss+Spring+Hibernate), I see my changes take effect
immediately in Eclipse IDE Debug without restart/redeployment. I think
JBoss' ClassLoader is working properly for swapping new changes. All these
changes occur in classes extended from SimpleFormController. I use
hot-swapping daily on that project but don't study how it works.

This project is Tomcat+Spring+Hibernate, and changes can be reflected in
class extended from SimpleFormController, not from AbstractController. So I
doubt there is something wrong on ClassLoader for AbstractController but no
clue how to find it out.


Konstantin Kolinko wrote:
 
 In this case should I expect to see ... due to Java hot-swapping when
 breakpoint is reached?
 
 Obviously, if you do not see it working, it probably does not.
 
 You should familiarize yourselves with code hot-swapping technology,
 its implications, and how it works upon tomcat, web application
 deployment, and how your IDE interacts with tomcat while debugging.
 
 Have you searched for any successful examples of using hot-swapping
 while debugging in the IDE that you are using?
 
 I am not yet familiar with that new hot-swapping technology, and would
 like to know your findings:
 
 As far as I have observed, Eclipse IDE restarts web application when I
 do changes in its java classes. Sometimes that restart is really fast.
 May be it is what you observed with your controller?
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Value-can%27t-be-changed-in-bean-extended-from-AbstractController-of-Spring-tf4944277.html#a14221448
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: rare occurrence of an Exception in Filter.doFilter()

2007-12-07 Thread Konstantin Kolinko
Also, you may want to search Bugzilla (http://issues.apache.org/) or
user/dev list archives for those strings,

Cannot create a session after the response has been committed,
Cannot forward after response has been committed

E.g., I have found http://issues.apache.org/bugzilla/show_bug.cgi?id=41772



2007/12/7, Tim Funk [EMAIL PROTECTED]:
 http://wiki.apache.org/tomcat/FAQ/Miscellaneous

 Look for Why do I get java.lang.IllegalStateException ?

 The filter is not the problem - its  something farther down the stack
 trace.

 -Tim

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Still trying to log using org.apache.juli.FileHandler ...

2007-12-07 Thread Caldarale, Charles R
 From: Albretch Mueller [mailto:[EMAIL PROTECTED] 
 Subject: Re: Still trying to log using org.apache.juli.FileHandler ...
 
  OK, I think, this time I did follow the FM ;-) at:

But perhaps not all of it...

  but when I declared a log4j.properties file inside of a webapp
  no log file is created nor do I see any log messages anywhere

Did you miss this part of the doc?

You would place a similar log4j.properties file in your web
application's WEB-INF/classes folder, and log4j1.2.8.jar into
WEB-INF/lib. Then specify your package level logging. This is a basic
setup of log4j which does *not* require Commons-Logging

Note the requirement to put a separate log4j*.jar into WEB-INF/lib; I
see no mention of that in your message.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Still trying to log using org.apache.juli.FileHandler ...

2007-12-07 Thread Martin Gainty
Albretch-

try changing to anything other
than -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
and TC abends

leave logging.manager as juli ClassLoaderLogManager and these exceptions
occur
Handler error java.lang.IllegalArgumentException: Bad level DEBUG

even when 1catalina.org.apache.juli.FileHandler.level = FINE is defined in
%CATALINA_HOME%\conf\logging.properties
(and grep on DEBUG finds nothing in %CATALINA_HOME%)

is this a misconfig???

Vielen Danke
Martin-
- Original Message -
From: Albretch Mueller [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, December 07, 2007 4:33 PM
Subject: Re: Still trying to log using org.apache.juli.FileHandler ...


 I was curious as to the configuration that was being fed by the JVM
 when you go:
 ~
  catalian run
 ~
  that was it:
 ~
 $JRE_HOME\bin\java -verbose:class
 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
 -Djava.util.logging.config.file=$CATALINA_HOME\conf\logging.properties
 -Djava.endorsed.dirs=$CATALINA_HOME\endorsed
 -classpath $JRE_HOME\lib\tools.jar;$CATALINA_HOME\bin\bootstrap.jar
 -Dcatalina.base=$CATALINA_HOME
 -Dcatalina.home=$CATALINA_HOME
 -Djava.io.tmpdir=$CATALINA_HOME\temp
 org.apache.catalina.startup.Bootstrap  start
 ~

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Configuring Tomcat on Fedora Core 8

2007-12-07 Thread linuxChique

Line 20 is a closing Resource tag. Now I see that it shouldn't be there,
because the tag is already closed with a slash. So that parsing problem is
fixed!  Now I'm getting this, No Store configured, persistence disabled,
and still a blank page in the browser. Thanks for your help, I really
appreciate it.

INFO: Initializing Coyote HTTP/1.1 on http-8090
Dec 7, 2007 3:38:44 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 739 ms
Dec 7, 2007 3:38:44 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 7, 2007 3:38:44 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.25
Dec 7, 2007 3:38:44 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 7, 2007 3:38:44 PM org.apache.catalina.session.PersistentManagerBase
start
SEVERE: No Store configured, persistence disabled
Dec 7, 2007 3:38:45 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8090
Dec 7, 2007 3:38:45 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Dec 7, 2007 3:38:45 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/32  config=null
Dec 7, 2007 3:38:45 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Dec 7, 2007 3:38:45 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1264 ms




Caldarale, Charles R wrote:
 
 
 Since the e-mail unfortunately reformatted the original, what exactly is
 on line 20?
 
 Any possibility of embedded control characters or other strangeness that
 might throw off a parser?  (Look at the file with a hex editor.)
 
 Is the one you posted the only jira-server.xml, or might another be
 lurking somewhere?
 
 

-- 
View this message in context: 
http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14221437
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Still trying to log using org.apache.juli.FileHandler ...

2007-12-07 Thread Albretch Mueller
 I was curious as to the configuration that was being fed by the JVM
when you go:
~
 catalian run
~
 that was it:
~
$JRE_HOME\bin\java -verbose:class
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=$CATALINA_HOME\conf\logging.properties
-Djava.endorsed.dirs=$CATALINA_HOME\endorsed
-classpath $JRE_HOME\lib\tools.jar;$CATALINA_HOME\bin\bootstrap.jar
-Dcatalina.base=$CATALINA_HOME
-Dcatalina.home=$CATALINA_HOME
-Djava.io.tmpdir=$CATALINA_HOME\temp
org.apache.catalina.startup.Bootstrap  start
~

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Configuring Tomcat on Fedora Core 8

2007-12-07 Thread Caldarale, Charles R
 From: linuxChique [mailto:[EMAIL PROTECTED] 
 Subject: Configuring Tomcat on Fedora Core 8
 
 Dec 7, 2007 2:07:12 PM 
 org.apache.tomcat.util.digester.Digester fatalError
 SEVERE: Parse Fatal Error at line 20 column 4: The element 
 type Context
 must be terminated by the matching end-tag /Context.

The XML appears o.k. from just a human scan of it, but there might be
something subtle in there.  You might also try running it through an XML
syntax checker just to be sure.

Since the e-mail unfortunately reformatted the original, what exactly is
on line 20?

Any possibility of embedded control characters or other strangeness that
might throw off a parser?  (Look at the file with a hex editor.)

Is the one you posted the only jira-server.xml, or might another be
lurking somewhere?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Configuring Tomcat on Fedora Core 8

2007-12-07 Thread Caldarale, Charles R
 From: Martin Gainty [mailto:[EMAIL PROTECTED] 
 Subject: Re: Configuring Tomcat on Fedora Core 8
 
 display it here so everyone can see it

Everyone already has - look in the original message.  If you've lost
that, look in the archives.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Value can't be changed in bean extended from AbstractController of Spring

2007-12-07 Thread Konstantin Kolinko
 In this case should I expect to see ... due to Java hot-swapping when
 breakpoint is reached?

Obviously, if you do not see it working, it probably does not.

You should familiarize yourselves with code hot-swapping technology,
its implications, and how it works upon tomcat, web application
deployment, and how your IDE interacts with tomcat while debugging.

Have you searched for any successful examples of using hot-swapping
while debugging in the IDE that you are using?

I am not yet familiar with that new hot-swapping technology, and would
like to know your findings:

As far as I have observed, Eclipse IDE restarts web application when I
do changes in its java classes. Sometimes that restart is really fast.
May be it is what you observed with your controller?

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Configuring Tomcat on Fedora Core 8

2007-12-07 Thread linuxChique

I'm sorry, I don't understand.  It's in the original post... how is that not
here?

http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-p14219699.html

Is there a chance that you can't see it because it's all XML code?


mgainty wrote:
 
 display it here so everyone can see it
 
 M-
 

-- 
View this message in context: 
http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14220581
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Configuring Tomcat on Fedora Core 8

2007-12-07 Thread Martin Gainty
display it here so everyone can see it

M-

- Original Message -
From: linuxChique [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Friday, December 07, 2007 3:42 PM
Subject: Re: Configuring Tomcat on Fedora Core 8



 Hi, I've already included the contents of that file in my original post.


 mgainty wrote:
 
  display contents of jira-server.xml
 
  M-
 

 --
 View this message in context:
http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14
220135
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Configuring Tomcat on Fedora Core 8

2007-12-07 Thread Caldarale, Charles R
 From: Martin Gainty [mailto:[EMAIL PROTECTED] 
 Subject: Re: Configuring Tomcat on Fedora Core 8
 
 display contents of jira-server.xml

The OP already did.  Read the whole message.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Configuring Tomcat on Fedora Core 8

2007-12-07 Thread Martin Gainty
display contents of jira-server.xml

M-
- Original Message -
From: linuxChique [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Friday, December 07, 2007 3:13 PM
Subject: Configuring Tomcat on Fedora Core 8



 I'm trying to configure Tomcat, and it's not working. I must be doing
 something wrong, and I need your help.  I'm using it to run Jira. I start
 Tomcat, but the page is blank. Here's my catalina log:


 --

 Dec 7, 2007 2:07:12 PM org.apache.catalina.core.AprLifecycleListener
 lifecycleEvent
 INFO: The Apache Tomcat Native library which allows optimal performance in
 production environments was not found on the java.library.path:

/usr/java/jdk1.6.0_10/jre/lib/i386/client:/usr/java/jdk1.6.0_10/jre/lib/i386
:/usr/java/jdk1.6.0_10/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr
/lib
 Dec 7, 2007 2:07:12 PM org.apache.coyote.http11.Http11BaseProtocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8090
 Dec 7, 2007 2:07:12 PM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 663 ms
 Dec 7, 2007 2:07:12 PM org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Dec 7, 2007 2:07:12 PM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/5.5.25
 Dec 7, 2007 2:07:12 PM org.apache.catalina.core.StandardHost start
 INFO: XML validation disabled
 Dec 7, 2007 2:07:12 PM org.apache.tomcat.util.digester.Digester fatalError
 SEVERE: Parse Fatal Error at line 20 column 4: The element type Context
 must be terminated by the matching end-tag /Context.
 org.xml.sax.SAXParseException: The element type Context must be
terminated
 by the matching end-tag /Context.
 at
 org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
 Source)
 at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
 Source)
 at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
 Source)
 at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
 Source)
 at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
 Source)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
 Source)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown
 Source)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
 Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
 Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
 at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
 Source)
 at
 org.apache.tomcat.util.digester.Digester.parse(Digester.java:1546)
 at

org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:583)
 at

org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553
)
 at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
 at
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
 at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
 at

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:120)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
 at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:448)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
 Dec 7, 2007 2:07:12 PM org.apache.catalina.startup.HostConfig
 deployDescriptor
 SEVERE: Error deploying configuration descriptor jira-server.xml
 org.xml.sax.SAXParseException: The element type Context must be
terminated
 by the matching end-tag /Context.
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
 at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
 Source)
 

Configuring Tomcat on Fedora Core 8

2007-12-07 Thread linuxChique

I'm trying to configure Tomcat, and it's not working. I must be doing
something wrong, and I need your help.  I'm using it to run Jira. I start
Tomcat, but the page is blank. Here's my catalina log:


--
Dec 7, 2007 2:07:12 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:
/usr/java/jdk1.6.0_10/jre/lib/i386/client:/usr/java/jdk1.6.0_10/jre/lib/i386:/usr/java/jdk1.6.0_10/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
Dec 7, 2007 2:07:12 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8090
Dec 7, 2007 2:07:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 663 ms
Dec 7, 2007 2:07:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 7, 2007 2:07:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.25
Dec 7, 2007 2:07:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 7, 2007 2:07:12 PM org.apache.tomcat.util.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 20 column 4: The element type Context
must be terminated by the matching end-tag /Context.
org.xml.sax.SAXParseException: The element type Context must be terminated
by the matching end-tag /Context.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1546)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:583)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Dec 7, 2007 2:07:12 PM org.apache.catalina.startup.HostConfig
deployDescriptor
SEVERE: Error deploying configuration descriptor jira-server.xml
org.xml.sax.SAXParseException: The element type Context must be terminated
by the matching end-tag /Context.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1546)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:583)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at

Re: DataSource created but not initialized = Cannot create JDBC driver of class '' for connect URL 'null'

2007-12-07 Thread Thomas Okken
You're right, it was a typo! I called the datasource SmmDS everywhere, 
except in the Context element, where I mistakenly called it SmmDB.
I think it's pretty weird that the JNDI lookup succeeded anyway. That 
sounds like a Tomcat bug; it should throw a NameNotFoundException, not 
return an uninitialized object.
Anyway, it's working perfectly now. My sincere thanks to everyone who 
responded!


- Thomas

David Smith wrote:

Ok...

The other statistical common thread in this type of issue is a typo or 
missing config somewhere along the line in one of these files:


context.xml  -- you've provided that and named the resource jdbc/SmmDB

web.xml -- do you have this in your WEB-INF/web.xml:
resource-ref
   res-ref-namejdbc/SmmDB/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
   /resource-ref

your java source code -- did you try to fech the DataSource using the 
path 'java:/comp/env/jdbc/SmmDB'?


Case is important all the way through this as well.  FWIW the Resource 
element you posted below looks fine -- good case, valid attributes, 
etc., ...
Two things you might want to consider once your db pool starts working 
is removing autoReconnect=true from your database url and adding 
validationQuery=select 1.  Autoreconnect doesn't re-establish a 
connection until a request has failed -- makes it virtually useless in 
a db pool.  validationQuery=select 1 as a Resource attribute causes 
the database pool to test the connection with a simple query on 
borrowing.


--David

Thomas Okken wrote:

The MySQL driver is in $TOMCAT_HOME/lib, but I don't think that is 
even the issue here -- the real problem is that the DataSource object 
is not initialized, so it doesn't even have the url, driver class 
name, etc.

This is what my log looks like when I restart Tomcat:

Dec 7, 2007 1:18:50 PM org.apache.catalina.core.AprLifecycleListener 
init
INFO: The Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the 
java.library.path: 
/home/tokken/software/jdk1.5.0_11/bin:/home/tokken/apache-tomcat-6.0.14/bin 


Dec 7, 2007 1:18:51 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-
Dec 7, 2007 1:18:51 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 729 ms
Dec 7, 2007 1:18:51 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 7, 2007 1:18:51 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
Dec 7, 2007 1:18:51 PM org.apache.catalina.startup.HostConfig 
deployDescriptor
WARNING: A docBase /home/tokken/apache-tomcat-6.0.14/webapps/smm 
inside the host appBase has been specified, and will be ignored

Dec 7, 2007 1:18:52 PM org.apache.struts.action.ActionServlet initChain
INFO: Loading chain catalog from 
jar:file:/home/tokken/apache-tomcat-6.0.14/webapps/smm/WEB-INF/lib/struts-core-1.3.8.jar!/org/apache/struts/chain/chain-config.xml 


Dec 7, 2007 1:18:53 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive BBYPServer.war
Dec 7, 2007 1:18:53 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Dec 7, 2007 1:18:53 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Dec 7, 2007 1:18:53 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-
Dec 7, 2007 1:18:53 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Dec 7, 2007 1:18:54 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/43  config=null
Dec 7, 2007 1:18:54 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3005 ms

There is a warning about the docBase attribute (strange; I copied 
that text verbatim from the Tomcat FAQ); if I remove that attribute, 
the warning goes away, but the DataSource remains uninitialized.


- Thomas

David Smith wrote:

Where did you place your mysql driver jar file?  It has to be in 
tomcat's /lib directory to be visible to tomat's internal code for 
building the db pool and your webapp.  Also did you happen to look 
at the logs around when your webapp started for any relevant messages?


--David

Thomas Okken wrote:


Hi all,

I'm trying to set up a DataSource to manage connections to a MySQL 
database, but whenever I call getConnection(), I get this error:


org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC 
driver of class '' for connect URL 'null'
at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150) 

at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) 


...
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at 

need help with Tomcat5.5.25 and Apache2.0.61 modJK configuration

2007-12-07 Thread Sangeeta Verma
 Hi,
I have installed Apache 2.0.61 and Tomcat 5.5.25 on windows 2003
machine.Ifound mod_jk-
apache-2.0.29.so and mod_jk_1.2.6_2.0.50.dll both on web and downloaded.
Copied the dll file to apache_home/module directory. When i edit the
server.xml file for adding entry under the
Server port=8005 shutdown=SHUTDOWN
Listener className=org.apache.jk.config.ApacheConfig
modJk=E:\apache\2.0.61\Apache2\modules\mod_jk.dll /
Tomcat just refuses to startup with following error:

Dec 7, 2007 11:09:27 AM org.apache.tomcat.util.digester.Digester fatalError

SEVERE: Parse Fatal Error at line 37 column 63: Open quote is expected for
attribute modJk associated with an element type Listener.

org.xml.sax.SAXParseException: Open quote is expected for attribute modJk
associated with an element type Listener.

at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
What wrong am I doing?
Unless i can get Tomcat started, the automatic generation of mod-conf file
will not take place and apache cant also start with a include directive in
it looking for the mod conf file.

Is there a place where I can get complete steps to configure connector with
the above versions. I checked so many websites and they have similar steps
but some variations depending on OS. I didnt find a windows config guide for
Tomcat 5.5.25 to work with mod_jk.

Please help.Thanks a lot.

Sangeeta


Re: Tomcat 6.0.15 released?

2007-12-07 Thread Joe Bohn



Mark Thomas wrote:

Joe Bohn wrote:

Is Tomcat 6.0.15 released and is it stable?  I see discussions on the
dev list and votes but I didn't find a conclusion.  Also, I don't see
Tomcat 6.0.15 available for download on the web page.  However, I do see
a tag for it in svn.


There were issues with 6.0.15 so it never completed the release process.

Mark


Thanks for the clarification Mark.

Joe

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Still trying to log using org.apache.juli.FileHandler ...

2007-12-07 Thread Albretch Mueller
 while searching I also notice that as John Lennon said in imagine
I am not the only one ;-)
~
 Why have they made so hard just going System.out.println( ...) in
your servlets code?
~
 lbrtchx

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Still trying to log using org.apache.juli.FileHandler ...

2007-12-07 Thread Albretch Mueller
 OK, I think, this time I did follow the FM ;-) at:
~
 http://tomcat.apache.org/tomcat-6.0-doc/logging.html
~
 1._ I did create a log4j.properties file and placed it in $CATALINA_HOME/lib
~
C:\cmllpz\prjx\java\GWB\tc\tc-6.0.14\libdir *.properties
 Volume in drive C is IBM_PRELOAD
 Volume Serial Number is 509C-397F

 Directory of C:\cmllpz\prjx\java\GWB\tc\tc-6.0.14\lib

12/07/2007  10:27 AM   380 log4j.properties
   1 File(s)380 bytes
   0 Dir(s)  24,878,350,336 bytes free

C:\cmllpz\prjx\java\GWB\tc\tc-6.0.14\libtype log4j.properties
log4j.rootLogger=debug, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=C:/cmllpz/prjx/java/GWB/logs/tomcat.log
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
log4j.logger.org.apache.catalina=DEBUG, R
~
 2. v1.2 or later is in $CATALINA_HOME/lib
~
C:\cmllpz\prjx\java\GWB\tc\tc-6.0.14\libdir log4j*.jar
 Volume in drive C is IBM_PRELOAD
 Volume Serial Number is 509C-397F

 Directory of C:\cmllpz\prjx\java\GWB\tc\tc-6.0.14\lib

08/24/2007  11:29 PM   391,834 log4j-1.2.15.jar
   1 File(s)391,834 bytes
   0 Dir(s)  24,878,350,336 bytes free
~
 3. I did build extras.xml ant build script from the Tomcat source bundle, and
~
 3.1 replaced(/renamed) $CATALINA_HOME/bin/tomcat-juli.jar with 
 output/extras/tomcat-juli.jar
~
C:\cmllpz\prjx\java\GWB\tc\tc-6.0.14\bindir tomcat-juli*.*
 Volume in drive C is IBM_PRELOAD
 Volume Serial Number is 509C-397F

 Directory of C:\cmllpz\prjx\java\GWB\tc\tc-6.0.14\bin

12/07/2007  09:41 AM43,527 tomcat-juli.jar
07/20/2007  03:20 AM17,508 tomcat-juli.old.jar~
   2 File(s) 61,035 bytes
   0 Dir(s)  24,878,284,800 bytes free
~
 3.2 placed output/extras/tomcat-juli-adapters.jar in $CATALINA_HOME/lib
~
C:\cmllpz\prjx\java\GWB\tc\tc-6.0.14\libdir tomcat-juli-adapters*.*
 Volume in drive C is IBM_PRELOAD
 Volume Serial Number is 509C-397F

 Directory of C:\cmllpz\prjx\java\GWB\tc\tc-6.0.14\lib

12/07/2007  09:41 AM20,913 tomcat-juli-adapters.jar
   1 File(s) 20,913 bytes
   0 Dir(s)  24,878,284,800 bytes free
~
 then when I started tomcat and saw that
C:/cmllpz/prjx/java/GWB/logs/tomcat.log was created as indicated in
~
 log4j.appender.R.File=C:/cmllpz/prjx/java/GWB/logs/tomcat.log
~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~
 but when I declared a log4j.properties file inside of a webapp
~
C:\cmllpz\prjx\java\GWB\webappsDir_tc-6.0.14\webapps02\fileupload\WEB-INF\classesdir
*.properties
 Volume in drive C is IBM_PRELOAD
 Volume Serial Number is 509C-397F

 Directory of 
C:\cmllpz\prjx\java\GWB\webappsDir_tc-6.0.14\webapps02\fileupload\WEB-INF\classes

12/07/2007  11:03 AM   394 log4j.properties
   1 File(s)394 bytes
   0 Dir(s)  24,872,628,224 bytes free

~
C:\cmllpz\prjx\java\GWB\webappsDir_tc-6.0.14\webapps02\fileupload\WEB-INF\classestype
log4j.properties
log4j.rootLogger=debug, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=C:/cmllpz/prjx/java/GWB/logs/tc-6.0.14_fileupload.log
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
log4j.logger.org.apache.catalina=DEBUG, R

~
 no log file is created nor do I see any log messages anywhere
~
 I also tentatively tried to no avail and then discarded diferent things like:
~
 * placing commons-logging-1.1.jar from the source compilation in
$CATALINA_HOME/lib, because I found a little unclear that they said
comcompile the commons-logging from source using ant, but they
didn't specified what to do with it
~
 * replicating catalian source folder/conf/logging.properties in
$CATALINA_HOME/conf/logging.properties
~
 In the book Pro Apache Tomcat 6 from Mathew Moodie he also talks
about juli-type logging.properties files while using log4j, but when I
keep $CATALINA_HOME/conf/logging.properties, I get errors like:
~
Could not load Logmanager org.apache.juli.ClassLoaderLogManager
java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.util.logging.LogManager$1.run(LogManager.java:166)
at java.security.AccessController.doPrivileged(Native Method)
at 

Re: rare occurrence of an Exception in Filter.doFilter()

2007-12-07 Thread Tim Funk

http://wiki.apache.org/tomcat/FAQ/Miscellaneous

Look for Why do I get java.lang.IllegalStateException ?

The filter is not the problem - its  something farther down the stack 
trace.


-Tim

Christian Aschoff wrote:
i have written a filter for my webapplication that checks the called url 
for special patterns and sends an error 404 when matching the pattern. 
This works most of the time great. But every ca. 4000 requests, an 
exception occurs in the filter. I looked around with google  co., but 
found only errors of this type appearing every request - or not. A 
second filter works great.


I wonder if this could be a problem with threads?

Any help (direct or by giving a hint of how to debug this problem) would 
be appreciated.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



rare occurrence of an Exception in Filter.doFilter()

2007-12-07 Thread Christian Aschoff

Hello tomcat-users,

i have written a filter for my webapplication that checks the called  
url for special patterns and sends an error 404 when matching the  
pattern. This works most of the time great. But every ca. 4000  
requests, an exception occurs in the filter. I looked around with  
google  co., but found only errors of this type appearing every  
request - or not. A second filter works great.


I wonder if this could be a problem with threads?

Any help (direct or by giving a hint of how to debug this problem)  
would be appreciated.


Regards,
Christian Aschoff

A normal url is: http://www.retrobibliothek.de/retrobib/index.html   
(everything is fine)
http://www.retrobibliothek.de/retrobib/index.jsp  shows 404 not  
found  (as it should)
http://www.polonius.bibliothek.uni-ulm.de/retrobib/index.html  shows  
404 not found  ([same host] - as it should)


The used tomcat is 5.5.12, Java is
java version 1.4.2_16
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_16-b05)
Java HotSpot(TM) Client VM (build 1.4.2_16-b05, mixed mode),
running on Linux (2.6.13-15.18-smp #1 SMP Tue Oct 2 17:36:20 UTC 2007  
x86_64 x86_64 x86_64 GNU/Linux).


The filter-configuration is:

[...]
filter
filter-nameSecurityFilter/filter-name
filter-classde.retrobib.filter.SecurityFilter/filter-class
/filter
filter
filter-nameURLFilter/filter-name
filter-classde.retrobib.filter.URLFilter/filter-class
/filter

filter-mapping
filter-nameURLFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping

filter-mapping
filter-nameSecurityFilter/filter-name
url-pattern/secure/*/url-pattern
/filter-mapping
filter-mapping
filter-nameSecurityFilter/filter-name
url-pattern*.zipped/url-pattern
/filter-mapping
[...]

The filter-code is:

[...]
public void doFilter(ServletRequest request, ServletResponse  
response, FilterChain chain)

throws IOException, ServletException {
doBeforeProcessing(request, response);

HttpServletRequest req = (HttpServletRequest) request;

try {
if (req.getRequestURL().toString().toLowerCase().indexOf 
(.jsp) != -1) {
logger.warn(Direkter Aufruf von *.jsp, sende 404  
[ip=+req.getRemoteAddr()+; url=+req.getRequestURL()+,  
query=+req.getQueryString()+]);

((HttpServletResponse) response).sendError(404);
} else if (req.getRequestURL().toString().toLowerCase 
().indexOf(uni-ulm) != -1) {
logger.info(uni-ulm in der URL, sende 404  
[ip=+req.getRemoteAddr()+; url=+req.getRequestURL()+,  
query=+req.getQueryString()+]);

((HttpServletResponse) response).sendError(404);
} else {
chain.doFilter(request, response);
}
} catch(Throwable ex) {
logger.debug([ip=+req.getRemoteAddr()+;  
url=+req.getRequestURL()+, query=+req.getQueryString()+]);

logger.fatal(Exception im URLFilter!, ex);
// Mail Error  Request...
String mailContent = StackTrace: 
\n+DebugUtil.getStackTrace(ex)+\nRequest: 
\n+DebugUtil.getRequestAsString(req);

try {
new Mailer().send(Fehler in der retro-bib:  
+ex.getMessage(), mailContent, MiscConstants.adminMail, null);

} catch (Exception badEx) {
logger.fatal(Exception im URLFilter  
(eMailversand)!, ex);

}
}

doAfterProcessing(request, response);
}
[...]

Other methods are basically empty.

The exceptions occurs in the line 'chain.doFilter(request,  
response);', examples are:


StackTrace:
java.lang.IllegalStateException: Cannot create a session after the  
response has been committed
	at org.apache.catalina.connector.Request.doGetSession(Request.java: 
2206)

at org.apache.catalina.connector.Request.getSession(Request.java:2024)
	at org.apache.catalina.connector.RequestFacade.getSession 
(RequestFacade.java:831)
	at org.apache.catalina.connector.RequestFacade.getSession 
(RequestFacade.java:842)
	at org.apache.struts.action.RequestProcessor.processLocale 
(RequestProcessor.java:621)
	at org.apache.struts.action.RequestProcessor.process 
(RequestProcessor.java:177)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java: 
1196)

at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter 
(ApplicationFilterChain.java:173)

*   at de.retrobib.filter.URLFilter.doFilter(URLFilter.java:100)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
(ApplicationFilterChain.java:202)
	at 

Re: need help with Tomcat5.5.25 and Apache2.0.61 modJK configuration

2007-12-07 Thread Rainer Jung

Sangeeta Verma wrote:

 Hi,
I have installed Apache 2.0.61 and Tomcat 5.5.25 on windows 2003
machine.Ifound mod_jk-
apache-2.0.29.so and mod_jk_1.2.6_2.0.50.dll both on web and downloaded.


The 1.2.6 version is *very* old, we are at version 1.2.25 of mod_jk.
Use the 2.0.29 file, because that was obviously simply named wrong when 
putting on the download server and is in fact for httpd 2.0.*5*9 :)

(and is fine for your 2.0.61).


Copied the dll file to apache_home/module directory. When i edit the
server.xml file for adding entry under the
Server port=8005 shutdown=SHUTDOWN
Listener className=org.apache.jk.config.ApacheConfig
modJk=E:\apache\2.0.61\Apache2\modules\mod_jk.dll /
Tomcat just refuses to startup with following error:

Dec 7, 2007 11:09:27 AM org.apache.tomcat.util.digester.Digester fatalError

SEVERE: Parse Fatal Error at line 37 column 63: Open quote is expected for
attribute modJk associated with an element type Listener.

org.xml.sax.SAXParseException: Open quote is expected for attribute modJk
associated with an element type Listener.


OK, so why not adding an open quote to the mod_Jk attribute you put into 
the server.xml? Look at the config line above, the open quote is missing.



at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
What wrong am I doing?
Unless i can get Tomcat started, the automatic generation of mod-conf file
will not take place and apache cant also start with a include directive in
it looking for the mod conf file.

Is there a place where I can get complete steps to configure connector with
the above versions. I checked so many websites and they have similar steps
but some variations depending on OS. I didnt find a windows config guide for
Tomcat 5.5.25 to work with mod_jk.


mod_jk configuration on windows works the same as for other platforms.

Look at the docs for Apache mod_jk config under

http://tomcat.apache.org/connectors-doc/

and then also at the workers.properties doc.

The above addition to server.xml is only necessary, if you want Tomcat 
to produce a basic mod_jk configuration for you. You can also write one 
from scratch, without any changes to server.xml.



Please help.Thanks a lot.

Sangeeta


Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Configuring Tomcat on Fedora Core 8

2007-12-07 Thread Caldarale, Charles R
 From: linuxChique [mailto:[EMAIL PROTECTED] 
 Subject: RE: Configuring Tomcat on Fedora Core 8
 
 So how do I know by looking at the directory structure of
 Jira what my docBase and path should be in jira.xml?

You were referring to jira-server.xml, not jira.xml; which is it?

Normally, you do not specify either path or docBase attributes; it's the
location of the webapp that determines the URI used to access it.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Configuring Tomcat on Fedora Core 8

2007-12-07 Thread linuxChique

Great, thanks. Well, it looks like Tomcat is working properly now, but I'm
getting a 404 error, so I must have it configured to look in the wrong
directory, right?  So how do I know by looking at the directory structure of
Jira what my docBase and path should be in jira.xml?
-- 
View this message in context: 
http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14222167
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Configuring Tomcat on Fedora Core 8

2007-12-07 Thread linuxChique

Hi, I've already included the contents of that file in my original post.


mgainty wrote:
 
 display contents of jira-server.xml
 
 M-
 

-- 
View this message in context: 
http://www.nabble.com/Configuring-Tomcat-on-Fedora-Core-8-tf4964192.html#a14220135
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DataSource created but not initialized = Cannot create JDBCdriver of class '' for connect URL 'null'

2007-12-07 Thread Thomas Okken
OK, I removed the path and docBase attributes from the Context element; 
as expected, the warning in the log goes away but the DataSource problem 
does not.
The mysql-connector-java-5.1.5-bin.jar file is world-readable; it is in 
$TOMCAT_HOME/lib and nowhere else; I did have another copy in 
$TOMCAT_HOME/common/lib per a suggestion in a different thread, but that 
made no difference so I removed it.


- Thomas

Caldarale, Charles R wrote:
From: Thomas Okken [mailto:[EMAIL PROTECTED] 
Subject: Re: DataSource created but not initialized = Cannot 
create JDBCdriver of class '' for connect URL 'null'


There is a warning about the docBase attribute (strange; I 
copied that text verbatim from the Tomcat FAQ); if I remove

that attribute, the warning goes away, but the DataSource
remains uninitialized.



The FAQ is out of date for 5.5 and later levels.

You should also remove the path attribute, since it's illegal when the
Context element is not in server.xml (and such elements should never
be in server.xml).

The docBase attribute is illegal unless the app is located somewhere
outside of the Host's appBase directory.

However, neither of the above is causing your DB connection problem.

Have you checked permissions on the mysql-connector-java-5.1.5-bin.jar
to make sure Tomcat can read it?

Does that jar (or any MySQL jar) also exist in the webapp's WEB-INF/lib
directory?  If so, remove it; it shouldn't be in two places at once.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


DataSource created but not initialized = Cannot create JDBC driver of class '' for connect URL 'null'

2007-12-07 Thread Thomas Okken

Hi all,

I'm trying to set up a DataSource to manage connections to a MySQL 
database, but whenever I call getConnection(), I get this error:


org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of 
class '' for connect URL 'null'
at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150)
at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
...
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1143)
...


The datasource is defined in a file called 
$TOMCAT_HOME/conf/Catalina/localhost/smm.xml (the web app's context path 
is /smm); it looks like this:


Context path=/smm docBase=smm debug=5 reloadable=true 
crossContext=true

   Resource name=jdbc/SmmDB auth=Container type=javax.sql.DataSource
   maxActive=100 maxIdle=30 maxWait=1
   username=wmmdev password=wmmdev 
driverClassName=com.mysql.jdbc.Driver
   
url=jdbc:mysql://ss-1.research.att.com:3306/wmmdev?autoReconnect=true/

/Context

The fact that the datasource gets created and bound in JNDI tells me 
that smm.xml is getting read, but apparently it is not getting 
initialized properly; getDriverClassName(), getUrl(), getUsername(), and 
getPassword() all return null, and it looks like that's what causes the 
exception in getConnection().
I've seen quite a few questions about this error, but in the archived 
threads on this mailing list, I haven't found any solution to this 
particular problem... One poster who had the same diagnosis mentioned 
that the problem went away when he got rid of the Context element in 
META-INF/context.xml, but in my case, that file does not exist; in fact, 
the only Context elements I have are the one shown above, and the 
standard one in $TOMCAT_HOME/conf/context.xml.
The MySQL JDBC driver is in $TOMCAT_HOME/lib, and when I do 
Class.forName(com.mysql.jdbc.Driver) in a JSP, it succeeds, but I'm 
not sure that's relevant because, first of all, DriverManager will only 
use drivers that were loaded by the same class loader as itself, and 
second, the DataSource can't use the driver anyway as long as its 
driverClassName and url properties remain unset.


I'm using Tomcat 6.0.14, JDK 1.5.0_11, MySQL 5.0.45, and 
mysql-connector-java-5.1.5-bin.jar.


I'm stumped... Any thoughts would be much appreciated!

- Thomas

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6.0.15 released?

2007-12-07 Thread Mark Thomas
Joe Bohn wrote:
 Is Tomcat 6.0.15 released and is it stable?  I see discussions on the
 dev list and votes but I didn't find a conclusion.  Also, I don't see
 Tomcat 6.0.15 available for download on the web page.  However, I do see
 a tag for it in svn.

There were issues with 6.0.15 so it never completed the release process.

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]