Unable to connect to Sybase 11.9.2 server -Help please

2003-01-17 Thread Krishna_R . _Nagaraj




Hello Everyone,

I am trying to connect to sybase 11.9.2 database server. Has anyone
encountered this error. Your help on this will be greatly appreciated.

I have created a datasource in Tomcat 4.1.18.
I have the jconn2.jar file in webapps/ROOT/WEB_INF/classes/jconn2.jar
I have the jconn2.jar file in c:/tomcat4/commons/lib/jconn2.jar

However I get this error.

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.java:312)
  at SecurityCheckServlet.getConnection(SecurityCheckServlet.java:83)
  at SecurityCheckServlet.doGet(SecurityCheckServlet.java:37)

I have the following entries in the server.xml

 GlobalNamingResources
Environment name=simpleValue override=true
type=java.lang.Integer value=30/
Resource auth=Container description=User database that can be
updated and saved name=UserDatabase scope=Shareable
type=org.apache.catalina.UserDatabase/
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

Resource name=jdbc/MBSDB scope=Shareable
type=javax.sql.DataSource/
ResourceParams name=jdbc/MBSDB
  parameter
nameusername/name
valuejgf/value
  /parameter
  parameter
namepassword/name
valuemypassword/value
  /parameter
 !-- parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter --
  parameter
namedriverClassName/name
valuecom.sybase.jdbc2.jdbc.SybDriver/value
  /parameter
  parameter
nameurl/name
valuejdbc:sybase:Tds:192.168.7.42:4100/mydatabase/value
  /parameter
  parameter
namemaxActive/name
value6/value
  /parameter
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
/ResourceParams
  /GlobalNamingResources

I have the following entries in the web.xml file

  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/MBSDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref


How do I unsubscribe?

2003-01-13 Thread Krishna_R . _Nagaraj




How do I unsubscribe from the forum? I did try to 2 times by sending an
email to un-subscribe address. But no luck.

Thanks

Krishna Nagaraj


ERROR IN TOMCAT 4.18 + APACHE 2.0.43 + JK2 CONNECTOR

2003-01-08 Thread Krishna_R . _Nagaraj


problem.doc
Description: MS-Word document
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


TOMCAT 4.18 + APACHE 2.0.43 + JK2 CONNECTOR ERROR

2003-01-08 Thread Krishna_R . _Nagaraj





Was anyone able to crack this problem with TOMCAT 4.18  +  APACHE 2.0.43 +
JK2 CONNECTOR?

I am thinking of using JK instead JK2 since we have to implement this in
production soon. The only thing concerning me is - I have read that JK is
deprecated and may not/won't support future Tomcat and Apache releases. Is
that true?

Your help on this will be greatly appreciated.

TOMCAT 4.18  +  APACHE 2.0.43 + JK2 CONNECTOR ERROR DESCRIPTION (The
previous attachment's content)

If I try to browse a jpg file of size greater than 34KB then I get an image
which has a dark pattern from the middle of the image. This only happens if
the image is greater than 34KB.  I have also noticed that this is not
consistent. But this seems to happen when the file size is greater than
34KB. This is happening to another colleague of mine.

I also noticed that if I try to browse the same image ( 34KB) under the
subfolder of examples (i.e. jsp folder) I get the following errors (logged
in apache error.log file). This however happens to any file (No size
constraint)

[Fri Jan 03 17:40:28 2003] [error] Error ajp_process_callback - write
failed
[Fri Jan 03 17:40:28 2003] [error] ajp13.service() ajpGetReply recoverable
error 3
[Fri Jan 03 17:40:28 2003] [error] Error ajp_process_callback - write
failed
[Fri Jan 03 17:40:28 2003] [error] ajp13.service() ajpGetReply recoverable
error 3
[Fri Jan 03 17:40:28 2003] [error] ajp13.service() Error  forwarding
ajp13:localhost:8019 1 0
[Fri Jan 03 17:40:28 2003] [error] mod_jk.handler() Error connecting to
tomcat 3

Can someone please help me in solving this problem

I have the following settings in my config files.

Server.xml

 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8019 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=2
   useURIValidationHack=false

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler

worker2.properties

[shm]
file=c:/apache/Apache2/logs/shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8019]
port=8019
host=127.0.0.1

# define the worker
[ajp13:localhost:8019]
channel=channel.socket:localhost:8019

# Uri mapping
[uri:/test/*]
worker=ajp13:localhost:8019

jk2.properties

# list of needed handlers.
handler.list=apr,channelSocket,request

# Override the default port for the channelSocket
channelSocket.port=8019

Thanks

Krishna Nagaraj


RE: HELP PLEASE ON TOMCAT 4.x + APACHE 2.0.43 + mod_jk2-2.0.43.dll

2003-01-06 Thread Krishna_R . _Nagaraj


config_files.doc
Description: MS-Word document
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


HELP PLEASE

2003-01-06 Thread Krishna_R . _Nagaraj

I had some problems sending the mail with this content. Can you please open the file where I have described the error I am receiving.

(See attached file: config_files.doc)

Thanks a bunch for the help.

Krishna Nagaraj



config_files.doc
Description: MS-Word document
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


ERROR IN TOMCAT 4.18 + APACHE 2.0.43 + JK2 CONNECTOR - HELP PLS

2003-01-06 Thread Krishna_R . _Nagaraj

I have explained the error in this attached document. 

(See attached file: problem.doc)

Thanks a lot

Krishna


problem.doc
Description: MS-Word document
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: ERROR IN TOMCAT 4.18 + APACHE 2.0.43 + JK2 CONNECTOR - HELP PLS

2003-01-06 Thread Krishna_R . _Nagaraj




Sorry. I didn't mean to send 4 times. The first 2 times only the attached
document was displayed in the mail. That's why I sent it out again by
adding more explanation into the attached doc.

Again I apologize for the inconvenience.


HELP PLEASE ON TOMCAT 4.x + APACHE 2.0.43 + mod_jk2-2.0.43.dll

2003-01-03 Thread Krishna_R . _Nagaraj




All,

Can any one help me by providing a step by step procedure to configure
Apache 2.0.43 with Tomcat 4.0.18 using jk2. I have used jk previously but I
have problems in configuring jk2. How do I modify my files to make it work
with jk2. Thanks a lot for the help

I have the these entries for jk in httpd.conf

LoadModule jk2_module modules/mod_jk2-2.0.43.dll

JkWorkersFile c:\tomcat\Tomcat-4-1-18\conf\jk\workers.properties
JkLogFile c:\tomcat\Tomcat-4-1-18\logs\mod_jk.log
Include c:/tomcat/tomcat-4-1-18/conf/auto/mod_jk.conf

I have the these entries for jk in server.xml

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=c:/apache/Apache2/modules/mod_jk-2.0.43.dll /


Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true forwardAll=false
modJk=c:/apache/Apache2/modules/mod_jk-2.0.43.dll /



I have the these entries for jk in workers.properties

# BEGIN workers.properties
# Definition for Ajp13 worker
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
# END workers.properties


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