Re: DOCTYPE wrong yet still works, why?

2004-06-30 Thread Bill Barker
Tomcat has it's own copy of the DTD, and will ignore the URL like and use
its own.

Woodchuck [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 i just discovered that my DOCTYPE points to an old link:

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

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

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

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

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



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




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



RE: Please Help! Tomcat 5.0.25

2004-06-30 Thread Aris Javier
yes i did... =|
after service install...
tomcat5 service will be created...
then i go to administrative tools - services to run tomcat service...
this is the right method?

one more thing... why is it that when i run startup.bat, a lot of
stuffs have been loaded up...? as compared to when i use tomcat as
service?

i think that startup.bat is loading something that service don't load?

 
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 12:54 PM
To: Tomcat Users List
Subject: RE: Please Help! Tomcat 5.0.25


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

Jake

At 12:16 PM 6/30/2004 +0800, you wrote:
Still the same error occured after replacing my service.bat with your 
service.bat... (declares tools.jar inside) =|

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

When i run startup.bat... it worked fine again... the following are the

logged scripts in MS DOS when i run startup.bat...

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


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


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

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

is the proper driver for MS Access 2000? and how to install it...?

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


Errors in precompiled JSPs

2004-06-30 Thread simon colston
I have set up an ant task to precompile JSPs and everything works fine 
*if* there are no errors in the JSP.

The ant task is:
target name=jspc depends=prepare description=Compile JSP files
 taskdef classname=org.apache.jasper.JspC name=jasper2 
  classpath id=jspc.classpath
   pathelement location=${java.home}/../lib/tools.jar/
fileset dir=${extlib.home}
 include name=**/*.jar/
/fileset
   /classpath
  /taskdef
  jasper2 verbose=4
 validateXml=false
 uriroot=${build.home}
 webXmlFragment=${web.home}/WEB-INF/generated_web.xml
 outputDir=${build.home}/WEB-INF/src /
  loadfile
 srcfile=${web.home}/WEB-INF/generated_web.xml  
property=gen.web.xml
   filterchain 
tokenfilter delimoutput=\r\n/
   /filterchain
  /loadfile
  delete file=${web.home}/WEB-INF/generated_web.xml/delete
  delete file=${build.home}/WEB-INF/web.xml/delete
  copy tofile=${build.home}/WEB-INF/web.xml
 file=${web.home}/WEB-INF/web.xml
   filterset
filter value=${gen.web.xml} token=jspServlets/
   /filterset
  /copy
/target

If I introduce an error into the JSP page, such as:
c:url var=url/
img src=${url}/
(where c: is the JSTL common taglib) the ant task ends without errors 
and I get a NullPointerException when I test the page on the server.

How can I get my jspc ant task to show errors in the JSP?
Using Tomcat 5.0.25.
Cheers,
Simon
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


environment values in server.xml

2004-06-30 Thread Josh G
Where should I put environment values in server.xml? And more importantly, how on 
earth do I retrieve them programmatically? The documentation on this sort of stuff is 
either unbelievably inadequate or incredibly hard to find.

Or c) I'm a dickhead. Either way, I could really use a hand. I'm just trying to get a 
string out of server.xml - not web.xml.

Cheers,
-Josh

--

Max Power, he's the man who's name you'd love to touch! But you mustn't touch!
His name sounds good in your ear, but when you say it, you mustn't fear!
'Cause his name can be said by anyone! 

  [ Josh 'G-Funk' McDonald ]  --  [ Pirion Systems, Brisbane]

[ 07 3257 0490 ]  --  [ 0415 784 825 ]  --  [ http://www.gfunk007.com/ ]


Re: target release conflicts with default source?

2004-06-30 Thread Joel
On Tue, 29 Jun 2004 22:59:43 -0700
Bill Barker [EMAIL PROTECTED] wrote

 
 Joel [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  I tried google against jakarta.apache.org and marc.theaimsgroup.com and
  got no clues. Maybe I'm blind, maybe trying to build on MSWxp is lame?
 
  Here's the part I assume is most relevant.
 
  ---
  build-main:
   [echo] - Java-utils -
   [echo] -- puretls.present = ${puretls.present}
   [echo] -- jsse.present = true /usr/share/java/jsse-1.0.3/lib/jsse.jar
   [echo] -- commons-logging = true
   [echo] -- jmx = true /usr/share/java/mx4j-1.1.1/lib/mx4j-jmx.jar
   [echo] -- modeler = true
 /usr/share/java/commons-modeler-1.1/commons-modele
  r.jar
   [echo] -- JDK14 = true
  [javac] Compiling 63 source files to
 D:\Program_Files\jakarta\jakarta-tomcat
  -5.0.25-src\jakarta-tomcat-5\build\classes
  [javac] javac: target release 1.1 conflicts with default source
 release 1.5
 
  BUILD FAILED
  
 
  I'm using Java 1.5 beta. Is that a no-no?
 
 
 Tomcat (currently) doesn't build with 1.5.  You have to use 1.4 to build it.
 However, it runs fine on 1.5 once built.

That's what I needed to know -- I either set up a 1.4 environment to
build in or I just download the binary.

Tomcat has progressed so far since I used it last I can't figure out
which way is up when I'm looking at the distribution. Well, not really,
but there sure is a lot of stuff in there.

Hmm. From a quick glance through the library, it looks like trying to
share Xalan, Xerces, Log4J and all those guys with my main copies is
going to be an uphill struggle. 

Maybe I'll just get the binary, at least for now.

Thanks.

-- 
Joel [EMAIL PROTECTED]


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



Getting mad with jsp 2.0 jsp:directive.include file=file_to_include.jsp/

2004-06-30 Thread Martin Grüneberg
Hello, hope somebody knows whats going on here...

I have a main.jsp with the following start..

?xml version=1.0 encoding=utf-8?
jsp:root version=2.0 xmlns:jsp=http://java.sun.com/JSP/Page; 
xmlns=http://www.w3.org/1999/xhtml;
xmlns:c=http://java.sun.com/jsp/jstl/core;
xmlns:fn=http://java.sun.com/jsp/jstl/functions;
xmlns:html=/WEB-INF/struts-html-el.tld
xmlns:am=/WEB-INF/AccessManager2.tld
xmlns:bean=/WEB-INF/struts-bean-el.tld
jsp:output doctype-root-element=html
 doctype-public=-//W3C//DTD XHTML 1.0 Transitional//EN
 
doctype-system=http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; /
jsp:directive.page contentType=text/html; charset=utf-8 language=java
/
html:html locale=true xhtml=true 
head
  html:base/
  titlebean:message key=login.title//title
  c:url value=/css/style.css var=link
/c:url
  link rel=stylesheet href=${fn:escapeXml(link)} type=text/css/

jsp:directive.include file=/jsp/ascript.jsp/

/head


the /jsp/ascript.jsp looks like that:

script type=text/javascript
var newWindow;

function openInsertWindow()
{
c:url value=/messdatenPreloadAction.do var=link
c:param name=operation value=insertDataset/
/c:url
  newWindow =
window.open(${fn:escapeXml(link)},_blank,resizable=yes,scrollbars=yes,w
idth=800,height=600,status=yes);
}
...

ok, now the problem:
when i call the jsp tomcat (jasper) throws the following exception:

org.apache.jasper.JasperException: /jsp/ascript.jsp(9,33) The attribute
prefix fn does not correspond to any imported tag library

I thought ok, and added the same declaration to the /jsp/ascript.jsp include
file like in the main.jsp:

?xml version=1.0 encoding=utf-8?
jsp:root version=2.0 xmlns:jsp=http://java.sun.com/JSP/Page; 
xmlns=http://www.w3.org/1999/xhtml;
xmlns:c=http://java.sun.com/jsp/jstl/core;
xmlns:fn=http://java.sun.com/jsp/jstl/functions;
xmlns:html=/WEB-INF/struts-html-el.tld
xmlns:am=/WEB-INF/AccessManager2.tld
xmlns:bean=/WEB-INF/struts-bean-el.tld
script type=text/javascript
var newWindow;

function openInsertWindow()
{
c:url value=/messdatenPreloadAction.do var=link
c:param name=operation value=insertDataset/
/c:url
  newWindow =
window.open(${fn:escapeXml(link)},_blank,resizable=yes,scrollbars=yes,w
idth=800,height=600,status=yes);
}
...


but then i got the exception:

org.apache.jasper.JasperException: h3Validation error messages from
TagLibraryValidator for c/h3pnull: 
org.xml.sax.SAXParseException: Attribute bean bound to namespace
http://www.w3.org/2000/xmlns/; was already 
specified for element jsp:root./p

ok, this seems to be logical to me, because it is alredy declared in
main.jsp.

What can i do to fix this, to get the taglib known in the include but not
double import it???

thanks in advance
Martin Grüneberg
 



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



RE: Tomcat - MySQL = No suitable driver ERROR

2004-06-30 Thread Jan Behrens
Hi Patrick,

the problem might be that in Tomcat 5.x the storage of the context related
configuration changed from server.xml to a sepparate file for each webapp.
This file should be stored under
{Catalina_Home}\conf\Catalina\{domain-name}\myWebAppName.xml where
Catalina_Home points to your Tomcat installation dir and domain_name usually
would be localhost in a dev-environment. 

If you have a webapp called myWebApp and want to setup a datastore via jndi
for same to use in Tomcat 5 you could use the following as a basis for a
myWebApp.xml file stored under
{Catalina_Home}\conf\Catalina\{domain-name}\myWebAppName.xml:


?xml version='1.0' encoding='utf-8'?
Context debug=5 displayName=myWebApp docBase=myWebApp 
path=/myWebApp reloadable=true
workDir=work\Catalina\localhost\myWebApp

  Resource auth=Container name=jdbc/myWebApp
type=javax.sql.DataSource/
  ResourceParams name=jdbc/myWebApp
parameter
  nameurl/name
 
valuejdbc:mysql://NAME_OR_IP_OF_MYSQL_SERVER:3306/NAME_OF_DATABASE?autoRec
onnect=true/value
/parameter
parameter
  namemaxIdle/name
  value15/value
/parameter
parameter
  namemaxActive/name
  value50/value
/parameter
parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.Driver/value
/parameter
parameter
  namemaxWait/name
  value1/value
/parameter
parameter
  nameremoveAbandoned/name
  valuetrue/value
/parameter
parameter
  nameusername/name
  valueUSERNAME/value
/parameter
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
  nameremoveAbandonedTimeout/name
  value60/value
/parameter
parameter
  namepassword/name
  valuePASSWORD/value
/parameter
  /ResourceParams
/Context

The MySQL driver does have to go under {Catalina_Home}\shared\lib! Delete
any other copies you might have placed in your WEB-INF\lib or anywhere else.
You should also remove the context/context you inserted in
server.xml as this should all go in the myWebApp.xml file. 

If you ever deploy your webapp you then only have to copy your myWebApp.xml
to the Manifest dir in your webapp root dir before creating the war-file and
Tomcat will automatically create the correct context for your webapp.

HTH, Jan


-Original Message-
From: Briggs, Patrick [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 12:01 AM
To: '[EMAIL PROTECTED]'
Subject: Tomcat - MySQL = No suitable driver ERROR


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

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

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

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

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

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

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


Editable double list boxes wanted

2004-06-30 Thread Zsolt Koppany
Hi,
this is probably not the best mailing list for my question but I need a 
dialog (very probably with javacript) where I can move items from one 
listbox into an other and backwards). Where can I find such an example?

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


FAQ ? log4j:ERROR setFile(null,true)

2004-06-30 Thread Harald Henkel
Hello all.

I guess this is a FAQ.

When I start Tomcat, I receive the error message (see below).
I serached a bit (with Google) and found out, that probably this is
caused, by not setting the log destination directory (correctly).
Yet, some log files ARE created.
But I didn't find out, how this is done.
Anybody got a link to the documentation for this ? Or even better, or
even better a simple example.

The log4j errors do come 4 times, I guess for every context.

The initializing messages in the other log files created (all in the
$CATALINE_HOME/logs dir) DO have a correctly looking timestamp...

The files have names like click_log.2004-06-30.txt (not click.log) and
contain lines like 

2004-06-30 11:30:48 WebappLoader[/Click]: Deploying class repositories
to work directory
/usr/jakarta-tomcat-4.1.30/work/Standalone/localhost/Click

BTW, could this be a reason for Tomcat/Java creating lots of
threads/processes (on Linux), because Log4j tries to log something but
cannot and thus hangs ?

Any help appreciated,
with kind regards,
Harald Henkel

Catalina.out:
***
30.06.2004 11:30:47 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 80
Starting service Tomcat-Standalone
Apache Tomcat/4.1.30
30.06.2004 11:30:49 org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
30.06.2004 11:30:49 org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
30.06.2004 11:30:49 org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
30.06.2004 11:30:51 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 80
30.06.2004 11:30:51 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
30.06.2004 11:30:51 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/63 
config=/usr/jakarta-tomcat-4.1.30/conf/jk2.properties

log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: logs/click.log (No such file or
directory)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.init(FileOutputStream.java:177)
at java.io.FileOutputStream.init(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
[...]
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
log4j:ERROR Either Filename or DatePattern options are not set for
[file].


-- 
Harald Henkel

GS automation GmbH
Winterstraße 2
82223 Eichenau
Germany
Tel:+ 49-8141-35 731-37
Fax:+ 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: [EMAIL PROTECTED]
Web:www.GS-automation.DE

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



Re: Editable double list boxes wanted

2004-06-30 Thread Adam Buglass
Hi, um I don't know but one of these sites might:
http://developer.irt.org/script/script.htm
http://www.htmlhelp.com

I think this probably isn't the right list for you, not with JavaScript
at any rate!!

On Wed, 2004-06-30 at 11:06, Zsolt Koppany wrote:
 Hi,
 
 this is probably not the best mailing list for my question but I need a 
 dialog (very probably with javacript) where I can move items from one 
 listbox into an other and backwards). Where can I find such an example?
 
 Zsolt
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Adam Buglass,  
The Golden Freeway.

Unit 1,
Wear Valley Business Centre,
27 Longfield Road,
South Church Enterprise Park,
Bishop Auckland.
DL14 6XB

(01388) 778424

http://www.thegoldenfreeway.com
http://www.golduk.net


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



Can't Start Tomcat 5.0

2004-06-30 Thread Alvin Randolph
Hello:
I installed Tomcat 5.0 a few weeks ago on a WinXP system. Set system  Environment 
variables $CATALINA_HOME to C:\Program Files\Tomcat 5.0   JAVA_HOME to 
C:\JBuilder\jdk1.3.1.

Whenever I click the Tomcat Administration link under the Start button, I get a 
panel requesting the User name  Password to connect me to 
http://127.0.0.1:8080/ADMIN/... After 3 tries, I get the Unauthorized panel.

I am using the minimal server.xml file with no GlobalNamingResources, service name, 
connector port assignment, host name  logger settings inside engine tags. I also set 
memoryrealm so the manager can use Tomcat-user.xml to validate the username  
password. There are no error messages in the Logs folder. What am I doing wrong?


Thanks,
 Alvin Randolph



Deploy/install custom jmx mbean in tomcat 5.0.19

2004-06-30 Thread Ewan Harrow
How does one actually deploy an mbean in tomcat5 so that it is
accessibile via the admin webapp or is this not actually possible?

I have created a TestMBean interface and a simple implementation class
with a get/set and int attribute and copied to
TOMCAT_HOME/shared/classes.  Along with the classes I created a
deployment descriptor named mbean-descriptor.xml

?xml version=1.0?
mbeans-descriptors
mbean name=Stuff className=Test description=Test stuff
domain=Test group=Resources type=TestMBean
operation name=getNumber description=gets the number
impact=ACTION returnType=int/operation
/mbean
/mbeans-descriptors

I then updated the TOMCAT_HOME/conf/server.xml so that the listener
included the new mbean-descriptor.xml.

Server
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
descriptors=/mbean-descriptor.xml/Listener

I get no errors when restarting but also nothing in the admin webapp or
the jmxproxy.

What am I doing wrong?  I had hoped that this would have been as easy
as adding an mbean to JBoss.

rgds

ewan








___ALL-NEW Yahoo! Messenger - 
so many all-new ways to express yourself http://uk.messenger.X

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



Re: Deploy/install custom jmx mbean in tomcat 5.0.19

2004-06-30 Thread Peter Rossbach
Currently,
your bean are not started automaticly with this configuration. You must 
write a own LifecycleListener
that start your Mbeans.

Other options is you can configure at engine element is
Engine mbeansFile=conf/tomcat5-mbeans.xml
/Engine
Look at commons-modeler project for documentation:
Here is my example to made a better support possible:
bean
   mbean name=Bean:type=Bean
   code=org.apache.commons.modeler.modules.MyBean
   attribute name=name value=Peter/
   /mbean
   jmx-attribute objectName=Bean:type=Bean
   name=street
   value=Am Jo/
   jmx-operation objectName=Bean:type=Bean
   operation=start/
   mbean name=Bean:type=Bean2
   code=org.apache.commons.modeler.modules.MyBean
   /mbean
   jmx-operation objectName=Bean:type=Bean2
   operation=setall
   arg type=java.lang.String value=Peter/
   arg type=java.lang.StringAm Jo/arg
   /jmx-operation
   mbean name=Bean:type=Bean3
   code=org.apache.commons.modeler.modules.MyBean
   arg type=java.lang.String value=Peter/
   arg type=java.lang.StringAm Jo/arg
   /mbean
/bean
I have send a patch for some month to the commons-modeler project 
(http://jakarta.apache.org/commons/modeler/) for better
suppport, but there wasn't accepted.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26493
regards
Peter
Ewan Harrow schrieb:
How does one actually deploy an mbean in tomcat5 so that it is
accessibile via the admin webapp or is this not actually possible?
I have created a TestMBean interface and a simple implementation class
with a get/set and int attribute and copied to
TOMCAT_HOME/shared/classes.  Along with the classes I created a
deployment descriptor named mbean-descriptor.xml
?xml version=1.0?
mbeans-descriptors
   mbean name=Stuff className=Test description=Test stuff
domain=Test group=Resources type=TestMBean
   operation name=getNumber description=gets the number
impact=ACTION returnType=int/operation
   /mbean
/mbeans-descriptors
I then updated the TOMCAT_HOME/conf/server.xml so that the listener
included the new mbean-descriptor.xml.
Server
 Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
descriptors=/mbean-descriptor.xml/Listener
I get no errors when restarting but also nothing in the admin webapp or
the jmxproxy.
What am I doing wrong?  I had hoped that this would have been as easy
as adding an mbean to JBoss.
rgds
ewan





___ALL-NEW Yahoo! Messenger - 
so many all-new ways to express yourself http://uk.messenger.X
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


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


XSLT transformations with tomcat

2004-06-30 Thread Martin Monsorno
Hi *,

I have some questions about XSLT transformations with tomcat (4 and 5).

1.) There doesn't seem to be a XSLT-processor included in TomCat.
Isn't this mandatory for a J2EE web container?  Isn't this needed for
the transform taglibs?

2.) When removing the xalan.jar-package from my web-app, I get the
following error: 

 javax.xml.transform.TransformerFactoryConfigurationError: Provider 
org.apache.xalan.processor.TransformerFactoryImpl not found

Why does tomcat looks after the
org.apache.xalan.processor.TransformerFactoryImpl class?  I didn't
configured this implementation for being used.

Thanks for your help,

-- 
Martin

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



Tomcat process memory growth

2004-06-30 Thread Surendra Kumar
Hi
I am using Tomcat 4.1.29 and JDK 1.4.2_04 in my application.  The total memory of 
the process ( VM + Real Memory)
keeps on increasing.  The heap size of VM is not increasing ( verified by printing 
the free memory) , but the total memory 
used by the process increasing.

Any ideas on how to fix it ?

Thanks
Surendra

RE: Tomcat process memory growth

2004-06-30 Thread STOCKHOLM, Raymond
It seems your web application has a memory leak :
Use a Profiler to check the memory usage in your application.



-Message d'origine-
De : Surendra Kumar [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 30 juin 2004 14:35
À : Tomcat Users List
Objet : Tomcat process memory growth


Hi
I am using Tomcat 4.1.29 and JDK 1.4.2_04 in my application.  The total memory of 
the process ( VM + Real Memory)
keeps on increasing.  The heap size of VM is not increasing ( verified by printing 
the free memory) , but the total memory 
used by the process increasing.

Any ideas on how to fix it ?

Thanks
Surendra

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



Re: Tomcat process memory growth

2004-06-30 Thread Surendra Kumar
I checked that. Only the total memory of the process is growing. The vm size
is not growing much.
i think normally all profilers gives information abt the VM. Is it correct ?

Thanks
Surendra

- Original Message -
From: STOCKHOLM, Raymond [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 6:09 PM
Subject: RE: Tomcat process memory growth


It seems your web application has a memory leak :
Use a Profiler to check the memory usage in your application.



-Message d'origine-
De : Surendra Kumar [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 30 juin 2004 14:35
À : Tomcat Users List
Objet : Tomcat process memory growth


Hi
I am using Tomcat 4.1.29 and JDK 1.4.2_04 in my application.  The total
memory of the process ( VM + Real Memory)
keeps on increasing.  The heap size of VM is not increasing ( verified
by printing the free memory) , but the total memory
used by the process increasing.

Any ideas on how to fix it ?

Thanks
Surendra

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


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



resend: hanging application and broken pipes

2004-06-30 Thread Hans Wichman
Hi,
I still haven't solved my strange tomcat problem, and I really hope some of 
you can help me in the right direction:

I am still looking for some advice on tackling the following problem.
We have to maintain an application not written by us, and about three times 
a day the server hangs.
We are using tomcat 4.1.29, oracle 8 and use connection pooling.
Upon calling a certain method: readDidactischTypes() (don't mind the 
language mixing), the log should print:
2004-06-07 00:04:32 kwaliteitskaart.SchoolsBean[4402]: readDidactischTypes()
2004-06-07 00:04:32 kwaliteitskaart.SchoolsBean[4416]: SELECT DISTINCT 
vis.vis_code AS dedactTypeCode, vis.vis_omschrijving AS dedactTypeName FROM 
ins_visies vis ORDER BY vis.vis_omschrijving

The log query action is the first thing printed AFTER getting a connection 
from the pool, in other words:
public DidactischTypeBean readDidactischTypes()
{
log(readDidactischTypes(), 4402);
DidactischTypeBean didactischTypeBean = null;
DidactischTypeDetailsBean didactischTypeDetailsBean = null;
Connection conn = null;
PreparedStatement stmt = null;
ResultSet rs = null;
int didactCounter = 0;
int rowCount = 0;
try {
didactischTypeBean = new DidactischTypeBean();
conn = getConnection();
log(SQL_all_didact, 4416);

(don't mind the cumbersome logger either ;-)).
Now sometimes during the day, the following happens:
2004-06-07 13:34:50 kwaliteitskaart.SchoolsBean[4402]: readDidactischTypes()
2004-06-07 13:34:51 kwaliteitskaart.SchoolsBean[4402]: readDidactischTypes()
... and this about 20 times more.
2004-06-07 13:37:21 kwaliteitskaart.SchoolsBean[4402]: readDidactischTypes()
2004-06-07 13:37:31 kwaliteitskaart.SchoolsBean[4402]: readDidactischTypes()
2004-06-07 13:37:33 ApplicationDispatcher[] Servlet.service() for servlet 
Stream threw exception
ClientAbortException: java.io.IOException: Broken pipe
at 
org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:404)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:428)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:348)
at org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:432)
at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:419)
at 
org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.java:108) 

at 
com.mediasurface.client.servlets.StreamServlet.doGet(StreamServlet.java:365)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
--truncated--
and lower:
2004-06-07 13:49:55 StandardHost[localhost]: Removing web application at 
context path /ms
2004-06-07 13:49:55 StandardHost[localhost]: Removing web application at 
context path /cmc
2004-06-07 13:49:55 StandardHost[localhost]: Removing web application at 
context path
2004-06-07 13:49:57 StandardWrapper[:jsp]: Waiting for 276 instance(s) to 
be deallocated
2004-06-07 13:49:58 StandardWrapper[:MediasurfaceController]: Waiting for 
72 instance(s) to be deallocated
2004-06-07 13:49:58 StandardWrapper[:PdfServlet]: Waiting for 1 instance(s) 
to be deallocated

My questions are:
- does anybody know how to identify different clients in the log, can I 
print an ip for example after each timestamp?
- does anybody know what the 'waiting for 276 instances' means, does it 
mean I have 276 concurrent clients?
- did anyone experience a similar problem and found a solution ;-)?
- does anyone have any pointers of how to detect where the application or 
the server goes wrong?

The application uses jsp's and almost no servlets except a pdf and 
fopservlet. It does use thirdparty libs such as classes12.jar for oracle 
and the commons-dbcp

Thank you very much in advance for any advice you can offer.
Hans
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Editable double list boxes wanted

2004-06-30 Thread Kunthar
Hi,
Go and check Matt Kruse lovely site: www.mattkruse.com
You'll find more tools then you want to. Calendar, sortable table, 
editable listboxes.
And if you enjoy to use the tools please donate to him.
Because the code is clean, well organized and very well explained.

btw; I don't know him personally :=)
Take care.
Gokhan
Zsolt Koppany wrote:
Hi,
this is probably not the best mailing list for my question but I need 
a dialog (very probably with javacript) where I can move items from 
one listbox into an other and backwards). Where can I find such an 
example?

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


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


Re: Editable double list boxes wanted

2004-06-30 Thread Zsolt Koppany
Thank you,
it looks very interesting.
Zsolt
Kunthar wrote:
Hi,
Go and check Matt Kruse lovely site: www.mattkruse.com
You'll find more tools then you want to. Calendar, sortable table, 
editable listboxes.
And if you enjoy to use the tools please donate to him.
Because the code is clean, well organized and very well explained.

btw; I don't know him personally :=)
Take care.
Gokhan
Zsolt Koppany wrote:
Hi,
this is probably not the best mailing list for my question but I need 
a dialog (very probably with javacript) where I can move items from 
one listbox into an other and backwards). Where can I find such an 
example?

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


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


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


stderr-debug level

2004-06-30 Thread Veera Sivakumar

Hi,
I have deployed struts application on Tomcat(4.1.24).
I have noticed the following entries in stderr. This entries increase the size of 
stderr and it become difficult to maintain this.

Is there any way that I can stop logging of these statements.
I have set debug level to '0' in server.xml and in web.xml. But that does not help me.
Thanks in advance


The sample logs

INFO:Found available connection
Jun 30, 2004 2:28:50 PM org.apache.struts.legacy.GenericDataSource getConnection
INFO:Return allocated connection, activeCount=2, useCount=1
Jun 30, 2004 2:28:50 PM org.apache.struts.legacy.GenericDataSource returnConnection
INFO:   releaseConnection(), activeCount=2, useCount=0


Regards
Shiva

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Visit our website at http://www.rm.com

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

This email has been scanned for viruses by Trend ScanMail.

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



Re: Please Help! Tomcat 5.0.25

2004-06-30 Thread Robert Bateman
This may or may not be totally on topic - apologies if it's not...

On Wednesday 30 June 2004 12:16 am, Aris Javier wrote:
 Still the same error occured after replacing my service.bat with your
 service.bat... (declares tools.jar inside) =|

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

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


I've seen similar errors when running programs as services in a Windows 
environment.  One thing that got me over and over was the data base I was 
accessing was not local.  Because the remote data base needed me to map a 
drive letter to it, my program running as service failed.

Are you by chance attempting to access your data base on a network drive?

Bob

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



How to get Roles in a Principal with JNDIRealm

2004-06-30 Thread Renato Primavera
  Hello All,
I'm using JNDIRealm to authenticate users and it's working well.
In my java code, I need to retrieve roles associated with the
authenticated user.
Here is a sample of this code :
Subject s =
Subject.getSubject((AccessControlContext)System.getSecurityManager().getSecurityContext());
Principal p = (Principal)s.getPrincipals().toArray()[0];
The API only allows me to retrieve, on the Principal, the name (with the
getName accessor) of the user, not associated roles.
Nevertheless, when running the code in a debugger, the state of the
Principal object seems containing all needed informations (name,
password, realm, roles).
Is there a (standard) way to retrieve these additional information ?
Or should I develop my own LDAP Realm (JAAS module) and extend the
Principal interface to add role notions ?
Any help would be appreciated...
RP

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


RE: How to get Roles in a Principal with JNDIRealm

2004-06-30 Thread Robert Harper
It  may be easier to use JMX and retrieve the role out of the user information
from the user bean.

Robert S. Harper
801.265.8800 ex. 255
 -Original Message-
 From: Renato Primavera [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 30, 2004 7:47 AM
 To: [EMAIL PROTECTED]
 Subject: How to get Roles in a Principal with JNDIRealm
 
Hello All,
 
 
 I'm using JNDIRealm to authenticate users and it's working well.
 In my java code, I need to retrieve roles associated with the
 authenticated user.
 Here is a sample of this code :
 
 Subject s =
 Subject.getSubject((AccessControlContext)System.getSecurityManager().getSecuri
 tyContext());
 Principal p = (Principal)s.getPrincipals().toArray()[0];
 
 The API only allows me to retrieve, on the Principal, the name (with the
 getName accessor) of the user, not associated roles.
 Nevertheless, when running the code in a debugger, the state of the
 Principal object seems containing all needed informations (name,
 password, realm, roles).
 
 Is there a (standard) way to retrieve these additional information ?
 Or should I develop my own LDAP Realm (JAAS module) and extend the
 Principal interface to add role notions ?
 
 Any help would be appreciated...
 
 RP
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 




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



RE: Please Help! Tomcat 5.0.25

2004-06-30 Thread Robert Harper
When you run a service in WinXX, it does not run with the same rights and
settings as the logged in user. If your app needs a mapped drive, then you will
have to find a way for your app to map the drive for it's self. This may also be
a user rights issue as the service runs without the same credentials as the
logged in user.

Robert S. Harper
801.265.8800 ex. 255

 -Original Message-
 From: Robert Bateman [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 30, 2004 7:39 AM
 To: Tomcat Users List
 Subject: Re: Please Help! Tomcat 5.0.25
 
 This may or may not be totally on topic - apologies if it's not...
 
 On Wednesday 30 June 2004 12:16 am, Aris Javier wrote:
  Still the same error occured after replacing my service.bat with your
  service.bat... (declares tools.jar inside) =|
 
  org.apache.commons.dbcp.SQLNestedException: Cannot create
  PoolableConnectionFactory, cause: General error
 
  When i run startup.bat... it worked fine again... the following are the
  logged
  scripts in MS DOS when i run startup.bat...
 
 
 I've seen similar errors when running programs as services in a Windows
 environment.  One thing that got me over and over was the data base I was
 accessing was not local.  Because the remote data base needed me to map a
 drive letter to it, my program running as service failed.
 
 Are you by chance attempting to access your data base on a network drive?
 
 Bob
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 




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



Re: Getting mad with jsp 2.0 jsp:directive.include file=file_to_include.jsp/

2004-06-30 Thread Woodchuck
hi Martin,

can you try to use the compile-time include like the following:

%@ include file=/jsp/ascript.jsp%

instead of the run-time include that you are currently using?  that is
why it is complaining about double importing.

if you use compile-time include then you do not need to import in your
ascript.jsp

woodchuck
 

--- Martin_Grüneberg [EMAIL PROTECTED] wrote:
 Hello, hope somebody knows whats going on here...
 
 I have a main.jsp with the following start..
 
 ?xml version=1.0 encoding=utf-8?
 jsp:root version=2.0 xmlns:jsp=http://java.sun.com/JSP/Page; 
   xmlns=http://www.w3.org/1999/xhtml;
   xmlns:c=http://java.sun.com/jsp/jstl/core;
   xmlns:fn=http://java.sun.com/jsp/jstl/functions;
   xmlns:html=/WEB-INF/struts-html-el.tld
   xmlns:am=/WEB-INF/AccessManager2.tld
   xmlns:bean=/WEB-INF/struts-bean-el.tld
 jsp:output doctype-root-element=html
  doctype-public=-//W3C//DTD XHTML 1.0 Transitional//EN
  

doctype-system=http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 /
 jsp:directive.page contentType=text/html; charset=utf-8
 language=java
 /
 html:html locale=true xhtml=true 
 head
   html:base/
   titlebean:message key=login.title//title
   c:url value=/css/style.css var=link
   /c:url
   link rel=stylesheet href=${fn:escapeXml(link)}
 type=text/css/
   
   jsp:directive.include file=/jsp/ascript.jsp/
   
 /head
 
 
 the /jsp/ascript.jsp looks like that:
 
 script type=text/javascript
 var newWindow;
 
 function openInsertWindow()
 {
   c:url value=/messdatenPreloadAction.do var=link
   c:param name=operation value=insertDataset/
   /c:url
   newWindow =

window.open(${fn:escapeXml(link)},_blank,resizable=yes,scrollbars=yes,w
 idth=800,height=600,status=yes);
 }
 ...
 
 ok, now the problem:
 when i call the jsp tomcat (jasper) throws the following exception:
 
 org.apache.jasper.JasperException: /jsp/ascript.jsp(9,33) The
 attribute
 prefix fn does not correspond to any imported tag library
 
 I thought ok, and added the same declaration to the /jsp/ascript.jsp
 include
 file like in the main.jsp:
 
 ?xml version=1.0 encoding=utf-8?
 jsp:root version=2.0 xmlns:jsp=http://java.sun.com/JSP/Page; 
   xmlns=http://www.w3.org/1999/xhtml;
   xmlns:c=http://java.sun.com/jsp/jstl/core;
   xmlns:fn=http://java.sun.com/jsp/jstl/functions;
   xmlns:html=/WEB-INF/struts-html-el.tld
   xmlns:am=/WEB-INF/AccessManager2.tld
   xmlns:bean=/WEB-INF/struts-bean-el.tld
 script type=text/javascript
 var newWindow;
 
 function openInsertWindow()
 {
   c:url value=/messdatenPreloadAction.do var=link
   c:param name=operation value=insertDataset/
   /c:url
   newWindow =

window.open(${fn:escapeXml(link)},_blank,resizable=yes,scrollbars=yes,w
 idth=800,height=600,status=yes);
 }
 ...
 
 
 but then i got the exception:
 
 org.apache.jasper.JasperException: h3Validation error messages from
 TagLibraryValidator for c/h3pnull: 
 org.xml.sax.SAXParseException: Attribute bean bound to namespace
 http://www.w3.org/2000/xmlns/; was already 
 specified for element jsp:root./p
 
 ok, this seems to be logical to me, because it is alredy declared in
 main.jsp.
 
 What can i do to fix this, to get the taglib known in the include but
 not
 double import it???
 
 thanks in advance
 Martin Grüneberg
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




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

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



Re: Tomcat process memory growth

2004-06-30 Thread Adrian Barnett
On Wed, 30 Jun 2004 18:05:01 +0530, Surendra Kumar [EMAIL PROTECTED]  
wrote:

Hi
I am using Tomcat 4.1.29 and JDK 1.4.2_04 in my application.  The  
total memory of the process ( VM + Real Memory)
keeps on increasing.  The heap size of VM is not increasing  
( verified by printing the free memory) , but the total memory
used by the process increasing.
   Any ideas on how to fix it ?
Are you using mod_jk2 to connect to Apache?
If so, try adding the line
request.registerRequests=false
to your jk2.properties file.
I was also getting a memory-creep until I set that flag.
--
Can you see the fnords yet?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Errors in precompiled JSPs

2004-06-30 Thread Woodchuck
hi simon,

i just tried to introduce the same 'errors' you did and my
pre-compiling stopped and complained the following exception:

  [jasperc] 2004-06-30 10:38:20 - ERROR-the file '\jsp\Test.jsp'
generated the following general exception: java.
lang.NullPointerException
  [jasperc] at org.apache.jasper.JspC.processFile(JspC.java:596)
  [jasperc] at org.apache.jasper.JspC.execute(JspC.java:801)
  [jasperc] at org.apache.jasper.JspC.main(JspC.java:823)

so it seems i'm getting the error-checking that you want.  the
difference is that i didn't use taskdef to do my pre-compiling.  i
just used ant's jspc task:

jspc srcdir=${webapp.build} destdir=gensrc/src
uriroot=${webapp.build}
compiler=jasper41
includes=index.jsp,jsp/**/*.jsp
verbose=9
webxml=jspmaps

classpath
pathelement path=${tomcat.home}/common/lib/jasper-compiler.jar/
pathelement path=${tomcat.home}/common/lib/servlet.jar/
pathelement path=${tomcat.home}/common/lib/jasper-runtime.jar/
pathelement path=${ant.home}/lib/ant.jar/
/classpath

/jspc

why do you need to define your own pre-compile task may i ask?

woodchuck


--- simon colston [EMAIL PROTECTED] wrote:
 I have set up an ant task to precompile JSPs and everything works
 fine 
 *if* there are no errors in the JSP.
 
 The ant task is:
 
 target name=jspc depends=prepare description=Compile JSP
 files
   taskdef classname=org.apache.jasper.JspC name=jasper2 
classpath id=jspc.classpath
 pathelement location=${java.home}/../lib/tools.jar/
  fileset dir=${extlib.home}
   include name=**/*.jar/
  /fileset
 /classpath
/taskdef
jasper2 verbose=4
   validateXml=false
   uriroot=${build.home}
   webXmlFragment=${web.home}/WEB-INF/generated_web.xml
   outputDir=${build.home}/WEB-INF/src /
loadfile
   srcfile=${web.home}/WEB-INF/generated_web.xml
   
 property=gen.web.xml
 filterchain 
  tokenfilter delimoutput=\r\n/
 /filterchain
/loadfile
delete file=${web.home}/WEB-INF/generated_web.xml/delete
delete file=${build.home}/WEB-INF/web.xml/delete
copy tofile=${build.home}/WEB-INF/web.xml
   file=${web.home}/WEB-INF/web.xml
 filterset
  filter value=${gen.web.xml} token=jspServlets/
 /filterset
/copy
 /target
 
 If I introduce an error into the JSP page, such as:
 
   c:url var=url/
   img src=${url}/
 
 (where c: is the JSTL common taglib) the ant task ends without errors
 
 and I get a NullPointerException when I test the page on the server.
 
 How can I get my jspc ant task to show errors in the JSP?
 
 Using Tomcat 5.0.25.
 
 Cheers,
 
 Simon
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 





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

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



Re: Deploy/install custom jmx mbean in tomcat 5.0.19

2004-06-30 Thread Ewan Harrow
H.  So why does the doco not mention any of this instead suggesting
that one can just drop in an mbean, descriptor and update the server
config?

ewan





___ALL-NEW Yahoo! Messenger - 
so many all-new ways to express yourself http://uk.messenger.X

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



Re: XSLT transformations with tomcat

2004-06-30 Thread Jacob Kjome
Quoting Martin Monsorno [EMAIL PROTECTED]:

 Hi *,
 
 I have some questions about XSLT transformations with tomcat (4 and 5).
 
 1.) There doesn't seem to be a XSLT-processor included in TomCat.
 Isn't this mandatory for a J2EE web container?  Isn't this needed for
 the transform taglibs?
 
 2.) When removing the xalan.jar-package from my web-app, I get the
 following error:
 
  javax.xml.transform.TransformerFactoryConfigurationError: Provider
 org.apache.xalan.processor.TransformerFactoryImpl not found
 
 Why does tomcat looks after the
 org.apache.xalan.processor.TransformerFactoryImpl class?  I didn't
 configured this implementation for being used.
 

You do realize that JDK1.4+ comes with Xalan as the default XSLT processor,
right?  You wouldn't have needed to specifically configure this implementation
because it is the default.  And you also shouldn't put xalan.jar in WEB-INF/lib
since Xalan is an endorsed library.  If you want to the JDK to use a newer
version of Xalan, put the new copy in JAVA_HOME/jre/lib/endorsed or
CATALINA_HOME/common/endorsed.  I would also suggest usin the 2jars
distribution rather than the normal distribution so that you don't end up making
BCel an endorsed library.  Xalan ships with an older version of BCel embedded in
its default jar to enable XSLTC.  The 2jars distribution keeps the core of
Xalan and XSLTC stuff separated.

Jake

 Thanks for your help,
 
 --
 Martin
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



cleaning up a removed webapp

2004-06-30 Thread David Vollberg
I am trying to upgrade one of the webapps running on my Tomcat instance(version 
4.1.x). To do so, I am removing a webapp from my Tomcat instance by using 
http://localhost:8080/manager/remove?path=/app. This app is running an in-memory 
database that isn't being cleaned up. When I go to install a newer version of my 
app(using manager/install), I am getting out of memory errors. I want to avoid having 
to shutdown Tomcat because that would take other webapps offline. I know I could 
increase the memory size for the instance, but am looking for a cleaner solution. Is 
there a listener hook or method I can put code into to shut down the database and 
otherwise clean up the app before it is removed by Tomcat?

Thanks,
Dave

RE: Tomcat and JBoss

2004-06-30 Thread ramesh
The context is mapped using the jboss-web.xml file. Either you can specify a
context or have the war map to the root context. The war file in my case is
named as tam.war. I tried what you suggested but it still does not work!

Ramesh.

-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 6:22 PM
To: Tomcat Users List
Subject: Re: Tomcat and JBoss

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

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

http://localhost:8080/some_app/ccgIntf

-QM

-- 

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


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


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



RE: cleaning up a removed webapp

2004-06-30 Thread Shapira, Yoav

Hi,
ServletContextListener#contextDestroyed.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: David Vollberg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 11:53 AM
To: [EMAIL PROTECTED]
Subject: cleaning up a removed webapp

I am trying to upgrade one of the webapps running on my Tomcat
instance(version 4.1.x). To do so, I am removing a webapp from my
Tomcat
instance by using http://localhost:8080/manager/remove?path=/app. This
app
is running an in-memory database that isn't being cleaned up. When I go
to
install a newer version of my app(using manager/install), I am getting
out
of memory errors. I want to avoid having to shutdown Tomcat because
that
would take other webapps offline. I know I could increase the memory
size
for the instance, but am looking for a cleaner solution. Is there a
listener hook or method I can put code into to shut down the database
and
otherwise clean up the app before it is removed by Tomcat?

Thanks,
Dave



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


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



apache2 crashes when using connectors

2004-06-30 Thread Andy Spiegl
Hi,

I installed tomcat-4.1.30 on a SuSE 9 box.  So far so good.
But then I tried to install the connector modules into the apache
(version 2.0.49-23) but didn't succeed.

I find this type of lines in the apache error.log:
 [notice] child pid 21721 exit signal Segmentation fault (11)

and these lines in the mod_jk.log:
 [jk_uri_worker_map.c (485)]: Into jk_uri_worker_map_t::map_uri_to_worker
 [jk_uri_worker_map.c (619)]: In jk_uri_worker_map_t::map_uri_to_worker, wrong 
parameters

I checked all available documentation and web resources but couldn't find
any pointers to why that is so.  I have tried pretty much all versions of
the connector modules I could find but apache always crashes like this.

For now I chose the mod_proxy method to serve the jsp files, but I'd prefer
the connectors.  Could some kind soul please point me to the solution.

Thanks in advance,
 Andy.

-- 
  o  _ _ _
  --- __o   __o  /\_   _ \\o  (_)\__/o  (_)  -o)
  - _`\,__`\,__(_) (_)/_\_| \   _|/' \/   /\\
   (_)/ (_)  (_)/ (_)  (_)(_)   (_)(_)'  _\o__\_v
 
 A chicken crossing the road is poultry in motion.

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



Using old JDBC drivers, Tomcat 5.0.25

2004-06-30 Thread Robert Bateman
I have an old JDBC driver for a Legacy Data Base that I'm attempting to access 
in Tomcat 5.0.25.

When I attempt to call DriverManager.getConnection() on my legacy Data Base, I 
get the following log (some snipped to make it easier to read...)

2004-06-30 12:22:02 StandardWrapperValve[jsp]: Servlet.service() for servlet 
jsp threw exception
javax.servlet.jsp.JspTagException: Error: SQLException thrown by 
doStartTag_pre() in MtgCoXMLGenerTag Error while trying to connect to 
database, Exception message: access denied (java.lang.RuntimePermission 
accessClassInPackage.sun.reflect)
at 
com.sequoiallc.sequoia_admin.pdox.MtgCoXMLGenerTag.doStartTag_pre(MtgCoXMLGenerTag.java:139)
at com.sequoiallc.taglib.ExTagSupport2.doStartTag(ExTagSupport2.java:420)
at 
org.apache.jsp.PlaceOrder_jsp._jspx_meth_px_2_MtgCoXMLGener_0(PlaceOrder_jsp.java:1630)
at org.apache.jsp.PlaceOrder_jsp._jspService(PlaceOrder_jsp.java:237)


In catalina.out I get the following:

java.security.AccessControlException: access denied 
(java.lang.RuntimePermission setContextClassLoader)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at java.lang.Thread.setContextClassLoader(Thread.java:1219)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1623)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1608)
at java.lang.Thread.run(Thread.java:536)
com.corel.pdx.driver.PdxJDBCSQLException: Error while trying to connect to 
database, Exception message: access denied (java.lang.RuntimePermission 
accessClassInPackage.sun.reflect)
at com.corel.pdx.driver.PdxJDBCDriver.connect(PdxJDBCDriver.java:302)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:193)


In my catalina.policy I have

grant {
permission java.lang.RuntimePermission accessClassInPackage.sun.reflect;
permission java.lang.RuntimePermission 
accessClassInPackage.sun.reflect.*;
permission java.lang.RuntimePermission setContextClassLoader;

};


I don't see this specific set of circumstances in the bug data base and the 
above works in Tomcat 4.1.27.

ANY help greatly appreciated!

Bob

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



Re: Using old JDBC drivers, Tomcat 5.0.25

2004-06-30 Thread Robert Bateman
Almost forgot to note, once I get the access error, I can no longer talk to 
Tomcat (it's looking for access to 127.0.0.1:35479)

Bob

On Wednesday 30 June 2004 12:32 pm, Robert Bateman wrote:
 I have an old JDBC driver for a Legacy Data Base that I'm attempting to
 access in Tomcat 5.0.25.

 When I attempt to call DriverManager.getConnection() on my legacy Data
 Base, I get the following log (some snipped to make it easier to read...)

 2004-06-30 12:22:02 StandardWrapperValve[jsp]: Servlet.service() for
 servlet jsp threw exception
 javax.servlet.jsp.JspTagException: Error: SQLException thrown by
 doStartTag_pre() in MtgCoXMLGenerTag Error while trying to connect to
 database, Exception message: access denied (java.lang.RuntimePermission
 accessClassInPackage.sun.reflect)
   at
 com.sequoiallc.sequoia_admin.pdox.MtgCoXMLGenerTag.doStartTag_pre(MtgCoXMLG
enerTag.java:139) at
 com.sequoiallc.taglib.ExTagSupport2.doStartTag(ExTagSupport2.java:420) at
 org.apache.jsp.PlaceOrder_jsp._jspx_meth_px_2_MtgCoXMLGener_0(PlaceOrder_js
p.java:1630) at
 org.apache.jsp.PlaceOrder_jsp._jspService(PlaceOrder_jsp.java:237)


 In catalina.out I get the following:

 java.security.AccessControlException: access denied
 (java.lang.RuntimePermission setContextClassLoader)
   at
 java.security.AccessControlContext.checkPermission(AccessControlContext.jav
a:270) at
 java.security.AccessController.checkPermission(AccessController.java:401)
 at java.lang.SecurityManager.checkPermission(SecurityManager.java:542) at
 java.lang.Thread.setContextClassLoader(Thread.java:1219)
   at
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.process
Children(ContainerBase.java:1623) at
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Con
tainerBase.java:1608) at java.lang.Thread.run(Thread.java:536)
 com.corel.pdx.driver.PdxJDBCSQLException: Error while trying to connect to
 database, Exception message: access denied (java.lang.RuntimePermission
 accessClassInPackage.sun.reflect)
   at com.corel.pdx.driver.PdxJDBCDriver.connect(PdxJDBCDriver.java:302)
   at java.sql.DriverManager.getConnection(DriverManager.java:512)
   at java.sql.DriverManager.getConnection(DriverManager.java:193)


 In my catalina.policy I have

 grant {
 permission java.lang.RuntimePermission
 accessClassInPackage.sun.reflect; permission java.lang.RuntimePermission
 accessClassInPackage.sun.reflect.*;
 permission java.lang.RuntimePermission setContextClassLoader;

 };


 I don't see this specific set of circumstances in the bug data base and
 the above works in Tomcat 4.1.27.

 ANY help greatly appreciated!

 Bob



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



RE: cleaning up a removed webapp

2004-06-30 Thread Holly, Michael
Dave 

I'm not sure what your in memory db is but here is how I handled a
similar problem. My application uses connection pooling.  I had problems
with my connection pools not being cleaned up. I added a contextListener
that keeps track of the pools and then when the context is destroyed it
cleans up the pools.  You could probably use the same technique for your
in memory database.

Does this sound like what you are wanting to do?

Michael




-Original Message-
From: David Vollberg [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 10:53 AM
To: [EMAIL PROTECTED]
Subject: cleaning up a removed webapp


I am trying to upgrade one of the webapps running on my Tomcat
instance(version 4.1.x). To do so, I am removing a webapp from my Tomcat
instance by using http://localhost:8080/manager/remove?path=/app. This
app is running an in-memory database that isn't being cleaned up. When I
go to install a newer version of my app(using manager/install), I am
getting out of memory errors. I want to avoid having to shutdown Tomcat
because that would take other webapps offline. I know I could increase
the memory size for the instance, but am looking for a cleaner solution.
Is there a listener hook or method I can put code into to shut down the
database and otherwise clean up the app before it is removed by Tomcat?

Thanks,
Dave

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



RE: Tomcat - MySQL = No suitable driver ERROR

2004-06-30 Thread Briggs, Patrick
If the webapps.xml file is supposed to be located in Catalina\localhost, the
apache's own website documentation JDBC-HOWTO needs to be updated to reflect
that new situation.  I'm surprised they haven't updated it because I'm sure
a lot of other people are going to be having the same problems I am.

I have made all of the changes you have suggest.  the mysql.jar file has
been deleted everywhere except for {CATALINA_HOME}/shared/lib where I have
now placed it.

I have created a file called DBTest.xml over in
/conf/Catalina/localhost/DBTest.xml

I used your template for the XML find changing it where it needs changes for
URL and username/password.

Still getting the same error message :(
So now what could it be?

-Original Message-
From: Jan Behrens [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 1:58 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat - MySQL = No suitable driver ERROR


Hi Patrick,

the problem might be that in Tomcat 5.x the storage of the context related
configuration changed from server.xml to a sepparate file for each webapp.
This file should be stored under
{Catalina_Home}\conf\Catalina\{domain-name}\myWebAppName.xml where
Catalina_Home points to your Tomcat installation dir and domain_name usually
would be localhost in a dev-environment. 

If you have a webapp called myWebApp and want to setup a datastore via jndi
for same to use in Tomcat 5 you could use the following as a basis for a
myWebApp.xml file stored under
{Catalina_Home}\conf\Catalina\{domain-name}\myWebAppName.xml:


?xml version='1.0' encoding='utf-8'?
Context debug=5 displayName=myWebApp docBase=myWebApp 
path=/myWebApp reloadable=true
workDir=work\Catalina\localhost\myWebApp

  Resource auth=Container name=jdbc/myWebApp
type=javax.sql.DataSource/
  ResourceParams name=jdbc/myWebApp
parameter
  nameurl/name
 
valuejdbc:mysql://NAME_OR_IP_OF_MYSQL_SERVER:3306/NAME_OF_DATABASE?autoRec
onnect=true/value
/parameter
parameter
  namemaxIdle/name
  value15/value
/parameter
parameter
  namemaxActive/name
  value50/value
/parameter
parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.Driver/value
/parameter
parameter
  namemaxWait/name
  value1/value
/parameter
parameter
  nameremoveAbandoned/name
  valuetrue/value
/parameter
parameter
  nameusername/name
  valueUSERNAME/value
/parameter
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
  nameremoveAbandonedTimeout/name
  value60/value
/parameter
parameter
  namepassword/name
  valuePASSWORD/value
/parameter
  /ResourceParams
/Context

The MySQL driver does have to go under {Catalina_Home}\shared\lib! Delete
any other copies you might have placed in your WEB-INF\lib or anywhere else.
You should also remove the context/context you inserted in
server.xml as this should all go in the myWebApp.xml file. 

If you ever deploy your webapp you then only have to copy your myWebApp.xml
to the Manifest dir in your webapp root dir before creating the war-file and
Tomcat will automatically create the correct context for your webapp.

HTH, Jan


This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential or privileged
information.  Any unauthorized review, use, disclosure or distribution is
prohibited.  If you are not the intended recipient, please contact the
sender by reply e-mail and destroy the message.


Tomcat Status page

2004-06-30 Thread Hollerman Geralyn M
Another question about the Tomcat status page -
Concerning the list of requests for a particular connector -
Is there anything in particular pointed to if one (or more) requests remains 
until a restart of the server? I have seen times in the Time column (which I 
understand indicates the elasped time in processing the request) that are in the 
 hundreds of millions of ms. However, there ARE requests that come and go as 
expected. Do the long-lasting ones indicate an error, and if so, what would tell 
me if the error is in the code or some user or network problem?

Thanks!
--
Lynn Hollerman.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: re: Tomcat unexpectedly shuts down

2004-06-30 Thread Bliesner, Christopher P
Is anybody working this?

Chris Bliesner
Lead Oracle DBA/Unix admin
Wk Phone 915-834-1757


-Original Message-
From: Bliesner, Christopher P 
Sent: Tuesday, June 29, 2004 10:37 AM
To: Tomcat Users List
Subject: FW: re: Tomcat unexpectedly shuts down
Importance: High

Hello-I am working with version 4.1.12 and today, Tomcat shut down
unexpectedly with the following error:

 

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

java.lang.NullPointerException

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 

 

Is this a BUG or ?

 

Chris Bliesner

Lead Oracle DBA/Unix admin

Wk Phone 915-834-1757

 


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



RE: re: Tomcat unexpectedly shuts down

2004-06-30 Thread Kannan Sundararajan
No one.


-Original Message-
From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 1:57 PM
To: Tomcat Users List
Subject: RE: re: Tomcat unexpectedly shuts down


Is anybody working this?

Chris Bliesner
Lead Oracle DBA/Unix admin
Wk Phone 915-834-1757


-Original Message-
From: Bliesner, Christopher P 
Sent: Tuesday, June 29, 2004 10:37 AM
To: Tomcat Users List
Subject: FW: re: Tomcat unexpectedly shuts down
Importance: High

Hello-I am working with version 4.1.12 and today, Tomcat shut down
unexpectedly with the following error:

 

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

java.lang.NullPointerException

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 

 

Is this a BUG or ?

 

Chris Bliesner

Lead Oracle DBA/Unix admin

Wk Phone 915-834-1757

 


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

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



RE: re: Tomcat unexpectedly shuts down

2004-06-30 Thread Robert Harper
What does your code do at line 33 in VqaNcDB.searchVqaNc()?  I would try to
correct that problem first.

Robert S. Harper
 -Original Message-
 From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 30, 2004 11:57 AM
 To: Tomcat Users List
 Subject: RE: re: Tomcat unexpectedly shuts down
 
 Is anybody working this?
 
 Chris Bliesner
 Lead Oracle DBA/Unix admin
 Wk Phone 915-834-1757
 
 
 -Original Message-
 From: Bliesner, Christopher P
 Sent: Tuesday, June 29, 2004 10:37 AM
 To: Tomcat Users List
 Subject: FW: re: Tomcat unexpectedly shuts down
 Importance: High
 
 Hello-I am working with version 4.1.12 and today, Tomcat shut down
 unexpectedly with the following error:
 
 
 
 2004-06-29 09:32:07 StandardWrapperValve[invoker]: Servlet.service() for
 servlet invoker threw exception
 
 java.lang.NullPointerException
 
 at ewovqa.VqaNcDB.searchVqaNc(VqaNcDB.java:33)
 
 at ewovqa.VqaNcSrv.doGet(VqaNcSrv.java:83)
 
 at ewovqa.VqaNcSrv.doPost(VqaNcSrv.java:116)
 
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 at
 org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.
 java:458)
 
 at
 org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:2
 16)
 
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
 tionFilterChain.java:247)
 
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
 erChain.java:193)
 
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
 e.java:260)
 
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:643)
 
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
 80)
 
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
 e.java:191)
 
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:643)
 
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
 80)
 
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:239
 6)
 
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
 :180)
 
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:643)
 
 at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
 lve.java:170)
 
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:641)
 
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
 :172)
 
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:641)
 
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
 80)
 
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
 java:174)
 
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:643)
 
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
 80)
 
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 
 at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 
 at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:40
 5)
 
 at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
 onnection(Http11Protocol.java:380)
 
 at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:50
 8)
 
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
 .java:533)
 
 at java.lang.Thread.run(Thread.java:484)
 
 
 
 
 
 Is this a BUG or ?
 
 
 
 Chris Bliesner
 
 Lead Oracle DBA/Unix admin
 
 Wk Phone 915-834-1757
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 




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



no connection pool

2004-06-30 Thread Yana Begun
Hi,

How can I set tomcat not to use connection pool option?

 



RE: no connection pool

2004-06-30 Thread Shapira, Yoav

Hi,
It doesn't do any connection pooling by default.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Yana Begun [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 2:21 PM
To: [EMAIL PROTECTED]
Subject: no connection pool

Hi,

How can I set tomcat not to use connection pool option?






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


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



RE: no connection pool

2004-06-30 Thread Yana Begun
Do you mean that if no maxActive parameter, there is no pool?

Thanks,
Yana

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:28 PM
To: Tomcat Users List
Subject: RE: no connection pool


Hi,
It doesn't do any connection pooling by default.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Yana Begun [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 2:21 PM
To: [EMAIL PROTECTED]
Subject: no connection pool

Hi,

How can I set tomcat not to use connection pool option?






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


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


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



RE: no connection pool

2004-06-30 Thread Lee, Paul NYC
He means that when you first install tomcat there is no pool configured.  

-Original Message-
From: Yana Begun [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:33 PM
To: Tomcat Users List
Subject: RE: no connection pool


Do you mean that if no maxActive parameter, there is no pool?

Thanks,
Yana

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:28 PM
To: Tomcat Users List
Subject: RE: no connection pool


Hi,
It doesn't do any connection pooling by default.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Yana Begun [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 2:21 PM
To: [EMAIL PROTECTED]
Subject: no connection pool

Hi,

How can I set tomcat not to use connection pool option?






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


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


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

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



RE: no connection pool

2004-06-30 Thread Yana Begun
So what should I do to disable it after it already configured?


-Original Message-
From: Lee, Paul NYC [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:36 PM
To: 'Tomcat Users List'
Subject: RE: no connection pool

He means that when you first install tomcat there is no pool configured.


-Original Message-
From: Yana Begun [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:33 PM
To: Tomcat Users List
Subject: RE: no connection pool


Do you mean that if no maxActive parameter, there is no pool?

Thanks,
Yana

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:28 PM
To: Tomcat Users List
Subject: RE: no connection pool


Hi,
It doesn't do any connection pooling by default.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Yana Begun [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 2:21 PM
To: [EMAIL PROTECTED]
Subject: no connection pool

Hi,

How can I set tomcat not to use connection pool option?






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


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


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

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


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



RE: no connection pool

2004-06-30 Thread Lee, Paul NYC
In Server.xml, remove all the Resource  and ResourceParams ... tags
that define your pool.

-Original Message-
From: Yana Begun [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:38 PM
To: Tomcat Users List
Subject: RE: no connection pool


So what should I do to disable it after it already configured?


-Original Message-
From: Lee, Paul NYC [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:36 PM
To: 'Tomcat Users List'
Subject: RE: no connection pool

He means that when you first install tomcat there is no pool configured.


-Original Message-
From: Yana Begun [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:33 PM
To: Tomcat Users List
Subject: RE: no connection pool


Do you mean that if no maxActive parameter, there is no pool?

Thanks,
Yana

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:28 PM
To: Tomcat Users List
Subject: RE: no connection pool


Hi,
It doesn't do any connection pooling by default.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Yana Begun [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 2:21 PM
To: [EMAIL PROTECTED]
Subject: no connection pool

Hi,

How can I set tomcat not to use connection pool option?






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


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


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

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


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

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



RE: no connection pool

2004-06-30 Thread Yana Begun
Thanks,
Now even I can understand.


-Original Message-
From: Lee, Paul NYC [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:41 PM
To: 'Tomcat Users List'
Subject: RE: no connection pool

In Server.xml, remove all the Resource  and ResourceParams ...
tags
that define your pool.

-Original Message-
From: Yana Begun [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:38 PM
To: Tomcat Users List
Subject: RE: no connection pool


So what should I do to disable it after it already configured?


-Original Message-
From: Lee, Paul NYC [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:36 PM
To: 'Tomcat Users List'
Subject: RE: no connection pool

He means that when you first install tomcat there is no pool configured.


-Original Message-
From: Yana Begun [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:33 PM
To: Tomcat Users List
Subject: RE: no connection pool


Do you mean that if no maxActive parameter, there is no pool?

Thanks,
Yana

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:28 PM
To: Tomcat Users List
Subject: RE: no connection pool


Hi,
It doesn't do any connection pooling by default.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Yana Begun [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 2:21 PM
To: [EMAIL PROTECTED]
Subject: no connection pool

Hi,

How can I set tomcat not to use connection pool option?






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


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


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

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


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

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


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



Re: Tomcat - MySQL = No suitable driver ERROR

2004-06-30 Thread David Smith
Wrong place for mysql jar file.  It should be in 
{TOMCAT_HOME}/common/lib right along side the DBCP jar file.

--David
Briggs, Patrick wrote:
If the webapps.xml file is supposed to be located in Catalina\localhost, the
apache's own website documentation JDBC-HOWTO needs to be updated to reflect
that new situation.  I'm surprised they haven't updated it because I'm sure
a lot of other people are going to be having the same problems I am.
I have made all of the changes you have suggest.  the mysql.jar file has
been deleted everywhere except for {CATALINA_HOME}/shared/lib where I have
now placed it.
I have created a file called DBTest.xml over in
/conf/Catalina/localhost/DBTest.xml
I used your template for the XML find changing it where it needs changes for
URL and username/password.
Still getting the same error message :(
So now what could it be?
-Original Message-
From: Jan Behrens [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 1:58 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat - MySQL = No suitable driver ERROR
Hi Patrick,
the problem might be that in Tomcat 5.x the storage of the context related
configuration changed from server.xml to a sepparate file for each webapp.
This file should be stored under
{Catalina_Home}\conf\Catalina\{domain-name}\myWebAppName.xml where
Catalina_Home points to your Tomcat installation dir and domain_name usually
would be localhost in a dev-environment. 

If you have a webapp called myWebApp and want to setup a datastore via jndi
for same to use in Tomcat 5 you could use the following as a basis for a
myWebApp.xml file stored under
{Catalina_Home}\conf\Catalina\{domain-name}\myWebAppName.xml:
?xml version='1.0' encoding='utf-8'?
Context debug=5 displayName=myWebApp docBase=myWebApp 
path=/myWebApp reloadable=true
workDir=work\Catalina\localhost\myWebApp
 Resource auth=Container name=jdbc/myWebApp
type=javax.sql.DataSource/
 ResourceParams name=jdbc/myWebApp
   parameter
 nameurl/name
valuejdbc:mysql://NAME_OR_IP_OF_MYSQL_SERVER:3306/NAME_OF_DATABASE?autoRec
onnect=true/value
   /parameter
   parameter
 namemaxIdle/name
 value15/value
   /parameter
   parameter
 namemaxActive/name
 value50/value
   /parameter
   parameter
 namedriverClassName/name
 valuecom.mysql.jdbc.Driver/value
   /parameter
   parameter
 namemaxWait/name
 value1/value
   /parameter
   parameter
 nameremoveAbandoned/name
 valuetrue/value
   /parameter
   parameter
 nameusername/name
 valueUSERNAME/value
   /parameter
   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 nameremoveAbandonedTimeout/name
 value60/value
   /parameter
   parameter
 namepassword/name
 valuePASSWORD/value
   /parameter
 /ResourceParams
/Context
The MySQL driver does have to go under {Catalina_Home}\shared\lib! Delete
any other copies you might have placed in your WEB-INF\lib or anywhere else.
You should also remove the context/context you inserted in
server.xml as this should all go in the myWebApp.xml file. 

If you ever deploy your webapp you then only have to copy your myWebApp.xml
to the Manifest dir in your webapp root dir before creating the war-file and
Tomcat will automatically create the correct context for your webapp.
HTH, Jan
This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential or privileged
information.  Any unauthorized review, use, disclosure or distribution is
prohibited.  If you are not the intended recipient, please contact the
sender by reply e-mail and destroy the message.
 

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


Re: Tomcat process memory growth

2004-06-30 Thread Pete Stokes
Question regarding tomcat connectors to apache :
I've experimented with jk jk2 etc, but always found performance to be 
degraded noticably when using apache in front of tomcat with connectors, 
but with tomcat alone it's fine. I've done a reverse proxy from apache 
to tomcat and that flies, so have other people experience the same with 
connectors ?

I know connectors are good for load balancing, but connecting a single 
apache to a single tomcat performance wise, does it work 

Pete.

Adrian Barnett wrote:
On Wed, 30 Jun 2004 18:05:01 +0530, Surendra Kumar 
[EMAIL PROTECTED]  wrote:

Hi
I am using Tomcat 4.1.29 and JDK 1.4.2_04 in my application.  
The  total memory of the process ( VM + Real Memory)
keeps on increasing.  The heap size of VM is not increasing  ( 
verified by printing the free memory) , but the total memory
used by the process increasing.
   Any ideas on how to fix it ?

Are you using mod_jk2 to connect to Apache?
If so, try adding the line
request.registerRequests=false
to your jk2.properties file.
I was also getting a memory-creep until I set that flag.


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


RE: Tomcat - MySQL = No suitable driver ERROR

2004-06-30 Thread Briggs, Patrick
Ok, I have it in the common/lib directory, but that didn't make a
difference.  You'd think there would be a lot easier way to setup stuff like
this.  Editing XML files is pretty tricky business.

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 12:19 PM
To: Tomcat Users List
Subject: Re: Tomcat - MySQL = No suitable driver ERROR


Wrong place for mysql jar file.  It should be in 
{TOMCAT_HOME}/common/lib right along side the DBCP jar file.

--David

Briggs, Patrick wrote:

If the webapps.xml file is supposed to be located in Catalina\localhost,
the
apache's own website documentation JDBC-HOWTO needs to be updated to
reflect
that new situation.  I'm surprised they haven't updated it because I'm sure
a lot of other people are going to be having the same problems I am.

I have made all of the changes you have suggest.  the mysql.jar file has
been deleted everywhere except for {CATALINA_HOME}/shared/lib where I have
now placed it.

I have created a file called DBTest.xml over in
/conf/Catalina/localhost/DBTest.xml

I used your template for the XML find changing it where it needs changes
for
URL and username/password.

Still getting the same error message :(
So now what could it be?

-Original Message-
From: Jan Behrens [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 1:58 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat - MySQL = No suitable driver ERROR


Hi Patrick,

the problem might be that in Tomcat 5.x the storage of the context related
configuration changed from server.xml to a sepparate file for each webapp.
This file should be stored under
{Catalina_Home}\conf\Catalina\{domain-name}\myWebAppName.xml where
Catalina_Home points to your Tomcat installation dir and domain_name
usually
would be localhost in a dev-environment. 

If you have a webapp called myWebApp and want to setup a datastore via jndi
for same to use in Tomcat 5 you could use the following as a basis for a
myWebApp.xml file stored under
{Catalina_Home}\conf\Catalina\{domain-name}\myWebAppName.xml:


?xml version='1.0' encoding='utf-8'?
Context debug=5 displayName=myWebApp docBase=myWebApp 
path=/myWebApp reloadable=true
workDir=work\Catalina\localhost\myWebApp

  Resource auth=Container name=jdbc/myWebApp
type=javax.sql.DataSource/
  ResourceParams name=jdbc/myWebApp
parameter
  nameurl/name
 
valuejdbc:mysql://NAME_OR_IP_OF_MYSQL_SERVER:3306/NAME_OF_DATABASE?autoRe
c
onnect=true/value
/parameter
parameter
  namemaxIdle/name
  value15/value
/parameter
parameter
  namemaxActive/name
  value50/value
/parameter
parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.Driver/value
/parameter
parameter
  namemaxWait/name
  value1/value
/parameter
parameter
  nameremoveAbandoned/name
  valuetrue/value
/parameter
parameter
  nameusername/name
  valueUSERNAME/value
/parameter
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
  nameremoveAbandonedTimeout/name
  value60/value
/parameter
parameter
  namepassword/name
  valuePASSWORD/value
/parameter
  /ResourceParams
/Context

The MySQL driver does have to go under {Catalina_Home}\shared\lib! Delete
any other copies you might have placed in your WEB-INF\lib or anywhere
else.
You should also remove the context/context you inserted in
server.xml as this should all go in the myWebApp.xml file. 

If you ever deploy your webapp you then only have to copy your myWebApp.xml
to the Manifest dir in your webapp root dir before creating the war-file
and
Tomcat will automatically create the correct context for your webapp.

HTH, Jan


This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential or privileged
information.  Any unauthorized review, use, disclosure or distribution is
prohibited.  If you are not the intended recipient, please contact the
sender by reply e-mail and destroy the message.

  


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

This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential or privileged
information.  Any unauthorized review, use, disclosure or distribution is
prohibited.  If you are not the intended recipient, please contact the
sender by reply e-mail and destroy the message.


Apache - tomcat connections grow very fast

2004-06-30 Thread Stephen Carville
Every once in  a while, the number of connections between apache and tomcat 
grows very rapidally, going from 12 or so up to over 150 in a matter of about 
10 minutes.  This quickly causes the number of httpd processes to exceed 
MaxClients and apache stops accepting new connections.  Restarting tomcat 
relieves the symptom.  This is a recent development that first came to my 
attention abtu two weeks ago.

When the problem happens, 'netstat -natp' shows a bunch of connections like:

tcp0  0 127.0.0.1:39164 127.0.0.1:8009  
ESTABLISHED 21886/httpd

with a corresponding connection for the tomcat end:

tcp0  0 127.0.0.1:8009  127.0.0.1:39164 
ESTABLISHED 31723/java

Normally there are about 8 to 12 connections between apache and tomcat.  I 
cannot figure out why the number suddenly peaks like this.  I've scoured the 
http logs and turned on debugging for mod_jk but nothing I've tried so far 
fixes it.  I've had the developers do some extra logging to see if any recent 
code changes could be causing it but that too has proved fruitless.

Suggestions are welcome.

-- 
Stephen Carville
Unix and Network Adminstrator
DPSI
6033 W.Century Blvd.
Los Angeles, CA 90045
310-342-3602

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



Re: Tomcat - MySQL = No suitable driver ERROR

2004-06-30 Thread David Smith
I've set this up I don't know how many times and only ever had problems 
when I've mispelled the JNDI name I gave it somewhere in the 4 places it 
was specified.  Others have had issue with the order of parameters in 
the ResourceParams block.  To be on the safe side, follow the order of 
parameters given in the jndi-datasource-howto.html page you were 
following.  That's the same page I followed when I did this for the 
first time.

I take it you've:
1)  defined a Resource/ and ResouceParams/ block in your 
{context}.xml file that's stored in the 
{TOMCAT_HOME}/conf/Catalina/localhost folder.  Both Resource/ and 
ResourceParams.../ResourceParams sections have the same JNDI name in 
their name attributes.  I'd recommend all lower case since case is 
important in java.

2) Placed a resource-ref.../resource-ref in your WEB-INF/web.xml 
file with the res-ref-name.../res-ref-name tag specifying the same 
JNDI name specified in the {context}.xml file above.  I keep harping on 
the same JNDI name because this is where I've been messed up before.

3) Did a lookup for java:comp/env/{your JNDI name here} in your java code.
4) Restarted the tomcat service after putting the mysql jar file in 
common/lib so the tomcat classloaders can see it.

Can you post what you do have in {context}.xml and web.xml and just omit 
the username and password for the database or put in bogus ones for the 
purposes of posting to the list?  An excerpt of your java code where you 
attempt to access the db would be good as well.

--David
Briggs, Patrick wrote:
Ok, I have it in the common/lib directory, but that didn't make a
difference.  You'd think there would be a lot easier way to setup stuff like
this.  Editing XML files is pretty tricky business.
-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 12:19 PM
To: Tomcat Users List
Subject: Re: Tomcat - MySQL = No suitable driver ERROR
Wrong place for mysql jar file.  It should be in 
{TOMCAT_HOME}/common/lib right along side the DBCP jar file.

--David
Briggs, Patrick wrote:
 

If the webapps.xml file is supposed to be located in Catalina\localhost,
   

the
 

apache's own website documentation JDBC-HOWTO needs to be updated to
   

reflect
 

that new situation.  I'm surprised they haven't updated it because I'm sure
a lot of other people are going to be having the same problems I am.
I have made all of the changes you have suggest.  the mysql.jar file has
been deleted everywhere except for {CATALINA_HOME}/shared/lib where I have
now placed it.
I have created a file called DBTest.xml over in
/conf/Catalina/localhost/DBTest.xml
I used your template for the XML find changing it where it needs changes
   

for
 

URL and username/password.
Still getting the same error message :(
So now what could it be?
-Original Message-
From: Jan Behrens [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 1:58 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat - MySQL = No suitable driver ERROR
Hi Patrick,
the problem might be that in Tomcat 5.x the storage of the context related
configuration changed from server.xml to a sepparate file for each webapp.
This file should be stored under
{Catalina_Home}\conf\Catalina\{domain-name}\myWebAppName.xml where
Catalina_Home points to your Tomcat installation dir and domain_name
   

usually
 

would be localhost in a dev-environment. 

If you have a webapp called myWebApp and want to setup a datastore via jndi
for same to use in Tomcat 5 you could use the following as a basis for a
myWebApp.xml file stored under
{Catalina_Home}\conf\Catalina\{domain-name}\myWebAppName.xml:
?xml version='1.0' encoding='utf-8'?
Context debug=5 displayName=myWebApp docBase=myWebApp 
path=/myWebApp reloadable=true
workDir=work\Catalina\localhost\myWebApp
Resource auth=Container name=jdbc/myWebApp
type=javax.sql.DataSource/
ResourceParams name=jdbc/myWebApp
  parameter
nameurl/name
valuejdbc:mysql://NAME_OR_IP_OF_MYSQL_SERVER:3306/NAME_OF_DATABASE?autoRe
   

c
 

onnect=true/value
  /parameter
  parameter
namemaxIdle/name
value15/value
  /parameter
  parameter
namemaxActive/name
value50/value
  /parameter
  parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
  /parameter
  parameter
namemaxWait/name
value1/value
  /parameter
  parameter
nameremoveAbandoned/name
valuetrue/value
  /parameter
  parameter
nameusername/name
valueUSERNAME/value
  /parameter
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
nameremoveAbandonedTimeout/name
value60/value
  /parameter
  parameter
namepassword/name
valuePASSWORD/value
  /parameter
/ResourceParams
/Context
The MySQL driver does have to go under {Catalina_Home}\shared\lib! Delete
any other copies you might have placed in your WEB-INF\lib or anywhere
   

else.
 

You should also remove the context/context you inserted in

RE: Tomcat - MySQL = No suitable driver ERROR

2004-06-30 Thread Jan Behrens
Hi Patrick,

shared/lib is quite ok - that is where mine resides and everything works
just fine... The content of myWebApp,xml is straight out of my one two and
my db connection works just fine. The question would be when and where you
actually get that error. Have you turned on logging for your webapp and
ensured that the jndi ressource is really there? There should be an entry
(depending on your logging level) like this there:

2004-06-30 14:59:06 NamingContextListener[/Catalina/localhost/myWebApp]:
Adding resource ref jdbc/myWebApp
2004-06-30 14:59:06 NamingContextListener[/Catalina/localhost/myWebApp]:
ResourceRef[className=javax.sql.DataSource,factoryClassLocation=null,factory
ClassName=org.apache.naming.factory.ResourceFactory,{type=scope,content=Shar
eable},{type=auth,content=Container},{type=url,content=jdbc:mysql://loalhost
:3306/myWebApp?autoReconnect=true},{type=maxIdle,content=15},{type=maxActive
,content=50},{type=driverClassName,content=com.mysql.jdbc.Driver},{type=maxW
ait,content=1},{type=removeAbandoned,content=true},{type=username,conten
t=myWebApp},{type=factory,content=org.apache.commons.dbcp.BasicDataSourceFac
tory},{type=removeAbandonedTimeout,content=60},{type=password,content=secret
}]

If that does not help, add the following inside web-app of your web.xml
(should be in webapps WEB-INF dir). 

  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/myWebApp/res-ref-name !-- exchange myWebApp with
whatever you have named your datasource in the context/ --
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref

Best you then delete all contents of
{CATALINA_HOME}\work\localhost\myWebApp\ and restart Tomcat. Then check your
logs and see whether it finds and intializes the ressource.

HTH, Jan

-Original Message-
From: Briggs, Patrick [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 9:47 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat - MySQL = No suitable driver ERROR


Ok, I have it in the common/lib directory, but that didn't make a
difference.  You'd think there would be a lot easier way to setup stuff like
this.  Editing XML files is pretty tricky business.

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 12:19 PM
To: Tomcat Users List
Subject: Re: Tomcat - MySQL = No suitable driver ERROR


Wrong place for mysql jar file.  It should be in 
{TOMCAT_HOME}/common/lib right along side the DBCP jar file.

--David

Briggs, Patrick wrote:

If the webapps.xml file is supposed to be located in 
Catalina\localhost,
the
apache's own website documentation JDBC-HOWTO needs to be updated to
reflect
that new situation.  I'm surprised they haven't updated it because I'm 
sure a lot of other people are going to be having the same problems I 
am.

I have made all of the changes you have suggest.  the mysql.jar file 
has been deleted everywhere except for {CATALINA_HOME}/shared/lib where 
I have now placed it.

I have created a file called DBTest.xml over in 
/conf/Catalina/localhost/DBTest.xml

I used your template for the XML find changing it where it needs 
changes
for
URL and username/password.

Still getting the same error message :(
So now what could it be?

-Original Message-
From: Jan Behrens [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 1:58 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat - MySQL = No suitable driver ERROR


Hi Patrick,

the problem might be that in Tomcat 5.x the storage of the context 
related configuration changed from server.xml to a sepparate file for 
each webapp. This file should be stored under 
{Catalina_Home}\conf\Catalina\{domain-name}\myWebAppName.xml where 
Catalina_Home points to your Tomcat installation dir and domain_name
usually
would be localhost in a dev-environment.

If you have a webapp called myWebApp and want to setup a datastore via 
jndi for same to use in Tomcat 5 you could use the following as a basis 
for a myWebApp.xml file stored under
{Catalina_Home}\conf\Catalina\{domain-name}\myWebAppName.xml:


?xml version='1.0' encoding='utf-8'?
Context debug=5 displayName=myWebApp docBase=myWebApp  
path=/myWebApp reloadable=true 
workDir=work\Catalina\localhost\myWebApp

  Resource auth=Container name=jdbc/myWebApp 
type=javax.sql.DataSource/
  ResourceParams name=jdbc/myWebApp
parameter
  nameurl/name
 
valuejdbc:mysql://NAME_OR_IP_OF_MYSQL_SERVER:3306/NAME_OF_DATABASE?au
toRe
c
onnect=true/value
/parameter
parameter
  namemaxIdle/name
  value15/value
/parameter
parameter
  namemaxActive/name
  value50/value
/parameter
parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.Driver/value
/parameter
parameter
  namemaxWait/name
  value1/value
/parameter
parameter
  nameremoveAbandoned/name
  valuetrue/value
/parameter
parameter
  nameusername/name
  valueUSERNAME/value
/parameter

RE: Tomcat - MySQL = No suitable driver ERROR

2004-06-30 Thread Briggs, Patrick
I'm using an example someone else on this list gave me. 

So inside of {CATALINA_HOME}/conf/Catalina/localhost/DBTest.xml

?xml version='1.0' encoding='utf-8'?
Context debug=5 displayName=DBtest docBase=DBTest
path=/DBtest reloadable=true
workDir=work\Catalina\localhost\DBTest

  Resource auth=Container name=jdbc/DBTest
type=javax.sql.DataSource/
  ResourceParams name=jdbc/DBTest
parameter
  nameurl/name
valuejdbc:mysql://cir-ops:3306/javatest?autoReconnect=true/value
/parameter
parameter
  namemaxIdle/name
  value15/value
/parameter
parameter
  namemaxActive/name
  value50/value
/parameter
parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.Driver/value
/parameter
parameter
  namemaxWait/name
  value1/value
/parameter
parameter
  nameremoveAbandoned/name
  valuetrue/value
/parameter
parameter
  nameusername/name
  valuejavauser/value
/parameter
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
  nameremoveAbandonedTimeout/name
  value60/value
/parameter
parameter
  namepassword/name
  valuejavadude/value
/parameter
  /ResourceParams
/Context

The contents of {Catalina_Home}/webapps/DBTest/WEB-INF/DBTest.xml

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4
  descriptionMySQL Test App/description
  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/DBTest/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
 
  /web-app

Contents of {Catalina_Home/webapps/DBTest/test.jsp:

%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %

sql:query var=rs dataSource=jdbc/DBTest
select id, foo, bar from testdata
/sql:query

html
  head
titleDB Test/title
  /head
  body

  h2Results/h2
  
c:forEach var=row items=${rs.rows}
Foo ${row.foo}br/
Bar ${row.bar}br/
/c:forEach

  /body
/html

The error message displayed on the web-broser for the URL:
http://localhost:8080/DBTest/test.jsp

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

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

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

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

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


root cause 

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

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

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

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

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


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 1:33 PM
To: Tomcat Users List
Subject: Re: Tomcat - MySQL = No suitable driver ERROR


I've set this up I don't know how many times and only ever had problems 
when I've mispelled the JNDI name I gave it somewhere in the 4 places it 
was specified.  Others have had issue with the order of parameters in 
the ResourceParams block.  To be on the safe side, follow the order of 
parameters given in the jndi-datasource-howto.html 

How can i restart/reload a webapplication from within a servlet ?

2004-06-30 Thread Hussayn Dabbous
Hi;
I have created an installation Servlet, which
gathers some information from the administrator upon
first startup after installation of my webapp.
Everything is running fine, but at the end the
Servlet should restart/reload the webapplication
in which it is running.
I haven't found any hint how i could get this done.
Of course i could simply set autoreload='true', but
this is no good idea for production and has several
other drawbacks in my environment.
if there is a standard solution available, that would
be great. If there is a solution, which only works for
tomcat, that would be ok, if i could figure out from
the servlet, that i am running on a tomcat appserver...
any ideas ?
regards, Hussayn

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


I need help about deploying a servlet in tomcat

2004-06-30 Thread Brian SJ Wong
Dear friends,
 
I just installed tomcat 5 in my machine. I put it in the the folder c:\Program 
Files\Apache Group\Apache\Tomcat 5.0. I tried to run the servlet examples and they are 
ok. However, I would like to try my own servlet. I wrote the HelloWorld.java and put 
it in the folder C:\Program Files\Apache Group\Apache\Tomcat 
5.0\webapps\ROOT\WEB-INF\classes. I thought that I could just access it by 
http://localhost:8081/servlet/HelloWorld. I was hoping that the Tomcat would compile 
the java code automatically. However, it didn't happen and I got the status code 404, 
stating that the servlet couldn't be found.
 
These are the stuff that I did
1. I set the environment variable CATALINA_HOME and CATALINA_BASE to c:\Program 
Files\Apache Group\Apache\Tomcat 5.0
2. I put the description of the servlet HelloWorld to the file web.xml in the webapp 
folder.
 
I really appreciate if I could get some helps. Thank you very much.
 
Cheers,
 
Brian



-
ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself 


-
 ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself 

RE: I need help about deploying a servlet in tomcat

2004-06-30 Thread Schalk
Did you compile the .java file and place the .class file in that folder?

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

:: -Original Message-
:: From: Brian SJ Wong [mailto:[EMAIL PROTECTED]
:: Sent: Wednesday, June 30, 2004 11:08 PM
:: To: [EMAIL PROTECTED]
:: Subject: I need help about deploying a servlet in tomcat
:: 
:: Dear friends,
:: 
:: I just installed tomcat 5 in my machine. I put it in the the folder
c:\Program
:: Files\Apache Group\Apache\Tomcat 5.0. I tried to run the servlet examples
and they
:: are ok. However, I would like to try my own servlet. I wrote the
HelloWorld.java and
:: put it in the folder C:\Program Files\Apache Group\Apache\Tomcat
:: 5.0\webapps\ROOT\WEB-INF\classes. I thought that I could just access it
by
:: http://localhost:8081/servlet/HelloWorld. I was hoping that the Tomcat
would
:: compile the java code automatically. However, it didn't happen and I got
the status
:: code 404, stating that the servlet couldn't be found.
:: 
:: These are the stuff that I did
:: 1. I set the environment variable CATALINA_HOME and CATALINA_BASE to
:: c:\Program Files\Apache Group\Apache\Tomcat 5.0
:: 2. I put the description of the servlet HelloWorld to the file web.xml in
the webapp
:: folder.
:: 
:: I really appreciate if I could get some helps. Thank you very much.
:: 
:: Cheers,
:: 
:: Brian
:: 
:: 
:: 
:: -
:: ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself
:: 
:: 
:: -
::  ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself



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



RE: I need help about deploying a servlet in tomcat

2004-06-30 Thread Schalk
Also can you post the code in your web.xml where you set-up the servlet and
where did you place the web.xml?

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

:: -Original Message-
:: From: Brian SJ Wong [mailto:[EMAIL PROTECTED]
:: Sent: Wednesday, June 30, 2004 11:08 PM
:: To: [EMAIL PROTECTED]
:: Subject: I need help about deploying a servlet in tomcat
:: 
:: Dear friends,
:: 
:: I just installed tomcat 5 in my machine. I put it in the the folder
c:\Program
:: Files\Apache Group\Apache\Tomcat 5.0. I tried to run the servlet examples
and they
:: are ok. However, I would like to try my own servlet. I wrote the
HelloWorld.java and
:: put it in the folder C:\Program Files\Apache Group\Apache\Tomcat
:: 5.0\webapps\ROOT\WEB-INF\classes. I thought that I could just access it
by
:: http://localhost:8081/servlet/HelloWorld. I was hoping that the Tomcat
would
:: compile the java code automatically. However, it didn't happen and I got
the status
:: code 404, stating that the servlet couldn't be found.
:: 
:: These are the stuff that I did
:: 1. I set the environment variable CATALINA_HOME and CATALINA_BASE to
:: c:\Program Files\Apache Group\Apache\Tomcat 5.0
:: 2. I put the description of the servlet HelloWorld to the file web.xml in
the webapp
:: folder.
:: 
:: I really appreciate if I could get some helps. Thank you very much.
:: 
:: Cheers,
:: 
:: Brian
:: 
:: 
:: 
:: -
:: ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself
:: 
:: 
:: -
::  ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself



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



RE: I need help about deploying a servlet in tomcat

2004-06-30 Thread Brian SJ Wong
Dear Schalk,
 
When I tried to compile it there are  some errors which says the same things when i 
tried to compile the .java file from the servlet-examples folder. I guess I missed 
doing some configurations which I am not familiar with.

Schalk [EMAIL PROTECTED] wrote:
Did you compile the .java file and place the .class file in that folder?

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Brian SJ Wong [mailto:[EMAIL PROTECTED]
:: Sent: Wednesday, June 30, 2004 11:08 PM
:: To: [EMAIL PROTECTED]
:: Subject: I need help about deploying a servlet in tomcat
:: 
:: Dear friends,
:: 
:: I just installed tomcat 5 in my machine. I put it in the the folder
c:\Program
:: Files\Apache Group\Apache\Tomcat 5.0. I tried to run the servlet examples
and they
:: are ok. However, I would like to try my own servlet. I wrote the
HelloWorld.java and
:: put it in the folder C:\Program Files\Apache Group\Apache\Tomcat
:: 5.0\webapps\ROOT\WEB-INF\classes. I thought that I could just access it
by
:: http://localhost:8081/servlet/HelloWorld. I was hoping that the Tomcat
would
:: compile the java code automatically. However, it didn't happen and I got
the status
:: code 404, stating that the servlet couldn't be found.
:: 
:: These are the stuff that I did
:: 1. I set the environment variable CATALINA_HOME and CATALINA_BASE to
:: c:\Program Files\Apache Group\Apache\Tomcat 5.0
:: 2. I put the description of the servlet HelloWorld to the file web.xml in
the webapp
:: folder.
:: 
:: I really appreciate if I could get some helps. Thank you very much.
:: 
:: Cheers,
:: 
:: Brian
:: 
:: 
:: 
:: -
:: ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself
:: 
:: 
:: -
:: ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself



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



-
 ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself 

RE: I need help about deploying a servlet in tomcat

2004-06-30 Thread Schalk
Is you CLASSPATH set-up for Java? i.e. CLASSPATH=c:\j2sdk1.4.2\lib\tools.jar

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

:: -Original Message-
:: From: Brian SJ Wong [mailto:[EMAIL PROTECTED]
:: Sent: Wednesday, June 30, 2004 11:30 PM
:: To: Tomcat Users List
:: Subject: RE: I need help about deploying a servlet in tomcat
:: 
:: Dear Schalk,
:: 
:: When I tried to compile it there are  some errors which says the same
things when i
:: tried to compile the .java file from the servlet-examples folder. I guess
I missed
:: doing some configurations which I am not familiar with.
:: 
:: Schalk [EMAIL PROTECTED] wrote:
:: Did you compile the .java file and place the .class file in that folder?
:: 
:: Kind Regards
:: Schalk Neethling
:: Web Developer.Designer.Programmer.President
:: Volume4.Development.Multimedia.Branding
:: emotionalize.conceptualize.visualize.realize
:: Tel: +27125468436
:: Fax: +27125468436
:: email:[EMAIL PROTECTED]
:: web: www.volume4.co.za
:: 
:: This message contains information that is considered to be sensitive or
:: confidential and may not be forwarded or disclosed to any other party
:: without the permission of the sender. If you received this message in
error,
:: please notify me immediately so that I can correct and delete the
original
:: email. Thank you.
:: 
:: :: -Original Message-
:: :: From: Brian SJ Wong [mailto:[EMAIL PROTECTED]
:: :: Sent: Wednesday, June 30, 2004 11:08 PM
:: :: To: [EMAIL PROTECTED]
:: :: Subject: I need help about deploying a servlet in tomcat
:: ::
:: :: Dear friends,
:: ::
:: :: I just installed tomcat 5 in my machine. I put it in the the folder
:: c:\Program
:: :: Files\Apache Group\Apache\Tomcat 5.0. I tried to run the servlet
examples
:: and they
:: :: are ok. However, I would like to try my own servlet. I wrote the
:: HelloWorld.java and
:: :: put it in the folder C:\Program Files\Apache Group\Apache\Tomcat
:: :: 5.0\webapps\ROOT\WEB-INF\classes. I thought that I could just access
it
:: by
:: :: http://localhost:8081/servlet/HelloWorld. I was hoping that the Tomcat
:: would
:: :: compile the java code automatically. However, it didn't happen and I
got
:: the status
:: :: code 404, stating that the servlet couldn't be found.
:: ::
:: :: These are the stuff that I did
:: :: 1. I set the environment variable CATALINA_HOME and CATALINA_BASE to
:: :: c:\Program Files\Apache Group\Apache\Tomcat 5.0
:: :: 2. I put the description of the servlet HelloWorld to the file web.xml
in
:: the webapp
:: :: folder.
:: ::
:: :: I really appreciate if I could get some helps. Thank you very much.
:: ::
:: :: Cheers,
:: ::
:: :: Brian
:: ::
:: ::
:: ::
:: :: -
:: :: ALL-NEW Yahoo! Messenger - so many all-new ways to express
yourself
:: ::
:: ::
:: :: -
:: :: ALL-NEW Yahoo! Messenger - so many all-new ways to express
yourself
:: 
:: 
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]
:: 
:: 
:: 
:: -
::  ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself



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



RE: I need help about deploying a servlet in tomcat

2004-06-30 Thread Wendy Smoak
 From: Brian SJ Wong [mailto:[EMAIL PROTECTED] 
 When I tried to compile it there are  some errors which says 
 the same things when i tried to compile the .java file from 
 the servlet-examples folder. I guess I missed doing some 
 configurations which I am not familiar with.

What did you type, and what error message did you get?  It's probably
just a CLASSPATH issue.

Then you need to configure your Servlet in web.xml.  You mentioned using
a URL with /servlet/ in it, you may be working from an old example that
assumes that the Invoker Servlet is enabled by default.  It isn't, and
it's just as well that you leave it off and learn to edit web.xml.  A
bit harder up front, but much better in the long run.

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

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



RE: I need help about deploying a servlet in tomcat

2004-06-30 Thread Brian SJ Wong
Well, I guess that I am totally lost:( This is the first time I use Tomcat and I don't 
know nothing about it. I already installed JDK and set the environment variable such 
as JAVA_HOME and set the class path very well. I used java before and every thing is 
fine. I am going to use the ROOT folder to store my servlets. There is a web.xml file 
in that folder and I only alter the information about the servlet that I am going to 
put, which is the HelloWorld. I only wrote the HelloWorld.java and put them in the 
../ROOT/WEB-INF/classes folder. Actually I also tried to put the HelloWorld.java to 
the ../Servlet-Examples/WEB-INF/classes. I was hoping that when I invoke the 
http://localhost:8081/servlet/HelloWorld, it will automatically compile the 
HelloWorld.java and make the class. I tried to read the tomcat documentation but I am 
still not be able to make any progress.
 
Please give me a thorough and step-by-step guidance. Thank you very much.
 
Brian
 


-
 ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself 

Using a suffix to access my webapp

2004-06-30 Thread Jay Rutten
I think I am missing something minor here, but I can not figure it out.

 

Running:

 

WinXP

IIS 5

JK2

Tomcat 5.0.19

 

I want to have the following request go through my Router application:
http://localhost/MyServlet.ss. Here is the relevant entry in
worker2.properties

 

[uri:/*.ss]

info=My Application--must match the configuration file.

 

Here are the relevant entries from web.xml (in
\tomcat5\webapps\MyApp\WEB-INF\web.xml):

 

!-- Router declaration (for convenience only) --

servlet

servlet-nameRouter/servlet-name

servlet-classcom.kurant.servlet.Router/servlet-class

/servlet

 

!-- This will map all requests to Router (suffix mapping) --

servlet-mapping

servlet-nameRouter/servlet-name

url-pattern*.ss/url-pattern

/servlet-mapping

 

Here is the relevant entry from server.xml:

 

Context className=org.apache.catalina.core.StandardContext

docBase=MyApp

displayName= MyApp 

path=

cookies=true

 
charsetMapperClass=org.apache.catalina.util.CharsetMapper

 
mapperClass=org.apache.catalina.core.StandardContextMapper

swallowOutput=false

reloadable=true

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

directory=logs
prefix=localhost_router_log.

suffix=.txt timestamp=true
verbosity=10/

/Context

 

When I try to hit the URL above, I get that the resource is not available.
If I put the path above as MyApp, then http://localhost/MyApp/MyServlet.ss
works. Also, if I put my application in the ROOT, the original URL works, as
expected.

 

From what I read in the docs, setting path= in my context should make this
the default context, but I never see the call to Router.

 

If you haven any suggestions, it would be greatly appreciated!



RE: I need help about deploying a servlet in tomcat

2004-06-30 Thread Schalk
When trying to compile your HelloWorld.java file what error do you get?

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

:: -Original Message-
:: From: Brian SJ Wong [mailto:[EMAIL PROTECTED]
:: Sent: Thursday, July 01, 2004 12:22 AM
:: To: Tomcat Users List
:: Subject: RE: I need help about deploying a servlet in tomcat
:: 
:: Well, I guess that I am totally lost:( This is the first time I use
Tomcat and I don't
:: know nothing about it. I already installed JDK and set the environment
variable such
:: as JAVA_HOME and set the class path very well. I used java before and
every thing
:: is fine. I am going to use the ROOT folder to store my servlets. There is
a web.xml
:: file in that folder and I only alter the information about the servlet
that I am going to
:: put, which is the HelloWorld. I only wrote the HelloWorld.java and put
them in the
:: ../ROOT/WEB-INF/classes folder. Actually I also tried to put the
HelloWorld.java to
:: the ../Servlet-Examples/WEB-INF/classes. I was hoping that when I invoke
the
:: http://localhost:8081/servlet/HelloWorld, it will automatically compile
the
:: HelloWorld.java and make the class. I tried to read the tomcat
documentation but I
:: am still not be able to make any progress.
:: 
:: Please give me a thorough and step-by-step guidance. Thank you very much.
:: 
:: Brian
:: 
:: 
:: 
:: -
::  ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself



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



RE: I need help about deploying a servlet in tomcat

2004-06-30 Thread Schalk
By this I mean compiling it outside of Tomcat i.e. from command line etc.

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

:: -Original Message-
:: From: Schalk [mailto:[EMAIL PROTECTED]
:: Sent: Thursday, July 01, 2004 12:33 AM
:: To: 'Tomcat Users List'
:: Subject: RE: I need help about deploying a servlet in tomcat
:: 
:: When trying to compile your HelloWorld.java file what error do you get?
:: 
:: Kind Regards
:: Schalk Neethling
:: Web Developer.Designer.Programmer.President
:: Volume4.Development.Multimedia.Branding
:: emotionalize.conceptualize.visualize.realize
:: Tel: +27125468436
:: Fax: +27125468436
:: email:[EMAIL PROTECTED]
:: web: www.volume4.co.za
:: 
:: This message contains information that is considered to be sensitive or
:: confidential and may not be forwarded or disclosed to any other party
:: without the permission of the sender. If you received this message in
error,
:: please notify me immediately so that I can correct and delete the
original
:: email. Thank you.
:: 
:: :: -Original Message-
:: :: From: Brian SJ Wong [mailto:[EMAIL PROTECTED]
:: :: Sent: Thursday, July 01, 2004 12:22 AM
:: :: To: Tomcat Users List
:: :: Subject: RE: I need help about deploying a servlet in tomcat
:: ::
:: :: Well, I guess that I am totally lost:( This is the first time I use
:: Tomcat and I don't
:: :: know nothing about it. I already installed JDK and set the environment
:: variable such
:: :: as JAVA_HOME and set the class path very well. I used java before and
:: every thing
:: :: is fine. I am going to use the ROOT folder to store my servlets. There
is
:: a web.xml
:: :: file in that folder and I only alter the information about the servlet
:: that I am going to
:: :: put, which is the HelloWorld. I only wrote the HelloWorld.java and put
:: them in the
:: :: ../ROOT/WEB-INF/classes folder. Actually I also tried to put the
:: HelloWorld.java to
:: :: the ../Servlet-Examples/WEB-INF/classes. I was hoping that when I
invoke
:: the
:: :: http://localhost:8081/servlet/HelloWorld, it will automatically
compile
:: the
:: :: HelloWorld.java and make the class. I tried to read the tomcat
:: documentation but I
:: :: am still not be able to make any progress.
:: ::
:: :: Please give me a thorough and step-by-step guidance. Thank you very
much.
:: ::
:: :: Brian
:: ::
:: ::
:: ::
:: :: -
:: ::  ALL-NEW Yahoo! Messenger - so many all-new ways to express
yourself
:: 
:: 
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]




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



RE: I need help about deploying a servlet in tomcat

2004-06-30 Thread Wendy Smoak
 From: Brian SJ Wong [mailto:[EMAIL PROTECTED] 

 I am going to use the ROOT 
 folder to store my servlets. There is a web.xml file in that 
 folder and I only alter the information about the servlet 
 that I am going to put, which is the HelloWorld. I only wrote 
 the HelloWorld.java and put them in the 
 ../ROOT/WEB-INF/classes folder.

The Java source code does not go in ROOT/WEB-INF/classes.  That's where
the compiled code goes.  

 I was hoping that when I invoke the
http://localhost:8081/servlet/HelloWorld, it will 
 automatically compile the HelloWorld.java and make the class. 

AFAIK, Tomcat will not automatically compile your Servlets.  So, first
thing, compile your HelloWorld.java file into HelloWorld.class.  Your
previous comments indicate that you know how to do that.  If not, post
the commands you're typing and the exact error message you're getting,
and someone will help.

Even when you get that done, the URL you intend to use will NOT work.
URLs with /servlet in them generally depend on the Invoker Servlet being
enabled.  The Invoker Servlet is disabled by default.  So drop the
/servlet part of the URL, and edit web.xml to include servlet and
servlet-mapping tags for your Servlet.

Here's the example web.xml file from the Tomcat 5 docs:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/web.xml.txt

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 



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



Re: Apache - tomcat connections grow very fast

2004-06-30 Thread Wade Chandler
Stephen Carville wrote:
Every once in  a while, the number of connections between apache and tomcat 
grows very rapidally, going from 12 or so up to over 150 in a matter of about 
10 minutes.  This quickly causes the number of httpd processes to exceed 
MaxClients and apache stops accepting new connections.  Restarting tomcat 
relieves the symptom.  This is a recent development that first came to my 
attention abtu two weeks ago.

When the problem happens, 'netstat -natp' shows a bunch of connections like:
tcp0  0 127.0.0.1:39164 127.0.0.1:8009  
ESTABLISHED 21886/httpd

with a corresponding connection for the tomcat end:
tcp0  0 127.0.0.1:8009  127.0.0.1:39164 
ESTABLISHED 31723/java

Normally there are about 8 to 12 connections between apache and tomcat.  I 
cannot figure out why the number suddenly peaks like this.  I've scoured the 
http logs and turned on debugging for mod_jk but nothing I've tried so far 
fixes it.  I've had the developers do some extra logging to see if any recent 
code changes could be causing it but that too has proved fruitless.

Suggestions are welcome.
Do you know what is initiating the connections?  8009 is the connection 
between mod_jk and the server.  MaxConnections will be on your port 80 
or what ever port you are running on.  Do you not know the origin of the 
other connections?  Surely you have connections on the other port 80 or 
what ever you are using?  Are you using some type of an http protocol 
test tool and are you using keep connection?

Wade

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


RE: Please Help! Tomcat 5.0.25

2004-06-30 Thread Aris Javier
No Sir... I'm accessing my database on my pc...
MS Access 2000... everything is in my pc...

I've tried putting everything under classpath but still 
this dbcp error occured...

But the amazing thing is, no problem occured when i run
tomcat not in service...

sigh!

-Original Message-
From: Robert Bateman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 9:39 PM
To: Tomcat Users List
Subject: Re: Please Help! Tomcat 5.0.25


This may or may not be totally on topic - apologies if it's not...

On Wednesday 30 June 2004 12:16 am, Aris Javier wrote:
 Still the same error occured after replacing my service.bat with your 
 service.bat... (declares tools.jar inside) =|

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

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


I've seen similar errors when running programs as services in a Windows 
environment.  One thing that got me over and over was the data base I
was 
accessing was not local.  Because the remote data base needed me to
map a 
drive letter to it, my program running as service failed.

Are you by chance attempting to access your data base on a network
drive?

Bob

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


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



RE: Please Help! Tomcat 5.0.25

2004-06-30 Thread Aris Javier
No Sir... everything is in my pc... no remote access...
Tomcat5.0.25 is in drive D as well as MS Access 2000...
I'm also the only user of my pc.. 

Please Help!

-Original Message-
From: Robert Harper [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 10:00 PM
To: 'Tomcat Users List'
Subject: RE: Please Help! Tomcat 5.0.25


When you run a service in WinXX, it does not run with the same rights
and settings as the logged in user. If your app needs a mapped drive,
then you will have to find a way for your app to map the drive for it's
self. This may also be a user rights issue as the service runs without
the same credentials as the logged in user.

Robert S. Harper
801.265.8800 ex. 255

 -Original Message-
 From: Robert Bateman [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 30, 2004 7:39 AM
 To: Tomcat Users List
 Subject: Re: Please Help! Tomcat 5.0.25
 
 This may or may not be totally on topic - apologies if it's not...
 
 On Wednesday 30 June 2004 12:16 am, Aris Javier wrote:
  Still the same error occured after replacing my service.bat with 
  your service.bat... (declares tools.jar inside) =|
 
  org.apache.commons.dbcp.SQLNestedException: Cannot create 
  PoolableConnectionFactory, cause: General error
 
  When i run startup.bat... it worked fine again... the following are 
  the logged scripts in MS DOS when i run startup.bat...
 
 
 I've seen similar errors when running programs as services in a
Windows
 environment.  One thing that got me over and over was the data base I
was
 accessing was not local.  Because the remote data base needed me to
map a
 drive letter to it, my program running as service failed.
 
 Are you by chance attempting to access your data base on a network
drive?
 
 Bob
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 




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


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



Re: JSVC, Redhat, and Tomcat 5.0.xx startup

2004-06-30 Thread David Johnson
Thanks to the people that responded to my request.

I propose that this be added to the FAQ.  

When attempting to launch tomcat under redhat linux (any version) using
jsvc with -user option during boot, and the only logged message is as
follows:

jsvc.exec error: Service exit with a return value of 143


The final solution (thanks to Patrick Glennon) was:
1. Ensure that the java environment (CLASSPATH, JAVA_HOME,
CATALINA_HOME, etc) was fully represented in the launch script


2. Ensure that there was a proper symlink in the directories rc3.d,
rc4.d, and/or rc5.d to the launch script 'tomcat' that resides in init.d

example: ln -s /etc/init.d/tomcat /etc/rc3.d/S93tomcat

The example value 93 is late enough to guarantee a start.


On Tue, 2004-06-29 at 00:03, David Johnson wrote:
 Thanks for the feedback so far.  It has been very helpful - I think that
 I am having an issue with my relative inexperience with linux boot
 processes. 
 
 I have made the log as verbose as I could, and it appears that linux is
 trying to start Tomcat before the network is fully available. 
 
 Tomcat.sh is a trivial modification of the sample file that is shipped
 with the Tomcat server. 
 
 The call to Tomcat.sh is fired from a script called tomcat in init.d 
 
 Is it possible that I have my startup script in the wrong folder? 
 
 Thanks, 
 
 Log excerpt (successful startup): 
 
 INFO: Installing web application at context path  from URL
 file:/opt/jakarta-tomcat-5.0.25/webapps/ROOT 
 Jun 28, 2004 11:50:19 PM org.apache.coyote.http11.Http11Protocol start 
 INFO: Starting Coyote HTTP/1.1 on http-8000 
 Jun 28, 2004 11:50:20 PM org.apache.jk.common.ChannelSocket init 
 INFO: JK2: ajp13 listening on /0.0.0.0:8009 
 Jun 28, 2004 11:50:20 PM org.apache.jk.server.JkMain start 
 INFO: Jk running ID=0 time=17/128 
 config=/opt/jakarta-tomcat-5.0.25/conf/jk2.properties 
 Jun 28, 2004 11:50:21 PM org.apache.catalina.startup.Catalina start 
 INFO: Server startup in 30279 ms 
 
 
 Log excerpt (failed startup): 
 
 INFO: Installing web application at context path  from URL
 file:/opt/jakarta-tomcat-5.0.25/webapps/ROOT 
 Jun 28, 2004 11:12:11 PM org.apache.coyote.http11.Http11Protocol start 
 INFO: Starting Coyote HTTP/1.1 on http-8000 
 Jun 28, 2004 11:12:12 PM org.apache.jk.common.ChannelSocket init 
 INFO: JK2: ajp13 listening on /0.0.0.0:8009 
 Jun 28, 2004 11:12:12 PM org.apache.jk.server.JkMain start 
 INFO: Jk running ID=0 time=22/190 
 config=/opt/jakarta-tomcat-5.0.25/conf/jk2.properties 
 Jun 28, 2004 11:12:12 PM org.apache.catalina.startup.Catalina start 
 INFO: Server startup in 32346 ms 
 Jun 28, 2004 11:33:11 PM org.apache.coyote.http11.Http11Protocol pause 
 INFO: Pausing Coyote HTTP/1.1 on http-8000 
 Jun 28, 2004 11:33:12 PM org.apache.coyote.tomcat5.CoyoteConnector pause
 SEVERE: Protocol handler pause failed 
 java.net.SocketException: Network is unreachable 
 at java.net.PlainSocketImpl.socketConnect(Native Method) 
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) 
 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) 
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) 
 at java.net.Socket.connect(Socket.java:452) 
 at java.net.Socket.connect(Socket.java:402) 
 at java.net.Socket.init(Socket.java:309) 
 at java.net.Socket.init(Socket.java:124) 
 at
 org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:420) 
 at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:264) 
 at org.apache.jk.server.JkMain.pause(JkMain.java:657) 
 at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:199) 
 at
 org.apache.coyote.tomcat5.CoyoteConnector.pause(CoyoteConnector.java:1417) 
 at
 org.apache.catalina.core.StandardService.stop(StandardService.java:517) 
 at
 org.apache.catalina.core.StandardServer.stop(StandardServer.java:2332) 
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:605) 
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  
 at java.lang.reflect.Method.invoke(Method.java:324) 
 at org.apache.catalina.startup.Bootstrap.stop(Bootstrap.java:296) 
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  
 at java.lang.reflect.Method.invoke(Method.java:324) 
 at
 org.apache.commons.daemon.support.DaemonLoader.stop(DaemonLoader.java:241) 
 jsvc.exec error: Shutdown or reload already scheduled 
 jsvc.exec error: Shutdown or reload already scheduled 
 jsvc.exec error: Shutdown or reload already scheduled 
 jsvc.exec error: Shutdown or reload already scheduled 
 jsvc.exec error: Shutdown or reload already scheduled 
 jsvc.exec error: Shutdown or reload already scheduled 
 

Re: Errors in precompiled JSPs

2004-06-30 Thread simon colston
Hello Woodchuck,
Thanks for the reply.
Woodchuck wrote:
jspc srcdir=${webapp.build} destdir=gensrc/src
uriroot=${webapp.build}
compiler=jasper41
includes=index.jsp,jsp/**/*.jsp
verbose=9
webxml=jspmaps
classpath
pathelement path=${tomcat.home}/common/lib/jasper-compiler.jar/
pathelement path=${tomcat.home}/common/lib/servlet.jar/
pathelement path=${tomcat.home}/common/lib/jasper-runtime.jar/
pathelement path=${ant.home}/lib/ant.jar/
/classpath
/jspc
I gave this a try and got:
  [jasperc] org.apache.jasper.JasperException: Unrecognized option: 
-v9.  Use -help for help.

I think this may be because I am using Tomcat 5 and the jasper compiler 
is different.  I tried japser, jasper41, jasper5 and jasper50 
for the compiler option but it only recognised the first two, and they 
both gave me the -v9 exception (related to the verbosity attribute).

The manual page for the jspc task,
http://ant.apache.org/manual/OptionalTasks/jspc.html
seems very old and seems to have been written in March 2003.  It also 
has warnings everywhere that this should just be used for validation and 
not for pre-compiling.  It doesn't look like it has been updated for 
Tomcat 5 comptatibility.

why do you need to define your own pre-compile task may i ask?
I read the manual ;-)
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html
Am I messing up somewhere here?  And is there anyway to get the jasper 
shipped with Tomcat 5 to display errors when used for pre-compiling?

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


