extend JDBCRealm?

2004-12-27 Thread Ilja Smoli
Hi
Question is: is it possible to extend org.apache.catalina.realm.JDBCRealm
and override method  authenticate(String username, String credentials)?
And if it is possible (i guess it is),  where to put it and etc...




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



Re: org.apache.jasper.JasperException: Unable to compile class for JSP

2003-10-13 Thread Ilja
anyone?

On Sun, 12 Oct 2003 15:35:25 +0200, Ilja [EMAIL PROTECTED]
said:
 In tried installing opencms (www.opencms.org), but got the following
 error when running on Tomcat 5.0.7:
 
 I think this is a Tomcat 5.0.x related problem, since according to the
 developers it runs fine on a Tomcat 4.2.x version. They don't know where
 lies the problem..
 
 The root-cause:
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
   at 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561)
   at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:752)
   at 
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:640)
   at 
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:552)
   at 
 com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:180)
   at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:955)
   at 
 com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:268)
   at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:567)
   at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:235)
   at com.opencms.core.OpenCms.showResource(OpenCms.java:956)
   at com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:254)
   at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
   at 
 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)
   at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:190)
   at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)
   at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
   at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
   at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:647)
   at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:489)
   at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
   at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
   at java.lang.Thread.run(Thread.java:554)
 
 The index.jsp:
 
 %@ page session=false %
 %@ taglib prefix=cms uri=http://www.opencms.org/taglib/cms; %
 cms:include property=template suffix=.jsp element=head /
 
 h1Congratulations!/h1
 
 h3If you're seeing this page via a web browser, it means you've setup
 OpenCms successfully./h3
 
 
 pYour installed OpenCms version is: cms:info
 property=opencms.version /br
 span class=smallRunning on 
 cms:info property=java.vm.vendor / 
 cms:info property=java.vm.name / 
 cms:info property=java.vm.version / 
 cms:info property=java.vm.info / with
 cms:info property=os.name / 
 cms:info property=os.version / 
 (cms:info property=os.arch /)/span/p
 
 
 pAs you may have guessed by now, this is the default

org.apache.jasper.JasperException: Unable to compile class for JSP

2003-10-12 Thread Ilja
In tried installing opencms (www.opencms.org), but got the following
error when running on Tomcat 5.0.7:

I think this is a Tomcat 5.0.x related problem, since according to the
developers it runs fine on a Tomcat 4.2.x version. They don't know where
lies the problem..

The root-cause:

org.apache.jasper.JasperException: Unable to compile class for JSP
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:752)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:640)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:552)
at 
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:180)
at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:955)
at 
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:268)
at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:567)
at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:235)
at com.opencms.core.OpenCms.showResource(OpenCms.java:956)
at com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:254)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:190)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:647)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:489)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
at java.lang.Thread.run(Thread.java:554)

The index.jsp:

%@ page session=false %
%@ taglib prefix=cms uri=http://www.opencms.org/taglib/cms; %
cms:include property=template suffix=.jsp element=head /

h1Congratulations!/h1

h3If you're seeing this page via a web browser, it means you've setup
OpenCms successfully./h3


pYour installed OpenCms version is: cms:info
property=opencms.version /br
span class=smallRunning on 
cms:info property=java.vm.vendor / 
cms:info property=java.vm.name / 
cms:info property=java.vm.version / 
cms:info property=java.vm.info / with
cms:info property=os.name / 
cms:info property=os.version / 
(cms:info property=os.arch /)/span/p


pAs you may have guessed by now, this is the default OpenCms home page. 
It can inot/i be found on the local file system ;-) but in the
OpenCms

log4j logging and tomcat

2003-10-03 Thread Ilja
I have created a webapp and put a log4j.properties in the classpath, but
the logging doesn't seem to work. So now I want to enable log4j
debugging, but don't know how to set this system property with tomcat:

Ie: can I set the system property '-Dlog4j.debug=true' in web.xml, is
that possible? If not: how do I set this property?

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



RE: log4j logging and tomcat

2003-10-03 Thread Ilja Hehenkamp
Thanks, did that, but still no debuggin information is showing up in my Mac 
OSX console... Looks like log4j isn't used, however it is in my WEB-INF/lib 
dir of my webapp...

Ilja

From: Shapira, Yoav [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: log4j logging and tomcat
Date: Fri, 3 Oct 2003 14:37:50 -0400
Howdy,
Set JAVA_OPTS='-Dlog4j.debug=true' in $CATALINA_HOME/bin/catalina.sh.
RTFM
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Ilja [mailto:[EMAIL PROTECTED]
Sent: Friday, October 03, 2003 2:37 PM
To: [EMAIL PROTECTED]
Subject: log4j logging and tomcat

I have created a webapp and put a log4j.properties in the classpath,
but
the logging doesn't seem to work. So now I want to enable log4j
debugging, but don't know how to set this system property with tomcat:

Ie: can I set the system property '-Dlog4j.debug=true' in web.xml, is
that possible? If not: how do I set this property?

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


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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: log4j logging and tomcat

2003-10-03 Thread Ilja Hehenkamp
all prerequisites are true I'm affraid :(

Directory listing:

/Library/Tomcat/webapps/Mathesis/WEB-INF/classes:
hibernate.cfg.xml   log4j.propertiesorg osuser.xml
/Library/Tomcat/webapps/Mathesis/WEB-INF/lib:
cglib.jar   hibernate2.jar
commons-beanutils-1.6.1.jar jdom.jar
commons-collections-2.1.jar log4j-1.2.8.jar
commons-lang-1.0.1.jar  osaccess-2.0.0.jar
commons-logging-1.0.2.jar   oscore-2.2.2-dev.jar
commons-logging-api-1.0.2.jar   osuser-1.0-dev.jar
dom4j.jar   struts.jar
log4j.properties:

### direct log messages to stdout ###
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - 
%m%n

### direct messages to file hibernate.log ###
# log4j.appender.file=org.apache.log4j.FileAppender
# log4j.appender.file.File=hibernate.log
# log4j.appender.file.layout=org.apache.log4j.PatternLayout
# log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - 
%m%n

### set log levels - for more verbose logging change 'info' to 'debug' ##

log4j.debug=true

log4j.rootLogger=debug, stdout

log4j.logger.net.sf.hibernate=debug, file, stdout

log4j.logger.com.opensymphony=debug, stdout

log4j.logger.org.mathesis=debug, stdout

### enable the following line if you want to track down connection ###
### leakages when using DriverManagerConnectionProvider ###
#log4j.logger.net.sf.hibernate.connection.DriverManagerConnectionProvider=trace
### log JDBC bind parameters ###
log4j.logger.net.sf.hibernate.type=debug
### log prepared statement cache activity ###
log4j.logger.net.sf.hibernate.ps.PreparedStatementCache=debug
Ilja

From: Shapira, Yoav [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: log4j logging and tomcat
Date: Fri, 3 Oct 2003 14:55:44 -0400
Howdy,
If log4j.jar is in your WEB-INF/lib, and log4j.properties is in your
WEB-INF/classes, and your server is set up correctly (i.e. all examples
work), and you set log4j.debug=true as a system property, and nothing
shows up, I'm lost.  If any of those conditions are false, correct them
;)
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Ilja Hehenkamp [mailto:[EMAIL PROTECTED]
Sent: Friday, October 03, 2003 2:54 PM
To: [EMAIL PROTECTED]
Subject: RE: log4j logging and tomcat

Thanks, did that, but still no debuggin information is showing up in my
Mac
OSX console... Looks like log4j isn't used, however it is in my
WEB-INF/lib
dir of my webapp...

Ilja

From: Shapira, Yoav [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: log4j logging and tomcat
Date: Fri, 3 Oct 2003 14:37:50 -0400


Howdy,
Set JAVA_OPTS='-Dlog4j.debug=true' in $CATALINA_HOME/bin/catalina.sh.
RTFM


Yoav Shapira
Millennium ChemInformatics


 -Original Message-
 From: Ilja [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 03, 2003 2:37 PM
 To: [EMAIL PROTECTED]
 Subject: log4j logging and tomcat
 
 I have created a webapp and put a log4j.properties in the classpath,
but
 the logging doesn't seem to work. So now I want to enable log4j
 debugging, but don't know how to set this system property with
tomcat:
 
 Ie: can I set the system property '-Dlog4j.debug=true' in web.xml,
is
 that possible? If not: how do I set this property?
 

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




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


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


_
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl


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


This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you

RE: log4j logging and tomcat

2003-10-03 Thread Ilja Hehenkamp
Nothing changed :(

I'm outa luck... Does log4j.jar also needs to be placed in 
$catalina_home/common/lib?


From: Shapira, Yoav [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: log4j logging and tomcat
Date: Fri, 3 Oct 2003 15:10:31 -0400
Howdy,
Ahh, I should've known commons-logging was in the mix... Let's try
temporarily to remove commons-logging*.jar from your WEB-INF/lib.  See
what happens...
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Ilja Hehenkamp [mailto:[EMAIL PROTECTED]
Sent: Friday, October 03, 2003 3:06 PM
To: [EMAIL PROTECTED]
Subject: RE: log4j logging and tomcat

all prerequisites are true I'm affraid :(

Directory listing:

/Library/Tomcat/webapps/Mathesis/WEB-INF/classes:
hibernate.cfg.xml   log4j.propertiesorg osuser.xml

/Library/Tomcat/webapps/Mathesis/WEB-INF/lib:
cglib.jar   hibernate2.jar
commons-beanutils-1.6.1.jar jdom.jar
commons-collections-2.1.jar log4j-1.2.8.jar
commons-lang-1.0.1.jar  osaccess-2.0.0.jar
commons-logging-1.0.2.jar   oscore-2.2.2-dev.jar
commons-logging-api-1.0.2.jar   osuser-1.0-dev.jar
dom4j.jar   struts.jar

log4j.properties:

### direct log messages to stdout ###
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p
%c{1}:%L -
%m%n

### direct messages to file hibernate.log ###
# log4j.appender.file=org.apache.log4j.FileAppender
# log4j.appender.file.File=hibernate.log
# log4j.appender.file.layout=org.apache.log4j.PatternLayout
# log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p
%c{1}:%L -
%m%n

### set log levels - for more verbose logging change 'info' to 'debug'
##

log4j.debug=true

log4j.rootLogger=debug, stdout

log4j.logger.net.sf.hibernate=debug, file, stdout

log4j.logger.com.opensymphony=debug, stdout

log4j.logger.org.mathesis=debug, stdout

### enable the following line if you want to track down connection ###
### leakages when using DriverManagerConnectionProvider ###
#log4j.logger.net.sf.hibernate.connection.DriverManagerConnectionProvid
er=t
race

### log JDBC bind parameters ###
log4j.logger.net.sf.hibernate.type=debug

### log prepared statement cache activity ###
log4j.logger.net.sf.hibernate.ps.PreparedStatementCache=debug

Ilja

From: Shapira, Yoav [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: log4j logging and tomcat
Date: Fri, 3 Oct 2003 14:55:44 -0400


Howdy,
If log4j.jar is in your WEB-INF/lib, and log4j.properties is in your
WEB-INF/classes, and your server is set up correctly (i.e. all
examples
work), and you set log4j.debug=true as a system property, and nothing
shows up, I'm lost.  If any of those conditions are false, correct
them
;)


Yoav Shapira
Millennium ChemInformatics


 -Original Message-
 From: Ilja Hehenkamp [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 03, 2003 2:54 PM
 To: [EMAIL PROTECTED]
 Subject: RE: log4j logging and tomcat
 
 Thanks, did that, but still no debuggin information is showing up in
my
Mac
 OSX console... Looks like log4j isn't used, however it is in my
WEB-INF/lib
 dir of my webapp...
 
 Ilja
 
 From: Shapira, Yoav [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: RE: log4j logging and tomcat
 Date: Fri, 3 Oct 2003 14:37:50 -0400
 
 
 Howdy,
 Set JAVA_OPTS='-Dlog4j.debug=true' in
$CATALINA_HOME/bin/catalina.sh.
 RTFM
 
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
  -Original Message-
  From: Ilja [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 03, 2003 2:37 PM
  To: [EMAIL PROTECTED]
  Subject: log4j logging and tomcat
  
  I have created a webapp and put a log4j.properties in the
classpath,
 but
  the logging doesn't seem to work. So now I want to enable log4j
  debugging, but don't know how to set this system property with
tomcat:
  
  Ie: can I set the system property '-Dlog4j.debug=true' in
web.xml,
is
  that possible? If not: how do I set this property?
  
 

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

Where is the Client Deployer Package?

2003-09-29 Thread Ilja
I just cannot find the Client Deployer Package which is mentioned here:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html

Anyone who knows?

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



Deployer Package and JNDI-resource

2003-09-29 Thread Ilja
Why does my webapp work when I manually put the .war file in the webapps
directory and why doesn't it work when I deploy it with the Client
Deployer Package and Ant?

Note that it does work when I do it manually, so there's no flaw in my
setup or code (I suppose), but when I use the Client Deployer Package I
get the following error:

net.sf.hibernate.JDBCException: Cannot open connection: Cannot load JDBC
driver class 'null'

net.sf.hibernate.impl.SessionFactoryImpl.openConnection(SessionFactoryImpl.java:405)
net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:2751)
net.sf.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:38)

net.sf.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:21)
net.sf.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1955)
org.mathesis.test.HibernateTest.beginTransaction(HibernateTest.java:103)
org.mathesis.test.HibernateTest.doGet(HibernateTest.java:51)
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

It's not a Hibernate thingy also, since when I try to load the JNDI
resource with my own java code the same thing happens...

Some resources:

initial problem:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg104212.html

Suggestions to use Client Deployer Package from Remy Maucherat:

-
http://www.mail-archive.com/[EMAIL PROTECTED]/msg104240.html
-
http://www.mail-archive.com/[EMAIL PROTECTED]/msg104236.html

So it still doesn't help. Somehow when you deploy your application with
the Client Deployer Package, it can't find the appropiate context...

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



Re: Deployer Package and JNDI-resource: solved

2003-09-29 Thread Ilja Hehenkamp
Ok, solved the issue myself: Instead of using the InstallTask, I worked
by using the DeployTask instead...

I'm happy :)

On Mon, 29 Sep 2003 15:40:54 +0200, Ilja [EMAIL PROTECTED]
said:
 Why does my webapp work when I manually put the .war file in the webapps
 directory and why doesn't it work when I deploy it with the Client
 Deployer Package and Ant?
 
 Note that it does work when I do it manually, so there's no flaw in my
 setup or code (I suppose), but when I use the Client Deployer Package I
 get the following error:
 
 net.sf.hibernate.JDBCException: Cannot open connection: Cannot load JDBC
 driver class 'null'
 
 net.sf.hibernate.impl.SessionFactoryImpl.openConnection(SessionFactoryImpl.java:405)
 net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:2751)
 net.sf.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:38)
 
 net.sf.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:21)
 net.sf.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1955)
 org.mathesis.test.HibernateTest.beginTransaction(HibernateTest.java:103)
 org.mathesis.test.HibernateTest.doGet(HibernateTest.java:51)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 It's not a Hibernate thingy also, since when I try to load the JNDI
 resource with my own java code the same thing happens...
 
 Some resources:
 
 initial problem:
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg104212.html
 
 Suggestions to use Client Deployer Package from Remy Maucherat:
 
 -
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg104240.html
 -
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg104236.html
 
 So it still doesn't help. Somehow when you deploy your application with
 the Client Deployer Package, it can't find the appropiate context...
 
 -
 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: Catalina.stop: java.net.ConnectException: Connection refused

2003-09-22 Thread Ilja Hehenkamp
Anyone? It's quite urgent and I'm stuck now...

On Sun, 21 Sep 2003 21:53:30 +0200, Ilja [EMAIL PROTECTED]
said:
 Tomcat suddenly stopped working without any obvious reason...
 
 Config:
 
 Tomcat 5.09
 Mac OSX 10.2.6
 
 error:
 
 Catalina.stop: java.net.ConnectException: Connection refused
 java.net.ConnectException: Connection refused
 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:426)
 at java.net.Socket.connect(Socket.java:376)
 at java.net.Socket.init(Socket.java:291)
 at java.net.Socket.init(Socket.java:119)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
 at
 org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
 at
 org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
 Anyone?
 
 -
 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]



Catalina.stop: java.net.ConnectException: Connection refused

2003-09-21 Thread Ilja
Tomcat suddenly stopped working without any obvious reason...

Config:

Tomcat 5.09
Mac OSX 10.2.6

error:

Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
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:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.init(Socket.java:291)
at java.net.Socket.init(Socket.java:119)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Anyone?

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



Fwd: Delivery problems: Catalina.stop: java.net.ConnectException: Connection refused

2003-09-21 Thread Ilja
Why do I always get this message when I send an email to this list?

1) I subscribed to the list and confirmed it as well, even got a
confirmation from the mailinglist deamon
2) the messages still do seem to arrive
3) I've send an email to the emailadres in this email, but nothing has
changed yet...

