Re: Persistent Connection

2002-08-19 Thread Taral Shah

Thanks A lot Andrew and Mike for providing useful information.

But Just for my knowledge I would like to know, What IIS or Apache doing
specially so the connection closes with them and not with Tomcat.
Any special protocols they are following or what?

I have to compulsory use only tomcat and not apache. And mine is a
networking application so these sockets are concerend for client.
IS there any solution for it, when using only with tomcat or I have to
accept this as a fact and work with it.

Thanks Again.
Taral Shah
Experience is what you get when you were expecting something else.

- Original Message -
From: Andrew Conrad [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]; 'Taral Shah'
[EMAIL PROTECTED]
Sent: Saturday, August 17, 2002 11:42 PM
Subject: RE: Persistent Connection


It's a operating system issue.

quote
NOTE: It is normal to have a socket in the TIME_WAIT state for a long
period of time. The time is specified in RFC793 as twice the Maximum
Segment Lifetime (MSL). MSL is specified to be 2 minutes. So, a socket
could be in a TIME_WAIT state for as long as 4 minutes. Some systems
implement different values (less than 2 minutes) for the MSL.
/quote
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q137984


But if you really want to change the TIME_WAIT, look here
http://support.microsoft.com/default.aspx?scid=kb;en-us;q314053


To test your MSL (maximum segment lifetime), you can use this tool
http://polygraph.ircache.net/doc/msl_test.html

- Andrew

 -Original Message-
 From: Taral Shah [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, August 17, 2002 2:16 AM
 To: Tomcat Users List
 Subject: Re: Persistent Connection


 Hi,
 Thanks for reply,

 But I am only using tomcat. I dont want to use apache just
 for this reason.Can any one guide me what should i do to
 close this connection in tomcat or to ask tcp/ip stack to
 close connection. Its not at all affecting the performance of
 application but when i see at netstat statstics it sometimes
 shows me thousands of connections open.

 Any idea?
 Thanks
 Taral Shah

 Experience is what you get when you were expecting something else.

 - Original Message -
 From: Mike Jackson [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED];
 Taral Shah [EMAIL PROTECTED]
 Sent: Friday, August 16, 2002 10:53 PM
 Subject: RE: Persistent Connection


 TIME_WAIT is something the tcp/ip stack does; it doesn't
 have anything to do with Tomcat per say.  What happens (as I
 understand it) is that once your app has closed the
 connection (page is done or whatever), the stack will hold
 the connection in a TIME_WAIT state to prevent the other
 end, the client, from reconnecting to the same port.

 So the problem isn't really tomcat, its the TCP/IP stack.
 However I've also found that under unix if you're using
 apache+tomcat you don't have a ton of TIME_WAIT sockets on
 the webserver.  Apache apparently sets a parameter to
 eliminate the TIME_WAIT sockets, either on close or on open
 of the socket (I don't know which).  So what you might want
 to do is run IIS or Apache in front of tomcat.  I don't know
 that IIS does the same thing as Apache in regards to the
 sockets, but if it does then it'll work nearly as well in
 front of tomcat.  But there is a slight problem here as well,
 you need to be sure that you're using APJ13 not APJ12 as
 APJ12 will open a new connection for each web access that
 tomcat handles.  And in that casey you'd get more TIME_WAIT
 sockets.  APJ13 multiplexes the requests over one persistent
 socket, so you don't have the extra overhead of opening the
 socket on each request, or the TIME_WAIT socket lingering
 there for some time period.

 Also, just as a FYI, under unix you can change the TIME_WAIT
 time period but it's not recommended that you do so.  The
 default time period is about 4 minutes as I recall.  You can
 probably also change it under windows, but I wouldn't have a
 clue how to do that.

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

  -Original Message-
  From: Taral Shah [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 16, 2002 2:40 AM
  To: Tomcat Users List
  Subject: Persistent Connection
 
 
  I am using tomcat 3.3
 
  Now I am calling one jsp which loads an applet, internally
 that applet
  uses url connection to fetch data.
  Now problem is that when i check with netstat application(its
  inbuilt in win
  nt, run through netstat -n)
  I came to know tomcat opens no of connections and keep them
 in TIME_WAIT
  mode.
 
  This is happening with simple jsps as well as with servlet.
 For each
  request it opens around 2/3(depending on the no of jsps included)
  connection with host-ip:8080 port. These all are of tcp type
  connections. I read in some of materials that in Http 1.1, as
  persistent connection is used so it keeps the connection
 open unless I
  specify them to close.
 
  I wrote in my code as response.setHeader(Connection,
 close); but
  still the no of open 

RE: integrating tomcat 4.04 into iplanet 4.1 using nsapi_redirector on linux

2002-08-19 Thread Jerry Birchler

My theory is that no one can claim that they have actually done this. 

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




Frameset problem with mod_webapp

2002-08-19 Thread Sudhakar Barua

Hi, I couldn't get a single solution in the mailing list archive for my
problem below.

I am using Apache 1.3.20 with TOMCAT 4.0.4 using mod_webapp wrap connector,
and I am having problems loading .jsp pages in  frames.
The problem persists even for simple .html files.My file test.html consists
of:-

frameset cols=*,250
frame src=left.html/frame

frame src=right.html/frame
/frameset

When I load test.html directly(i.e.,bypassing the Apache Web Server)
http://localhost:8080/kamatoapp/kamato/test.html, everything works fine.

But I get one of these errors everytime I try to load the frameset through
the Apache-Tomcat connector, using the url
http://localhost/kamatoapp/kamato/test.html

1.)browser says:-

WebApp: Error 500
(File: pr_warp.c Line: 438)
--

Invalid packet 6
--


2.)access.log says:-

127.0.0.1 - - [19/Aug/2002:10:14:58 +0200] GET /kamatoapp/kamato/left.html
HTTP/1.1 304 0

[HTTP:304 error means resource Not Modified]


3.)or windows error says:-

Apache.exe has generated errors and will be shut down


4.)or, if I press F5(Reload) the browser simply goes in an unresponsive
mode.



Mit freundlichem Gruß
Best regards
Sudhakar Barua
(Software Development)


| AdaKoS GmbH - Advanced Knowledge Solutions
| Ohmstrasse 3
| D-85716 Unterschleissheim
| Germany
| Fax.:   +49-(0)89-189496-11
| Handy:+49-(0)160 437 0488
| E-mail: [EMAIL PROTECTED]
| [EMAIL PROTECTED]
| URL:http://www.adakos.com




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




got javax.servlet.UnavailableException when setting unpackWar to false

2002-08-19 Thread Juri Frommer

Hi there,

I'm using Tomcat 4.1.9 Standalone and got the following Problem:

When copying my war file to the webapps directory and setting unpackWar to
true everything works fine (the war file is unpacked and the application
works).
But when setting unpackWar to false I get the following exception:

HTTP Status 500 -




type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.UnavailableException: [UniServlet] null
 at com.iviews.layoutengine.servlet.UniServlet.init(Unknown Source)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:92
4)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
 at java.lang.Thread.run(Thread.java:536)




Apache Tomcat/4.1.9-LE-jdk14

I tryed both: putting the required jar file  (the one containing UniServlet)
in the common/lib directory or in the WEB-INF/lib directory of the
application before deploying the war file.
But nevertheless the Servlet is not found...

Would be nice if anyone could help,

with best regards

Juri



Re: Connect Java Profiler to Tomcat

2002-08-19 Thread Steinar Bang

 Zhenxin wang [EMAIL PROTECTED]:

 I used OptimizeIt, which has special script for Tomcat 4. Follow the
 instructions from OptimizeIt to modify the script to suit your
 environment, it should be easy to gt it working.

I've aquired a test license from Borland, but haven't been able to get
it working yet.

Platform: Intel PIII, RedHat 7.2, Blackdown JDK 1.3.1_01-fcs, tomcat 3.3

Both the JDK and tomcat were installed from RPMs.

What I've done is to:
cd /var/tomcat/
mkdir bin
cd bin
ln -s /usr/bin/tomcat tomcat.sh
and then run the wizard in Tools/Application server integration.

The wizard created the files
/var/tomcat/bin/oi_filter.oif
/var/tomcat/bin/tomcat3_OI.sh

I've then stopped the running daemon with
/etc/init.d/tomcat
and started the script /var/tomcat/bin/tomcat3_OI.sh.

The script outputs some text and then terminates.  After the
script has terminated no tomcat process is running.  The
output by the script, is:

# /var/tomcat/bin/tomcat3_OI.sh
/usr/java/jdk1.3.1_01/bin/java 
-Xbootclasspath/a:/usr/local/OptimizeitSuiteDemo/lib/oibcp.jar  -classpath 
/var/tomcat/lib/tomcat.jar:/usr/local/OptimizeitSuiteDemo/lib/optit.jar:/usr/java/jdk1.3.1_01/lib/tools.jar:
 -Dtomcat.home=/var/tomcat -DGCOPSIZE=5 intuitive.audit.GenericAudit 
org.apache.tomcat.startup.Main start
OptimizeIt Profiler 4.11 build 449 Audit System.
(c) 1997, 1998, 1999, 2000, 2001 Borland.
Port is 1470
Using 5MB for GC operation pool
OptimizeIt generic Audit System. [Hotspot runtime detected]
EmbededTomcat: Init time 1066
EmbededTomcat: Startup time 0
#

The generated tomcat3_OI.sh script is appended to the end of this message.

All hints, tips, and guesses appreciated!

Thanx


- Steinar


-wizard generated tomcat start script tomcat3_OI.sh--
#!/bin/sh


# This script allows to start Jakarta Tomcat 3.1, 3.2 and 3.3 with Optimizeit  #
# tools. It should be completed before use.#
# Use this script to start Tomcat with the Optimizeit Audit System selected#
# with the Audit System Selector (OptIt_Dir/oiselector program). #
# Refer to the tutorial for Tomcat 3 for more information. #
# (tutorials are located under OptIt_Dir/tutorials)  #


# This entry contains the directory where you installed Tomcat
# (Ex: /home/jay/jakarta-tomcat-3.3)
TOMCAT_HOME=/var/tomcat

#This entry contains the path to the OptimizeIt directory
# (Ex: /home/ted/OptimizeitSuite4.1)
OPTIT_HOME=/usr/local/OptimizeitSuiteDemo

# This entry contains the path to the directory of the vm that you want to use
# (Ex: /home/ted/jdk1.3.1)
JAVA_HOME=/usr/java/jdk1.3.1_01

# Enter any required extra java classpath at this entry
JAVA_CLASSPATH=

# Add any extra java arguments at this entry
# (such as -D java properties used by 3rd party products)
JAVA_ARGS=

# Increase the GCOP value if you get some GCOP buffer too small errors
# with the Profiler (size is in Mb)
GCOPSIZE=5

# ** You should not have to modify anything below this line **
# -

if [ ! -d $JAVA_HOME ] ; then
echo The JAVA_HOME specified $JAVA_HOME does not exists.
echo Make sure to specify a correct JAVA_HOME in the tomcat3_OI.sh script.
exit
fi

if [ -f $JAVA_HOME/bin/java ]
then
JAVA=$JAVA_HOME/bin/java
elif [ -f $JAVA_HOME/bin/jre ]
then
JAVA=$JAVA_HOME/bin/jre
else
echo No java or jre found under the directory $JAVA_HOME
echo Make sure to specify a correct JAVA_HOME in the tomcat3_OI.sh script.
exit
fi

if [ ! -f $OPTIT_HOME/lib/optit.jar ] ; then
echo Cannot find the OptimizeIt library optit.jar under the directory $OPTIT_HOME
echo Make sure to specify a correct OPTIT_HOME in the tomcat3_OI.sh script.
exit
fi
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:-.}:${OPTIT_HOME}/lib
export LD_LIBRARY_PATH
OI_PATH=$PATH
export OI_PATH

if [ -z $AUDIT ] ; then
AUDIT=`$OPTIT_HOME/runtime/bin/jre -classpath 
$OPTIT_HOME/runtime/lib/rt.jar:$OPTIT_HOME/lib/optit.jar 
intuitive.optit.fileop.JavaTester $JAVA 2 /dev/null`
fi

# Always use native threads
JAVATHREADS=-native -DOPTITTHR=native

case $AUDIT in
11) COMMAND=$JAVA $JAVATHREADS -noclassgc -Djava.compiler=NONE -DAUDIT=11
JAVACP=$JAVA_HOME/lib/classes.zip:$OPTIT_HOME/lib/optit.jar;;
118pr) COMMAND=$JAVA $JAVATHREADS -noclassgc -Djava.compiler=NONE -DAUDIT=118pr
JAVACP=$JAVA_HOME/lib/classes.zip:$OPTIT_HOME/lib/optit.jar;;
12) COMMAND=$JAVA $JAVATHREADS -Xrunoii -Xnoclassgc -Djava.compiler=NONE -DAUDIT=12
JAVACP=$OPTIT_HOME/lib/optit.jar:$JAVA_HOME/lib/tools.jar ;;
JNI) COMMAND=$JAVA -Xrunoii -DAUDIT=jni
JAVACP=$OPTIT_HOME/lib/optit.jar:$JAVA_HOME/lib/tools.jar ;;
*) echo Virtual machine not recognized, using default settings...
COMMAND=$JAVA -Xrunoii -DAUDIT=jni

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

2002-08-19 Thread tek1

hi craig.

thanks for your reply.

after digging deeper, i now know what's happening.  it's quite strange.

i'm calling tomcat from a (mobile) java client (not a web browser) and the 
client needs to know exactly how many bytes are being sent back to it by 
the server.

