mod_jk2.so w/redhat9

2003-08-14 Thread Steve Madonna
Has anyone out there built a mod_jk2.so file for the latest RH9
httpd-2.0.40-21.3? or know where I could get one? I did a a few google
searches and looked through the archive for this list, but I can't find any
info. I'm pretty surprised, actually. I figured someone would have built one
by now? Thanks in advance for any info!

-Steve



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



RE: mod_jk2.so w/redhat9

2003-08-14 Thread Steve Madonna
does that build the connector directly into apache?


-Original Message-
From: Clive Luk [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 10:27 PM
To: Tomcat Users List
Subject: RE: mod_jk2.so w/redhat9


Hi Steve,

That's how i build my mod_jk2.so

i used jakarta-tomcat-connectors-4.1.26-src

you may want to do a goole search and look for
jakarta-tomcat-connectors-4.1.26-src

but i aslos complied apache2 from source using httpd-2.0.47.

chmod +x buildconf.sh
./buildconf.sh
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/lo
cal/jakarta-tomcat-4.1.26 --with-jave-home=/usr/local/j2sdk1.4.2
make

Cheers,
Clive

-Original Message-
From: Steve Madonna [mailto:[EMAIL PROTECTED]
Sent: Friday, 15 August 2003 3:20 PM
To: [EMAIL PROTECTED]
Subject: mod_jk2.so w/redhat9


Has anyone out there built a mod_jk2.so file for the latest RH9
httpd-2.0.40-21.3? or know where I could get one? I did a a few google
searches and looked through the archive for this list, but I can't find any
info. I'm pretty surprised, actually. I figured someone would have built one
by now? Thanks in advance for any info!

-Steve



-
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: mod_jk2.so w/redhat9

2003-08-14 Thread Steve Madonna
very good! Thanks for the quick response. :-)

-Original Message-
From: Clive Luk [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 10:35 PM
To: Tomcat Users List
Subject: RE: mod_jk2.so w/redhat9


it just build a DSO file but you need to configure apache yourself have a
look at the jakarta tomcat website. it tells your how to configure apache to
talk to tomcat

Cheers,
Clive

-Original Message-
From: Steve Madonna [mailto:[EMAIL PROTECTED]
Sent: Friday, 15 August 2003 3:33 PM
To: Tomcat Users List
Subject: RE: mod_jk2.so w/redhat9


does that build the connector directly into apache?


-Original Message-
From: Clive Luk [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 10:27 PM
To: Tomcat Users List
Subject: RE: mod_jk2.so w/redhat9


Hi Steve,

That's how i build my mod_jk2.so

i used jakarta-tomcat-connectors-4.1.26-src

you may want to do a goole search and look for
jakarta-tomcat-connectors-4.1.26-src

but i aslos complied apache2 from source using httpd-2.0.47.

chmod +x buildconf.sh
./buildconf.sh
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/lo
cal/jakarta-tomcat-4.1.26 --with-jave-home=/usr/local/j2sdk1.4.2
make

Cheers,
Clive

-Original Message-
From: Steve Madonna [mailto:[EMAIL PROTECTED]
Sent: Friday, 15 August 2003 3:20 PM
To: [EMAIL PROTECTED]
Subject: mod_jk2.so w/redhat9


Has anyone out there built a mod_jk2.so file for the latest RH9
httpd-2.0.40-21.3? or know where I could get one? I did a a few google
searches and looked through the archive for this list, but I can't find any
info. I'm pretty surprised, actually. I figured someone would have built one
by now? Thanks in advance for any info!

-Steve



-
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 startup problems on Linux box.

2002-03-01 Thread Steve Madonna

It would be hard to identify your specific problem based on what you have
written here, but there some places you can start looking. First, check your
log files, specifically the 'catalina.out' file for startup and shutdown
errors. Typcially it takes tomcat 4-5 seconds to startup or shutdown on my
redhat 7.2 machine running java 1.4. Running a tail -f log.file will
allow you to see what's going on (where log.file is the logfile you're
watching).

-Steve


-Original Message-
From: Sean Machin
To: 'Tomcat Users List'
Sent: 3/1/2002 8:05 AM
Subject: tomcat startup problems on Linux box.

Hi All,

I am running Tomcat 4.0 on a Redhat 7.1 machine.
Everything is fine, except the startup/shutdown
scripts do not seem to work reliably.
I installed Tomcat from the RPM, so use the script
/etc/init.d/tomcat4 {shutdown|start}.
Sometimes they work, sometimes they don't.
I can always restart the service with a reboot,
but don't want to have to do that.

Any ideas what could be going wrong?

Thanks,
Sean

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



RE: mySQL/JDBC/Tomcat4 documentation

2002-02-27 Thread Steve Madonna

Right at line 2 in your code is were we are having trouble. Apparenlty our
code is written the same way, but it still doesn't seem like the JDBC driver
has loaded:

java.sql.SQLException: org.gjt.mm.mysql.Driver

The driver is in the WEB-INF/lib/ directory.

Is there a config file that needs to allow permissions for this?

-Original Message-
From: DingHui [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 6:34 PM
To: Tomcat Users List
Subject: Re: mySQL/JDBC/Tomcat4 documentation


The following code demonstrate how to initilize MYSQL JDBC driver.

try {
   Class.forName(org.gjt.mm.mysql.Driver);
  } catch (ClassNotFoundException e) {
   System.out.println(e);
  }

  try {
   Connection con =
DriverManager.getConnection(jdbc:mysql://localhost/mydata, username,
password);
   Statement stmt = con.createStatement();
   ResultSet rs = stmt.executeQuery(SELECT NAME FROM TEST);
  // Display the SQL Results
 while(rs.next()) {
  System.out.println(rs.getString(NAME));
  }

  // Make sure our database resources are released
  rs.close();
  stmt.close();
  con.close();
   }catch (SQLException se) {
  // Inform user of any SQL errors
   System.out.println(SQL Exception:  + se.getMessage());
   se.printStackTrace(System.out);
   }
- Original Message - 
From: Steve Madonna [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 27, 2002 8:38 AM
Subject: mySQL/JDBC/Tomcat4 documentation


 Anyone know were I can get some documentation on installing
 mm.mysql-2.0.4-bin.jar file? I keep getting that not sutible driver
error
 everyone keeps talking about.
 
 Thx in advance.
 
 -Steve
 



RE: mySQL/JDBC/Tomcat4 documentation

2002-02-27 Thread Steve Madonna

The app seems to throw the same exception. I'm begining to think there's
something I missed in the configuration file?

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 2:09 PM
To: Tomcat Users List
Subject: RE: mySQL/JDBC/Tomcat4 documentation


try {
   Class.forName(org.gjt.mm.mysql.Driver);
  } catch (ClassNotFoundException e) {
   System.out.println(e);
  }

is not a good way of doing it, if you driver is in the WEB-INF/lib directory
you want to do

Driver d =
Thread.currentThread().getContextClassLoader().loadClass(org.gjt.mm.mysql.D
river).newInstance();
d.getConnection(bla bla bla)

or you can do

Driver d =
this.getClass().getClassLoader().loadClass(org.gjt.mm.mysql.Driver).newIns
tance();
d.getConnection(bla bla bla)


or

Thread.currentThread().getContextClassLoader().loadClass(org.gjt.mm.mysql.D
river);
DriverManager.getConnection(bla bla bla)

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net

-Original Message-
From: Steve Madonna [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 2:04 PM
To: 'Tomcat Users List'
Subject: RE: mySQL/JDBC/Tomcat4 documentation


Right at line 2 in your code is were we are having trouble. Apparenlty our
code is written the same way, but it still doesn't seem like the
JDBC driver
has loaded:

java.sql.SQLException: org.gjt.mm.mysql.Driver

The driver is in the WEB-INF/lib/ directory.

Is there a config file that needs to allow permissions for this?

-Original Message-
From: DingHui [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 6:34 PM
To: Tomcat Users List
Subject: Re: mySQL/JDBC/Tomcat4 documentation


The following code demonstrate how to initilize MYSQL JDBC driver.

try {
   Class.forName(org.gjt.mm.mysql.Driver);
  } catch (ClassNotFoundException e) {
   System.out.println(e);
  }

  try {
   Connection con =
DriverManager.getConnection(jdbc:mysql://localhost/mydata, username,
password);
   Statement stmt = con.createStatement();
   ResultSet rs = stmt.executeQuery(SELECT NAME FROM TEST);
  // Display the SQL Results
 while(rs.next()) {
  System.out.println(rs.getString(NAME));
  }

  // Make sure our database resources are released
  rs.close();
  stmt.close();
  con.close();
   }catch (SQLException se) {
  // Inform user of any SQL errors
   System.out.println(SQL Exception:  + se.getMessage());
   se.printStackTrace(System.out);
   }
- Original Message -
From: Steve Madonna [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 27, 2002 8:38 AM
Subject: mySQL/JDBC/Tomcat4 documentation


 Anyone know were I can get some documentation on installing
 mm.mysql-2.0.4-bin.jar file? I keep getting that not sutible driver
error
 everyone keeps talking about.

 Thx in advance.

 -Steve




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



RE: config tomcat to find jdbc driver

2002-02-27 Thread Steve Madonna

We are now using the mm.mysql-2.0.11-bin.jar
but now get a different error:
java.sql.SQLException: Server configuration denies access to data source

-Original Message-
From: Khanh Nguyen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 2:51 PM
To: 'Tomcat Users List'
Subject: RE: config tomcat to find jdbc driver


I try it that way, but still can not load driver

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 2:28 PM
To: Tomcat Users List
Subject: RE: config tomcat to find jdbc driver


which driver are you using, some drivers need to have a special setup
program. depends on the vendor.

anyways, if you put the jarfiles (that include the driver) into your
webapp/WEB-INF/lib/ ..
it´s in your classpath. 

hope it helps
[EMAIL PROTECTED]


 -Original Message-
 From: Khanh Nguyen [mailto:[EMAIL PROTECTED]]
 Sent: 27. febrúar 2002 22:25
 To: '[EMAIL PROTECTED]'
 Subject: config tomcat to find jdbc driver
 
 
 Can anyone help to config tomcat 4.0.2 to find my db driver 
 for jdbc.  Where
 to place driver, and how to setup classpath in tomcat to point to that
 driver
 
 Thanks
 
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



Solved: (sort of) RE: config tomcat to find jdbc driver

2002-02-27 Thread Steve Madonna

FYI,

Khahn and I replaced the mm.mysql-2.0.4-bin.jar file with the latest
mm.mysql-2.0.11-bin.jar file and got our application to finally access the
database. 

A good troubleshooting tool was to tail the catalina.out log file for errors
while tomcat was loading/running. It showed that the 2.0.4 jar file wasn't
loading properly. The new file (2.0.11-bin.jar) had no such errors.

After that, a quick read through the README file that came with the
mm.mysql-2.0.11-bin.jar file showed that our mySQL database wasn't
configured to be accessed through tomcat correctly. Fixing those permissions
allowed our application to run and development to continue.

Thanks for everyone to sent out responses! 

-Steve

-Original Message-
From: Khanh Nguyen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 2:53 PM
To: 'Tomcat Users List'
Subject: RE: config tomcat to find jdbc driver


My driver is mm.mysql-2.0.4-bin.jar

-Original Message-
From: Khanh Nguyen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 2:51 PM
To: 'Tomcat Users List'
Subject: RE: config tomcat to find jdbc driver


I try it that way, but still can not load driver

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 2:28 PM
To: Tomcat Users List
Subject: RE: config tomcat to find jdbc driver


which driver are you using, some drivers need to have a special setup
program. depends on the vendor.

anyways, if you put the jarfiles (that include the driver) into your
webapp/WEB-INF/lib/ ..
it´s in your classpath. 

hope it helps
[EMAIL PROTECTED]


 -Original Message-
 From: Khanh Nguyen [mailto:[EMAIL PROTECTED]]
 Sent: 27. febrúar 2002 22:25
 To: '[EMAIL PROTECTED]'
 Subject: config tomcat to find jdbc driver
 
 
 Can anyone help to config tomcat 4.0.2 to find my db driver 
 for jdbc.  Where
 to place driver, and how to setup classpath in tomcat to point to that
 driver
 
 Thanks
 
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



mySQL/JDBC/Tomcat4 documentation

2002-02-26 Thread Steve Madonna

Anyone know were I can get some documentation on installing
mm.mysql-2.0.4-bin.jar file? I keep getting that not sutible driver error
everyone keeps talking about.

Thx in advance.

-Steve