JDBCRealm and Oracle Not working

2002-05-18 Thread Chad Perry

Trying to get Oracle 8i to work with with the JDBCRealm:
Tomcat 4.0.4b3
JDK 1.4.0
OS Win2000 Server



I guess tomcat-JDBCRealm doesn't work with Oracle? It would be AWESOME if I 
could get this
to work! Could somebody verify that I'm not dorking out? Thanks!!


Here is my Realm element:

  


EXCEPTION BELOW - Occurs on Start up:

Starting service Tomcat-Standalone
Apache Tomcat/4.0.4-b3
Starting service Tomcat-Apache
Apache Tomcat/4.0.4-b3
Catalina.start: LifecycleException:  Exception opening database connection:  
java.sql.SQLException:
oracle.jdbc.driver.OracleDriver
LifecycleException:  Exception opening database connection:  
java.sql.SQLException: oracle.jdbc.driv
er.OracleDriver
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
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:243)
- Root Cause -
java.sql.SQLException: oracle.jdbc.driver.OracleDriver
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
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:243)



MISC RESEARCH:

The bug report belows makes me think this is still an issue even
in Apache Tomcat/4.0.4-b3:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5660

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: root application not finding JSPs

2002-05-18 Thread Chris Templin

FYI,
my development server is tomcat v4.0.3 on win98. this is where i'm having the 
problem. the live server is a unix box and all seems to work fine there. big 
surprise.

Chris

5/18/2002 6:00:09 PM, Chris Templin <[EMAIL PROTECTED]> wrote:

>Hi,
>Tomcat newbie here.
>
>After changing my application's context in server.xml from:
>
>
>
>to:
>
>
>
>tomcat now throws 404s when my servlets forward to JSPs, which, of course, I 
>haven't moved.
>
>I'm using the Struts ActionForward object, so I suppose it could be a Struts 
>problem. I'll try that list too. But, if you think it's a tomcat issue any help 
>is appreciated.
>
>Thanks,
>
>Chris
>
>
>
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How to get all current HttpSession?

2002-05-18 Thread dbgroups

I am using Struts 1.1 in Tomcat 4. How can i get all current HttpSession in
1 web application and across different web applications? Thanks.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: handler "jakarta-servlet" not found for

2002-05-18 Thread Donovan Ray - rdonov

We had the same error with mod_jk from  jakarta-tomcat-connectors-4.0.2;
using  jakarta-tomcat-connectors-4.0.4-b3 solved the problem for us.
 
http://www.acg-gmbh.de/mod_jk/  