AGAIN jk2 2.0.4 compile

2004-06-30 Thread Tony F. White
Hi,

I recently setup a machine with Apache 2.0.49 and Tomcat 5, using mod_jk to connect 
them.  For the first time everything when smooth as couldnt believe it.

Then today I went to update apache to 2.0.50 which compiled fine but procedure 
dictates that mod_jk also gets recompiled. that is when I hit the dreaded error:

error: Apache 1.3 requires apr to built from source, use --with-apr and --with-apr-util

I have had this problem before but thought had it licked on the new machine, so was 
extremely unhappy it had reared its ugly head again This time I was determined to 
get to the bottom of it and so I stuck my nose into the configure script and went 
looking for what causes this to be printed out
I found this line in the configure script:
if ! ${TEST} -z $APACHE_HOME ; then

And I knew then I had found the problem we have this variable set in the 
environment to aid in setting paths etc.
So I did an unset APACHE_HOME, tried the configure command again and it WORKED
So finally I have managed to work out why it would not compile for me.  Perhaps this 
is the same reason it happens for others (perhaps a note of this should be made in the 
documentation...)?

Best of luck
Tony




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



Re: Tomcat - MySQL = No suitable driver ERROR

2004-06-30 Thread David Smith
Ok.  I think I'm seeing your trouble.  The stuff you have in 
WEB-INF/DB-Test.xml should be in web.xml instead.  In mine, the 
resource-ref.../resource-ref stuff is at the end of the file just 
before the closing /web-app tag.  In tomcat versions 3 and 4, the 
order of elements in web.xml was important.  I believe that requirement 
has been lifted in tomcat 5.

--David
Try that and see what happens.
--David
Briggs, Patrick wrote:
I'm using an example someone else on this list gave me. 

So inside of {CATALINA_HOME}/conf/Catalina/localhost/DBTest.xml
?xml version='1.0' encoding='utf-8'?
Context debug=5 displayName=DBtest docBase=DBTest
path=/DBtest reloadable=true
workDir=work\Catalina\localhost\DBTest
 Resource auth=Container name=jdbc/DBTest
type=javax.sql.DataSource/
 ResourceParams name=jdbc/DBTest
   parameter
 nameurl/name
valuejdbc:mysql://cir-ops:3306/javatest?autoReconnect=true/value
   /parameter
   parameter
 namemaxIdle/name
 value15/value
   /parameter
   parameter
 namemaxActive/name
 value50/value
   /parameter
   parameter
 namedriverClassName/name
 valuecom.mysql.jdbc.Driver/value
   /parameter
   parameter
 namemaxWait/name
 value1/value
   /parameter
   parameter
 nameremoveAbandoned/name
 valuetrue/value
   /parameter
   parameter
 nameusername/name
 valuejavauser/value
   /parameter
   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 nameremoveAbandonedTimeout/name
 value60/value
   /parameter
   parameter
 namepassword/name
 valuejavadude/value
   /parameter
 /ResourceParams
/Context
The contents of {Catalina_Home}/webapps/DBTest/WEB-INF/DBTest.xml
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
   version=2.4
 descriptionMySQL Test App/description
 resource-ref
 descriptionDB Connection/description
 res-ref-namejdbc/DBTest/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
 /web-app
Contents of {Catalina_Home/webapps/DBTest/test.jsp:
%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
sql:query var=rs dataSource=jdbc/DBTest
select id, foo, bar from testdata
/sql:query
html
 head
   titleDB Test/title
 /head
 body
 h2Results/h2
 
c:forEach var=row items=${rs.rows}
   Foo ${row.foo}br/
   Bar ${row.bar}br/
/c:forEach

 /body
/html
The error message displayed on the web-broser for the URL:
http://localhost:8080/DBTest/test.jsp
javax.servlet.ServletException: Unable to get connection, DataSource
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null', cause: No suitable driver

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

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

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

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

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

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

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

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

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 1:33 PM
To: Tomcat Users List
Subject: Re: Tomcat - MySQL = No suitable 

Re: Tomcat - MySQL = No suitable driver ERROR

2004-06-30 Thread David Smith
Ok, I stand corrected.  If the jar works in shared/lib, then cool.  I 
never argue with what works.  I also stop experimenting when it starts 
working, so I've never tried it there.   Thanks for the info.

--David
Jan Behrens wrote:
Hi Patrick,
shared/lib is quite ok - that is where mine resides and everything works
just fine... The content of myWebApp,xml is straight out of my one two and
my db connection works just fine. The question would be when and where you
actually get that error. Have you turned on logging for your webapp and
ensured that the jndi ressource is really there? There should be an entry
(depending on your logging level) like this there:
2004-06-30 14:59:06 NamingContextListener[/Catalina/localhost/myWebApp]:
Adding resource ref jdbc/myWebApp
2004-06-30 14:59:06 NamingContextListener[/Catalina/localhost/myWebApp]:
ResourceRef[className=javax.sql.DataSource,factoryClassLocation=null,factory
ClassName=org.apache.naming.factory.ResourceFactory,{type=scope,content=Shar
eable},{type=auth,content=Container},{type=url,content=jdbc:mysql://loalhost
:3306/myWebApp?autoReconnect=true},{type=maxIdle,content=15},{type=maxActive
,content=50},{type=driverClassName,content=com.mysql.jdbc.Driver},{type=maxW
ait,content=1},{type=removeAbandoned,content=true},{type=username,conten
t=myWebApp},{type=factory,content=org.apache.commons.dbcp.BasicDataSourceFac
tory},{type=removeAbandonedTimeout,content=60},{type=password,content=secret
}]
If that does not help, add the following inside web-app of your web.xml
(should be in webapps WEB-INF dir). 

 resource-ref
 descriptionDB Connection/description
 res-ref-namejdbc/myWebApp/res-ref-name !-- exchange myWebApp with
whatever you have named your datasource in the context/ --
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
Best you then delete all contents of
{CATALINA_HOME}\work\localhost\myWebApp\ and restart Tomcat. Then check your
logs and see whether it finds and intializes the ressource.
HTH, Jan
-Original Message-
From: Briggs, Patrick [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 9:47 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat - MySQL = No suitable driver ERROR

Ok, I have it in the common/lib directory, but that didn't make a
difference.  You'd think there would be a lot easier way to setup stuff like
this.  Editing XML files is pretty tricky business.
-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 12:19 PM
To: Tomcat Users List
Subject: Re: Tomcat - MySQL = No suitable driver ERROR
Wrong place for mysql jar file.  It should be in 
{TOMCAT_HOME}/common/lib right along side the DBCP jar file.

--David
Briggs, Patrick wrote:
 

If the webapps.xml file is supposed to be located in 
Catalina\localhost,
   

the
 

apache's own website documentation JDBC-HOWTO needs to be updated to
   

reflect
 

that new situation.  I'm surprised they haven't updated it because I'm 
sure a lot of other people are going to be having the same problems I 
am.

I have made all of the changes you have suggest.  the mysql.jar file 
has been deleted everywhere except for {CATALINA_HOME}/shared/lib where 
I have now placed it.

I have created a file called DBTest.xml over in 
/conf/Catalina/localhost/DBTest.xml

I used your template for the XML find changing it where it needs 
changes
   

for
 

URL and username/password.
Still getting the same error message :(
So now what could it be?
-Original Message-
From: Jan Behrens [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 1:58 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat - MySQL = No suitable driver ERROR
Hi Patrick,
the problem might be that in Tomcat 5.x the storage of the context 
related configuration changed from server.xml to a sepparate file for 
each webapp. This file should be stored under 
{Catalina_Home}\conf\Catalina\{domain-name}\myWebAppName.xml where 
Catalina_Home points to your Tomcat installation dir and domain_name
   

usually
 

would be localhost in a dev-environment.
If you have a webapp called myWebApp and want to setup a datastore via 
jndi for same to use in Tomcat 5 you could use the following as a basis 
for a myWebApp.xml file stored under
{Catalina_Home}\conf\Catalina\{domain-name}\myWebAppName.xml:

?xml version='1.0' encoding='utf-8'?
Context debug=5 displayName=myWebApp docBase=myWebApp  
path=/myWebApp reloadable=true 
workDir=work\Catalina\localhost\myWebApp

Resource auth=Container name=jdbc/myWebApp 
type=javax.sql.DataSource/
ResourceParams name=jdbc/myWebApp
  parameter
nameurl/name

valuejdbc:mysql://NAME_OR_IP_OF_MYSQL_SERVER:3306/NAME_OF_DATABASE?au
toRe
   

c
 

onnect=true/value
  /parameter
  parameter
namemaxIdle/name
value15/value
  /parameter
  parameter
namemaxActive/name
value50/value
  /parameter
  parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
  /parameter
  parameter

Re: environment values in server.xml -Answered, for the archives

2004-06-30 Thread Josh G
In server.xml, under DefaultContext:
   Environment name=foo type=java.lang.String value=bar/
And in web.xml:
   env-entry
 env-entry-namefoo/env-entry-name
 env-entry-typejava.lang.String/env-entry-type
   /env-entry
And the code to get it back (include javax.naming.*):
   Context initCtx = new InitialContext();
   Context envCtx = (Context) initCtx.lookup(java:comp/env);
   String jndiFoo = (String)envCtx.lookup(foo);
Cheers,
-Josh
--
Max Power, he's the man who's name you'd love to touch! But you mustn't 
touch!
His name sounds good in your ear, but when you say it, you mustn't fear!
'Cause his name can be said by anyone!

 [ Josh 'G-Funk' McDonald ]  --  [ Pirion Systems, Brisbane]
[ 07 3257 0490 ]  --  [ 0415 784 825 ]  --  [ http://www.gfunk007.com/ ]
- Original Message - 
From: Josh G [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 4:22 PM
Subject: environment values in server.xml

Where should I put environment values in server.xml? And more importantly, 
how on earth do I retrieve them programmatically? The documentation on this 
sort of stuff is either unbelievably inadequate or incredibly hard to find.

Or c) I'm a dickhead. Either way, I could really use a hand. I'm just trying 
to get a string out of server.xml - not web.xml.

Cheers,
-Josh
--
Max Power, he's the man who's name you'd love to touch! But you mustn't 
touch!
His name sounds good in your ear, but when you say it, you mustn't fear!
'Cause his name can be said by anyone!

 [ Josh 'G-Funk' McDonald ]  --  [ Pirion Systems, Brisbane]
[ 07 3257 0490 ]  --  [ 0415 784 825 ]  --  [ http://www.gfunk007.com/ ]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


What about Tomcat under java 1.5?

2004-06-30 Thread Ivan Jouikov








Just wondering if people
tried it.














 
  
  Best Regards,
  
  Ivan V. Jouikov
  (206) 228-6670
  
  
 













---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004
 

  


Re: What about Tomcat under java 1.5?

2004-06-30 Thread Ryan McConigley
At 08:05 PM 30/06/2004 -0700, you wrote:
Just wondering if people tried it….
I have.  Seems to work fine for me with no hassles.
Cheers,
Ryan.
--
  Ryan McConigley - Systems Administrator  _.-,
 Computer Science   University of Western Australia.--'  '-._
   Tel: (+61 8) 6488 7082 - Fax: (+61 8) 6488 1089   _/`-  _  '.
[EMAIL PROTECTED] - http://www.csse.uwa.edu.au/~ryan  ''._`.. \
 ` \;
 You're just jealous because the voices are talking to me;_\

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


RE: What about Tomcat under java 1.5?

2004-06-30 Thread Ivan Jouikov
Does it work any faster?  Sun claims that 1.5 (aka 5.0) is very efficient and 
robust...  Is that a load of bull?

-Original Message-
From: Ryan McConigley [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 8:09 PM
To: Tomcat Users List
Subject: Re: What about Tomcat under java 1.5?

At 08:05 PM 30/06/2004 -0700, you wrote:

Just wondering if people tried it.

 I have.  Seems to work fine for me with no hassles.

 Cheers,
 Ryan.

--
   Ryan McConigley - Systems Administrator  _.-,
  Computer Science   University of Western Australia.--'  '-._
Tel: (+61 8) 6488 7082 - Fax: (+61 8) 6488 1089   _/`-  _  '.
[EMAIL PROTECTED] - http://www.csse.uwa.edu.au/~ryan  ''._`.. \
  ` \;
  You're just jealous because the voices are talking to me;_\




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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004
 


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



RE: What about Tomcat under java 1.5?

2004-06-30 Thread Ryan McConigley
At 08:18 PM 30/06/2004 -0700, you wrote:
Does it work any faster?  Sun claims that 1.5 (aka 5.0) is very 
efficient and robust...  Is that a load of bull?
I couldn't say.  I'm not a power user of it and at the same time 
we upgraded from 1.4 we upgraded the hardware and software of the machine, 
so it runs faster now, but I would expect it to just from the change in 
hardware alone.  (A PIII 1G to a PIV 2.4G).

Cheers,
Ryan.
--
  Ryan McConigley - Systems Administrator  _.-,
 Computer Science   University of Western Australia.--'  '-._
   Tel: (+61 8) 6488 7082 - Fax: (+61 8) 6488 1089   _/`-  _  '.
[EMAIL PROTECTED] - http://www.csse.uwa.edu.au/~ryan  ''._`.. \
 ` \;
 You're just jealous because the voices are talking to me;_\

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


Re: What about Tomcat under java 1.5?

2004-06-30 Thread Joel
On Wed, 30 Jun 2004 20:05:08 -0700
Ivan Jouikov [EMAIL PROTECTED] wrote

I'm just getting into and I discovered that you can't at the present
time compile Tomcat itself with jdk1.5.

Bill Barker confirmed that for me, but he says it runs great under
java1.5 

If you need to compile it for some reason, you just compile it under
jdk1.4 for now.

-- 
Joel [EMAIL PROTECTED]


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