On 21 Sep 2003 15:53:57 -0400, MAILER-DAEMON [EMAIL PROTECTED]
said:
 This is an unknown user on this system.  Please check the address.  If
 you think there is a problem on our end, please send a message to
 [EMAIL PROTECTED] Please include the email address. Thank
 You.
 
 Warning, delivery failure! This is a status message indicating that a
 message could not be delivered to 1 or more recipients.
 
 Original message subject: Catalina.stop: java.net.ConnectException:
 Connection refused
 Date received: 21-Sep-2003 15:53:50 -0400
 
 
 Recipients and delivery history
 
 [EMAIL PROTECTED]
  Transcript of session follows ---
 21-Sep-2003 15:53:49 -0400 Received via SMTP from ASG.CHIINC.COM
 21-Sep-2003 15:53:57 -0400 [EMAIL PROTECTED] is unknown
 


Attachment2
Description: application/unknown
---BeginMessage---
Tomcat suddenly stopped working without any obvious reason...

Config:

Tomcat 5.09
Mac OSX 10.2.6

error:

Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
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:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.init(Socket.java:291)
at java.net.Socket.init(Socket.java:119)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Anyone?

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


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

Catalina.stop: java.net.ConnectException: Connection refused

2003-09-21 Thread Ilja
Tomcat suddenly stopped working without any obvious reason...
 
 Config:
 
 Tomcat 5.09
 Mac OSX 10.2.6
 
 error:
 
 Catalina.stop: java.net.ConnectException: Connection refused
 java.net.ConnectException: Connection refused
 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:426)
 at java.net.Socket.connect(Socket.java:376)
 at java.net.Socket.init(Socket.java:291)
 at java.net.Socket.init(Socket.java:119)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
 at
 org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
 at
 org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
 Anyone? 

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



Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-19 Thread Ilja Hehenkamp
Remy Maucherat, can you elobarate on this deployer client? You talked about 
it, but it can nowhere be found. I'm still very stuck on this matter and 
don't have a way of fixing it... Deploying is a pain in the ass now compared 
to the convenient way of building with ant...

From: Ilja Hehenkamp [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Tomcat, MySQL  JNDI: java.sql.SQLException: Cannot load JDBC 
driver class 'null'
Date: Fri, 19 Sep 2003 19:37:46 +0200


Sorry, I don't really understand what you mean?

Do you mean I shouldn't use the build file anymore? If so: that's too  
bad,
since I like the way of automated updating the tomcat manager...

I'm sure you do. You seem to be stuck on that particular page of the
docs, however, which happens to be out of date, and doesn't actually
mention what is important.
Read the deployer page instead
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html ).
But still: I don't know how to fix the problem: why doesn't the jndi
datasource work with the through ant deployed application?
Because I don't think your stuff in server.xml is used at all.

That's much better.

I recommend you use the deployer package instead. The instructions  from
appdev are going to be updated or removed.

I think I know where lies the problem, however I still don't know  how 
to fix
it...

I use the sample build.xml file from Tomcat:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/ build.xml.txt 
to
install, reload and distribute my sample application.

When I do an ant -install it apparantly installs the application in  
the
Tomcat manager, however the application doesn't show up in the  webapps
directory. That's 1.

So maybe there's a conflict with either the context path, which I  
don't
think so, since my build file has explicitly set the context path to
/DBTest:

  property name=app.name  value=DBTest/
  property name=app.path  value=/${app.name}/
  property name=app.version   value=/
  property name=build.homevalue=${basedir}/build/
  property name=catalina.home value=/Library/Tomcat/ !--  UPDATE 
THIS!
--
  property name=dist.home value=${basedir}/dist/
  property name=docs.home value=${basedir}/docs/
  property name=manager.url   value=  http://localhost:8080/manager 
/
  property name=src.home  value=${basedir}/src/
  property name=web.home  value=${basedir}/web/

Or there's a conflict with the docbase, which I suspect... However  I'm 
not
sure why and how to fix it

Because when I put the generated war file (when doing an ant -dist)  in 
the
webapps directory the connection works! Although this works, it's  not 
very
convenient, since it defeats the purpose of the automated  installing 
through
ant...

Hope I made myself clear?


Ok, first some configuration information:

Tomcat 5.09
MySQL Driver 3.08 stable
OS: Mac OSX 10.2.6
J2SE 1.4.2
all commons libraries reside in $CATALINA_HOME/common/lib
MySQL Driver resides in $CATALINA_HOME/common/lib as well
I tried setting up a simple JNDI datasource connection but get  the  
following error message:
java.sql.SQLException: Cannot load JDBC driver class 'null'
at  
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataS 
ource
.java:529)
at  
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSour 
ce.ja
va:312)
at foo.DBTest.init(DBTest.java:24)
at foo.TestServlet.doGet(TestServlet.java:34)
at  
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at  
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  
  

The code and examples are taken from  
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-
examples-howto.html
I have searched through tons of archives and websites and mostly  
this  
error could be resolved by placing the driver and commons in the  
common/lib directory. However in my case they are there, so I  
cannot  
figure out what's the problem...

server.xml:

Context path=/DBTest docBase=DBTest debug=5
  reloadable=true crossContext=true
Logger className=org.apache.catalina.logger.FileLogger
  directory=logs  prefix=localhost_DBTest_log.   
suffix=.txt
 timestamp=true/
  Resource name=jdbc/TestDB
auth=Container
type=javax.sql.DataSource/
  ResourceParams name=jdbc/TestDB
   parameter
namedriverClassName/name
valueorg.gjt.mm.mysql.Driver/value
   /parameter
   parameter
nameusername/name
valuexxx/value
   /parameter
   parameter
namepassword/name
valuexxx/value
   /parameter
   parameter
nameurl/name
valuejdbc:mysql://localhost/javatest?autoReconnect=true/ value
   /parameter
  /ResourceParams
/Context
web.xml

?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app PUBLIC
 -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd 
web-app
   descriptionMySQL Test App/description

Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Ilja
Ok, first some configuration information:

Tomcat 5.09
MySQL Driver 3.08 stable
OS: Mac OSX 10.2.6
J2SE 1.4.2
all commons libraries reside in $CATALINA_HOME/common/lib
MySQL Driver resides in $CATALINA_HOME/common/lib as well
I tried setting up a simple JNDI datasource connection but get the  
following error message:

java.sql.SQLException: Cannot load JDBC driver class 'null'
	at  
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource 
.java:529)
	at  
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.ja 
va:312)
	at foo.DBTest.init(DBTest.java:24)
	at foo.TestServlet.doGet(TestServlet.java:34)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 

The code and examples are taken from  
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource- 
examples-howto.html

I have searched through tons of archives and websites and mostly this  
error could be resolved by placing the driver and commons in the  
common/lib directory. However in my case they are there, so I cannot  
figure out what's the problem...

server.xml:

Context path=/DBTest docBase=DBTest debug=5
 reloadable=true crossContext=true
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_DBTest_log.  
suffix=.txt
timestamp=true/

 Resource name=jdbc/TestDB
   auth=Container
   type=javax.sql.DataSource/
 ResourceParams name=jdbc/TestDB
  parameter
   namedriverClassName/name
   valueorg.gjt.mm.mysql.Driver/value
  /parameter
  parameter
   nameusername/name
   valuexxx/value
  /parameter
  parameter
   namepassword/name
   valuexxx/value
  /parameter
  parameter
   nameurl/name
   valuejdbc:mysql://localhost/javatest?autoReconnect=true/value
  /parameter
 /ResourceParams
/Context
web.xml

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app PUBLIC
-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  descriptionMySQL Test App/description
  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/TestDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
  servlet
  servlet-nameDBTestServlet/servlet-name
  description
Bla...
  /description
  servlet-classfoo.TestServlet/servlet-class
  /servlet
  servlet-mapping
  servlet-nameDBTestServlet/servlet-name
  url-pattern/DBTestServlet/url-pattern
  /servlet-mapping
/web-app
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Ilja Hehenkamp
I think I know where lies the problem, however I still don't know how to fix 
it...

I use the sample build.xml file from Tomcat: 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/build.xml.txt to 
install, reload and distribute my sample application.

When I do an ant -install it apparantly installs the application in the 
Tomcat manager, however the application doesn't show up in the webapps 
directory. That's 1.

So maybe there's a conflict with either the context path, which I don't 
think so, since my build file has explicitly set the context path to 
/DBTest:

 property name=app.name  value=DBTest/
 property name=app.path  value=/${app.name}/
 property name=app.version   value=/
 property name=build.homevalue=${basedir}/build/
 property name=catalina.home value=/Library/Tomcat/ !-- UPDATE THIS! 
--
 property name=dist.home value=${basedir}/dist/
 property name=docs.home value=${basedir}/docs/
 property name=manager.url   value=http://localhost:8080/manager/
 property name=src.home  value=${basedir}/src/
 property name=web.home  value=${basedir}/web/

Or there's a conflict with the docbase, which I suspect... However I'm not 
sure why and how to fix it

Because when I put the generated war file (when doing an ant -dist) in the 
webapps directory the connection works! Although this works, it's not very 
convenient, since it defeats the purpose of the automated installing through 
ant...

Hope I made myself clear?

From: Martin Jacobson [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Tomcat, MySQL  JNDI: java.sql.SQLException: Cannot load JDBC 
driver class 'null'
Date: Mon, 15 Sep 2003 14:00:52 +0200

Ilja wrote:
Ok, first some configuration information:

Tomcat 5.09
MySQL Driver 3.08 stable
OS: Mac OSX 10.2.6
J2SE 1.4.2
My config is not the same (TC 4.1.24, OSX 10.2.6, MySQL 3.07), and my 
parameters are different:
	ResourceParams name=jdbc/EuratomDB
		parameter
			namefactory/name
			valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
		/parameter
		parameter
			namemaxActive/name
			value100/value
		/parameter
		parameter
			namemaxIdle/name
			value3/value
		/parameter
		parameter
			namemaxWait/name
			value100/value
		/parameter
		parameter
			nameusername/name
			valuexxx/value
		/parameter
		parameter
			namepassword/name
			valuexxx/value
		/parameter
		parameter
			namedriverClassName/name
			valuecom.mysql.jdbc.Driver/value
		/parameter
		parameter
			nameurl/name
			valuejdbc:mysql://localhost/euratom?autoReconnect=true/value
		/parameter
	/ResourceParams

This works for me! The main diffs are (i) I specify the factory, and 
(ii), the driverClassName is com.mysql.jdbc.Driver

However, the exception seems to suggest that the correct factory is being 
used by default. Your driverClassName is the old name, and might not be in 
the jar file any more.

HTH
Martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Ilja Hehenkamp
Sorry, I don't really understand what you mean?

Do you mean I shouldn't use the build file anymore? If so: that's too bad, 
since I like the way of automated updating the tomcat manager...

But still: I don't know how to fix the problem: why doesn't the jndi 
datasource work with the through ant deployed application?


From: Remy Maucherat [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Tomcat, MySQL  JNDI: java.sql.SQLException: Cannot load JDBC 
driver class 'null'
Date: Mon, 15 Sep 2003 15:17:53 +0200

Ilja Hehenkamp wrote:

I think I know where lies the problem, however I still don't know how to 
fix it...

I use the sample build.xml file from Tomcat: 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/build.xml.txt to 
install, reload and distribute my sample application.

When I do an ant -install it apparantly installs the application in the 
Tomcat manager, however the application doesn't show up in the webapps 
directory. That's 1.

So maybe there's a conflict with either the context path, which I don't 
think so, since my build file has explicitly set the context path to 
/DBTest:

 property name=app.name  value=DBTest/
 property name=app.path  value=/${app.name}/
 property name=app.version   value=/
 property name=build.homevalue=${basedir}/build/
 property name=catalina.home value=/Library/Tomcat/ !-- UPDATE 
THIS! --
 property name=dist.home value=${basedir}/dist/
 property name=docs.home value=${basedir}/docs/
 property name=manager.url   value=http://localhost:8080/manager/
 property name=src.home  value=${basedir}/src/
 property name=web.home  value=${basedir}/web/

Or there's a conflict with the docbase, which I suspect... However I'm not 
sure why and how to fix it

Because when I put the generated war file (when doing an ant -dist) in the 
webapps directory the connection works! Although this works, it's not very 
convenient, since it defeats the purpose of the automated installing 
through ant...

Hope I made myself clear?
That's much better.

I recommend you use the deployer package instead. The instructions from 
appdev are going to be updated or removed.

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Ilja Hehenkamp
Sorry for being such a pain in the ass, but It's still not really clear to 
me:

What do you actually suggest? Are you talking about this client deployer 
that's listed on that page? Where can I find it? (I cannot find it, neither 
the build file that's mentioned there)

Will this fix my problem?

So for confirmation: I shouldn't use the old ant buildfile anymore?

Ilja


From: Remy Maucherat [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Tomcat, MySQL  JNDI: java.sql.SQLException: Cannot load JDBC 
driver class 'null'
Date: Mon, 15 Sep 2003 15:33:13 +0200

Ilja Hehenkamp wrote:

Sorry, I don't really understand what you mean?

Do you mean I shouldn't use the build file anymore? If so: that's too bad, 
since I like the way of automated updating the tomcat manager...
I'm sure you do. You seem to be stuck on that particular page of the docs, 
however, which happens to be out of date, and doesn't actually mention what 
is important.
Read the deployer page instead 
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html).

But still: I don't know how to fix the problem: why doesn't the jndi 
datasource work with the through ant deployed application?
Because I don't think your stuff in server.xml is used at all.

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Ilja Hehenkamp
It could be related, but I'm not sure.

I think the problem lies in the way the application gets deployed with this 
ant build file. Probably the docbase doesn't match (however that's just a 
wild guess)

Still waiting for some confirmation from Remy Maucherat. He was talking 
about the client deployer package, however I cannot find it...

Ilja

_
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]