-Original Message-
From: Stijn Ver Eecke [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 8:37 AM
To: '[EMAIL PROTECTED]'
Subject: handler "jakarta-servlet" not found for


Hello,
I recently installed tomcat 4.0.3 and apache2.2.0.35
and compiled the ajp13 connector from jakarta-tomcat-connectors-4.0.2
 
to my http2.conf i added :

  LoadModule jk_module /opt/apache2/modules/mod_jk.so

 
JkWorkersFile "/opt/tomcat4/conf/jk/workers.properties"
JkLogFile "/opt/tomcat4/logs/mod_jk.log"
 
JkLogLevel info
 
NameVirtualHost xxx.xxx.xx.x:81

ServerAdmin [EMAIL PROTECTED]  
DocumentRoot /opt/tomcat4/webapps
ServerName xxx.xxx.xx.x
JkMount /examples ajp13
JkMount /examples/* ajp13
JkMount /jk ajp13
JkMount /jk/* ajp13
JkMount /manager ajp13
JkMount /manager/* ajp13

  Options None
  AllowOverride None
  order allow,deny
  allow from all


 
 
ServerAdmin [EMAIL PROTECTED]  
DocumentRoot /www/docs/cac
ServerName www.xxx.be  
JkMount /faq ajp13
JkMount /faq/* ajp13
JkMount /xml ajp13
JkMount /xml/* ajp13

  Options None
  AllowOverride None
  order allow,deny
  allow from all


 
and to my server.xml file i added
 

 

   
 




   

   


 


  
http://www.xxx.be> www.xxx.be" debug="0"
appBase="/www/docs/xxx" unpackWARs="true">


 

 


  


 
 
My intent was : 2 virtual hosts, one, on the ip adres pointing to the tomcat
default webapps,
the other on the hostname pointing to the company website ... (temporarly on
port 81 since port 80 is taken by the live version)
both sites serve the static content alright but when i try to access one of
the JkMount's 
www.xxx.be:81/xml   or www.xxx.be:81/faq
  or xxx.xxx.xx.x:81/examples for example i get
the error page  :
 


Server error!




Error message: 
handler "jakarta-servlet" not found for: examples 

If you think this is a server error, please contact the webmaster


Error 500

 
 
Did i forget to install something with the mod_jk build ??? did i forget to
add a line in my httpd2.conf (did not add any addhandler lines since that
was not mentioned anywhere)
thx for the help
 
Stijn Ver Eecke
 
 
 



*

The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.




root application not finding JSPs

2002-05-18 Thread Chris Templin

Hi,
Tomcat newbie here.

After changing my application's context in server.xml from:



to:



tomcat now throws 404s when my servlets forward to JSPs, which, of course, I 
haven't moved.

I'm using the Struts ActionForward object, so I suppose it could be a Struts 
problem. I'll try that list too. But, if you think it's a tomcat issue any help 
is appreciated.

Thanks,

Chris









--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to hide code of JSP when we deploy app in Customer site

2002-05-18 Thread Nikola Milutinovic

Phupha Punyapotasakul/MIS/RY-CPP/Petro wrote:

> I decide to use JSP develop web-base app for customer but I
> don't want Customer to see source code.

Use Jasper: $CATALINA_HOME/bin/jspc.sh to compile all JSP pages to Java sources 
for their equivalent Servlets. Use JDK's "javac" to compile them to binary 
servlets. Use some "java obfuscator" to make the code unreadable :-).

The only thing that is needed is to make all neccessary servlet mappings in 
web.xml. In newest versions Jasper will even do that for you.

Nix.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Role Change

2002-05-18 Thread Craig R. McClanahan

Many of you have probably noticed that my level of CVS commits to Tomcat
has been reduced over the last few weeks.  Primarily, this is because I
have undertaken two new responsibilities at Sun:

* Web Layer Architect for the J2EE Platform

* Spec Lead for JavaServer Faces (JSR-127)

In my architect role, I will be watching over how all of the web-layer
technologies (including servlet and JSP) fit together into an integrated
whole.  As spec lead, I have the usual responsibilities of coordinating
the expert group that is creating version 1.0 of JavaServer Faces.  As you
can imagine, this combination of tasks is not going to leave me a lot of
time to work on Tomcat code ...

You will continue to see Remy and Kin-Man doing the great jobs they have
started in helping to bring Tomcat 4.1 to completion (and Remy's
additional willingness to play release manager), along with the valuable
efforts of everyone else who is contributing to Tomcat's successful
development.  I'm confident that the continued development of an
incredibly popular servlet and JSP container is in good hands.

Craig McClanahan




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Administration TC 4.0.3

2002-05-18 Thread puneet sachar

Listen friends i got few peoblem in administrating
Tomcat 4.0.3 

Can u help me ...plz guide me ..

Here follows the queries

1) Difference b/w Tomcat_HOME and CATALINA_HOME and
CATALINA_BASE ?

1.1)IS CATALINA_BASE is something related to different
context in a single container?


2)what is ANT_HOME ?
2.1) Do we have to install something additional to
tomcat ?
2.2) Are u doing at ur place with Tomact 3.x series ?

3) where is httpd.conf/tomcat.conf file ?

4) Where to add new context in tomcat?

5) what to write in build.xml and it is needed to
amend that file?



Regards
Puneet Sachar

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: reloadable=true not working---> problems with reloading servlets

2002-05-18 Thread Craig R. McClanahan



On Sat, 18 May 2002, kelly, Burrowa wrote:

> Date: Sat, 18 May 2002 15:34:31 +0100 (BST)
> From: "kelly, Burrowa" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: reloadable=true not working---> problems with reloading
> servl ets
>
> Why is it that during reloading of changed classes,
> tomcat clears all variables from HTTPSession?
>

Java does not provide any APIs to replace the classes that have been
recompiled.  So, servlet containers implement reload by throwing away the
entire webapp class loader (including all classes that have been loaded
from /WEB-INF/classes and /WEB-INF/lib), and starts the app over again.

However, Tomcat also implements a feature that helps in the scenario you
describe -- if you make sure that all of the beans you store as session
attributes are Serializable, then Tomcat can save and restore them for you
as it does the restart.  This also works across a regular shutdown and
restart of Tomcat itself.

> kB
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat 4 clears login parameters?

2002-05-18 Thread Craig R. McClanahan



On Sat, 18 May 2002, Lawlor, Frank wrote:

> Date: Sat, 18 May 2002 01:00:11 -0500
> From: "Lawlor, Frank" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "'Tomcat (E-mail)'" <[EMAIL PROTECTED]>
> Subject: Tomcat 4 clears login parameters?
>
> One problem that Tomcat web apps have is that
> the login page remains in the browser history
> and if the user navigates to one
> of these and tries to use it, they get a rather
> incomprehensible result.
>
> In Tomcat 3.x we had a good solution (the only
> one I have been able to find anywhere) which
> depends upon setting a parameter to indicate
> that the page has been used (this is used by
> JavaScript) to write "Page invalidated" or whatever
> you want).
>
> Unfortunately Tomcat 4.x seems to clear all the
> parameters.  I suppose there may be some
> good security reason for clearing the username
> and password, but can't it leave other parameters
> alone?
>

Storing the username and password (from a form-based login) as attributes
visible to the application was a very poor design decision in 3.3.  You
have unfortunately gotten yourself dependent on a container-specific
implementation detail that isn't portable to anywhere else (even to other
Tomcat versions).

You should put the appropriate HTML meta tags at the top of your login
page to tell the browser not to cache the data -- that way, the user will
get an "expired" error if they try to resubmit it, the same as you could
do on any other form in the app when you want to avoid resubmits.

> Thanks,
>
> Frank Lawlor
> Athens Group, Inc.
> (512) 345-0600 x151
> Athens Group, an employee-owned consulting firm integrating technology
> strategy and software solutions.
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: InitParameters missing in ServletConfig when Servlet-loadingtriggerd through Re

2002-05-18 Thread Craig R. McClanahan

Servlet initialization parameters are only visible to servlets that are
mapped directly in a .  If you access a servlet
indirectly via the invoker (i.e. "/servlet/*"), you are *not* going to see
these parameters.

Craig


On Thu, 16 May 2002, Karl Leipzig wrote:

> Date: Thu, 16 May 2002 11:52:54 +
> From: Karl Leipzig <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: InitParameters missing in ServletConfig when Servlet-loading
> triggerd through Re
>
> Hello,
> using Tomcat 4.0.3 (and 4.0.2 also) I encounter the following problem:
>
> Problem setup:
> My servlet has no  set.
>
> I start Tomcat.
> I trigger the loading of servlet A through a RequestDispatchers forward as
> quoted below.
> I trace my servlet A's ServletConfig init-parameters in the init() method
> call.
> The newly loaded servlet A's ServletConfig DOES NOT contain the
> init-parameters I specifed in web.xml!
>
> Unsatisfying solution setup:
> This time I specify a 1 in web.xml:
>
> I start Tomcat.
> The loading of servlet A is triggerd through the container on startup.
> I trace my servlet A's ServletConfig init-parameters in the init() method
> call.
> The newly loaded servlet A's ServletConfig as expected DOES contain all
> init-parameters I specifed in web.xml.
>
> Why are my init-parameters missing in the first case?
>
> Thank you,
> Philipp.
>
>
> Code used for forwarding:
> RequestDispatcher requestDispatcher =
> getServletContext().getRequestDispatcher("/servlet/" +
> responsibleServletName);
> requestDispatcher.forward(servletRequest, servletResponse);
>
>
> _
> Werden Sie Mitglied bei MSN Hotmail, dem größten E-Mail-Service der Welt.
> http://www.hotmail.com
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat 3.3.1 and additionalJars

2002-05-18 Thread Mario Felarca

Date: Fri, 17 May 2002 12:30:33 -0400  
>
>Both of those should work.  There could be some
>classloader issue involved.  Can you provide a test
>case of what you are trying to do?
>
>Cheers,
>Larry

So the base case I am trying is simply allowing access
to the jdom.jar from my webapps. This is to simply
test that the additionalJars property is working.

Actually, I just thought of something. The
additionalJars value simply adds to the context
classloader's classpath? It would not affect the other
loaders such as apps and common?

Is that a correct statement?

Thanks in advance.

Mario-




__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to hide code of JSP when we deploy app in Customer site

2002-05-18 Thread Shunsuke Masuda

Try jspc and remove original jsps.

- Original Message -
From: "Phupha Punyapotasakul/MIS/RY-CPP/Petro" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Saturday, May 18, 2002 12:07 PM
Subject: How to hide code of JSP when we deploy app in Customer site


>
> I decide to use JSP develop web-base app for customer but I
> don't want Customer to see source code.
>
> How Can I do.
> Any Ideas can solved this.
>
> --
---
>
> Phupha Punyapotasakul
> 01-3742594
> MIS Department...
> CP Petrochemical Co.,Ltd.
> [038-897103-8 #2027]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Query

2002-05-18 Thread Øyvind Vestavik


What happens if you just enter http://localhost:8080 ??

If entering the url without the "/greeting" returns a page saying
"If you're seeing this page via a web browser, it means you've setup
Tomcat successfully. Congratulations!" then everything is allright..

Entering http://localhost:8080/greeting means that you are requesting a
servlet/webapp called greeting that you have not installed or made yet..

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Fri, 17 May 2002, Balaji Ganapathiraman wrote:

>
> Sir
>
> I have installed tomcat 4.0 in my PC.
>
> But now when i am typing http://localhost:8080/greeting I am getting an error.
>
> The error statement is "The requested resource (/greeting) is not available."
>
> Kindly advice me suitably and help me out of this problem.
>
>
>
> Eagerly awaiting your reply
>
> Balaji
>
>
> Balaji G
>
> -
>      Yahoo! Autos - everything you wanted to know about cars and bikes


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Mod WEB_APP

2002-05-18 Thread Adrian

You should check : http://www.pubbitch.org/jboss.html

It worked on FreeBSD for me.

- Original Message -
From: Rui Oliveira <[EMAIL PROTECTED]>
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 7:16 AM
Subject: Mod WEB_APP


> Hello,
>
> Does anyone here has the mod_webapp compiled for Solaris 8, using the
> GCC?
>
> Can someone help me out?
>
> Regards
> Rui Oliveira
>
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Réf. : RE: Tomcat&IIS (on different computers )

2002-05-18 Thread Ignacio J. Ortega

> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Enviado el: jueves 16 de mayo de 2002 9:03

> Tomcat is on computer1 , workers.properties and 
> Isapi_redirect.dll too.
> IIS5.0 is computer2, I want to define a virtual directory 
> "greeting" which
> point on a directory located on the computer1 (but not in tomcat
> directory).

I dont understand this last sentence, do you want to create a
"greetings" context served by tomcat in the IIS machine?

> Q: Where can I put the Isapi_redirector.dll ( on computer1 or 
> 2? ). Same
> question for the workers.properties
Computer2, where the IIS installation resides, you need to put
workers.properties there to too, and make the Registry settings or a
properties file , there too

> How can I define my virtual rep "greeting"? I think i must 
> distribute the
> directory located on computer 1, can I avoid that?


If you have a greetings context in tomcat, you only need to add a couple
of lines to wk.p file.

/greetings=ajp13
/greetings/*=ajp13

use ajp13 or whatever name you used for the worker.., no need to have a
"greetings" virtual dir for that, if i understand your quetions well..
may be not

Saludos ,
Ignacio J. Ortega


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: IIS and Tomcat

2002-05-18 Thread Ignacio J. Ortega



Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> De: Sankaranarayanan (Ganesh) Ganapathy [mailto:[EMAIL PROTECTED]]
> Enviado el: sábado 18 de mayo de 2002 0:49
> Para: [EMAIL PROTECTED]
> Asunto: IIS and Tomcat
> 
> 
> Hi All,
> 
> What are the possible ways to configure IIS and Tomcat. Can 
> the two be made to work using a WARP connector?
> 

The Only way uis to use Ajp13 and isapi_redirector, no Warp protocol
support for now FOr IIS, may be in the future, may be jk2 will get Warp
protocol.. but until then.. 


> Thanx
> Ganesh
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 





msg54129/bin0.bin
Description: application/ms-tnef

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Connection Pool Configuration

2002-05-18 Thread D Watson

Hello All

I have been trying to implement connection pooling for some time now.  I
have read the documentation as well as umpteen messages on the list dealing
with this subject. I have been unable to get it to work and I am not sure
what I am missing. Could someone please post an example configuration (with
an explanation of each line) or point me to some kind of newbie-ish
walk-through?  I am using DB2 under RH Linux 7.1 and Tomcat4.0 on W2K and
want to connect to the datasource using JNDI.

Thanks!!

D Watson


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How can I redirect only JSP pages to Tomcat?

2002-05-18 Thread Arshad Mahmood

Which connector are you using, with mod_jk you can simply issue a
"JkMount /mysite/* ajp13" to forward all requests under
/mysite to Tomcat.

Regards.

- Original Message -
From: "Luca Ventura" <[EMAIL PROTECTED]>
To: "tomcat-user" <[EMAIL PROTECTED]>; "tomcat-dev"
<[EMAIL PROTECTED]>
Sent: Friday, May 17, 2002 7:44 AM
Subject: How can I redirect only JSP pages to Tomcat?


> Hello everybody!
>
> I have installed Tomcat 4 as servlet/JSP container fo IIS 5 but  I haven't
> understood
> how to redirect to Tomcat only requests for JSP pages or servlets. I have
> found only the way
> to redirect entire sites  but I would like to redirect only
> JSP pages and servlets and not html pages for example.
>
> Is it possible to redirect only a specified directory of a Web site? For
> example
> if I defined a site in /mysite folder is it possible to redirect to Tomcat
> only the
> request for the code present in /mysite/jsp ???
>
> Thanks everybody in advance!
>
> Luca
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Query

2002-05-18 Thread Balaji Ganapathiraman


Sir

I have installed tomcat 4.0 in my PC.

But now when i am typing http://localhost:8080/greeting I am getting an error.

The error statement is "The requested resource (/greeting) is not available."

Kindly advice me suitably and help me out of this problem.

 

Eagerly awaiting your reply

Balaji


Balaji G

-
     Yahoo! Autos - everything you wanted to know about cars and bikes 


IIS 5.0 + TC 4.0.3

2002-05-18 Thread Rich Downing

As best I can tell I have everything set up right: isapi_redirector.dll,
virtual directory, filter, etc.  However I get the following 404 status
in the iis_redirect.log when using ajp13 even though it sees test.jsp.

[Fri May 17 11:26:01 2002]  [jk_uri_worker_map.c (464)]: Attempting to
map URI '/test.jsp'
[Fri May 17 11:26:01 2002]  [jk_uri_worker_map.c (478)]:
jk_uri_worker_map_t::map_uri_to_worker, Found an exact match ajp13 ->
/test.jsp
[Fri May 17 11:26:01 2002]  [jk_isapi_plugin.c (721)]: HttpFilterProc
[/test.jsp] is a servlet url - should redirect to ajp13
[Fri May 17 11:26:01 2002]  [jk_isapi_plugin.c (784)]: HttpFilterProc
check if [/test.jsp] is points to the web-inf directory
[Fri May 17 11:26:01 2002]  [jk_isapi_plugin.c (824)]: HttpExtensionProc
started
[Fri May 17 11:26:01 2002]  [jk_worker.c (132)]: Into
wc_get_worker_for_name ajp13
[Fri May 17 11:26:01 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Fri May 17 11:26:01 2002]  [jk_isapi_plugin.c (860)]: HttpExtensionProc
got a worker for name ajp13
[Fri May 17 11:26:01 2002]  [jk_ajp_common.c (1352)]: Into
jk_worker_t::get_endpoint
[Fri May 17 11:26:01 2002]  [jk_ajp_common.c (1075)]: Into
jk_endpoint_t::service
[Fri May 17 11:26:01 2002]  [jk_ajp_common.c (280)]: Into
ajp_marshal_into_msgb
[Fri May 17 11:26:01 2002]  [jk_ajp_common.c (413)]:
ajp_marshal_into_msgb - Done
[Fri May 17 11:26:01 2002]  [jk_ajp_common.c (612)]: sending to ajp13
#496
[Fri May 17 11:26:01 2002]  [jk_ajp_common.c (853)]: ajp_send_request 2:
request body to send 0 - request body to resend 0
[Fri May 17 11:26:01 2002]  [jk_ajp_common.c (698)]: received from ajp13
#17
[Fri May 17 11:26:01 2002]  [jk_ajp_common.c (461)]:
ajp_unmarshal_response: status = 404
[Fri May 17 11:26:01 2002]  [jk_ajp_common.c (466)]:
ajp_unmarshal_response: Number of headers is = 0
[Fri May 17 11:26:01 2002]  [jk_isapi_plugin.c (428)]: Into
jk_ws_service_t::start_response
[Fri May 17 11:26:02 2002]  [jk_ajp_common.c (698)]: received from ajp13
#604
[Fri May 17 11:26:02 2002]  [jk_isapi_plugin.c (562)]: Into
jk_ws_service_t::write
[Fri May 17 11:26:02 2002]  [jk_ajp_common.c (698)]: received from ajp13
#2
[Fri May 17 11:26:02 2002]  [jk_isapi_plugin.c (872)]: HttpExtensionProc
service() returned OK
[Fri May 17 11:26:02 2002]  [jk_ajp_common.c (1307)]: Into
jk_endpoint_t::done

localhost_access_log.2002.05.17.txt shows the following:
192.168.1.30 -  [17/May/2002:11:26:01 -0500] "GET /test.jsp HTTP/1.1"
404 600


When attempting to use ajp12 instead, I get the following failure on the
socket connection.

[Fri May 17 11:42:58 2002]  [jk_uri_worker_map.c (464)]: Attempting to
map URI '/test.jsp'
[Fri May 17 11:42:58 2002]  [jk_uri_worker_map.c (478)]:
jk_uri_worker_map_t::map_uri_to_worker, Found an exact match ajp12 ->
/test.jsp
[Fri May 17 11:42:58 2002]  [jk_isapi_plugin.c (721)]: HttpFilterProc
[/test.jsp] is a servlet url - should redirect to ajp12
[Fri May 17 11:42:58 2002]  [jk_isapi_plugin.c (784)]: HttpFilterProc
check if [/test.jsp] is points to the web-inf directory
[Fri May 17 11:42:58 2002]  [jk_isapi_plugin.c (824)]: HttpExtensionProc
started
[Fri May 17 11:42:58 2002]  [jk_worker.c (132)]: Into
wc_get_worker_for_name ajp12
[Fri May 17 11:42:58 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Fri May 17 11:42:58 2002]  [jk_isapi_plugin.c (860)]: HttpExtensionProc
got a worker for name ajp12
[Fri May 17 11:42:58 2002]  [jk_ajp12_worker.c (227)]: Into
jk_worker_t::get_endpoint
[Fri May 17 11:42:58 2002]  [jk_ajp12_worker.c (123)]: Into
jk_endpoint_t::service
[Fri May 17 11:42:58 2002]  [jk_connect.c (116)]: Into jk_open_socket
[Fri May 17 11:42:58 2002]  [jk_connect.c (123)]: jk_open_socket, try to
connect socket = 2796
[Fri May 17 11:42:59 2002]  [jk_connect.c (132)]: jk_open_socket, after
connect ret = -1
[Fri May 17 11:42:59 2002]  [jk_connect.c (151)]: jk_open_socket,
connect() failed errno = 61
[Fri May 17 11:42:59 2002]  [jk_ajp12_worker.c (136)]: In
jk_endpoint_t::service, sd = -1
[Fri May 17 11:42:59 2002]  [jk_ajp12_worker.c (154)]: In
jk_endpoint_t::service, Error sd = -1
[Fri May 17 11:42:59 2002]  [jk_isapi_plugin.c (875)]: HttpExtensionProc
error, service() failed
[Fri May 17 11:42:59 2002]  [jk_ajp12_worker.c (165)]: Into
jk_endpoint_t::done
with no entry placed into localhost_access_log.2002.05.17.txt 
Would appreciate any clues.  I have been fighting this thing for over a
week.  I DO have it working on Tomcat-3.3.1, but can't seem to get
anywhere on Tomcat-4.0.3.
Thanks much.
Rich Downing



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How can I redirect only JSP pages to Tomcat?

2002-05-18 Thread Arshad Mahmood

Ooops, should have read more carefully. The Tomcat-IIS howto contains the
appropriate instructions on how to setup IIS to redirect a url to Tomcat.
You need to look for this document under Tomcat 3.2.4 (should still be
applicable to Tomcat 4 as you are using ajp12)..

Regards.

- Original Message -
From: "Arshad Mahmood" <[EMAIL PROTECTED]>
To: "Tomcat Developers List" <[EMAIL PROTECTED]>; "tomcat-user"
<[EMAIL PROTECTED]>
Sent: Friday, May 17, 2002 10:30 AM
Subject: Re: How can I redirect only JSP pages to Tomcat?


> Which connector are you using, with mod_jk you can simply issue a
> "JkMount /mysite/* ajp13" to forward all requests under
> /mysite to Tomcat.
>
> Regards.
>
> - Original Message -
> From: "Luca Ventura" <[EMAIL PROTECTED]>
> To: "tomcat-user" <[EMAIL PROTECTED]>; "tomcat-dev"
> <[EMAIL PROTECTED]>
> Sent: Friday, May 17, 2002 7:44 AM
> Subject: How can I redirect only JSP pages to Tomcat?
>
>
> > Hello everybody!
> >
> > I have installed Tomcat 4 as servlet/JSP container fo IIS 5 but  I
haven't
> > understood
> > how to redirect to Tomcat only requests for JSP pages or servlets. I
have
> > found only the way
> > to redirect entire sites  but I would like to redirect only
> > JSP pages and servlets and not html pages for example.
> >
> > Is it possible to redirect only a specified directory of a Web site? For
> > example
> > if I defined a site in /mysite folder is it possible to redirect to
Tomcat
> > only the
> > request for the code present in /mysite/jsp ???
> >
> > Thanks everybody in advance!
> >
> > Luca
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Stdout and Stderr

2002-05-18 Thread Wagner Danda

Hello,

I already find these configuration, at catalinha.sh:

  org.apache.catalina.startup.Bootstrap "$@" start \
  >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &

I changed to:
  org.apache.catalina.startup.Bootstrap "$@" start \
  >> "$CATALINA_BASE"/logs/catalina.out 2>> 
"$CATALINA_BASE"/logs/catalina.err &

Thanks!

Wagner Danda

Jeff Macomber wrote:

>Generally these messages are in catalina.out or localhost_log...  
>
>Jeff
>
>-Original Message-
>From: Wagner Danda [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, May 16, 2002 7:52 PM
>To: Tomcat Users List
>Subject: Stdout and Stderr
>
>
>Hello,
>
>in tomcat 4, where can I get the stderr and the stdout? Better, where 
>can I see the tomcat errors (like OutOfMemory and others)?
>
>Thanks in advance,
>Wagner Danda
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat 3.3 as a service

2002-05-18 Thread Dave Swift

Hi,
   I trying to follow the instructions for installing Tomcat 3.3 as
an NT Service
on an NT Server 4 SP6A system.

I'm encountering a problem with I think relates to my syntax in the
wrapper.properties
file, as the installation directory for my tomcat has a space in it.

I originally coded the two key definitions in the wrapper.properties file
as :-

wrapper.tomcat_home=G:\Apache Group\jakarta-tomcat-3.3
wrapper.java_home=g:\jdk1.3.1_02

As this is where I have installed the Tomcat and JDK code respectively.

When I try to start the tomcat service, I get 'Tomcat Failed to start', and
in the jvm.stderr file in the logs directory, I have the message :-

java.lang.NoClassDefFoundError: Group\jakarta-tomcat-3/3\lib\tomcat/jar
Exception in thread "main"

>From this I deduced, possibly erroneously, that the space in the directory
path for Tomcat
was causing the problem.

However, I have tried every combination of quotes I can think of to enclose
the
tomcat_home directory, and they all lead to a Tomcat Failed To Start
message, and
this time no logs either.

Can you help me with the coding of wrapper.properties to get this to work ?
I tried
searching on the jakarta site and the general web I didn't find anything
that helped.
The only worked examples of a wrapper.properties file I found all used
directory
names with no spaces in them.

I guess I could start again by uninstalling tomcat and all my webapps and
install
tomcat in a directory with no spaces, but I would really rather
not..

Needless to say, everything works just fine running the startup.bat file,
but I would
prefer to run this as a service, as it makes the system bootup automation
easier, as
I can establish dependencies between services, and also monitoring is
easier for services.

Cheers, Dave S.

Senior I.T. Specialist - Systems & Network Management, EMEA ATS-PIC Tivoli
Unit
E-Mail IdsInternet: [EMAIL PROTECTED] Internal:
SWIFTDS@IBMGB
Phone +44 (0) 1962-817087 (DDI),  Mobile +44 (0) 772-0411-717, Fax +44 (0)
1962-818191
***
* QUALITY Means never having to say you're sorry *
***


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Website for Tomcat/Apache Integration...

2002-05-18 Thread Ben Walding

  The flashguides on this site are fairly good at explaining how to 
setup a variety of different configurations.  

http://www.galatea.com/flashguides/index


Ben Rometsch wrote:

>Hi There,
>
>Is there a website out there that I have yet to find that details common
>setups for Tomcat/Apache/Linux ? I cant seem to find any coherent
>information on this at all. I've been reading and reading and reading
>(especially about connectors) and I'm still confused...
>
>I'd be happy to set up a small site with a few example configurations
>along with step-by-step instructions on how to get things running under
>Linux/Windows. Maybe also detailing what the different connectors are,
>how the different versions of tomcat and apache affect each other etc.
>etc.
>
>Would anyone be interested in helping me out? 
>
>Thanks,
>Ben Rometsch
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Mod WEB_APP

2002-05-18 Thread Rui Oliveira

Hello,

Does anyone here has the mod_webapp compiled for Solaris 8, using the
GCC?

Can someone help me out?

Regards
Rui Oliveira





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




InitParameters missing in ServletConfig when Servlet-loading triggerd through Re

2002-05-18 Thread Karl Leipzig

Hello,
using Tomcat 4.0.3 (and 4.0.2 also) I encounter the following problem:

Problem setup:
My servlet has no  set.

I start Tomcat.
I trigger the loading of servlet A through a RequestDispatchers forward as 
quoted below.
I trace my servlet A's ServletConfig init-parameters in the init() method 
call.
The newly loaded servlet A's ServletConfig DOES NOT contain the 
init-parameters I specifed in web.xml!

Unsatisfying solution setup:
This time I specify a 1 in web.xml:

I start Tomcat.
The loading of servlet A is triggerd through the container on startup.
I trace my servlet A's ServletConfig init-parameters in the init() method 
call.
The newly loaded servlet A's ServletConfig as expected DOES contain all 
init-parameters I specifed in web.xml.

Why are my init-parameters missing in the first case?

Thank you,
Philipp.


Code used for forwarding:
RequestDispatcher requestDispatcher = 
getServletContext().getRequestDispatcher("/servlet/" + 
responsibleServletName);
requestDispatcher.forward(servletRequest, servletResponse);


_
Werden Sie Mitglied bei MSN Hotmail, dem größten E-Mail-Service der Welt. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




sharing sessions between contexts

2002-05-18 Thread Frank Giusto

Hello Andy Mauro.
Did you get an answer on this post. I am having the same problem and am
intested in  the solution.

thanks.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Domain name not IP Address in Tomcat.

2002-05-18 Thread Ryan Gomes

You have instruct Tomcat to listen on the default HTTP port 80.

This can be done by editing %CATALINA_HOME%\conf\server.xml...

You will find...




Change it to...



After you restart Tomcat, it will now listen on the default HTTP port 80.

Now you configure your operating system to recongnize your domain name you 
registered i.e., For Win 2000, edit the hosts file and add an entry for your 
new domain name.

This should work!

Ryan.


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Get "java.lang.ClassCastException" when extracting an X509Certificate from an HTTP request

2002-05-18 Thread Eric Gilbertson

Following an example from Hall's More Servlets book, I had attempted extracting
a cert from a HTTP request using the following:

X509Certificate cert = 
(X509Certificate)req.getAttribute("javax.servlet.request.X509Certificate");

which generated a difficult to debug class cast exception. The answer 
(thanks to a post from
John Brayton) is of course that you need a cert array instead, eg:

X509Certificate []certAr = (X509Certificate 
[])req.getAttribute("javax.servlet.request.X509Certificate");

I am submitting this as a follow up to Mr. Brayton's post so that others 
can locate the problem
quicker.

Regards,

Eric Gilbertson
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




IIS Admin Service fails to start

2002-05-18 Thread Smith, Roger C

We are experiencing a problem that may be related to TomCat running as a
service.  

It seems that when TomCat is running as a service and we try to stop/start
IISIIS fails to restart.  If we stop and disable the TomCat service, IIS
can be successfully recycled.

Here are the series of errors we get we trying to recycle IIS while tomcat
service is up:
*   Timeout (3 milliseconds) waiting for the IIS Admin Service
service to connect.
*   The IIS Admin Service service failed to start due to the following
error: The service did not respond to the start or control request in a
timely fashion.  
*   DCOM got error "The service did not respond to the start or control
request in a timely fashion. " attempting to start the service IISADMIN with
arguments "" in order to run the server:
{A9E69610-B80D-11D0-B9B9-00A0C922E750} 

(The above errors occur repeatedly until IIS is successfully restarted.)

Do you have any knowledge of this problem?  Does the TomCat service need to
be stopped before recycling IIS? 

We are running Tomcat 3.2.2 on a Win2K Server SP/2.  
I have followed the instructions in your article labeled: Working with the
Jakarta NT Service.

Roger Smith 
Webmaster 
Sikorsky Aircraft Corporation 
Phone: 203.386.6371 
Fax: 203.383.8505 
[EMAIL PROTECTED] 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: reloadable=true not working---> problems with reloading servl ets

2002-05-18 Thread kelly, Burrowa

Why is it that during reloading of changed classes,
tomcat clears all variables from HTTPSession?

kB

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




placing my source code

2002-05-18 Thread siva . prasad


BDY.RTF
Description: RTF file


Doubts on SSL configuration.

2002-05-18 Thread Rajesh Harikrishnan

HI All,

I need Apache-ssl+tomcat expert's help on this issue. My problem is, after a lot 
of search i am still not able to find some useful documentation for Configuring the 
Apahce+tomcat (on Windows) for HTTPS(SSL).

My application needs to handle both HTTP and HTTPS. Few modules in the application 
needs HTTPS and others needs HTTP. So how do i need my configuration to be?. Can some 
one sent me a sample 'httpd.conf / server.xml'?. I have downloaded a copy of 
Apache1.3.24+mod_ssl_openssl from 'openssl' site and have set up for the application 
to run on this server with Tomcat 3.2.2.

My two main problems are:
1) But how do i redirect few options of my application to work on Https and others to 
serve on Http?
2) How to restrict a particular 'Context' to only serve on Http or Https?

Thanks in advance for all your help.

Regards
H.Rajesh
([EMAIL PROTECTED])
SoftSolutions Pvt. Ltd.,
Chennai. India.



Re: How to hide code of JSP when we deploy app in Customer site

2002-05-18 Thread Diego Novati

Use JSP Tag libraries !

Diego

- Original Message -
From: "Phupha Punyapotasakul/MIS/RY-CPP/Petro" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Saturday, May 18, 2002 5:07 AM
Subject: How to hide code of JSP when we deploy app in Customer site


>
> I decide to use JSP develop web-base app for customer but I
> don't want Customer to see source code.
>
> How Can I do.
> Any Ideas can solved this.
>
> --
---
>
> Phupha Punyapotasakul
> 01-3742594
> MIS Department...
> CP Petrochemical Co.,Ltd.
> [038-897103-8 #2027]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to hide code of JSP when we deploy app in Customer site

2002-05-18 Thread Vishal



Hi Phupha
if u want that nobody should be able to read u'r code .u have to
use java beans to execute u'r bussiness logic and call them from the jsp the
user is exposed to ... this way u'r JSp will contain only thehtml code and
the script code ... and everything else will be in the class files on the
server !!!

i have posted an example about how to use java beans with jsp ... if u
haven't seen that then lemme know i'll send it again 

Vishal
Software Analyst
Abl Technologies
India



- Original Message -
From: "Phupha Punyapotasakul/MIS/RY-CPP/Petro" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Saturday, May 18, 2002 8:37 AM
Subject: How to hide code of JSP when we deploy app in Customer site


>
> I decide to use JSP develop web-base app for customer but I
> don't want Customer to see source code.
>
> How Can I do.
> Any Ideas can solved this.
>
> --
---
>
> Phupha Punyapotasakul
> 01-3742594
> MIS Department...
> CP Petrochemical Co.,Ltd.
> [038-897103-8 #2027]
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Who added this - class

2002-05-18 Thread RamNivas

:)
 Tomete Vishal I am using Tomcat-3.2.2, I am not much sure abt total web
files(JSP, Servlets, .js, html..etc) handled by Tomcat. Is there any users
limt also for concurrent login.

Is Tomete any Webserver Vishal
Wishes in Advance

Ram


-Original Message-
From: Vishal [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 18, 2002 4:57 PM
To: Tomcat Users List
Subject: Re: Who added this - class



Dear Ram
who added this is coaused because of overloading of server ..  u
haven't menshioned which version u r using   there is a limit of
files tomcat can handle . try reducing the no. of files of u'r
application and see if the problem goes !!

(Tomete Tomete )

Vishal



- Original Message -
From: "RamNivas" <[EMAIL PROTECTED]>
To: "Tomcat-User" <[EMAIL PROTECTED]>
Sent: Saturday, May 18, 2002 4:43 PM
Subject: Who added this - class


> Dear All,
>
> While working with Tomcat I am getting message like
>
> who added this? null..bla..bla..
>
> My Development folder and root folder of tomcat is same.
>
> What may be wrong
>
> Regards
> Ram
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Who added this - class

2002-05-18 Thread Vishal


Dear Ram
who added this is coaused because of overloading of server ..  u
haven't menshioned which version u r using   there is a limit of
files tomcat can handle . try reducing the no. of files of u'r
application and see if the problem goes !!

(Tomete Tomete )

Vishal



- Original Message -
From: "RamNivas" <[EMAIL PROTECTED]>
To: "Tomcat-User" <[EMAIL PROTECTED]>
Sent: Saturday, May 18, 2002 4:43 PM
Subject: Who added this - class


> Dear All,
>
> While working with Tomcat I am getting message like
>
> who added this? null..bla..bla..
>
> My Development folder and root folder of tomcat is same.
>
> What may be wrong
>
> Regards
> Ram
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Who added this - class

2002-05-18 Thread RamNivas

Dear All,

While working with Tomcat I am getting message like

who added this? null..bla..bla..

My Development folder and root folder of tomcat is same.

What may be wrong

Regards
Ram


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




JSP written in XML

2002-05-18 Thread Edward & Iona Brode

Hi All,

I seem to be having trouble with the parser in Jasper.
I'm trying to write a jsp page in xml, that is, using
such syntax as .

The problem is that some of the code is being placed into
the out.write statements in the generated servlet.

Here's the jsp:


http://java.sun.com/products/jsp/dtd/jsp_1_0.dtd";>
 
  
  
  
  
  
  
   out.write("Cafe JavaWelcome
to Cafe Java!Available
Coffees:CoffeePrice");
  Connection conn = null;
  Statement stmt = null;
  ResultSet rs = null;
  String url = "jdbc:odbc:CafeJava";
  String query = "select COF_NAME, PRICE from COFFEES";
  try {
   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

  }
  catch(java.lang.ClassNotFoundException e) {
   System.err.print("ClassNotFoundException: " + e.getMessage());
  }
  try {
   conn = DriverManager.getConnection(url, "Admin", "duke1");

   stmt = conn.createStatement();
   rs = stmt.executeQuery(query);
   while (rs.next()) {
String s = rs.getString("COF_NAME");
float f = rs.getFloat("PRICE");
out.write("" + s + "" + f + "");
  }

   stmt.close();
   conn.close();

  } catch(SQLException ex) {
   System.err.println("SQLException: " + ex.getMessage());
  }
   out.write("");
 


The resulting html looks like this:

Cafe JavaWelcome to Cafe
Java!Available Coffees:CoffeePrice");
  Connection conn = null;
  Statement stmt = null;
  ResultSet rs = null;
  String url = "jdbc:odbc:CafeJava";
  String query = "select COF_NAME, PRICE from COFFEES";
  try {
   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

  }
  catch(java.lang.ClassNotFoundException e) {
   System.err.print("ClassNotFoundException: " + e.getMessage());
  }
  try {
   conn = DriverManager.getConnection(url, "Admin", "duke1");

   stmt = conn.createStatement();
   rs = stmt.executeQuery(query);
   while (rs.next()) {
String s = rs.getString("COF_NAME");
float f = rs.getFloat("PRICE");
out.write("" + s + "" + f + "");
  }

   stmt.close();
   conn.close();

  } catch(SQLException ex) {
   System.err.println("SQLException: " + ex.getMessage());
  }
   out.write("

 Any ideas, suggestions?

 Thanks,

 Edward Brode




--
To unsubscribe, e-mail:   
For additional commands, e-mail: