Unicode translation?

2001-01-10 Thread Glen Campbell

I have an interesting problem. First, here's the environment:

Linux 2.2 (Redhat 7)
Apache 1.4 (not involved in this example)
Tomcat 3.2.1
Macromedia Ultradev 4 for development
MySQL 3.30
Mm.mysql driver for JDBC

I can create a database connection in Ultradev, and test it, and it returns
proper values. I am selecting a date, a username, and some text. In the
test, the values are fine. When I "go live" and connect to the server
(http:://hostname:8080/something.jsp - bypassing Apache), then the page
displays the date properly, but the username and text are horribly screwed
up. Here's what it looks like:

Date/TimeUserActivity
2001-01-10 10:12:20.0[B@8b1e6[B@578dfb
2001-01-10 10:12:20.0[B@2a987d[B@13bc1
2001-01-10 10:12:21.0[B@7a36a2[B@18c6f3
2001-01-10 10:12:21.0[B@2d8ecd[B@7a5e5e
2001-01-10 10:12:21.0[B@497062[B@716fa0
2001-01-10 10:12:21.0[B@57807a[B@33cac9
2001-01-10 10:12:21.0[B@467248[B@78dc08
2001-01-10 10:12:21.0[B@35c22f[B@5fd90f
2001-01-10 10:12:21.0[B@238785[B@1646fd
2001-01-10 10:12:21.0[B@ebe18[B@62433b
2001-01-10 10:12:21.0[B@2be654[B@1ea173
2001-01-10 10:12:21.0[B@79a49f[B@270107

It could be that the driver is doing something wrong (but why did it work
during the test?), but it appears more likely that tomcat is doing something
to the data: perhaps expecting Unicode?

Any suggestions are appreciated.
-- 
Glen Campbell
[EMAIL PROTECTED]


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




No need for Apache?

2001-01-10 Thread Glen Campbell

I would just like to get confirmation of this: my site will have low volume,
and 98% of the pages will have dynamic data (JSP). I should be able to
configure tomcat to listen on port 80, and get rid of Apache all together?
Or is there something I'm missing that would mean I have to use Apache and
Tomcat together?

Glen


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




Re: No need for Apache?

2001-01-10 Thread Glen Campbell
Title: Re: No need for Apache?



This is basically a reporting application. Some pages might contain static data. Some (few) pages may also include generated charts or graphs. Very, very few truly static pages. Pages would be served (almost exclusively) over a LAN, not over the Internet.

On 1/10/01 5:58 PM, micky mimo [EMAIL PROTECTED] casually stated:

What about the other 2%? 

-Original Message- 
From: Glen Campbell [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 10, 2001 8:44 PM 
To: [EMAIL PROTECTED] 
Subject: No need for Apache? 

I would just like to get confirmation of this: my site will have low volume, 
and 98% of the pages will have dynamic data (JSP). I should be able to 
configure tomcat to listen on port 80, and get rid of Apache all together? 
Or is there something I'm missing that would mean I have to use Apache and 
Tomcat together? 

Glen 


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








Re: Info on connections using mysql

2001-01-10 Thread Glen Campbell

On 1/10/01 8:49 PM, "Andrew Burrows" [EMAIL PROTECTED] casually stated:

 Hi All tomcat people,
 Could someone point me in the right direction to find info on using mysql in
 conjunction with tomcat/apache.
 
 Thanks
 
 [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 
Hi - I'm doing that sort of thing myself. I'm running Linux (redhat 7) with
Apache 1.4 and Tomcat 3.2.1. I've gotten Tomcat running standalone, and I'm
about to start work on integrating it with Apache. All the documentation
says to use mod_jserv to handle this, but many people on the list have
suggested that mod_jk is easier to configure. I believe mod_jserv is pretty
easy, too, except you have to wait for the next full moon and the procedure
seems to require three virgins for some reason. Mod_jk is not available
standalone anywhere, as far as I can tell; you have to download the Tomcat
sources and build it from that. I'll let you know how my adventures proceed.

Glen


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




Re: I may be too stupid...

2001-01-09 Thread Glen Campbell

On 1/8/01 5:37 PM, "[EMAIL PROTECTED]"
[EMAIL PROTECTED] casually stated:

 Is it in Dreamweaver UD your trying to make a live data
 connection, if so the driver must be accessible via
 Dreamweaver, this is not a tomcat config issue it would be
 local WS config (try throwing the dll in the system32
 dir)...
 
 later,
 -b
 
 ...but I've been working and reading about this for
 several weeks, and I
 still can't figure out how to do it.
 
 I have a local website whose root is based at /u1/www.
 
 I want all .jsp files to be handled by Tomcat.
 
 When I connect to http://localhost, I get the index.html
 file under
 .../tomcat/webapps/ROOT.
 
 When I connect to http://localhost/index.html, I get the
 index.html file
 from /u1/www.
 
 When I connect to http://localhost/surveyor.jsp, I get
 HTTP 404 file not
 found.
 
 I'm using Macromedia Dreamweaver to generate the JSP
 files and attempting to
 access MySQL via the mm.msql driver. When I connect from
 Dreamweaver, it
 tells me that there is no driver available.
 
 Here's my tomcat.conf file (this tends to change 40-50
 times per day):
 
 LoadModule jserv_module libexec/apache/mod_jserv.so
 IfModule mod_jserv.c
 # Do not edit!
 ApJServManual on
 ApJServDefaultProtocol ajpv12
 ApJServSecretKey DISABLED
 ApJServMountCopy on
 ApJServLogLevel notice
 ApJServLogFile /var/log/mod_jserv.log
 ### Change if you run tomcat on a different host
 ApJServDefaultHost localhost
 ApJServDefaultPort 8007
  All jsp files will go to tomcat
 
 ApJServMount default /root
 AddType text/jsp .jsp
 AddHandler jserv-servlet .jsp
 ## Context mapping - all
 requests go to tomcat
 ApJServMount /servlet /root
 #
 ## Context mapping - you need
 to "deploy"
 # ( copy or ln -s ) the context into htdocs
 ##
 # ApJservMount /CONTEXT/servlet /root
 # Location /CONTEXT/WEB-INF/ 
 # AllowOverride None
 # deny from all
 # /Location
 LocationMatch /*.jsp
 SetHandler jserv-servlet
 /LocationMatch
 /IfModule
 
 I feel like an absolute idiot, because I keep reading and
 re-reading the
 documentation at jakarta.apache.org, but nothing seems to
 work. I hope this
 isn't a terrible problem because I believe other websites
 have .jsp files in
 their root directory. What's going on??
 
 Glen Campbell
 [EMAIL PROTECTED]
 
 
 --
 ---
 To unsubscribe, e-mail: tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, email: tomcat-user-
 [EMAIL PROTECTED]
 
 
 
 
 Boyd Wilson
 School of Engineering and Applied Science
 Miami University
 Oxford, OH  45056
 
 [EMAIL PROTECTED]
 www.users.muohio.edu/wilsonkb
 
 513-529-5951
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 

The driver is on the webserver under the root directory (/u1/www) where,
according to the documentation, it's supposed to be. The problem is that,
when I try and connect to the .jsp file (the driver) then it's looking
underneath the tomcat directory.

BTW, there's no system32 directory under FreeBSD...

Glen


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