when i call HttpServletResponse.setContentLength(##) in the servlet, the 
client receives the data without problem.

however, my filter is doing post-processing on what the servlet wrote 
before sending the response back to the client.  as such, i change my 
servlet code to *not* set the content length, and instead, the filter calls 
ServletResponse.setContentLength(##) before returning the response to the 
client.  however, the client hangs for about a minute b/c it can't 
determine the length of the data being sent back from the server.  so 
it seems that the problem lies in the filter when it calls 
ServletResponse.setContentLength(##).

the problem doesn't happen with a normal web browser, as (i believe that) 
web browsers are able to somehow determine the size of the data being 
returned from the server (whereas the mobile java client that i'm working 
with isn't able to determine the size; thus the requirement to set the 
content length).

do you have an idea of why this would be happening?

thank you.




At 10:21 02/08/17 -0700, you wrote:


On Sat, 17 Aug 2002, tek1 wrote:

  Date: Sat, 17 Aug 2002 17:47:32 +0900
  From: tek1 [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Re: retrieving HttpSession in Filter?
 
  eddie and craig, thanks for your replies.
 
  i was calling the HttpServletRequest.getSession() before the response was
  committed.  in the below code on line 4, i didn't mention that was using a
  responseWrapper, so the servlet used the responseWrapper, and when control
  returned to the filter, the filter called HttpServletRequest.getSession()
  before committing the response.
 
  HttpServletRequest.getSession(false) works, but
  HttpServletRequest.getSession() *before* committing the response, resulted
  in a hang...
 
  is that behavior correct?
 

There shouldn't ever be a hang, obviously.  Are you sure you don't have
any infinite loop in your wrappers somewhere (it's pretty easy to get that
messed up)?

There aren't any hangs in the standard Tomcat code for getSession().

Craig


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



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




RE: RMI and TC4.x (Really classloader stuff)

2002-08-19 Thread David Oxley

Thanks for your comments Greg. Now at least I know what's going on. I'm
going to attach these comments to the bug log.

Thanks.
Dave.

 -Original Message-
 From: Greg Trasuk [mailto:[EMAIL PROTECTED]]
 Sent: 10 August 2002 04:54
 To: 'Tomcat Users List'
 Subject: RE: RMI and TC4.x (Really classloader stuff)
 
 Hi David:
 
   I'm in the same boat trying to use RMI and/or Jini from Tomcat.
 This isn't
 a complete answer to your question, as I'm still investigating the issue,
 but I'm posting what I know so far in the hope that it might help in your
 own solution, and also generate discussion that will guide my exploration.
 When all is said and done, if there's interest, I can post a Catalina-RMI
 HOWTO sort of document.
 
   Although I didn't try to run the test case that you attached to your
 bug
 report, I did take a look at it, and I think I know what's going on.
 Here's
 what I know so far (most of which you probably know already, but I'm
 summarizing for other folks on the list):
 
   When you pass an instance of some Serializable class as an argument
 to an
 RMI call (e.g. passing a command object, as in your test case), the RMI
 subsystem will serialize the object with an additional annotation
 indicating
 the locations from which the class's bytecode can be downloaded.  When you
 pass an exported object (e.g. a server object or an object that will
 receive
 callbacks from remote objects), the RMI subsystem creates and serializes a
 proxy object (otherwise known as the RMI stub object) in place of the
 actual
 object.  In either case, the remote RMI subsystem has to load the class
 that
 is called out in the serialized instance.  It does this by calling the
 RMIClassLoader.
 
   The RMIClassLoader object first tries to find the class locally
 (i.e. in
 the default classloader).  If it can't find it locally, it searches in the
 list of locations contained in the annotation mentioned above.  If the
 required class is available locally, no further headaches are caused,
 which
 may be why some people have had no problems using RMI under Tomcat - they
 probably had the serialized classes and/or proxy classes in the standard
 classpath/classloader setup.
 
   And there we find our problem.  (At this point you might want to
 have a
 look at the JSP snippet below) The annotation is determined by
 RMIClassLoader. According to the RMI and Object Serialization FAQ in the
 JDK1.31 API docs,
 
   If the _Stub class was loaded by an RMIClassLoader, then RMI already
 knows which codebase to use for its annotation. If the _Stub class was
 loaded from the CLASSPATH, then there is no obvious codebase, and RMI
 consults the java.rmi.server.codebase system property to find the
 codebase.
 If the system property is not set, then the stub is marshalled with a null
 codebase, which means that it cannot be used unless the client has a
 matching copy of the _Stub classfile in the client's CLASSPATH. 
 
   If we're running a standalone application (and I believe also in
 Tomcat
 3.x), we're using the system class loader, which has no obvious
 codebase,
 so the java.rmi.server.codebase property gets used.  But what's the class
 loader used in Tomcat 4.x?  I looked at the source code for Tomcat 4.0.1
 (happens to be what I have on hand), and o.a.c.loader.WebAppClassLoader
 extends from o.a.c.loader.StandardClassLoader, which extends from
 java.net.URLClassLoader, which has a method called getURLs().  The
 WebAppClassLoader.getURLs() method returns a list of all the repositories
 it
 will search when trying to load a class on behalf of the web app.  This
 list
 calls out all the jar's in WEB-INF/lib, common/lib, etc.
 
   Having not seen the source for RMIClassLoader, I suspect that the
 getClassAnnotation(..) method checks to see if the classloader for the
 supplied class is a URLClassLoader, and if so, uses the results of the
 getURLs() method call as an obvious codebase.  This suspicion is
 supported
 by the last part of the JSP, where I create a classloader that extends
 from
 URLClassLoader but overrides getURLs() to return a phony url.  The phony
 url
 shows up as the class's annotation.
 
   So the exact error you quoted in the bug report shows something
 about a
 protocol missing MalformedURL exception, which is caused by the fact
 that
 the urls to the repositories contain spaces, since the RMI annotation is
 supposed to be a space-separated list of URL's.  Thus the annotation
 doesn't get parsed properly.   This may be a bug in Catalina's class
 loader
 (i.e. should the returned urls have the spaces encoded to '%20'?) or
 possibly in the way RMIClassLoader uses the results of getURLs().  But
 it's
 not the problem.
 
   The problem is how to get our codebase into the annotation.  Clearly
 the
 java.rmi.server.codebase property is not used, since the class loader has
 a
 codebase.  But setting a system property doesn't feel right to me anyway,
 since in a webapp scenario, 

Precompilation

2002-08-19 Thread Mark O'Driscoll

Hi,

I currently recompile all my jsp's using jspc and update the entries in
web.xml as created by jspc.

This is fine but not quite what I want. One of the problems is that my
default welcome page is index.jsp which, of course, is
no longer there when the file is precompiled. I have got around this by
having a index.html that redirects after 0 secs to index.jsp.

Any solution to this?

I would like to be precompile so that all jsp go into
localhost/work/applicationfred$jsp.{java,class} as tomcat does. Any easy
way to do this?


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




AW: got javax.servlet.UnavailableException when setting unpackWar to false

2002-08-19 Thread Juri Frommer

solved it by myself...

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

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

Best regards

Juri


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




Tomcat 4 and modwebapp in Debian

2002-08-19 Thread falkom

Dear Friends,


I install tomcat4 and modwebapp in woody and I try to get virtualhost 
integrate with tomcat.

I type in httpd.conf

VirtualHost 172.16.4.3
ServerAdmin [EMAIL PROTECTED]
ServerName inet.server.es


WebAppConnection warpConnection warp 172.16.4.3:8008
WebAppDeploy inet warpConnection /

/VirtualHost



And the system tells me
Syntax error on line 1036 of /etc/apache/httpd.conf:
Invalid command 'WebAppDeploy', perhaps mis-spelled or defined by a 
module not included in the server configuration
failed


Can you help me, please?


Ángel


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




ignore please, test

2002-08-19 Thread Nick De Decker

Just testing if this works, seems like the last tomcat mailinglistmessage i received 
is dated 2 days ago...
Or is everybody flooded or on vacation ?

Nick



java-compiler for Mac?

2002-08-19 Thread Gunter D'Hondt

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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Where are the connector binaries???

2002-08-19 Thread Turner, John


Are you editing httpd.conf manually, or are you using the auto-gen function
of tomcat to create mod_jk.conf?

John Turner


-Original Message-
From: Scott Adamson [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 18, 2002 5:51 AM
To: Tomcat Users List
Subject: Re: Where are the connector binaries???


Apache won't start. Get the following in apache/logs/error_log -

No such file or directory: Error while opening the workers



conf/workers.properties contains the following -

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=localhost
worker.ajp13.type=ajp13


- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Saturday, August 17, 2002 2:29 AM
Subject: RE: Where are the connector binaries???



 What's been happening when you try to get apache+tomcat+mod_jk to work?

 John Turner
 [EMAIL PROTECTED]

 -Original Message-
 From: Scott Adamson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 16, 2002 11:31 AM
 To: Tomcat Users List
 Subject: Re: Where are the connector binaries???


 I couldn't. The src is at
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/src/
 (couldn't get the bitch to compile)
 although I used the binaries for 3.3, which are supposed to work with
tomcat
 4, although I have not got it to work yet. Good luck, you will need it !

 Scott.



 - Original Message -
 From: Peter Alvin [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, August 17, 2002 2:15 AM
 Subject: Where are the connector binaries???


 I'm looking in:

 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/
 v1.2.0/bin/linux/i386/

 and I can't find _any_ binaries for release, nightly, or rpms.   All
 the directories seem to be EMPTY. Does anyone know where to find the
 current connector binaries?

 Pete




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




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

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




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

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




Re: java-compiler for Mac?

2002-08-19 Thread Ian McFarland

Yes, there are a few! What version of the OS are you talking about? OS 
X comes with a complete JDK 1.3.1 installed. OS 9 and before had a 
downloadable Java runtime, called Mac Runtime for Java, or MRJ, that 
could be installed. (The current incarnation is also called MRJ, btw, 
but since it's not a separate install, it's transparent to the user.) 
The OS 9 JVM is only JDK 1.1.8, though. You can download it here: 
http://developer.apple.com/java/download.html. OS X is the way to go if 
your friend has any reasonably modern Mac.

You can also run Jikes on OS X, if you don't want to use the Sun+Apple 
javac.

Incidentally, Tomcat runs great on OS X. For a howto, please see my 
website: www.javaosx.com. For general Java on Mac OS docs, see 
developer.apple.com.

-Ian

On Monday, Aug 19, 2002, at 04:46 US/Pacific, Gunter D'Hondt wrote:

 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:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]



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




urgent : tomcat 4 and iis 5

2002-08-19 Thread Jean Fotovat

hello community,

i've been just following the instructions at 
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/
and i'm in trouble when trying the instruction : 
jk_nt_service -s tomcat
i got : 
Asked (and given) winsock 1.1
Starting tomcat.
tomcat failed to start.

the whole steps before are fun.
is somebody there who can, please, help me quickly ?
thank you very much

jean



Off Topic Design Question

2002-08-19 Thread Richard Johnstone

Sorry to post this here but maybe someone on this list can help.
Does anyone know of any tools for building flow documentation between
pages?
I have a load of servlets and want to be able to build up the process
flow.

Ta
Rich


The information contained in this communication is intended solely for the use of the 
individual or entity to whom it is addressed and others authorized to receive it.  It 
may contain confidential or legally privileged information.  If you are not the 
intended recipient you are hereby notified that any disclosure, copying, distribution 
or taking any action in reliance on the contents of this information is strictly 
prohibited and may be unlawful. If you received this communication in error, please 
notify us immediately by responding to this email and then delete it from your system.
Appleyard Finance Holdings Ltd or its subsidiaries are neither liable for the proper 
and complete transmission of the information contained in this communication nor for 
any delay in its receipt.



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


RE: urgent : tomcat 4 and iis 5

2002-08-19 Thread Turner, John


And the error messages in tomcat's log files are.???

John Turner


-Original Message-
From: Jean Fotovat [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 8:11 AM
To: Tomcat Users List
Subject: urgent : tomcat 4 and iis 5


hello community,

i've been just following the instructions at
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/
and i'm in trouble when trying the instruction : 
jk_nt_service -s tomcat
i got : 
Asked (and given) winsock 1.1
Starting tomcat.
tomcat failed to start.

the whole steps before are fun.
is somebody there who can, please, help me quickly ?
thank you very much

jean

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




Re: Off Topic Design Question

2002-08-19 Thread raghav

U cud document the flow using Rational Rose, if u can lay your hands on it.

Raghav
  - Original Message - 
  From: Richard Johnstone 
  To: [EMAIL PROTECTED] 
  Sent: Monday, August 19, 2002 5:46 PM
  Subject: Off Topic Design Question


  Sorry to post this here but maybe someone on this list can help.
  Does anyone know of any tools for building flow documentation between
  pages?
  I have a load of servlets and want to be able to build up the process
  flow.

  Ta
  Rich



--


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



RE: Too many threads

2002-08-19 Thread Shapira, Yoav

Hi,
The threading implementation of the JVM depends on the OS to some
extent.  Linux uses native threads as opposed to green or p threads, so
you see more processes at the OS-level.  You can google search for any
of the above terms and you'll find a ton of references.

For the tomcat configuration reference regarding acceptCount,
minProcessors, and maxProcessors, all of which affect the number of
threads used by tomcat, see:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/http11.html

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Ronaldo [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 17, 2002 10:17 AM
To: Tomcat Users List
Subject: Too many threads

Hi,
  I'm developing a web aplication with jsp and servlets, and I'm beging
to
use tomcat.
  The only problem I'm having is, when I make a stress test on my
tomcat
(4.0.4 on RH Linux) the server create as many threads as the number of
requests. Is this normal? shuldn't be some kind of inteligent thread
pool?
Because, I get over 800 threads and my test machine isn't that much so
it
crashs all the time, because tomcat is eating more than 200 M of
memory.
Can anyone help me on this?

Even not, thanks a lot,

Ronaldo Florence


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



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



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


RE: retrieving HttpSession in Filter? ServletResponse.setContentLength()?

2002-08-19 Thread Cox, Charlie

if you are using a response wrapper, are you overriding setContentLength()
and never calling super.setContentLength()?

Charlie

 -Original Message-
 From: tek1 [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 19, 2002 5:16 AM
 To: Tomcat Users List
 Subject: Re: retrieving HttpSession in Filter?
 ServletResponse.setContentLength()?
 
 
 hi craig.
 
 thanks for your reply.
 
 after digging deeper, i now know what's happening.  it's 
 quite strange.
 
 i'm calling tomcat from a (mobile) java client (not a web 
 browser) and the 
 client needs to know exactly how many bytes are being sent 
 back to it by 
 the server.
 
 when i call HttpServletResponse.setContentLength(##) in the 
 servlet, the 
 client receives the data without problem.
 
 however, my filter is doing post-processing on what the servlet wrote 
 before sending the response back to the client.  as such, i change my 
 servlet code to *not* set the content length, and instead, 
 the filter calls 
 ServletResponse.setContentLength(##) before returning the 
 response to the 
 client.  however, the client hangs for about a minute b/c it can't 
 determine the length of the data being sent back from the 
 server.  so 
 it seems that the problem lies in the filter when it calls 
 ServletResponse.setContentLength(##).
 
 the problem doesn't happen with a normal web browser, as (i 
 believe that) 
 web browsers are able to somehow determine the size of the data being 
 returned from the server (whereas the mobile java client that 
 i'm working 
 with isn't able to determine the size; thus the requirement 
 to set the 
 content length).
 
 do you have an idea of why this would be happening?
 
 thank you.
 
 
 
 
 At 10:21 02/08/17 -0700, you wrote:
 
 
 On Sat, 17 Aug 2002, tek1 wrote:
 
   Date: Sat, 17 Aug 2002 17:47:32 +0900
   From: tek1 [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Subject: Re: retrieving HttpSession in Filter?
  
   eddie and craig, thanks for your replies.
  
   i was calling the HttpServletRequest.getSession() before 
 the response was
   committed.  in the below code on line 4, i didn't mention 
 that was using a
   responseWrapper, so the servlet used the responseWrapper, 
 and when control
   returned to the filter, the filter called 
 HttpServletRequest.getSession()
   before committing the response.
  
   HttpServletRequest.getSession(false) works, but
   HttpServletRequest.getSession() *before* committing the 
 response, resulted
   in a hang...
  
   is that behavior correct?
  
 
 There shouldn't ever be a hang, obviously.  Are you sure you 
 don't have
 any infinite loop in your wrappers somewhere (it's pretty 
 easy to get that
 messed up)?
 
 There aren't any hangs in the standard Tomcat code for getSession().
 
 Craig
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




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

2002-08-19 Thread Glenn Nielsen

It is done for security reasons so that the JVM instance for Tomcat isn't
using the same temp directory as other applicaitons on the system.
Also so that there is a common temp directory path that is system neutral.
This is more secure when you lock down Tomcat with the SecurityManager and
a strict catalina.policy.

Regards,

Glenn

Eddie Ruvinsky wrote:
 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?
 
 Thanks in advance,
 Eddie
 



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




pgSQL connection pooling

2002-08-19 Thread Felipe Schnack

  Anyone uses pgSQL with Tomcat 4? I'm starting a project with it and
would like to know if the ConnectionPooling provided with the jdbc
drivers for this database are good or not.  

-- 

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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: tomcat/unix security manager questions

2002-08-19 Thread Glenn Nielsen

Richard Smith wrote:
 
 Hi All,
 
 Just wondering if you could help me clarify a few questions I have about 
 tomcat
 and catalina.policy. Im running tomcat 4.0.4 (w/ security manager) with 
 mod_jk
 on solaris with about 300+ users, all of whom can deploy jsp/servlets 
 from their public_html directory.
 

I have never setup Tomcat to do this, but from reading the docs it looks
like Tomcat instantiates a separate web application context for each user.

 A user requirement is that they must is to be able to read/write files 
 in their
 home directory. This is what im a little confused about. I understand I 
 can put
 an entry like:
 
 permission java.io.FilePermission /home/-, read,write,delete,execute;
 

I would never grant the execute permission, this allows Tomcat to use
Runtime.exec() to execute shell scripts, etc.!

The above permission w/o execute should be fine.

 in catalina.policy, but how does this enable tomcat to write to other 
 user's
 home directories (when tomcat is running as a user with minimal 
 privledges)? Or
 must I change permissions on the file to allow the user that is running 
 tomcat
 to write to it (is this the normal practice?).
 

Yes, if you want to allow the user web applications to write and delete
files in their own home directory Tomcat would need r/w file permissions.

This can be done by adding the tomcat user tomcat to the group(s) which
your users are members of.  Then setup permissions on the public_html
directory of mode 2775.

 Also, this is probably more a java question, but do standard unix 
 permissions
 always take precedence over what is set in catalina.policy? (In my 
 understanding
 the unix permissions take precedence, but I just wanted to make sure(please
 excuse my java ignorance))
 

Yes, unix file/dir ownership and permissions take precedence.

 Any help appreciated,
 
 Cheers,
 


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




Re: pgSQL connection pooling

2002-08-19 Thread V. Cekvenich

This should be a faq:
http://poolman.sf.net is perhaps most popular (but not updated).

Tomcat comes with it's own (but can't be unit tested)

and... a good sample good practices tomcat web app is at 
basicPortal.sh.net.

hth,
V.


Felipe Schnack wrote:
   Anyone uses pgSQL with Tomcat 4? I'm starting a project with it and
 would like to know if the ConnectionPooling provided with the jdbc
 drivers for this database are good or not.  
 



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




Re: pgSQL connection pooling

2002-08-19 Thread Felipe Schnack

  Well, this poolman isn't updated anymore...
  how can I use tomcat's own connectionpooling?
On Mon, 2002-08-19 at 10:51, V. Cekvenich wrote:
 This should be a faq:
 http://poolman.sf.net is perhaps most popular (but not updated).
 
 Tomcat comes with it's own (but can't be unit tested)
 
 and... a good sample good practices tomcat web app is at 
 basicPortal.sh.net.
 
 hth,
 V.
 
 
 Felipe Schnack wrote:
Anyone uses pgSQL with Tomcat 4? I'm starting a project with it and
  would like to know if the ConnectionPooling provided with the jdbc
  drivers for this database are good or not.  
  
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
-- 

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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: pgSQL connection pooling

2002-08-19 Thread Turner, John


Documentation for Jakarta DBCP:
http://jakarta.apache.org/commons/dbcp.html

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

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 10:04 AM
To: Tomcat Users List
Subject: Re: pgSQL connection pooling


  Well, this poolman isn't updated anymore...
  how can I use tomcat's own connectionpooling?
On Mon, 2002-08-19 at 10:51, V. Cekvenich wrote:
 This should be a faq:
 http://poolman.sf.net is perhaps most popular (but not updated).
 
 Tomcat comes with it's own (but can't be unit tested)
 
 and... a good sample good practices tomcat web app is at 
 basicPortal.sh.net.
 
 hth,
 V.
 
 
 Felipe Schnack wrote:
Anyone uses pgSQL with Tomcat 4? I'm starting a project with it and
  would like to know if the ConnectionPooling provided with the jdbc
  drivers for this database are good or not.  
  
 
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
-- 

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:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Re: pgSQL connection pooling

2002-08-19 Thread Ned Wolpert

Well, PoolMan 2.0.4 is still good, and PoolMan isn't dead its
'resting'. :-)

BTW, pgsql 7.3 JDBC driver has pooling... catch is you've got to build
it from the CVS repository.  Check out
org.postgresql.jdbc2.optionl.PoolingDataSource

On Mon, 2002-08-19 at 07:04, Felipe Schnack wrote:
   Well, this poolman isn't updated anymore...
   how can I use tomcat's own connectionpooling?
 On Mon, 2002-08-19 at 10:51, V. Cekvenich wrote:
  This should be a faq:
  http://poolman.sf.net is perhaps most popular (but not updated).
  
  Tomcat comes with it's own (but can't be unit tested)
  
  and... a good sample good practices tomcat web app is at 
  basicPortal.sh.net.
  
  hth,
  V.
  
  
  Felipe Schnack wrote:
 Anyone uses pgSQL with Tomcat 4? I'm starting a project with it and
   would like to know if the ConnectionPooling provided with the jdbc
   drivers for this database are good or not.  
   
  
  
  
  --
  To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]
  
 -- 
 
 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:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
-- 

Virtually, 
Ned Wolpert [EMAIL PROTECTED] 4e75




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




Re: pgSQL connection pooling

2002-08-19 Thread Ned Wolpert

Ooop... forgot; download poolman 2.0.4 at
http://sourceforge.net/projects/poolman/ 

On Mon, 2002-08-19 at 07:23, Ned Wolpert wrote:
 Well, PoolMan 2.0.4 is still good, and PoolMan isn't dead its
 'resting'. :-)
 
 BTW, pgsql 7.3 JDBC driver has pooling... catch is you've got to build
 it from the CVS repository.  Check out
 org.postgresql.jdbc2.optionl.PoolingDataSource
 
 On Mon, 2002-08-19 at 07:04, Felipe Schnack wrote:
Well, this poolman isn't updated anymore...
how can I use tomcat's own connectionpooling?
  On Mon, 2002-08-19 at 10:51, V. Cekvenich wrote:
   This should be a faq:
   http://poolman.sf.net is perhaps most popular (but not updated).
   
   Tomcat comes with it's own (but can't be unit tested)
   
   and... a good sample good practices tomcat web app is at 
   basicPortal.sh.net.
   
   hth,
   V.
   
   
   Felipe Schnack wrote:
  Anyone uses pgSQL with Tomcat 4? I'm starting a project with it and
would like to know if the ConnectionPooling provided with the jdbc
drivers for this database are good or not.  

   
   
   
   --
   To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail: mailto:[EMAIL PROTECTED]
   
  -- 
  
  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:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]
  
  
 -- 
 
 Virtually, 
 Ned Wolpert [EMAIL PROTECTED] 4e75
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
-- 

Virtually, 
Ned Wolpert [EMAIL PROTECTED] 4e75




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




Running 2 version of tomcat on same machine

2002-08-19 Thread Ashish Kulkarni

 Hi,
 
 I am currently running tomcat4.0.4 on my windows
 2000
 server , I just downloaded jboss3.0 which comes with
 tomcat4.0.3, so i want to install it also, but i
 dont
 want to remove my existing tomcat4.0.4 with all the
 exisiting applications running on it...
 so what care should i take so there is no conflicts
 later on,
 here is what i plan
 1. I will change all the ports on tomcat4.0.4 as i
 dont want to have any conficts of ports and also
 that
 i dont want to modify jboss ports as i am very new
 to
 it.
 2. How can i have 2 services running in win2000 one
 for tomcat4.0.4 and other for tomcat4.0.3,
 3. ANy suggestion for which ports jboss uses so will
 not use them for tomcat4.0.4,
 4. Can i have apache2.0.39 connecting to both
 version
 of tomcat.
 Ashish
 


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

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




Publishing WSDL

2002-08-19 Thread Thébault, Médérick

Hello,

I got a web service which works under tomcat. Everything is fine but to
be as clean as possible, I would like to publish the wsdl by accessing
to some http://..?wsdl;.

For the moment, Tomcat is responding to this request :
http://localhost:8080/myservice?WSDL; with

No WSDL document available for publishing.

Please check your deployment information.

So this proves that something is set somewhere but the wrong way. Do U
have an idea?

Thanx

Mederick



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




RE: Precompilation

2002-08-19 Thread Rossen Raykov

Mark,

Try to use -webinc option and include generated web.xml in the application's
deployment descriptor.
This will map all the generated Java classes to the corresponding JSP URLs.

Regards,
Rossen

 -Original Message-
 From: Mark O'Driscoll [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 19, 2002 6:27 AM
 To: Tomcat Users List
 Subject: Precompilation
 
 
 Hi,
 
 I currently recompile all my jsp's using jspc and update the 
 entries in
 web.xml as created by jspc.
 
 This is fine but not quite what I want. One of the problems is that my
 default welcome page is index.jsp which, of course, is
 no longer there when the file is precompiled. I have got 
 around this by
 having a index.html that redirects after 0 secs to index.jsp.
 
 Any solution to this?
 
 I would like to be precompile so that all jsp go into
 localhost/work/applicationfred$jsp.{java,class} as tomcat 
 does. Any easy
 way to do this?
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




ajp13 threads blocking

2002-08-19 Thread Andrea Carpani

Hi everybody: I'm experiencing a strange and randomic problem with my
tomcat configuration. Here's the software: I'm using Tomcat 4.0.4 with
sun's jdk 1.3.1_04 as a servlet and jsp container, behind a 1.2.36
Apache web server.

CATALINA_OPTS=-server -ms256m -mx512m -Xss32k

The server starts up fine, but after a (more or less) 12 hours running
time something breaks (loks up?) and I get these on mod_jk.log:

[Mon Aug 19 03:21:52 2002]  [jk_ajp_common.c (1009)]: Error reading
reply
[Mon Aug 19 03:21:52 2002]  [jk_ajp_common.c (1146)]: In
jk_endpoint_t::service, ajp_get_reply failed in send loop 0
[Mon Aug 19 03:21:52 2002]  [jk_ajp_common.c (651)]:
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed

At this point jakarta is more or less hung and there's little you can do
with it: one option is to restart it, another is to restart the apache
web server and everything seems to run fine for another 12 h or so.

I've had tomcat running under a java profiler and it looks like the
ajp13 threads are all blocked when things go wrong.

Is this a known bug?
Thanks.


-- 
- .a.c.
- Andrea Carpani
- [EMAIL PROTECTED]

http://www.vitaminic.[it|com|co.uk|de|es|fr|nl|se|dk|ie]
http://www.peoplesound.com
http://www.iuma.com
http://www.zipmind.it
http://www.francemp3.com (www.mp3france.com)
___
DISCLAIMER, PLEASE NOTE: This communication is intended only for use by
the
addressee. It may contain confidential or privileged information.
Transmission, distribution and/or copy cannot be permitted. Please
notify
Vitaminic Spa immediately by reply e-mail if you are not the intended
recipient. Vitaminic Spa does not accept liability for corruption,
interception or amendment, if any, or the consequences thereof.
___



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




RE: tomcat/unix security manager questions

2002-08-19 Thread Rossen Raykov

Unix permissions do take precedence over java security policy.

Regards,
Rossen

 -Original Message-
 From: Richard Smith [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, August 18, 2002 11:12 PM
 To: [EMAIL PROTECTED]
 Subject: tomcat/unix security manager questions
 
 
 
 Hi All,
 
 Just wondering if you could help me clarify a few questions I 
 have about 
 tomcat
 and catalina.policy. Im running tomcat 4.0.4 (w/ security 
 manager) with 
 mod_jk
 on solaris with about 300+ users, all of whom can deploy 
 jsp/servlets from 
 their public_html directory.
 
 A user requirement is that they must is to be able to 
 read/write files in 
 their
 home directory. This is what im a little confused about. I 
 understand I can 
 put
 an entry like:
 
 permission java.io.FilePermission /home/-, 
 read,write,delete,execute;
 
 in catalina.policy, but how does this enable tomcat to write 
 to other user's
 home directories (when tomcat is running as a user with 
 minimal privledges)? 
 Or
 must I change permissions on the file to allow the user that 
 is running 
 tomcat
 to write to it (is this the normal practice?).
 
 Also, this is probably more a java question, but do standard unix 
 permissions
 always take precedence over what is set in catalina.policy? (In my 
 understanding
 the unix permissions take precedence, but I just wanted to 
 make sure(please
 excuse my java ignorance))
 
 Any help appreciated,
 
 Cheers,
 
 
 _
 Join the world's largest e-mail service with MSN Hotmail. 
 http://www.hotmail.com
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




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

2002-08-19 Thread Luminous Heart

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.java: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(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: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.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.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:180)
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:170)
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.java:174)
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.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)
 


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

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




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

2002-08-19 Thread Campano, Troy

Have you tried commenting out different parts of your code to see what part is causing 
this problem?

-Original Message-
From: Luminous Heart [mailto:[EMAIL PROTECTED]] 
Sent: Monday, August 19, 2002 11:14 AM
To: Tomcat Users List
Subject: It would be great IF somebody answered me, ONCE, for change :(


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.java: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(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: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.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.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:180)
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:170)
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.java:174)
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.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)
 


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

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


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




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

2002-08-19 Thread Paul Caton

Common sense should tell you that posting snotty subject-lines will
not help persuade list users to answer you. You seem to think that
someone has an *obligation* to jump and answer you as soon as
possible, but this is not the case. Be patient and polite and I'll bet
someone responds.

Paul Caton

-- 

Project Analyst/Electronic Publications Editor, WWP
Scholarly Technology Group

 e-mail: [EMAIL PROTECTED]
tel: (401) 863-3619
address: Box 1841, Brown University, Providence RI 02912




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




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

2002-08-19 Thread Craig R. McClanahan



On Mon, 19 Aug 2002, tek1 wrote:

 Date: Mon, 19 Aug 2002 18:15:54 +0900
 From: tek1 [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: retrieving HttpSession in Filter?
 ServletResponse.setContentLength()?

 hi craig.

 thanks for your reply.

 after digging deeper, i now know what's happening.  it's quite strange.

 i'm calling tomcat from a (mobile) java client (not a web browser) and the
 client needs to know exactly how many bytes are being sent back to it by
 the server.

 when i call HttpServletResponse.setContentLength(##) in the servlet, the
 client receives the data without problem.

 however, my filter is doing post-processing on what the servlet wrote
 before sending the response back to the client.  as such, i change my
 servlet code to *not* set the content length, and instead, the filter calls
 ServletResponse.setContentLength(##) before returning the response to the
 client.  however, the client hangs for about a minute b/c it can't
 determine the length of the data being sent back from the server.  so
 it seems that the problem lies in the filter when it calls
 ServletResponse.setContentLength(##).

 the problem doesn't happen with a normal web browser, as (i believe that)
 web browsers are able to somehow determine the size of the data being
 returned from the server (whereas the mobile java client that i'm working
 with isn't able to determine the size; thus the requirement to set the
 content length).

 do you have an idea of why this would be happening?


If your filter is calling response.setContentLength() -- or any other
header setting method, such as trying to add a cookie -- after the
response has been committed, then this attempt to set the header will get
ignored just like it would if your original servlet had done so.

If you have a post-processing filter that can change the content length of
the response, you are going to need to write a response wrapper that:
* Buffers up the output from the servlet into either memory or a
  temporary file
* After the real servlet completes, do whatever modifications
  are needed, calls setContentLength() on the real response, and
  then copies the modified output data to the real response.

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

 thank you.


Craig





 At 10:21 02/08/17 -0700, you wrote:


 On Sat, 17 Aug 2002, tek1 wrote:
 
   Date: Sat, 17 Aug 2002 17:47:32 +0900
   From: tek1 [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Subject: Re: retrieving HttpSession in Filter?
  
   eddie and craig, thanks for your replies.
  
   i was calling the HttpServletRequest.getSession() before the response was
   committed.  in the below code on line 4, i didn't mention that was using a
   responseWrapper, so the servlet used the responseWrapper, and when control
   returned to the filter, the filter called HttpServletRequest.getSession()
   before committing the response.
  
   HttpServletRequest.getSession(false) works, but
   HttpServletRequest.getSession() *before* committing the response, resulted
   in a hang...
  
   is that behavior correct?
  
 
 There shouldn't ever be a hang, obviously.  Are you sure you don't have
 any infinite loop in your wrappers somewhere (it's pretty easy to get that
 messed up)?
 
 There aren't any hangs in the standard Tomcat code for getSession().
 
 Craig
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




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




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

2002-08-19 Thread Luminous Heart

Well, it is a big application. And it was working fine
with tc3.x. I have never had such a problem. I noticed
that I had to do lots of modifications to my code to
get TC4.0.4 work. What is different?

--- Campano, Troy [EMAIL PROTECTED]
wrote:
 Have you tried commenting out different parts of
 your code to see what part is causing this problem?
 
 -Original Message-
 From: Luminous Heart
 [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, August 19, 2002 11:14 AM
 To: Tomcat Users List
 Subject: It would be great IF somebody answered me,
 ONCE, for change :(
 
 
 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.java: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(ApplicationFilterChain.java:247)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: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.java:190)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.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:180)
 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:170)
 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.java:174)
 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.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
 at

org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
 at java.lang.Thread.run(Thread.java:536)
  
 

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

2002-08-19 Thread Stuart Stephen

Probably quite a lot then. ;o)

-Original Message-
From: Luminous Heart [mailto:[EMAIL PROTECTED]]
Sent: 19 August 2002 16:22
To: Tomcat Users List
Subject: RE: It would be great IF somebody answered me, ONCE, for change
:(


Well, it is a big application. And it was working fine
with tc3.x. I have never had such a problem. I noticed
that I had to do lots of modifications to my code to
get TC4.0.4 work. What is different?

--- Campano, Troy [EMAIL PROTECTED]
wrote:
 Have you tried commenting out different parts of
 your code to see what part is causing this problem?

 -Original Message-
 From: Luminous Heart
 [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 19, 2002 11:14 AM
 To: Tomcat Users List
 Subject: It would be great IF somebody answered me,
 ONCE, for change :(


 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:9
9)
 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.ja
va: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(Application
FilterChain.java:247)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 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.ja
va:190)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:531)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 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:180
)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at

org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 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.java
:174)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at


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

2002-08-19 Thread Craig R. McClanahan



On Mon, 19 Aug 2002, Luminous Heart wrote:

 Date: Mon, 19 Aug 2002 08:14:08 -0700 (PDT)
 From: Luminous Heart [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: It would be great IF somebody answered me, ONCE, for change :(

 I keep on asking this question but noone helps. Is it
 a bug in TC?


Since Tomcat doesn't do any database processing of its own, this issue is
virtually guaranteed to be a bug in your code, or (much less likely, but
possible) a bug in the postgres or poolman packages.  THerefore, asking
for help on a Tomcat list isn't likely to be useful -- especially since
you don't include any of the code on your page that illustrates what you
are trying to do.

Craig


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




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

2002-08-19 Thread Campano, Troy

I don't know, but if you want to find out what is making your app break you need to 
find the cause first.
By finding out what is pointing to a null value, it could help.



-Original Message-
From: Luminous Heart [mailto:[EMAIL PROTECTED]] 
Sent: Monday, August 19, 2002 11:22 AM
To: Tomcat Users List
Subject: RE: It would be great IF somebody answered me, ONCE, for change :(


Well, it is a big application. And it was working fine
with tc3.x. I have never had such a problem. I noticed
that I had to do lots of modifications to my code to
get TC4.0.4 work. What is different?

--- Campano, Troy [EMAIL PROTECTED]
wrote:
 Have you tried commenting out different parts of
 your code to see what part is causing this problem?
 
 -Original Message-
 From: Luminous Heart
 [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 19, 2002 11:14 AM
 To: Tomcat Users List
 Subject: It would be great IF somebody answered me,
 ONCE, for change :(
 
 
 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.java: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(ApplicationFilterChain.java:247)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: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.java:190)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.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:180)
 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:170)
 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.java:174)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
  

more pool problems

2002-08-19 Thread Felipe Schnack

  I'm still trying to use tomcat4's connectionpooling mechanism. I just
added the following code to my server.xml. I added too the needed tags
to web.xml. Tomcat starts ok, but when I try to get the DataSource from
the InitialContext I get an ClassNotFoundException:
org.hsql.jdbcDriver.
  Where this came from???

  server.xml:

Context path=/poolman docBase=poolman debug=5  reloadable=false
crossContext=true
  Logger
className=org.apache.catalina.logger.FileLogger   
prefix=localhost_poolman_log. suffix=.txt timestamp=true/
  Resource name=jdbc/w2 auth=Container
type=javax.sql.DataSource/
  ResourceParams name=jdbc/w2
 
parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter
  parameternamemaxActive/namevalue100/value/parameter
  parameternamemaxIdle/namevalue3/value/parameter
  parameternamemaxWait/namevalue100/value/parameter
  parameternameusername/namevaluepgsql/value/parameter
  parameternamepassword/namevalueKzy8@0o*/value/parameter
 
parameternamedriverClassName/namevalueorg.postgresql.Driver/value/parameter
 
parameternameurl/namevaluejdbc:postgresql://jabba:5432/w2/value/parameter
  /ResourceParams
/Context

-- 

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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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

2002-08-19 Thread Luminous Heart

I bet you are the Snot, not just Snotty. How was I
being snotty by asking for someone to help. Yes we are
all obligated towards each other. That is the basic
concept of OpenSource, if you have not noticed. We are
a community of highly involved professionals and we
think that we have to be there for eachother. And
trust me. I would reply to you ASAP if I knew the
solution. So if you do not know the solution do not
fill up the bandwidth with your counterproductive
emails.

Best regards.

--- Paul Caton [EMAIL PROTECTED] wrote:
 Common sense should tell you that posting snotty
 subject-lines will
 not help persuade list users to answer you. You seem
 to think that
 someone has an *obligation* to jump and answer you
 as soon as
 possible, but this is not the case. Be patient and
 polite and I'll bet
 someone responds.
 
 Paul Caton
 
 -- 
 
 Project Analyst/Electronic Publications Editor, WWP
 Scholarly Technology Group
 
  e-mail: [EMAIL PROTECTED]
 tel: (401) 863-3619
 address: Box 1841, Brown University, Providence RI
 02912
 
   
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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

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




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

2002-08-19 Thread Paul McGovern


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(StandardPipeline.java:472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
 at
 org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
 at java.lang.Thread.run(Thread.java:536)



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

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




RE: more pool problems

2002-08-19 Thread Campano, Troy

Have you tried searching for org.hsql.jdbcDriver in server.xml?

-Original Message-
From: Felipe Schnack [mailto:[EMAIL PROTECTED]] 
Sent: Monday, August 19, 2002 11:28 AM
To: [EMAIL PROTECTED]
Subject: more pool problems


  I'm still trying to use tomcat4's connectionpooling mechanism. I just added the 
following code to my server.xml. I added too the needed tags to web.xml. Tomcat starts 
ok, but when I try to get the DataSource from the InitialContext I get an 
ClassNotFoundException: org.hsql.jdbcDriver.
  Where this came from???

  server.xml:

Context path=/poolman docBase=poolman debug=5  reloadable=false 
crossContext=true
  Logger
className=org.apache.catalina.logger.FileLogger   
prefix=localhost_poolman_log. suffix=.txt timestamp=true/
  Resource name=jdbc/w2 auth=Container type=javax.sql.DataSource/
  ResourceParams name=jdbc/w2
 
parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter
  parameternamemaxActive/namevalue100/value/parameter
  parameternamemaxIdle/namevalue3/value/parameter
  parameternamemaxWait/namevalue100/value/parameter
  parameternameusername/namevaluepgsql/value/parameter
  parameternamepassword/namevalueKzy8@0o*/value/parameter
 
parameternamedriverClassName/namevalueorg.postgresql.Driver/value/parameter
 
parameternameurl/namevaluejdbc:postgresql://jabba:5432/w2/value/parameter
  /ResourceParams
/Context

-- 

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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


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




RE: more pool problems

2002-08-19 Thread Felipe Schnack

  It's not there, i checked.

On Mon, 2002-08-19 at 12:32, Campano, Troy wrote:
 Have you tried searching for org.hsql.jdbcDriver in server.xml?
 
 -Original Message-
 From: Felipe Schnack [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, August 19, 2002 11:28 AM
 To: [EMAIL PROTECTED]
 Subject: more pool problems
 
 
   I'm still trying to use tomcat4's connectionpooling mechanism. I just added the 
following code to my server.xml. I added too the needed tags to web.xml. Tomcat 
starts ok, but when I try to get the DataSource from the InitialContext I get an 
ClassNotFoundException: org.hsql.jdbcDriver.
   Where this came from???
 
   server.xml:
 
 Context path=/poolman docBase=poolman debug=5  reloadable=false 
crossContext=true
   Logger
 className=org.apache.catalina.logger.FileLogger   
 prefix=localhost_poolman_log. suffix=.txt timestamp=true/
   Resource name=jdbc/w2 auth=Container type=javax.sql.DataSource/
   ResourceParams name=jdbc/w2
  
 
parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter
   parameternamemaxActive/namevalue100/value/parameter
   parameternamemaxIdle/namevalue3/value/parameter
   parameternamemaxWait/namevalue100/value/parameter
   parameternameusername/namevaluepgsql/value/parameter
   parameternamepassword/namevalueKzy8@0o*/value/parameter
  
 
parameternamedriverClassName/namevalueorg.postgresql.Driver/value/parameter
  
 parameternameurl/namevaluejdbc:postgresql://jabba:5432/w2/value/parameter
   /ResourceParams
 /Context
 
 -- 
 
 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:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
-- 

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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




servlet-jdbc-SQL server

2002-08-19 Thread Matt Brennan

Just taking some stumbling first steps talking to SQL server from a
servlet using the Microsoft JDBC driver. Servlet container is tomcat
4.0.4. Quick question if I may:

I need to insert a row into an SQL Server table and have the servlet
generate a page that includes an automatically generated IDENTITY from
the newly created row. How after the insert can I find the generated ID
without conducting a subsequent query (which would have no guarantee of
returning uniquely the newly inserted record)?

  // 'con' is a connection to MS-SQLserver with SelectMethod=cursor
  Statement state = con.createStatement(
ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);

  // Generate an empty result set
  ResultSet content  = state.executeQuery(sqlQuery);

  content.moveToInsertRow();
  // Column 1 is id int IDENTITY NOT NULL PRIMARY KEY
  // Column 2 is name VARCHAR(20)
  content.updateString (2, something);
  content.insertRow();

  // If I then query the inserted row, to find the newly generated
  // IDENTITY value I get MIN_INT instead of '1' (the default first
  // identity generated by SQL server if no seed is given)
  int id = content.getInt (1);

Is this some peculiarity of the servlet interface to the driver, to the
driver itself or just my bad undestanding of the insert process? Is it
possible to configure the Statement so that the Insert row in the Result
Set gets updated when the insert takes place and the 'id' gets generated?

Please excuse the fact that this query starts to look more like a JDBC
query than a tomcat query - not quite sure where the problem lies -
tomcat+driver? driver? my understanding (most likely!). I am hoping that
other servlet developers have crossed this bridge before.

   matt



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




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

2002-08-19 Thread Luminous Heart

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.*%

!-- %@ include file=no-cache.jsp % --

form action=UserAccount.jsp method=post
name=access_form
  table width=90% align=center
  tr 
  th bgcolor=#FF colspan=3 font
size=5User Access/font/th

tdnbsp;/td
tdnbsp;/td
tdnbsp;/td
  /tr
  tr 
td
center
  table cellpadding=4 cellspacing=2 border=0
th bgcolor=#FF colspan=2 font
size=5User Access by userid/font/th
tr bgcolor=#c8d8f8 
  td valign=top colspan=2 bUser
Name/bbr
input type=text name=byusername
size=25 value=  maxlength=25
  /td
/tr
  /table
/center
/td
td
center
  table cellpadding=4 cellspacing=2 border=0
th bgcolor=#FF colspan=2 font
size=5User Access by Date/fontfont size=1/font 
/th
tr bgcolor=#c8d8f8 
  td valign=top bDate/bbr
input type=text name=bydate
value= size=25  maxlength=125
br
  /td
/tr
  /table
/center
/td
td
center
  table cellpadding=4 cellspacing=2 border=0
th bgcolor=#FF colspan=2 font
size=5USER Access by IP Address/font 
/th
tr bgcolor=#c8d8f8 
  td valign=top bIP Address/bbr
input type=text name=byipaddress
value= size=25  maxlength=125
br
  /td
/tr
  /table
/center
/td
  /tr
  tr 
tdnbsp;/td
td align=center bgcolor=#c8d8f8 
  input type=submit value=Submit
name=submit
/td
tdnbsp;/td
  /tr
/table
/form
%
String inUser = null; 
String inDate = null; 
String inIPadd = null;

try{
   inUser =
(request.getParameter(byusername)).trim();
   if (inUser == null) inUser = ;
   inDate = request.getParameter(bydate).trim();
   if (inDate == null) inDate = ;
   inIPadd =
request.getParameter(byipaddress).trim(); 
   if (inIPadd == null) inIPadd = ;
   
}catch(NullPointerException npe){
out.println(Please choose a query option.);

}

  PreparedStatement ps = null;
 /* Log user access count to the system */
 
SQLManager thisManager = null;
if (thisManager == null)
  thisManager = SQLManager.getInstance();

Connection myConn = null;
 
 if (myConn == null)
   myConn = thisManager.requestConnection();
if (((inUser != null)  !inUser.equals() ) ||
((inDate != null)  !inDate.equals()) || ((inIPadd
!= null)  !inIPadd.equals()))
{

java.util.Date today = new java.util.Date();
java.sql.Timestamp stamp = new
java.sql.Timestamp(today.getTime());
 
String stampStr = stamp.toString();
 
String timeofday =
stampStr.substring(11,stampStr.length());
String date = stampStr.substring(0,11);
 
String todayatZero = date +  00:00:00.;
 
todayatZero = 2002-08-01 00:00:00.;

inDate +=  00:00:00.;

boolean ValueEntered = false;
if (((inUser != null) (inDate != null)  (inIPadd
!= null))  (!inUser.equals()  !inDate.equals()
 !inIPadd.equals()) )
{
//out.println(all are not empty and not null!);
ps = myConn.prepareStatement (select * from
DataBaseTableName where username = ? and useripaddress
= ? and timestamp = ? order by timestamp desc);
ps.setString(1, inUser);
ps.setString(2, inIPadd);
ps.setString(3, inDate);
ValueEntered = true;

}else{ 
if ((inUser != null)  (!inUser.equals())) 
{
ps = myConn.prepareStatement (select * from
DataBaseTableName where username = ? order by
timestamp desc);
ps.setString(1, inUser);
//out.println(inUser is not empty!);
ValueEntered = true;
}else 
if ((inIPadd != null) (!inIPadd.equals() ))
{
ps = myConn.prepareStatement (select * from
DataBaseTableName where useripaddress = ? order by
timestamp desc);
ps.setString(1, inIPadd); 
//out.println(inIPadd is not empty!);
ValueEntered = true;
}else
if ((inDate != null) (!inDate.equals() ))
{
ps = myConn.prepareStatement (select * from
DataBaseTableName where timestamp = ? order by
timestamp desc);
ps.setString(1, inDate); 
//out.println(inDate is not empty!);
ValueEntered = true;
}else
if (((inUser != null)  !inUser.equals()) 
((inIPadd != null)  !inIPadd.equals()))
{
ps = 

RE: servlet-jdbc-SQL server

2002-08-19 Thread Mike Jackson

With oracle there's a way to specify that a insert does a return, it's
something like insert into tablea ( a ) values ( 'a' ) returning id.
I know this isn't oracle that you're asking about, but you might try
using that syntax on ms sql and see what happens.  Or it might help to
find it in their documentation (there's a guide oracle vs ms sql in the
documentation).

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

 -Original Message-
 From: Matt Brennan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 19, 2002 8:36 AM
 To: [EMAIL PROTECTED]
 Subject: servlet-jdbc-SQL server
 
 
 Just taking some stumbling first steps talking to SQL server from a
 servlet using the Microsoft JDBC driver. Servlet container is tomcat
 4.0.4. Quick question if I may:
 
 I need to insert a row into an SQL Server table and have the servlet
 generate a page that includes an automatically generated IDENTITY from
 the newly created row. How after the insert can I find the generated ID
 without conducting a subsequent query (which would have no guarantee of
 returning uniquely the newly inserted record)?
 
   // 'con' is a connection to MS-SQLserver with SelectMethod=cursor
   Statement state = con.createStatement(
 ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
 
   // Generate an empty result set
   ResultSet content  = state.executeQuery(sqlQuery);
 
   content.moveToInsertRow();
   // Column 1 is id int IDENTITY NOT NULL PRIMARY KEY
   // Column 2 is name VARCHAR(20)
   content.updateString (2, something);
   content.insertRow();
 
   // If I then query the inserted row, to find the newly generated
   // IDENTITY value I get MIN_INT instead of '1' (the default first
   // identity generated by SQL server if no seed is given)
   int id = content.getInt (1);
 
 Is this some peculiarity of the servlet interface to the driver, to the
 driver itself or just my bad undestanding of the insert process? Is it
 possible to configure the Statement so that the Insert row in the Result
 Set gets updated when the insert takes place and the 'id' gets generated?
 
 Please excuse the fact that this query starts to look more like a JDBC
 query than a tomcat query - not quite sure where the problem lies -
 tomcat+driver? driver? my understanding (most likely!). I am hoping that
 other servlet developers have crossed this bridge before.
 
matt
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 


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




RE: more pool problems

2002-08-19 Thread Campano, Troy

Well, if it's not there than it has to be called from somewhere else. Hsql is apache's 
Java database I think and usually if you are using examples from Apache's site, they 
can tend to you HSQL in the examples.

Try looking in your page, any pages that your page calls, web.xml and server.xml.

I'd imagine it must be in there somewhere.



-Original Message-
From: Felipe Schnack [mailto:[EMAIL PROTECTED]] 
Sent: Monday, August 19, 2002 11:37 AM
To: Tomcat Users List
Subject: RE: more pool problems


  It's not there, i checked.

On Mon, 2002-08-19 at 12:32, Campano, Troy wrote:
 Have you tried searching for org.hsql.jdbcDriver in server.xml?
 
 -Original Message-
 From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 19, 2002 11:28 AM
 To: [EMAIL PROTECTED]
 Subject: more pool problems
 
 
   I'm still trying to use tomcat4's connectionpooling mechanism. I just added the 
following code to my server.xml. I added too the needed tags to web.xml. Tomcat 
starts ok, but when I try to get the DataSource from the InitialContext I get an 
ClassNotFoundException: org.hsql.jdbcDriver.
   Where this came from???
 
   server.xml:
 
 Context path=/poolman docBase=poolman debug=5  reloadable=false 
crossContext=true
   Logger
 className=org.apache.catalina.logger.FileLogger   
 prefix=localhost_poolman_log. suffix=.txt timestamp=true/
   Resource name=jdbc/w2 auth=Container type=javax.sql.DataSource/
   ResourceParams name=jdbc/w2
  
 
parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter
   parameternamemaxActive/namevalue100/value/parameter
   parameternamemaxIdle/namevalue3/value/parameter
   parameternamemaxWait/namevalue100/value/parameter
   parameternameusername/namevaluepgsql/value/parameter
   parameternamepassword/namevalueKzy8@0o*/value/parameter
  
 parameternamedriverClassName/namevalueorg.postgresql.Driver/v
 alue/parameter
  
 parameternameurl/namevaluejdbc:postgresql://jabba:5432/w2/value/parameter
   /ResourceParams
 /Context
 
 --
 
 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:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
-- 

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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


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




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

2002-08-19 Thread Mike Jackson

You might want to close your database connection, or at least return it to
the pool (I don't see you doing that, it ought to be after you close the
prepared statement).

--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.*%

 !-- %@ include file=no-cache.jsp % --

 form action=UserAccount.jsp method=post
 name=access_form
   table width=90% align=center
   tr
   th bgcolor=#FF colspan=3 font
 size=5User Access/font/th

 tdnbsp;/td
 tdnbsp;/td
 tdnbsp;/td
   /tr
   tr
 td
 center
   table cellpadding=4 cellspacing=2 border=0
 th bgcolor=#FF colspan=2 font
 size=5User Access by userid/font/th
 tr bgcolor=#c8d8f8
   td valign=top colspan=2 bUser
 Name/bbr
 input type=text name=byusername
 size=25 value=  maxlength=25
   /td
 /tr
   /table
 /center
 /td
 td
 center
   table cellpadding=4 cellspacing=2 border=0
 th bgcolor=#FF colspan=2 font
 size=5User Access by Date/fontfont size=1/font
 /th
 tr bgcolor=#c8d8f8
   td valign=top bDate/bbr
 input type=text name=bydate
 value= size=25  maxlength=125
 br
   /td
 /tr
   /table
 /center
 /td
 td
 center
   table cellpadding=4 cellspacing=2 border=0
 th bgcolor=#FF colspan=2 font
 size=5USER Access by IP Address/font
 /th
 tr bgcolor=#c8d8f8
   td valign=top bIP Address/bbr
 input type=text name=byipaddress
 value= size=25  maxlength=125
 br
   /td
 /tr
   /table
 /center
 /td
   /tr
   tr
 tdnbsp;/td
 td align=center bgcolor=#c8d8f8
   input type=submit value=Submit
 name=submit
 /td
 tdnbsp;/td
   /tr
 /table
 /form
 %
   String inUser = null;
   String inDate = null;
   String inIPadd = null;

   try{
  inUser =
 (request.getParameter(byusername)).trim();
  if (inUser == null) inUser = ;
  inDate = request.getParameter(bydate).trim();
  if (inDate == null) inDate = ;
  inIPadd =
 request.getParameter(byipaddress).trim();
  if (inIPadd == null) inIPadd = ;

   }catch(NullPointerException npe){
   out.println(Please choose a query option.);

   }

 PreparedStatement ps = null;
  /* Log user access count to the system */

 SQLManager thisManager = null;
 if (thisManager == null)
   thisManager = SQLManager.getInstance();

 Connection myConn = null;

if (myConn == null)
  myConn = thisManager.requestConnection();
   if (((inUser != null)  !inUser.equals() ) ||
 ((inDate != null)  !inDate.equals()) || ((inIPadd
 != null)  !inIPadd.equals()))
   {

 java.util.Date today = new java.util.Date();
 java.sql.Timestamp stamp = new
 java.sql.Timestamp(today.getTime());

 String stampStr = stamp.toString();

 String timeofday =
 stampStr.substring(11,stampStr.length());
 String date = stampStr.substring(0,11);

 String todayatZero = date +  00:00:00.;

 todayatZero = 2002-08-01 00:00:00.;

 inDate +=  00:00:00.;

   boolean ValueEntered = false;
 if (((inUser != null) (inDate != null)  (inIPadd
 != null))  (!inUser.equals()  !inDate.equals()
  !inIPadd.equals()) )
 {
 //out.println(all are not empty and not null!);
 ps = myConn.prepareStatement (select * from
 DataBaseTableName where username = ? and useripaddress
 = ? and timestamp = ? order by timestamp desc);
 ps.setString(1, inUser);
 ps.setString(2, inIPadd);
 ps.setString(3, inDate);
 ValueEntered = true;

 }else{
 if ((inUser != null)(!inUser.equals()))
 {
 ps = myConn.prepareStatement (select * from
 DataBaseTableName where username = ? order by
 timestamp desc);
 ps.setString(1, inUser);
 //out.println(inUser is not empty!);
 ValueEntered = true;
 }else
 if ((inIPadd != null) (!inIPadd.equals() ))
 {
 ps = myConn.prepareStatement (select * from
 

Webalizer tricks on Tomcat server?

2002-08-19 Thread Glenn Parsons

Hello All,

I'm looking for tricks to get Webalizer version 1.3x to collect data from 
hits on a Tomcat server. I have tried numerous tweaks to no avail.

Thanks,
G


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




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

2002-08-19 Thread Mike Jackson

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.*%

 !-- %@ include file=no-cache.jsp % --

 form action=UserAccount.jsp method=post
 name=access_form
   table width=90% align=center
   tr
   th bgcolor=#FF colspan=3 font
 size=5User Access/font/th

 tdnbsp;/td
 tdnbsp;/td
 tdnbsp;/td
   /tr
   tr
 td
 center
   table cellpadding=4 cellspacing=2 border=0
 th bgcolor=#FF colspan=2 font
 size=5User Access by userid/font/th
 tr bgcolor=#c8d8f8
   td valign=top colspan=2 bUser
 Name/bbr
 input type=text name=byusername
 size=25 value=  maxlength=25
   /td
 /tr
   /table
 /center
 /td
 td
 center
   table cellpadding=4 cellspacing=2 border=0
 th bgcolor=#FF colspan=2 font
 size=5User Access by Date/fontfont size=1/font
 /th
 tr bgcolor=#c8d8f8
   td valign=top bDate/bbr
 input type=text name=bydate
 value= size=25  maxlength=125
 br
   /td
 /tr
   /table
 /center
 /td
 td
 center
   table cellpadding=4 cellspacing=2 border=0
 th bgcolor=#FF colspan=2 font
 size=5USER Access by IP Address/font
 /th
 tr bgcolor=#c8d8f8
   td valign=top bIP Address/bbr
 input type=text name=byipaddress
 value= size=25  maxlength=125
 br
   /td
 /tr
   /table
 /center
 /td
   /tr
   tr
 tdnbsp;/td
 td align=center bgcolor=#c8d8f8
   input type=submit value=Submit
 name=submit
 /td
 tdnbsp;/td
   /tr
 /table
 /form
 %
   String inUser = null;
   String inDate = null;
   String inIPadd = null;

   try{
  inUser =
 (request.getParameter(byusername)).trim();
  if (inUser == null) inUser = ;
  inDate = request.getParameter(bydate).trim();
  if (inDate == null) inDate = ;
  inIPadd =
 request.getParameter(byipaddress).trim();
  if (inIPadd == null) inIPadd = ;

   }catch(NullPointerException npe){
   out.println(Please choose a query option.);

   }

 PreparedStatement ps = null;
  /* Log user access count to the system */

 SQLManager thisManager = null;
 if (thisManager == null)
   thisManager = SQLManager.getInstance();

 Connection myConn = null;

if (myConn == null)
  myConn = thisManager.requestConnection();
   if (((inUser != null)  !inUser.equals() ) ||
 ((inDate != null)  !inDate.equals()) || ((inIPadd
 != null)  !inIPadd.equals()))
   {

 java.util.Date today = new java.util.Date();
 java.sql.Timestamp stamp = new
 java.sql.Timestamp(today.getTime());

 String stampStr = stamp.toString();

 String timeofday =
 stampStr.substring(11,stampStr.length());
 String date = stampStr.substring(0,11);

 String todayatZero = date +  00:00:00.;

 todayatZero = 2002-08-01 00:00:00.;

 inDate +=  00:00:00.;

   boolean ValueEntered = false;
 if (((inUser != null) (inDate != null)  (inIPadd
 != null))  (!inUser.equals()  !inDate.equals()
  !inIPadd.equals()) )
 {
 //out.println(all are not empty and not null!);
 ps = myConn.prepareStatement (select * from
 DataBaseTableName where username = ? and useripaddress
 = ? and timestamp = ? order by timestamp desc);
 ps.setString(1, inUser);
 ps.setString(2, inIPadd);
 ps.setString(3, inDate);
 ValueEntered = true;

 }else{
 if ((inUser != null)

RE: servlet-jdbc-SQL server

2002-08-19 Thread Sexton, George

As long as you run a second query to retrieve the @@IDENTITY value using the
same connection handle, then you are guaranteed to receive the correct
value.

If you would like to verify that you are using the same connection handle,
run the profiler application, and watch your app run.

 driver itself or just my bad undestanding of the insert process? Is it
 possible to configure the Statement so that the Insert row in the Result
 Set gets updated when the insert takes place and the 'id' gets generated?

There are two ways of doing this. The first one is to use a stored procedure
to do the insert/update and have it return the value. The second , and I
haven't tried this would be to pass a compound statement insert into ...;
select @@IDENTITY.

I will give you one final warning about @@IDENTITY. If your statement
invokes another statement (trigger, etc) that performs an insert into a
table that contains an identity, you will receive the value of the last
created identity, which probably is not the one you expect.

George Sexton
MH Software, Inc.
Home of Connect Daily Web Calendar Software
http://www.mhsoftware.com/connectdaily.htm


-Original Message-
From: Matt Brennan [mailto:[EMAIL PROTECTED]]
Sent: 19 August, 2002 9:36 AM
To: [EMAIL PROTECTED]
Subject: servlet-jdbc-SQL server


Just taking some stumbling first steps talking to SQL server from a
servlet using the Microsoft JDBC driver. Servlet container is tomcat
4.0.4. Quick question if I may:

I need to insert a row into an SQL Server table and have the servlet
generate a page that includes an automatically generated IDENTITY from
the newly created row. How after the insert can I find the generated ID
without conducting a subsequent query (which would have no guarantee of
returning uniquely the newly inserted record)?

  // 'con' is a connection to MS-SQLserver with SelectMethod=cursor
  Statement state = con.createStatement(
ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);

  // Generate an empty result set
  ResultSet content  = state.executeQuery(sqlQuery);

  content.moveToInsertRow();
  // Column 1 is id int IDENTITY NOT NULL PRIMARY KEY
  // Column 2 is name VARCHAR(20)
  content.updateString (2, something);
  content.insertRow();

  // If I then query the inserted row, to find the newly generated
  // IDENTITY value I get MIN_INT instead of '1' (the default first
  // identity generated by SQL server if no seed is given)
  int id = content.getInt (1);

Is this some peculiarity of the servlet interface to the driver, to the
driver itself or just my bad undestanding of the insert process? Is it
possible to configure the Statement so that the Insert row in the Result
Set gets updated when the insert takes place and the 'id' gets generated?

Please excuse the fact that this query starts to look more like a JDBC
query than a tomcat query - not quite sure where the problem lies -
tomcat+driver? driver? my understanding (most likely!). I am hoping that
other servlet developers have crossed this bridge before.

   matt



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


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




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

2002-08-19 Thread Luminous Heart

Mike,
Yes I am returning the connection to the pool after
closing the ps. As you can see in the jsp code that I
have attached earlier to Craig, I am closing the
preparedstatement then returning the instance. Here
again the snippet.

%
/table
/body
/html
%}

  ps.close();
  thisManager.returnConnection(myConn);

/* End Log user access count to the system */
}%

--- Mike Jackson [EMAIL PROTECTED] wrote:
 You might want to close your database connection, or
 at least return it to
 the pool (I don't see you doing that, it ought to be
 after you close the
 prepared statement).
 
 --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.*%
 
  !-- %@ include file=no-cache.jsp % --
 
  form action=UserAccount.jsp method=post
  name=access_form
table width=90% align=center
tr
th bgcolor=#FF colspan=3
 font
  size=5User Access/font/th
 
  tdnbsp;/td
  tdnbsp;/td
  tdnbsp;/td
/tr
tr
  td
  center
table cellpadding=4 cellspacing=2
 border=0
  th bgcolor=#FF colspan=2 font
  size=5User Access by userid/font/th
  tr bgcolor=#c8d8f8
td valign=top colspan=2 bUser
  Name/bbr
  input type=text
 name=byusername
  size=25 value=  maxlength=25
/td
  /tr
/table
  /center
  /td
  td
  center
table cellpadding=4 cellspacing=2
 border=0
  th bgcolor=#FF colspan=2 font
  size=5User Access by Date/fontfont
 size=1/font
  /th
  tr bgcolor=#c8d8f8
td valign=top bDate/bbr
  input type=text name=bydate
  value= size=25  maxlength=125
  br
/td
  /tr
/table
  /center
  /td
  td
  center
table cellpadding=4 cellspacing=2
 border=0
  th bgcolor=#FF colspan=2 font
  size=5USER Access by IP Address/font
  /th
  tr bgcolor=#c8d8f8
td valign=top bIP
 Address/bbr
  input type=text
 name=byipaddress
  value= size=25  maxlength=125
  br
/td
  /tr
/table
  /center
  /td
/tr
tr
  tdnbsp;/td
  td align=center bgcolor=#c8d8f8
input type=submit value=Submit
  name=submit
  /td
  tdnbsp;/td
/tr
  /table
  /form
  %
  String inUser = null;
  String inDate = null;
  String inIPadd = null;
 
  try{
 inUser =
  (request.getParameter(byusername)).trim();
 if (inUser == null) inUser = ;
 inDate =
 request.getParameter(bydate).trim();
 if (inDate == null) inDate = ;
 inIPadd =
  request.getParameter(byipaddress).trim();
 if (inIPadd == null) inIPadd = ;
 
  }catch(NullPointerException npe){
  out.println(Please choose a query option.);
 
  }
 
PreparedStatement ps = null;
   /* Log user access count to the system */
 
  SQLManager thisManager = null;
  if (thisManager == null)
thisManager = SQLManager.getInstance();
 
  Connection myConn = null;
 
   if (myConn == null)
 myConn = thisManager.requestConnection();
  if (((inUser != null)  !inUser.equals() ) ||
  ((inDate != null)  !inDate.equals()) ||
 ((inIPadd
  != null)  !inIPadd.equals()))
  {
 
  java.util.Date today = new
 java.util.Date();
  java.sql.Timestamp stamp = new
  java.sql.Timestamp(today.getTime());
 
  String stampStr = stamp.toString();
 
  String timeofday =
  stampStr.substring(11,stampStr.length());
  String date = stampStr.substring(0,11);
 
  String todayatZero = date + 
 00:00:00.;
 
  todayatZero = 2002-08-01 00:00:00.;
 
  inDate +=  00:00:00.;
 
  boolean ValueEntered = false;
  if (((inUser != null) (inDate != null) 
 (inIPadd
  != null))  (!inUser.equals() 
 !inDate.equals()
   !inIPadd.equals()) )
  {
  //out.println(all are not empty and not null!);
  ps = myConn.prepareStatement (select * from
  

Capturing Standard Out in Windows

2002-08-19 Thread Cory Isaacson

I'm running Tomcat under Windows XP, and I want to redirect theTomcat
standard out to a file. I tried editing catalina.bat using '  logfile.txt'
to redirect it, but the java command doesn't seem to support this. Is there
another way to do this?

Thanks,

Cory

Cory Isaacson
President  CTO
Compuflex International
(818) 884-1168
[EMAIL PROTECTED]
www.compuflex.com



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




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

2002-08-19 Thread Luminous Heart

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 =
?xml version=1.0 encoding=UTF-8?

poolman

  management-modelocal/management-mode

  datasource

!-- == --
!-- Physical Connection Attributes --
!-- == --

!-- Standard JDBC Driver info --

dbnamewebdev/dbname
jndiNamewebdev/jndiName
driverorg.postgresql.Driver/driver
urljdbc:postgresql://localhost:6093/webdev/url

usernameJustAUserName/username
passwordJustAUserNamePassword/password

!-- Oracle needs this to be set to true --
nativeResultstrue/nativeResults

minimumSize1/minimumSize
maximumSize10/maximumSize
connectionTimeout600/connectionTimeout
userTimeout12/userTimeout
shrinkBy10/shrinkBy

   
logFile/usr/local/tomcat/logs/poolman.log/logFile
debuggingfalse/debugging

!-- Query Cache Attributes--

cacheEnabledfalse/cacheEnabled
cacheSize20/cacheSize
cacheRefreshInterval120/cacheRefreshInterval

  /datasource

/poolman

 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.*%
 
  !-- %@ include file=no-cache.jsp % --
 
  form action=UserAccount.jsp method=post
  name=access_form
table width=90% align=center
tr
th bgcolor=#FF colspan=3
 font
  size=5User Access/font/th
 
  tdnbsp;/td
  tdnbsp;/td
  tdnbsp;/td
/tr
tr
  td
  center
table cellpadding=4 cellspacing=2
 border=0
  th bgcolor=#FF colspan=2 font
  size=5User Access by userid/font/th
  tr bgcolor=#c8d8f8
td valign=top colspan=2 bUser
  Name/bbr
  input type=text
 name=byusername
  size=25 value=  maxlength=25
/td
  /tr
/table
  /center
  /td
  td
  center
table cellpadding=4 cellspacing=2
 border=0
  th bgcolor=#FF colspan=2 font
  size=5User Access by Date/fontfont
 size=1/font
  /th
  tr bgcolor=#c8d8f8
td valign=top bDate/bbr
  input type=text name=bydate
  value= size=25  maxlength=125
  br
/td
  /tr
/table
  /center
  /td
  td
  center
table cellpadding=4 cellspacing=2
 border=0
  th bgcolor=#FF colspan=2 font
  size=5USER Access by IP Address/font
  /th
  tr bgcolor=#c8d8f8
td valign=top bIP
 Address/bbr
  input type=text
 name=byipaddress
  value= size=25  maxlength=125
  br
/td
  /tr
/table
  /center
  /td
/tr
tr
  tdnbsp;/td
  td align=center bgcolor=#c8d8f8
input type=submit value=Submit
  name=submit
  /td
  tdnbsp;/td
/tr
  /table
  /form
  %
  String inUser = null;
  String inDate = null;
  String inIPadd = null;
 
  try{
 inUser =
  (request.getParameter(byusername)).trim();
 if (inUser == null) inUser = ;
 inDate =
 request.getParameter(bydate).trim();
 if (inDate == null) inDate = ;
 inIPadd =
  request.getParameter(byipaddress).trim();
 if (inIPadd == null) inIPadd = ;
 
  

Re: servlet-jdbc-SQL server

2002-08-19 Thread Mark O'Driscoll

MySQL has a last_insert_id() function which you can use on a connection

- Original Message -
From: Mike Jackson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 19, 2002 4:38 PM
Subject: RE: servlet-jdbc-SQL server


 With oracle there's a way to specify that a insert does a return, it's
 something like insert into tablea ( a ) values ( 'a' ) returning id.
 I know this isn't oracle that you're asking about, but you might try
 using that syntax on ms sql and see what happens.  Or it might help to
 find it in their documentation (there's a guide oracle vs ms sql in the
 documentation).

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

  -Original Message-
  From: Matt Brennan [mailto:[EMAIL PROTECTED]]
  Sent: Monday, August 19, 2002 8:36 AM
  To: [EMAIL PROTECTED]
  Subject: servlet-jdbc-SQL server
 
 
  Just taking some stumbling first steps talking to SQL server from a
  servlet using the Microsoft JDBC driver. Servlet container is tomcat
  4.0.4. Quick question if I may:
 
  I need to insert a row into an SQL Server table and have the servlet
  generate a page that includes an automatically generated IDENTITY from
  the newly created row. How after the insert can I find the generated ID
  without conducting a subsequent query (which would have no guarantee of
  returning uniquely the newly inserted record)?
 
// 'con' is a connection to MS-SQLserver with SelectMethod=cursor
Statement state = con.createStatement(
  ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
 
// Generate an empty result set
ResultSet content  = state.executeQuery(sqlQuery);
 
content.moveToInsertRow();
// Column 1 is id int IDENTITY NOT NULL PRIMARY KEY
// Column 2 is name VARCHAR(20)
content.updateString (2, something);
content.insertRow();
 
// If I then query the inserted row, to find the newly generated
// IDENTITY value I get MIN_INT instead of '1' (the default first
// identity generated by SQL server if no seed is given)
int id = content.getInt (1);
 
  Is this some peculiarity of the servlet interface to the driver, to the
  driver itself or just my bad undestanding of the insert process? Is it
  possible to configure the Statement so that the Insert row in the Result
  Set gets updated when the insert takes place and the 'id' gets
generated?
 
  Please excuse the fact that this query starts to look more like a JDBC
  query than a tomcat query - not quite sure where the problem lies -
  tomcat+driver? driver? my understanding (most likely!). I am hoping that
  other servlet developers have crossed this bridge before.
 
 matt
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 


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




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




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

2002-08-19 Thread Mike Jackson

Add the following and the limit will be a soft limit (it can go above as
needed)

maximumSofttrue/maximumSoft


--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 =
 ?xml version=1.0 encoding=UTF-8?

 poolman

   management-modelocal/management-mode

   datasource

 !-- == --
 !-- Physical Connection Attributes --
 !-- == --

 !-- Standard JDBC Driver info --

 dbnamewebdev/dbname
 jndiNamewebdev/jndiName
 driverorg.postgresql.Driver/driver
 urljdbc:postgresql://localhost:6093/webdev/url

 usernameJustAUserName/username
 passwordJustAUserNamePassword/password

 !-- Oracle needs this to be set to true --
 nativeResultstrue/nativeResults

 minimumSize1/minimumSize
 maximumSize10/maximumSize
 connectionTimeout600/connectionTimeout
 userTimeout12/userTimeout
 shrinkBy10/shrinkBy


 logFile/usr/local/tomcat/logs/poolman.log/logFile
 debuggingfalse/debugging

 !-- Query Cache Attributes--

 cacheEnabledfalse/cacheEnabled
 cacheSize20/cacheSize
 cacheRefreshInterval120/cacheRefreshInterval

   /datasource

 /poolman

  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.*%
  
   !-- %@ include file=no-cache.jsp % --
  
   form action=UserAccount.jsp method=post
   name=access_form
 table width=90% align=center
 tr
 th bgcolor=#FF colspan=3
  font
   size=5User Access/font/th
  
   tdnbsp;/td
   tdnbsp;/td
   tdnbsp;/td
 /tr
 tr
   td
   center
 table cellpadding=4 cellspacing=2
  border=0
   th bgcolor=#FF colspan=2 font
   size=5User Access by userid/font/th
   tr bgcolor=#c8d8f8
 td valign=top colspan=2 bUser
   Name/bbr
   input type=text
  name=byusername
   size=25 value=  maxlength=25
 /td
   /tr
 /table
   /center
   /td
   td
   center
 table cellpadding=4 cellspacing=2
  border=0
   th bgcolor=#FF colspan=2 font
   size=5User Access by Date/fontfont
  size=1/font
   /th
   tr bgcolor=#c8d8f8
 td valign=top bDate/bbr
   input type=text name=bydate
   value= size=25  maxlength=125
   br
 /td
   /tr
 /table
   /center
   /td
   td
   center
 table cellpadding=4 cellspacing=2
  border=0
   th bgcolor=#FF colspan=2 font
   size=5USER Access by IP Address/font
   /th
   tr bgcolor=#c8d8f8
 td valign=top bIP
  Address/bbr
   input type=text
  name=byipaddress
   value= size=25  maxlength=125
   br
 /td
   /tr
 /table
   /center
   /td
 /tr
 tr
   tdnbsp;/td
   td align=center bgcolor=#c8d8f8
 

Re: get blank pages when using precompiled JSPs (jspc problem?)

2002-08-19 Thread Eric Gilbertson

Hello Again:

I've traced my precompiled JSPs not responding problem down to the following
statement returning null:

 _jspxFactory = JspFactory.getDefaultFactory();

Since this a boiler plate jsp statement that does work when the JSPs are 
dynamically
compiled, it seems to me that there is a problem in my runtime environment 
that is
preventing the default factory from being set when the JSPs are statically 
compiled.
Any suggestions as to what could be causing this problem would be greatly 
appreciated.

Environment = Tomcat 4.0.4 on  Windows XP, ant compile task listed below.

TIA,

Eric Gilbertson
[EMAIL PROTECTED]


Ant task used to compile JSPs:
 target name=compile-jsp depends=init
 delete dir=${ADMIN_RESOURCES} quiet=true/
 delete dir=${GEN}/
 mkdir dir=${CLASS-WAR}/
 mkdir dir=${GEN}/
 java fork=true classname=org.apache.jasper.JspC
 arg line=-d temp /
 arg line=-p ${PACKAGE} /
 arg line=-webxml adminpages/WEB-INF/web.xml /
 arg line=-webapp ${SRC_DIR}webadmin/adminpages/
 classpath
 pathelement path=${CLASSES_DIR}/
 path refid=common.class.path/
 pathelement location=${LIB_DIR}/jasper-compiler.jar/
 pathelement location=${LIB_DIR}/jasper-runtime.jar/
 /classpath
 /java




At 05:07 PM 8/16/2002 -0700, [EMAIL PROTECTED] wrote:
Hello Tomcaters:

can anyone tell me why a JSP that works when dynamically compiled
would generate a blank page when statically compiled using jspc?
the jsp class file is generated via the ant task listed below and packaged
into a .war file. everything appears to build okay and yet when i hit the
page  nothing is returned. i know that the class file is  hit because the
return status is 200 and i see my debug statements
  on stderr.

the only differences between the statically and dynamically generated files
are the packages, e.g. org.apache.jsp vs. com.secretseal and the class
name, e.g. foobar vs foobar$jsp.  i suspect that the problem has to do with
different runtime support for the two versions, e.g. for some reason the text
generated by the statically compiled version is being directed to the bit 
bucket.

suggestions as to how to resolve this problem are greatly appreciated.

sincerely,

eric gilbertson
[EMAIL PROTECTED]



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




OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-19 Thread Turner, John


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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




mod_webapp error: java.io.IOException: Premature packet header end

2002-08-19 Thread Raúl Mateos

Hello!

We configured Tomcat 4.0.4 with Apache 1.3.26 and compiled mod_webapp on
Solaris 7. I worked, but when we
use the module, on the error log of tomcat the next lines appears:

2002-08-19 17:44:32 [org.apache.catalina.connector.warp.WarpConnector]
Connection from localhost/127.0.0.1:34987 to localhost/127.0.
0.1:8008
2002-08-19 17:44:33 WarpHost[greco.intranet]: Installing web application
at context path /examples from URL file:/export/ho
me/portal/catalina/webapps/examples
2002-08-19 17:44:33 WebappLoader[/examples]: Deploying class
repositories to work directory /export/home/portal/catalina/work/Apache
/greco.intranet/examples
2002-08-19 17:44:33 [org.apache.catalina.connector.warp.WarpConnector]
Connection from localhost/127.0.0.1:34988 to localhost/127.0.
0.1:8008
2002-08-19 17:44:33 StandardManager[/examples]: Seeding random number
generator class java.security.SecureRandom
2002-08-19 17:44:33 StandardManager[/examples]: Seeding of random number
generator has been completed
2002-08-19 17:44:35 ContextConfig[/examples]: Configured an
authenticator for method FORM
2002-08-19 17:44:35 ContextListener: contextInitialized()
2002-08-19 17:44:35 SessionListener: contextInitialized()
2002-08-19 17:44:36 ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@2b3d53')
2002-08-19 17:44:36 StandardWrapper[/examples:default]: Loading
container servlet default
2002-08-19 17:44:36 default: init
2002-08-19 17:44:36 StandardWrapper[/examples:invoker]: Loading
container servlet invoker
2002-08-19 17:44:36 invoker: init
2002-08-19 17:44:36 jsp: init
2002-08-19 17:44:37
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
mappings (2)
2002-08-19 17:44:37
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
mappings (2)
2002-08-19 17:44:37 WarpEngine[Apache]: Mapping request
2002-08-19 17:44:37 WarpHost[greco.intranet]: Mapping request for Host
2002-08-19 17:44:37 [org.apache.catalina.connector.warp.WarpConnection]
Exception on socket
java.io.IOException: Premature packet header end
at
org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:237)

at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:112)

at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)

at java.lang.Thread.run(Thread.java:484)

Anyone knows how to solve it?

Thanks in advance


-BEGIN PGP PUBLIC KEY BLOCK-
Version: PGPfreeware 5.5.3i for non-commercial use http://www.pgpi.com

mQGiBD0/zAIRBADMHF1qK6ssLjCMEDK3WUF/OUfM0eBnRTdx76NufNwGC1ghrQvW
6eQgsbc6bS0SVv7fvwu59ufhpJCKoAB15+EAlqgev8s20zRmMZIqsYAcPqL1k/u/
dEuuiPsWKjCyS6R1A/MAlHhxwcNhbKdmiiKMH4uPEQ5Cd0WQERLCdzw38QCg//zl
3HbywqOGx0eyJTTFBBKXs20EAIbsXXO8tXuH4R/gWZDbzC/vVIWI3xYhdmFOmuov
wF9fJBEXwMPVKSbaCzzfY8Cq5ipCrmoyZc9QpeDlGOqp96ZH0rF2b43qyK+4aXFE
bwFdOF0YcwpiJBDjWQ7SfYm+bNPlLe1Xm7yGLuHqtMJkP4hhKw3v02NBUb1lleCi
76PgA/4rWfNBEqyGQvDrnRgze6hIWXkfgsf8fIsGm/uDNXsZrPCWUMtlKdB4ubh7
9bwTHOAhjeUd1+eFRYXNk40bVrouwbEYyhtsbnaNpY/N++Y0V2KcPNWucZpONYPF
7x5Axm2VZYHjVZQH8uO09ihH3fcmNm7DYHQXJHBkVbQpFiNKnrQcUmH6bCBNYXRl
b3MgPHJtYXRlb3NAYW9sLmVzPokASwQQEQIACwUCPT/MAgQLAwIBAAoJEJT+xZZs
3K5L5Q4An3JBGtbkntDzdZnxwi4mPnmo7ULjAKDt0K3aaawnFvcnRSykOE5CvI4h
ULkCDQQ9P8wCEAgA9kJXtwh/CBdyorrWqULzBej5UxE5T7bxbrlLOCDaAadWoxTp
j0BV89AHxstDqZSt90xkhkn4DIO9ZekX1KHTUPj1WV/cdlJPPT2N286Z4VeSWc39
uK50T8X8dryDxUcwYc58yWb/Ffm7/ZFexwGq01uejaClcjrUGvC/RgBYK+X0iP1Y
TknbzSC0neSRBzZrM2w4DUUdD3yIsxx8Wy2O9vPJI8BD8KVbGI2Ou1WMuF040zT9
fBdXQ6MdGGzeMyEstSr/POGxKUAYEY18hKcKctaGxAMZyAcpesqVDNmWn6vQClCb
AkbTCD1mpF1Bn5x8vYlLIhkmuquiXsNV6TILOwACAggA2xWg1FTA5oXssTPdX7YU
t6u3LRL+Y7HCDOPTwU6kSQbjb+xj6GPlh/T3E30Yb/4jVj8srQB0IADLAuMlCZYk
Z7uJyUZ9y31p4i8Yv76cwQ43U6DtCVV4h3RlyYcRaIDK7SN4E6UG/p5RLKhSHGFy
oUbIB9v3jE134QJ+u1xDw8M6XzUvfD5nTX7WwXIdE7CdpgTWpCSvyE6/whMOx84s
uk7deBmZnNIS8Po9UJLACDStJczgkiz9cItPJAsK9L7zdfFFTFNLI0li25gxeRbA
a+kCzeqo0ymLdUE/KS/Mv911geb1afzmcN0BE1SmJ3dfSgAi42QnU5VvYbHW09Ap
AIkARgQYEQIABgUCPT/MAgAKCRCU/sWWbNyuS2wsAKCNip/rPy7YeWSHaTqbZn3k
cNYZxwCcCimZonqcFkAAmVHBYxILqBZkTmM=
=AUNJ
-END PGP PUBLIC KEY BLOCK-



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




RE: Webalizer tricks on Tomcat server?

2002-08-19 Thread Shapira, Yoav

Hi,
Perhaps you could start by saying what doesn't work?  Are you getting
errors from webalizer?  Would you like some additional information it
can't get from tomcat's access logs?

Have your tried modifying the access log valve's pattern, e.g. from
common to combined or to whatever pattern you need?  Do you merge all
your access logs into one big one, time-sorted, prior to running
webalizer?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Glenn Parsons [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 11:41 AM
To: [EMAIL PROTECTED]
Subject: Webalizer tricks on Tomcat server?

Hello All,

I'm looking for tricks to get Webalizer version 1.3x to collect data
from
hits on a Tomcat server. I have tried numerous tweaks to no avail.

Thanks,
G


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



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



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


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

2002-08-19 Thread tek1

hi charlies and craig.  thanks for your replies.



At 08:21 02/08/19 -0700, you wrote:

If your filter is calling response.setContentLength() -- or any other
header setting method, such as trying to add a cookie -- after the
response has been committed, then this attempt to set the header will get
ignored just like it would if your original servlet had done so.

If you have a post-processing filter that can change the content length of
the response, you are going to need to write a response wrapper that:
* Buffers up the output from the servlet into either memory or a
   temporary file
* After the real servlet completes, do whatever modifications
   are needed, calls setContentLength() on the real response, and
   then copies the modified output data to the real response.

the latter (ResponseWrapper) is exactly what i am using.  basically, the 
same thing as the CharResponseWrapper described in:

http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets8.html#82361

i tried calling response.setContentLength() on the *real* response in my 
filter *before* the response is sent to the (mobile) java client, but the 
client isn't detecting that the content length has been set and hangs 
waiting.  however, when i set the content length in the servlet and not the 
filter, the client detects the content length (although the length doesn't 
account for the extra data needed to be added in the filter)...

right after calling setContentLength on the real response in my filter, is 
there any way to call something like getContentLength() on the response to 
confirm that it's being set?



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

do you happen to have the link to the article?  i followed sun's example 
filter using a CharResponseWrapper and my filter's not working...  :|

thanks again for helping.  i appreciate it.


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




RE: more pool problems

2002-08-19 Thread Felipe Schnack

  Actually not. The hsql driver isn't anywhere in my config, but the
postgresql driver isn't working too.
On Mon, 2002-08-19 at 12:39, Campano, Troy wrote:
 Well, if it's not there than it has to be called from somewhere else. Hsql is 
apache's Java database I think and usually if you are using examples from Apache's 
site, they can tend to you HSQL in the examples.
 
 Try looking in your page, any pages that your page calls, web.xml and server.xml.
 
 I'd imagine it must be in there somewhere.
 
 
 
 -Original Message-
 From: Felipe Schnack [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, August 19, 2002 11:37 AM
 To: Tomcat Users List
 Subject: RE: more pool problems
 
 
   It's not there, i checked.
 
 On Mon, 2002-08-19 at 12:32, Campano, Troy wrote:
  Have you tried searching for org.hsql.jdbcDriver in server.xml?
  
  -Original Message-
  From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
  Sent: Monday, August 19, 2002 11:28 AM
  To: [EMAIL PROTECTED]
  Subject: more pool problems
  
  
I'm still trying to use tomcat4's connectionpooling mechanism. I just added the 
following code to my server.xml. I added too the needed tags to web.xml. Tomcat 
starts ok, but when I try to get the DataSource from the InitialContext I get an 
ClassNotFoundException: org.hsql.jdbcDriver.
Where this came from???
  
server.xml:
  
  Context path=/poolman docBase=poolman debug=5  reloadable=false 
crossContext=true
Logger
  className=org.apache.catalina.logger.FileLogger   
  prefix=localhost_poolman_log. suffix=.txt timestamp=true/
Resource name=jdbc/w2 auth=Container type=javax.sql.DataSource/
ResourceParams name=jdbc/w2
   
  
parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter
parameternamemaxActive/namevalue100/value/parameter
parameternamemaxIdle/namevalue3/value/parameter
parameternamemaxWait/namevalue100/value/parameter
parameternameusername/namevaluepgsql/value/parameter
parameternamepassword/namevalueKzy8@0o*/value/parameter
   
  parameternamedriverClassName/namevalueorg.postgresql.Driver/v
  alue/parameter
   
  
parameternameurl/namevaluejdbc:postgresql://jabba:5432/w2/value/parameter
/ResourceParams
  /Context
  
  --
  
  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:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 -- 
 
 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:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
-- 

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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-19 Thread Wagoner, Mark

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:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




do we chat?

2002-08-19 Thread Vincent Stoessel

Hi, I was wondering if there is any unofficial
irc channel for jakarta java stuff. I hung out
in #java for a while but I get no love for jakarta
based projects there. Where do the rebels hang out
on irc? Thanks.
-- 
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Using Tomcat as a proxy?

2002-08-19 Thread ope


 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.

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

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




Tomcat 3.3 does not find jndi.properties

2002-08-19 Thread Olaf Jahn

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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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

2002-08-19 Thread micael

You are getting a null pointer exception because one of your variables 
referencing an object has not been instantiated and has a null value.  That 
is the answer to your question.

At 08:14 AM 8/19/2002 -0700, 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.java: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(ApplicationFilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: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.java:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.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:180)
 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:170)
 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.java:174)
 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.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
 at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
 at java.lang.Thread.run(Thread.java:536)



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

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



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




Can't get tomcat 4 + 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)

Server port=8005 shutdown=SHUTDOWN debug=0
   #added line  Listener
className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/usr/local/apache2/libexec/mod_jk-3.3-ap13-noeapi.so /

and

  Host name=toecutter debug=0 appBase=webapps unpackWARs=true
#added line   Listener
className=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




!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0
	Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/libexec/mod_jk-3.3-ap13-noeapi.so /

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 4.0 documentation bundle for more detailed
 instructions):
 * Download and install JSSE 1.0.2 or later, and put the JAR files
   into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value 
 to -1 --

!-- Define a non-SSL Coyote HTTP/1.1 Connector 

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

2002-08-19 Thread micael

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 =
?xml version=1.0 encoding=UTF-8?

poolman

   management-modelocal/management-mode

   datasource

 !-- == --
 !-- Physical Connection Attributes --
 !-- == --

 !-- Standard JDBC Driver info --

 dbnamewebdev/dbname
 jndiNamewebdev/jndiName
 driverorg.postgresql.Driver/driver
 urljdbc:postgresql://localhost:6093/webdev/url

 usernameJustAUserName/username
 passwordJustAUserNamePassword/password

 !-- Oracle needs this to be set to true --
 nativeResultstrue/nativeResults

 minimumSize1/minimumSize
 maximumSize10/maximumSize
 connectionTimeout600/connectionTimeout
 userTimeout12/userTimeout
 shrinkBy10/shrinkBy


logFile/usr/local/tomcat/logs/poolman.log/logFile
 debuggingfalse/debugging

 !-- Query Cache Attributes--

 cacheEnabledfalse/cacheEnabled
 cacheSize20/cacheSize
 cacheRefreshInterval120/cacheRefreshInterval

   /datasource

/poolman

 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.*%
  
   !-- %@ include file=no-cache.jsp % --
  
   form action=UserAccount.jsp method=post
   name=access_form
 table width=90% align=center
 tr
 th bgcolor=#FF colspan=3
  font
   size=5User Access/font/th
  
   tdnbsp;/td
   tdnbsp;/td
   tdnbsp;/td
 /tr
 tr
   td
   center
 table cellpadding=4 cellspacing=2
  border=0
   th bgcolor=#FF colspan=2 font
   size=5User Access by userid/font/th
   tr bgcolor=#c8d8f8
 td valign=top colspan=2 bUser
   Name/bbr
   input type=text
  name=byusername
   size=25 value=  maxlength=25
 /td
   /tr
 /table
   /center
   /td
   td
   center
 table cellpadding=4 cellspacing=2
  border=0
   th bgcolor=#FF colspan=2 font
   size=5User Access by Date/fontfont
  size=1/font
   /th
   tr bgcolor=#c8d8f8
 td valign=top bDate/bbr
   input type=text name=bydate
   value= size=25  maxlength=125
   br
 /td
   /tr
 /table
   /center
   /td
   td
   center
 table cellpadding=4 cellspacing=2
  border=0
   th bgcolor=#FF colspan=2 font
   size=5USER Access by IP Address/font
   /th
   tr bgcolor=#c8d8f8
 td valign=top bIP
  Address/bbr
   input type=text
  name=byipaddress
   value= size=25  maxlength=125
   br
 /td
   /tr
 /table
   /center
   /td
 /tr
 tr
   tdnbsp;/td
   td align=center bgcolor=#c8d8f8
 input type=submit value=Submit
   name=submit
   /td
   

RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-19 Thread Turner, John


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:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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

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




Craig, PoolMan, latest version WAS the problem.

2002-08-19 Thread Luminous Heart

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 =
 ?xml version=1.0 encoding=UTF-8?
 
 poolman
 
   management-modelocal/management-mode
 
   datasource
 
 !-- == --
 !-- Physical Connection Attributes --
 !-- == --
 
 !-- Standard JDBC Driver info --
 
 dbnamewebdev/dbname
 jndiNamewebdev/jndiName
 driverorg.postgresql.Driver/driver

 urljdbc:postgresql://localhost:6093/webdev/url
 
 usernameJustAUserName/username
 passwordJustAUserNamePassword/password
 
 !-- Oracle needs this to be set to true --
 nativeResultstrue/nativeResults
 
 minimumSize1/minimumSize
 maximumSize10/maximumSize
 connectionTimeout600/connectionTimeout
 userTimeout12/userTimeout
 shrinkBy10/shrinkBy
 


logFile/usr/local/tomcat/logs/poolman.log/logFile
 debuggingfalse/debugging
 
 !-- Query Cache Attributes--
 
 cacheEnabledfalse/cacheEnabled
 cacheSize20/cacheSize
 cacheRefreshInterval120/cacheRefreshInterval
 
   /datasource
 
 /poolman
 
  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.*%
  
   !-- %@ include file=no-cache.jsp % --
  
   form action=UserAccount.jsp method=post
   name=access_form
 table width=90% align=center
 tr
 th bgcolor=#FF colspan=3
  font
   size=5User Access/font/th
  
   tdnbsp;/td
   tdnbsp;/td
   tdnbsp;/td
 /tr
 tr
   td
   center
 table cellpadding=4 cellspacing=2
  border=0
   th bgcolor=#FF colspan=2
 font
   size=5User Access by userid/font/th
   tr bgcolor=#c8d8f8
 td valign=top colspan=2 bUser
   Name/bbr
   input type=text
  name=byusername
   size=25 value=  maxlength=25
 /td
   /tr
 /table
   /center
   /td
   td
   center
 table cellpadding=4 cellspacing=2
  border=0
   th bgcolor=#FF colspan=2
 font
   size=5User Access by Date/fontfont
  size=1/font
   /th
   tr bgcolor=#c8d8f8
 td valign=top bDate/bbr
   input type=text name=bydate
   value= size=25  maxlength=125
   br
 /td
   /tr
 /table
   /center
   /td
   td
   center
 table cellpadding=4 cellspacing=2
  border=0
   th bgcolor=#FF colspan=2
 font
   size=5USER Access by IP Address/font
   /th
   tr bgcolor=#c8d8f8
 td valign=top bIP
  Address/bbr
   input type=text
  name=byipaddress
   value= size=25  maxlength=125
   br
 /td
   /tr
 /table
   /center
   /td
 /tr
 tr
   tdnbsp;/td
   td align=center bgcolor=#c8d8f8
 input 

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

2002-08-19 Thread Luminous Heart

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)
 
 maximumSofttrue/maximumSoft
 
 
 --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
 =
  ?xml version=1.0 encoding=UTF-8?
 
  poolman
 
management-modelocal/management-mode
 
datasource
 
  !-- == --
  !-- Physical Connection Attributes --
  !-- == --
 
  !-- Standard JDBC Driver info --
 
  dbnamewebdev/dbname
  jndiNamewebdev/jndiName
  driverorg.postgresql.Driver/driver
 
 urljdbc:postgresql://localhost:6093/webdev/url
 
  usernameJustAUserName/username
  passwordJustAUserNamePassword/password
 
  !-- Oracle needs this to be set to true --
  nativeResultstrue/nativeResults
 
  minimumSize1/minimumSize
  maximumSize10/maximumSize
  connectionTimeout600/connectionTimeout
  userTimeout12/userTimeout
  shrinkBy10/shrinkBy
 
 
 

logFile/usr/local/tomcat/logs/poolman.log/logFile
  debuggingfalse/debugging
 
  !-- Query Cache Attributes--
 
  cacheEnabledfalse/cacheEnabled
  cacheSize20/cacheSize
 
 cacheRefreshInterval120/cacheRefreshInterval
 
/datasource
 
  /poolman
 
   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.*%
   
!-- %@ include file=no-cache.jsp % --
   
form action=UserAccount.jsp method=post
name=access_form
  table width=90% align=center
  tr
  th bgcolor=#FF colspan=3
   font
size=5User Access/font/th
   
tdnbsp;/td
tdnbsp;/td
tdnbsp;/td
  /tr
  tr
td
center
  table cellpadding=4 cellspacing=2
   border=0
th bgcolor=#FF colspan=2
 font
size=5User Access by userid/font/th
tr bgcolor=#c8d8f8
  td valign=top colspan=2
 bUser
Name/bbr
input type=text
   name=byusername
size=25 value=  maxlength=25
  /td
/tr
  /table
/center
/td
td
center
  table cellpadding=4 cellspacing=2
   border=0
th bgcolor=#FF colspan=2
 font
size=5User Access by Date/fontfont
   size=1/font
/th
tr bgcolor=#c8d8f8
  td valign=top bDate/bbr
input type=text
 name=bydate
 
=== message truncated ===


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs

Realm Authentication Across Multiple Servers

2002-08-19 Thread Jacob Hookom

The application we are working on is laid out on the network like so (*
means many):

Apache2
jk2_mod
Tomcat4 Web Site Servers*
internal network mapping
Tomcat4 File Servers*

Basically the application acts much like sourceforge or another download
site, but I would like to carry authentication from the Web site server
to the request made to the File Servers.

Is this possible?  I did think about a way of creating a timed/digested
certificate that could be passed in the request string, but it would be
ideal to have the Principal be used on all servers.

The user roles for the Web site servers are pulled from a DB, but I have
heard that these servers can share a JNDI context, so couldn't
information be put in there?

Any advice would be appreciated as I'm working in rational rose this
afternoon trying to lay things out :-)

-Jacob


---
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




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




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 =
 ?xml version=1.0 encoding=UTF-8?
 
 poolman
 
management-modelocal/management-mode
 
datasource
 
  !-- == --
  !-- Physical Connection Attributes --
  !-- == --
 
  !-- Standard JDBC Driver info --
 
  dbnamewebdev/dbname
  jndiNamewebdev/jndiName
  driverorg.postgresql.Driver/driver
 
 urljdbc:postgresql://localhost:6093/webdev/url
 
  usernameJustAUserName/username
  passwordJustAUserNamePassword/password
 
  !-- Oracle needs this to be set to true --
  nativeResultstrue/nativeResults
 
  minimumSize1/minimumSize
  maximumSize10/maximumSize
  connectionTimeout600/connectionTimeout
  userTimeout12/userTimeout
  shrinkBy10/shrinkBy
 
 

logFile/usr/local/tomcat/logs/poolman.log/logFile
  debuggingfalse/debugging
 
  !-- Query Cache Attributes--
 
  cacheEnabledfalse/cacheEnabled
  cacheSize20/cacheSize
 
 cacheRefreshInterval120/cacheRefreshInterval
 
/datasource
 
 /poolman
 
  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.*%
   
!-- %@ include file=no-cache.jsp % --
   
form action=UserAccount.jsp method=post
name=access_form
  table width=90% align=center
  tr
  th bgcolor=#FF colspan=3
   font
size=5User Access/font/th
   
tdnbsp;/td
tdnbsp;/td
tdnbsp;/td
  /tr
  tr
td
center
  table cellpadding=4 cellspacing=2
   border=0
th bgcolor=#FF colspan=2
 font
size=5User Access by userid/font/th
tr bgcolor=#c8d8f8
  td valign=top colspan=2
 bUser
Name/bbr
input type=text
   name=byusername
size=25 value=  maxlength=25
  /td
/tr
  /table
/center
/td
td
center
  table cellpadding=4 cellspacing=2
   border=0
th bgcolor=#FF colspan=2
 font
size=5User Access by Date/fontfont
   size=1/font
/th
tr bgcolor=#c8d8f8
  td valign=top bDate/bbr
input type=text
 name=bydate
value= size=25  maxlength=125
br
  /td
/tr
  /table
/center
/td
td
center
  table cellpadding=4 cellspacing=2
   border=0
th bgcolor=#FF colspan=2
 font
size=5USER Access by IP Address/font

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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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(StandardPipeline.java:472)
  at
 

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 

org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
  at
 


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:   mailto:[EMAIL PROTECTED]
JF For additional commands, e-mail: mailto:[EMAIL PROTECTED]



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




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:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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




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:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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

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




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 =
  ?xml version=1.0 encoding=UTF-8?
 
  poolman
 
management-modelocal/management-mode
 
datasource
 
  !-- == --
  !-- Physical Connection Attributes --
  !-- == --
 
  !-- Standard JDBC Driver info --
 
  dbnamewebdev/dbname
  jndiNamewebdev/jndiName
  driverorg.postgresql.Driver/driver
 
  urljdbc:postgresql://localhost:6093/webdev/url
 
  usernameJustAUserName/username
  passwordJustAUserNamePassword/password
 
  !-- Oracle needs this to be set to true --
  nativeResultstrue/nativeResults
 
  minimumSize1/minimumSize
  maximumSize10/maximumSize
  connectionTimeout600/connectionTimeout
  userTimeout12/userTimeout
  shrinkBy10/shrinkBy
 
 
 
 logFile/usr/local/tomcat/logs/poolman.log/logFile
  debuggingfalse/debugging
 
  !-- Query Cache Attributes--
 
  cacheEnabledfalse/cacheEnabled
  cacheSize20/cacheSize
  cacheRefreshInterval120/cacheRefreshInterval
 
/datasource
 
  /poolman
 
   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.*%
   
!-- %@ include file=no-cache.jsp % --
   
form action=UserAccount.jsp method=post
name=access_form
  table width=90% align=center
  tr
  th bgcolor=#FF colspan=3
   font
size=5User Access/font/th
   
tdnbsp;/td
tdnbsp;/td
tdnbsp;/td
  /tr
  tr
td
center
  table cellpadding=4 cellspacing=2
   border=0
th bgcolor=#FF colspan=2
  font
size=5User Access by userid/font/th
tr bgcolor=#c8d8f8
  td valign=top colspan=2 bUser
Name/bbr
input type=text
   name=byusername
size=25 value=  maxlength=25
  /td
/tr
  /table
/center
/td
td
center
  table cellpadding=4 cellspacing=2
   border=0
th bgcolor=#FF colspan=2
  font
size=5User Access by Date/fontfont
   size=1/font

CGIs

2002-08-19 Thread Roco 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: Tomcat Users List
Asunto: 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:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


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




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:
|  mailto:[EMAIL PROTECTED]
|  For additional commands, e-mail:
|  mailto:[EMAIL PROTECTED]
| 
| 
| 
| __
| Do You Yahoo!?
| HotJobs - Search Thousands of New Jobs
| http://www.hotjobs.com
| 
| --
| To unsubscribe, e-mail:   mailto:tomcat-user-
| [EMAIL PROTECTED]
| For additional commands, e-mail: mailto:tomcat-user-
| [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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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)
 
  maximumSofttrue/maximumSoft
 
 
  --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
  =
   ?xml version=1.0 encoding=UTF-8?
  
   poolman
  
 management-modelocal/management-mode
  
 datasource
  
   !-- == --
   !-- Physical Connection Attributes --
   !-- == --
  
   !-- Standard JDBC Driver info --
  
   dbnamewebdev/dbname
   jndiNamewebdev/jndiName
   driverorg.postgresql.Driver/driver
  
  urljdbc:postgresql://localhost:6093/webdev/url
  
   usernameJustAUserName/username
   passwordJustAUserNamePassword/password
  
   !-- Oracle needs this to be set to true --
   nativeResultstrue/nativeResults
  
   minimumSize1/minimumSize
   maximumSize10/maximumSize
   connectionTimeout600/connectionTimeout
   userTimeout12/userTimeout
   shrinkBy10/shrinkBy
  
  
  
 
 logFile/usr/local/tomcat/logs/poolman.log/logFile
   debuggingfalse/debugging
  
   !-- Query Cache Attributes--
  
   cacheEnabledfalse/cacheEnabled
   cacheSize20/cacheSize
  
  cacheRefreshInterval120/cacheRefreshInterval
  
 /datasource
  
   /poolman
  
    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.*%

 !-- %@ include file=no-cache.jsp % --

 form action=UserAccount.jsp method=post
 name=access_form
   table width=90% align=center
   tr
   th bgcolor=#FF colspan=3
font
 size=5User Access/font/th

 tdnbsp;/td
 tdnbsp;/td
 tdnbsp;/td
   /tr
   tr
 td
 center
   table cellpadding=4 cellspacing=2
border=0
 th 

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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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

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




*
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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:
 |  mailto:[EMAIL PROTECTED]
 |  For additional commands, e-mail:
 |  mailto:[EMAIL PROTECTED]
 | 
 |
 |
 | __
 | Do You Yahoo!?
 | HotJobs - Search Thousands of New Jobs
 | http://www.hotjobs.com
 |
 | --
 | To unsubscribe, e-mail:   mailto:tomcat-user-
 | [EMAIL PROTECTED]
 | For additional commands, e-mail: mailto:tomcat-user-
 | [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:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




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




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: 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:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 


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




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


Server port=8005 shutdown=SHUTDOWN debug=0
  Service name=Tomcat-Standalone
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=1 maxProcessors=5
   enableLookups=true 
   acceptCount=10 debug=0 connectionTimeout=6/

!-- Define the top level container in our container hierarchy --
Engine name=Standalone defaultHost=localhost debug=0
  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/
  Host name=localhost debug=0 appBase=webapps unpackWARs=true
Valve className=org.apache.catalina.valves.AccessLogValve directory=logs  prefix=localhost_access_log. suffix=.txt pattern=common/
Logger className=org.apache.catalina.logger.FileLogger directory=logs  prefix=localhost_log. suffix=.txt timestamp=true/
Context path=/poolman docBase=poolman debug=0 reloadable=false crossContext=true
  Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_poolman_log. suffix=.txt
timestamp=true/
Resource name=jdbc/w2 auth=Container type=javax.sql.DataSource/
ResourceParams name=jdbc/w2
parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter
parameternamemaxActive/namevalue100/value/parameter
parameternamemaxIdle/namevalue3/value/parameter
parameternamemaxWait/namevalue100/value/parameter
parameternameusername/namevaluepgsql/value/parameter
parameternamepassword/namevalue/value/parameter
parameternamedriverClassName/namevalueorg.postgresql.Driver/value/parameter
parameternameurl/namevaluejdbc:postgresql://jabba:5432/w2/value/parameter
  /ResourceParams
/Context
  /Host
/Engine
  /Service
/Server



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


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:
  |  mailto:[EMAIL PROTECTED]
  |  For additional commands, e-mail:
  |  mailto:[EMAIL PROTECTED]
  | 
  |
  |
  | __
  | Do You Yahoo!?
  | HotJobs - Search Thousands of New Jobs
  | http://www.hotjobs.com
  |
  | --
  | To unsubscribe, e-mail:   mailto:tomcat-user-
  | [EMAIL PROTECTED]
  | For additional commands, e-mail: mailto:tomcat-user-
  | [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:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]




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




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




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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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
  http://www.hotjobs.com
 
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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

--
To unsubscribe, e-mail:   mailto:[EMAIL 

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:
   |  mailto:[EMAIL PROTECTED]
   |  For additional commands, e-mail:
   |  mailto:[EMAIL PROTECTED]
   | 
   |
   |
   | __
   | Do You Yahoo!?
   | HotJobs - Search Thousands of New Jobs
   | http://www.hotjobs.com
   |
   | --
   | To unsubscribe, e-mail:   mailto:tomcat-user-
   | [EMAIL PROTECTED]
   | For additional commands, e-mail: mailto:tomcat-user-
   | [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:
  mailto:[EMAIL PROTECTED]
  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: Tomcat Users List
 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:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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




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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




  1   2   >