web-inf/classes and eclipse

2002-08-19 Thread Laurent Michenaud

Hi,

I use the editor Eclipse but when i launch
"Rebuild all", it deletes all the content of 
the WEB-INF/classes directory.

Inside, there is all my *.properties file.

The idea is to create a WEB-INF/config where i
could put the properties files but i don't know how
to add this directory into the classpath. It would be better
too if the path was a relative path.

Or maybe u have others ideas ?

Michenaud Laurent
- Adeuza -
[ Développeur Web - Administrateur Réseau ]


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




Re: Managing a large web.xml

2002-08-19 Thread Bill Barker

The obvious answer is to use internal entities (Note: some versions of
Tomcat don't handle these gracefully, but I believe [but I don't use], that
4.0.4 and 4.1.x do). The idea is to setup in web.xml:
http://java.sun.com/dtd/web-app_2_3.dtd";
[


]
>

..
§ion1;
.
§ion2;
.



"Milo Hyson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is there any way to break up a large web.xml file into smaller ones to
make it
> more manageable? I've found that it doesn't take that big of a project
before
> I have so many servlets and mappings as to make the deployment descriptor
> file quite long. I've read through the Servlet spec (2.3) and poked around
in
> the mailing list archives, but can't find anything like an include
directive
> or anything else that might let me divide my descriptor into mutiple
smaller
> files. Ideally, I'd like to be able to create a different file for each
> section of the application, so that I can focus on one at a time.
>
> I'd appreciate any insights into this situation. Thanks in advance.
>
> --
> Milo Hyson
> CyberLife Labs, LLC





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




Re: Can't get tomcat4 + mod_jk + apache to work

2002-08-19 Thread Milt Epstein

On Tue, 20 Aug 2002, Scott Adamson wrote:

> I have been trying for the last week to get Apache + mod_jk + Tomcat 4 to
> work.
> I have confirmed that Tomcat works on 8080, confirmed that Apache is
> running.
>
[ ... ]
> Added the following to httpd.conf (see attached)
> Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf
[ ... ]

What's in this file?

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




Re: Tomcat 4.1 b9, Reload Context with Ant

2002-08-19 Thread Cameron Taggart

I moved the  that was in server.xml into a file named
C:\Projects\myapp\build\WEB-INF\contextConfigFile.xml.  With the cotext tag
I set path="/myapp" and docBase="C:\Projects\myapp\build", but this doesn't
work for me:

http://localhost:8080/manager/install?war=file://C:\Projects\myapp\build\WEB
-INF\contextConfigFile.xml&path=/myapp

The manager application reports that:
OK - Installed application at context path /peoplefinder
But when I go to http://localhost:8080/myapp/ I get:
HTTP Status 404, The requested resource (/myapp/) is not available.

Any ideas?  Does anyone else use a context config file?  It is new to me.

I liked putting the server specific resources in the server.xml file.  Does
the context config file have to be apart of the *.war?  Does it matter where
it is?  Where can I find more information on context config files?

Thanks a bunch for the lead.

- Original Message -
From: "Jacob Kjome" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, August 19, 2002 6:39 PM
Subject: Re: Tomcat 4.1 b9, Reload Context with Ant


>
> What you need to use is a context configuration file.  That is, a file
with
> the root element being .  Put all your resources within this
> that are needed by the webapp and then use the following:
>
>
>   url="${manager.url}"
>  username="${manager.username}"
>  password="${manager.password}"
>  path="${app.path}"
>  war="file://${build.home}/WEB-INF/contextConfigFile.xml" />
>
>
> The contextConfigFile.xml contains a  entry with the path and
> docRoot for the app.
>
>
> Just a note.  I haven't gotten this to work on Windows even though Craig
R.
> McClanahan says that it works for him on Unix.  However, I haven't tried
it
> with the latest version 4.1.9.
>
> If you get this to work for you, let me know.
>
> Jake
>
> At 06:16 PM 8/19/2002 -0700, you wrote:
> >Hi All,
> >
> >I am trying to configure Tomcat and Ant so that I can type "ant reload"
and
> >the web application that I am running will be redeployed without
restarting
> >Tomcat.  This would really speed up development for me.
> >
> >The first issue is that I have the context set up with a couple of
resources
> >in the server.xml file.  Tomcat will autodeploy (but not start) this app
> >even without a folder named $tomcat/webapps/myapp or a war file named
> >$tomcat/webapps/myapp.war.  If I remove the context
> >http://localhost:8080/manager/remove?path=/myapp, and then try to install
> >the context
> >http://localhost:8080/manager/reload?path=/myapp&war=file:/mybuild, the
> >application can't find the resources, the MySQL database pool, or the
mail
> >session.
> >
> >Is there any way to have the /myapp server.xml resources not be removed
from
> >memory when the context is removed.  Or better yet, to have it put back
in
> >memory when you install a context at the path /myapp?
> >
> >Any help would be appreciated.
> >
> >Thanks,
> >Cameron
> >
> >
> >--
> >To unsubscribe, e-mail:

> >For additional commands, e-mail:

>


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




Re: Tomcat 4.1 b9, Reload Context with Ant

2002-08-19 Thread Cameron Taggart

I moved the  that was in server.xml into a file named
C:\Projects\myapp\build\WEB-INF\contextConfigFile.xml.  With the cotext tag
I set path="/myapp" and docBase="C:\Projects\myapp\build", but this doesn't
work for me:

http://localhost:8080/manager/install?war=file://C:\Projects\myapp\build\WEB
-INF\contextConfigFile.xml&path=/myapp

The manager application reports that:
OK - Installed application at context path /peoplefinder
But when I go to http://localhost:8080/myapp/ I get:
HTTP Status 404, The requested resource (/myapp/) is not available.

Any ideas?  Does anyone else use a context config file?  It is new to me.

I liked putting the server specific resources in the server.xml file.  Does
the context config file have to be apart of the *.war?  Does it matter where
it is?  Where can I find more information on context config files?

Thanks a bunch for the lead.

- Original Message -
From: "Jacob Kjome" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, August 19, 2002 6:39 PM
Subject: Re: Tomcat 4.1 b9, Reload Context with Ant


>
> What you need to use is a context configuration file.  That is, a file
with
> the root element being .  Put all your resources within this
> that are needed by the webapp and then use the following:
>
>
>   url="${manager.url}"
>  username="${manager.username}"
>  password="${manager.password}"
>  path="${app.path}"
>  war="file://${build.home}/WEB-INF/contextConfigFile.xml" />
>
>
> The contextConfigFile.xml contains a  entry with the path and
> docRoot for the app.
>
>
> Just a note.  I haven't gotten this to work on Windows even though Craig
R.
> McClanahan says that it works for him on Unix.  However, I haven't tried
it
> with the latest version 4.1.9.
>
> If you get this to work for you, let me know.
>
> Jake
>
> At 06:16 PM 8/19/2002 -0700, you wrote:
> >Hi All,
> >
> >I am trying to configure Tomcat and Ant so that I can type "ant reload"
and
> >the web application that I am running will be redeployed without
restarting
> >Tomcat.  This would really speed up development for me.
> >
> >The first issue is that I have the context set up with a couple of
resources
> >in the server.xml file.  Tomcat will autodeploy (but not start) this app
> >even without a folder named $tomcat/webapps/myapp or a war file named
> >$tomcat/webapps/myapp.war.  If I remove the context
> >http://localhost:8080/manager/remove?path=/myapp, and then try to install
> >the context
> >http://localhost:8080/manager/reload?path=/myapp&war=file:/mybuild, the
> >application can't find the resources, the MySQL database pool, or the
mail
> >session.
> >
> >Is there any way to have the /myapp server.xml resources not be removed
from
> >memory when the context is removed.  Or better yet, to have it put back
in
> >memory when you install a context at the path /myapp?
> >
> >Any help would be appreciated.
> >
> >Thanks,
> >Cameron
> >
> >
> >--
> >To unsubscribe, e-mail:

> >For additional commands, e-mail:

>


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




Re: Tomcat 4.1 b9, Reload Context with Ant

2002-08-19 Thread Cameron Taggart

I moved the  that was in server.xml into a file named
C:\Projects\myapp\build\WEB-INF\contextConfigFile.xml.  With the cotext tag
I set path="/myapp" and docBase="C:\Projects\myapp\build", but this doesn't
work for me:

http://localhost:8080/manager/install?war=file://C:\Projects\myapp\build\WEB
-INF\contextConfigFile.xml&path=/myapp

The manager application reports that:
OK - Installed application at context path /peoplefinder
But when I go to http://localhost:8080/myapp/ I get:
HTTP Status 404, The requested resource (/myapp/) is not available.

Any ideas?  Does anyone else use a context config file?  It is new to me.

I liked putting the server specific resources in the server.xml file.  Does
the context config file have to be apart of the *.war?  Does it matter where
it is?  Where can I find more information on context config files?

Thanks a bunch for the lead.

- Original Message -
From: "Jacob Kjome" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, August 19, 2002 6:39 PM
Subject: Re: Tomcat 4.1 b9, Reload Context with Ant


>
> What you need to use is a context configuration file.  That is, a file
with
> the root element being .  Put all your resources within this
> that are needed by the webapp and then use the following:
>
>
>   url="${manager.url}"
>  username="${manager.username}"
>  password="${manager.password}"
>  path="${app.path}"
>  war="file://${build.home}/WEB-INF/contextConfigFile.xml" />
>
>
> The contextConfigFile.xml contains a  entry with the path and
> docRoot for the app.
>
>
> Just a note.  I haven't gotten this to work on Windows even though Craig
R.
> McClanahan says that it works for him on Unix.  However, I haven't tried
it
> with the latest version 4.1.9.
>
> If you get this to work for you, let me know.
>
> Jake
>
> At 06:16 PM 8/19/2002 -0700, you wrote:
> >Hi All,
> >
> >I am trying to configure Tomcat and Ant so that I can type "ant reload"
and
> >the web application that I am running will be redeployed without
restarting
> >Tomcat.  This would really speed up development for me.
> >
> >The first issue is that I have the context set up with a couple of
resources
> >in the server.xml file.  Tomcat will autodeploy (but not start) this app
> >even without a folder named $tomcat/webapps/myapp or a war file named
> >$tomcat/webapps/myapp.war.  If I remove the context
> >http://localhost:8080/manager/remove?path=/myapp, and then try to install
> >the context
> >http://localhost:8080/manager/reload?path=/myapp&war=file:/mybuild, the
> >application can't find the resources, the MySQL database pool, or the
mail
> >session.
> >
> >Is there any way to have the /myapp server.xml resources not be removed
from
> >memory when the context is removed.  Or better yet, to have it put back
in
> >memory when you install a context at the path /myapp?
> >
> >Any help would be appreciated.
> >
> >Thanks,
> >Cameron
> >
> >
> >--
> >To unsubscribe, e-mail:

> >For additional commands, e-mail:

>


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




Can't get tomcat4 + mod_jk + apache to work

2002-08-19 Thread Scott Adamson

I have been trying for the last week to get Apache + mod_jk + Tomcat 4 to
work.
I have confirmed that Tomcat works on 8080, confirmed that Apache is
running.

My configuration is as follows :

OS -
Redhat Linux 6.2

Java -
JAVA_HOME="/usr/java/jdk1.3"
Installed via RPM

Tomcat -
Installed binary distribution of jakarta 4.0.4 at
/usr/local/jakarta-tomcat-4.0.4
Created jakarta-tomcat-4.0.4/conf/jk/workers.properties as follows :

workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
workers.java_home=/usr/java/jdk1.3
ps=/
worker.list=ajp12, ajp13
worker.ajp13.port=8009
worker.ajp13.host=toecutter
worker.ajp13.type=ajp13

Modified jakarta-tomcat-4.0.4/conf/server.xml as follows : (see
attached)


   #added line  

and

  
#added line   

Apache -
Compiled Apache1.3.19 with the following config -
./configure --prefix=/usr/local/apache2 --enable-module=so
Added the following to httpd.conf (see attached)
Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf

mod_jk -
Added the binary mod_jk-3.3-ap13-noeapi.so to /usr/local/apache2/libexec


/apache2/logs/error_log contains the following :

[Tue Aug 20 02:08:20 2002] [error] [client 192.168.0.7] File does not exist:
/usr/local/apache2/htdocs/examples/

indicating that it isn't even trying to redirect and looks for /examples
under /apache2/htdocs
Can someone please help me (thanks to those who have already tried), can
someone see a problem with my configuration ?



Scott Adamson
Systems Administrator
Syware Technology

[EMAIL PROTECTED]
http://upe.com.au




httpd.conf
Description: Binary data







	

  

  
  




























  
  

  
  

  

  

  

  

  

  

  
  
  	




















  
  
  
		  
  
  
  
  
usersa
password
driverClassName
  org.hsql.jdbcDriver
driverName
  jdbc:HypersonicSQL:database
  
  
  

  mail.smtp.host
  localhost

  


  



  

  

  
  






  
  

  
  



  




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


Re: How to change the package definition from org.apache.jsp tosomething else ?

2002-08-19 Thread Craig R. McClanahan



On Tue, 20 Aug 2002, Navdeep Singh wrote:

> Date: Tue, 20 Aug 2002 00:50:49 -0400
> From: Navdeep Singh <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: How to change the package definition from org.apache.jsp to
> something else ?
>
> Hi,
> I have noticed that the default package structure in my servlet source files 
>(compiled from JSPs) is org.apache.jsp.
> But the .java and .class files are generated in /work/localhost/_/ directory.  How 
>can i
>
> 1. Force my compiled .java and .class file to go in /work/org/apache/jsp ?
> or

You cannot do this.  The JSP specification specifically says that the page
compiler can do whatever it wants in terms of package names, and there is
no guarantee that the generated source file will be placed *anywhere*, let
alone where you think it should be placed.

> 2. Make .java files to include the right package in .java files (which is 
>/work/locahost/_/)?

As long as the JSP page compiler can compile these sources (and Tomcat
can), it should not matter to you where they are placed.

>
> thanks
> Rob
>
>
>

Craig



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




RE: authentication

2002-08-19 Thread Andrew Conrad

A JAASRealm allows you to take advantage of JAAS.  I'm not sure if
anyone has it working with NT yet.

-  Andrew

> -Original Message-
> From: Herbert Chau [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, August 19, 2002 11:10 PM
> To: Tomcat Users List
> Subject: authentication
> 
> 
> Dear all, 
>  
> Is that away in tomcat that I can authenticate people against 
> the NT domain without using Apache?
>  
> Best regards,
> Herbert Chau
> Analyst
> SAS Institute Ltd 
> [EMAIL PROTECTED]
> TEL:  852-2105-3512
> FAX:  852-2568-7218
> www.sas.com/hongkong
> SAS... The Power to Know
> The information contained in this e-mail is for the intended 
> recipient only. If you have received this e-mail in error, 
> please contact the sender immediately.  All material is to be 
> treated as strictly confidential. The contents of this e-mail 
> may not represent the views of SAS Hong Kong.
>  
>  
> 


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




Help plzz

2002-08-19 Thread raghav

Hi All,
I have downloaded Jakarta-tomcat 4.0.2 and am using Win XP OS.
I have st up JAVA_HOME variable and Catalina-Home variable and tried to run the 
server. But the error displayed is, 
"Windows cannot find '-Djava.endorsed.dirs='. Make sure you typed the name correctly 
and then try again. "


Kindly help me to solve it.

Raghava
  



How to change the package definition from org.apache.jsp to something else ?

2002-08-19 Thread Navdeep Singh

Hi,
I have noticed that the default package structure in my servlet source files (compiled 
from JSPs) is org.apache.jsp. 
But the .java and .class files are generated in /work/localhost/_/ directory.  How can 
i 

1. Force my compiled .java and .class file to go in /work/org/apache/jsp ? 
or 
2. Make .java files to include the right package in .java files (which is 
/work/locahost/_/)?

thanks 
Rob





Re: Help(mod_jk2.dll)

2002-08-19 Thread Niket Anand

RE: HelpHello Rory,
I hope you can help me out of this.
i am also working for this on Win2k pro . If you can send me mod_jk2.dll for 
Apache2.0.4 and also other modification made in Tomcat side(JBoss-2.4.6_Tomcat-4.0.3), 
it would be great help for me.
Pls send .dll as attachment and other procedure instructions to follow to integrate 
tomcat with apache
Thanks
Nikeyt 
  - Original Message - 
  From: Douglas, Rory 
  To: 'Niket Anand' 
  Sent: Monday, August 19, 2002 6:44 PM
  Subject: RE: Help


  Hello Niket 

  Unfortunately, all the work I did with mod_jk2 was on a Win2K box. I have no 
experience building on Linux/Solaris etc. You'll have to check out the Tomcat User's 
mailing list and ask there, I'm sure someone else has done it.  You might also want to 
try the newest version of Apache 2 (2.0.40) along with it.

  Sorry I can't be of more help 
  cheers 
  Rory 

  -Original Message- 
  From: Niket Anand [mailto:[EMAIL PROTECTED]] 
  Sent: Saturday, August 17, 2002 3:16 AM 
  To: [EMAIL PROTECTED] 
  Subject: Help 



  Hi Rory, 
  Can you send me a link from where I can download mod_jk2.so? I am unable to 
  build this file. 
  I am using Apache2.0.4, Tomcat4.0.3. 
  Or please send it with attachment. 

  Thanks in advance 
  Niket 




authentication

2002-08-19 Thread Herbert Chau

Dear all, 
 
Is that away in tomcat that I can authenticate people against the NT domain without 
using Apache?
 
Best regards,
Herbert Chau
Analyst
SAS Institute Ltd 
[EMAIL PROTECTED]
TEL:  852-2105-3512
FAX:  852-2568-7218
www.sas.com/hongkong
SAS... The Power to Know
The information contained in this e-mail is for the intended recipient only. If you 
have received this e-mail in error, please contact the sender immediately.  All 
material is to be treated as strictly confidential. The contents of this e-mail may 
not represent the views of SAS Hong Kong.
 
 



mod_jk and tomcat 3.3

2002-08-19 Thread Wong, Benjamin

Hi,

I am configuring Apache 2.0.4 and Tomcat 3.3 using mod_jk. I followed the
"Working with mod_jk" instructions, copied the mod_jk.dll to the Apache
modules directory, generated the mod_jk.conf file using tomcat, and included
the directive

Include c:/tomcat/conf/auto/mod_jk.conf

in the apache httpd.conf file.

When I launch "Apache -t", I kept getting the error:

C:\Program Files\Apache Group\Apache2\bin>apache -t
Syntax error on line 4 of C:/tomcat/conf/auto/mod_jk.conf:
Cannot load C:/Program Files/Apache Group/Apache2/modules/mod_jk.dll into
server
: The specified module could not be found.

I'm puzzled as to why it can't find or load the mod_jk.dll file. Any
suggestion would be greatly appreciated. Thanks.

Ben

--- mod_jk.conf file below -


  LoadModule jk_module modules/mod_jk.dll


JkWorkersFile "C:/tomcat/conf/jk/workers.properties"
JkLogFile "C:/tomcat/logs/mod_jk.log"

JkLogLevel emerg


JkMount /admin ajp13
JkMount /admin/* ajp13

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /test ajp13
JkMount /test/* ajp13

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




Re: Tomcat 4.1 b9, Reload Context with Ant

2002-08-19 Thread Jacob Kjome


What you need to use is a context configuration file.  That is, a file with 
the root element being .  Put all your resources within this 
that are needed by the webapp and then use the following:





The contextConfigFile.xml contains a  entry with the path and 
docRoot for the app.


Just a note.  I haven't gotten this to work on Windows even though Craig R. 
McClanahan says that it works for him on Unix.  However, I haven't tried it 
with the latest version 4.1.9.

If you get this to work for you, let me know.

Jake

At 06:16 PM 8/19/2002 -0700, you wrote:
>Hi All,
>
>I am trying to configure Tomcat and Ant so that I can type "ant reload" and
>the web application that I am running will be redeployed without restarting
>Tomcat.  This would really speed up development for me.
>
>The first issue is that I have the context set up with a couple of resources
>in the server.xml file.  Tomcat will autodeploy (but not start) this app
>even without a folder named $tomcat/webapps/myapp or a war file named
>$tomcat/webapps/myapp.war.  If I remove the context
>http://localhost:8080/manager/remove?path=/myapp, and then try to install
>the context
>http://localhost:8080/manager/reload?path=/myapp&war=file:/mybuild, the
>application can't find the resources, the MySQL database pool, or the mail
>session.
>
>Is there any way to have the /myapp server.xml resources not be removed from
>memory when the context is removed.  Or better yet, to have it put back in
>memory when you install a context at the path /myapp?
>
>Any help would be appreciated.
>
>Thanks,
>Cameron
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



Re: Module mod_jk

2002-08-19 Thread Milt Epstein

On Mon, 19 Aug 2002, Alvaro Mota wrote:

> Hi
>
> i get errors when add module mod_jk in apache 1.3.6.
>
> when i execute ./apachectl configtest
> Syntax error on line 318 of /usr/local/apache/conf/httpd.conf:
> Invalid command 'JkMount', perhaps mis-spelled or defined by a module
> not included in the server configuration
>
> I realized how this article:
>
> http://www.ubeans.com/tomcat/index.html
>
> Please, suggests.

What other mod_jk relevant lines d you have in your httpd.conf file?
Are you loading/adding the module properly?

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




Tomcat 4.1 b9, Reload Context with Ant

2002-08-19 Thread Cameron Taggart

Hi All,

I am trying to configure Tomcat and Ant so that I can type "ant reload" and
the web application that I am running will be redeployed without restarting
Tomcat.  This would really speed up development for me.

The first issue is that I have the context set up with a couple of resources
in the server.xml file.  Tomcat will autodeploy (but not start) this app
even without a folder named $tomcat/webapps/myapp or a war file named
$tomcat/webapps/myapp.war.  If I remove the context
http://localhost:8080/manager/remove?path=/myapp, and then try to install
the context
http://localhost:8080/manager/reload?path=/myapp&war=file:/mybuild, the
application can't find the resources, the MySQL database pool, or the mail
session.

Is there any way to have the /myapp server.xml resources not be removed from
memory when the context is removed.  Or better yet, to have it put back in
memory when you install a context at the path /myapp?

Any help would be appreciated.

Thanks,
Cameron


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




Module mod_jk

2002-08-19 Thread Alvaro Mota

Hi

i get errors when add module mod_jk in apache 1.3.6.

when i execute ./apachectl configtest
Syntax error on line 318 of /usr/local/apache/conf/httpd.conf:
Invalid command 'JkMount', perhaps mis-spelled or defined by a module 
not included in the server configuration

I realized how this article:

http://www.ubeans.com/tomcat/index.html

Please, suggests.

Alvaro


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




RE: tomcat/unix security manager questions

2002-08-19 Thread Tom Parker

On Tue, 2002-08-20 at 03:13, Rossen Raykov wrote:

> Unix permissions do take precedence over java security policy.

With a logical AND. If unix permissions say you do have write access,
but the java security policy says you do not, then you do not have write
access, and vice versa. This, of course, assumes that there are no bugs
in the unix or java security policy implementations.


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




config Tomcat as a service under Windows XP

2002-08-19 Thread CyAndrew

Hi,

could anybody tell me how to set up XP service for Tomcat. I have 
downloaded and install:
jakarta-tomcat-4.0.4.exe
and set up variables. All works perfectly if I run "startup.bat", but if 
I try to start service through
control panel, no JSP works (other servlets works). Probably there is 
some problem in setting
variables but I can't find any wrapper.properties file (i assume it was 
necessary in Tomcat 3x)
Thanx for any help
Andrew



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




connectionpool

2002-08-19 Thread Felipe Schnack

  Amazing! I could make connection pool work, like in this example:

  http://marc.theaimsgroup.com/?l=tomcat-user&m=102225547106556&w=2

  But I don't know, it doesn't really seem to be a pool to me, seems
like a connection factory. I shouldn't be using
PoolableConnectionFactory or something like it instead of
BasicDataSourceFactory?
  Just wondering (I will test it tomorrow)...

-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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




RE: ?? Tomcat and System.out ??

2002-08-19 Thread Mike Jackson

That's not 100% true, the older drivers don't do any kind of 
pooling.  Newer JDBC drivers (2.0+) do usually provide pooling,
but I don't know if it's a requirement in the JDBC spec or an
optional JDBC thing to implement.  But even still I've found
that Oracle's JDBC pooling caused me some problems so I use
poolman instead.

--mikej
-=-
mike jackson
[EMAIL PROTECTED] 

> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 3:01 PM
> To: Tomcat Users List
> Subject: RE: ?? Tomcat and System.out ??
> 
> 
> I recently read that Java presumes the JDBC drivers will provide 
> connection
> pooling, and thus java and most app servers do not provide this
> functionality.
> 
> Does anyone know off hand if the mySQL driver(s) provide 
> connection pooling?
> If not, what do most people do?  Roll their own?  use a framework like
> Struts?
> 
> THanks.
> Neal
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 


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




Re: Debugger for LUMINOUS ????

2002-08-19 Thread Luminous Heart

Thank you micael, I will give it a shot. :)

--- micael <[EMAIL PROTECTED]> wrote:
> Here you go.  I just dumped the package in here. 
> You use it as follows:
> 
> new
>
Debugger().add(blah1).add(blah2).add(blah3).log("Test
> 1", true);
> 
> where blah1, blah2, etc. are variables you want to
> test.  The debugger is 
> overloaded for all data types.  The "Test 1" gives
> you a reference in the 
> log of the test, and the true makes sure prior tests
> are saved.  If you 
> want to write over prior tests, put in "false".  If
> you don't want to name 
> the test, leave it out.  That is overloaded too. 
> You will need to figure 
> out a way to set your own paths for where you want
> the log file to 
> appear.  The javadoc info is pretty much obvious. 
> You can just take the 
> fancy stuff out and put in the path hardcoded, if
> you like.  I usually 
> rename the class: DELETE_ME.java when I use it. 
> This is for students.
> 
> Micael

> ATTACHMENT part 2 application/zip name=debugger.zip;
x-mac-type=705A4950; x-mac-creator=705A4950
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:



__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




Re: ?? Tomcat and System.out ??

2002-08-19 Thread Tony LaPaso

YEP!

Thanks!




- Original Message -
From: "Ekkehard Gentz" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, August 19, 2002 4:53 PM
Subject: RE: ?? Tomcat and System.out ??


> hi tony,
> look into your tomcat/logs folder
> there you'll find your system.out
>
> you can configure this in the server.xml
> look at..
>
> Ekkehard
>
> > -Original Message-
> > From: Tony LaPaso [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, August 19, 2002 10:07 PM
> > To: Tomcat User
> > Subject: ?? Tomcat and System.out ??
> >
> >
> > Hello all,
> >
> > I'm using TC 4.1.9 on Win 2k.
> >
> > I know in the past (earlier versions of TC) I could send
output
> > to System.out and/or System.err and it would show up in the
> > console window where TC was running. It seems this output is
> > either being ignored now or perhaps being buffered.
> >
> > Is there a way (in TC 4.1.9) to get System.out data to appear
in
> > the console?
> >
> > Thanks very much...
> >
> >
> > Tony
> >
> >
> >
> >
> >
> > --
> > 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: 




mySql - Connector/J - connection pooling?

2002-08-19 Thread neal

I recently read that Java presumes the JDBC drivers will provide connection
pooling, and thus java and most app servers do not provide this
functionality.

Does anyone know off hand if the mySQL drivers (Connector/J in particular)
provide connection pooling?If not, what do most people do?  Roll their own?
use a framework like
Struts?

THanks.
Neal


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





Re: Managing a large web.xml

2002-08-19 Thread Will Hartung

From: "Milo Hyson" <[EMAIL PROTECTED]>
Sent: Monday, August 19, 2002 2:36 PM


> Is there any way to break up a large web.xml file into smaller ones to
make it
> more manageable? I've found that it doesn't take that big of a project
before
> I have so many servlets and mappings as to make the deployment descriptor
> file quite long. I've read through the Servlet spec (2.3) and poked around
in
> the mailing list archives, but can't find anything like an include
directive
> or anything else that might let me divide my descriptor into mutiple
smaller
> files. Ideally, I'd like to be able to create a different file for each
> section of the application, so that I can focus on one at a time.
>
> I'd appreciate any insights into this situation. Thanks in advance.

The Servlet spec isn't much help in this case.

The most practical approach is to break it up using some regular method, and
then just create the actual web.xml as part of the build/deploy process in
your build script. (For example, just before you pack everything up in a
WAR, or whatever).

I don't have any code to share with you at the moment, and I don't think
it's quite straightforward with ANT, but that's still the path I'd take.

Regards,

Will Hartung
([EMAIL PROTECTED])




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




RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-19 Thread rsequeira


Is "my_parameter" a variable or is that like a placeholder in the email for
"pwdvalid", etc?

I enabled debug logging on the driver, and I get messages that say
"parameter my_parameter not registers as output" or "not registered as
input", even when they are, and regardless of ...


Your code looks allright. Could you write a simple proc, something like the
example I detailed below. And then call it from java.

RS


   

  "Turner, John"   

  <[EMAIL PROTECTED]>To:   'Tomcat Users List'   

<[EMAIL PROTECTED]>   

  08/19/02 01:26 PMcc: 

  Please respond toSubject:  RE: OFF-TOPIC: Pointers to 
CallableStatement  
  "Tomcat Users docs?  

  List"

   

   






Thanks!  I've set up my code as you've described, but no luck.  For
example,
here is the relevant portion of the stored procedure declaring the
parameters (forgive me, I don't work with stored procedures that often, so
this may not be the right portion of the procedure to focus on):

 @userid_in varchar(8),
 @password_in varchar(8),
 @ip_addr varchar(15),
 @http_referer varchar(80),
 @http_user_agent varchar(80),
 @pwdvalid bit OUTPUT,
 @userenabled bit OUTPUT,
 @graceexceeded bit OUTPUT,
 @adminuser char(1) OUTPUT,
 @title varchar(4) OUTPUT

My code looks like this:

// prepare the stored procedure statement
try {
cstmt = sConn.prepareCall("{? = call
sp_validate_pwd(?,?,?,?,?,?,?,?,?,?)}");
} catch (SQLException sqle) {
sqle.printStackTrace();
}

// set the input parameters
try {
cstmt.setString(2, strUserID);
cstmt.setString(3, strPassword);
cstmt.setString(4, strRemoteAddress);
cstmt.setString(5, strReferURL);
cstmt.setString(6, strHTTPUserAgent);
} catch (Exception e) {
e.printStackTrace();
}

// register the output parameters for the stored procedure
try {
cstmt.registerOutParameter(1, Types.INTEGER);
cstmt.registerOutParameter(7, Types.BIT);
cstmt.registerOutParameter(8, Types.BIT);
cstmt.registerOutParameter(9, Types.BIT);
cstmt.registerOutParameter(10, Types.CHAR);
cstmt.registerOutParameter(11, Types.VARCHAR);
} catch (Exception e) {
e.printStackTrace();
}

// execute the stored procedure
try {
cstmt.execute();
} catch (SQLException sqle) {
sqle.printStackTrace();
}

// grab the results from the stored procedure call
try {
spReturnStatus = cstmt.getInt(1);
isValid = cstmt.getBoolean(7);
isEnabled = cstmt.getBoolean(8);
isExceeded = cstmt.getBoolean(9);
strAdmin = cstmt.getString(10);
strTitle = cstmt.getString(11);
} catch (SQLException sqle) {
sqle.printStackTrace();
}

cstmt = null;

I've tried different calls, putting the output parameters first (2-6) and
the inputs last (7-11), I've tried no return value, putting that return
value at the end (#11), etc. with no luck.  All of the variables in the
setString() methods are set before calling setString().  Am I at least on
the right track with the code shown above?  Or have I completely missed it?

Thanks again for replying!

John Turner


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 2:14 PM
To: Tomcat Users List
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?



It's been sometime since I used JDBC and SQL Server. But here are a few
points to note:
1) Your first "?" is the return status. It should be registered as an OUT
parameter.
2) Remember to use the right JDBC type when registering the OUT parameters.
This is of utmost importance.
3) All ouput parameters should be registered before the call to the stored
proc is made.
4) cstmt.setXXX(, )
5) cstmt.getXXX()
6) If your stored procedure is returning any result set, retrieve all the

RE: ?? Tomcat and System.out ??

2002-08-19 Thread neal

I recently read that Java presumes the JDBC drivers will provide connection
pooling, and thus java and most app servers do not provide this
functionality.

Does anyone know off hand if the mySQL driver(s) provide connection pooling?
If not, what do most people do?  Roll their own?  use a framework like
Struts?

THanks.
Neal


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




RE: java-compiler for Mac?

2002-08-19 Thread Ekkehard Gentz

if you're using OS9 then its difficult
because only old 1.1.8 will work (bad)

but if you change to macOSX then JDK 1.3.1 is included into the system and
will work well

you'll find more infos on apples webpages

Ekkehard
> -Original Message-
> From: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 1:46 PM
> To: 'Tomcat Users List'
> Subject: java-compiler for Mac?
>
>
> I know this is a bit of topic here but a friend asks me if there is a
> java-compiler (jdk or whatever) that runs on a macintosh?
> Anybody knows anything more about java and mac?
>
> Any tip/suggestion/help is welcome!
> Greetings,
> Gunter.
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


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




RE: ?? Tomcat and System.out ??

2002-08-19 Thread Ekkehard Gentz

hi tony,
look into your tomcat/logs folder
there you'll find your system.out

you can configure this in the server.xml
look at.. -Original Message-
> From: Tony LaPaso [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 10:07 PM
> To: Tomcat User
> Subject: ?? Tomcat and System.out ??
>
>
> Hello all,
>
> I'm using TC 4.1.9 on Win 2k.
>
> I know in the past (earlier versions of TC) I could send output
> to System.out and/or System.err and it would show up in the
> console window where TC was running. It seems this output is
> either being ignored now or perhaps being buffered.
>
> Is there a way (in TC 4.1.9) to get System.out data to appear in
> the console?
>
> Thanks very much...
>
>
> Tony
>
>
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:



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




Managing a large web.xml

2002-08-19 Thread Milo Hyson

Is there any way to break up a large web.xml file into smaller ones to make it 
more manageable? I've found that it doesn't take that big of a project before 
I have so many servlets and mappings as to make the deployment descriptor 
file quite long. I've read through the Servlet spec (2.3) and poked around in 
the mailing list archives, but can't find anything like an include directive 
or anything else that might let me divide my descriptor into mutiple smaller 
files. Ideally, I'd like to be able to create a different file for each 
section of the application, so that I can focus on one at a time.

I'd appreciate any insights into this situation. Thanks in advance.

-- 
Milo Hyson
CyberLife Labs, LLC

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




RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-19 Thread Reynir Hübner

Hi, 
I would first like to say, your code looks ok. I dont think it matters in what order 
you set the parameters.
Are you calling a procedure or a function, I've had some problems with functions, in 
my experince a function must have a OutParameter in the no. 1 param. 
which errors do you get ?

The stored-procedure-call should return an exception with errorcode / messages from 
the database-server or the jdbc-driver. 
So, if you want us to be able to help, I think an error message could be very helpfull.

below is a sample of a working code, that calls stored procedure in oracle, I guess 
it's a bit different, as the oracle driver has it's "own" datatypes. 

regards, 
[EMAIL PROTECTED]

 


String outParamTypeName = "PACKAGENAME.NAMESLIST";
String inParamTypeName = "PACKAGENAME.NAMES";

try
{
  String call = "{call package.name.Procedure(?,?,?,?)}";
  ArrayDescriptor arrayDesc = new ArrayDescriptor (inParamTypeName, m_connection);
  oracle.sql.ARRAY array = new oracle.sql.ARRAY(arrayDesc, m_connection, arrayValues);
  oracle.jdbc.driver.OracleCallableStatement cs =
  (oracle.jdbc.driver.OracleCallableStatement) m_connection.prepareCall(call);

  Calendar c = Calendar.getInstance();
  java.util.Date d = c.getTime();
  java.sql.Date dags= new java.sql.Date( d.getTime() );
  oracle.sql.NUMBER update = new oracle.sql.NUMBER (parm_update);
  cs.setARRAY(1,array);
  cs.setDate(2,dags);
  cs.registerOutParameter(3,OracleTypes.ARRAY,outParamTypeName);
  cs.setNUMBER(4,update);
  cs.execute();
  resultArray = cs.getARRAY(3);
  Object[] names_list = (Object []) resultArray.getArray();
  for (int y=0;y!=names_list.length;y++)
  {
BigDecimal LastValue=null;
BigDecimal firstValue=null;
Struct l_objstruct = (Struct)names_list[y];
// get the attributes in the STRUCT l_objstruct
Object l_objval[] = l_objstruct.getAttributes();
// Retrieve individual attributes
if (l_objval[2]!=null) {LastValue = ((BigDecimal) l_objval[2]);}
if (l_objval[3]!=null) {firstValue= ((BigDecimal) l_objval[3]);}
// output the outcome
out.write( number.format(LastValue.setScale(2, BigDecimal.ROUND_HALF_UP)));
out.write( number.format(firstValue.setScale(2, BigDecimal.ROUND_HALF_UP)));
  }
  // close database connection
  m_connection.close();
}
catch(Exception e)
{
  out.write(""+ e.toString() + "");
}








> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: 19. ágúst 2002 18:27
> To: 'Tomcat Users List'
> Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?
> 
> 
> 
> Thanks!  I've set up my code as you've described, but no 
> luck.  For example,
> here is the relevant portion of the stored procedure declaring the
> parameters (forgive me, I don't work with stored procedures 
> that often, so
> this may not be the right portion of the procedure to focus on):
> 
>   @userid_in varchar(8),
>   @password_in varchar(8),
>   @ip_addr varchar(15),
>   @http_referer varchar(80),
>   @http_user_agent varchar(80),
>   @pwdvalid bit OUTPUT, 
>   @userenabled bit OUTPUT,
>   @graceexceeded bit OUTPUT,
>   @adminuser char(1) OUTPUT,
>   @title varchar(4) OUTPUT
> 
> My code looks like this:
> 
> // prepare the stored procedure statement
> try {
> cstmt = sConn.prepareCall("{? = call
> sp_validate_pwd(?,?,?,?,?,?,?,?,?,?)}");
> } catch (SQLException sqle) {
> sqle.printStackTrace();
> }
> 
> // set the input parameters
> try {
> cstmt.setString(2, strUserID);
> cstmt.setString(3, strPassword);
> cstmt.setString(4, strRemoteAddress);
> cstmt.setString(5, strReferURL);
> cstmt.setString(6, strHTTPUserAgent);
> } catch (Exception e) {
> e.printStackTrace();
> }
> 
> // register the output parameters for the stored procedure
> try {
> cstmt.registerOutParameter(1, Types.INTEGER);
> cstmt.registerOutParameter(7, Types.BIT);
> cstmt.registerOutParameter(8, Types.BIT);
> cstmt.registerOutParameter(9, Types.BIT);
> cstmt.registerOutParameter(10, Types.CHAR);
> cstmt.registerOutParameter(11, Types.VARCHAR);
> } catch (Exception e) {
> e.printStackTrace();
> }
> 
> // execute the stored procedure
> try {
> cstmt.execute();
> } catch (SQLException sqle) {
> sqle.printStackTrace();
> }
> 
> // grab the results from the stored procedure call
> try {
> spReturnStatus = cstmt.getInt(1);
> isValid = cstmt.getBoolean(7);
> isEnabled = cstmt.getBoolean(8);
> isExceeded = cstmt.getBoolean(9);
> strAdmin = cstmt.getString(10);
> strTitle = cstmt.getString(11);
> } catch (SQLException sqle) {
> sq

Debugger for LUMINOUS ????

2002-08-19 Thread micael

Here you go.  I just dumped the package in here.  You use it as follows:

new Debugger().add(blah1).add(blah2).add(blah3).log("Test 1", true);

where blah1, blah2, etc. are variables you want to test.  The debugger is 
overloaded for all data types.  The "Test 1" gives you a reference in the 
log of the test, and the true makes sure prior tests are saved.  If you 
want to write over prior tests, put in "false".  If you don't want to name 
the test, leave it out.  That is overloaded too.  You will need to figure 
out a way to set your own paths for where you want the log file to 
appear.  The javadoc info is pretty much obvious.  You can just take the 
fancy stuff out and put in the path hardcoded, if you like.  I usually 
rename the class: DELETE_ME.java when I use it.  This is for students.

Micael


debugger.zip
Description: Zip archive

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


Re: Arabic content

2002-08-19 Thread anthony.dodd

We've done some work in this area.

We generate xhtml output using xslt's in conjuntion with an xml datasource.
We store the arabic in the database. Originally we held an NCR encoded form
of the arabic text, we now hold the arab text in a unicode format in a
database.

We've written some JSP tags to handle localisation issues "right to left",
"left to right" and the retrieval of text from the database. We also wrote
equivalent xslt extensions, so the same could be done from inside a
stylesheet (using such extensions may prevent you generating translets from
your stylesheets). Each stylesheet is passed a string representation of the
required locale (e.g. en_GB, ar_KW)
and this value is passed to each of the extension functions.

When using the NCR encoded form of the arabic, it displayed fine in the main
window of the browser, but you couldn't use it on alt tags or in setting the
title bar.

The only issue remining for us is peformance we need to have some of the
texts cached (e.g. generate a resource bundle on system startup, there's a
jakarta project fo handling java classes, I think the people at Jboss use to
use it) and some retrieved on demand from a database.

We're an xml datasource carries localised text, be sure to use UTF-8
encoding.

Drop us a line if you need any more advice.
Tony

- Original Message -
From: "Laurent Féral-Pierssens" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 19, 2002 12:25 PM
Subject: Arabic content


>
>
> Hi,
>
> We have been realizing web applications for the last 2 years using
> Tomcat. Last week, one of our clients asked us if we could provide a
> multilingual application that would contain English, French and Arabic
> content.
>
> My questions are vague for now. Did anyone actually produced an
> application with Arabic content? What should we have to take in
> consideration in our design and development? What are the risks and
> traps to avoid while coding such webapp? Is there a problem with
> displaying such information under Tomcat? storing it in MySQL?
>
> Those questions may actually be out of context for Tomcat. But your
> opinion would be much appreciated.
>
> Regards,
>
> Laurent
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-19 Thread micael

I don't have it here at the moment, but I think the WROK book "Java DATA" 
does a good job on this.  I will check tonight.  It's on my boat.

At 09:59 AM 8/19/2002 -0700, you wrote:
>I don't think there is one, it'd be really nice if there was however.  There
>is some good documentation available from Sun, but it doesn't get into real
>examples (like what you're doing).
>
>--mikej
>-=-
>mike jackson
>[EMAIL PROTECTED]
>
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, August 19, 2002 9:18 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: OFF-TOPIC: Pointers to CallableStatement docs?
> >
> >
> >
> > Hello -
> >
> > I think there is a java-user list, or even a jdbc-interest list, but I'd
> > rather not subscribe when all I need is one quick pointer, so I am hoping
> > someone on this list can get me started.
> >
> > I'm having quite a bit of difficulty working with stored procedures in my
> > classes and servlets.  The database is MS SQL Server 2000.  I've
> > read every
> > single doc I can find, both at Sun, through Google, and even through the
> > driver vendor's documentation.  I even scammed some code from a JDBC 3.0
> > book (the only one I could find) at Border's, with still no luck.
> >
> > Can anyone point me to a resource that explains how to setup stored
> > procedures in a CallableStatement correctly?  I understand about
> > registering
> > the output parameters and setting the input types, and I
> > understand that the
> > parameters in a CallableStatement are numbered from left to right starting
> > at 1.  I've seen the examples at Sun, etc. but they're not much help.
> >
> > The problem is that all of the examples I can find deal with very simple,
> > very rudimentary stored procedures, like finding the average of
> > two numbers,
> > or whatever.  Our stored procedures are more involved than that.
> >
> > Example:  a stored procedure used to validate logins.  It has 5 input
> > parameters, and 5 output parameters.  It returns a status.
> > According to the
> > docs I have read so far, that means I should have a CallableStatement with
> > 11 question marks ("?") in it (5 + 5 + 1 = 11).  but that doesn't
> > work, and
> > I have tried every combination of inputs, outputs, input/outputs,
> > etc. that
> > I can think of, to no avail.
> >
> > Any help or pointers to resources that explain stored procedures and
> > CallableStatements in more in-depth fashion would be greatly appreciated.
> >
> > - John
> >
> > 
> > John Turner
> > [EMAIL PROTECTED] | 248-488-3466
> > Advertising Audit Service
> > http://www.aas.com
> >
> >
> > --
> > 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: Trouble de-serializing objects when running 4.0.4 as NT servi ce

2002-08-19 Thread David Makepeace

Thanks, 

It appears that the problem only occurs when I get my
database connection from a JNDI datasource as
described in server.xml. I am going to try using
Jakarta DBCP for my connection pooling instead.

The class that was not being found was in the same
package as the class that was calling it (in the
Web-Inf\classes\...). So I don't know what the heck's
going on there. Since I was using the JNDI resource,
my db driver jar was in the common\lib . I tried
moving my classes there , but still got a
ClassCastException.

The user that starts the service is the same as the
launcher of the batch file.

JAVA_HOME was the same.

Hopefully Jakarta DBCP will save me.

Thanks for the suggestions from u and ope.



--- "Cox, Charlie" <[EMAIL PROTECTED]> wrote:
> tomcat 4.x does not use the classpath unless you
> have modified catalina.bat
> to do so. It's unusual that the class is found when
> run by .bat, but not as
> a service.
> 
> you're not using a network drive that's not mapped
> when run as a service? 
> does user 'System' have access to the class(or jar)
> files?
> 
> does the library in question reside under tomcat in
> /common/lib or
> /webapps/lib?
> 
> is JAVA_HOME set the same for both?
> 
> did you check for other error messages before this
> one?
> 
> Charlie
> 
> > -Original Message-
> > From: ope [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, August 19, 2002 2:28 PM
> > To: Tomcat Users List
> > Subject: Re: Trouble de-serializing objects when
> running 4.0.4 as NT
> > service
> > 
> > 
> > My first guess would be that you have some
> settings in
> > your environment that are not present in the
> system. 
> > Possibly the CLASSPATH.  Check your Tomcat
> services
> > settings to see which user you are starting as and
> > make sure that the user has the same environment
> that
> > you do.
> > 
> > --- David Makepeace <[EMAIL PROTECTED]>
> wrote:
> > > Hi , So no one has any ideas for me on this?
> It's
> > > really bizzare.
> > > 
> > > --- David Makepeace <[EMAIL PROTECTED]>
> > > wrote:
> > > > Hi, I'm having trouble deserializing an object
> > > > (stored
> > > > in a relational db) when running Tomcat 4.0.4
> as
> > > an
> > > > NT
> > > > Service. I have no problems when running from
> the
> > > > startup.bat. My database is mySQL. I am using
> > > > Tomcat's
> > > > connection pooling. Platform win2k. Here's the
> > > > exception that I'm seeing when I'm calling
> > > > ResultSet.getObject(). Any idea's on how to
> work
> > > > around this? I really need to run this as a
> > > service.
> > > > 
> > > > 
> > > > java.sql.SQLException: Class not found:
> > > > java.lang.ClassNotFoundException:
> > > > org.sagecentral.modulecreation.Lesson while
> > > reading
> > > > serialized object
> > > > at
> org.gjt.mm.mysql.ResultSet.getObject(Unknown
> > > > Source)
> > > > 
> > > >
> __
> > > > Do You Yahoo!?
> > > > HotJobs - Search Thousands of New Jobs
> > > > http://www.hotjobs.com
> > > > 
> > > > --
> > > > To unsubscribe, e-mail:  
> > > >
> > >
> 
> > > > For additional commands, e-mail:
> > > > 
> > > > 
> > > 
> > > 
> > >
> __
> > > Do You Yahoo!?
> > > HotJobs - Search Thousands of New Jobs
> > > http://www.hotjobs.com
> > > 
> > > --
> > > To unsubscribe, e-mail:  
> > >
> 
> > > For additional commands, e-mail:
> > > 
> > > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > HotJobs - Search Thousands of New Jobs
> > http://www.hotjobs.com
> > 
> > --
> > To unsubscribe, e-mail:   
> >
> 
> > For additional commands, e-mail: 
> > 
> > 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




RE: It would be great IF somebody answered me, ONCE, for change :(

2002-08-19 Thread micael

Here you go, as per request.  You will have to fiddle a bit to get what is 
going on, but not much.  The methods return the object so you can debug as 
follows:  new Debugger().add(blah1).add(blah2).add(blah3).log("Testing the 
Back Forty", true); which will do what is specified.  Set up the paths 
however is best for you.  I give this to students.  When I use it, I name 
it REMOVE_ME.java.  Good luck!

Micael

At 09:59 AM 8/19/2002 -0700, you wrote:
>It is always nice to have an extra debugger handy :) I
>am testing JTest but am not sure it is really what I
>need. I would appreciate your help if you can send me
>yours.
>
>Thank you in advance.
>
>--- micael <[EMAIL PROTECTED]> wrote:
> > If you have a debugger, all you have to do is to
> > follow the bouncing ball
> > and find the null reference.  That will be the
> > fastest way to find this
> > problem.  It should not take long.  If you don't
> > have a debugger, I will
> > send you one I made to use, and I like better than
> > the standard debuggers.
> >
> > At 08:49 AM 8/19/2002 -0700, you wrote:
> > >I am sorry, but I did not get what you mean with
> > >connection limit to be a hard limit, which one is
> > >that?
> > >
> > >I am including a copy of my pool.xml if you care do
> > >point out what should be changed.
> > >
> > >Thank you in advance.
> > >
> > > Pool.xml =
> > >
> > >
> > >
> > >
> > >   local
> > >
> > >   
> > >
> > > 
> > > 
> > > 
> > >
> > > 
> > >
> > > webdev
> > > webdev
> > > org.postgresql.Driver
> > >
> > jdbc:postgresql://localhost:6093/webdev
> > >
> > > JustAUserName
> > > JustAUserNamePassword
> > >
> > > 
> > > true
> > >
> > > 1
> > > 10
> > > 600
> > > 12
> > > 10
> > >
> > >
> >
> >/usr/local/tomcat/logs/poolman.log
> > > false
> > >
> > > 
> > >
> > > false
> > > 20
> > >
> > 120
> > >
> > >   
> > >
> > >
> > >
> > > End Pool.xml =
> > >--- Mike Jackson <[EMAIL PROTECTED]> wrote:
> > > > Actually now that I think about it more that
> > might
> > > > be the cause of the null
> > > > pointer (but
> > > > probably not).  In your poolman.xml file have
> > you
> > > > set the connection limit
> > > > to be a hard
> > > > limit?  If you timeout on connections (user
> > timeout)
> > > > is fairly high you
> > > > could run out of
> > > > connections, and it might return a "null"
> > instead of
> > > > a connection.
> > > >
> > > > But that's just a guess.  Also, you might was to
> > > > also turn on logging (debug
> > > > level) in
> > > > poolman as well so that you can watch the
> > > > connections getting checked out
> > > > and in.
> > > >
> > > > --mikej
> > > > -=-
> > > > mike jackson
> > > > [EMAIL PROTECTED]
> > > >
> > > > > -Original Message-
> > > > > From: Luminous Heart
> > > > [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Monday, August 19, 2002 8:36 AM
> > > > > To: Tomcat Users List
> > > > > Subject: Re: It would be great IF somebody
> > > > answered me, ONCE, for change
> > > > > :(
> > > > >
> > > > >
> > > > > Hi Graig,
> > > > > Here is my jsp file. I am not sure what might
> > be
> > > > > wrong. Although the same error happens in a
> > bigger
> > > > > application in a tc cluster of 3 tomcats. Two
> > of
> > > > these
> > > > > tcs fail while one does not get any forwards
> > after
> > > > > that.
> > > > >
> > > > > Please take a look at my code, if you do not
> > mind.
> > > > >
> > > > > Best regards.
> > > > >
> > > > > = JSP
> > =
> > > > > <%@ page import="java.io.*" %>
> > > > > <%@ page import="java.util.*" %>
> > > > > <%@ page import="java.text.*" %>
> > > > >
> > > > > <%@ page import="java.util.Properties" %>
> > > > > <%@ page import="java.util.Date" %>
> > > > >
> > > > > <%@ page contentType="text/html"%>
> > > > >
> > > > > <%@ page import="com.codestudio.util.*"%>
> > > > > <%@ page import="java.sql.*"%>
> > > > >
> > > > > 
> > > > >
> > > > >  > > > > name="access_form">
> > > > >   
> > > > >   
> > > > >   
> > > >  > > > > size=5>User Access
> > > > >
> > > > >  
> > > > >  
> > > > >  
> > > > >   
> > > > >   
> > > > > 
> > > > > 
> > > > >> > > border=0>
> > > > > 
> >  > > > > size=5>User Access by userid
> > > > > 
> > > > >   
> > User
> > > > > Name
> > > > >  > > > name="byusername"
> > > > > size=25 value=""  maxlength=25>
> > > > >   
> > > > > 
> > > > >   
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > >> > > border=0>
> > > > > 
> >  > > > > size=5>User Access by Date > > > size=1>
> > > > > 
> > > > > 
> > > > >Date
> > > > >  > name="bydate"
> > > > > value="" size=25  maxlength=125>
> > > > > 
> > > > >   
> 

Re: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE 7.3 Linux?

2002-08-19 Thread Chetan Sarva

> Hi John,
>
> Thanks for the quick reply. That indeed was the problem. The apxs being
used
> was an older version (left from an earlier install). I have successfully
> rebuilt mod_jk and Apache now loads properly however it is still not
working
> properly. I am able to view webapps/examples/ directly from Tomcat
> (http://localhost:8080/examples) but Apache is not correctly picking up
the
> Aliases from tomcat/conf/auto/mod_jk.conf.

Accidentally sent that a bit too soon. Anyhow, here is the error from
Apache's error_log.

File does not exist: /usr/local/apache/htdocs/examples/

I have verified that Apache is indeed reading the mod_jk.conf by the fact
that it is creating the mod_jk.log in tomcat's log folder. It seems to be
ignoring all else however. Any ideas?

Regards,
Chetan Sarva


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




RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-19 Thread Jim Urban

What error are you receiving?  Can you post a stack trace and a code clip
with line numbers so we can see what is failing?


Jim Urban - [EMAIL PROTECTED]
Park City Solutions Inc.
Clinical Connectivity Suite Product Manager
Suite 295
500 Park Blvd.
Itasca, IL  60143
Voice:  (630) 250-3045 x106
Fax:  (630) 250-3046

CONFIDENTIALITY NOTICE
This message and any included attachments are from Park City Solutions Inc.
and are intended only for the entity to which it is addressed. The contained
information is confidential and privileged material. If you are not the
intended recipient, you are hereby notified that any use, dissemination, or
copying of this communication is strictly prohibited and may be unlawful. If
you have received this communication in error please notify the sender of
the delivery error by e-mail or call Park City Solutions Inc. corporate
offices at (435) 654-0621

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 1:27 PM
To: 'Tomcat Users List'
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?


Thanks!  I've set up my code as you've described, but no luck.  For example,
here is the relevant portion of the stored procedure declaring the
parameters (forgive me, I don't work with stored procedures that often, so
this may not be the right portion of the procedure to focus on):

@userid_in varchar(8),
@password_in varchar(8),
@ip_addr varchar(15),
@http_referer varchar(80),
@http_user_agent varchar(80),
@pwdvalid bit OUTPUT,
@userenabled bit OUTPUT,
@graceexceeded bit OUTPUT,
@adminuser char(1) OUTPUT,
@title varchar(4) OUTPUT

My code looks like this:

// prepare the stored procedure statement
try {
cstmt = sConn.prepareCall("{? = call
sp_validate_pwd(?,?,?,?,?,?,?,?,?,?)}");
} catch (SQLException sqle) {
sqle.printStackTrace();
}

// set the input parameters
try {
cstmt.setString(2, strUserID);
cstmt.setString(3, strPassword);
cstmt.setString(4, strRemoteAddress);
cstmt.setString(5, strReferURL);
cstmt.setString(6, strHTTPUserAgent);
} catch (Exception e) {
e.printStackTrace();
}

// register the output parameters for the stored procedure
try {
cstmt.registerOutParameter(1, Types.INTEGER);
cstmt.registerOutParameter(7, Types.BIT);
cstmt.registerOutParameter(8, Types.BIT);
cstmt.registerOutParameter(9, Types.BIT);
cstmt.registerOutParameter(10, Types.CHAR);
cstmt.registerOutParameter(11, Types.VARCHAR);
} catch (Exception e) {
e.printStackTrace();
}

// execute the stored procedure
try {
cstmt.execute();
} catch (SQLException sqle) {
sqle.printStackTrace();
}

// grab the results from the stored procedure call
try {
spReturnStatus = cstmt.getInt(1);
isValid = cstmt.getBoolean(7);
isEnabled = cstmt.getBoolean(8);
isExceeded = cstmt.getBoolean(9);
strAdmin = cstmt.getString(10);
strTitle = cstmt.getString(11);
} catch (SQLException sqle) {
sqle.printStackTrace();
}

cstmt = null;

I've tried different calls, putting the output parameters first (2-6) and
the inputs last (7-11), I've tried no return value, putting that return
value at the end (#11), etc. with no luck.  All of the variables in the
setString() methods are set before calling setString().  Am I at least on
the right track with the code shown above?  Or have I completely missed it?

Thanks again for replying!

John Turner


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 2:14 PM
To: Tomcat Users List
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?



It's been sometime since I used JDBC and SQL Server. But here are a few
points to note:
1) Your first "?" is the return status. It should be registered as an OUT
parameter.
2) Remember to use the right JDBC type when registering the OUT parameters.
This is of utmost importance.
3) All ouput parameters should be registered before the call to the stored
proc is made.
4) cstmt.setXXX(, )
5) cstmt.getXXX()
6) If your stored procedure is returning any result set, retrieve all the
results before retrieving the OUT parameters. To make sure all the results
have been retrieved, use the getMoreResults method.

An example:
--
TestAdd proc adds two numbers.
It returns a status of 1 is the any one of the input parameters is less
than 0.
It returns a status of 0 if the add worked and it also returns a result of
the addition.

Stored proc:
-
create procedure TestAdd @param1 int, @param2 int, @param3 int output as
be

Re: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE 7.3 Linux?

2002-08-19 Thread Chetan Sarva

Hi John,

Thanks for the quick reply. That indeed was the problem. The apxs being used
was an older version (left from an earlier install). I have successfully
rebuilt mod_jk and Apache now loads properly however it is still not working
properly. I am able to view webapps/examples/ directly from Tomcat
(http://localhost:8080/examples) but Apache is not correctly picking up the
Aliases from tomcat/conf/auto/mod_jk.conf.


- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, August 19, 2002 4:20 PM
Subject: RE: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE 7.3
Linux?


>
> Both of your error messages are "undefined symbol", one of which is on
> mod_rewrite, which leads me to believe there's something going on with
your
> apache, even the binary.  Libraries, perhaps?  Is the apxs in your build
the
> one under /usr/local/apache/bin, or is it the one under /usr/sbin (you
want
> the one under /usr/local/apache/bin)?
>
> John Turner
> [EMAIL PROTECTED]


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




Re: Arabic content

2002-08-19 Thread Andre E. Bar'yudin

Laurent Féral-Pierssens wrote:
> 
> Hi,
> 
> We have been realizing web applications for the last 2 years using
> Tomcat. Last week, one of our clients asked us if we could provide a
> multilingual application that would contain English, French and Arabic
> content.
> 
> My questions are vague for now. Did anyone actually produced an
> application with Arabic content? What should we have to take in
> consideration in our design and development? What are the risks and
> traps to avoid while coding such webapp? Is there a problem with
> displaying such information under Tomcat? storing it in MySQL? 

I implemented a few applications which had multilingual support 
(English/Hebrew/Russian/Spanish right now).  All the data is stored as 
Unicode and is sent to client in UTF-8 encoding - believe me, it saved 
me a lot of trouble, especially due to the Java built-in support of 
UNICODE.  I don't know whether MySQL supports any UNICODE encodings.  I 
had success with PostgreSQL/MS SQL/Oracle.

Some Tomcat versions have problems with UTF-8 for some reason.  I've 
found that versions 4.0.2, 4.0.3 and 4.1.9beta work.  All others have 
failed for me (and I tested them one by one with the same code).

As to displaying - as long as your client's software supports UTF-8 it 
works.  This includes IE and recent versions of Mozilla/Netscape.  Opera 
is still bad when it comes to RTL languages.

> Those questions may actually be out of context for Tomcat. But your
> opinion would be much appreciated.
> 
> Regards,
> 
> Laurent



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




RE: Craig, PoolMan, latest version WAS the problem.

2002-08-19 Thread Andrew Conrad

Instead of using poolman, you could use dbcp.  It's the default
connection pool for TC 4.1.x

http://jakarta.apache.org/commons/dbcp.html

- Andrew

> -Original Message-
> From: Luminous Heart [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, August 19, 2002 12:54 PM
> To: Tomcat Users List
> Subject: Craig, PoolMan, latest version WAS the problem.
> 
> 
> Ok. I reverted to an older version of PoolMan, where
> we use pool.prop instead of pool.xml. That version
> works fine. I have not hit the exception although I
> tested it for sometime. 
> 
> Does that mean am stuck to the older poolman? Is there
> a better solution to handle database pooling?
> 
> Thank you.
> 
> --- Luminous Heart <[EMAIL PROTECTED]> wrote:
> > I am sorry, but I did not get what you mean with
> > connection limit to be a hard limit, which one is
> > that?
> > 
> > I am including a copy of my pool.xml if you care do
> > point out what should be changed.
> > 
> > Thank you in advance.
> > 
> >  Pool.xml =
> > 
> > 
> > 
> > 
> >   local
> > 
> >   
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > webdev
> > webdev
> > org.postgresql.Driver
> >
> > jdbc:postgresql://localhost:6093/webdev
> > 
> > JustAUserName
> > JustAUserNamePassword
> > 
> > 
> > true
> > 
> > 1
> > 10
> > 600
> > 12
> > 10
> > 
> >
> >
> /usr/local/tomcat/logs/poolman.log
> > false
> > 
> > 
> > 
> > false
> > 20
> > 120
> > 
> >   
> > 
> > 
> > 
> >  End Pool.xml =
> > --- Mike Jackson <[EMAIL PROTECTED]> wrote:
> > > Actually now that I think about it more that might
> > > be the cause of the null
> > > pointer (but
> > > probably not).  In your poolman.xml file have you
> > > set the connection limit
> > > to be a hard
> > > limit?  If you timeout on connections (user
> > timeout)
> > > is fairly high you
> > > could run out of
> > > connections, and it might return a "null" instead
> > of
> > > a connection.
> > > 
> > > But that's just a guess.  Also, you might was to
> > > also turn on logging (debug
> > > level) in
> > > poolman as well so that you can watch the
> > > connections getting checked out
> > > and in.
> > > 
> > > --mikej
> > > -=-
> > > mike jackson
> > > [EMAIL PROTECTED]
> > > 
> > > > -Original Message-
> > > > From: Luminous Heart
> > > [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, August 19, 2002 8:36 AM
> > > > To: Tomcat Users List
> > > > Subject: Re: It would be great IF somebody
> > > answered me, ONCE, for change
> > > > :(
> > > >
> > > >
> > > > Hi Graig,
> > > > Here is my jsp file. I am not sure what might be
> > > > wrong. Although the same error happens in a
> > bigger
> > > > application in a tc cluster of 3 tomcats. Two of
> > > these
> > > > tcs fail while one does not get any forwards
> > after
> > > > that.
> > > >
> > > > Please take a look at my code, if you do not
> > mind.
> > > >
> > > > Best regards.
> > > >
> > > > = JSP =
> > > > <%@ page import="java.io.*" %>
> > > > <%@ page import="java.util.*" %>
> > > > <%@ page import="java.text.*" %>
> > > >
> > > > <%@ page import="java.util.Properties" %>
> > > > <%@ page import="java.util.Date" %>
> > > >
> > > > <%@ page contentType="text/html"%>
> > > >
> > > > <%@ page import="com.codestudio.util.*"%>
> > > > <%@ page import="java.sql.*"%>
> > > >
> > > > 
> > > >
> > > > 
> > > >   
> > > >   
> > > >   
> > >  > > > size=5>User Access
> > > >
> > > >  
> > > >  
> > > >  
> > > >   
> > > >   
> > > > 
> > > > 
> > > >> > border=0>
> > > > 
> >  > > > size=5>User Access by userid
> > > > 
> > > >User Name
> > > >  > > name="byusername"
> > > > size=25 value=""  maxlength=25>
> > > >   
> > > > 
> > > >   
> > > > 
> > > > 
> > > > 
> > > > 
> > > >> > border=0>
> > > > 
> >  > > > size=5>User Access by Date > > size=1>
> > > > 
> > > > 
> > > >Date
> > > >  > > > value="" size=25  maxlength=125>
> > > > 
> > > >   
> > > > 
> > > >   
> > > > 
> > > > 
> > > > 
> > > > 
> > > >> > border=0>
> > > > 
> >  > > > size=5>USER Access by IP Address
> > > > 
> > > > 
> > > >IP
> > > Address
> > > >  > > name="byipaddress"
> > > > value="" size=25  maxlength=125>
> > > > 
> > > >   
> > > > 
> > > >   
> > > > 
> > > > 
> > > >   
> > > >   
> > > >  
> > > > 
> > > >> > > name="submit">
> > > > 
> > 
> === message truncated ===
> 
> 
> __
> Do You Yahoo!?
> HotJobs - Search Thousands of New

RE: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE 7.3 Linux?

2002-08-19 Thread Turner, John


Both of your error messages are "undefined symbol", one of which is on
mod_rewrite, which leads me to believe there's something going on with your
apache, even the binary.  Libraries, perhaps?  Is the apxs in your build the
one under /usr/local/apache/bin, or is it the one under /usr/sbin (you want
the one under /usr/local/apache/bin)?

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Chetan Sarva [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 4:11 PM
To: Tomcat Users List
Subject: Re: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE
7.3 Linux?


Hi,

I've followed John's instructions (see link at bottom) to the letter.
Successfully built Apache, installed Tomcat and built mod_jk.so. When I try
to start Apache I get the following error:

# ./apachectl start
Syntax error on line 223 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_rewrite.so into server:
/usr/local/apache/libexec/mod_rewrite.so: undefined symbol: dbm_fetch
./apachectl start: httpd could not be started


I also tried using the binary install of Apache and instead got the
following error (I actually tried the binary install first and went back and
did a source install which gave even more problems..):
# ./apachectl start
Syntax error on line 4 of /usr/local/tomcat/conf/auto/mod_jk.conf:
Cannot load /usr/local/apache/libexec/mod_jk.so into server:
/usr/local/apache/libexec/mod_jk.so: undefined symbol: ap_ctx_get
./apachectl start: httpd could not be started

I searched around and could find no solution to this problem (though there
are a few mentions of ap_ctx_get they are mostly in reference to mod_ssl and
always ended up with the answer of "wait for the next release of mod_ssl; it
is a known bug").

Here are the details of my install:
Redhat 7.2
Apache 1.3.26 binary/source install to /usr/local/apache
Tomcat 4.0.4 binary install to /usr/local/tomcat
Tomcat Connector built from 4.0.4 source (mod_jk.so).
Sun JDK 1.4.1 installed to /usr/java/j2sdk1.4.1

Any help is appreciated

Regards,
Chetan Sarva


- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, August 16, 2002 12:27 PM
Subject: RE: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE 7.3
Linux?


> My How-To for redhat is free, and it works.  I even got mail from someone
> today that said it helped them get it working on NetBSD, so SuSE should be
> no problem.
>
> http://www.johnturner.com/howto/apache-tomcat-howto.html



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE 7.3 Linux?

2002-08-19 Thread Chetan Sarva

Hi,

I've followed John's instructions (see link at bottom) to the letter.
Successfully built Apache, installed Tomcat and built mod_jk.so. When I try
to start Apache I get the following error:

# ./apachectl start
Syntax error on line 223 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_rewrite.so into server:
/usr/local/apache/libexec/mod_rewrite.so: undefined symbol: dbm_fetch
./apachectl start: httpd could not be started


I also tried using the binary install of Apache and instead got the
following error (I actually tried the binary install first and went back and
did a source install which gave even more problems..):
# ./apachectl start
Syntax error on line 4 of /usr/local/tomcat/conf/auto/mod_jk.conf:
Cannot load /usr/local/apache/libexec/mod_jk.so into server:
/usr/local/apache/libexec/mod_jk.so: undefined symbol: ap_ctx_get
./apachectl start: httpd could not be started

I searched around and could find no solution to this problem (though there
are a few mentions of ap_ctx_get they are mostly in reference to mod_ssl and
always ended up with the answer of "wait for the next release of mod_ssl; it
is a known bug").

Here are the details of my install:
Redhat 7.2
Apache 1.3.26 binary/source install to /usr/local/apache
Tomcat 4.0.4 binary install to /usr/local/tomcat
Tomcat Connector built from 4.0.4 source (mod_jk.so).
Sun JDK 1.4.1 installed to /usr/java/j2sdk1.4.1

Any help is appreciated

Regards,
Chetan Sarva


- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, August 16, 2002 12:27 PM
Subject: RE: Apache 1.3.20 + Tomcat + (mod_jk or mod_webapp) for SuSE 7.3
Linux?


> My How-To for redhat is free, and it works.  I even got mail from someone
> today that said it helped them get it working on NetBSD, so SuSE should be
> no problem.
>
> http://www.johnturner.com/howto/apache-tomcat-howto.html



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




?? Tomcat and System.out ??

2002-08-19 Thread Tony LaPaso

Hello all,

I'm using TC 4.1.9 on Win 2k.

I know in the past (earlier versions of TC) I could send output
to System.out and/or System.err and it would show up in the
console window where TC was running. It seems this output is
either being ignored now or perhaps being buffered.

Is there a way (in TC 4.1.9) to get System.out data to appear in
the console?

Thanks very much...


Tony





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




RE: Using Tomcat as a proxy?

2002-08-19 Thread ope

> Open a URLConnection to the real page, read the data
> and write it to your
> output stream. This can be done in a servlet or a
> filter.

Thanks.  I have been giving it a try and it is not as
much work as I thought it would be.  I don't know why
I was trying so hard to find a way around but I think
that writing a 'proxy' servlet will end up being the
quickest way to an end in this case.

--- "Cox, Charlie" <[EMAIL PROTECTED]> wrote:
> 
> 
> > -Original Message-
> > From: ope [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, August 19, 2002 12:38 PM
> > To: Tomcat Users List
> > Subject: Re: Using Tomcat as a proxy?
> > 
> > 
> > 
> > > Why would you want to use a Java Servlet
> Container
> > > to do proxying? It's like 
> > > using a Space Shuttle to do door-to-door
> delivery.
> > > If you need proxying, use 
> > > Squid or Apache.
> > 
> > The reason I have to do this is to make the best
> of a
> > rather brain dead product deployment.  This is not
> a
> > long term fix but it is only a temporary fix to
> keep
> > customers happy for two months until we can change
> > everything.  I got thrown into the whole mix after
> the
> > fact.  Unfortunately installing Apache or Squid
> (my
> > first suggestion) on the clients site is not an
> > option.
> > 
> > > If you want to have pieces of other sites inside
> > > your webapp, the it is a whole 
> > > new ball game.
> > 
> > Ultimately this is the idea.  Basically we need to
> use
> > our webapp to get a page from another server and
> pass
> > it back to the user but make it appear that it
> came
> > from our webapp.  It is an ugly thing to do but I
> need
> > to find a quick fix before I can work on a real
> fix. 
> > If you have any ideas, suggestions or links I
> would
> > appreciate it.
> 
> Open a URLConnection to the real page, read the data
> and write it to your
> output stream. This can be done in a servlet or a
> filter.
> 
> Charlie


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




Re: Tomcat/Cocoon space errors

2002-08-19 Thread Peter T. Abplanalp

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Aug 19, 2002 at 03:50:26PM -0400, Julie Jordan wrote:
> df -kl returns the following:
> filesystem  kbytes   used avail
> capacity  mounted on
> /dev/root   2097152  2097152  0100%
> /

your root partition is full.

- -- 
Peter Abplanalp

Email:   [EMAIL PROTECTED]
PGP: pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9YUzmggA8sH0iRXQRAi2TAKCIzWa/4zlIjDZcK/DCQf4hxHEChQCeLLcu
EoN+gUr+PB+SwuRZqzEJmlg=
=3YR9
-END PGP SIGNATURE-

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




RE: Arabic content

2002-08-19 Thread Sexton, George

I have done Hebrew before, and it's pretty much the same problem.

The major issue is that you have content that is Right to left, and content
that is left to right. Since it is a single-byte language, you don't have to
use Unicode, you just have to set the code-page to the right value.

RTL support is getting better. Last I checked (a few months ago), IE was the
only one that supported it fully. Mozilla does support it, but when you have
LTR text embedded inside the page (Company names, English Names, Numerals,
etc), the rendering engine doesn't handle it. So, you are pretty much going
to be limited to IE as a client. If you are using graphics, particularly
things like pointy arrows, they will be pointing the wrong way when you set
the DIR=RTL attribute for the body.

Plan on this being difficult and taking a long time...

-Original Message-
From: Laurent Féral-Pierssens [mailto:[EMAIL PROTECTED]]
Sent: 19 August, 2002 1:26 PM
To: [EMAIL PROTECTED]
Subject: Arabic content




Hi,

We have been realizing web applications for the last 2 years using
Tomcat. Last week, one of our clients asked us if we could provide a
multilingual application that would contain English, French and Arabic
content.

My questions are vague for now. Did anyone actually produced an
application with Arabic content? What should we have to take in
consideration in our design and development? What are the risks and
traps to avoid while coding such webapp? Is there a problem with
displaying such information under Tomcat? storing it in MySQL?

Those questions may actually be out of context for Tomcat. But your
opinion would be much appreciated.

Regards,

Laurent



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: Tomcat/Cocoon space errors

2002-08-19 Thread Julie Jordan

df -kl returns the following:
filesystem  kbytes   used avail
capacity  mounted on
/dev/root   2097152  2097152  0100%
/
/dev/stand  20480  5741 1473929%
/stand
/proc   000
0%   /  proc
/dev/fd 000
0%   /dev/fd
/dev/dsk/c0b0t0d0s3 3072020149   1057166%
/mtce
/dev/dsk/c0b0t0d0s4 768000   117106   650894   16%   /vs
/dev/dsk/c0b0t0d0s9 102400   203488205220%
/fax
/dev/dsk/c0b0t0d0sb 2046976  1753193  293783   86%   /oracle
/dev/dsk/c0b0t0d0sc 307200   203092868917%
/tmp
/dev/dsk/c0b0t0d0sd 2046976  1489688  557288   73%   /voice1
/dev/dsk/c0b0t0d0s10 614400   423745720267%
/support
/dev/dsk/c0b0t0d0s11 204800   151581896428%   /appl
/dev/_tcp   000
0%   /dev/_tcp
/processorfs000
0%   /system/processor
- Original Message -
From: "Peter T. Abplanalp" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 19, 2002 3:44 PM
Subject: Re: Tomcat/Cocoon space errors


> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Mon, Aug 19, 2002 at 03:36:42PM -0400, Julie Jordan wrote:
> > Hi all,
> >
> > I am new to Apache/Tomcat and finally got it all loaded and working.
When I
> > get into the Cocoon pages I start throwing errors as follows. Not sure
what
> > configurations I need to change. Not sure why it isn't compiling the
> > sitmap??
> >
> > Am running on Unix:
> >
> > Apache 1.3.9, JSDK2.0, mod_jk, Tomcat 3.3.1, Cocoon 2.0.3
> >
> > Here is my Error.log file:
> >
> > ERROR (2002-08-16) 15:35.25:890 [core.manager]
> > (/cocoon/documents/index.html)
> >
> > Thread-14/Handler: Error compiling sitemap
> >
> > java.io.IOException: No space left on device
>
> what does 'df -kl' on the system running tomcat show?
>
>
> - --
> Peter Abplanalp
>
> Email:   [EMAIL PROTECTED]
> PGP: pgp.mit.edu
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.0.7 (GNU/Linux)
>
> iD8DBQE9YUqiggA8sH0iRXQRAnhsAJ4pfL+unWUlVdbauRHPuCbaeMVS+QCfQXTg
> 7tcdVzoKYw1L9BcfVfaAGcw=
> =uJ0s
> -END PGP SIGNATURE-
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>


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




Re: Tomcat/Cocoon space errors

2002-08-19 Thread Peter T. Abplanalp

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Aug 19, 2002 at 03:36:42PM -0400, Julie Jordan wrote:
> Hi all,
> 
> I am new to Apache/Tomcat and finally got it all loaded and working. When I
> get into the Cocoon pages I start throwing errors as follows. Not sure what
> configurations I need to change. Not sure why it isn't compiling the
> sitmap??
> 
> Am running on Unix:
> 
> Apache 1.3.9, JSDK2.0, mod_jk, Tomcat 3.3.1, Cocoon 2.0.3
> 
> Here is my Error.log file:
> 
> ERROR (2002-08-16) 15:35.25:890 [core.manager]
> (/cocoon/documents/index.html)
> 
> Thread-14/Handler: Error compiling sitemap
> 
> java.io.IOException: No space left on device

what does 'df -kl' on the system running tomcat show?


- -- 
Peter Abplanalp

Email:   [EMAIL PROTECTED]
PGP: pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9YUqiggA8sH0iRXQRAnhsAJ4pfL+unWUlVdbauRHPuCbaeMVS+QCfQXTg
7tcdVzoKYw1L9BcfVfaAGcw=
=uJ0s
-END PGP SIGNATURE-

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




Tomcat/Cocoon space errors

2002-08-19 Thread Julie Jordan

Hi all,

I am new to Apache/Tomcat and finally got it all loaded and working. When I
get into the Cocoon pages I start throwing errors as follows. Not sure what
configurations I need to change. Not sure why it isn't compiling the
sitmap??

Am running on Unix:

Apache 1.3.9, JSDK2.0, mod_jk, Tomcat 3.3.1, Cocoon 2.0.3

Here is my Error.log file:

ERROR (2002-08-16) 15:35.25:890 [core.manager]
(/cocoon/documents/index.html)

Thread-14/Handler: Error compiling sitemap

java.io.IOException: No space left on device

at java.io.FileOutputStream.writeBytes(Native Method)

at java.io.FileOutputStream.write(FileOutputStream.java, Compiled Code)

at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java, Compiled
Code)

at java.io.OutputStreamWriter.flush(OutputStreamWriter.java, Compiled Code)

at java.io.OutputStreamWriter.close(OutputStreamWriter.java, Compiled Code)

at org.apache.cocoon.util.IOUtils.serializeString(IOUtils.java, Compiled
Code)

at org.apache.cocoon.util.IOUtils.serializeString(IOUtils.java, Compiled
Code)

etc,etc,etc.



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




Arabic content

2002-08-19 Thread Laurent Féral-Pierssens



Hi,

We have been realizing web applications for the last 2 years using
Tomcat. Last week, one of our clients asked us if we could provide a
multilingual application that would contain English, French and Arabic
content.

My questions are vague for now. Did anyone actually produced an
application with Arabic content? What should we have to take in
consideration in our design and development? What are the risks and
traps to avoid while coding such webapp? Is there a problem with
displaying such information under Tomcat? storing it in MySQL? 

Those questions may actually be out of context for Tomcat. But your
opinion would be much appreciated.

Regards,

Laurent



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




Re[2]: retrieving HttpSession in Filter? ServletResponse.setContentLength()?

2002-08-19 Thread Jacob Kjome

CRM> There was an example filter that did post-processing XSLT transformations
CRM> on Java Developer Connection (at java.sun.com) a while back, which
CRM> illustrated exactly this kind of processing.  In fact, the original
CRM> version of the code in the article had exactly this sort of bug, and had
CRM> to be corrected later :-).

Craig,

Was the example filter at
http://java.sun.com/products/servlet/Filters.html in the example with
the title "XSL/T transformations of XML content-Targeting web
application responses to more that one type of client."?

If so, does the example there have the bug you are talking about?  If
so, where is the corrected version?  I was about to start looking into
doing exactly this kind of  stuff and I want to avoid any known
issues.

Jake


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




Re: Dumb question

2002-08-19 Thread Jacob Kjome

Hello Kemp,

Note that if a .war file exists *and* a directory with the name of the
.war file minus the .war exists, the .war will not be re-expanded upon
future restarts.  This means that Tomcat will serve stuff out of the
directory, if it exists.

So, you don't need to re-create the .war file unless you plan on
deleting the directory and letting tomcat re-deploy the .war file.
You can just drop your modified .html and .jsp files into the
directory.  There are no issues with the .html file, but there would
be with dynamic files like .jsp's.  Fortunately, .jsp's are
re-compiled and re-loaded when updated so you should see your changes
upon the first request after adding the modified file *without*
restarting Tomcat.  Note that is isn't the case for servlets.

Jake

Monday, August 19, 2002, 1:46:53 PM, you wrote:

KRW> Please forgive this dumb question - but I just don't get it.  I prepare a war 
file in Tomcat and execute it OK.  The war file consists of a few JSP and HTML pages.  
If I wish to just change one
KRW> JSP or HTML page, do I:
KRW> 1. Recreate the war file
KRW> 2. Just move the files into the expanded directory that Tomcat created for the 
war file.
KRW> 3.  Move the files into the expanded directory that Tomcat created for the war 
file - and also bring Tomcat up and down.
KRW> 4. Some other option 

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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




RE: Using Tomcat as a proxy?

2002-08-19 Thread Cox, Charlie



> -Original Message-
> From: ope [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 12:38 PM
> To: Tomcat Users List
> Subject: Re: Using Tomcat as a proxy?
> 
> 
> 
> > Why would you want to use a Java Servlet Container
> > to do proxying? It's like 
> > using a Space Shuttle to do door-to-door delivery.
> > If you need proxying, use 
> > Squid or Apache.
> 
> The reason I have to do this is to make the best of a
> rather brain dead product deployment.  This is not a
> long term fix but it is only a temporary fix to keep
> customers happy for two months until we can change
> everything.  I got thrown into the whole mix after the
> fact.  Unfortunately installing Apache or Squid (my
> first suggestion) on the clients site is not an
> option.
> 
> > If you want to have pieces of other sites inside
> > your webapp, the it is a whole 
> > new ball game.
> 
> Ultimately this is the idea.  Basically we need to use
> our webapp to get a page from another server and pass
> it back to the user but make it appear that it came
> from our webapp.  It is an ugly thing to do but I need
> to find a quick fix before I can work on a real fix. 
> If you have any ideas, suggestions or links I would
> appreciate it.

Open a URLConnection to the real page, read the data and write it to your
output stream. This can be done in a servlet or a filter.

Charlie

> 
> __
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




Dumb question

2002-08-19 Thread Kemp Randy-W18971

Please forgive this dumb question - but I just don't get it.  I prepare a war file in 
Tomcat and execute it OK.  The war file consists of a few JSP and HTML pages.  If I 
wish to just change one JSP or HTML page, do I:
1. Recreate the war file
2. Just move the files into the expanded directory that Tomcat created for the war 
file.
3.  Move the files into the expanded directory that Tomcat created for the war file - 
and also bring Tomcat up and down.
4. Some other option 

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




RE: Trouble de-serializing objects when running 4.0.4 as NT service

2002-08-19 Thread Cox, Charlie

tomcat 4.x does not use the classpath unless you have modified catalina.bat
to do so. It's unusual that the class is found when run by .bat, but not as
a service.

you're not using a network drive that's not mapped when run as a service? 
does user 'System' have access to the class(or jar) files?

does the library in question reside under tomcat in /common/lib or
/webapps/lib?

is JAVA_HOME set the same for both?

did you check for other error messages before this one?

Charlie

> -Original Message-
> From: ope [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 2:28 PM
> To: Tomcat Users List
> Subject: Re: Trouble de-serializing objects when running 4.0.4 as NT
> service
> 
> 
> My first guess would be that you have some settings in
> your environment that are not present in the system. 
> Possibly the CLASSPATH.  Check your Tomcat services
> settings to see which user you are starting as and
> make sure that the user has the same environment that
> you do.
> 
> --- David Makepeace <[EMAIL PROTECTED]> wrote:
> > Hi , So no one has any ideas for me on this? It's
> > really bizzare.
> > 
> > --- David Makepeace <[EMAIL PROTECTED]>
> > wrote:
> > > Hi, I'm having trouble deserializing an object
> > > (stored
> > > in a relational db) when running Tomcat 4.0.4 as
> > an
> > > NT
> > > Service. I have no problems when running from the
> > > startup.bat. My database is mySQL. I am using
> > > Tomcat's
> > > connection pooling. Platform win2k. Here's the
> > > exception that I'm seeing when I'm calling
> > > ResultSet.getObject(). Any idea's on how to work
> > > around this? I really need to run this as a
> > service.
> > > 
> > > 
> > > java.sql.SQLException: Class not found:
> > > java.lang.ClassNotFoundException:
> > > org.sagecentral.modulecreation.Lesson while
> > reading
> > > serialized object
> > >   at org.gjt.mm.mysql.ResultSet.getObject(Unknown
> > > Source)
> > > 
> > > __
> > > Do You Yahoo!?
> > > HotJobs - Search Thousands of New Jobs
> > > http://www.hotjobs.com
> > > 
> > > --
> > > To unsubscribe, e-mail:  
> > >
> > 
> > > For additional commands, e-mail:
> > > 
> > > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > HotJobs - Search Thousands of New Jobs
> > http://www.hotjobs.com
> > 
> > --
> > To unsubscribe, e-mail:  
> > 
> > For additional commands, e-mail:
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




RE: Cannot get Apache 1.3.26, Tomcat 3.3a to play nice via mod_jk.dll on Win2k

2002-08-19 Thread Turner, John


No problem, glad to help.

John


-Original Message-
From: Matt Partain [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 2:20 PM
To: Tomcat Users List
Subject: RE: Cannot get Apache 1.3.26, Tomcat 3.3a to play nice via
mod_jk.dll on Win2k


You were absolutely right- all I did was move the whole Tomcat installation
to c:\tc33a and change the httpd.conf include (leaving off the quotes this
time), mod_jk.conf, and worker.processes to match the new directory.
Started Tomcat and then started Apache just fine!

Thank you so much for your help!

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 11:08 AM
To: 'Tomcat Users List'
Subject: RE: Cannot get Apache 1.3.26, Tomcat 3.3a to play nice via
mod_jk.dll on Win2k



One thing I would change right off the bat is using spaces in the pathname,
double quotes or not.  Yes, the Apache installer puts things there, but the
Apache installer doesn't know that you are going to be using mod_jk and
tomcat.  I've had fewer problems ever since I moved things to places like
c:\tomcat or c:\apache on my development workstation.

Also, the file "mod_jk.conf" is generated by tomcat only if there are
Listener directives in server.xml (and I'm not even sure 3.3 does it,
perhaps it does).  Are those directives in place?

In addition, as far as I know, the correct path for an auto-generated
mod_jk.conf file is $CATALINA_HOME/conf/auto, not $CATALINA_HOME/conf/jk,
though again, I'm using Tomcat 4 on RH 7.2 with apache on my server.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Matt Partain [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 2:02 PM
To: Jakarta Users List
Subject: Cannot get Apache 1.3.26, Tomcat 3.3a to play nice via
mod_jk.dll on Win2k


Per all the instructions I could find, I brought down the Apache and Tomcat
services.  I have ensured that TOMCAT_HOME and JAVA_HOME (JDK 1.3) are both
defined on my system and put the dll in Apache's "modules" folder, per the
instructions.  Added the following line to httpd.conf:

Include "C:/Program Files/Apache Group/Tomcat 3.3a/conf/jk/mod_jk.conf"

Tried it with and without the quotation marks- apache doesn't seem to like
it.  When I try to bring up the service, it dies immediately, leaving no
errors, until I comment out that line.  I also tried including the
mod_jk.conf contents in httpd.conf, skipping the include directive
altogether, with the same results (same crash).  Here are my mod_jk.conf
contents:

LoadModule jk_module modules/mod_jk.dll



JkWorkersFile C:/Program Files/Apache Group/Tomcat
3.3a/conf/jk/workers.properties
JkLogFile  logs/jk.log
JkLogLevel error
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12
JkMount /examples/* ajp12



So what do you think I might have done wrong?  Thanks in advance for your
help!

Matt Partain
[EMAIL PROTECTED]


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


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




Re: Trouble de-serializing objects when running 4.0.4 as NT service

2002-08-19 Thread ope

My first guess would be that you have some settings in
your environment that are not present in the system. 
Possibly the CLASSPATH.  Check your Tomcat services
settings to see which user you are starting as and
make sure that the user has the same environment that
you do.

--- David Makepeace <[EMAIL PROTECTED]> wrote:
> Hi , So no one has any ideas for me on this? It's
> really bizzare.
> 
> --- David Makepeace <[EMAIL PROTECTED]>
> wrote:
> > Hi, I'm having trouble deserializing an object
> > (stored
> > in a relational db) when running Tomcat 4.0.4 as
> an
> > NT
> > Service. I have no problems when running from the
> > startup.bat. My database is mySQL. I am using
> > Tomcat's
> > connection pooling. Platform win2k. Here's the
> > exception that I'm seeing when I'm calling
> > ResultSet.getObject(). Any idea's on how to work
> > around this? I really need to run this as a
> service.
> > 
> > 
> > java.sql.SQLException: Class not found:
> > java.lang.ClassNotFoundException:
> > org.sagecentral.modulecreation.Lesson while
> reading
> > serialized object
> > at org.gjt.mm.mysql.ResultSet.getObject(Unknown
> > Source)
> > 
> > __
> > Do You Yahoo!?
> > HotJobs - Search Thousands of New Jobs
> > http://www.hotjobs.com
> > 
> > --
> > To unsubscribe, e-mail:  
> >
> 
> > For additional commands, e-mail:
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




virtual hosting for muliple applications

2002-08-19 Thread Alon Lutzker




Hi All,

I'm a bit new to the whole tomcat/apache/mod_jk thing, so I was looking for
some advice on virtual hosting.

I would like to run tomcat with 2-3 different applications, with 2-5
loadballanced tomcat instances for each application. from "RTFMing", I have
seen that the way to do this would be using virtual hosts.



The architecture that I'm trying to implement looks like this:
httpserver[Virtual host 1.1.1.1] >> tomcatserver [application1_instance01]
httpserver[Virtual host 1.1.1.1] >> tomcatserver [application1_instance02]
httpserver [virtual host 1.1.1.2 >> tomcatserver [application2_instance01]
httpserver [virtual host 1.1.1.2 >> tomcatserver [application2_instance02]
Each java application is different, and I can't have users that go to the
website 1.1.1.1 going to website 1.1.1.2.

I found some excellent documents on this subject, but it wasn't clear to me
if I could do use these with completely different applications. The seemed
to be relevant only for different instances of the same applications via
different virtual hosts.

Has anyone had any experience with such an architecture?

Here are the docs that I have seen:

http://carnagepro.com/pub/Docs/Tomcat/tomcat-apache-howto.html#virtual_hosti
ng

Thanks,

Alon Lutzker, System Administrator
Check Point Software Technologies, Ltd.
Email: [EMAIL PROTECTED]
Phone: 972 - 3 - 7534673
Fax: 972 - 3 - 575-9256
Mobile: 972 - 57 - 774481 (MIRS)


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-19 Thread Turner, John


Thanks!  I've set up my code as you've described, but no luck.  For example,
here is the relevant portion of the stored procedure declaring the
parameters (forgive me, I don't work with stored procedures that often, so
this may not be the right portion of the procedure to focus on):

@userid_in varchar(8),
@password_in varchar(8),
@ip_addr varchar(15),
@http_referer varchar(80),
@http_user_agent varchar(80),
@pwdvalid bit OUTPUT, 
@userenabled bit OUTPUT,
@graceexceeded bit OUTPUT,
@adminuser char(1) OUTPUT,
@title varchar(4) OUTPUT

My code looks like this:

// prepare the stored procedure statement
try {
cstmt = sConn.prepareCall("{? = call
sp_validate_pwd(?,?,?,?,?,?,?,?,?,?)}");
} catch (SQLException sqle) {
sqle.printStackTrace();
}

// set the input parameters
try {
cstmt.setString(2, strUserID);
cstmt.setString(3, strPassword);
cstmt.setString(4, strRemoteAddress);
cstmt.setString(5, strReferURL);
cstmt.setString(6, strHTTPUserAgent);
} catch (Exception e) {
e.printStackTrace();
}

// register the output parameters for the stored procedure
try {
cstmt.registerOutParameter(1, Types.INTEGER);
cstmt.registerOutParameter(7, Types.BIT);
cstmt.registerOutParameter(8, Types.BIT);
cstmt.registerOutParameter(9, Types.BIT);
cstmt.registerOutParameter(10, Types.CHAR);
cstmt.registerOutParameter(11, Types.VARCHAR);
} catch (Exception e) {
e.printStackTrace();
}

// execute the stored procedure
try {
cstmt.execute();
} catch (SQLException sqle) {
sqle.printStackTrace();
}

// grab the results from the stored procedure call
try {
spReturnStatus = cstmt.getInt(1);
isValid = cstmt.getBoolean(7);
isEnabled = cstmt.getBoolean(8);
isExceeded = cstmt.getBoolean(9);
strAdmin = cstmt.getString(10);
strTitle = cstmt.getString(11);
} catch (SQLException sqle) {
sqle.printStackTrace();
}

cstmt = null;

I've tried different calls, putting the output parameters first (2-6) and
the inputs last (7-11), I've tried no return value, putting that return
value at the end (#11), etc. with no luck.  All of the variables in the
setString() methods are set before calling setString().  Am I at least on
the right track with the code shown above?  Or have I completely missed it?

Thanks again for replying!

John Turner


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 2:14 PM
To: Tomcat Users List
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?



It's been sometime since I used JDBC and SQL Server. But here are a few
points to note:
1) Your first "?" is the return status. It should be registered as an OUT
parameter.
2) Remember to use the right JDBC type when registering the OUT parameters.
This is of utmost importance.
3) All ouput parameters should be registered before the call to the stored
proc is made.
4) cstmt.setXXX(, )
5) cstmt.getXXX()
6) If your stored procedure is returning any result set, retrieve all the
results before retrieving the OUT parameters. To make sure all the results
have been retrieved, use the getMoreResults method.

An example:
--
TestAdd proc adds two numbers.
It returns a status of 1 is the any one of the input parameters is less
than 0.
It returns a status of 0 if the add worked and it also returns a result of
the addition.

Stored proc:
-
create procedure TestAdd @param1 int, @param2 int, @param3 int output as
begin
  if @param1 < 0 and @param2 <0
  begin
return 1
  end
  else begin
select @param3 = @param1 + @param2
return 0
  end
end

Java code:

CallableStatement cstmttmt = con.prepareCall("{? = call TestAdd(?, ?, ?)}"
);
cstmt.registerOutParameter(1, Types.INTEGER);
cstmt.setInt(2, 10);
cstmt.setInt(3, 20);
cstmt.registerOutParameter(4, Types.INTEGER);
cstmt.execute();
System.out.println("status : " + cstmt.getInt(1));
System.out.println("value after adding 10 and 20 : " + cstmt.getInt(4));


Hope this helps.
RS



 

  "Turner, John"

  <[EMAIL PROTECTED]>To:   'Tomcat Users List'

 
<[EMAIL PROTECTED]>   
  08/19/02 11:53 AMcc:

  Please respond toSubject:  RE: OFF-TOPIC:
Pointers to CallableStatement  
  "Tomcat Users docs?

  List"

 

 






Right.  My setup looks like this:

cstmt = sConn.prepareCall("{? = call
sp_validate_pwd(?,?,

RE: Cannot get Apache 1.3.26, Tomcat 3.3a to play nice via mod_jk.dll on Win2k

2002-08-19 Thread Matt Partain

You were absolutely right- all I did was move the whole Tomcat installation
to c:\tc33a and change the httpd.conf include (leaving off the quotes this
time), mod_jk.conf, and worker.processes to match the new directory.
Started Tomcat and then started Apache just fine!

Thank you so much for your help!

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 11:08 AM
To: 'Tomcat Users List'
Subject: RE: Cannot get Apache 1.3.26, Tomcat 3.3a to play nice via
mod_jk.dll on Win2k



One thing I would change right off the bat is using spaces in the pathname,
double quotes or not.  Yes, the Apache installer puts things there, but the
Apache installer doesn't know that you are going to be using mod_jk and
tomcat.  I've had fewer problems ever since I moved things to places like
c:\tomcat or c:\apache on my development workstation.

Also, the file "mod_jk.conf" is generated by tomcat only if there are
Listener directives in server.xml (and I'm not even sure 3.3 does it,
perhaps it does).  Are those directives in place?

In addition, as far as I know, the correct path for an auto-generated
mod_jk.conf file is $CATALINA_HOME/conf/auto, not $CATALINA_HOME/conf/jk,
though again, I'm using Tomcat 4 on RH 7.2 with apache on my server.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Matt Partain [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 2:02 PM
To: Jakarta Users List
Subject: Cannot get Apache 1.3.26, Tomcat 3.3a to play nice via
mod_jk.dll on Win2k


Per all the instructions I could find, I brought down the Apache and Tomcat
services.  I have ensured that TOMCAT_HOME and JAVA_HOME (JDK 1.3) are both
defined on my system and put the dll in Apache's "modules" folder, per the
instructions.  Added the following line to httpd.conf:

Include "C:/Program Files/Apache Group/Tomcat 3.3a/conf/jk/mod_jk.conf"

Tried it with and without the quotation marks- apache doesn't seem to like
it.  When I try to bring up the service, it dies immediately, leaving no
errors, until I comment out that line.  I also tried including the
mod_jk.conf contents in httpd.conf, skipping the include directive
altogether, with the same results (same crash).  Here are my mod_jk.conf
contents:

LoadModule jk_module modules/mod_jk.dll



JkWorkersFile C:/Program Files/Apache Group/Tomcat
3.3a/conf/jk/workers.properties
JkLogFile  logs/jk.log
JkLogLevel error
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12
JkMount /examples/* ajp12



So what do you think I might have done wrong?  Thanks in advance for your
help!

Matt Partain
[EMAIL PROTECTED]


--
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: Trouble de-serializing objects when running 4.0.4 as NT service

2002-08-19 Thread David Makepeace

Hi , So no one has any ideas for me on this? It's
really bizzare.

--- David Makepeace <[EMAIL PROTECTED]> wrote:
> Hi, I'm having trouble deserializing an object
> (stored
> in a relational db) when running Tomcat 4.0.4 as an
> NT
> Service. I have no problems when running from the
> startup.bat. My database is mySQL. I am using
> Tomcat's
> connection pooling. Platform win2k. Here's the
> exception that I'm seeing when I'm calling
> ResultSet.getObject(). Any idea's on how to work
> around this? I really need to run this as a service.
> 
> 
> java.sql.SQLException: Class not found:
> java.lang.ClassNotFoundException:
> org.sagecentral.modulecreation.Lesson while reading
> serialized object
>   at org.gjt.mm.mysql.ResultSet.getObject(Unknown
> Source)
> 
> __
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-19 Thread rsequeira


It's been sometime since I used JDBC and SQL Server. But here are a few
points to note:
1) Your first "?" is the return status. It should be registered as an OUT
parameter.
2) Remember to use the right JDBC type when registering the OUT parameters.
This is of utmost importance.
3) All ouput parameters should be registered before the call to the stored
proc is made.
4) cstmt.setXXX(, )
5) cstmt.getXXX()
6) If your stored procedure is returning any result set, retrieve all the
results before retrieving the OUT parameters. To make sure all the results
have been retrieved, use the getMoreResults method.

An example:
--
TestAdd proc adds two numbers.
It returns a status of 1 is the any one of the input parameters is less
than 0.
It returns a status of 0 if the add worked and it also returns a result of
the addition.

Stored proc:
-
create procedure TestAdd @param1 int, @param2 int, @param3 int output as
begin
  if @param1 < 0 and @param2 <0
  begin
return 1
  end
  else begin
select @param3 = @param1 + @param2
return 0
  end
end

Java code:

CallableStatement cstmttmt = con.prepareCall("{? = call TestAdd(?, ?, ?)}"
);
cstmt.registerOutParameter(1, Types.INTEGER);
cstmt.setInt(2, 10);
cstmt.setInt(3, 20);
cstmt.registerOutParameter(4, Types.INTEGER);
cstmt.execute();
System.out.println("status : " + cstmt.getInt(1));
System.out.println("value after adding 10 and 20 : " + cstmt.getInt(4));


Hope this helps.
RS



   

  "Turner, John"   

  <[EMAIL PROTECTED]>To:   'Tomcat Users List'   

<[EMAIL PROTECTED]>   

  08/19/02 11:53 AMcc: 

  Please respond toSubject:  RE: OFF-TOPIC: Pointers to 
CallableStatement  
  "Tomcat Users docs?  

  List"

   

   






Right.  My setup looks like this:

cstmt = sConn.prepareCall("{? = call
sp_validate_pwd(?,?,?,?,?,?,?,?,?,?)}");

Basically, there are 5 inputs (username, password, IP address, browser
type,
and referer) and I'm supposed to get a return status back (bad or good) and
5 outputs: 3 booleans and 2 strings (isValid, isExceeded, isEnabled, name,
and title).

I've tried everything I can think of...only having 6 question marks, having
all 11, only using 5, etc. to no avail.  I enabled debug logging on the
driver, and I get messages that say "parameter my_parameter not registers
as
output" or "not registered as input", even when they are, and regardless of
how I use the set*() and registerOutParameter() methods.  Very confusing.

I'd love to find a complete stored procedures How-To somewhere that
addresses complex stored procedures instead of the basic tutorials that do
simple math or just insert a row.

Thanks for the reply.

John

-Original Message-
From: Wagoner, Mark [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 12:31 PM
To: 'Tomcat Users List'
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?


When you say it returns a status, do you mean it is a function (I work
primarily with Oracle, so if this does not apply to MS I apologize)?

If so, you need to make the call something like:

CallableStatement stmt = conn.prepareCall("{call ? = proc(?,?, ... )}");


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 12:18 PM
To: '[EMAIL PROTECTED]'
Subject: OFF-TOPIC: Pointers to CallableStatement docs?



Hello -

I think there is a java-user list, or even a jdbc-interest list, but I'd
rather not subscribe when all I need is one quick pointer, so I am hoping
someone on this list can get me started.

I'm having quite a bit of difficulty working with stored procedures in my
classes and servlets.  The database is MS SQL Server 2000.  I've read every
single doc I can find, both at Sun, through Google, and even through the
driver vendor's documentation.  I even scammed some code from a JDBC 3.0
book (the only one I could find) at Border's, with still no luck.

Can anyone point me to a resource that explains how to setup stored
procedures in a CallableStatement correctly?  I understand about
registering
the output parameters and setting the input types, and I understand that
the
parameters in a CallableStatement are num

Tomcat 3.2.x version differences

2002-08-19 Thread Michael finney

Hello.

At http://jakarta.apache.org/tomcat/index.html, I was
looking at the following: 

"The 3.2.1 release, like 3.1.1, was a security patch.
Version 3.2.2 fixed a large number of bugs and all
known specification compliance issues. Version 3.2.3
was a security update that closes a serious security
hole. Version 3.2.4 is a minor bug fix release." 

In a nutshell, 3.2.1 is not available at
http://jakarta.apache.org/site/binindex.html 3.2.4 is.


1) Are the Windows binaries of 3.2.1 available
somewhere? 

2) Is there a document which spells out the
differences between 3.2.1 and 3.2.4 ?

Thank you, 
Michael 


=
Michael Finney
719-572-1577 (H)
Sun Certified Programmer for the Java 2 Platform
Sun Certified Developer for the Java 2 Platform
Sun Certified Web Component Developer for J2EE Platform 
Co-founder of PPJDG - http://www.ppjdg.org
Co-founder of cosAgile - Colorado Springs XP Users Group - 
http://www.yahoogroups.com/group/cosAgile

__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




RE: Cannot get Apache 1.3.26, Tomcat 3.3a to play nice via mod_jk.dll on Win2k

2002-08-19 Thread Turner, John


One thing I would change right off the bat is using spaces in the pathname,
double quotes or not.  Yes, the Apache installer puts things there, but the
Apache installer doesn't know that you are going to be using mod_jk and
tomcat.  I've had fewer problems ever since I moved things to places like
c:\tomcat or c:\apache on my development workstation.

Also, the file "mod_jk.conf" is generated by tomcat only if there are
Listener directives in server.xml (and I'm not even sure 3.3 does it,
perhaps it does).  Are those directives in place?

In addition, as far as I know, the correct path for an auto-generated
mod_jk.conf file is $CATALINA_HOME/conf/auto, not $CATALINA_HOME/conf/jk,
though again, I'm using Tomcat 4 on RH 7.2 with apache on my server.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Matt Partain [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 2:02 PM
To: Jakarta Users List
Subject: Cannot get Apache 1.3.26, Tomcat 3.3a to play nice via
mod_jk.dll on Win2k


Per all the instructions I could find, I brought down the Apache and Tomcat
services.  I have ensured that TOMCAT_HOME and JAVA_HOME (JDK 1.3) are both
defined on my system and put the dll in Apache's "modules" folder, per the
instructions.  Added the following line to httpd.conf:

Include "C:/Program Files/Apache Group/Tomcat 3.3a/conf/jk/mod_jk.conf"

Tried it with and without the quotation marks- apache doesn't seem to like
it.  When I try to bring up the service, it dies immediately, leaving no
errors, until I comment out that line.  I also tried including the
mod_jk.conf contents in httpd.conf, skipping the include directive
altogether, with the same results (same crash).  Here are my mod_jk.conf
contents:

LoadModule jk_module modules/mod_jk.dll



JkWorkersFile C:/Program Files/Apache Group/Tomcat
3.3a/conf/jk/workers.properties
JkLogFile  logs/jk.log
JkLogLevel error
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12
JkMount /examples/* ajp12



So what do you think I might have done wrong?  Thanks in advance for your
help!

Matt Partain
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Can't get tomcat 4 + mod_jk + apache to work

2002-08-19 Thread Sullivan, Mark E

what do your JkMount statements look like in the
/usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf file?

> -Original Message-
> From: Scott Adamson [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 10:57 AM
> To: Tomcat Users List
> Subject: Can't get tomcat 4 + mod_jk + apache to work
> 
> 
> 
> I have been trying for the last week to get Apache + mod_jk + 
> Tomcat 4 to
> work.
> I have confirmed that Tomcat works on 8080, confirmed that Apache is
> running.
> 
> My configuration is as follows :
> 
> OS -
> Redhat Linux 6.2
> 
> Java -
> JAVA_HOME="/usr/java/jdk1.3"
> Installed via RPM
> 
> Tomcat -
> Installed binary distribution of jakarta 4.0.4 at
> /usr/local/jakarta-tomcat-4.0.4
> Created jakarta-tomcat-4.0.4/conf/jk/workers.properties 
> as follows :
> 
> workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
> workers.java_home=/usr/java/jdk1.3
> ps=/
> worker.list=ajp12, ajp13
> worker.ajp13.port=8009
> worker.ajp13.host=toecutter
> worker.ajp13.type=ajp13
> 
> Modified jakarta-tomcat-4.0.4/conf/server.xml as follows : (see
> attached)
> 
> 
>#added line   className="org.apache.ajp.tomcat4.config.ApacheConfig"
> modJk="/usr/local/apache2/libexec/mod_jk-3.3-ap13-noeapi.so" />
> 
> and
> 
>unpackWARs="true">
> #added lineclassName="org.apache.ajp.tomcat4.config.ApacheConfig" append="true"
> forwardAll="false" />
> 
> Apache -
> Compiled Apache1.3.19 with the following config -
> ./configure --prefix=/usr/local/apache2 --enable-module=so
> Added the following to httpd.conf (see attached)
> Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf
> 
> mod_jk -
> Added the binary mod_jk-3.3-ap13-noeapi.so to 
> /usr/local/apache2/libexec
> 
> 
> /apache2/logs/error_log contains the following :
> 
> [Tue Aug 20 02:08:20 2002] [error] [client 192.168.0.7] File 
> does not exist:
> /usr/local/apache2/htdocs/examples/
> 
> indicating that it isn't even trying to redirect and looks 
> for /examples
> under /apache2/htdocs
> Can someone please help me (thanks to those who have already 
> tried), can
> someone see a problem with my configuration ?
> 
> 
> 
> Scott Adamson
> Systems Administrator
> Syware Technology
> 
> [EMAIL PROTECTED]
> http://upe.com.au
> 
> 
> 

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




RE: Design question

2002-08-19 Thread Reynir Hübner

I think, if you want to have a real domain authentication (automatically 
authenticating users) you will have to use NTLM. 
Btw, one thing I forgot to mention before, NTLM is I think only supported in Internet 
Explorer (verisons 5.0 + ). 

But in my earlyer respond to this matter, the problem is you can not authenticate 
against remote server (from a server) with out getting the credidentals from the user. 
It might be possible to forward something, like an Authenticated flag or the String 
resulting from the handshake, I dont know if it will work.

I am not sure you can get the username/password/domain combo all out of the ADSI (can 
you get passwords ?).


-reynir.net

> -Original Message-
> From: Durham David Cntr 805CSS/SCBE 
> [mailto:[EMAIL PROTECTED]]
> Sent: 19. ágúst 2002 17:52
> To: Tomcat Users List
> Subject: RE: Design question
> 
> 
> Another option might be to use LDAP to query a windows active 
> directory, if you're using that.  This would provide a way 
> for you to deal with a users permissions within your app.  I 
> haven't done this, and don't ever want to, but I think it's doable.
> 
> -Dave
> 
> > -Original Message-
> > From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, August 19, 2002 12:29 PM
> > To: Tomcat Users List
> > Subject: RE: Design question
> > 
> > 
> > Hi, 
> > 
> >For this problem I would say it would be best to use IIS 
> > and Tomcat combo Because IIS can authenticate users by using 
> > NTLM authentication scheme. This means that users with in 
> > your domain can be automatically authenticated (by using 
> > Windows Intergrated Authenticaton in IIS). 
> > 
> >There are several ways to upload files to a server, one is 
> > by using MultiPart Requests (Method POST). All you need is a 
> > MultiPartRequestParser and then you can parse the files from 
> > the  request and do what ever you like with em, such  as 
> > upload the files to a remote server.  If you need to use NTLM 
> > authorisation for this It can get little bit complicated. In 
> > theory you should be able to do it anyway, but not with  out 
> > the user giving out his username/password/domain combination, 
> > to authenticate against the remote server. Then for step 2 
> > (downloading files from a remote server authenticated with 
> > NTLM) you could write a servlet that acts similar to a proxy. 
> > 
> >This could be achived by using the 
> > http://www.innovation.ch/java/HTTPClient/
> >along with 
> > http://www.innovation.ch/java/ntlm.html
> >and last but not least 
> > http://www.luigidragone.com/networking/ntlm.html  
> > 
> > hope it helps
> > [EMAIL PROTECTED]
> > 
> > 
> >  
> >
> > 
> > 
> > 
> > 
> > > -Original Message-
> > > From: Raju Lokhande [mailto:[EMAIL PROTECTED]]
> > > Sent: 19. ágúst 2002 17:01
> > > To:  > > Subject: Design question
> > > 
> > > 
> > > Greetings everybody,
> > >  I am doing some research on possibility of using Tomcat to 
> > > do a project. General requirements as follows
> > > 1. A user will login to the web application and upload a file 
> > > to a remote server. He or she can only access his or her 
> > > WIN2K/NT domain to upload this file.
> > > 2. User will download a file or a number of files from the 
> > > remote server - again from his or her domain.
> > > I was told that I can do this job using Java Servlet and IBM 
> > > Websphere or BEA Weblogic.
> > > I am not sure if this is possible in Tomcat. Has anybody done 
> > > similar work using Tomcat. Can you share your experiences please?
> > > Thanks
> > > Raju Lokhande
> > > 
> > > 
> > > 
> > > **
> > > ***
> > > This message, together with any attachments, is intended only
> > > for the use of the individual or entity to which it is 
> addressed. It
> > > may contain information that is confidential and prohibited from
> > > disclosure.  If you are not the intended recipient, you are
> > > hereby notified that any dissemination or copying of this
> > > message or any attachment is strictly prohibited. If you have
> > > received this message in error, please notify the original sender
> > > immediately by telephone or by return e-mail and delete this
> > > message along with any attachments, from your computer.
> > > Thank you.
> > > **
> > > ***
> > > 
> > > 
> > > --
> > > 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: 
> 
> 
> 

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

RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-19 Thread Wagoner, Mark

I don't know if it is possible in your case, but have you tried changing the
parameter types within the stored procedure to something simple, like all
strings?  I always just try to get SOMETHING to work, then go from there.
;o)

I think I recall Oracle having problems with booleans a while back so I
reverted to integers (1 and 0).  Maybe this is actually a JDBC thing, in
which case you may be experiencing the same issue.

>From the little bit of DB/2 work I have done I know IBM's error messages
will lead you to believe the number of parameters do not match, when in fact
the problem is the parameter types.  Again, just something to test.


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 12:53 PM
To: 'Tomcat Users List'
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?



Right.  My setup looks like this:

cstmt = sConn.prepareCall("{? = call
sp_validate_pwd(?,?,?,?,?,?,?,?,?,?)}");

Basically, there are 5 inputs (username, password, IP address, browser type,
and referer) and I'm supposed to get a return status back (bad or good) and
5 outputs: 3 booleans and 2 strings (isValid, isExceeded, isEnabled, name,
and title).

I've tried everything I can think of...only having 6 question marks, having
all 11, only using 5, etc. to no avail.  I enabled debug logging on the
driver, and I get messages that say "parameter my_parameter not registers as
output" or "not registered as input", even when they are, and regardless of
how I use the set*() and registerOutParameter() methods.  Very confusing.

I'd love to find a complete stored procedures How-To somewhere that
addresses complex stored procedures instead of the basic tutorials that do
simple math or just insert a row.

Thanks for the reply.

John

-Original Message-
From: Wagoner, Mark [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 12:31 PM
To: 'Tomcat Users List'
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?


When you say it returns a status, do you mean it is a function (I work
primarily with Oracle, so if this does not apply to MS I apologize)?

If so, you need to make the call something like:

CallableStatement stmt = conn.prepareCall("{call ? = proc(?,?, ... )}");


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 12:18 PM
To: '[EMAIL PROTECTED]'
Subject: OFF-TOPIC: Pointers to CallableStatement docs?



Hello -

I think there is a java-user list, or even a jdbc-interest list, but I'd
rather not subscribe when all I need is one quick pointer, so I am hoping
someone on this list can get me started.

I'm having quite a bit of difficulty working with stored procedures in my
classes and servlets.  The database is MS SQL Server 2000.  I've read every
single doc I can find, both at Sun, through Google, and even through the
driver vendor's documentation.  I even scammed some code from a JDBC 3.0
book (the only one I could find) at Border's, with still no luck.

Can anyone point me to a resource that explains how to setup stored
procedures in a CallableStatement correctly?  I understand about registering
the output parameters and setting the input types, and I understand that the
parameters in a CallableStatement are numbered from left to right starting
at 1.  I've seen the examples at Sun, etc. but they're not much help.

The problem is that all of the examples I can find deal with very simple,
very rudimentary stored procedures, like finding the average of two numbers,
or whatever.  Our stored procedures are more involved than that.

Example:  a stored procedure used to validate logins.  It has 5 input
parameters, and 5 output parameters.  It returns a status.  According to the
docs I have read so far, that means I should have a CallableStatement with
11 question marks ("?") in it (5 + 5 + 1 = 11).  but that doesn't work, and
I have tried every combination of inputs, outputs, input/outputs, etc. that
I can think of, to no avail.

Any help or pointers to resources that explain stored procedures and
CallableStatements in more in-depth fashion would be greatly appreciated.

- John


John Turner
[EMAIL PROTECTED] | 248-488-3466
Advertising Audit Service
http://www.aas.com


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


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




Cannot get Apache 1.3.26, Tomcat 3.3a to play nice via mod_jk.dll on Win2k

2002-08-19 Thread Matt Partain

Per all the instructions I could find, I brought down the Apache and Tomcat
services.  I have ensured that TOMCAT_HOME and JAVA_HOME (JDK 1.3) are both
defined on my system and put the dll in Apache's "modules" folder, per the
instructions.  Added the following line to httpd.conf:

Include "C:/Program Files/Apache Group/Tomcat 3.3a/conf/jk/mod_jk.conf"

Tried it with and without the quotation marks- apache doesn't seem to like
it.  When I try to bring up the service, it dies immediately, leaving no
errors, until I comment out that line.  I also tried including the
mod_jk.conf contents in httpd.conf, skipping the include directive
altogether, with the same results (same crash).  Here are my mod_jk.conf
contents:

LoadModule jk_module modules/mod_jk.dll



JkWorkersFile C:/Program Files/Apache Group/Tomcat
3.3a/conf/jk/workers.properties
JkLogFile  logs/jk.log
JkLogLevel error
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12
JkMount /examples/* ajp12



So what do you think I might have done wrong?  Thanks in advance for your
help!

Matt Partain
[EMAIL PROTECTED]


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




RE: Design question

2002-08-19 Thread Mike Jackson

What I've found is that it's best to have a one time use token.  It makes it
pretty hard to hack since I save the token (and check for reuse).  But that
means you have some additional overhead on the "main" system 'cause you'll
need to generate a new token for each request that's serviced by the other
systems.  In my world that's not an issue 'cause I only have one other
machine and 'cause I don't have to generate the token, only decrypt and
valid it.  That and each request is a single transaction.

But you may have issues with printing, if you only allow the token to be
used once then when they (the users) hit print in their web browser it will
want to re-download the images and sometimes the page.  For me that's not an
issue 'cause the design document specifies one and only one access per
token, but you may have issues there.  If your application is anything like
mine then that really could be an issue (mine it's the pictures that are
important, not the text on the page), so make sure that everyone signs off
of on the design document prior to implementation.

If your application is all java based (mine isn't) then you could pass
around
a serialized java object, assuming it's not to big.  It'd probably be easier
to use a nice short token however.


--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 10:45 AM
> To: 'Tomcat Users List'
> Subject: RE: Design question
>
>
> That's exactly what I was thinking, for every page request, set a really
> simple 'digested' token of the user's id and the id of the resource the
> link allows.  The receiving servlet on another server peels apart the
> token based on the hour time span the token was valid.
>
> But cool, other people are doing the same thing :-)  I just don't want
> people to start calling up requests to the second server just by walking
> through id's.
>
> -Jacob
>
> | -Original Message-
> | From: Mike Jackson [mailto:[EMAIL PROTECTED]]
> | Sent: Monday, August 19, 2002 12:17 PM
> | To: Tomcat Users List
> | Subject: RE: Design question
> |
> | An encrypted token is one way of doing it.  We have a system where one
> | system
> | validates the user and then it redirects the user to another site
> passing
> | an
> | encrypted token (containing amoungst other things a timestamp to allow
> | only
> | a short "window" of opportunity for the token to be used) as a
> parameter.
> |
> | --mikej
> | -=-
> | mike jackson
> | [EMAIL PROTECTED]
> |
> | > -Original Message-
> | > From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
> | > Sent: Monday, August 19, 2002 10:09 AM
> | > To: 'Tomcat Users List'
> | > Subject: RE: Design question
> | >
> | >
> | > I'm trying to accomplish the same thing--
> | >
> | > How do you authenticate on Server A, then have that principal carry
> over
> | > to Servers B and C for download authorization?
> | >
> | > Thanks!
> | > -Jacob
> | >
> | > | -Original Message-
> | > | From: Luminous Heart [mailto:[EMAIL PROTECTED]]
> | > | Sent: Monday, August 19, 2002 12:06 PM
> | > | To: Tomcat Users List
> | > | Subject: Re: Design question
> | > |
> | > | Yes Raju,
> | > | It should be doable. You can download TC latest and
> | > | hack some code. If you want to use some readily
> | > | availabe to help in the process, take a look at the
> | > | Tag libs available on Jakarta. Also there are a few
> | > | File Upload beans floating around the net, go to
> | > | google and type JSP File Upload Bean and see what you
> | > | will get.
> | > |
> | > | I have a couple of applications where a user will
> | > | upload files to a remote server after authenticating.
> | > |
> | > | regards.
> | > |
> | > | --- Raju Lokhande <[EMAIL PROTECTED]> wrote:
> | > | > Greetings everybody,
> | > | >  I am doing some research on possibility of using
> | > | > Tomcat to do a project. General requirements as
> | > | > follows
> | > | > 1. A user will login to the web application and
> | > | > upload a file to a remote server. He or she can only
> | > | > access his or her WIN2K/NT domain to upload this
> | > | > file.
> | > | > 2. User will download a file or a number of files
> | > | > from the remote server - again from his or her
> | > | > domain.
> | > | > I was told that I can do this job using Java Servlet
> | > | > and IBM Websphere or BEA Weblogic.
> | > | > I am not sure if this is possible in Tomcat. Has
> | > | > anybody done similar work using Tomcat. Can you
> | > | > share your experiences please?
> | > | > Thanks
> | > | > Raju Lokhande
> | > | >
> | > | >
> | > | >
> | > | >
> | > |
> | >
> 
> | > *
> | > | > This message, together with any attachments, is
> | > | > intended only
> | > | > for the use of the individual or entity to which it
> | > | > is addressed. It
> | > | > may contain information that is confidential and
> | > | > prohibited from

RE: pleeeese...

2002-08-19 Thread Turner, John


It most certainly is...as I posted in reply to you earlier this morning.  I
just checked the tomcat 4.0.4 binary tar file, and there is no  DBCP jar
file in it.  Tyrex is in there, but as far as I know it's not usable.

To repeat:

Documentation for Jakarta DBCP (including the links for downloading):
http://jakarta.apache.org/commons/dbcp.html

Archived post explaining how to make it work:
http://marc.theaimsgroup.com/?l=tomcat-user&m=102225547106556&w=2

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 1:55 PM
To: Tomcat Users List
Subject: RE: plse...


  I'm using Tomcat 4.0.4... DBCP isn't a separate download, is it??
  
On Mon, 2002-08-19 at 14:43, Turner, John wrote:
> 
> Just curious...which DBCP did you install?  The release version or the
> nightly?
> 
> John Turner
> 
> 
> -Original Message-
> From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 1:25 PM
> To: Tomcat Users List
> Subject: Re: plse...
> 
> 
>   Calm down man... actually I already posted my server.xml file here...
>   But here is it again. I continue to get error "org.hsql.jdbcDriver"
> not found.
> 
> 
> 
> On Mon, 2002-08-19 at 14:18, Peter T. Abplanalp wrote:
> > On Mon, Aug 19, 2002 at 02:18:04PM -0300, Felipe Schnack wrote:
> > >   Anyone here can help me with my connectionpool (tomcat4+pgsql)
> > > problem? I'm stuck!
> > 
> > you're kidding, right?  how is anyone supposed to help you based on
> > the information you've given?  what is the error you are getting?
> > where are you getting it from?  are you using connection pooling?  if
> > so, which implementation?  etc. etc. etc.
> > 
> > -- 
> > Peter Abplanalp
> > 
> > Email:   [EMAIL PROTECTED]
> > PGP: pgp.mit.edu
> -- 
> 
> Felipe Schnack
> Analista de Sistemas
> [EMAIL PROTECTED]
> Cel.: (51)91287530
> Linux Counter #281893
> 
> Faculdade Ritter dos Reis
> www.ritterdosreis.br
> [EMAIL PROTECTED]
> Fone/Fax.: (51)32303328
> 
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

> 
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Tomcat 3.3 does not find jndi.properties

2002-08-19 Thread Larry Isaacs

If possible, give Tomcat 3.3.2-dev from:



a try to see if the fix for Bugzilla #7654 corrects this problem.

See: 

Cheers,
Larry

> -Original Message-
> From: Olaf Jahn [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, August 19, 2002 12:42 PM
> To: 'Tomcat Users List'
> Subject: Tomcat 3.3 does not find jndi.properties
> 
> 
> Hi,
> 
> my Tomcat 3.3a does not find the jndi.properties file regardless of
> where I put it inside the web application tree.  That is, I tried the
> web app root as well as WEB-INF/lib and WEB-INF/classes.
> 
> Only if I place it directly into jre/lib the file is found, which of
> course is not really an option for a modular application.
> 
> Does anyone know any help or maybe a workaround?
> 
> A little research yielded only that this symptom was encoutered with
> Tomcat 3.2.x, being a bug in the AdaptiveClassLoader -- which does not
> seem to exist any more as of Tomcat 3.3 it seems.
> 
> Olaf
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

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




RE: Design question

2002-08-19 Thread Durham David Cntr 805CSS/SCBE

Another option might be to use LDAP to query a windows active directory, if you're 
using that.  This would provide a way for you to deal with a users permissions within 
your app.  I haven't done this, and don't ever want to, but I think it's doable.

-Dave

> -Original Message-
> From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 12:29 PM
> To: Tomcat Users List
> Subject: RE: Design question
> 
> 
> Hi, 
> 
>For this problem I would say it would be best to use IIS 
> and Tomcat combo Because IIS can authenticate users by using 
> NTLM authentication scheme. This means that users with in 
> your domain can be automatically authenticated (by using 
> Windows Intergrated Authenticaton in IIS). 
> 
>There are several ways to upload files to a server, one is 
> by using MultiPart Requests (Method POST). All you need is a 
> MultiPartRequestParser and then you can parse the files from 
> the  request and do what ever you like with em, such  as 
> upload the files to a remote server.  If you need to use NTLM 
> authorisation for this It can get little bit complicated. In 
> theory you should be able to do it anyway, but not with  out 
> the user giving out his username/password/domain combination, 
> to authenticate against the remote server. Then for step 2 
> (downloading files from a remote server authenticated with 
> NTLM) you could write a servlet that acts similar to a proxy. 
> 
>This could be achived by using the 
> http://www.innovation.ch/java/HTTPClient/
>along with 
> http://www.innovation.ch/java/ntlm.html
>and last but not least 
> http://www.luigidragone.com/networking/ntlm.html  
> 
> hope it helps
> [EMAIL PROTECTED]
> 
> 
>  
>
> 
> 
> 
> 
> > -Original Message-
> > From: Raju Lokhande [mailto:[EMAIL PROTECTED]]
> > Sent: 19. ágúst 2002 17:01
> > To:  > Subject: Design question
> > 
> > 
> > Greetings everybody,
> >  I am doing some research on possibility of using Tomcat to 
> > do a project. General requirements as follows
> > 1. A user will login to the web application and upload a file 
> > to a remote server. He or she can only access his or her 
> > WIN2K/NT domain to upload this file.
> > 2. User will download a file or a number of files from the 
> > remote server - again from his or her domain.
> > I was told that I can do this job using Java Servlet and IBM 
> > Websphere or BEA Weblogic.
> > I am not sure if this is possible in Tomcat. Has anybody done 
> > similar work using Tomcat. Can you share your experiences please?
> > Thanks
> > Raju Lokhande
> > 
> > 
> > 
> > **
> > ***
> > This message, together with any attachments, is intended only
> > for the use of the individual or entity to which it is addressed. It
> > may contain information that is confidential and prohibited from
> > disclosure.  If you are not the intended recipient, you are
> > hereby notified that any dissemination or copying of this
> > message or any attachment is strictly prohibited. If you have
> > received this message in error, please notify the original sender
> > immediately by telephone or by return e-mail and delete this
> > message along with any attachments, from your computer.
> > Thank you.
> > **
> > ***
> > 
> > 
> > --
> > 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: pleeeese...

2002-08-19 Thread Felipe Schnack

  I'm using Tomcat 4.0.4... DBCP isn't a separate download, is it??
  
On Mon, 2002-08-19 at 14:43, Turner, John wrote:
> 
> Just curious...which DBCP did you install?  The release version or the
> nightly?
> 
> John Turner
> 
> 
> -Original Message-
> From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 1:25 PM
> To: Tomcat Users List
> Subject: Re: plse...
> 
> 
>   Calm down man... actually I already posted my server.xml file here...
>   But here is it again. I continue to get error "org.hsql.jdbcDriver"
> not found.
> 
> 
> 
> On Mon, 2002-08-19 at 14:18, Peter T. Abplanalp wrote:
> > On Mon, Aug 19, 2002 at 02:18:04PM -0300, Felipe Schnack wrote:
> > >   Anyone here can help me with my connectionpool (tomcat4+pgsql)
> > > problem? I'm stuck!
> > 
> > you're kidding, right?  how is anyone supposed to help you based on
> > the information you've given?  what is the error you are getting?
> > where are you getting it from?  are you using connection pooling?  if
> > so, which implementation?  etc. etc. etc.
> > 
> > -- 
> > Peter Abplanalp
> > 
> > Email:   [EMAIL PROTECTED]
> > PGP: pgp.mit.edu
> -- 
> 
> Felipe Schnack
> Analista de Sistemas
> [EMAIL PROTECTED]
> Cel.: (51)91287530
> Linux Counter #281893
> 
> Faculdade Ritter dos Reis
> www.ritterdosreis.br
> [EMAIL PROTECTED]
> Fone/Fax.: (51)32303328
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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




RE: Design question

2002-08-19 Thread Jacob Hookom

That's exactly what I was thinking, for every page request, set a really
simple 'digested' token of the user's id and the id of the resource the
link allows.  The receiving servlet on another server peels apart the
token based on the hour time span the token was valid.

But cool, other people are doing the same thing :-)  I just don't want
people to start calling up requests to the second server just by walking
through id's.

-Jacob

| -Original Message-
| From: Mike Jackson [mailto:[EMAIL PROTECTED]]
| Sent: Monday, August 19, 2002 12:17 PM
| To: Tomcat Users List
| Subject: RE: Design question
| 
| An encrypted token is one way of doing it.  We have a system where one
| system
| validates the user and then it redirects the user to another site
passing
| an
| encrypted token (containing amoungst other things a timestamp to allow
| only
| a short "window" of opportunity for the token to be used) as a
parameter.
| 
| --mikej
| -=-
| mike jackson
| [EMAIL PROTECTED]
| 
| > -Original Message-
| > From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
| > Sent: Monday, August 19, 2002 10:09 AM
| > To: 'Tomcat Users List'
| > Subject: RE: Design question
| >
| >
| > I'm trying to accomplish the same thing--
| >
| > How do you authenticate on Server A, then have that principal carry
over
| > to Servers B and C for download authorization?
| >
| > Thanks!
| > -Jacob
| >
| > | -Original Message-
| > | From: Luminous Heart [mailto:[EMAIL PROTECTED]]
| > | Sent: Monday, August 19, 2002 12:06 PM
| > | To: Tomcat Users List
| > | Subject: Re: Design question
| > |
| > | Yes Raju,
| > | It should be doable. You can download TC latest and
| > | hack some code. If you want to use some readily
| > | availabe to help in the process, take a look at the
| > | Tag libs available on Jakarta. Also there are a few
| > | File Upload beans floating around the net, go to
| > | google and type JSP File Upload Bean and see what you
| > | will get.
| > |
| > | I have a couple of applications where a user will
| > | upload files to a remote server after authenticating.
| > |
| > | regards.
| > |
| > | --- Raju Lokhande <[EMAIL PROTECTED]> wrote:
| > | > Greetings everybody,
| > | >  I am doing some research on possibility of using
| > | > Tomcat to do a project. General requirements as
| > | > follows
| > | > 1. A user will login to the web application and
| > | > upload a file to a remote server. He or she can only
| > | > access his or her WIN2K/NT domain to upload this
| > | > file.
| > | > 2. User will download a file or a number of files
| > | > from the remote server - again from his or her
| > | > domain.
| > | > I was told that I can do this job using Java Servlet
| > | > and IBM Websphere or BEA Weblogic.
| > | > I am not sure if this is possible in Tomcat. Has
| > | > anybody done similar work using Tomcat. Can you
| > | > share your experiences please?
| > | > Thanks
| > | > Raju Lokhande
| > | >
| > | >
| > | >
| > | >
| > |
| >

| > *
| > | > This message, together with any attachments, is
| > | > intended only
| > | > for the use of the individual or entity to which it
| > | > is addressed. It
| > | > may contain information that is confidential and
| > | > prohibited from
| > | > disclosure.  If you are not the intended recipient,
| > | > you are
| > | > hereby notified that any dissemination or copying of
| > | > this
| > | > message or any attachment is strictly prohibited. If
| > | > you have
| > | > received this message in error, please notify the
| > | > original sender
| > | > immediately by telephone or by return e-mail and
| > | > delete this
| > | > message along with any attachments, from your
| > | > computer.
| > | > Thank you.
| > | >
| > |
| >

| > *
| > | >
| > | >
| > | > --
| > | > To unsubscribe, e-mail:
| > | > 
| > | > For additional commands, e-mail:
| > | > 
| > | >
| > |
| > |
| > | __
| > | Do You Yahoo!?
| > | HotJobs - Search Thousands of New Jobs
| > | http://www.hotjobs.com
| > |
| > | --
| > | To unsubscribe, e-mail:    | [EMAIL PROTECTED]>
| > | For additional commands, e-mail:  | [EMAIL PROTECTED]>
| > |
| > | ---
| > | Incoming mail is certified Virus Free.
| > | Checked by AVG anti-virus system (http://www.grisoft.com).
| > | Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
| > |
| >
| > ---
| > Outgoing mail is certified Virus Free.
| > Checked by AVG anti-virus system (http://www.grisoft.com).
| > Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
| >
| >
| >
| > --
| > To unsubscribe, e-mail:
| 
| For additional commands, e-mail:
| 
| 
| 
| 
| 
| --
| To unsubscribe, e-mail:   

RE: pleeeese...

2002-08-19 Thread Turner, John


Just curious...which DBCP did you install?  The release version or the
nightly?

John Turner


-Original Message-
From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 1:25 PM
To: Tomcat Users List
Subject: Re: plse...


  Calm down man... actually I already posted my server.xml file here...
  But here is it again. I continue to get error "org.hsql.jdbcDriver"
not found.



On Mon, 2002-08-19 at 14:18, Peter T. Abplanalp wrote:
> On Mon, Aug 19, 2002 at 02:18:04PM -0300, Felipe Schnack wrote:
> >   Anyone here can help me with my connectionpool (tomcat4+pgsql)
> > problem? I'm stuck!
> 
> you're kidding, right?  how is anyone supposed to help you based on
> the information you've given?  what is the error you are getting?
> where are you getting it from?  are you using connection pooling?  if
> so, which implementation?  etc. etc. etc.
> 
> -- 
> Peter Abplanalp
> 
> Email:   [EMAIL PROTECTED]
> PGP: pgp.mit.edu
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328

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




RE: Design question

2002-08-19 Thread Reynir Hübner

Hi, 

   For this problem I would say it would be best to use IIS and Tomcat combo Because 
IIS can authenticate users by using NTLM authentication scheme. This means that users 
with in your domain can be automatically authenticated (by using Windows Intergrated 
Authenticaton in IIS). 

   There are several ways to upload files to a server, one is by using MultiPart 
Requests (Method POST). All you need is a MultiPartRequestParser and then you can 
parse the files from the  request and do what ever you like with em, such  as upload 
the files to a remote server.  If you need to use NTLM authorisation for this It can 
get little bit complicated. In theory you should be able to do it anyway, but not with 
 out the user giving out his username/password/domain combination, to authenticate 
against the remote server. Then for step 2 (downloading files from a remote server 
authenticated with NTLM) you could write a servlet that acts similar to a proxy. 

   This could be achived by using the 
http://www.innovation.ch/java/HTTPClient/
   along with 
http://www.innovation.ch/java/ntlm.html
   and last but not least 
http://www.luigidragone.com/networking/ntlm.html  

hope it helps
[EMAIL PROTECTED]


 
   




> -Original Message-
> From: Raju Lokhande [mailto:[EMAIL PROTECTED]]
> Sent: 19. ágúst 2002 17:01
> To:  Subject: Design question
> 
> 
> Greetings everybody,
>  I am doing some research on possibility of using Tomcat to 
> do a project. General requirements as follows
> 1. A user will login to the web application and upload a file 
> to a remote server. He or she can only access his or her 
> WIN2K/NT domain to upload this file.
> 2. User will download a file or a number of files from the 
> remote server - again from his or her domain.
> I was told that I can do this job using Java Servlet and IBM 
> Websphere or BEA Weblogic.
> I am not sure if this is possible in Tomcat. Has anybody done 
> similar work using Tomcat. Can you share your experiences please?
> Thanks
> Raju Lokhande
> 
> 
> 
> **
> ***
> This message, together with any attachments, is intended only
> for the use of the individual or entity to which it is addressed. It
> may contain information that is confidential and prohibited from
> disclosure.  If you are not the intended recipient, you are
> hereby notified that any dissemination or copying of this
> message or any attachment is strictly prohibited. If you have
> received this message in error, please notify the original sender
> immediately by telephone or by return e-mail and delete this
> message along with any attachments, from your computer.
> Thank you.
> **
> ***
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




RE: Design question

2002-08-19 Thread Mike Jackson

The token is the validation.  It's a way of passing around that the user has
been validated.  Consider it to be a relay race, there's a baton that you're
passing around.  If you have the baton than you're a valid runner in the
race.
A security "token" is like the baton, if your user can present the token,
and it's valid then they're ok to deal with.

This of course has some issues, but it's one way of doing it.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Louis Voo [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 10:26 AM
> To: Tomcat Users List
> Subject: Re: Design question
>
>
> Can you tell me after validate how you redirect to another site?
>
> Louis
> - Original Message -
> From: "Mike Jackson" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, August 19, 2002 6:17 PM
> Subject: RE: Design question
>
>
> > An encrypted token is one way of doing it.  We have a system where one
> > system
> > validates the user and then it redirects the user to another
> site passing
> an
> > encrypted token (containing amoungst other things a timestamp to allow
> only
> > a short "window" of opportunity for the token to be used) as a
> parameter.
> >
> > --mikej
> > -=-
> > mike jackson
> > [EMAIL PROTECTED]
> >
> > > -Original Message-
> > > From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, August 19, 2002 10:09 AM
> > > To: 'Tomcat Users List'
> > > Subject: RE: Design question
> > >
> > >
> > > I'm trying to accomplish the same thing--
> > >
> > > How do you authenticate on Server A, then have that principal
> carry over
> > > to Servers B and C for download authorization?
> > >
> > > Thanks!
> > > -Jacob
> > >
> > > | -Original Message-
> > > | From: Luminous Heart [mailto:[EMAIL PROTECTED]]
> > > | Sent: Monday, August 19, 2002 12:06 PM
> > > | To: Tomcat Users List
> > > | Subject: Re: Design question
> > > |
> > > | Yes Raju,
> > > | It should be doable. You can download TC latest and
> > > | hack some code. If you want to use some readily
> > > | availabe to help in the process, take a look at the
> > > | Tag libs available on Jakarta. Also there are a few
> > > | File Upload beans floating around the net, go to
> > > | google and type JSP File Upload Bean and see what you
> > > | will get.
> > > |
> > > | I have a couple of applications where a user will
> > > | upload files to a remote server after authenticating.
> > > |
> > > | regards.
> > > |
> > > | --- Raju Lokhande <[EMAIL PROTECTED]> wrote:
> > > | > Greetings everybody,
> > > | >  I am doing some research on possibility of using
> > > | > Tomcat to do a project. General requirements as
> > > | > follows
> > > | > 1. A user will login to the web application and
> > > | > upload a file to a remote server. He or she can only
> > > | > access his or her WIN2K/NT domain to upload this
> > > | > file.
> > > | > 2. User will download a file or a number of files
> > > | > from the remote server - again from his or her
> > > | > domain.
> > > | > I was told that I can do this job using Java Servlet
> > > | > and IBM Websphere or BEA Weblogic.
> > > | > I am not sure if this is possible in Tomcat. Has
> > > | > anybody done similar work using Tomcat. Can you
> > > | > share your experiences please?
> > > | > Thanks
> > > | > Raju Lokhande
> > > | >
> > > | >
> > > | >
> > > | >
> > > |
> > >
> 
> > > *
> > > | > This message, together with any attachments, is
> > > | > intended only
> > > | > for the use of the individual or entity to which it
> > > | > is addressed. It
> > > | > may contain information that is confidential and
> > > | > prohibited from
> > > | > disclosure.  If you are not the intended recipient,
> > > | > you are
> > > | > hereby notified that any dissemination or copying of
> > > | > this
> > > | > message or any attachment is strictly prohibited. If
> > > | > you have
> > > | > received this message in error, please notify the
> > > | > original sender
> > > | > immediately by telephone or by return e-mail and
> > > | > delete this
> > > | > message along with any attachments, from your
> > > | > computer.
> > > | > Thank you.
> > > | >
> > > |
> > >
> 
> > > *
> > > | >
> > > | >
> > > | > --
> > > | > To unsubscribe, e-mail:
> > > | > 
> > > | > For additional commands, e-mail:
> > > | > 
> > > | >
> > > |
> > > |
> > > | __
> > > | Do You Yahoo!?
> > > | HotJobs - Search Thousands of New Jobs
> > > | http://www.hotjobs.com
> > > |
> > > | --
> > > | To unsubscribe, e-mail:    > > | [EMAIL PROTECTED]>
> > > | For additional commands, e-mail:  > > | [EMAIL PROTECTED]>
> > > |
> > > | ---
> > > | Incoming mail is certified Virus Fr

Re: Tomcat 4.0.4: Unnecessary $TOMCAT/temp/ directory?

2002-08-19 Thread Eddie Ruvinsky

Thanks for your feedback, Craig and Glenn.

Craig, I think you're confusing $CATALINA_BASE/temp/
with $CATALINA_BASE/work/.  StandardContext implements
the temporary working directory for each context (per
the servlet spec) in postWorkDirectory().  It creates
a separate temp space per context within the "work"
subdirectory.

That said, how does "$CATALINA_BASE/temp/" fit into
the picture?  I can understand the benefit of
overriding the java.io.tmpdir system property is to
forcing a separate temp path for the Tomcat JVM
process as a whole (note: not the per-context work/
directory), which would isolate the temporary files
generated/accessed in the process from the rest of the
temp files in the file system.  Is there any other
reason specific to Tomcat?  (As an aside, if you are
truly concerned about security and run Tomcat with a
Java2 security policy, you probably wouldn't want to
give any file permissions to webapps outside their
respective docbase root and work directory anyway.)

Thanks,
-Eddie

--- "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:
> 
> 
> On Sun, 18 Aug 2002, Eddie Ruvinsky wrote:
> 
> > Date: Sun, 18 Aug 2002 17:52:18 -0700 (PDT)
> > From: Eddie Ruvinsky <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List
> <[EMAIL PROTECTED]>
> > To: Tomcat Users List
> <[EMAIL PROTECTED]>
> > Subject: Re: Tomcat 4.0.4: Unnecessary
> $TOMCAT/temp/ directory?
> >
> > Thanks Glenn.  The following Java API link has a
> quick
> > blurb about the java.io.tmpdir system property:
> >
> >
>
http://java.sun.com/j2se/1.3/docs/api/java/io/File.html#createTempFile(java.lang.String,
> > java.lang.String, java.io.File)
> >
> > The JDK sets the default value for this property
> to be
> > /tmp on Unix and c:\temp on Windows.  So, it does
> not
> > seem necessary to override the default value of
> > java.io.tmpdir when starting Tomcat.
> >
> > My follow-up question then is, why is this done? 
> Is
> > it to be able to create a separate "namespace" for
> > temp files generated by the Tomcat JVM process
> versus
> > the other temp files on the file system?
> >
> 
> The servlet spec requires that each web application
> receive a servlet
> context attribute named
> "javax.servlet.context.tempdir" that is a
> java.io.File object to a temporary storage
> directory.  It is therefore not
> reasonable to use the value specified by the
> "java.io.tmpdir" system
> property, because that is global to the entire JVM.
> 
> See section 3.7.1 of the Servlet 2.3 spec:
> 
>   http://java.sun.com/products/servlet/download.html
> 
> The $CATALINA_HOME/temp directory hierarchy is how
> Tomcat implements this
> spec requirement.  And you should be glad --
> otherwise the servlet
> generated for your "index.jsp" page (which is put in
> the per-context
> temporary directory under a name specified by the
> JSP apge compiler) would
> be stomped on by the servlet for some other webapp's
> "index.jsp" page.
> 
> > Thanks in advance,
> > Eddie
> >
> 
> Craig
> 
> 
> > --- Glenn Nielsen <[EMAIL PROTECTED]> wrote:
> > > Do not remove this temp directory.  This is the
> > > temporary
> > > directory configured in the Tomcat startup with
> > > -Djava.io.tmpdir.  This temp directory is used
> by
> > > the JVM
> > > for internal things like jar files, etc.
> > >
> > > Regards,
> > >
> > > Glenn
> > >
> > > Eddie Ruvinsky wrote:
> > > > I don't believe this is the case.  According
> to
> > > the
> > > > source, if the "workDir" attribute of
> StandardHost
> > > is
> > > > null (default case), the temp dir will be
> > > generated
> > > > inside $CATALINA_BASE/work/.  Otherwise, it
> will
> > > be
> > > > generated in the StandardHost's "workDir."
> > > >
> > > > I believe that it's unused and doesn't belong
> in
> > > the
> > > > Tomcat distribution.  Can someone confirm?
> > > >
> > > > -Eddie
> > > >
> > > > --- Mona Wong-Barnum <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > >>Hi Eddie:
> > > >>
> > > >>
> > > >>>When I unpacked the distribution of Tomcat
> 4.0.4,
> > > >>
> > > >>I
> > > >>
> > > >>>noticed an empty temp/ directory in the
> Tomcat
> > > >>
> > > >>root
> > > >>
> > > >>>directory.  I don't believe it gets used
> anywhere
> > > >>
> > > >>in
> > > >>
> > > >>>the code.  Should it be cleaned up?
> > > >>
> > > >>No leave it.  It will be used a temp
> directory in
> > > >>your servlet code
> > > >>(javax.servlet.context.tempdir)
> > > >>
> > > >>Cheers,
> > > >>
> > > >>Mona
> > > >>
> > > >>
> > > >
> > > >
> > >
> >
>
==
> > > >
> > > >>Mona Wong-Barnum
> > > >>National Center for Microscopy and Imaging
> > > Research
> > > >>University of California, San Diego
> > > >>http://ncmir.ucsd.edu/
> > > >>
> > > >>"The truth shall set you free, but first it
> will
> > > >>piss you off"
> > > >>A Landmark instructor
> >
> > __
> > Do You Yahoo!?
> > HotJobs - Search Thousands of New Jobs
> > 

Re: It would be great IF somebody answered me, ONCE, for change :(

2002-08-19 Thread Carrie Salazar

hey, can i get a copy of the debugger?  or do others have
any debugger suggestions?

tomcat error messages are pretty cryptic to me still, though
for the simple JSP work i do i get around it most of the time.
but perhaps a debugger will save me some hair pulling.
--
carrie s.

On Mon, Aug 19, 2002 at 09:53:02AM -0700, micael wrote:
> If you have a debugger, all you have to do is to follow the bouncing ball 
> and find the null reference.  That will be the fastest way to find this 
> problem.  It should not take long.  If you don't have a debugger, I will 
> send you one I made to use, and I like better than the standard debuggers.
> 
> At 08:49 AM 8/19/2002 -0700, you wrote:
> >I am sorry, but I did not get what you mean with
> >connection limit to be a hard limit, which one is
> >that?
> >
> >I am including a copy of my pool.xml if you care do
> >point out what should be changed.
> >
> >Thank you in advance.

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




Re: Design question

2002-08-19 Thread Louis Voo

Can you tell me after validate how you redirect to another site?

Louis
- Original Message -
From: "Mike Jackson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, August 19, 2002 6:17 PM
Subject: RE: Design question


> An encrypted token is one way of doing it.  We have a system where one
> system
> validates the user and then it redirects the user to another site passing
an
> encrypted token (containing amoungst other things a timestamp to allow
only
> a short "window" of opportunity for the token to be used) as a parameter.
>
> --mikej
> -=-
> mike jackson
> [EMAIL PROTECTED]
>
> > -Original Message-
> > From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, August 19, 2002 10:09 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Design question
> >
> >
> > I'm trying to accomplish the same thing--
> >
> > How do you authenticate on Server A, then have that principal carry over
> > to Servers B and C for download authorization?
> >
> > Thanks!
> > -Jacob
> >
> > | -Original Message-
> > | From: Luminous Heart [mailto:[EMAIL PROTECTED]]
> > | Sent: Monday, August 19, 2002 12:06 PM
> > | To: Tomcat Users List
> > | Subject: Re: Design question
> > |
> > | Yes Raju,
> > | It should be doable. You can download TC latest and
> > | hack some code. If you want to use some readily
> > | availabe to help in the process, take a look at the
> > | Tag libs available on Jakarta. Also there are a few
> > | File Upload beans floating around the net, go to
> > | google and type JSP File Upload Bean and see what you
> > | will get.
> > |
> > | I have a couple of applications where a user will
> > | upload files to a remote server after authenticating.
> > |
> > | regards.
> > |
> > | --- Raju Lokhande <[EMAIL PROTECTED]> wrote:
> > | > Greetings everybody,
> > | >  I am doing some research on possibility of using
> > | > Tomcat to do a project. General requirements as
> > | > follows
> > | > 1. A user will login to the web application and
> > | > upload a file to a remote server. He or she can only
> > | > access his or her WIN2K/NT domain to upload this
> > | > file.
> > | > 2. User will download a file or a number of files
> > | > from the remote server - again from his or her
> > | > domain.
> > | > I was told that I can do this job using Java Servlet
> > | > and IBM Websphere or BEA Weblogic.
> > | > I am not sure if this is possible in Tomcat. Has
> > | > anybody done similar work using Tomcat. Can you
> > | > share your experiences please?
> > | > Thanks
> > | > Raju Lokhande
> > | >
> > | >
> > | >
> > | >
> > |
> > 
> > *
> > | > This message, together with any attachments, is
> > | > intended only
> > | > for the use of the individual or entity to which it
> > | > is addressed. It
> > | > may contain information that is confidential and
> > | > prohibited from
> > | > disclosure.  If you are not the intended recipient,
> > | > you are
> > | > hereby notified that any dissemination or copying of
> > | > this
> > | > message or any attachment is strictly prohibited. If
> > | > you have
> > | > received this message in error, please notify the
> > | > original sender
> > | > immediately by telephone or by return e-mail and
> > | > delete this
> > | > message along with any attachments, from your
> > | > computer.
> > | > Thank you.
> > | >
> > |
> > 
> > *
> > | >
> > | >
> > | > --
> > | > To unsubscribe, e-mail:
> > | > 
> > | > For additional commands, e-mail:
> > | > 
> > | >
> > |
> > |
> > | __
> > | Do You Yahoo!?
> > | HotJobs - Search Thousands of New Jobs
> > | http://www.hotjobs.com
> > |
> > | --
> > | To unsubscribe, e-mail:    > | [EMAIL PROTECTED]>
> > | For additional commands, e-mail:  > | [EMAIL PROTECTED]>
> > |
> > | ---
> > | Incoming mail is certified Virus Free.
> > | Checked by AVG anti-virus system (http://www.grisoft.com).
> > | Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
> > |
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
> >
> >
> >
> > --
> > 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: pleeeese...

2002-08-19 Thread Felipe Schnack

  Calm down man... actually I already posted my server.xml file here...
  But here is it again. I continue to get error "org.hsql.jdbcDriver"
not found.



On Mon, 2002-08-19 at 14:18, Peter T. Abplanalp wrote:
> On Mon, Aug 19, 2002 at 02:18:04PM -0300, Felipe Schnack wrote:
> >   Anyone here can help me with my connectionpool (tomcat4+pgsql)
> > problem? I'm stuck!
> 
> you're kidding, right?  how is anyone supposed to help you based on
> the information you've given?  what is the error you are getting?
> where are you getting it from?  are you using connection pooling?  if
> so, which implementation?  etc. etc. etc.
> 
> -- 
> Peter Abplanalp
> 
> Email:   [EMAIL PROTECTED]
> PGP: pgp.mit.edu
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328



  




  
  
  



  


factoryorg.apache.commons.dbcp.BasicDataSourceFactory
maxActive100
maxIdle3
maxWait100
usernamepgsql
password
driverClassNameorg.postgresql.Driver
urljdbc:postgresql://jabba:5432/w2
  

  

  




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


RE: pleeeese...

2002-08-19 Thread Mike Jackson

What connection pool are you using?  I know poolman to some extent...

--mikej
-=-
mike jackson
[EMAIL PROTECTED] 

> -Original Message-
> From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 10:18 AM
> To: [EMAIL PROTECTED]
> Subject: plse...
> 
> 
>   Anyone here can help me with my connectionpool (tomcat4+pgsql)
> problem? I'm stuck!
> 
> -- 
> 
> Felipe Schnack
> Analista de Sistemas
> [EMAIL PROTECTED]
> Cel.: (51)91287530
> Linux Counter #281893
> 
> Faculdade Ritter dos Reis
> www.ritterdosreis.br
> [EMAIL PROTECTED]
> Fone/Fax.: (51)32303328
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 


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




Re: pleeeese...

2002-08-19 Thread Peter T. Abplanalp

On Mon, Aug 19, 2002 at 02:18:04PM -0300, Felipe Schnack wrote:
>   Anyone here can help me with my connectionpool (tomcat4+pgsql)
> problem? I'm stuck!

you're kidding, right?  how is anyone supposed to help you based on
the information you've given?  what is the error you are getting?
where are you getting it from?  are you using connection pooling?  if
so, which implementation?  etc. etc. etc.

-- 
Peter Abplanalp

Email:   [EMAIL PROTECTED]
PGP: pgp.mit.edu



msg63092/pgp0.pgp
Description: PGP signature


RE: Design question

2002-08-19 Thread Mike Jackson

An encrypted token is one way of doing it.  We have a system where one
system
validates the user and then it redirects the user to another site passing an
encrypted token (containing amoungst other things a timestamp to allow only
a short "window" of opportunity for the token to be used) as a parameter.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 10:09 AM
> To: 'Tomcat Users List'
> Subject: RE: Design question
>
>
> I'm trying to accomplish the same thing--
>
> How do you authenticate on Server A, then have that principal carry over
> to Servers B and C for download authorization?
>
> Thanks!
> -Jacob
>
> | -Original Message-
> | From: Luminous Heart [mailto:[EMAIL PROTECTED]]
> | Sent: Monday, August 19, 2002 12:06 PM
> | To: Tomcat Users List
> | Subject: Re: Design question
> |
> | Yes Raju,
> | It should be doable. You can download TC latest and
> | hack some code. If you want to use some readily
> | availabe to help in the process, take a look at the
> | Tag libs available on Jakarta. Also there are a few
> | File Upload beans floating around the net, go to
> | google and type JSP File Upload Bean and see what you
> | will get.
> |
> | I have a couple of applications where a user will
> | upload files to a remote server after authenticating.
> |
> | regards.
> |
> | --- Raju Lokhande <[EMAIL PROTECTED]> wrote:
> | > Greetings everybody,
> | >  I am doing some research on possibility of using
> | > Tomcat to do a project. General requirements as
> | > follows
> | > 1. A user will login to the web application and
> | > upload a file to a remote server. He or she can only
> | > access his or her WIN2K/NT domain to upload this
> | > file.
> | > 2. User will download a file or a number of files
> | > from the remote server - again from his or her
> | > domain.
> | > I was told that I can do this job using Java Servlet
> | > and IBM Websphere or BEA Weblogic.
> | > I am not sure if this is possible in Tomcat. Has
> | > anybody done similar work using Tomcat. Can you
> | > share your experiences please?
> | > Thanks
> | > Raju Lokhande
> | >
> | >
> | >
> | >
> |
> 
> *
> | > This message, together with any attachments, is
> | > intended only
> | > for the use of the individual or entity to which it
> | > is addressed. It
> | > may contain information that is confidential and
> | > prohibited from
> | > disclosure.  If you are not the intended recipient,
> | > you are
> | > hereby notified that any dissemination or copying of
> | > this
> | > message or any attachment is strictly prohibited. If
> | > you have
> | > received this message in error, please notify the
> | > original sender
> | > immediately by telephone or by return e-mail and
> | > delete this
> | > message along with any attachments, from your
> | > computer.
> | > Thank you.
> | >
> |
> 
> *
> | >
> | >
> | > --
> | > To unsubscribe, e-mail:
> | > 
> | > For additional commands, e-mail:
> | > 
> | >
> |
> |
> | __
> | Do You Yahoo!?
> | HotJobs - Search Thousands of New Jobs
> | http://www.hotjobs.com
> |
> | --
> | To unsubscribe, e-mail:    | [EMAIL PROTECTED]>
> | For additional commands, e-mail:  | [EMAIL PROTECTED]>
> |
> | ---
> | Incoming mail is certified Virus Free.
> | Checked by AVG anti-virus system (http://www.grisoft.com).
> | Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
> |
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:





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




Re: Design question

2002-08-19 Thread Raju Lokhande

Can you send me URL or URLs for Tag libs in Jakarta, please?
How did you do NT Domain authentication in your app?
Raju Lokhande


>>> [EMAIL PROTECTED] 08/19/02 01:05PM >>>
Yes Raju,
It should be doable. You can download TC latest and
hack some code. If you want to use some readily
availabe to help in the process, take a look at the
Tag libs available on Jakarta. Also there are a few
File Upload beans floating around the net, go to
google and type JSP File Upload Bean and see what you
will get.

I have a couple of applications where a user will
upload files to a remote server after authenticating.

regards.

--- Raju Lokhande <[EMAIL PROTECTED]> wrote:
> Greetings everybody,
>  I am doing some research on possibility of using
> Tomcat to do a project. General requirements as
> follows
> 1. A user will login to the web application and
> upload a file to a remote server. He or she can only
> access his or her WIN2K/NT domain to upload this
> file.
> 2. User will download a file or a number of files
> from the remote server - again from his or her
> domain.
> I was told that I can do this job using Java Servlet
> and IBM Websphere or BEA Weblogic.
> I am not sure if this is possible in Tomcat. Has
> anybody done similar work using Tomcat. Can you
> share your experiences please?
> Thanks
> Raju Lokhande
> 
> 
> 
>
*
> This message, together with any attachments, is
> intended only
> for the use of the individual or entity to which it
> is addressed. It
> may contain information that is confidential and
> prohibited from
> disclosure.  If you are not the intended recipient,
> you are
> hereby notified that any dissemination or copying of
> this
> message or any attachment is strictly prohibited. If
> you have
> received this message in error, please notify the
> original sender
> immediately by telephone or by return e-mail and
> delete this
> message along with any attachments, from your
> computer.
> Thank you.
>
*
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com 

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




*
This message, together with any attachments, is intended only
for the use of the individual or entity to which it is addressed. It
may contain information that is confidential and prohibited from
disclosure.  If you are not the intended recipient, you are
hereby notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If you have
received this message in error, please notify the original sender
immediately by telephone or by return e-mail and delete this
message along with any attachments, from your computer.
Thank you.
*


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




pleeeese...

2002-08-19 Thread Felipe Schnack

  Anyone here can help me with my connectionpool (tomcat4+pgsql)
problem? I'm stuck!

-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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




RE: It would be great IF somebody answered me, ONCE, for change :(

2002-08-19 Thread Mike Jackson

It can, and then you'd have other problems.  I use oracle here and
even though I'm licensed for x connections the database hasn't
yet failed to give me a connection at high load times.  I've got
my scavenge count fairly high with only a 2 minute timeout on the
connections in the pool (user timeout is more).  Seems to work
pretty well for me.  Much better than that connection pool that I
wrote.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Luminous Heart [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 9:58 AM
> To: Tomcat Users List
> Subject: RE: It would be great IF somebody answered me, ONCE, for change
> :(
>
>
> Thank you Mike,
> I will test with this, although I tried to
> troubleshoot the problem by going back to an older
> version of poolman. It worked. Now I will try your
> solution, that might help. But would the softlimiting
> of the pool run my server out of sockets in case of
> heavy access?
>
>
> --- Mike Jackson <[EMAIL PROTECTED]> wrote:
> > Add the following and the limit will be a soft limit
> > (it can go above as
> > needed)
> >
> > true
> >
> >
> > --mikej
> > -=-
> > mike jackson
> > [EMAIL PROTECTED]
> >
> > > -Original Message-
> > > From: Luminous Heart
> > [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, August 19, 2002 8:50 AM
> > > To: Tomcat Users List
> > > Subject: RE: It would be great IF somebody
> > answered me, ONCE, for change
> > > :(
> > >
> > >
> > > I am sorry, but I did not get what you mean with
> > > connection limit to be a hard limit, which one is
> > > that?
> > >
> > > I am including a copy of my pool.xml if you care
> > do
> > > point out what should be changed.
> > >
> > > Thank you in advance.
> > >
> > >  Pool.xml
> > =
> > > 
> > >
> > > 
> > >
> > >   local
> > >
> > >   
> > >
> > > 
> > > 
> > > 
> > >
> > > 
> > >
> > > webdev
> > > webdev
> > > org.postgresql.Driver
> > >
> > jdbc:postgresql://localhost:6093/webdev
> > >
> > > JustAUserName
> > > JustAUserNamePassword
> > >
> > > 
> > > true
> > >
> > > 1
> > > 10
> > > 600
> > > 12
> > > 10
> > >
> > >
> > >
> >
> /usr/local/tomcat/logs/poolman.log
> > > false
> > >
> > > 
> > >
> > > false
> > > 20
> > >
> > 120
> > >
> > >   
> > >
> > > 
> > >
> > >  End Pool.xml
> > =
> > > --- Mike Jackson <[EMAIL PROTECTED]> wrote:
> > > > Actually now that I think about it more that
> > might
> > > > be the cause of the null
> > > > pointer (but
> > > > probably not).  In your poolman.xml file have
> > you
> > > > set the connection limit
> > > > to be a hard
> > > > limit?  If you timeout on connections (user
> > timeout)
> > > > is fairly high you
> > > > could run out of
> > > > connections, and it might return a "null"
> > instead of
> > > > a connection.
> > > >
> > > > But that's just a guess.  Also, you might was to
> > > > also turn on logging (debug
> > > > level) in
> > > > poolman as well so that you can watch the
> > > > connections getting checked out
> > > > and in.
> > > >
> > > > --mikej
> > > > -=-
> > > > mike jackson
> > > > [EMAIL PROTECTED]
> > > >
> > > > > -Original Message-
> > > > > From: Luminous Heart
> > > > [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Monday, August 19, 2002 8:36 AM
> > > > > To: Tomcat Users List
> > > > > Subject: Re: It would be great IF somebody
> > > > answered me, ONCE, for change
> > > > > :(
> > > > >
> > > > >
> > > > > Hi Graig,
> > > > > Here is my jsp file. I am not sure what might
> > be
> > > > > wrong. Although the same error happens in a
> > bigger
> > > > > application in a tc cluster of 3 tomcats. Two
> > of
> > > > these
> > > > > tcs fail while one does not get any forwards
> > after
> > > > > that.
> > > > >
> > > > > Please take a look at my code, if you do not
> > mind.
> > > > >
> > > > > Best regards.
> > > > >
> > > > > = JSP
> > =
> > > > > <%@ page import="java.io.*" %>
> > > > > <%@ page import="java.util.*" %>
> > > > > <%@ page import="java.text.*" %>
> > > > >
> > > > > <%@ page import="java.util.Properties" %>
> > > > > <%@ page import="java.util.Date" %>
> > > > >
> > > > > <%@ page contentType="text/html"%>
> > > > >
> > > > > <%@ page import="com.codestudio.util.*"%>
> > > > > <%@ page import="java.sql.*"%>
> > > > >
> > > > > 
> > > > >
> > > > >  > > > > name="access_form">
> > > > >   
> > > > >   
> > > > >   
> > > >  > > > > size=5>User Access
> > > > >
> > > > >  
> > > > >  
> > > > >  
> > > > >   
> > > > >   
> > > > > 
> > > > > 
> > > > >> > > border=0>
> > > > > 
> >  > > > > size=5>User Access by userid
> > > > > 
> > > > >   
> > User
> > > > > Name
> > > > >  > > > name="byusername"
> > > > > size=25 value=""  maxlength=25>
> > > > >   

RE: Design question

2002-08-19 Thread Jacob Hookom

I'm trying to accomplish the same thing--

How do you authenticate on Server A, then have that principal carry over
to Servers B and C for download authorization?

Thanks!
-Jacob

| -Original Message-
| From: Luminous Heart [mailto:[EMAIL PROTECTED]]
| Sent: Monday, August 19, 2002 12:06 PM
| To: Tomcat Users List
| Subject: Re: Design question
| 
| Yes Raju,
| It should be doable. You can download TC latest and
| hack some code. If you want to use some readily
| availabe to help in the process, take a look at the
| Tag libs available on Jakarta. Also there are a few
| File Upload beans floating around the net, go to
| google and type JSP File Upload Bean and see what you
| will get.
| 
| I have a couple of applications where a user will
| upload files to a remote server after authenticating.
| 
| regards.
| 
| --- Raju Lokhande <[EMAIL PROTECTED]> wrote:
| > Greetings everybody,
| >  I am doing some research on possibility of using
| > Tomcat to do a project. General requirements as
| > follows
| > 1. A user will login to the web application and
| > upload a file to a remote server. He or she can only
| > access his or her WIN2K/NT domain to upload this
| > file.
| > 2. User will download a file or a number of files
| > from the remote server - again from his or her
| > domain.
| > I was told that I can do this job using Java Servlet
| > and IBM Websphere or BEA Weblogic.
| > I am not sure if this is possible in Tomcat. Has
| > anybody done similar work using Tomcat. Can you
| > share your experiences please?
| > Thanks
| > Raju Lokhande
| >
| >
| >
| >
|

*
| > This message, together with any attachments, is
| > intended only
| > for the use of the individual or entity to which it
| > is addressed. It
| > may contain information that is confidential and
| > prohibited from
| > disclosure.  If you are not the intended recipient,
| > you are
| > hereby notified that any dissemination or copying of
| > this
| > message or any attachment is strictly prohibited. If
| > you have
| > received this message in error, please notify the
| > original sender
| > immediately by telephone or by return e-mail and
| > delete this
| > message along with any attachments, from your
| > computer.
| > Thank you.
| >
|

*
| >
| >
| > --
| > To unsubscribe, e-mail:
| > 
| > For additional commands, e-mail:
| > 
| >
| 
| 
| __
| Do You Yahoo!?
| HotJobs - Search Thousands of New Jobs
| http://www.hotjobs.com
| 
| --
| To unsubscribe, e-mail:   
| For additional commands, e-mail: 
| 
| ---
| Incoming mail is certified Virus Free.
| Checked by AVG anti-virus system (http://www.grisoft.com).
| Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
| 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
 


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




CGIs

2002-08-19 Thread Rocío Ninahuanca Flores

Hello,
I have an aplication in CERN server, and I want to run CGIs in Tomcat, can i
do this?, my cgis were generated by C.
Can I do it?, I don't want to install Apache, I just want Tomcat.
It's because i have a part of an aplication in CGIs and I want to have
another part  in JSPs, can I do it?.

Thanks.


-Mensaje original-
De: Raju Lokhande [mailto:[EMAIL PROTECTED]]
Enviado el: Lunes, 19 de Agosto de 2002 12:01 p.m.
Para: mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:



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




RE: Craig, PoolMan, latest version WAS the problem.

2002-08-19 Thread Mike Jackson

Did you try using a soft limit?  That combined with a larger
scavenge count and a shorter time limit on the connections
(not the user time limit) should allow you to scale decently.

Also you really should check the connection to be sure that
it's not a null connection prior to using it.  That should
also elminate the problem, but you'd have to add some code
to handle when it's not there (retry acquiring a connection
most likely).

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Luminous Heart [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 9:54 AM
> To: Tomcat Users List
> Subject: Craig, PoolMan, latest version WAS the problem.
>
>
> Ok. I reverted to an older version of PoolMan, where
> we use pool.prop instead of pool.xml. That version
> works fine. I have not hit the exception although I
> tested it for sometime.
>
> Does that mean am stuck to the older poolman? Is there
> a better solution to handle database pooling?
>
> Thank you.
>
> --- Luminous Heart <[EMAIL PROTECTED]> wrote:
> > I am sorry, but I did not get what you mean with
> > connection limit to be a hard limit, which one is
> > that?
> >
> > I am including a copy of my pool.xml if you care do
> > point out what should be changed.
> >
> > Thank you in advance.
> >
> >  Pool.xml =
> > 
> >
> > 
> >
> >   local
> >
> >   
> >
> > 
> > 
> > 
> >
> > 
> >
> > webdev
> > webdev
> > org.postgresql.Driver
> >
> > jdbc:postgresql://localhost:6093/webdev
> >
> > JustAUserName
> > JustAUserNamePassword
> >
> > 
> > true
> >
> > 1
> > 10
> > 600
> > 12
> > 10
> >
> >
> >
> /usr/local/tomcat/logs/poolman.log
> > false
> >
> > 
> >
> > false
> > 20
> > 120
> >
> >   
> >
> > 
> >
> >  End Pool.xml =
> > --- Mike Jackson <[EMAIL PROTECTED]> wrote:
> > > Actually now that I think about it more that might
> > > be the cause of the null
> > > pointer (but
> > > probably not).  In your poolman.xml file have you
> > > set the connection limit
> > > to be a hard
> > > limit?  If you timeout on connections (user
> > timeout)
> > > is fairly high you
> > > could run out of
> > > connections, and it might return a "null" instead
> > of
> > > a connection.
> > >
> > > But that's just a guess.  Also, you might was to
> > > also turn on logging (debug
> > > level) in
> > > poolman as well so that you can watch the
> > > connections getting checked out
> > > and in.
> > >
> > > --mikej
> > > -=-
> > > mike jackson
> > > [EMAIL PROTECTED]
> > >
> > > > -Original Message-
> > > > From: Luminous Heart
> > > [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, August 19, 2002 8:36 AM
> > > > To: Tomcat Users List
> > > > Subject: Re: It would be great IF somebody
> > > answered me, ONCE, for change
> > > > :(
> > > >
> > > >
> > > > Hi Graig,
> > > > Here is my jsp file. I am not sure what might be
> > > > wrong. Although the same error happens in a
> > bigger
> > > > application in a tc cluster of 3 tomcats. Two of
> > > these
> > > > tcs fail while one does not get any forwards
> > after
> > > > that.
> > > >
> > > > Please take a look at my code, if you do not
> > mind.
> > > >
> > > > Best regards.
> > > >
> > > > = JSP =
> > > > <%@ page import="java.io.*" %>
> > > > <%@ page import="java.util.*" %>
> > > > <%@ page import="java.text.*" %>
> > > >
> > > > <%@ page import="java.util.Properties" %>
> > > > <%@ page import="java.util.Date" %>
> > > >
> > > > <%@ page contentType="text/html"%>
> > > >
> > > > <%@ page import="com.codestudio.util.*"%>
> > > > <%@ page import="java.sql.*"%>
> > > >
> > > > 
> > > >
> > > >  > > > name="access_form">
> > > >   
> > > >   
> > > >   
> > >  > > > size=5>User Access
> > > >
> > > >  
> > > >  
> > > >  
> > > >   
> > > >   
> > > > 
> > > > 
> > > >> > border=0>
> > > > 
> >  > > > size=5>User Access by userid
> > > > 
> > > >User
> > > > Name
> > > >  > > name="byusername"
> > > > size=25 value=""  maxlength=25>
> > > >   
> > > > 
> > > >   
> > > > 
> > > > 
> > > > 
> > > > 
> > > >> > border=0>
> > > > 
> >  > > > size=5>User Access by Date > > size=1>
> > > > 
> > > > 
> > > >Date
> > > >  > > > value="" size=25  maxlength=125>
> > > > 
> > > >   
> > > > 
> > > >   
> > > > 
> > > > 
> > > > 
> > > > 
> > > >> > border=0>
> > > > 
> >  > > > size=5>USER Access by IP Address
> > > > 
> > > > 
> > > >IP
> > > Address
> > > >  > > name="byipaddress"
> > > > value="" size=25  maxlength=125>
> > > > 

Re: Design question

2002-08-19 Thread Luminous Heart

Yes Raju,
It should be doable. You can download TC latest and
hack some code. If you want to use some readily
availabe to help in the process, take a look at the
Tag libs available on Jakarta. Also there are a few
File Upload beans floating around the net, go to
google and type JSP File Upload Bean and see what you
will get.

I have a couple of applications where a user will
upload files to a remote server after authenticating.

regards.

--- Raju Lokhande <[EMAIL PROTECTED]> wrote:
> Greetings everybody,
>  I am doing some research on possibility of using
> Tomcat to do a project. General requirements as
> follows
> 1. A user will login to the web application and
> upload a file to a remote server. He or she can only
> access his or her WIN2K/NT domain to upload this
> file.
> 2. User will download a file or a number of files
> from the remote server - again from his or her
> domain.
> I was told that I can do this job using Java Servlet
> and IBM Websphere or BEA Weblogic.
> I am not sure if this is possible in Tomcat. Has
> anybody done similar work using Tomcat. Can you
> share your experiences please?
> Thanks
> Raju Lokhande
> 
> 
> 
>
*
> This message, together with any attachments, is
> intended only
> for the use of the individual or entity to which it
> is addressed. It
> may contain information that is confidential and
> prohibited from
> disclosure.  If you are not the intended recipient,
> you are
> hereby notified that any dissemination or copying of
> this
> message or any attachment is strictly prohibited. If
> you have
> received this message in error, please notify the
> original sender
> immediately by telephone or by return e-mail and
> delete this
> message along with any attachments, from your
> computer.
> Thank you.
>
*
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-19 Thread Reynir Hübner

There are some docs/sample code at the oracle website (otn) that came in quite handy 
when I needed it. 

hope it helps
- [EMAIL PROTECTED]


> -Original Message-
> From: Mike Jackson [mailto:[EMAIL PROTECTED]]
> Sent: 19. ágúst 2002 16:59
> To: Tomcat Users List
> Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?
> 
> 
> I don't think there is one, it'd be really nice if there was 
> however.  There
> is some good documentation available from Sun, but it doesn't 
> get into real
> examples (like what you're doing).
> 
> --mikej
> -=-
> mike jackson
> [EMAIL PROTECTED]
> 
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, August 19, 2002 9:18 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: OFF-TOPIC: Pointers to CallableStatement docs?
> >
> >
> >
> > Hello -
> >
> > I think there is a java-user list, or even a jdbc-interest 
> list, but I'd
> > rather not subscribe when all I need is one quick pointer, 
> so I am hoping
> > someone on this list can get me started.
> >
> > I'm having quite a bit of difficulty working with stored 
> procedures in my
> > classes and servlets.  The database is MS SQL Server 2000.  I've
> > read every
> > single doc I can find, both at Sun, through Google, and 
> even through the
> > driver vendor's documentation.  I even scammed some code 
> from a JDBC 3.0
> > book (the only one I could find) at Border's, with still no luck.
> >
> > Can anyone point me to a resource that explains how to setup stored
> > procedures in a CallableStatement correctly?  I understand about
> > registering
> > the output parameters and setting the input types, and I
> > understand that the
> > parameters in a CallableStatement are numbered from left to 
> right starting
> > at 1.  I've seen the examples at Sun, etc. but they're not 
> much help.
> >
> > The problem is that all of the examples I can find deal 
> with very simple,
> > very rudimentary stored procedures, like finding the average of
> > two numbers,
> > or whatever.  Our stored procedures are more involved than that.
> >
> > Example:  a stored procedure used to validate logins.  It 
> has 5 input
> > parameters, and 5 output parameters.  It returns a status.
> > According to the
> > docs I have read so far, that means I should have a 
> CallableStatement with
> > 11 question marks ("?") in it (5 + 5 + 1 = 11).  but that doesn't
> > work, and
> > I have tried every combination of inputs, outputs, input/outputs,
> > etc. that
> > I can think of, to no avail.
> >
> > Any help or pointers to resources that explain stored procedures and
> > CallableStatements in more in-depth fashion would be 
> greatly appreciated.
> >
> > - John
> >
> > 
> > John Turner
> > [EMAIL PROTECTED] | 248-488-3466
> > Advertising Audit Service
> > http://www.aas.com
> >
> >
> > --
> > 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: AW: got javax.servlet.UnavailableException when setting unpackWar to false

2002-08-19 Thread Jacob Kjome

Hello Juri,

Well, don't use File io in a servlet application unless you are
reading/writing to a place guaranteed to be read/writable such as each
context's temp dir made available by any server implementing the
Servlet 2.3 spec.

To read a config file in a servlet portable way, do the following:

InputStream is =
getServletContext().getResourceAsStream("/WEB-INF/testApp.properties");

That will read the testApp.properties file in the current context's
WEB-INF directory whether the context is being served out of a
directory on the filesystem or out of a .war archive.

You can also try this, if your testApp.properties is in the path of
one of the available classloaders:

InputStream stream =
Thread.currentThread().getContextClassLoader().getResourceAsStream("myApp.pr
operties");

Or use the following if your properties file is in the same relative
location as the class that is loading it.

InputStream propsStream = this.getClass().getResourceAsStream("testApp.properties");

or like this if you put the testApp.properties in the root of the
current classloader (meaning "WEB-INF/classes"):

InputStream propsStream =
this.getClass().getResourceAsStream("/testApp.properties");


There you go.  Lots of possibilities.

Jake

Monday, August 19, 2002, 6:41:07 AM, you wrote:

JF> solved it by myself...

JF> The problem was, that the servlett was trying to read a properties file
JF> included in the war file.

JF> Any suggestions for a workaround? I.e. using webresources or the like...

JF> Best regards

JF> Juri


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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Re: It would be great IF somebody answered me, ONCE, for change :(

2002-08-19 Thread Luminous Heart

Thank you Paul. I know we are NOT paid to help
eachother, but hey, maybe someday I would be able to
lend a hand. This is how a great software like Apache
is putting a wide smile on all our faces.

Regards.

--- Paul McGovern <[EMAIL PROTECTED]> wrote:
> 
> Sorry, but you haven't included enough information
> for anyone to formulate an 
> answer. Based on the information all I can say is
> that you have a null 
> pointer exception. If you want a proper response,
> please include the code 
> segment that is going wrong, and config info from
> server.xml and web.xml.
> 
> Also please bear in mind that nobody here, AFAIK, is
> being paid to answer.
> 
> 
> On Monday 19 August 2002 11:14, you wrote:
> > I keep on asking this question but noone helps. Is
> it
> > a bug in TC?
> >
> > Why do I get NullPointerException? If I press
> refresh
> > a couple of times I would go through.
> >
> > 2002-08-19 00:53:32 StandardWrapperValve[jsp]:
> > Servlet.service() for servlet jsp threw exception
> > java.lang.NullPointerException
> > at
> >
>
org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:61)
> > at
> >
>
org.postgresql.Connection.ExecSQL(Connection.java:398)
> > at
> >
>
org.postgresql.jdbc2.Statement.execute(Statement.java:130)
> > at
> >
>
org.postgresql.jdbc2.Statement.executeQuery(Statement.java:54)
> > at
> >
>
org.postgresql.jdbc2.PreparedStatement.executeQuery(PreparedStatement.java:
> >99) at
> >
>
com.codestudio.sql.PoolManPreparedStatement.executeQuery(Unknown
> > Source)
> > at
> >
>
org.apache.jsp.AccountAccess$jsp._jspService(AccountAccess$jsp.java:207)
> > at
> >
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> > at
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.j
> >ava:201) at
> >
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
> > at
> >
>
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
> > at
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
> >nFilterChain.java:247) at
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
> >hain.java:193) at
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
> >ava:243) at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
> >566) at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > at
> >
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
> >
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
> >ava:190) at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
> >566) at
> >
>
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBas
> >e.java:531) at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
> >564) at
> >
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:
> >246) at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
> >564) at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > at
> >
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
> >
>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
> > at
> >
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
> >0) at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
> >566) at
> >
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
> >.java:170) at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
> >564) at
> >
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
> >0) at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
> >564) at
> >
>
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
> > at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
> >564) at
> >
>
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392
> >) at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
> >564) at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > at
> >
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
> >
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
> >a:174) at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:
> >566) at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(Stan

two versions on tomcat on same machine

2002-08-19 Thread Ashish Kulkarni

Hi,
Can i run 2 different versions of tomcat on same
machine, 
if yes what are the things i need to check if they
dont have to conflict when running
Ashish

__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




RE: It would be great IF somebody answered me, ONCE, for change :(

2002-08-19 Thread Luminous Heart

It is always nice to have an extra debugger handy :) I
am testing JTest but am not sure it is really what I
need. I would appreciate your help if you can send me
yours.

Thank you in advance.

--- micael <[EMAIL PROTECTED]> wrote:
> If you have a debugger, all you have to do is to
> follow the bouncing ball 
> and find the null reference.  That will be the
> fastest way to find this 
> problem.  It should not take long.  If you don't
> have a debugger, I will 
> send you one I made to use, and I like better than
> the standard debuggers.
> 
> At 08:49 AM 8/19/2002 -0700, you wrote:
> >I am sorry, but I did not get what you mean with
> >connection limit to be a hard limit, which one is
> >that?
> >
> >I am including a copy of my pool.xml if you care do
> >point out what should be changed.
> >
> >Thank you in advance.
> >
> > Pool.xml =
> >
> >
> >
> >
> >   local
> >
> >   
> >
> > 
> > 
> > 
> >
> > 
> >
> > webdev
> > webdev
> > org.postgresql.Driver
> >
> jdbc:postgresql://localhost:6093/webdev
> >
> > JustAUserName
> > JustAUserNamePassword
> >
> > 
> > true
> >
> > 1
> > 10
> > 600
> > 12
> > 10
> >
> >
>
>/usr/local/tomcat/logs/poolman.log
> > false
> >
> > 
> >
> > false
> > 20
> >
> 120
> >
> >   
> >
> >
> >
> > End Pool.xml =
> >--- Mike Jackson <[EMAIL PROTECTED]> wrote:
> > > Actually now that I think about it more that
> might
> > > be the cause of the null
> > > pointer (but
> > > probably not).  In your poolman.xml file have
> you
> > > set the connection limit
> > > to be a hard
> > > limit?  If you timeout on connections (user
> timeout)
> > > is fairly high you
> > > could run out of
> > > connections, and it might return a "null"
> instead of
> > > a connection.
> > >
> > > But that's just a guess.  Also, you might was to
> > > also turn on logging (debug
> > > level) in
> > > poolman as well so that you can watch the
> > > connections getting checked out
> > > and in.
> > >
> > > --mikej
> > > -=-
> > > mike jackson
> > > [EMAIL PROTECTED]
> > >
> > > > -Original Message-
> > > > From: Luminous Heart
> > > [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, August 19, 2002 8:36 AM
> > > > To: Tomcat Users List
> > > > Subject: Re: It would be great IF somebody
> > > answered me, ONCE, for change
> > > > :(
> > > >
> > > >
> > > > Hi Graig,
> > > > Here is my jsp file. I am not sure what might
> be
> > > > wrong. Although the same error happens in a
> bigger
> > > > application in a tc cluster of 3 tomcats. Two
> of
> > > these
> > > > tcs fail while one does not get any forwards
> after
> > > > that.
> > > >
> > > > Please take a look at my code, if you do not
> mind.
> > > >
> > > > Best regards.
> > > >
> > > > = JSP
> =
> > > > <%@ page import="java.io.*" %>
> > > > <%@ page import="java.util.*" %>
> > > > <%@ page import="java.text.*" %>
> > > >
> > > > <%@ page import="java.util.Properties" %>
> > > > <%@ page import="java.util.Date" %>
> > > >
> > > > <%@ page contentType="text/html"%>
> > > >
> > > > <%@ page import="com.codestudio.util.*"%>
> > > > <%@ page import="java.sql.*"%>
> > > >
> > > > 
> > > >
> > > >  > > > name="access_form">
> > > >   
> > > >   
> > > >   
> > >  > > > size=5>User Access
> > > >
> > > >  
> > > >  
> > > >  
> > > >   
> > > >   
> > > > 
> > > > 
> > > >> > border=0>
> > > > 
>  > > > size=5>User Access by userid
> > > > 
> > > >   
> User
> > > > Name
> > > >  > > name="byusername"
> > > > size=25 value=""  maxlength=25>
> > > >   
> > > > 
> > > >   
> > > > 
> > > > 
> > > > 
> > > > 
> > > >> > border=0>
> > > > 
>  > > > size=5>User Access by Date > > size=1>
> > > > 
> > > > 
> > > >Date
> > > >  name="bydate"
> > > > value="" size=25  maxlength=125>
> > > > 
> > > >   
> > > > 
> > > >   
> > > > 
> > > > 
> > > > 
> > > > 
> > > >> > border=0>
> > > > 
>  > > > size=5>USER Access by IP Address
> > > > 
> > > > 
> 
=== message truncated ===


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-19 Thread Mike Jackson

I don't think there is one, it'd be really nice if there was however.  There
is some good documentation available from Sun, but it doesn't get into real
examples (like what you're doing).

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 9:18 AM
> To: '[EMAIL PROTECTED]'
> Subject: OFF-TOPIC: Pointers to CallableStatement docs?
>
>
>
> Hello -
>
> I think there is a java-user list, or even a jdbc-interest list, but I'd
> rather not subscribe when all I need is one quick pointer, so I am hoping
> someone on this list can get me started.
>
> I'm having quite a bit of difficulty working with stored procedures in my
> classes and servlets.  The database is MS SQL Server 2000.  I've
> read every
> single doc I can find, both at Sun, through Google, and even through the
> driver vendor's documentation.  I even scammed some code from a JDBC 3.0
> book (the only one I could find) at Border's, with still no luck.
>
> Can anyone point me to a resource that explains how to setup stored
> procedures in a CallableStatement correctly?  I understand about
> registering
> the output parameters and setting the input types, and I
> understand that the
> parameters in a CallableStatement are numbered from left to right starting
> at 1.  I've seen the examples at Sun, etc. but they're not much help.
>
> The problem is that all of the examples I can find deal with very simple,
> very rudimentary stored procedures, like finding the average of
> two numbers,
> or whatever.  Our stored procedures are more involved than that.
>
> Example:  a stored procedure used to validate logins.  It has 5 input
> parameters, and 5 output parameters.  It returns a status.
> According to the
> docs I have read so far, that means I should have a CallableStatement with
> 11 question marks ("?") in it (5 + 5 + 1 = 11).  but that doesn't
> work, and
> I have tried every combination of inputs, outputs, input/outputs,
> etc. that
> I can think of, to no avail.
>
> Any help or pointers to resources that explain stored procedures and
> CallableStatements in more in-depth fashion would be greatly appreciated.
>
> - John
>
> 
> John Turner
> [EMAIL PROTECTED] | 248-488-3466
> Advertising Audit Service
> http://www.aas.com
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:





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




Design question

2002-08-19 Thread Raju Lokhande

Greetings everybody,
 I am doing some research on possibility of using Tomcat to do a project. General 
requirements as follows
1. A user will login to the web application and upload a file to a remote server. He 
or she can only access his or her WIN2K/NT domain to upload this file.
2. User will download a file or a number of files from the remote server - again from 
his or her domain.
I was told that I can do this job using Java Servlet and IBM Websphere or BEA Weblogic.
I am not sure if this is possible in Tomcat. Has anybody done similar work using 
Tomcat. Can you share your experiences please?
Thanks
Raju Lokhande



*
This message, together with any attachments, is intended only
for the use of the individual or entity to which it is addressed. It
may contain information that is confidential and prohibited from
disclosure.  If you are not the intended recipient, you are
hereby notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If you have
received this message in error, please notify the original sender
immediately by telephone or by return e-mail and delete this
message along with any attachments, from your computer.
Thank you.
*


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




  1   2   >