Re: [off-topic] - Where can i find Oreilly's package for uploading files?

2003-07-14 Thread Guus Holshuijsen
Try http://examples.oreilly.com/jservlet2/. There you will find a link to
http://www.servlets.com/cos/.

Regards,
Guus
- Original Message -
From: Susan Hoddinott [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, July 12, 2003 6:05 PM
Subject: Re: [off-topic] - Where can i find Oreilly's package for uploading
files?


 Have you tried www.oreilly.com?

 Regards,
 Susan Hoddinott
 http://www.hexworx.com

 - Original Message -
 From: Jose Euclides da Silva Junior - DATAPREVRJ
 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, July 10, 2003 2:02 AM
 Subject: [off-topic] - Where can i find Oreilly's package for uploading
 files?


  Hi, i have tried to search for , but i didnt find it. Can somebody help
 me?
  Thanks in advance,
  Euclides.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


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



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



Re: tomcat 4.1.24 + sdk 1.4.1_03 + Win 2000

2003-06-25 Thread Guus Holshuijsen
Mark,

Is there a reason why you are not using startup.bat? (instead of catalina
run).

The configuration that you describe works like a charm for me! I did have a
ClassNotFoundException when I was running Tomcat v4.0.1 (Tomcat v4.0.3, and
Tomcat 4.1.24), J2SDK1.4.0_01 on W2000 (and RedHat Linux 8.0), but all this
was solved when I installed J2SDK v1.4.1_03.

The only thing that you do that seems to differ from my setup is that I use
startup.bat and shutdown.bat instead of catalina run.

Regards,
Guus
- Original Message -
From: Jason Bainbridge [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 9:02 PM
Subject: Re: tomcat 4.1.24 + sdk 1.4.1_03 + Win 2000


 It sounds like it is getting confused with your various Tomcat installs,
what
 are the environment variables you have got set?

 A post in the archive suggested editing out the JMX MBeans stuff in
server.xml
 and it worked for the original poster, so if you don't need it (if you
don't
 know what it is it is likely that you don't) so in server.xml comment out
the
 following:

 !-- Uncomment these entries to enable JMX MBeans support --
   Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
 debug=0/
   Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
 debug=0/

 I would be more tempted to look more at the environment variables and
possible
 problems from the long paths though as a proper solution.

 Regards,
 --
 Jason Bainbridge
 http://jblinux.org

 On Tue, 24 Jun 2003 17:32, Mark Hayes wrote:
  Unable to start Tomcat 4.1.24 with sdk 1.4.1_03 on Windows 2000
 
  ClassNotFoundException: org.apache.catalina.core.StandardServer
 
  C:\Program Files\Apache Group\Tomcat 4.1\bincatalina run
  Using CATALINA_BASE:   C:\Program Files\Apache Group\Tomcat 4.1
  Using CATALINA_HOME:   C:\Program Files\Apache Group\Tomcat 4.1
  Using CATALINA_TMPDIR: C:\Program Files\Apache Group\Tomcat 4.1\temp
  Using JAVA_HOME:   C:\j2sdk1.4.1_03
  Jun 24, 2003 5:22:15 PM org.apache.commons.digester.Digester
startElement
  SEVERE: Begin event threw exception
  java.lang.ClassNotFoundException:
org.apache.catalina.core.StandardServer
 
  Have struggled with this for 2 days. Symptom occurs with LE version,
non-LE
  version, exe version, and zip version  Symptom occurs with earlier
version
  of TC 4.1.x (4.1.12).  TC 4.0.1 starts OK on sdk 1.4.1_03
 
  I am using catalina run to invoke Tomcat from the Tomcat bin
directory.
  JAVA_HOME and CATALINA_HOME are both set.
 
  StandardServer is in C:\Program Files\Apache Group\Tomcat
  4.1\server\lib\catalina.jar
 
  Has anyone encountered this?  Have tried numerous uninstall/reinstall
and
  search hi and low with no success.
 
 
 
  - -
  COL Ltd in Hong Kong has checked this message for all
  known viruses using SkyScan-AV powered by MessageLabs.
  For information on this service e-mail [EMAIL PROTECTED]
  or visit www.col.com.hk
  - -
 
  -
  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 Class Loader (parent/child tree)

2003-06-18 Thread Guus Holshuijsen
All,

Just to let you know that I found out what caused the ClassNotFoundException
problem.

I found the answer in the release notes of Tomcat 4.0.6. It says the
following:

Tomcat 4.0 and Sun JDK 1.4 beta 3
Some unpredictable classloading behaviour has been reported when Tomcat is
used with Sun JDK 1.4 beta 3. The problem has been fixed with Sun JDK 1.4
Release Candidate or later.

I was using Sun JDK 1.4.0_01-b3 together with Tomcat 4.0.3 (which did not
give me any problems) and with Tomcat 4.1.24 (which continuously gave me
ClassNotFoundExceptions when retrieving BLOBs from the MySQL database).

Regards,
Guus
- Original Message -
From: Guus Holshuijsen [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 4:47 PM
Subject: Re: Tomcat Class Loader (parent/child tree)


 Julien,

 The tomcat documentation also mentions:
 As mentioned above, the web application class loader diverges from the
 default Java 2 delegation model (in accordance with the recommendations in
 the Servlet Specification, version 2.3, section 9.6). When a request to
load
 a class from the web application's WebappX class loader is processed, this
 class loader will look in the local repostories FIRST, instead of
delegating
 before looking. All other class loaders in Tomcat 4 follow the usual
 delegation pattern.

 Therefor I don't think there is any contradiction. The Class loader HOWTO
is
 pretty interesting to read especially when all sections are read. I had to
 spend several days on a class loading problem and asked for help before
 somebody pointed me at this howto and adviced me to read it. ;-)

 Regards,
 Guus
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 17, 2003 3:50 PM
 Subject: Tomcat Class Loader (parent/child tree)


 
  Hello,
 
  According to the tomcat documentation:
 
  Normally, when a class loader is asked to load a particular
  class or resource, it delegates the request to a parent class
  loader first, and then looks in its own repositories only if
  the parent class loader(s) cannot find the requested class or
  resource.
 
  From what I understand from the documentation, the common/lib
  directory is a parent to the webapp1/lib directory and therefore
  according to the preceding quote, Tomcat should look first in
  common/lib and THEN in webapp1/lib.
 
  I tried putting two identically-named classes in the common/lib
  directory and in the webapp1/lib.  My jsp uses the class loaded
  from webapp1/lib and not the class loaded from common/lib.  Is
  this not contradictory??
 
  Julien.
 
 
  -
  Sent using MailStart.com ( http://MailStart.Com/welcome.html )
  The FREE way to access your mailbox via any web browser, anywhere!
 
 
  -
  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]



ClassNotFoundException

2003-06-17 Thread Guus Holshuijsen
Hi!

I am stuck with the following challenge.

After some initial problems with my web application with regard to 
ClassNotFoundExceptions when trying to read blobs from a MySQL database which was 
caused by my lack of knowledge regarding the Tomcat class loading filosophy (which is 
explained very well in 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html) I am stuck 
with the following:

I started out with a web application that was fully selfcontained i.e. it
did not use database or JNDI resources defined in the Tomcat container. So
there was a mysql-connector-java.jar in the WEB-INF/lib of the web
application and the classes were in WEB-INF/classes. While developing under
Forte4J (SunONE Studio update 1, Tomcat v4.0.1, NetBeans, Windows2000)
everything seemed to work fine. Then I deployed to a RedHat Linux 8.0 host
running Tomcat v4.0.3 and I got the ClassNotFoundException.

QUESTION:
Can somebody explain - in terms of class loading - why I get
the ClassNotFoundException when both the MySQL driver stuff and the web
application are in the same class loader context (at least they are there
from my point of view).

Then I changed to running Tomcat v4.1.24 both on W2000 and RH 8.0 (with JDK
1.4.0_01), I redesigned my web application to use the Tomcat filosophy regarding JNDI 
and database resources and I still got the ClassNotFoundException, that is until I 
found the documentation about class loading...

What I don't like much is that I have to move part of my web application code (the 
classes that are stored as blob in the database) into the container's common/lib 
directory. This causes deployment of my web application to be more difficult and makes 
my web application less portable.

Of course I did NOT read all of the Tomcat documentation, so I will not say that I 
know all about the different ways to configure a web application in Tomcat, but 
sometimes a few words in the right direction helps me to focus.

I'm off reading more of the Tomcat docs and hope for somebody out there to enlighten 
me ;-) 

Regards,
Guus



Re: Tomcat Class Loader (parent/child tree)

2003-06-17 Thread Guus Holshuijsen
Julien,

The tomcat documentation also mentions:
As mentioned above, the web application class loader diverges from the
default Java 2 delegation model (in accordance with the recommendations in
the Servlet Specification, version 2.3, section 9.6). When a request to load
a class from the web application's WebappX class loader is processed, this
class loader will look in the local repostories FIRST, instead of delegating
before looking. All other class loaders in Tomcat 4 follow the usual
delegation pattern.

Therefor I don't think there is any contradiction. The Class loader HOWTO is
pretty interesting to read especially when all sections are read. I had to
spend several days on a class loading problem and asked for help before
somebody pointed me at this howto and adviced me to read it. ;-)

Regards,
Guus
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 3:50 PM
Subject: Tomcat Class Loader (parent/child tree)



 Hello,

 According to the tomcat documentation:

 Normally, when a class loader is asked to load a particular
 class or resource, it delegates the request to a parent class
 loader first, and then looks in its own repositories only if
 the parent class loader(s) cannot find the requested class or
 resource.

 From what I understand from the documentation, the common/lib
 directory is a parent to the webapp1/lib directory and therefore
 according to the preceding quote, Tomcat should look first in
 common/lib and THEN in webapp1/lib.

 I tried putting two identically-named classes in the common/lib
 directory and in the webapp1/lib.  My jsp uses the class loaded
 from webapp1/lib and not the class loaded from common/lib.  Is
 this not contradictory??

 Julien.


 -
 Sent using MailStart.com ( http://MailStart.Com/welcome.html )
 The FREE way to access your mailbox via any web browser, anywhere!


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



ClassNotFoundException

2003-06-16 Thread Guus Holshuijsen
Hi!

I checked the mailing archive and found some mail but never any answers. Here goes

I use the following software:
+ Tomcat 4.1.24 or Tomcat 4.0.6
+ mysql-connector-java-3.0.8-stable-bin.jar (in the $CATALINE_HOME/common/lib)
+ MySQL database server 3.23.51
+ my own web application below $CATALINE_HOME/webapps

The web application I created writes a blob to the MySQL database (there is no problem 
here).
When the web application tries to read the blob from the database a 
ClassNotFoundException is thrown in the com.mysql.jdbc.ResultSet.getObject method 
while wading the object input stream.

I tried different versions of the mysql driver software (org.gjt.mm.mysql package) 
I tried different versions of Tomcat 
I tried what Sriram Narayanan writes in his message of 21 feb 2002 (put the mysql jar 
not only in the $CATALINE/common/lib directory but also in the 
$CATALINA_HOME/webapps/webapp name/WEB-INF/classes/lib directory) .
I tried using the Tomcat DataSource resources .

All to no avail!

Is there anybody who has any ideas ...?

Regards,
Guus