Re: Webgui framework

2004-11-15 Thread Alessandro Ronchi
Il giorno lun, 15-11-2004 alle 08:42 +0100, wim ha scritto:
 http://www.myfaces.org/
 wim
 
 Mark Thomas wrote:
 
 Java Server Faces
 
 http://java.sun.com/j2ee/javaserverfaces/
 
 Mark 

What's the difference with Struts?

Thanks!
-- 
Alessandro Ronchi [EMAIL PROTECTED]
http://www.aronchi.org


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



RE: [ANN] Multiple Instances Tomcat Installer

2004-11-15 Thread Peter Crowther
 From: Wolfgang Hackl [mailto:[EMAIL PROTECTED] 
 To be serious, I am of the opinion that the Tomcat project can benefit
 from an application that helps Administrators with installation and
 management of multiple Tomcat instances (which is a superset of MITI's
 features).

Yes please!  We have an extra requirement - we have multiple
*developers* running separate Tomcat instances on the same box.  We want
to ensure that they can run a Tomcat instance from their own filestore,
but without the ports colliding.  They may not all have root access on
the box.

Any thoughts as to whether MITI could help with this?

- Peter

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



Re: [ANN] Multiple Instances Tomcat Installer

2004-11-15 Thread Wolfgang Hackl
Peter Crowther wrote:
From: Wolfgang Hackl [mailto:[EMAIL PROTECTED] 
To be serious, I am of the opinion that the Tomcat project can benefit
from an application that helps Administrators with installation and
management of multiple Tomcat instances (which is a superset of MITI's
features).
   

Yes please!  We have an extra requirement - we have multiple
*developers* running separate Tomcat instances on the same box.  We want
to ensure that they can run a Tomcat instance from their own filestore,
but without the ports colliding.  They may not all have root access on
the box.
Any thoughts as to whether MITI could help with this?
Hi Peter!
As a workaround you might add all developers to the same group or tune 
the chmod/chown/chgrp statements in the script. Please consider the 
TOMCAT_USER variable in the Tomcat5.sh script, too. Root access is not 
necessary as long as you can do without a start script and links in 
/etc/init.d. The start script gets generated to $CATALINA_BASE anyway 
and hopefully can be started with developers' privileges from there.

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


compatible javamail vsersio n with tomcat-5.5.4

2004-11-15 Thread Kantartzis Vasilis
Hi all 
i am developing a web-based e-mail system.
i have encountred the following prioblem.

while testing the methods that post e-mails through a java stand alone 
application the code works fine 

When a call the same methods from a servlet i get the following message in 
tomcat logs 
java.lang.NullPointerException
at javax.mail.internet.InternetAddress.parse(InternetAddress.java:569)
at javax.mail.internet.InternetAddress.parse(InternetAddress.java:529)
at javax.mail.internet.InternetAddress.init(InternetAddress.java:65)
at dms.servlet.ApController.assembleMessage(Unknown Source)
at dms.servlet.ApController.getTableValues(Unknown Source)
at dms.servlet.ApController.process(Unknown Source)
at dms.servlet.ApController.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:731)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)

could you please sugest a combination of tomcat and java mail that work well 
together.

i am using tomcat 5.5.4 as aservlet engine and javamail-1.3.2

thank you in advance 
Billy Kantartzis 

IT Specialist

OTE SA 

Operational Systems Branch 

Organisational and Quallity Devision 

99 Kifisias Ave 

15124,Marousi,

Athens ,Greece

Phone +30-210-6117266

email:[EMAIL PROTECTED]


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



Re: Context element problems in conf/server.xml

2004-11-15 Thread Andrew Watters
Thanks again. That works great, I'm accessing my webapp fine as the 
default webapp with the following

Engine name=Catalina defaultHost=localhost debug=9
 Host name=localhost debug=9 appBase=webapps unpackWARs=true 
autoDeploy=true xmlValidation=false xmlNamespaceAware=false
   Context path= docBase=pets-proper debug=9
 Environment name=servername type=java.lang.String 
value=dev.andrew override=false/
   /Context
 /Host
/Engine

However, my application can't find the 'servername' environment property 
again!

The combinations I've tried (each one three times to be sure) and their 
behaviour

path=, docBase=xxx, WAR named xxx.war --- WAR is unpacked, webapp 
starts but property not found
path=/, docBase=xxx, WAR named xxx.war --- WAR is unpacked, webapp 
starts but property not found
path=, docBase=ROOT, WAR named ROOT.war --- WAR is not unpacked, 
webapp does not start
path=/, docBase=ROOT, WAR named ROOT.war --- WAR is unpacked, webapp 
starts and property found!

I'm now really confused. The last option was where I came in! This 
didn't work previously and now does. I really wish that I understood 
tomcats behaviour. The only other change is that I've cleaned up my 
server.xml file but only to remove comments and commented out sections.

Andoni, thank you for your replies. Does this make any sense at all to 
you? If I have the time I'll take a look at the tomcat source but 
deadlines are looming at the moment... For the moment I have my fingers 
crossed (not my favourite policy) that all will keep working.

Regards
Andrew
Andoni wrote:
Yes, you can have any xxx.war that you access from
http://localhost/login.jsp so long as it's path= and it is the only
context in that Host which has path=. This is what makes it the default
app.
Andoni.
- Original Message - 
From: Andrew Watters [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Friday, November 12, 2004 5:00 PM
Subject: Re: Context element problems in conf/server.xml

 

Hi Andoni
Thanks again for your reply.
I hope I'm understanding what you say correctly, apologies if not. If I
rename my WAR to say, app.war, then to access a page the URL would
become http://localhost/app/login.jsp. The reason why I changed the
appBase to ROOT and renamed my WAR ROOT.war was so that the URL would be
http://localhost/login.jsp. This is a customer directive.
Is the problem that I'm going about this the wrong way in the first
place? Can I have an app.war and access it like
   

http://localhost/login.jsp?
 

Best regards
Andrew

Andoni wrote:
   

Ok, You can ignore the logger's and valve's when you are worrying
 

about
 

configuration. So what you are left with is:
Engine name=Catalina defaultHost=localhost debug=9
Host name=localhost debug=9 appBase=webapps unpackWARs=true
autoDeploy=true xmlValidation=false xmlNamespaceAware=false
Context path=/ docBase=ROOT debug=9
/Context
/Host
/Engine
What you have to be aware of is that ROOT is more than just another
 

name
 

for a webapp. ROOT is a special name for the default webapp in a host.
Therefore what you should do is to remove all references to root. Comment
out this line of the server.xml, call your .war file something else and
 

set
 

the path=.
Regards,
Andoni.
- Original Message - 
From: Andrew Watters [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Friday, November 12, 2004 11:30 AM
Subject: Re: Context element problems in conf/server.xml


 

Thanks for your reply. Please find below the tags as requested. Thank
you for taking the time.
Engine name=Catalina defaultHost=localhost debug=9
Valve className=org.apache.catalina.valves.RequestDumperValve/
Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true/
Realm className=org.apache.catalina.realm.UserDatabaseRealm
debug=9 resourceName=UserDatabase/
Host name=localhost debug=9 appBase=webapps unpackWARs=true
autoDeploy=true xmlValidation=false xmlNamespaceAware=false
  Context path=/ docBase=ROOT debug=9
Environment name=servername type=java.lang.String
value=dev.andrew override=false/
  /Context
  Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs prefix=localhost_access_log. suffix=.txt
pattern=common resolveHosts=false/
  Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=localhost_log. suffix=.txt
   

timestamp=true/
 

/Host
/Engine

Andoni wrote:

   

Hello,
You certainly don't need the / in the path attribute. This is not
 

going
 

 

to
 

work as it cannot match just one slash.
Would you please post the Engine Host and Context tags. They
 

should
 

all be seen as a group to know exactly what's being called.
Andoni.
- Original Message - 
From: Andrew Watters [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Thursday, November 11, 2004 4:19 PM
Subject: Context element problems in conf/server.xml



 

Hi
I posted 

Re: compatible javamail vsersio n with tomcat-5.5.4

2004-11-15 Thread David Smith
I've been using javamail w/ Sun's JDK 1.4.2 no problem.  The stack trace 
you posted indicates you attempted to construct a new InternetAddress 
object with a null for the email address string.  Could you double check 
what's being passed to the constructor and post a relevant snippet of 
your code?

--David
Kantartzis Vasilis wrote:
Hi all 
i am developing a web-based e-mail system.
i have encountred the following prioblem.

while testing the methods that post e-mails through a java stand alone application the code works fine 

When a call the same methods from a servlet i get the following message in tomcat logs 
java.lang.NullPointerException
	at javax.mail.internet.InternetAddress.parse(InternetAddress.java:569)
	at javax.mail.internet.InternetAddress.parse(InternetAddress.java:529)
	at javax.mail.internet.InternetAddress.init(InternetAddress.java:65)
	at dms.servlet.ApController.assembleMessage(Unknown Source)
	at dms.servlet.ApController.getTableValues(Unknown Source)
	at dms.servlet.ApController.process(Unknown Source)
	at dms.servlet.ApController.doPost(Unknown Source)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:731)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Unknown Source)

could you please sugest a combination of tomcat and java mail that work well 
together.
i am using tomcat 5.5.4 as aservlet engine and javamail-1.3.2
thank you in advance 
Billy Kantartzis 

IT Specialist
OTE SA 

Operational Systems Branch 

Organisational and Quallity Devision 

99 Kifisias Ave 

15124,Marousi,
Athens ,Greece
Phone +30-210-6117266
email:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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


Re: Context element problems in conf/server.xml

2004-11-15 Thread Andoni
Hi Andrew,

Definitely cleaning up Server.xml to remove all those confusing comments and
commented out sections is a great idea. I'd also suggest you change all XML
tags to be on one line each and indent the whole file properly if you
haven't already done so.

I must admit that I have no idea why it is requiring you to use the path=/
attribute with the forward slash. The very first option looks fine to me.
Have you tried not using servername as the name of your env. variable, if
that is in fact what you are using? It may be conflicting with something
else.

Other things you might try, if you don't want to just leave well enough
alone! Are:
1. Try setting up a second Host, leave the one that's there alone but set
up Host name=www.joebloggs.com and configure that up. Then add it to your
LMHOSTS file in the Windows/system32 directory.
2. Change the name of the Environment variable to servername2 and see if
it's a conflict issue.
3. Leave well enough alone!

Sorry I could not help any further.

Rgds,
Andoni.

- Original Message - 
From: Andrew Watters [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Monday, November 15, 2004 11:52 AM
Subject: Re: Context element problems in conf/server.xml


 Thanks again. That works great, I'm accessing my webapp fine as the
 default webapp with the following

 Engine name=Catalina defaultHost=localhost debug=9
   Host name=localhost debug=9 appBase=webapps unpackWARs=true
 autoDeploy=true xmlValidation=false xmlNamespaceAware=false
 Context path= docBase=pets-proper debug=9
   Environment name=servername type=java.lang.String
 value=dev.andrew override=false/
 /Context
   /Host
 /Engine

 However, my application can't find the 'servername' environment property
 again!

 The combinations I've tried (each one three times to be sure) and their
 behaviour

 path=, docBase=xxx, WAR named xxx.war --- WAR is unpacked, webapp
 starts but property not found
 path=/, docBase=xxx, WAR named xxx.war --- WAR is unpacked, webapp
 starts but property not found
 path=, docBase=ROOT, WAR named ROOT.war --- WAR is not unpacked,
 webapp does not start
 path=/, docBase=ROOT, WAR named ROOT.war --- WAR is unpacked, webapp
 starts and property found!

 I'm now really confused. The last option was where I came in! This
 didn't work previously and now does. I really wish that I understood
 tomcats behaviour. The only other change is that I've cleaned up my
 server.xml file but only to remove comments and commented out sections.

 Andoni, thank you for your replies. Does this make any sense at all to
 you? If I have the time I'll take a look at the tomcat source but
 deadlines are looming at the moment... For the moment I have my fingers
 crossed (not my favourite policy) that all will keep working.

 Regards
 Andrew


 Andoni wrote:

 Yes, you can have any xxx.war that you access from
 http://localhost/login.jsp so long as it's path= and it is the only
 context in that Host which has path=. This is what makes it the
default
 app.
 
 Andoni.
 - Original Message - 
 From: Andrew Watters [EMAIL PROTECTED]
 Newsgroups: gmane.comp.jakarta.tomcat.user
 Sent: Friday, November 12, 2004 5:00 PM
 Subject: Re: Context element problems in conf/server.xml
 
 
 
 
 Hi Andoni
 
 Thanks again for your reply.
 
 I hope I'm understanding what you say correctly, apologies if not. If I
 rename my WAR to say, app.war, then to access a page the URL would
 become http://localhost/app/login.jsp. The reason why I changed the
 appBase to ROOT and renamed my WAR ROOT.war was so that the URL would be
 http://localhost/login.jsp. This is a customer directive.
 
 Is the problem that I'm going about this the wrong way in the first
 place? Can I have an app.war and access it like
 
 
 http://localhost/login.jsp?
 
 
 Best regards
 Andrew
 
 
 
 
 Andoni wrote:
 
 
 
 Ok, You can ignore the logger's and valve's when you are worrying
 
 
 about
 
 
 configuration. So what you are left with is:
 
 Engine name=Catalina defaultHost=localhost debug=9
 Host name=localhost debug=9 appBase=webapps unpackWARs=true
 autoDeploy=true xmlValidation=false xmlNamespaceAware=false
  Context path=/ docBase=ROOT debug=9
  /Context
 /Host
 /Engine
 
 
 What you have to be aware of is that ROOT is more than just another
 
 
 name
 
 
 for a webapp. ROOT is a special name for the default webapp in a host.
 Therefore what you should do is to remove all references to root.
Comment
 out this line of the server.xml, call your .war file something else and
 
 
 set
 
 
 the path=.
 
 Regards,
 Andoni.
 
 - Original Message - 
 From: Andrew Watters [EMAIL PROTECTED]
 Newsgroups: gmane.comp.jakarta.tomcat.user
 Sent: Friday, November 12, 2004 11:30 AM
 Subject: Re: Context element problems in conf/server.xml
 
 
 
 
 
 
 Thanks for your reply. Please find below the tags as requested. Thank
 you for taking the time.
 
 Engine name=Catalina defaultHost=localhost debug=9
  Valve 

Re: Tomcat and -server option

2004-11-15 Thread Ronald Klop
System.getProperty(...);
java.vm.name=Java HotSpot(TM) Client VM
(I'm not running with -server option...)
Ronald.
On Wed Nov 10 19:28:39 CET 2004 Mufaddal Khumri [EMAIL PROTECTED] wrote:
Hi,
I have specified the -server option in my catalina.sh using JAVA_OPTS.
JAVA_OPTS=-server -Djava.awt.headless=true -Xms1g -Xmx1g 
-Dfile.encoding=ISO-8859-1

When I log into the manager app in tomcat I can see that its taking the 
correct memory settings , but I could not find a way to verify that it 
is taking the -server flag into consideration. Is there a way to make 
sure that my JVM is taking the -server flag into consideration?

Additional info:
Tomcat Version: Apache Tomcat/5.0.27
JVM Version: 1.4.2_05-141.3
JVM Vendor: Apple Computer, Inc.
OS Name: Mac OS X
OS Version: 10.3.5
OS Architecture: ppc
Thanks.


Re: Tomcat and -server option

2004-11-15 Thread Ronald Klop
You are running Mac OS X. Does Apple support the Server Hotspot version? Maybe 
it falls back to client by default.
Ronald.
On Fri Nov 12 22:08:42 CET 2004 Mufaddal Khumri [EMAIL PROTECTED] wrote:
Hi,
I have: JAVA_OPTS=-server -Djava.awt.headless=true -Xms1g -Xmx1g 
-Dfile.encoding=ISO-8859-1 in catalina.sh

I just tried:
logger.info(java.vm.name:  + System.getProperty(java.vm.name));
and i get:
INFO - java.vm.name: Java HotSpot(TM) Client VM
Why is the -server option not taking effect?
Does java.vm.name display the mode the JVM is executing in or its name 
of the JVM installed on my machine? (because if its just the name of 
the JVM installed on my machine the -server option must be taking 
effect)

Thanks.
On Nov 12, 2004, at 1:53 PM, Shapira, Yoav wrote:

Hi,
Cool, good tip.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Friday, November 12, 2004 3:14 PM
To: Tomcat Users List
Subject: RE: Tomcat and -server option

From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Subject: RE: Tomcat and -server option

Is there a way to make sure that my JVM is taking
the -server flag into consideration?

I'm not aware of a programmatic way to verify this.

The Java property java.vm.name (use System.getProperty(java.vm.name)
to
retrieve it) contains either Java HotSpot(TM) Server VM or Java
HotSpot(TM) Client VM when using Sun JVMs. Other vendors will, of
course,
set this property differently.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the 
e-mail
and
its attachments from all computers.

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


Mufaddal Khumri
Software Developer
Waves In Motion
Phone: 602 956 7080 x 26
Email: [EMAIL PROTECTED]



RE: compatible javamail vsersio n with tomcat-5.5.4

2004-11-15 Thread Kantartzis Vasilis
Thanks for your quick  reply,
i did not want to hog the list with the code so i am sending this private 
i have a jsp page that has a number of check boxes according to the users 
selection the appropriate e-mail os added to the list of recipients

i am including the servlrt for you 



-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 2:22 PM
To: Tomcat Users List
Subject: Re: compatible javamail vsersio n with tomcat-5.5.4


I've been using javamail w/ Sun's JDK 1.4.2 no problem.  The stack trace 
you posted indicates you attempted to construct a new InternetAddress 
object with a null for the email address string.  Could you double check 
what's being passed to the constructor and post a relevant snippet of 
your code?

--David

Kantartzis Vasilis wrote:

Hi all 
i am developing a web-based e-mail system.
i have encountred the following prioblem.

while testing the methods that post e-mails through a java stand alone 
application the code works fine 

When a call the same methods from a servlet i get the following message in 
tomcat logs 
java.lang.NullPointerException
   at javax.mail.internet.InternetAddress.parse(InternetAddress.java:569)
   at javax.mail.internet.InternetAddress.parse(InternetAddress.java:529)
   at javax.mail.internet.InternetAddress.init(InternetAddress.java:65)
   at dms.servlet.ApController.assembleMessage(Unknown Source)
   at dms.servlet.ApController.getTableValues(Unknown Source)
   at dms.servlet.ApController.process(Unknown Source)
   at dms.servlet.ApController.doPost(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
   at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:731)
   at 
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
   at 
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Unknown Source)

could you please sugest a combination of tomcat and java mail that work well 
together.

i am using tomcat 5.5.4 as aservlet engine and javamail-1.3.2

thank you in advance 
Billy Kantartzis 

IT Specialist

OTE SA 

Operational Systems Branch 

Organisational and Quallity Devision 

99 Kifisias Ave 

15124,Marousi,

Athens ,Greece

Phone +30-210-6117266

email:[EMAIL PROTECTED]


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

  


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


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

RE: Soap under Tomcat

2004-11-15 Thread sven morales
Exception in thread main [SOAPException:
faultCode=SOAP-ENV:Protocol; msg=Unsupported response
content type quot;text/html;
charset=ISO-8859-1quot;, must be :
quot;text/xmlquot;. Response was:
lt;htmlgt;lt;headgt;lt;titlegt;Apache
Tomcat/4.1.30 - Error reportlt;/tit

Your error seems to point to the type  text/html. 
Apache SOAP uses POST and type text/xml.  I don't know
how your program spits out text/html.  I tried same
tutorial and it works for me.
  Also there is a tool called tcpmon thats very
helpful in seeing whats being sent (HTTP) towards
Tomcat and Tomcats HTTP response.

aka_sergio

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Analysing dead threads

2004-11-15 Thread Steffen Heil
Hi

I have a situation, where a lot of threads seem to stop working right in my
servlet.
From debug output, I know they entered the servlet but never leave it.

My problem is that this never occurs on our development system, but only on
the production system.
I need to stop tomcat end even do a killall -9 java to get everything to
stop. Then I restart tomcat.

But I don't know what happened.
I know there is a way to kill the JVM, so that I see the stack trace of kill
threads.
How can I do it?
(Is there another way to see what those threads are waiting for?)

Regards,
  Steffen


smime.p7s
Description: S/MIME cryptographic signature


Re: Analysing dead threads

2004-11-15 Thread andrew
Hi Stefan,
You might want to try
kill -3 processid
Depending on your JVM you may find a stacktrace in STDERR (STDIO?) or in 
a seperate file in the directory where you started the JVM

Depending on the version of Tomcat you are running, you may also want to 
have a look at the manager application:

http://www.myhost.com/manager/status
Regards
Andrew

Steffen Heil wrote:
Hi
I have a situation, where a lot of threads seem to stop working right in my
servlet.
From debug output, I know they entered the servlet but never leave it.
 


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


RE: Analysing dead threads

2004-11-15 Thread Dale, Matt

kill -SIGHUP or kill -3 should dump a stack trace into catalina.out.

A profiler should also tell you what the threads are up to.

Ta
Matt

-Original Message-
From: Steffen Heil [mailto:[EMAIL PROTECTED]
Sent: 15 November 2004 13:42
To: 'Tomcat Users List'
Subject: Analysing dead threads


Hi

I have a situation, where a lot of threads seem to stop working right in
my
servlet.
From debug output, I know they entered the servlet but never leave it.

My problem is that this never occurs on our development system, but only
on
the production system.
I need to stop tomcat end even do a killall -9 java to get everything
to
stop. Then I restart tomcat.

But I don't know what happened.
I know there is a way to kill the JVM, so that I see the stack trace of
kill
threads.
How can I do it?
(Is there another way to see what those threads are waiting for?)

Regards,
  Steffen
Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not 
the intended recipient or the person responsible for delivering to the intended 
recipient, be advised that you have received this E-mail in error and that any 
use or copying is strictly prohibited. If you have received this E-mail in 
error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual 
sender and not beCogent Ltd. You must take full responsibility for virus 
checking this email and any attachments.
Please note that the content of this email or any of its attachments may 
contain data that falls within the scope of the Data Protection Acts and that 
you must ensure that any handling or processing of such data by you is fully 
compliant with the terms and provisions of the Data Protection Act 1984 and 
1998.


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

Re: Soap under Tomcat

2004-11-15 Thread feilong
Hallo, aka_sergio
Thanks for your reply. My problem looks like the following now:
D:\Programs\jakarta-tomcat-4.1.30\webapps\soap\WEB-INF\classesjava
onjava.CalcC
lient 98 96
I am called!
The call failed:
Fault Code   = SOAP-ENV:Server.Exception:
Fault String = onjava/CalcService (wrong name: CalcService)

I follow each step from this tutorial. I put my CalcService.java and
CalcClient.java in
tomcat_Home\webapps\soap\WEB-INF\classes\onjava
The all code are compiled(surely). I think that I needn't edit anything in
web.xml and server.xml,
because we have DeploymentDescriptor.xml, which defined the path, the urn
for the servlet.
Tomcat is smart enough to find CalcService.java. I consider that the request
from client is not transfered to the server,
That means that Tomcat hasn't found CalcService.java while client runs. I
don't why, I can deploy and undeploy this webservice,
all the code are copied from this tutorial, I don't know why?


Best
Feilong
- Original Message - 
From: sven morales [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 2:39 PM
Subject: RE: Soap under Tomcat


 Exception in thread main [SOAPException:
 faultCode=SOAP-ENV:Protocol; msg=Unsupported response
 content type quot;text/html;
 charset=ISO-8859-1quot;, must be :
 quot;text/xmlquot;. Response was:
 lt;htmlgt;lt;headgt;lt;titlegt;Apache
 Tomcat/4.1.30 - Error reportlt;/tit

 Your error seems to point to the type  text/html.
 Apache SOAP uses POST and type text/xml.  I don't know
 how your program spits out text/html.  I tried same
 tutorial and it works for me.
   Also there is a tool called tcpmon thats very
 helpful in seeing whats being sent (HTTP) towards
 Tomcat and Tomcats HTTP response.

 aka_sergio

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

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




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



Re: Analysing dead threads

2004-11-15 Thread Peter Lin
just for clarification. Do you mean zombie threads?  Threads that are
not reachable, but still running.  My advice would be to download a
profiler and figure out the cause.

peter



On Mon, 15 Nov 2004 14:42:14 +0100, Steffen Heil [EMAIL PROTECTED] wrote:
 Hi
 
 I have a situation, where a lot of threads seem to stop working right in my
 servlet.
 From debug output, I know they entered the servlet but never leave it.
 
 My problem is that this never occurs on our development system, but only on
 the production system.
 I need to stop tomcat end even do a killall -9 java to get everything to
 stop. Then I restart tomcat.
 
 But I don't know what happened.
 I know there is a way to kill the JVM, so that I see the stack trace of kill
 threads.
 How can I do it?
 (Is there another way to see what those threads are waiting for?)
 
 Regards,
   Steffen
 
 


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



RE: a problem with a first app

2004-11-15 Thread Shapira, Yoav

Hi,

The question regarding the 5.5* rpm version is still without an answer,
because i did searched on web but with no results.

The best source for RPMs seems to be JPackage.org, and they're at 5.0.27
it would appear: http://www.jpackage.org/rpm.php?id=3004.  Even there
were such an RPM, I'd recommend against using it, and I'd suggest you
use the normal Tomcat distributions instead, at least for now.

Yoav



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



Re: Soap under Tomcat

2004-11-15 Thread sven morales
  What did you do to get rid of that text/html
problem?
You can list the deployed services via this command:

java org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/servlet/rpcrouter list

or clicking on list button on
http://localhost:8080/soap/admin/

I the urn:onjava is not listed, then that service is
not deployed.

I have not have to modify web.xml mappings as the
rpcrouter is the Servlet responding to deployment and
listing of services. messagerouter is the other
Servlet that handles messaging within SOAP.  TCPMON I
suggested is a very helpful tool, to let you view what
is being posted to Tomcat.


--- feilong [EMAIL PROTECTED] wrote:

 Hallo, aka_sergio
 Thanks for your reply. My problem looks like the
 following now:

D:\Programs\jakarta-tomcat-4.1.30\webapps\soap\WEB-INF\classesjava
 onjava.CalcC
 lient 98 96
 I am called!
 The call failed:
 Fault Code   = SOAP-ENV:Server.Exception:
 Fault String = onjava/CalcService (wrong name:
 CalcService)
 
 I follow each step from this tutorial. I put my
 CalcService.java and
 CalcClient.java in
 tomcat_Home\webapps\soap\WEB-INF\classes\onjava
 The all code are compiled(surely). I think that I
 needn't edit anything in
 web.xml and server.xml,
 because we have DeploymentDescriptor.xml, which
 defined the path, the urn
 for the servlet.
 Tomcat is smart enough to find CalcService.java. I
 consider that the request
 from client is not transfered to the server,
 That means that Tomcat hasn't found CalcService.java
 while client runs. I
 don't why, I can deploy and undeploy this
 webservice,
 all the code are copied from this tutorial, I don't
 know why?
 
 
 Best
 Feilong
 - Original Message - 
 From: sven morales [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, November 15, 2004 2:39 PM
 Subject: RE: Soap under Tomcat
 
 
  Exception in thread main [SOAPException:
  faultCode=SOAP-ENV:Protocol; msg=Unsupported
 response
  content type quot;text/html;
  charset=ISO-8859-1quot;, must be :
  quot;text/xmlquot;. Response was:
  lt;htmlgt;lt;headgt;lt;titlegt;Apache
  Tomcat/4.1.30 - Error reportlt;/tit
 
  Your error seems to point to the type  text/html.
  Apache SOAP uses POST and type text/xml.  I don't
 know
  how your program spits out text/html.  I tried
 same
  tutorial and it works for me.
Also there is a tool called tcpmon thats very
  helpful in seeing whats being sent (HTTP) towards
  Tomcat and Tomcats HTTP response.
 
  aka_sergio
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around
  http://mail.yahoo.com
 
 

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

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: More apps = More load ?

2004-11-15 Thread Shapira, Yoav

Hi,

 I was discussing this very topic with somebody last night.  This
sort of begs the question, if the webapp isn't supposed to start
threads of its own in general, what is the right way to handle these
situations (the most typical being some sort of cron thread, or any
need
to kick of an asynchronous action)?

Handle by whom?  The container shouldn't (and can't really) prevent it.
So the responsibility is left to the app designer.  If you do start
threads, you need to make sure you control them and terminate them
appropriately.  Marking these threads as daemons is usually good, it
means the JVM can terminate them in the event of an abrupt shutdown.
But it's better to keep a handle to them and make sure to interrupt()
and null them out when they're done or on app shutdown (e.g. a
ServletContextListener#contextDestroyed event), whichever comes sooner.

Yoav



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



RE: Tomcat 5.5.4 Upgrade Blog

2004-11-15 Thread Shapira, Yoav

Hi,
It's a good blog.  I didn't see a PermaLink option: if there is one, I'd
like to add the URL of this blog posting to the Tomcat wiki page.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 14, 2004 4:05 PM
To: Tomcat Users List; Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Tomcat 5.5.4 Upgrade Blog

Hi List,



Based on my upgrade to Tomcat 5.5.4 late last week and the few config
issues I came across, I wrote a Blog that can be found on my web site
here



www.adcworks.com/blog http://www.adcworks.com/blog



It covers IIS authentication (thanks Bill), logging, basic JNDI data
source
config.



It won't be useful for everyone, but hopefully for some of you.
Everything
I have written works. Feel free to comment on this Blog from the page
or
add additional information relating to it.



Best regards, Allistair



PS: Remy/Yoav, if you could take a look at this Blog and let me know if
you
think any of it is useful for the Tomcat pages, I can covert it
appropriately.





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT




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



keystore manipulation

2004-11-15 Thread Carl Olivier
Greetings.

I think I asked a similar question on this list a while ago - but did not
get a response - so here goes one last time.

I am importing/generating new certificates into the keystore that is set as
the truststore for the JVM that runs Tomcat - via the
javax.net.ssl.trustStore System property.

On first load (when I initial a URL load of a HTTPS URI) all is fine.  At
this point it seems that the JVM caches the certificates stored in the
specified (javax.net.ssl.trustStore) keystore.  If, after the first access
of the truststore, I import a certificate to the trustore, it is not picked
up until a RESTART the JVM.

This is problematic as I do NOT want to have to restart the JVM just to read
a certificate!  Does anyone know how I would refresh the certificate list
from the keystore referenced by the SystemProperty: javax.net.ssl.trustStore

I would appreciate any pointers!

Thanks in advance.

Carl

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



RE: Tomcat 5.5.4 Upgrade Blog

2004-11-15 Thread Allistair Crossley
Hi Yoav,

Thanks, I've only just started with this Blog stuff - quite cool. I think I 
have found what you mean by PermaLinks and I have enabled it. The title is a 
link to the permalink itself ..

http://www.adcworks.com/blog/index.php/archives/2004/11/14/getting-up-and-running-with-tomcat-55/

Hope that helps!

Cheers, Allistair.

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 15 November 2004 14:31
 To: Tomcat Users List
 Subject: RE: Tomcat 5.5.4 Upgrade Blog
 
 
 
 Hi,
 It's a good blog.  I didn't see a PermaLink option: if there 
 is one, I'd
 like to add the URL of this blog posting to the Tomcat wiki page.
 
 Yoav Shapira http://www.yoavshapira.com
  
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Sent: Sunday, November 14, 2004 4:05 PM
 To: Tomcat Users List; Tomcat Users List
 Cc: [EMAIL PROTECTED]
 Subject: Tomcat 5.5.4 Upgrade Blog
 
 Hi List,
 
 
 
 Based on my upgrade to Tomcat 5.5.4 late last week and the few config
 issues I came across, I wrote a Blog that can be found on my web site
 here
 
 
 
 www.adcworks.com/blog http://www.adcworks.com/blog
 
 
 
 It covers IIS authentication (thanks Bill), logging, basic JNDI data
 source
 config.
 
 
 
 It won't be useful for everyone, but hopefully for some of you.
 Everything
 I have written works. Feel free to comment on this Blog from the page
 or
 add additional information relating to it.
 
 
 
 Best regards, Allistair
 
 
 
 PS: Remy/Yoav, if you could take a look at this Blog and let 
 me know if
 you
 think any of it is useful for the Tomcat pages, I can covert it
 appropriately.
 
 
 
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 
 
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Re: Analysing dead threads

2004-11-15 Thread andrew
Hi Peter,
A profiler may cause more trouble than help if you try this on a heavily 
loaded production box.
It might be easiest if he first looks at the 'manager' application that 
comes with tomcat 5.

Regards
Andrew
Peter Lin wrote:
just for clarification. Do you mean zombie threads?  Threads that are
not reachable, but still running.  My advice would be to download a
profiler and figure out the cause.
peter
 


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


Re: Soap under Tomcat

2004-11-15 Thread feilong
Hallo,
I add the context tag in server.xml, i.e.
Context
   path=/soap
   docBase=D:\Programs\jakarta-tomcat-4.1.30\webapps\soap\
   reloadable=true
 /Context
Then this exception is away.

Thanks 
Feilong

- Original Message - 
From: sven morales [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 3:20 PM
Subject: Re: Soap under Tomcat


   What did you do to get rid of that text/html
 problem?
 You can list the deployed services via this command:
 
 java org.apache.soap.server.ServiceManagerClient
 http://localhost:8080/soap/servlet/rpcrouter list
 
 or clicking on list button on
 http://localhost:8080/soap/admin/
 
 I the urn:onjava is not listed, then that service is
 not deployed.
 
 I have not have to modify web.xml mappings as the
 rpcrouter is the Servlet responding to deployment and
 listing of services. messagerouter is the other
 Servlet that handles messaging within SOAP.  TCPMON I
 suggested is a very helpful tool, to let you view what
 is being posted to Tomcat.
 
 
 --- feilong [EMAIL PROTECTED] wrote:
 
  Hallo, aka_sergio
  Thanks for your reply. My problem looks like the
  following now:
 
 D:\Programs\jakarta-tomcat-4.1.30\webapps\soap\WEB-INF\classesjava
  onjava.CalcC
  lient 98 96
  I am called!
  The call failed:
  Fault Code   = SOAP-ENV:Server.Exception:
  Fault String = onjava/CalcService (wrong name:
  CalcService)
  
  I follow each step from this tutorial. I put my
  CalcService.java and
  CalcClient.java in
  tomcat_Home\webapps\soap\WEB-INF\classes\onjava
  The all code are compiled(surely). I think that I
  needn't edit anything in
  web.xml and server.xml,
  because we have DeploymentDescriptor.xml, which
  defined the path, the urn
  for the servlet.
  Tomcat is smart enough to find CalcService.java. I
  consider that the request
  from client is not transfered to the server,
  That means that Tomcat hasn't found CalcService.java
  while client runs. I
  don't why, I can deploy and undeploy this
  webservice,
  all the code are copied from this tutorial, I don't
  know why?
  
  
  Best
  Feilong
  - Original Message - 
  From: sven morales [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, November 15, 2004 2:39 PM
  Subject: RE: Soap under Tomcat
  
  
   Exception in thread main [SOAPException:
   faultCode=SOAP-ENV:Protocol; msg=Unsupported
  response
   content type quot;text/html;
   charset=ISO-8859-1quot;, must be :
   quot;text/xmlquot;. Response was:
   lt;htmlgt;lt;headgt;lt;titlegt;Apache
   Tomcat/4.1.30 - Error reportlt;/tit
  
   Your error seems to point to the type  text/html.
   Apache SOAP uses POST and type text/xml.  I don't
  know
   how your program spits out text/html.  I tried
  same
   tutorial and it works for me.
 Also there is a tool called tcpmon thats very
   helpful in seeing whats being sent (HTTP) towards
   Tomcat and Tomcats HTTP response.
  
   aka_sergio
  
   __
   Do You Yahoo!?
   Tired of spam?  Yahoo! Mail has the best spam
  protection around
   http://mail.yahoo.com
  
  
 
 -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
  
  
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



RE: Tomcat 5.5.4 Upgrade Blog

2004-11-15 Thread Shapira, Yoav

Hi,
Cool.  I've added this to the wiki useful links page.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 9:42 AM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.4 Upgrade Blog

Hi Yoav,

Thanks, I've only just started with this Blog stuff - quite cool. I
think I
have found what you mean by PermaLinks and I have enabled it. The title
is
a link to the permalink itself ..

http://www.adcworks.com/blog/index.php/archives/2004/11/14/getting-up-a
nd-
running-with-tomcat-55/

Hope that helps!

Cheers, Allistair.

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 15 November 2004 14:31
 To: Tomcat Users List
 Subject: RE: Tomcat 5.5.4 Upgrade Blog



 Hi,
 It's a good blog.  I didn't see a PermaLink option: if there
 is one, I'd
 like to add the URL of this blog posting to the Tomcat wiki page.

 Yoav Shapira http://www.yoavshapira.com


 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Sent: Sunday, November 14, 2004 4:05 PM
 To: Tomcat Users List; Tomcat Users List
 Cc: [EMAIL PROTECTED]
 Subject: Tomcat 5.5.4 Upgrade Blog
 
 Hi List,
 
 
 
 Based on my upgrade to Tomcat 5.5.4 late last week and the few
config
 issues I came across, I wrote a Blog that can be found on my web
site
 here
 
 
 
 www.adcworks.com/blog http://www.adcworks.com/blog
 
 
 
 It covers IIS authentication (thanks Bill), logging, basic JNDI data
 source
 config.
 
 
 
 It won't be useful for everyone, but hopefully for some of you.
 Everything
 I have written works. Feel free to comment on this Blog from the
page
 or
 add additional information relating to it.
 
 
 
 Best regards, Allistair
 
 
 
 PS: Remy/Yoav, if you could take a look at this Blog and let
 me know if
 you
 think any of it is useful for the Tomcat pages, I can covert it
 appropriately.
 
 
 
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT




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




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Tomcat 5.5.4 Upgrade Blog

2004-11-15 Thread Allistair Crossley
Would any of it be relevant for the 22) Logging section of the TC 5.5 pages 
which is empty right now or is it not in scope?

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 15 November 2004 15:05
 To: Tomcat Users List
 Subject: RE: Tomcat 5.5.4 Upgrade Blog
 
 
 
 Hi,
 Cool.  I've added this to the wiki useful links page.
 
 Yoav Shapira http://www.yoavshapira.com
  
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 15, 2004 9:42 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 5.5.4 Upgrade Blog
 
 Hi Yoav,
 
 Thanks, I've only just started with this Blog stuff - quite cool. I
 think I
 have found what you mean by PermaLinks and I have enabled 
 it. The title
 is
 a link to the permalink itself ..
 
 http://www.adcworks.com/blog/index.php/archives/2004/11/14/ge
 tting-up-a
 nd-
 running-with-tomcat-55/
 
 Hope that helps!
 
 Cheers, Allistair.
 
  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Sent: 15 November 2004 14:31
  To: Tomcat Users List
  Subject: RE: Tomcat 5.5.4 Upgrade Blog
 
 
 
  Hi,
  It's a good blog.  I didn't see a PermaLink option: if there
  is one, I'd
  like to add the URL of this blog posting to the Tomcat wiki page.
 
  Yoav Shapira http://www.yoavshapira.com
 
 
  -Original Message-
  From: Allistair Crossley [mailto:[EMAIL PROTECTED]
  Sent: Sunday, November 14, 2004 4:05 PM
  To: Tomcat Users List; Tomcat Users List
  Cc: [EMAIL PROTECTED]
  Subject: Tomcat 5.5.4 Upgrade Blog
  
  Hi List,
  
  
  
  Based on my upgrade to Tomcat 5.5.4 late last week and the few
 config
  issues I came across, I wrote a Blog that can be found on my web
 site
  here
  
  
  
  www.adcworks.com/blog http://www.adcworks.com/blog
  
  
  
  It covers IIS authentication (thanks Bill), logging, 
 basic JNDI data
  source
  config.
  
  
  
  It won't be useful for everyone, but hopefully for some of you.
  Everything
  I have written works. Feel free to comment on this Blog from the
 page
  or
  add additional information relating to it.
  
  
  
  Best regards, Allistair
  
  
  
  PS: Remy/Yoav, if you could take a look at this Blog and let
  me know if
  you
  think any of it is useful for the Tomcat pages, I can covert it
  appropriately.
  
  
  
  
  
  FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
  ---
  QAS Ltd.
  Developers of QuickAddress Software
  a href=http://www.qas.com;www.qas.com/a
  Registered in England: No 2582055
  Registered in Australia: No 082 851 474
  ---
  /FONT
 
 
 
 
  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: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
 
 
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Tomcat 5.5.4 Upgrade Blog

2004-11-15 Thread Shapira, Yoav

Hi,
Sure, maybe the logging part of the blog... Feel free to submit a .diff
as always...

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 10:07 AM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.4 Upgrade Blog

Would any of it be relevant for the 22) Logging section of the TC 5.5
pages
which is empty right now or is it not in scope?

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 15 November 2004 15:05
 To: Tomcat Users List
 Subject: RE: Tomcat 5.5.4 Upgrade Blog



 Hi,
 Cool.  I've added this to the wiki useful links page.

 Yoav Shapira http://www.yoavshapira.com


 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 15, 2004 9:42 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 5.5.4 Upgrade Blog
 
 Hi Yoav,
 
 Thanks, I've only just started with this Blog stuff - quite cool. I
 think I
 have found what you mean by PermaLinks and I have enabled
 it. The title
 is
 a link to the permalink itself ..
 
 http://www.adcworks.com/blog/index.php/archives/2004/11/14/ge
 tting-up-a
 nd-
 running-with-tomcat-55/
 
 Hope that helps!
 
 Cheers, Allistair.
 
  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Sent: 15 November 2004 14:31
  To: Tomcat Users List
  Subject: RE: Tomcat 5.5.4 Upgrade Blog
 
 
 
  Hi,
  It's a good blog.  I didn't see a PermaLink option: if there
  is one, I'd
  like to add the URL of this blog posting to the Tomcat wiki page.
 
  Yoav Shapira http://www.yoavshapira.com
 
 
  -Original Message-
  From: Allistair Crossley [mailto:[EMAIL PROTECTED]
  Sent: Sunday, November 14, 2004 4:05 PM
  To: Tomcat Users List; Tomcat Users List
  Cc: [EMAIL PROTECTED]
  Subject: Tomcat 5.5.4 Upgrade Blog
  
  Hi List,
  
  
  
  Based on my upgrade to Tomcat 5.5.4 late last week and the few
 config
  issues I came across, I wrote a Blog that can be found on my web
 site
  here
  
  
  
  www.adcworks.com/blog http://www.adcworks.com/blog
  
  
  
  It covers IIS authentication (thanks Bill), logging,
 basic JNDI data
  source
  config.
  
  
  
  It won't be useful for everyone, but hopefully for some of you.
  Everything
  I have written works. Feel free to comment on this Blog from the
 page
  or
  add additional information relating to it.
  
  
  
  Best regards, Allistair
  
  
  
  PS: Remy/Yoav, if you could take a look at this Blog and let
  me know if
  you
  think any of it is useful for the Tomcat pages, I can covert it
  appropriately.
  
  
  
  
  
  FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
  ---
  QAS Ltd.
  Developers of QuickAddress Software
  a href=http://www.qas.com;www.qas.com/a
  Registered in England: No 2582055
  Registered in Australia: No 082 851 474
  ---
  /FONT
 
 
 
 
  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: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 

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




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered 

Re: Tomcat and -server option

2004-11-15 Thread Ronald Klop
java.library.path=/usr/local/j2sdk1.4.2_05/jre/lib/i386/client:...
   ^^
java.vm.name=Java HotSpot(TM) Client VM
 ^^
Ronald.
On Wed Nov 10 19:28:39 CET 2004 Mufaddal Khumri [EMAIL PROTECTED] wrote:
Hi,
I have specified the -server option in my catalina.sh using JAVA_OPTS.
JAVA_OPTS=-server -Djava.awt.headless=true -Xms1g -Xmx1g 
-Dfile.encoding=ISO-8859-1

When I log into the manager app in tomcat I can see that its taking the 
correct memory settings , but I could not find a way to verify that it 
is taking the -server flag into consideration. Is there a way to make 
sure that my JVM is taking the -server flag into consideration?

Additional info:
Tomcat Version: Apache Tomcat/5.0.27
JVM Version: 1.4.2_05-141.3
JVM Vendor: Apple Computer, Inc.
OS Name: Mac OS X
OS Version: 10.3.5
OS Architecture: ppc
Thanks.


http-https url rewrite bug TC 5.0.28?

2004-11-15 Thread John Sidney-Woollett
I'm not sure if this is a bug or a misunderstaning on my part - and I've 
been searching the archives and googling for most of the day without 
success...

I've got a problem where URL rewriting is failing to correctly encode 
the URL when switching from an insecure (non-ssl) connection to a secure 
ssl connection FOR THE SAME DOMAIN and where the session already exists 
for the insecure connection and COOKIES ARE DISABLED in the browser. I 
can reproduce this behaviour with different browsers.

An action servlet receives the non-ssl request and redirects to 
another secure action servlet. The call for the redirect should encode 
the URL as follows in the first servlet's service(request, response) method:

[snip]
if (gotoCheckout)
{
//goto the checkout
//this generates the URL
//https://www.mytestsite.com/CheckoutAction?action=start
String url = CheckoutAction.getCheckoutActionStartURL(request);
//make sure the JSESSIONID is appended for non-cookie browsers
url = response.encodeRedirectURL(url);
response.sendRedirect(url);
return;
}
[snip]
Looking at the headers, you can see that the JSESSIONID is not appended 
to the redirect URL when the protocol switches from http to https:

REQUEST
===
POST 
http://www.mytestsite.com/BasketAction;jsessionid=9E490ADF8FB268E3F6BC5FA2FD61E8CF 
HTTP/1.1
Host: www.mytestsite.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) 
Gecko/20030728 Mozilla Firebird/0.6.1
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer: 
http://www.mytestsite.com/basket;jsessionid=9E490ADF8FB268E3F6BC5FA2FD61E8CF
Content-Type: application/x-www-form-urlencoded
Content-Length: 66
ret=%2Fimage%2F6503740500223action=updbutaction=checkoutqty_0=1

RESPONSE

HTTP/1.x 302 Moved Temporarily
Date: Mon, 15 Nov 2004 13:38:23 GMT
Server: Apache/1.3.29
Location: https://www.mytestsite.com/CheckoutAction?action=start
Content-Length: 0
Content-Type: text/plain
Connection: close
Setup
Apache 1.3.29 + mod_ssl + mod_jk + tomcat 5.0.28 (unix)
Apache is configured with two virtual directives; one for port 80 and 
one for post 443 and the requests are forwarded by mod_jk to tomcat 
which has the following in its server.xml config:

[snip]
Host name=www.mytestsite.com appBase=/ef02/tc/www.mytestsite.com
 Context path= docBase=ROOT debug=0 reloadable=false
  ResourceLink name=jdbc/D1DB global=jdbc/D1DB 
type=javax.sql.DataSource/
 /Context
/Host
[snip]

Tomcat possibly nevers sees that the request is secure because the SSL 
part of the transaction is handled by mod_SSL, and I don't know if this 
has a bearing on the issue?

My question, should the JSESSIONID be appended in the encoded redirect - 
I think so?

And if it should, am I doing something wrong. Or is there a bug?
If there is a bug, should I manually append the ;jsessionid=xxx to 
the URL to workaround the problem.

Can anyone shed any light on this?
Many thanks
John Sidney-Woollett
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


logging question

2004-11-15 Thread Scott Pippin
I am trying to send the return values/errors for an application to a
different stdout file.  I set up everything but stdout is being
written
to catalina.out.
 
server.xml
 
 Server port=8005 shutdown=SHUTDOWN debug=0
   Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0
/ 
   Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0 / 
   Environment name=simpleValue type=java.lang.Integer value=30
/ 
   Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase description=User database
that
can be updated and saved / 
  ResourceParams name=UserDatabase
   parameter
   namefactory/name 
   valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value 
   /parameter
   parameter
   namepathname/name 
   valueconf/tomcat-users.xml/value 
   /parameter
   /ResourceParams
   /GlobalNamingResources
  Service name=Catalina
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75 enableLookups=false redirectPort=8443
acceptCount=100 debug=0 connectionTimeout=2
disableUploadTimeout=true / 
Connector port=8009 enableLookups=false redirectPort=8443
debug=0 protocol=AJP/1.3 / 
 Engine name=Catalina defaultHost=localhost debug=0
 Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true / 
  Realm className=org.apache.catalina.realm.JDBCRealm
connectionName=ims connectionPassword=ims
connectionURL=jdbc:mysql://10.131.1.200:3306/ims
driverName=com.mysql.jdbc.Driver userTable=imsuser
userNameCol=userid userCredCol=passwordid userRoleTable=imsrole
roleNameCol=userrole / 
  Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true xmlValidation=false
xmlNamespaceAware=false
  Logger className=org.apache.catalina.logger.FileLogger
   directory=logs  prefix=localhost_log.
suffix=.txt
timestamp=true/ 
   /Host
 /Engine
   /Service
  /Server
 
context.xml under the application/web-INF directory
?xml version=1.0 encoding=utf-8 ?
Context path=/IMS reloadable=true docBase=IMS debug=4
   Logger className=org.apache.catalina.logger.FileLogger
prefix=ims_log. suffix=.txt timestamp=true verbosity=4 /
   Logger className=org.apache.catalina.logger.SystemErrLogger
prefix=ims_err. suffix=.txt timestamp=true verbosity=4 /
   Logger className=org.apache.catalina.logger.SystemOutLogger
prefix=ims_out. suffix=.txt timestamp=true verbosity=4 /
/Context
 
Tomcat 5.0.28/Apache2
 
Have I missed something?
 
Thanks,

Scott Pippin
[EMAIL PROTECTED]


Re: http-https url rewrite bug TC 5.0.28?

2004-11-15 Thread John Sidney-Woollett
I should have mentioned that the problem I'm seeing is causing a new 
session to be created after the redirect when in fact I want the 
original session data prior to the redirect...

John Sidney-Woollett
John Sidney-Woollett wrote:
I'm not sure if this is a bug or a misunderstaning on my part - and I've 
been searching the archives and googling for most of the day without 
success...

I've got a problem where URL rewriting is failing to correctly encode 
the URL when switching from an insecure (non-ssl) connection to a secure 
ssl connection FOR THE SAME DOMAIN and where the session already exists 
for the insecure connection and COOKIES ARE DISABLED in the browser. I 
can reproduce this behaviour with different browsers.

An action servlet receives the non-ssl request and redirects to 
another secure action servlet. The call for the redirect should encode 
the URL as follows in the first servlet's service(request, response) 
method:

[snip]
if (gotoCheckout)
{
//goto the checkout
//this generates the URL
//https://www.mytestsite.com/CheckoutAction?action=start
String url = CheckoutAction.getCheckoutActionStartURL(request);
//make sure the JSESSIONID is appended for non-cookie browsers
url = response.encodeRedirectURL(url);
response.sendRedirect(url);
return;
}
[snip]
Looking at the headers, you can see that the JSESSIONID is not appended 
to the redirect URL when the protocol switches from http to https:

REQUEST
===
POST 
http://www.mytestsite.com/BasketAction;jsessionid=9E490ADF8FB268E3F6BC5FA2FD61E8CF 
HTTP/1.1
Host: www.mytestsite.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) 
Gecko/20030728 Mozilla Firebird/0.6.1
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1 

Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer: 
http://www.mytestsite.com/basket;jsessionid=9E490ADF8FB268E3F6BC5FA2FD61E8CF 

Content-Type: application/x-www-form-urlencoded
Content-Length: 66
ret=%2Fimage%2F6503740500223action=updbutaction=checkoutqty_0=1
RESPONSE

HTTP/1.x 302 Moved Temporarily
Date: Mon, 15 Nov 2004 13:38:23 GMT
Server: Apache/1.3.29
Location: https://www.mytestsite.com/CheckoutAction?action=start
Content-Length: 0
Content-Type: text/plain
Connection: close
Setup
Apache 1.3.29 + mod_ssl + mod_jk + tomcat 5.0.28 (unix)
Apache is configured with two virtual directives; one for port 80 and 
one for post 443 and the requests are forwarded by mod_jk to tomcat 
which has the following in its server.xml config:

[snip]
Host name=www.mytestsite.com appBase=/ef02/tc/www.mytestsite.com
 Context path= docBase=ROOT debug=0 reloadable=false
  ResourceLink name=jdbc/D1DB global=jdbc/D1DB 
type=javax.sql.DataSource/
 /Context
/Host
[snip]

Tomcat possibly nevers sees that the request is secure because the SSL 
part of the transaction is handled by mod_SSL, and I don't know if this 
has a bearing on the issue?

My question, should the JSESSIONID be appended in the encoded redirect - 
I think so?

And if it should, am I doing something wrong. Or is there a bug?
If there is a bug, should I manually append the ;jsessionid=xxx to 
the URL to workaround the problem.

Can anyone shed any light on this?
Many thanks
John Sidney-Woollett
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: logging question

2004-11-15 Thread Shapira, Yoav

Hi,
Just adding a Logger is not enough to redirect System.out.println calls
to it.  You need to add swallowOutput=true to your Context definition.
Or alternatively change the code from using System.out.println to using
getServletContext().log(...).

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Scott Pippin [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 10:20 AM
To: [EMAIL PROTECTED]
Subject: logging question

I am trying to send the return values/errors for an application to a
different stdout file.  I set up everything but stdout is being
written
to catalina.out.

server.xml

 Server port=8005 shutdown=SHUTDOWN debug=0
   Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0
/
   Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0 /
   Environment name=simpleValue type=java.lang.Integer value=30
/
   Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase description=User database
that
can be updated and saved /
  ResourceParams name=UserDatabase
   parameter
   namefactory/name
   valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
   namepathname/name
   valueconf/tomcat-users.xml/value
   /parameter
   /ResourceParams
   /GlobalNamingResources
  Service name=Catalina
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75 enableLookups=false redirectPort=8443
acceptCount=100 debug=0 connectionTimeout=2
disableUploadTimeout=true /
Connector port=8009 enableLookups=false redirectPort=8443
debug=0 protocol=AJP/1.3 /
 Engine name=Catalina defaultHost=localhost debug=0
 Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true /
  Realm className=org.apache.catalina.realm.JDBCRealm
connectionName=ims connectionPassword=ims
connectionURL=jdbc:mysql://10.131.1.200:3306/ims
driverName=com.mysql.jdbc.Driver userTable=imsuser
userNameCol=userid userCredCol=passwordid userRoleTable=imsrole
roleNameCol=userrole /
  Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true xmlValidation=false
xmlNamespaceAware=false
  Logger className=org.apache.catalina.logger.FileLogger
   directory=logs  prefix=localhost_log.
suffix=.txt
timestamp=true/
   /Host
 /Engine
   /Service
  /Server

context.xml under the application/web-INF directory
?xml version=1.0 encoding=utf-8 ?
Context path=/IMS reloadable=true docBase=IMS debug=4
   Logger className=org.apache.catalina.logger.FileLogger
prefix=ims_log. suffix=.txt timestamp=true verbosity=4 /
   Logger className=org.apache.catalina.logger.SystemErrLogger
prefix=ims_err. suffix=.txt timestamp=true verbosity=4 /
   Logger className=org.apache.catalina.logger.SystemOutLogger
prefix=ims_out. suffix=.txt timestamp=true verbosity=4 /
/Context

Tomcat 5.0.28/Apache2

Have I missed something?

Thanks,

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



RE: http-https url rewrite bug TC 5.0.28?

2004-11-15 Thread Shapira, Yoav

Hi,
Not a bug.  You can't share a session that way, whether using cookies or
URL-rewriting.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: John Sidney-Woollett [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 10:21 AM
To: [EMAIL PROTECTED]
Subject: http-https url rewrite bug TC 5.0.28?

I'm not sure if this is a bug or a misunderstaning on my part - and
I've
been searching the archives and googling for most of the day without
success...

I've got a problem where URL rewriting is failing to correctly encode
the URL when switching from an insecure (non-ssl) connection to a
secure
ssl connection FOR THE SAME DOMAIN and where the session already exists
for the insecure connection and COOKIES ARE DISABLED in the browser. I
can reproduce this behaviour with different browsers.

An action servlet receives the non-ssl request and redirects to
another secure action servlet. The call for the redirect should
encode
the URL as follows in the first servlet's service(request, response)
method:

[snip]
if (gotoCheckout)
{
   //goto the checkout
   //this generates the URL
   //https://www.mytestsite.com/CheckoutAction?action=start
   String url = CheckoutAction.getCheckoutActionStartURL(request);

   //make sure the JSESSIONID is appended for non-cookie browsers
   url = response.encodeRedirectURL(url);

   response.sendRedirect(url);
   return;
}
[snip]

Looking at the headers, you can see that the JSESSIONID is not appended
to the redirect URL when the protocol switches from http to https:

REQUEST
===
POST
http://www.mytestsite.com/BasketAction;jsessionid=9E490ADF8FB268E3F6BC5
FA2F
D61E8CF
HTTP/1.1
Host: www.mytestsite.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a)
Gecko/20030728 Mozilla Firebird/0.6.1
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/pla
in;q
=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer:
http://www.mytestsite.com/basket;jsessionid=9E490ADF8FB268E3F6BC5FA2FD6
1E8C
F
Content-Type: application/x-www-form-urlencoded
Content-Length: 66
ret=%2Fimage%2F6503740500223action=updbutaction=checkoutqty_0=1

RESPONSE

HTTP/1.x 302 Moved Temporarily
Date: Mon, 15 Nov 2004 13:38:23 GMT
Server: Apache/1.3.29
Location: https://www.mytestsite.com/CheckoutAction?action=start
Content-Length: 0
Content-Type: text/plain
Connection: close


Setup

Apache 1.3.29 + mod_ssl + mod_jk + tomcat 5.0.28 (unix)

Apache is configured with two virtual directives; one for port 80 and
one for post 443 and the requests are forwarded by mod_jk to tomcat
which has the following in its server.xml config:

[snip]
Host name=www.mytestsite.com appBase=/ef02/tc/www.mytestsite.com
  Context path= docBase=ROOT debug=0 reloadable=false
   ResourceLink name=jdbc/D1DB global=jdbc/D1DB
type=javax.sql.DataSource/
  /Context
/Host
[snip]

Tomcat possibly nevers sees that the request is secure because the
SSL
part of the transaction is handled by mod_SSL, and I don't know if this
has a bearing on the issue?

My question, should the JSESSIONID be appended in the encoded redirect
-
I think so?

And if it should, am I doing something wrong. Or is there a bug?

If there is a bug, should I manually append the ;jsessionid=xxx
to
the URL to workaround the problem.

Can anyone shed any light on this?

Many thanks

John Sidney-Woollett

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



RE: Tomcat 5.5.4 Upgrade Blog

2004-11-15 Thread Allistair Crossley
Hi,

OK, I have added my changes to logging.xml and am ready to submit the diff. So 
far I have been able to diff -u in WinCVS but it does not ouput to file. You 
have to copy and paste to a text file. My questions are

1. Do I include this header stuff in my patch.txt

Index: logging.xml
===
RCS file: /home/cvspublic/jakarta-tomcat-catalina/webapps/docs/logging.xml,v
retrieving revision 1.1
diff -u -r1.1 logging.xml
--- logging.xml 7 Oct 2004 18:16:05 -   1.1
+++ logging.xml 15 Nov 2004 15:41:33 -
@@ -4,32 +4,140 @@
 ]
 document url=logging.html

2. Where and how should I submit this patch.txt?

Thanks! Allistair

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 15 November 2004 15:05
 To: Tomcat Users List
 Subject: RE: Tomcat 5.5.4 Upgrade Blog
 
 
 
 Hi,
 Cool.  I've added this to the wiki useful links page.
 
 Yoav Shapira http://www.yoavshapira.com
  
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 15, 2004 9:42 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 5.5.4 Upgrade Blog
 
 Hi Yoav,
 
 Thanks, I've only just started with this Blog stuff - quite cool. I
 think I
 have found what you mean by PermaLinks and I have enabled 
 it. The title
 is
 a link to the permalink itself ..
 
 http://www.adcworks.com/blog/index.php/archives/2004/11/14/ge
 tting-up-a
 nd-
 running-with-tomcat-55/
 
 Hope that helps!
 
 Cheers, Allistair.
 
  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Sent: 15 November 2004 14:31
  To: Tomcat Users List
  Subject: RE: Tomcat 5.5.4 Upgrade Blog
 
 
 
  Hi,
  It's a good blog.  I didn't see a PermaLink option: if there
  is one, I'd
  like to add the URL of this blog posting to the Tomcat wiki page.
 
  Yoav Shapira http://www.yoavshapira.com
 
 
  -Original Message-
  From: Allistair Crossley [mailto:[EMAIL PROTECTED]
  Sent: Sunday, November 14, 2004 4:05 PM
  To: Tomcat Users List; Tomcat Users List
  Cc: [EMAIL PROTECTED]
  Subject: Tomcat 5.5.4 Upgrade Blog
  
  Hi List,
  
  
  
  Based on my upgrade to Tomcat 5.5.4 late last week and the few
 config
  issues I came across, I wrote a Blog that can be found on my web
 site
  here
  
  
  
  www.adcworks.com/blog http://www.adcworks.com/blog
  
  
  
  It covers IIS authentication (thanks Bill), logging, 
 basic JNDI data
  source
  config.
  
  
  
  It won't be useful for everyone, but hopefully for some of you.
  Everything
  I have written works. Feel free to comment on this Blog from the
 page
  or
  add additional information relating to it.
  
  
  
  Best regards, Allistair
  
  
  
  PS: Remy/Yoav, if you could take a look at this Blog and let
  me know if
  you
  think any of it is useful for the Tomcat pages, I can covert it
  appropriately.
  
  
  
  
  
  FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
  ---
  QAS Ltd.
  Developers of QuickAddress Software
  a href=http://www.qas.com;www.qas.com/a
  Registered in England: No 2582055
  Registered in Australia: No 082 851 474
  ---
  /FONT
 
 
 
 
  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: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
 
 
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [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: [EMAIL PROTECTED]

RE: Tomcat 5.5.4 Upgrade Blog

2004-11-15 Thread Shapira, Yoav

Hi,

1. Do I include this header stuff in my patch.txt

Yes.

2. Where and how should I submit this patch.txt?

Into a new Bugzilla enhancement issue that you'd open.

Yoav



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



Cannot create JDBC driver of class '' for connect URL 'null'

2004-11-15 Thread Ed Sykes
Hi,

 

I'm trying to setup DBCP with Tomcat 5.5.4 with Oracle 8.1.6 using Java 1.5.0

 

I've read FAQ, and the Jakarta How-To Docs:  

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html

 

Everything works fine if I don't use connection pooling or JNDI lookups.

i.e., 

 

Class.forName(Connection_Info.JDBC_DRIVER);

conn = DriverManager.getConnection(URL, USERNAME, PASSWORD);

stmt = conn.createStatement();

 

works fine.  So, Tomcat finds the Oracle JDBC driver fine.

 

I'm getting the following error:

 

Cannot create JDBC driver of class '' for connect URL 'null'

 

Here's is the section I've added to C:\jakarta-tomcat-5.5.4\conf\server.xml

 

Context path=/ROOT/WEB-INF/classes docBase=ROOT/WEB-INF/classes/JITS

debug=5 reloadable=true crossContext=true

  

   Resource name=jdbc/myoracle auth=Container

  type=javax.sql.DataSource 
driverClassName=oracle.jdbc.driver.OracleDriver

  url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2

  username=jits password=mypassword maxActive=20 maxIdle=10

  maxWait=-1/ 

 

ResourceParams name=jdbc/myoracle

  parameter

namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value

  /parameter

  parameter

namedriverClassName/name

valueoracle.jdbc.driver.OracleDriver/value

  /parameter

  parameter

nameurl/name

valuejdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2/value

  /parameter

  parameter

nameusername/name

valuejits/value

  /parameter

  parameter

namepassword/name

valuemypassword/value

  /parameter

  parameter

namemaxActive/name

value20/value

  /parameter

  parameter

namemaxIdle/name

value10/value

  /parameter

  parameter

namemaxWait/name

value-1/value

  /parameter

/ResourceParams

 

 

/Context

 

 

 

 

Here's the contents of C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF\web.xml

 

 

servlet

servlet-nameJITS.ImageServer/servlet-name

servlet-classJITS.ImageServer/servlet-class

/servlet

 

  servlet-mapping

servlet-nameJITS.ImageServer/servlet-name

url-pattern/servlet/JITS.ImageServer/url-pattern

/servlet-mapping

 

 resource-ref

 descriptionOracle Datasource example/description

 res-ref-namejdbc/myoracle/res-ref-name

 res-typejavax.sql.DataSource/res-type

 res-authContainer/res-auth

/resource-ref

 

 

 

In my java file ( ImageServer.java )  :

 

 

Context initContext = new InitialContext();

System.out.println(1 got an initial context from JNDI);



Context envContext = (Context)initContext.lookup(java:/comp/env);

System.out.println(2 got a context from JNDI);



DataSource ds = (DataSource)envContext.lookup(jdbc/myoracle);

System.out.println(3 got a datasource from JNDI);





Connection conn = ds.getConnection();   

System.out.println(4 got a connection from the pool);

   

 

 

OUTPUT:

1 got an initial context from JNDI

2 got a context from JNDI

3 got a datasource from JNDI

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of 
class '' for connect URL 'null'

at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)

at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:554)

at JITS.ImageServer.getImage(ImageServer.java:48)

 

 

Any suggestions would be gratefully appreciated !

 

Sincerely,

Ed Sykes

 

 


RE: Cannot create JDBC driver of class '' for connect URL 'null'

2004-11-15 Thread Allistair Crossley
Ed,

Not sure if it will _cause_ it, but you need to remove ResourceParam elements, 
as it's all covered in Resource.

ADC

 -Original Message-
 From: Ed Sykes [mailto:[EMAIL PROTECTED]
 Sent: 15 November 2004 16:49
 To: [EMAIL PROTECTED]
 Subject: Cannot create JDBC driver of class '' for connect URL 'null'
 
 
 Hi,
 
  
 
 I'm trying to setup DBCP with Tomcat 5.5.4 with Oracle 8.1.6 
 using Java 1.5.0
 
  
 
 I've read FAQ, and the Jakarta How-To Docs:  
 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasourc
 e-examples-howto.html
 
  
 
 Everything works fine if I don't use connection pooling or 
 JNDI lookups.
 
 i.e., 
 
  
 
 Class.forName(Connection_Info.JDBC_DRIVER);
 
 conn = DriverManager.getConnection(URL, USERNAME, PASSWORD);
 
 stmt = conn.createStatement();
 
  
 
 works fine.  So, Tomcat finds the Oracle JDBC driver fine.
 
  
 
 I'm getting the following error:
 
  
 
 Cannot create JDBC driver of class '' for connect URL 'null'
 
  
 
 Here's is the section I've added to 
 C:\jakarta-tomcat-5.5.4\conf\server.xml
 
  
 
 Context path=/ROOT/WEB-INF/classes 
 docBase=ROOT/WEB-INF/classes/JITS
 
 debug=5 reloadable=true crossContext=true
 
   
 
Resource name=jdbc/myoracle auth=Container
 
   type=javax.sql.DataSource 
 driverClassName=oracle.jdbc.driver.OracleDriver
 
   url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2
 
   username=jits password=mypassword 
 maxActive=20 maxIdle=10
 
   maxWait=-1/ 
 
  
 
 ResourceParams name=jdbc/myoracle
 
   parameter
 
 namefactory/name
 
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 
   /parameter
 
   parameter
 
 namedriverClassName/name
 
 valueoracle.jdbc.driver.OracleDriver/value
 
   /parameter
 
   parameter
 
 nameurl/name
 
 valuejdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2/value
 
   /parameter
 
   parameter
 
 nameusername/name
 
 valuejits/value
 
   /parameter
 
   parameter
 
 namepassword/name
 
 valuemypassword/value
 
   /parameter
 
   parameter
 
 namemaxActive/name
 
 value20/value
 
   /parameter
 
   parameter
 
 namemaxIdle/name
 
 value10/value
 
   /parameter
 
   parameter
 
 namemaxWait/name
 
 value-1/value
 
   /parameter
 
 /ResourceParams
 
  
 
  
 
 /Context
 
  
 
  
 
  
 
  
 
 Here's the contents of 
 C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF\web.xml
 
  
 
  
 
 servlet
 
 servlet-nameJITS.ImageServer/servlet-name
 
 servlet-classJITS.ImageServer/servlet-class
 
 /servlet
 
  
 
   servlet-mapping
 
 servlet-nameJITS.ImageServer/servlet-name
 
 url-pattern/servlet/JITS.ImageServer/url-pattern
 
 /servlet-mapping
 
  
 
  resource-ref
 
  descriptionOracle Datasource example/description
 
  res-ref-namejdbc/myoracle/res-ref-name
 
  res-typejavax.sql.DataSource/res-type
 
  res-authContainer/res-auth
 
 /resource-ref
 
  
 
  
 
  
 
 In my java file ( ImageServer.java )  :
 
  
 
  
 
 Context initContext = new InitialContext();
 
 System.out.println(1 got an initial context from JNDI);
 
 
 
 Context envContext = 
 (Context)initContext.lookup(java:/comp/env);
 
 System.out.println(2 got a context from JNDI);
 
 
 
 DataSource ds = 
 (DataSource)envContext.lookup(jdbc/myoracle);
 
 System.out.println(3 got a datasource from JNDI);
 
 
 
 
 
 Connection conn = ds.getConnection();   
 
 System.out.println(4 got a connection from the pool);
 

 
  
 
  
 
 OUTPUT:
 
 1 got an initial context from JNDI
 
 2 got a context from JNDI
 
 3 got a datasource from JNDI
 
 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create 
 JDBC driver of class '' for connect URL 'null'
 
 at 
 org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(B
 asicDataSource.java:780)
 
 at 
 org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(Basi
 cDataSource.java:554)
 
 at JITS.ImageServer.getImage(ImageServer.java:48)
 
  
 
  
 
 Any suggestions would be gratefully appreciated !
 
  
 
 Sincerely,
 
 Ed Sykes
 
  
 
  
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Cannot create JDBC driver of class '' for connect URL 'null'

2004-11-15 Thread Allistair Crossley
Also, you may want to look at configuring your webapp outside of server.xml 
using the tomcat/Catalina/localhost/ROOT.xml method

I recently discussed this here 

http://www.adcworks.com/blog/index.php/archives/2004/11/14/getting-up-and-running-with-tomcat-55

Hope it helps, ADC.

 -Original Message-
 From: Ed Sykes [mailto:[EMAIL PROTECTED]
 Sent: 15 November 2004 16:49
 To: [EMAIL PROTECTED]
 Subject: Cannot create JDBC driver of class '' for connect URL 'null'
 
 
 Hi,
 
  
 
 I'm trying to setup DBCP with Tomcat 5.5.4 with Oracle 8.1.6 
 using Java 1.5.0
 
  
 
 I've read FAQ, and the Jakarta How-To Docs:  
 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasourc
 e-examples-howto.html
 
  
 
 Everything works fine if I don't use connection pooling or 
 JNDI lookups.
 
 i.e., 
 
  
 
 Class.forName(Connection_Info.JDBC_DRIVER);
 
 conn = DriverManager.getConnection(URL, USERNAME, PASSWORD);
 
 stmt = conn.createStatement();
 
  
 
 works fine.  So, Tomcat finds the Oracle JDBC driver fine.
 
  
 
 I'm getting the following error:
 
  
 
 Cannot create JDBC driver of class '' for connect URL 'null'
 
  
 
 Here's is the section I've added to 
 C:\jakarta-tomcat-5.5.4\conf\server.xml
 
  
 
 Context path=/ROOT/WEB-INF/classes 
 docBase=ROOT/WEB-INF/classes/JITS
 
 debug=5 reloadable=true crossContext=true
 
   
 
Resource name=jdbc/myoracle auth=Container
 
   type=javax.sql.DataSource 
 driverClassName=oracle.jdbc.driver.OracleDriver
 
   url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2
 
   username=jits password=mypassword 
 maxActive=20 maxIdle=10
 
   maxWait=-1/ 
 
  
 
 ResourceParams name=jdbc/myoracle
 
   parameter
 
 namefactory/name
 
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 
   /parameter
 
   parameter
 
 namedriverClassName/name
 
 valueoracle.jdbc.driver.OracleDriver/value
 
   /parameter
 
   parameter
 
 nameurl/name
 
 valuejdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2/value
 
   /parameter
 
   parameter
 
 nameusername/name
 
 valuejits/value
 
   /parameter
 
   parameter
 
 namepassword/name
 
 valuemypassword/value
 
   /parameter
 
   parameter
 
 namemaxActive/name
 
 value20/value
 
   /parameter
 
   parameter
 
 namemaxIdle/name
 
 value10/value
 
   /parameter
 
   parameter
 
 namemaxWait/name
 
 value-1/value
 
   /parameter
 
 /ResourceParams
 
  
 
  
 
 /Context
 
  
 
  
 
  
 
  
 
 Here's the contents of 
 C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF\web.xml
 
  
 
  
 
 servlet
 
 servlet-nameJITS.ImageServer/servlet-name
 
 servlet-classJITS.ImageServer/servlet-class
 
 /servlet
 
  
 
   servlet-mapping
 
 servlet-nameJITS.ImageServer/servlet-name
 
 url-pattern/servlet/JITS.ImageServer/url-pattern
 
 /servlet-mapping
 
  
 
  resource-ref
 
  descriptionOracle Datasource example/description
 
  res-ref-namejdbc/myoracle/res-ref-name
 
  res-typejavax.sql.DataSource/res-type
 
  res-authContainer/res-auth
 
 /resource-ref
 
  
 
  
 
  
 
 In my java file ( ImageServer.java )  :
 
  
 
  
 
 Context initContext = new InitialContext();
 
 System.out.println(1 got an initial context from JNDI);
 
 
 
 Context envContext = 
 (Context)initContext.lookup(java:/comp/env);
 
 System.out.println(2 got a context from JNDI);
 
 
 
 DataSource ds = 
 (DataSource)envContext.lookup(jdbc/myoracle);
 
 System.out.println(3 got a datasource from JNDI);
 
 
 
 
 
 Connection conn = ds.getConnection();   
 
 System.out.println(4 got a connection from the pool);
 

 
  
 
  
 
 OUTPUT:
 
 1 got an initial context from JNDI
 
 2 got a context from JNDI
 
 3 got a datasource from JNDI
 
 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create 
 JDBC driver of class '' for connect URL 'null'
 
 at 
 org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(B
 asicDataSource.java:780)
 
 at 
 org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(Basi
 cDataSource.java:554)
 
 at JITS.ImageServer.getImage(ImageServer.java:48)
 
  
 
  
 
 Any suggestions would be gratefully appreciated !
 
  
 
 Sincerely,
 
 Ed Sykes
 
  
 
  
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Re: Cannot create JDBC driver of class '' for connect URL 'null'

2004-11-15 Thread Ed Sykes
Hi Allistair,
Thanks for your quick response.
I just removed all the ResourceParam elements and it has no effect.
-Ed
- Original Message - 
From: Allistair Crossley [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 11:51 AM
Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null'

Ed,
Not sure if it will _cause_ it, but you need to remove ResourceParam 
elements, as it's all covered in Resource.

ADC
-Original Message-
From: Ed Sykes [mailto:[EMAIL PROTECTED]
Sent: 15 November 2004 16:49
To: [EMAIL PROTECTED]
Subject: Cannot create JDBC driver of class '' for connect URL 'null'
Hi,

I'm trying to setup DBCP with Tomcat 5.5.4 with Oracle 8.1.6
using Java 1.5.0

I've read FAQ, and the Jakarta How-To Docs:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasourc
e-examples-howto.html

Everything works fine if I don't use connection pooling or
JNDI lookups.
i.e.,

Class.forName(Connection_Info.JDBC_DRIVER);
conn = DriverManager.getConnection(URL, USERNAME, PASSWORD);
stmt = conn.createStatement();

works fine.  So, Tomcat finds the Oracle JDBC driver fine.

I'm getting the following error:

Cannot create JDBC driver of class '' for connect URL 'null'

Here's is the section I've added to
C:\jakarta-tomcat-5.5.4\conf\server.xml

Context path=/ROOT/WEB-INF/classes
docBase=ROOT/WEB-INF/classes/JITS
debug=5 reloadable=true crossContext=true

   Resource name=jdbc/myoracle auth=Container
  type=javax.sql.DataSource
driverClassName=oracle.jdbc.driver.OracleDriver
  url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2
  username=jits password=mypassword
maxActive=20 maxIdle=10
  maxWait=-1/

ResourceParams name=jdbc/myoracle
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
nameurl/name
valuejdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2/value
  /parameter
  parameter
nameusername/name
valuejits/value
  /parameter
  parameter
namepassword/name
valuemypassword/value
  /parameter
  parameter
namemaxActive/name
value20/value
  /parameter
  parameter
namemaxIdle/name
value10/value
  /parameter
  parameter
namemaxWait/name
value-1/value
  /parameter
/ResourceParams


/Context




Here's the contents of
C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF\web.xml


servlet
servlet-nameJITS.ImageServer/servlet-name
servlet-classJITS.ImageServer/servlet-class
/servlet

  servlet-mapping
servlet-nameJITS.ImageServer/servlet-name
url-pattern/servlet/JITS.ImageServer/url-pattern
/servlet-mapping

 resource-ref
 descriptionOracle Datasource example/description
 res-ref-namejdbc/myoracle/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
/resource-ref



In my java file ( ImageServer.java )  :


Context initContext = new InitialContext();
System.out.println(1 got an initial context from JNDI);

Context envContext =
(Context)initContext.lookup(java:/comp/env);
System.out.println(2 got a context from JNDI);

DataSource ds =
(DataSource)envContext.lookup(jdbc/myoracle);
System.out.println(3 got a datasource from JNDI);


Connection conn = ds.getConnection();
System.out.println(4 got a connection from the pool);



OUTPUT:
1 got an initial context from JNDI
2 got a context from JNDI
3 got a datasource from JNDI
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
JDBC driver of class '' for connect URL 'null'
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(B
asicDataSource.java:780)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(Basi
cDataSource.java:554)
at JITS.ImageServer.getImage(ImageServer.java:48)


Any suggestions would be gratefully appreciated !

Sincerely,
Ed Sykes



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Cannot create JDBC driver of class '' for connect URL 'null'

2004-11-15 Thread Ed Sykes
Hi Allistair,
I'll read through it and report back.
Thanks !!
-Ed
- Original Message - 
From: Allistair Crossley [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 11:53 AM
Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null'

Also, you may want to look at configuring your webapp outside of server.xml 
using the tomcat/Catalina/localhost/ROOT.xml method

I recently discussed this here
http://www.adcworks.com/blog/index.php/archives/2004/11/14/getting-up-and-running-with-tomcat-55
Hope it helps, ADC.
-Original Message-
From: Ed Sykes [mailto:[EMAIL PROTECTED]
Sent: 15 November 2004 16:49
To: [EMAIL PROTECTED]
Subject: Cannot create JDBC driver of class '' for connect URL 'null'
Hi,

I'm trying to setup DBCP with Tomcat 5.5.4 with Oracle 8.1.6
using Java 1.5.0

I've read FAQ, and the Jakarta How-To Docs:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasourc
e-examples-howto.html

Everything works fine if I don't use connection pooling or
JNDI lookups.
i.e.,

Class.forName(Connection_Info.JDBC_DRIVER);
conn = DriverManager.getConnection(URL, USERNAME, PASSWORD);
stmt = conn.createStatement();

works fine.  So, Tomcat finds the Oracle JDBC driver fine.

I'm getting the following error:

Cannot create JDBC driver of class '' for connect URL 'null'

Here's is the section I've added to
C:\jakarta-tomcat-5.5.4\conf\server.xml

Context path=/ROOT/WEB-INF/classes
docBase=ROOT/WEB-INF/classes/JITS
debug=5 reloadable=true crossContext=true

   Resource name=jdbc/myoracle auth=Container
  type=javax.sql.DataSource
driverClassName=oracle.jdbc.driver.OracleDriver
  url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2
  username=jits password=mypassword
maxActive=20 maxIdle=10
  maxWait=-1/

ResourceParams name=jdbc/myoracle
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
nameurl/name
valuejdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2/value
  /parameter
  parameter
nameusername/name
valuejits/value
  /parameter
  parameter
namepassword/name
valuemypassword/value
  /parameter
  parameter
namemaxActive/name
value20/value
  /parameter
  parameter
namemaxIdle/name
value10/value
  /parameter
  parameter
namemaxWait/name
value-1/value
  /parameter
/ResourceParams


/Context




Here's the contents of
C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF\web.xml


servlet
servlet-nameJITS.ImageServer/servlet-name
servlet-classJITS.ImageServer/servlet-class
/servlet

  servlet-mapping
servlet-nameJITS.ImageServer/servlet-name
url-pattern/servlet/JITS.ImageServer/url-pattern
/servlet-mapping

 resource-ref
 descriptionOracle Datasource example/description
 res-ref-namejdbc/myoracle/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
/resource-ref



In my java file ( ImageServer.java )  :


Context initContext = new InitialContext();
System.out.println(1 got an initial context from JNDI);

Context envContext =
(Context)initContext.lookup(java:/comp/env);
System.out.println(2 got a context from JNDI);

DataSource ds =
(DataSource)envContext.lookup(jdbc/myoracle);
System.out.println(3 got a datasource from JNDI);


Connection conn = ds.getConnection();
System.out.println(4 got a connection from the pool);



OUTPUT:
1 got an initial context from JNDI
2 got a context from JNDI
3 got a datasource from JNDI
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
JDBC driver of class '' for connect URL 'null'
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(B
asicDataSource.java:780)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(Basi
cDataSource.java:554)
at JITS.ImageServer.getImage(ImageServer.java:48)


Any suggestions would be gratefully appreciated !

Sincerely,
Ed Sykes



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Cannot create JDBC driver of class '' for connect URL 'null'

2004-11-15 Thread Shapira, Yoav

Hi,

Context path=/ROOT/WEB-INF/classes
docBase=ROOT/WEB-INF/classes/JITS

I really doubt you mean these.  The context path attribute is the URL
path used by browsers to retrieve your web pages, i.e.
http://yourhost:yourport/path.  It's not a filesystem path.

The context docBase is the root of your webapp.  It should point to a
directory which has a WEB-INF subdirectory containing web.xml.
Therefore, I'm guessting your docBase is just ROOT and your path is
.  Drop the Web-INF/classes part from both.

   Resource name=jdbc/myoracle auth=Container

  type=javax.sql.DataSource
driverClassName=oracle.jdbc.driver.OracleDriver

  url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2

  username=jits password=mypassword maxActive=20
maxIdle=10

  maxWait=-1/

This looks reasonable.

ResourceParams name=jdbc/myoracle

As Allistair pointed out and the docs explain, this is no longer needed
in Tomcat 5.5, and should be removed.

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC
driver
of class '' for connect URL 'null'

Where is your JDBC driver file?  In common/lib or WEB-INF/lib?  It
should be the former if you're using DBCP this way.  The latter would
work using the primitive DriverManager approach and fail with DBCP.

Yoav Shapira http://www.yoavshapira.com



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



RE: Cannot create JDBC driver of class '' for connect URL 'null'

2004-11-15 Thread Allistair Crossley
i've never seen a path attribute with a value of /ROOT/WEB-INF/classes ... why 
have you chosen this?

 -Original Message-
 From: Ed Sykes [mailto:[EMAIL PROTECTED]
 Sent: 15 November 2004 16:58
 To: Tomcat Users List
 Subject: Re: Cannot create JDBC driver of class '' for connect URL
 'null'
 
 
 Hi Allistair,
 
 Thanks for your quick response.
 I just removed all the ResourceParam elements and it has no effect.
 
 -Ed
 - Original Message - 
 From: Allistair Crossley [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, November 15, 2004 11:51 AM
 Subject: RE: Cannot create JDBC driver of class '' for 
 connect URL 'null'
 
 
 Ed,
 
 Not sure if it will _cause_ it, but you need to remove ResourceParam 
 elements, as it's all covered in Resource.
 
 ADC
 
  -Original Message-
  From: Ed Sykes [mailto:[EMAIL PROTECTED]
  Sent: 15 November 2004 16:49
  To: [EMAIL PROTECTED]
  Subject: Cannot create JDBC driver of class '' for connect 
 URL 'null'
 
 
  Hi,
 
 
 
  I'm trying to setup DBCP with Tomcat 5.5.4 with Oracle 8.1.6
  using Java 1.5.0
 
 
 
  I've read FAQ, and the Jakarta How-To Docs:
 
  http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasourc
  e-examples-howto.html
 
 
 
  Everything works fine if I don't use connection pooling or
  JNDI lookups.
 
  i.e.,
 
 
 
  Class.forName(Connection_Info.JDBC_DRIVER);
 
  conn = DriverManager.getConnection(URL, USERNAME, PASSWORD);
 
  stmt = conn.createStatement();
 
 
 
  works fine.  So, Tomcat finds the Oracle JDBC driver fine.
 
 
 
  I'm getting the following error:
 
 
 
  Cannot create JDBC driver of class '' for connect URL 'null'
 
 
 
  Here's is the section I've added to
  C:\jakarta-tomcat-5.5.4\conf\server.xml
 
 
 
  Context path=/ROOT/WEB-INF/classes
  docBase=ROOT/WEB-INF/classes/JITS
 
  debug=5 reloadable=true crossContext=true
 
 
 
 Resource name=jdbc/myoracle auth=Container
 
type=javax.sql.DataSource
  driverClassName=oracle.jdbc.driver.OracleDriver
 

 url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2
 
username=jits password=mypassword
  maxActive=20 maxIdle=10
 
maxWait=-1/
 
 
 
  ResourceParams name=jdbc/myoracle
 
parameter
 
  namefactory/name
 
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 
/parameter
 
parameter
 
  namedriverClassName/name
 
  valueoracle.jdbc.driver.OracleDriver/value
 
/parameter
 
parameter
 
  nameurl/name
 
  valuejdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2/value
 
/parameter
 
parameter
 
  nameusername/name
 
  valuejits/value
 
/parameter
 
parameter
 
  namepassword/name
 
  valuemypassword/value
 
/parameter
 
parameter
 
  namemaxActive/name
 
  value20/value
 
/parameter
 
parameter
 
  namemaxIdle/name
 
  value10/value
 
/parameter
 
parameter
 
  namemaxWait/name
 
  value-1/value
 
/parameter
 
  /ResourceParams
 
 
 
 
 
  /Context
 
 
 
 
 
 
 
 
 
  Here's the contents of
  C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF\web.xml
 
 
 
 
 
  servlet
 
  servlet-nameJITS.ImageServer/servlet-name
 
  servlet-classJITS.ImageServer/servlet-class
 
  /servlet
 
 
 
servlet-mapping
 
  servlet-nameJITS.ImageServer/servlet-name
 
  url-pattern/servlet/JITS.ImageServer/url-pattern
 
  /servlet-mapping
 
 
 
   resource-ref
 
   descriptionOracle Datasource example/description
 
   res-ref-namejdbc/myoracle/res-ref-name
 
   res-typejavax.sql.DataSource/res-type
 
   res-authContainer/res-auth
 
  /resource-ref
 
 
 
 
 
 
 
  In my java file ( ImageServer.java )  :
 
 
 
 
 
  Context initContext = new InitialContext();
 
  System.out.println(1 got an initial context from JNDI);
 
 
 
  Context envContext =
  (Context)initContext.lookup(java:/comp/env);
 
  System.out.println(2 got a context from JNDI);
 
 
 
  DataSource ds =
  (DataSource)envContext.lookup(jdbc/myoracle);
 
  System.out.println(3 got a datasource from JNDI);
 
 
 
 
 
  Connection conn = ds.getConnection();
 
  System.out.println(4 got a connection from the pool);
 
 
 
 
 
 
 
  OUTPUT:
 
  1 got an initial context from JNDI
 
  2 got a context from JNDI
 
  3 got a datasource from JNDI
 
  org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
  JDBC driver of class '' for connect URL 'null'
 
  at
  org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(B
  asicDataSource.java:780)
 
  at
  org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(Basi
  cDataSource.java:554)
 
  at JITS.ImageServer.getImage(ImageServer.java:48)
 
 
 
 
 
  Any suggestions would be gratefully appreciated !
 
 
 
  Sincerely,
 
  Ed Sykes
 
 
 
 
 
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
 

Exception Error in Tomcat

2004-11-15 Thread Lisa Soto
Hello, 

Does anyone know what this error means, and/or what it may point to? I'm
using the precompiled JK2 for Fedora Core, but on a RH9 box with some
updated packages from later distros. 

-- Lisa 

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 7 occurred at PC=0x400B0B8C
Function=memcpy+0x1C
Library=/lib/tls/libc.so.6

Current Java thread:
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1000(ZipFile.java:26)
at
java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:433)
- locked 0x44c34d48 (a java.util.zip.ZipFile)
at java.util.zip.ZipFile$1.fill(ZipFile.java:227)
at
java.util.zip.InflaterInputStream.read(InflaterInputStream.java:134)
at
E4sGetEvaluation$executeRequest.extractFile(E4sGetEvaluation.java:540)
at
E4sGetEvaluation$executeRequest.executeQuery(E4sGetEvaluation.java:407)
- locked 0x451201e8 (a E4sGetEvaluation$executeRequest)
at
E4sGetEvaluation$executeRequest.init(E4sGetEvaluation.java:190)
at E4sGetEvaluation.doGet(E4sGetEvaluation.java:121)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
-- 
Lisa Soto
[EMAIL PROTECTED]
(631) 344-2009
Systems Administrator
ITD Unix Services


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



RE: Exception Error in Tomcat

2004-11-15 Thread Shapira, Yoav

Hi,
This is an internal JVM crash.  It nearly always occurs for one of two
reasons: you're missing OS-level patches for the JDK you're running, OR
you have native code that's not correctly compiled for your platform.


using the precompiled JK2 for Fedora Core, but on a RH9 box with some
updated packages from later distros.

This is likely why.  Compile JK2 for your box and make sure the packages
and patches are in sync.

Yoav Shapira http://www.yoavshapira.com



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



RE: http-https url rewrite bug TC 5.0.28?

2004-11-15 Thread John Sidney-Woollett
Yoav
Either you're wrong or Tomcat 5.0.x may be broken...
With cookies enabled you can transfer the session from a non-secure 
connection to a secure connection for the same domain/webapp. Tomcat 
does NOT generate a new (secure) session.

The problem is that TC 5.0.28 does not exhibit the same behaviour when 
cookies are disabled. In this case, Tomcat does in fact generate a new 
(secure) session.

So what we have here appears to be non-consistant behaviour from Tomcat 
based on client behaviour beyond the control of the web app developer... :(

And all because response.encodeRedirectURL(url) did not append the 
jsessionid to the URL when switching protocols. If encodeRedirectURL 
appended the session id, then you would have consistant behaviour from 
Tomcat.

Now it could be that using response.encodeRedirectURL(url) is not the 
correct way to pass the session from an http to https connection. And in 
fact the only way to guarantee that the non-secure session data is 
passed to the secure connection is using the following hack:

url = url + ;jsessionid= + session.getId()
when cookies are disabled.
My personal preference is to create a new static method which takes the 
current request and the new request URL and generates a correctly 
rewritten URL (based on the fact that I want the non-secure session 
passed to the secure pages). And to use that whereever I have been using 
response.encodeRedirectURL(url) and response.encodeURL(url)

I still that Tomcat is broken/inconsistant on this point...
Any other thoughts or solutions, anyone?
John Sidney-Woollett
Yoav Shapira wrote:
 Hi,
 Not a bug.  You can't share a session that way, whether using cookies 
 or URL-rewriting.

 Yoav Shapira http://www.yoavshapira.com

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


JAVA_OPTS

2004-11-15 Thread Steven Lister
First time caller, long time listener.  :)
Have a couple of questions about JAVA_OPT settings in catalina.sh.
First one is I was looking at -server cached and tested that out and got 
nothing, tomcat didnt start a process.
Next is -Xms128 -Xmx384 gives me an error of  Error occurred during 
initialization of VM  Too small initial heap
Tomcat wont start with either of these flags set in JAVA_OPTS.
-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


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



Re: Cannot create JDBC driver of class '' for connect URL 'null'

2004-11-15 Thread Ed Sykes
Hi Yoav Shapira,
Thank you for your help.
I've corrected my server.xml file.  the first line now looks like:
Context path=ROOT docBase=
Tomcat starts up properly.
The Oracle JDBC driver (classes12.jar, classes12dms.jar, and 
nls_charset12.jar)  are in:

C:\jakarta-tomcat-5.5.4\common\lib
One thing I am worried about is, during Tomcat startup, the log produces:
INFO: Missing application web.xml, using defaults only 
StandardEngine[Catalina].StandardHost[localhost].StandardContext[ROOT]

do you think this is related to the problem?
it is curious because Tomcat can find and serve up the Servlet which is 
defined in the web.xml file...

Thanks
-Ed Sykes

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 11:59 AM
Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null'


Hi,
Context path=/ROOT/WEB-INF/classes
docBase=ROOT/WEB-INF/classes/JITS
I really doubt you mean these.  The context path attribute is the URL
path used by browsers to retrieve your web pages, i.e.
http://yourhost:yourport/path.  It's not a filesystem path.
The context docBase is the root of your webapp.  It should point to a
directory which has a WEB-INF subdirectory containing web.xml.
Therefore, I'm guessting your docBase is just ROOT and your path is
.  Drop the Web-INF/classes part from both.
  Resource name=jdbc/myoracle auth=Container
 type=javax.sql.DataSource
driverClassName=oracle.jdbc.driver.OracleDriver
 url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2
 username=jits password=mypassword maxActive=20
maxIdle=10
 maxWait=-1/
This looks reasonable.
ResourceParams name=jdbc/myoracle
As Allistair pointed out and the docs explain, this is no longer needed
in Tomcat 5.5, and should be removed.
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC
driver
of class '' for connect URL 'null'
Where is your JDBC driver file?  In common/lib or WEB-INF/lib?  It
should be the former if you're using DBCP this way.  The latter would
work using the primitive DriverManager approach and fail with DBCP.
Yoav Shapira http://www.yoavshapira.com

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


RE: JAVA_OPTS

2004-11-15 Thread Shapira, Yoav

Hi,

First one is I was looking at -server cached and tested that out and got
nothing, tomcat didnt start a process.

You probably mistyped the JAVA_OPTS setting.

Next is -Xms128 -Xmx384 gives me an error of  Error occurred during
initialization of VM  Too small initial heap
Tomcat wont start with either of these flags set in JAVA_OPTS.

Definitely mistyped the JAVA_OPTS setting there: add m after 128 and 384 to 
make it megabytes.

Yoav



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



RE: Cannot create JDBC driver of class '' for connect URL 'null'

2004-11-15 Thread Allistair Crossley
your docBase should be /ROOT which should in turn contain WEB-INF/web.xml and 
path can be scrapped

Context docBase=/ROOT reloadable=true

ADC

 -Original Message-
 From: Ed Sykes [mailto:[EMAIL PROTECTED]
 Sent: 15 November 2004 17:24
 To: Tomcat Users List
 Subject: Re: Cannot create JDBC driver of class '' for connect URL
 'null'
 
 
 Hi Yoav Shapira,
 
 Thank you for your help.
 
 I've corrected my server.xml file.  the first line now looks like:
 Context path=ROOT docBase=
 
 Tomcat starts up properly.
 
 The Oracle JDBC driver (classes12.jar, classes12dms.jar, and 
 nls_charset12.jar)  are in:
 
 C:\jakarta-tomcat-5.5.4\common\lib
 
 
 One thing I am worried about is, during Tomcat startup, the 
 log produces:
 INFO: Missing application web.xml, using defaults only 
 StandardEngine[Catalina].StandardHost[localhost].StandardContext[ROOT]
 
 do you think this is related to the problem?
 it is curious because Tomcat can find and serve up the 
 Servlet which is 
 defined in the web.xml file...
 
 Thanks
 -Ed Sykes
 
 
 
 
 - Original Message - 
 From: Shapira, Yoav [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, November 15, 2004 11:59 AM
 Subject: RE: Cannot create JDBC driver of class '' for 
 connect URL 'null'
 
 
 
 Hi,
 
 Context path=/ROOT/WEB-INF/classes
 docBase=ROOT/WEB-INF/classes/JITS
 
 I really doubt you mean these.  The context path attribute is the URL
 path used by browsers to retrieve your web pages, i.e.
 http://yourhost:yourport/path.  It's not a filesystem path.
 
 The context docBase is the root of your webapp.  It should point to a
 directory which has a WEB-INF subdirectory containing web.xml.
 Therefore, I'm guessting your docBase is just ROOT and your path is
 .  Drop the Web-INF/classes part from both.
 
Resource name=jdbc/myoracle auth=Container
 
   type=javax.sql.DataSource
 driverClassName=oracle.jdbc.driver.OracleDriver
 
   url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2
 
   username=jits password=mypassword maxActive=20
 maxIdle=10
 
   maxWait=-1/
 
 This looks reasonable.
 
 ResourceParams name=jdbc/myoracle
 
 As Allistair pointed out and the docs explain, this is no 
 longer needed
 in Tomcat 5.5, and should be removed.
 
 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC
 driver
 of class '' for connect URL 'null'
 
 Where is your JDBC driver file?  In common/lib or WEB-INF/lib?  It
 should be the former if you're using DBCP this way.  The latter would
 work using the primitive DriverManager approach and fail with DBCP.
 
 Yoav Shapira http://www.yoavshapira.com
 
 
 
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Re: JAVA_OPTS

2004-11-15 Thread Mufaddal Khumri
Specify -Xms128M and -Xmx384M ... the M stands for megabytes.
On Nov 15, 2004, at 10:22 AM, Steven Lister wrote:
First time caller, long time listener.  :)
Have a couple of questions about JAVA_OPT settings in catalina.sh.
First one is I was looking at -server cached and tested that out and 
got nothing, tomcat didnt start a process.
Next is -Xms128 -Xmx384 gives me an error of  Error occurred during 
initialization of VM  Too small initial heap
Tomcat wont start with either of these flags set in JAVA_OPTS.
--
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm

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

Mufaddal 

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


Re: Tomcat and -server option

2004-11-15 Thread Mufaddal Khumri
My observations have been similar as well. We discussed this on the 
Java Apple list as well and it seems that different vendors implement 
this differently.

On Nov 15, 2004, at 5:59 AM, Ronald Klop wrote:
java.library.path=/usr/local/j2sdk1.4.2_05/jre/lib/i386/client:...
   ^^
java.vm.name=Java HotSpot(TM) Client VM
 ^^
Ronald.
On Wed Nov 10 19:28:39 CET 2004 Mufaddal Khumri [EMAIL PROTECTED] 
wrote:
Hi,
I have specified the -server option in my catalina.sh using JAVA_OPTS.
JAVA_OPTS=-server -Djava.awt.headless=true -Xms1g -Xmx1g 
-Dfile.encoding=ISO-8859-1
When I log into the manager app in tomcat I can see that its taking 
the correct memory settings , but I could not find a way to verify 
that it is taking the -server flag into consideration. Is there a way 
to make sure that my JVM is taking the -server flag into 
consideration?
Additional info:
Tomcat Version: Apache Tomcat/5.0.27
JVM Version: 1.4.2_05-141.3
JVM Vendor: Apple Computer, Inc.
OS Name: Mac OS X
OS Version: 10.3.5
OS Architecture: ppc
Thanks.

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


RE: JAVA_OPTS

2004-11-15 Thread Steven Lister
Thanks for the quick reply.
the sound you probably heard a couple of minutes ago was my head repeatedly 
hitting my desk.
the Xms and Xms was a mispelling.  :(
export JAVA_OPTS='-server -Xms128m -Xmx384m -Djava.awt.headless=true'

Does anyone know -server cached if that is mispelled or wrong tense?

- Original Message - 
From: Shapira, Yoav 
To: Tomcat Users List 
Subject: RE: JAVA_OPTS 
Date: Mon, 15 Nov 2004 12:23:36 -0500 

 
 
 Hi, 
 
 First one is I was looking at -server cached and tested that out and got 
 nothing, tomcat didnt start a process. 
 
 You probably mistyped the JAVA_OPTS setting. 
 
 Next is -Xms128 -Xmx384 gives me an error of  Error occurred during 
 initialization of VM  Too small initial heap 
 Tomcat wont start with either of these flags set in JAVA_OPTS. 
 
 Definitely mistyped the JAVA_OPTS setting there: add m after 128 and 384 to 
 make it megabytes. 
 
 Yoav 
 
 
 
 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: [EMAIL PROTECTED] 
 For additional commands, e-mail: [EMAIL PROTECTED] 
 
 
-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


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



Re: http-https url rewrite bug TC 5.0.28?

2004-11-15 Thread John Sidney-Woollett
Tomcat still seems broken to me because it does in fact share the 
session from a non-secure connection to a secure connection when cookies 
are enabled, but not when they are not.

But you've given me some inkling as to what is going on.
I can't believe that there isn't a standard solution for dealing with 
this issue.

ie, non-ssl when adding things to your basket, switch to SSL going 
through the checkout stages, then back to non-ssl after completing the 
order.

Thanks for the extra info.
John
Scott Ahten wrote:
To clarify Yoav's response, this is not a bug but by design.
Tomcat does not allow session data to be shared between secure and  
non-secure pages. This is to prevent someone from gaining access to  
session data that was submitted via a secure page by using a non-SSL  
URL and the user's session id, observed during the initial unencrypted  
connection.

You will need to either collect all necessary information via SSL or  
persist data from the non-secure session (database, serialization,  
etc.) for retrieval by the secure session when you make the switch.

- Scott
On Nov 15, 2004, at 10:24 AM, Shapira, Yoav wrote:
Hi,
Not a bug.  You can't share a session that way, whether using cookies  or
URL-rewriting.
Yoav Shapira http://www.yoavshapira.com

-Original Message-
From: John Sidney-Woollett [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 10:21 AM
To: [EMAIL PROTECTED]
Subject: http-https url rewrite bug TC 5.0.28?
I'm not sure if this is a bug or a misunderstaning on my part - and
I've
been searching the archives and googling for most of the day without
success...
I've got a problem where URL rewriting is failing to correctly encode
the URL when switching from an insecure (non-ssl) connection to a
secure
ssl connection FOR THE SAME DOMAIN and where the session already  exists
for the insecure connection and COOKIES ARE DISABLED in the browser. I
can reproduce this behaviour with different browsers.
An action servlet receives the non-ssl request and redirects to
another secure action servlet. The call for the redirect should
encode
the URL as follows in the first servlet's service(request, response)
method:
[snip]
if (gotoCheckout)
{
//goto the checkout
//this generates the URL
//https://www.mytestsite.com/CheckoutAction?action=start
String url = CheckoutAction.getCheckoutActionStartURL(request);
//make sure the JSESSIONID is appended for non-cookie browsers
url = response.encodeRedirectURL(url);
response.sendRedirect(url);
return;
}
[snip]
Looking at the headers, you can see that the JSESSIONID is not  appended
to the redirect URL when the protocol switches from http to https:
REQUEST
===
POST
http://www.mytestsite.com/BasketAction; jsessionid=9E490ADF8FB268E3F6BC5
FA2F
D61E8CF
HTTP/1.1
Host: www.mytestsite.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a)
Gecko/20030728 Mozilla Firebird/0.6.1
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/ pla
in;q
=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer:
http://www.mytestsite.com/basket; jsessionid=9E490ADF8FB268E3F6BC5FA2FD6
1E8C
F
Content-Type: application/x-www-form-urlencoded
Content-Length: 66
ret=%2Fimage%2F6503740500223action=updbutaction=checkoutqty_0=1
RESPONSE

HTTP/1.x 302 Moved Temporarily
Date: Mon, 15 Nov 2004 13:38:23 GMT
Server: Apache/1.3.29
Location: https://www.mytestsite.com/CheckoutAction?action=start
Content-Length: 0
Content-Type: text/plain
Connection: close
Setup
Apache 1.3.29 + mod_ssl + mod_jk + tomcat 5.0.28 (unix)
Apache is configured with two virtual directives; one for port 80 and
one for post 443 and the requests are forwarded by mod_jk to tomcat
which has the following in its server.xml config:
[snip]
Host name=www.mytestsite.com appBase=/ef02/tc/www.mytestsite.com
 Context path= docBase=ROOT debug=0 reloadable=false
  ResourceLink name=jdbc/D1DB global=jdbc/D1DB
type=javax.sql.DataSource/
 /Context
/Host
[snip]
Tomcat possibly nevers sees that the request is secure because the
SSL
part of the transaction is handled by mod_SSL, and I don't know if  this
has a bearing on the issue?
My question, should the JSESSIONID be appended in the encoded redirect
-
I think so?
And if it should, am I doing something wrong. Or is there a bug?
If there is a bug, should I manually append the ;jsessionid=xxx
to
the URL to workaround the problem.
Can anyone shed any light on this?
Many thanks
John Sidney-Woollett
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This e-mail, including any attachments, is a confidential business  
communication, and may contain information that is confidential,  
proprietary and/or privileged.  

Re: Cannot create JDBC driver of class '' for connect URL 'null'

2004-11-15 Thread Ed Sykes
Hi Allistair,
Thank you very much for helping.
Here's my revised server.xml :
Context docBase=/ROOT reloadable=true
  Resource name=jdbc/myoracle auth=Container
 type=javax.sql.DataSource 
driverClassName=oracle.jdbc.driver.OracleDriver
 url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2
 username=jits password=testing maxActive=20 maxIdle=10
 maxWait=-1/

   /Context
it is located inside   the Host  /Host  tag
Unfortunately, Tomcat responds with:
SEVERE:  Catalina.stop:
java.net.ConnectException: Connection refused: connect
   at java.net.PlainSocketImpl.socketConnect(Native Method)
etc.
and doesn't start.
Just to make things clear here is the location of the important stuff:
my JDBC files:
C:\jakarta-tomcat-5.5.4\common\lib
my server.xml:
C:\jakarta-tomcat-5.5.4\conf
my web app:
C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF\classes\JITS
the web app web.xml file:
C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF
Thanks,
Ed Sykes

- Original Message - 
From: Allistair Crossley [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 12:25 PM
Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null'

your docBase should be /ROOT which should in turn contain WEB-INF/web.xml 
and path can be scrapped

Context docBase=/ROOT reloadable=true
ADC
-Original Message-
From: Ed Sykes [mailto:[EMAIL PROTECTED]
Sent: 15 November 2004 17:24
To: Tomcat Users List
Subject: Re: Cannot create JDBC driver of class '' for connect URL
'null'
Hi Yoav Shapira,
Thank you for your help.
I've corrected my server.xml file.  the first line now looks like:
Context path=ROOT docBase=
Tomcat starts up properly.
The Oracle JDBC driver (classes12.jar, classes12dms.jar, and
nls_charset12.jar)  are in:
C:\jakarta-tomcat-5.5.4\common\lib
One thing I am worried about is, during Tomcat startup, the
log produces:
INFO: Missing application web.xml, using defaults only
StandardEngine[Catalina].StandardHost[localhost].StandardContext[ROOT]
do you think this is related to the problem?
it is curious because Tomcat can find and serve up the
Servlet which is
defined in the web.xml file...
Thanks
-Ed Sykes

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 11:59 AM
Subject: RE: Cannot create JDBC driver of class '' for
connect URL 'null'


Hi,
Context path=/ROOT/WEB-INF/classes
docBase=ROOT/WEB-INF/classes/JITS
I really doubt you mean these.  The context path attribute is the URL
path used by browsers to retrieve your web pages, i.e.
http://yourhost:yourport/path.  It's not a filesystem path.
The context docBase is the root of your webapp.  It should point to a
directory which has a WEB-INF subdirectory containing web.xml.
Therefore, I'm guessting your docBase is just ROOT and your path is
.  Drop the Web-INF/classes part from both.
   Resource name=jdbc/myoracle auth=Container

  type=javax.sql.DataSource
driverClassName=oracle.jdbc.driver.OracleDriver

  url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2

  username=jits password=mypassword maxActive=20
maxIdle=10

  maxWait=-1/
This looks reasonable.
ResourceParams name=jdbc/myoracle
As Allistair pointed out and the docs explain, this is no
longer needed
in Tomcat 5.5, and should be removed.
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC
driver
of class '' for connect URL 'null'
Where is your JDBC driver file?  In common/lib or WEB-INF/lib?  It
should be the former if you're using DBCP this way.  The latter would
work using the primitive DriverManager approach and fail with DBCP.
Yoav Shapira http://www.yoavshapira.com

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


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional 

Re: JAVA_OPTS

2004-11-15 Thread Mufaddal Khumri
I do not know what VM you are using. If you are using Windows and have 
tomcat as a service on there you will have to specify the -server 
option in the registry. If you are using  Mac OS X you can specify it 
in the JAVA_OPTS

As far as what the -server option will do for you , that depends on 
your VM vendor.

On Nov 15, 2004, at 10:35 AM, Steven Lister wrote:
Thanks for the quick reply.
the sound you probably heard a couple of minutes ago was my head 
repeatedly hitting my desk.
the Xms and Xms was a mispelling.  :(
export JAVA_OPTS='-server -Xms128m -Xmx384m -Djava.awt.headless=true'

Does anyone know -server cached if that is mispelled or wrong tense?
- Original Message -
From: Shapira, Yoav
To: Tomcat Users List
Subject: RE: JAVA_OPTS
Date: Mon, 15 Nov 2004 12:23:36 -0500

Hi,
First one is I was looking at -server cached and tested that out and 
got
nothing, tomcat didnt start a process.
You probably mistyped the JAVA_OPTS setting.
Next is -Xms128 -Xmx384 gives me an error of  Error occurred during
initialization of VM  Too small initial heap
Tomcat wont start with either of these flags set in JAVA_OPTS.
Definitely mistyped the JAVA_OPTS setting there: add m after 128 and 
384 to make it megabytes.

Yoav

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

--
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


Setting the directory under work

2004-11-15 Thread Vy Ho
Running Tomcat 5 under standalone mode, it creates a directory called 
work under tomcat's root.  Under that directory, there is a directory 
named Standalone.  First, what is this thing?  When I run the Tomcat 
5.5 under embedded mode, things run fine, but under work, I saw a 
null folder.  That's not so good.  So, how do I set this value to be 
more appropriate?

Thanks,
vh.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JAVA_OPTS

2004-11-15 Thread Didier McGillis
Linux RH9 and RHE3, using Sun 1.4.2
From: Mufaddal Khumri [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: JAVA_OPTS
Date: Mon, 15 Nov 2004 11:11:37 -0700
I do not know what VM you are using. If you are using Windows and have 
tomcat as a service on there you will have to specify the -server option in 
the registry. If you are using  Mac OS X you can specify it in the 
JAVA_OPTS

As far as what the -server option will do for you , that depends on your VM 
vendor.

On Nov 15, 2004, at 10:35 AM, Steven Lister wrote:
Thanks for the quick reply.
the sound you probably heard a couple of minutes ago was my head 
repeatedly hitting my desk.
the Xms and Xms was a mispelling.  :(
export JAVA_OPTS='-server -Xms128m -Xmx384m -Djava.awt.headless=true'

Does anyone know -server cached if that is mispelled or wrong tense?
- Original Message -
From: Shapira, Yoav
To: Tomcat Users List
Subject: RE: JAVA_OPTS
Date: Mon, 15 Nov 2004 12:23:36 -0500

Hi,
First one is I was looking at -server cached and tested that out and got
nothing, tomcat didnt start a process.
You probably mistyped the JAVA_OPTS setting.
Next is -Xms128 -Xmx384 gives me an error of  Error occurred during
initialization of VM  Too small initial heap
Tomcat wont start with either of these flags set in JAVA_OPTS.
Definitely mistyped the JAVA_OPTS setting there: add m after 128 and 384 
to make it megabytes.

Yoav

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

--
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Mufaddal
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Don't just Search. Find! http://search.sympatico.msn.ca/default.aspx The new 
MSN Search! Check it out!

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


Re: JAVA_OPTS

2004-11-15 Thread Steven Lister
Sun's JVM on Debian OS.
One question about JAVA_OPTS is there a setting that I should have if I am 
serving content that is image intensive and database intensive.  I understand 
that one app differes from another, just trying to get an idea on if I missing 
soemthing.

JAVA_OPTS='-server -Xms128m -Xmx384m -Djava.awt.headless=true' 

- Original Message - 
From: Mufaddal Khumri 
To: Tomcat Users List 
Subject: Re: JAVA_OPTS 
Date: Mon, 15 Nov 2004 11:11:37 -0700 

 
 I do not know what VM you are using. If you are using Windows and have 
 tomcat as a service on there you will have to specify the -server 
 option in the registry. If you are using Mac OS X you can specify it 
 in the JAVA_OPTS 
 
 As far as what the -server option will do for you , that depends on 
 your VM vendor. 
 
 On Nov 15, 2004, at 10:35 AM, Steven Lister wrote: 
 
  Thanks for the quick reply. 
  the sound you probably heard a couple of minutes ago was my head 
  repeatedly hitting my desk. 
  the Xms and Xms was a mispelling. :( 
  export JAVA_OPTS='-server -Xms128m -Xmx384m -Djava.awt.headless=true' 
  
  Does anyone know -server cached if that is mispelled or wrong tense? 
  
  - Original Message - 
  From: Shapira, Yoav 
  To: Tomcat Users List 
  Subject: RE: JAVA_OPTS 
  Date: Mon, 15 Nov 2004 12:23:36 -0500 
  
  
  
  Hi, 
  
  First one is I was looking at -server cached and tested that out and 
  got 
  nothing, tomcat didnt start a process. 
  
  You probably mistyped the JAVA_OPTS setting. 
  
  Next is -Xms128 -Xmx384 gives me an error of  Error occurred during 
  initialization of VM  Too small initial heap 
  Tomcat wont start with either of these flags set in JAVA_OPTS. 
  
  Definitely mistyped the JAVA_OPTS setting there: add m after 128 and 
  384 to make it megabytes. 
  
  Yoav 
  
  
  
  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: [EMAIL PROTECTED] 
  For additional commands, e-mail: [EMAIL PROTECTED] 
  
  
  -- 
  ___ 
  Sign-up for Ads Free at Mail.com 
  http://promo.mail.com/adsfreejump.htm 
  
  
  - 
  To unsubscribe, e-mail: [EMAIL PROTECTED] 
  For additional commands, e-mail: [EMAIL PROTECTED] 
  
  
 Mufaddal 
 
 - 
 To unsubscribe, e-mail: [EMAIL PROTECTED] 
 For additional commands, e-mail: [EMAIL PROTECTED] 
 
 
-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


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



RE: Setting the directory under work

2004-11-15 Thread Shapira, Yoav

Hi,
The work directory is where Tomcat stores its work products.  Examples
for this include serialized sessions, compiled JSPs, and potentially
other files.  The work directory is broken into subdirectories for the
engine (Standalone is the default engine name for Tomcat Standalone:
see your server.xml), host (localhost is the default), and app path.

When using Embedded Tomcat, if configured properly it will automatically
do the right stuff with the work directory.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Vy Ho [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 1:21 PM
To: Tomcat Users List
Subject: Setting the directory under work


Running Tomcat 5 under standalone mode, it creates a directory called
work under tomcat's root.  Under that directory, there is a directory
named Standalone.  First, what is this thing?  When I run the Tomcat
5.5 under embedded mode, things run fine, but under work, I saw a
null folder.  That's not so good.  So, how do I set this value to be
more appropriate?

Thanks,

vh.

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



Content-disposition for file downlaod with Mozilla/Firefox

2004-11-15 Thread David Wall
The following are headers we send out for a given file that is being
downloaded:

Content-Length: 28160
content-disposition: attachment;filename=Some Agreement 2004-11-15.doc
Content-Type: application/octet-stream

I believe this used to work fine with Mozilla in an earlier version.  I'm
running Mozilla 1.7.3 and Firefox 1.0, but it doesn't work on them.   It
works just fine on Opera 7.11, IE 6, and Netscape 7.1.

On Mozilla/Firefox, it is stopping at the space in the header, so it thinks
the filename is just Some rather Some Agreement 2004-11-15.doc.  My
impression is that HTTP headers are allowed to contain spaces and it's only
a newline that should end the value of a header.  Is this something I need
to concern myself with from the web application side, or is this just a bug
with Mozilla/Firefox?

Thanks,
David


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



RE: Cannot create JDBC driver of class '' for connect URL 'null'

2004-11-15 Thread Allistair Crossley
it's looking better but this error is interesting. Are you using an API like 
validator that tries to connect out of an internal corporate network? have you 
got any more stack trace that what you provided?

-Original Message- 
From: Ed Sykes [mailto:[EMAIL PROTECTED] 
Sent: Mon 15/11/2004 18:04 
To: Tomcat Users List 
Cc: 
Subject: Re: Cannot create JDBC driver of class '' for connect URL 
'null'



Hi Allistair,

Thank you very much for helping.

Here's my revised server.xml :

Context docBase=/ROOT reloadable=true

   Resource name=jdbc/myoracle auth=Container
  type=javax.sql.DataSource
driverClassName=oracle.jdbc.driver.OracleDriver
  url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2
  username=jits password=testing maxActive=20 
maxIdle=10
  maxWait=-1/


/Context


it is located inside   the Host  /Host  tag

Unfortunately, Tomcat responds with:

SEVERE:  Catalina.stop:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)

etc.

and doesn't start.


Just to make things clear here is the location of the important stuff:

my JDBC files:
C:\jakarta-tomcat-5.5.4\common\lib

my server.xml:
C:\jakarta-tomcat-5.5.4\conf

my web app:
C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF\classes\JITS

the web app web.xml file:
C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF


Thanks,
Ed Sykes



- Original Message -
From: Allistair Crossley [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 12:25 PM
Subject: RE: Cannot create JDBC driver of class '' for connect URL 
'null'


your docBase should be /ROOT which should in turn contain 
WEB-INF/web.xml
and path can be scrapped

Context docBase=/ROOT reloadable=true

ADC

 -Original Message-
 From: Ed Sykes [mailto:[EMAIL PROTECTED]
 Sent: 15 November 2004 17:24
 To: Tomcat Users List
 Subject: Re: Cannot create JDBC driver of class '' for connect URL
 'null'


 Hi Yoav Shapira,

 Thank you for your help.

 I've corrected my server.xml file.  the first line now looks like:
 Context path=ROOT docBase=

 Tomcat starts up properly.

 The Oracle JDBC driver (classes12.jar, classes12dms.jar, and
 nls_charset12.jar)  are in:

 C:\jakarta-tomcat-5.5.4\common\lib


 One thing I am worried about is, during Tomcat startup, the
 log produces:
 INFO: Missing application web.xml, using defaults only
 StandardEngine[Catalina].StandardHost[localhost].StandardContext[ROOT]

 do you think this is related to the problem?
 it is curious because Tomcat can find and serve up the
 Servlet which is
 defined in the web.xml file...

 Thanks
 -Ed Sykes




 - Original Message -
 From: Shapira, Yoav [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, November 15, 2004 11:59 AM
 Subject: RE: Cannot create JDBC driver of class '' for
 connect URL 'null'



 Hi,

 Context path=/ROOT/WEB-INF/classes
 docBase=ROOT/WEB-INF/classes/JITS

 I really doubt you mean these.  The context path attribute is the URL
 path used by browsers to retrieve your web pages, i.e.
 http://yourhost:yourport/path.  It's not a filesystem path.

 The context docBase is the root of your webapp.  It should point to a
 directory which has a WEB-INF subdirectory containing web.xml.
 Therefore, I'm guessting your docBase is just ROOT and your path is
 .  Drop the Web-INF/classes part from both.

Resource name=jdbc/myoracle auth=Container
 
   type=javax.sql.DataSource
 driverClassName=oracle.jdbc.driver.OracleDriver
 
   url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2
 
   username=jits password=mypassword maxActive=20
 maxIdle=10
 
   maxWait=-1/

 This looks reasonable.

 

RE: Cannot create JDBC driver of class '' for connect URL 'null'

2004-11-15 Thread Allistair Crossley
actually that may also be the jdbc connectivity ;) you are sure your database 
listener is operational?

-Original Message- 
From: Ed Sykes [mailto:[EMAIL PROTECTED] 
Sent: Mon 15/11/2004 18:04 
To: Tomcat Users List 
Cc: 
Subject: Re: Cannot create JDBC driver of class '' for connect URL 
'null'



Hi Allistair,

Thank you very much for helping.

Here's my revised server.xml :

Context docBase=/ROOT reloadable=true

   Resource name=jdbc/myoracle auth=Container
  type=javax.sql.DataSource
driverClassName=oracle.jdbc.driver.OracleDriver
  url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2
  username=jits password=testing maxActive=20 
maxIdle=10
  maxWait=-1/


/Context


it is located inside   the Host  /Host  tag

Unfortunately, Tomcat responds with:

SEVERE:  Catalina.stop:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)

etc.

and doesn't start.


Just to make things clear here is the location of the important stuff:

my JDBC files:
C:\jakarta-tomcat-5.5.4\common\lib

my server.xml:
C:\jakarta-tomcat-5.5.4\conf

my web app:
C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF\classes\JITS

the web app web.xml file:
C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF


Thanks,
Ed Sykes



- Original Message -
From: Allistair Crossley [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 12:25 PM
Subject: RE: Cannot create JDBC driver of class '' for connect URL 
'null'


your docBase should be /ROOT which should in turn contain 
WEB-INF/web.xml
and path can be scrapped

Context docBase=/ROOT reloadable=true

ADC

 -Original Message-
 From: Ed Sykes [mailto:[EMAIL PROTECTED]
 Sent: 15 November 2004 17:24
 To: Tomcat Users List
 Subject: Re: Cannot create JDBC driver of class '' for connect URL
 'null'


 Hi Yoav Shapira,

 Thank you for your help.

 I've corrected my server.xml file.  the first line now looks like:
 Context path=ROOT docBase=

 Tomcat starts up properly.

 The Oracle JDBC driver (classes12.jar, classes12dms.jar, and
 nls_charset12.jar)  are in:

 C:\jakarta-tomcat-5.5.4\common\lib


 One thing I am worried about is, during Tomcat startup, the
 log produces:
 INFO: Missing application web.xml, using defaults only
 StandardEngine[Catalina].StandardHost[localhost].StandardContext[ROOT]

 do you think this is related to the problem?
 it is curious because Tomcat can find and serve up the
 Servlet which is
 defined in the web.xml file...

 Thanks
 -Ed Sykes




 - Original Message -
 From: Shapira, Yoav [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, November 15, 2004 11:59 AM
 Subject: RE: Cannot create JDBC driver of class '' for
 connect URL 'null'



 Hi,

 Context path=/ROOT/WEB-INF/classes
 docBase=ROOT/WEB-INF/classes/JITS

 I really doubt you mean these.  The context path attribute is the URL
 path used by browsers to retrieve your web pages, i.e.
 http://yourhost:yourport/path.  It's not a filesystem path.

 The context docBase is the root of your webapp.  It should point to a
 directory which has a WEB-INF subdirectory containing web.xml.
 Therefore, I'm guessting your docBase is just ROOT and your path is
 .  Drop the Web-INF/classes part from both.

Resource name=jdbc/myoracle auth=Container
 
   type=javax.sql.DataSource
 driverClassName=oracle.jdbc.driver.OracleDriver
 
   url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2
 
   username=jits password=mypassword maxActive=20
 maxIdle=10
 
   maxWait=-1/

 This looks reasonable.

 ResourceParams name=jdbc/myoracle

 As Allistair pointed out and the docs explain, this is no
 

Re: JAVA_OPTS

2004-11-15 Thread Shankar Unni
Mufaddal Khumri wrote:
As far as what the -server option will do for you , that depends on your 
VM vendor.
The Sun JRE distributions typically don't include a server VM, so 
-server will give an error. You'll have to download the JDK, and run 
the JRE that is embedded within it (.../j2sdk1.4/jre).

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


setting java options and verbosegc output

2004-11-15 Thread John MccLain
Howdy,
I am running tomcat as a service. How do I set options for the JVM to run.
In particular, I wish to monitor
garbage collection as I have run into a problem in my JNI/PowerBuilder
Native Interface code that may
be related to garbage collection.The problem is this..

When I run a standalone JNI app that accesses powerbuilder code, the app
runs fine. When I run it in a webapp,
It runs ok, as long as I am calling the servlet that accesses my JNI code
quickly. When I wait 20 seconds and hit submit, the
code hangs inside the PowerBuilder native code - BUT ONLY IF I WAIT A LITTLE
WHILE.
I know that the JVM gc should only cleanup java objects, but I would still
like to see what is going on.

how do I set -verbose:gc, and where can I see the output?
Is there any other way to monitor the garbage collector that would give more
detail?

John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
Before you criticize someone, walk a mile in their shoes.
That way, you'll be a mile from them, and you'll have their shoes.


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



Problem displaying PDF in IE6 from Tomcat using the ActiveX Reader Plug-in

2004-11-15 Thread Aman Raheja
Problem: 

When we try to display a dynamically generated PDF file, IE launches the 
Adobe Acrobat Reader Plugin, but then just a blank page is displayed and 
the IE status says Done.  No error message is displayed.  No error is 
generated in the System Event logs.

The issue seems to be that every request to request to Tomcat for the 
PDF send back the request with charset=ISO-8859-1 in the 
Content-type Header. We want to figure out a way to verify that this 
is the issue. One way might be to somehow get Tomcat to not append the 
Character Set in the header. Is there a way to do this?

Environment:
- Client: Windows XP or Windows 2000
- Server: Tomcat 4.0.6/JDK 1.3.1 running on Solaris and Windows XP 
(problem exists on both)
- Adobe Reader 6.0.1 (occurs with 6.0.2 patch as well)
- IE 6.0.2800

Additional Information:
1) Our URLs are formed like this: 

http://app.ourserver.com/appname/docViewAGN.jsp?RepoType=CID=18698DocName=Germanyentry=DocType=pdfcategory=Research
2) Our app is issuing GETs, not POSTs.
3) This is happening on multiple PCs.  One thing we noticed is this may 
be somewhat Reader version dependent -- we have a few machines left with 
Reader 5 installed, and they do not seem to have the problem.

4) When the problem occurs, if you then launch Reader manually, the 
document that didn't display in the IE window is automatically displayed 
in the full client Reader app.!!!

5) If we set Reader to not open up PDFs in browser windows, the Reader 
window launches and opens the PDF file just fine.   [This is a client 
solution, and not practical to implement across hundreds of PCs 
unfortunately.]

6) We actually have one PC with Windows XP, Reader 6.0.1, and IE 6.0.2 
that works.  Could this problem be caused by some specific Windows or IE 
patch?

7) We've scoured the forums and tried several things including setting 
all security levels to Low in IE, adding a dummy parm at the end of the 
URL to fool IE into launching the PDF correctly (e.g. dummy=file.pdf), 
and various header settings to force caching on to 30 seconds, etc.  
None of this had any effect.

8) Also, we saw some references to problems caused by Tomcat 4.0.6 
adding charset=ISO-8859-1 to the Content-Type header in the response.  
How can we override this to see if that's the problem?

Thanks
Aman Raheja
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Setting the directory under work

2004-11-15 Thread Vy Ho
Thank you for the reply.  Translating your advice, this null is the name 
of the engine used for embedded tomcat.  So, I do this:

engine.setName(Somename);
And now, Somename is shown up in the work directory instead of null 
(after deleting null).

Thanks again,
vh.

Shapira, Yoav wrote:
Hi,
The work directory is where Tomcat stores its work products.  Examples
for this include serialized sessions, compiled JSPs, and potentially
other files.  The work directory is broken into subdirectories for the
engine (Standalone is the default engine name for Tomcat Standalone:
see your server.xml), host (localhost is the default), and app path.
When using Embedded Tomcat, if configured properly it will automatically
do the right stuff with the work directory.
Yoav Shapira http://www.yoavshapira.com
 

-Original Message-
From: Vy Ho [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 1:21 PM
To: Tomcat Users List
Subject: Setting the directory under work
Running Tomcat 5 under standalone mode, it creates a directory called
work under tomcat's root.  Under that directory, there is a directory
named Standalone.  First, what is this thing?  When I run the Tomcat
5.5 under embedded mode, things run fine, but under work, I saw a
null folder.  That's not so good.  So, how do I set this value to be
more appropriate?
Thanks,
vh.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


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


Re: setting java options and verbosegc output

2004-11-15 Thread David Boyer
you might find this useful for fine-tuning JVM options:
 
http://web.bvu.edu/staff/david/tcservcfg/

 [EMAIL PROTECTED] 11/15/2004 10:42:46 AM 

Howdy,
I am running tomcat as a service. How do I set options for the JVM to
run.
In particular, I wish to monitor
garbage collection as I have run into a problem in my JNI/PowerBuilder
Native Interface code that may
be related to garbage collection.The problem is this..

When I run a standalone JNI app that accesses powerbuilder code, the
app
runs fine. When I run it in a webapp,
It runs ok, as long as I am calling the servlet that accesses my JNI
code
quickly. When I wait 20 seconds and hit submit, the
code hangs inside the PowerBuilder native code - BUT ONLY IF I WAIT A
LITTLE
WHILE.
I know that the JVM gc should only cleanup java objects, but I would
still
like to see what is going on.

how do I set -verbose:gc, and where can I see the output?
Is there any other way to monitor the garbage collector that would give
more
detail?

John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
Before you criticize someone, walk a mile in their shoes.
That way, you'll be a mile from them, and you'll have their shoes.


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




DataSource configuration for Tomcat 5.0.28

2004-11-15 Thread Thavutam, Prashanth
After a bit of struggle, I had figured out the DataSource configuration for
Tomcat 5.0.28. Thought this might help others.

Configuring Mysql Data Source on Tomcat for Registration Application.

1.  Extract the war file contents into \Tomcat 5.0\webapps folder.
2.  Create registration.xml file in \Tomcat 5.0\conf\Catalina\localhost
folder and add below entries in the xml file.
Context path=/registration
  docBase=${catalina.home}/webapps/registration  debug=0
  ResourceLink name=jdbc/RegistrationDB /
/Context

3.  Add below entries in web.xml.
   a) resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/RegistrationDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
/resource-ref

   b)   If it is struts based application, in my case it is, change path
from WEB-INF/struts-config.xml to /WEB-INF/struts-config.xml and
WEB-INF/forwardDefinition.xml to /WEB-INF/forwardDefinition.xml in web.xml
file. Entry must start with /.

4.  Add below entries in server.xml for MySql database. Make sure this
entry is copied as a child to HOST element.

DefaultContext
  Resource name=jdbc/RegistrationDB scope=Shareable
type=javax.sql.DataSource
  /Resource
  ResourceParams name=jdbc/RegistrationDB
parameternameusername/name
value!username!/value/parameter
parameternamepassword/name
value!password!/value/parameter
parameternamedriverClassName/name
 
valuecom.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource/value
/parameter
parameternameurl/name
 
valuejdbc:mysql://server:port/db-name?autoReload=true/value
/parameter
parameter
namemaxActive/name
value8/value
 /parameter
 parameter
namemaxIdle/name
value4/value
 /parameter
   /ResourceParams
  /DefaultContext

5.  Copy the mysql-connector-java-3.1.4-beta-bin.jar file in common/lib
folder.
6.  Comment out
teiclassorg.apache.struts.taglib.html.ErrorsTei/teiclass from
struts-validator.tld file in WEB-INF folder. Or, we might need to keep the
related jar file in the classpath.

Regards,
Prashanth


 
This email message is for the sole use of the intended recipient (s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. To reply to our email administrator directly, send
an email to [EMAIL PROTECTED] 
Toys R Us, Inc.

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



RE: JAVA_OPTS

2004-11-15 Thread Wick, Daniel
Hi.

I understand why you would set a max amount of memory that Java will use
(-Xmx 512m), but why do you set a minimum (-Xms128m)? Doesn't it just use
what it needs until it hits the max?

--Dan

 -Original Message-
 From: Shankar Unni [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 15, 2004 12:36 PM
 To: [EMAIL PROTECTED]
 Subject: Re: JAVA_OPTS
 
 
 Mufaddal Khumri wrote:
 
  As far as what the -server option will do for you , that 
 depends on your 
  VM vendor.
 
 The Sun JRE distributions typically don't include a server VM, so 
 -server will give an error. You'll have to download the 
 JDK, and run 
 the JRE that is embedded within it (.../j2sdk1.4/jre).
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



RE: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in

2004-11-15 Thread Phillip Qin
There are security and privacy settings in IE affect PDF generation. BTW,
ensurethe link before query string ends with .pdf

-Original Message-
From: Aman Raheja [mailto:[EMAIL PROTECTED] 
Sent: November 15, 2004 1:40 PM
To: [EMAIL PROTECTED]
Subject: Problem displaying PDF in IE6 from Tomcat using the ActiveX Reader
Plug-in


Problem: 

When we try to display a dynamically generated PDF file, IE launches the 
Adobe Acrobat Reader Plugin, but then just a blank page is displayed and 
the IE status says Done.  No error message is displayed.  No error is 
generated in the System Event logs.

The issue seems to be that every request to request to Tomcat for the 
PDF send back the request with charset=ISO-8859-1 in the 
Content-type Header. We want to figure out a way to verify that this 
is the issue. One way might be to somehow get Tomcat to not append the 
Character Set in the header. Is there a way to do this?

Environment:

- Client: Windows XP or Windows 2000
- Server: Tomcat 4.0.6/JDK 1.3.1 running on Solaris and Windows XP 
(problem exists on both)
- Adobe Reader 6.0.1 (occurs with 6.0.2 patch as well)
- IE 6.0.2800


Additional Information:

1) Our URLs are formed like this: 

http://app.ourserver.com/appname/docViewAGN.jsp?RepoType=CID=18698DocName=
Germanyentry=DocType=pdfcategory=Research

2) Our app is issuing GETs, not POSTs.

3) This is happening on multiple PCs.  One thing we noticed is this may 
be somewhat Reader version dependent -- we have a few machines left with 
Reader 5 installed, and they do not seem to have the problem.

4) When the problem occurs, if you then launch Reader manually, the 
document that didn't display in the IE window is automatically displayed 
in the full client Reader app.!!!

5) If we set Reader to not open up PDFs in browser windows, the Reader 
window launches and opens the PDF file just fine.   [This is a client 
solution, and not practical to implement across hundreds of PCs 
unfortunately.]

6) We actually have one PC with Windows XP, Reader 6.0.1, and IE 6.0.2 
that works.  Could this problem be caused by some specific Windows or IE 
patch?

7) We've scoured the forums and tried several things including setting 
all security levels to Low in IE, adding a dummy parm at the end of the 
URL to fool IE into launching the PDF correctly (e.g. dummy=file.pdf), 
and various header settings to force caching on to 30 seconds, etc.  
None of this had any effect.

8) Also, we saw some references to problems caused by Tomcat 4.0.6 
adding charset=ISO-8859-1 to the Content-Type header in the response.  
How can we override this to see if that's the problem?

Thanks
Aman Raheja


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


!DSPAM:4198f83938781679484274!


RE: JAVA_OPTS

2004-11-15 Thread Peter Crowther
 From: Wick, Daniel [mailto:[EMAIL PROTECTED] 
 I understand why you would set a max amount of memory that 
 Java will use
 (-Xmx 512m), but why do you set a minimum (-Xms128m)? Doesn't 
 it just use what it needs until it hits the max?

So that you don't have it starting up small and then instantly having to
grab more RAM.  This way, an operating system can optimise the memory
allocation, potentially improving startup speeds and (later) reducing
pagefile fragmentation.

- Peter

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



RE: JAVA_OPTS

2004-11-15 Thread Shapira, Yoav

Hi,

I understand why you would set a max amount of memory that Java will
use
(-Xmx 512m), but why do you set a minimum (-Xms128m)? Doesn't it just
use
what it needs until it hits the max?

People set the minimum so that it's allocated on startup.  That's faster
than allocating each block size on demand.  However, the difference
between -Xms allocation and on-demand allocation has really shrunk with
JDK 1.4.2 and later, making this option fairly (but not completely)
obsolete).

Yoav Shapira http://www.yoavshapira.com



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



Re: Cannot create JDBC driver of class '' for connect URL 'null'

2004-11-15 Thread Ed Sykes
Hi !
i'm sure everything on the database end is fine.
All i'm doing in the Java file ( located in 
C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF\classes\JITS )
is making a database connection at this time.
if I use:

Class.forName(oracle.jdbc.driver.OracleDriver);
conn = 
DriverManager.getConnection(jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2, 
jits, pass);
stmt = conn.createStatement();

works fine.  So, Tomcat finds the Oracle JDBC driver fine and the version of 
the JDBC driver is fine.

I think it must be something in the server.xml or web.xml  or another xml 
file where Tomcat is expecting to see the parameters for the  jdbc driver 
classname, and the connectionURL..

Thanks,
Ed Sykes

- Original Message - 
From: Allistair Crossley [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 1:28 PM
Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null'


actually that may also be the jdbc connectivity ;) you are sure your 
database listener is operational?

-Original Message- 
From: Ed Sykes [mailto:[EMAIL PROTECTED]
Sent: Mon 15/11/2004 18:04
To: Tomcat Users List
Cc:
Subject: Re: Cannot create JDBC driver of class '' for connect URL 'null'


Hi Allistair,
Thank you very much for helping.
Here's my revised server.xml :
Context docBase=/ROOT reloadable=true
   Resource name=jdbc/myoracle auth=Container
  type=javax.sql.DataSource
driverClassName=oracle.jdbc.driver.OracleDriver
  url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2
  username=jits password=testing maxActive=20 
maxIdle=10
  maxWait=-1/

/Context
it is located inside   the Host  /Host  tag
Unfortunately, Tomcat responds with:
SEVERE:  Catalina.stop:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
etc.
and doesn't start.
Just to make things clear here is the location of the important stuff:
my JDBC files:
C:\jakarta-tomcat-5.5.4\common\lib
my server.xml:
C:\jakarta-tomcat-5.5.4\conf
my web app:
C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF\classes\JITS
the web app web.xml file:
C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF
Thanks,
Ed Sykes

- Original Message -
From: Allistair Crossley [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 12:25 PM
Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null'
your docBase should be /ROOT which should in turn contain WEB-INF/web.xml
and path can be scrapped
Context docBase=/ROOT reloadable=true
ADC
 -Original Message-
 From: Ed Sykes [mailto:[EMAIL PROTECTED]
 Sent: 15 November 2004 17:24
 To: Tomcat Users List
 Subject: Re: Cannot create JDBC driver of class '' for connect URL
 'null'


 Hi Yoav Shapira,

 Thank you for your help.

 I've corrected my server.xml file.  the first line now looks like:
 Context path=ROOT docBase=

 Tomcat starts up properly.

 The Oracle JDBC driver (classes12.jar, classes12dms.jar, and
 nls_charset12.jar)  are in:

 C:\jakarta-tomcat-5.5.4\common\lib


 One thing I am worried about is, during Tomcat startup, the
 log produces:
 INFO: Missing application web.xml, using defaults only
 StandardEngine[Catalina].StandardHost[localhost].StandardContext[ROOT]

 do you think this is related to the problem?
 it is curious because Tomcat can find and serve up the
 Servlet which is
 defined in the web.xml file...

 Thanks
 -Ed Sykes




 - Original Message -
 From: Shapira, Yoav [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, November 15, 2004 11:59 AM
 Subject: RE: Cannot create JDBC driver of class '' for
 connect URL 'null'



 Hi,

 Context path=/ROOT/WEB-INF/classes
 docBase=ROOT/WEB-INF/classes/JITS

 I really doubt you mean these.  The context path attribute is the URL
 path used by browsers to retrieve your web pages, i.e.
 http://yourhost:yourport/path.  It's not a filesystem path.

 The context docBase is the root of your webapp.  It should point to a
 directory which has a WEB-INF subdirectory containing web.xml.
 Therefore, I'm guessting your docBase is just ROOT and your path is
 .  Drop the Web-INF/classes part from both.

Resource name=jdbc/myoracle auth=Container
 
   type=javax.sql.DataSource
 driverClassName=oracle.jdbc.driver.OracleDriver
 
   url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2
 
   username=jits password=mypassword maxActive=20
 maxIdle=10
 
   maxWait=-1/

 This looks reasonable.

 ResourceParams name=jdbc/myoracle

 As Allistair pointed out and the docs explain, this is no
 longer needed
 in Tomcat 5.5, and should be removed.

 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC
 driver
 of class '' for connect URL 'null'

 Where is your JDBC driver file?  In common/lib or WEB-INF/lib?  It
 should be the former if you're using DBCP this way.  The latter would
 work using the 

RES: [java] RE: http-https url rewrite bug TC 5.0.28?

2004-11-15 Thread Paulo Alvim
Hi Yoav,

I have a similar problem: I'd like to use https only with the login.jsp page
and come back to http after that. Could you explain why it isn't possible?

-Mensagem original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 15 de novembro de 2004 12:24
Para: Tomcat Users List
Assunto: [java] RE: http-https url rewrite bug TC 5.0.28?



Hi,
Not a bug.  You can't share a session that way, whether using cookies or
URL-rewriting.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: John Sidney-Woollett [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 10:21 AM
To: [EMAIL PROTECTED]
Subject: http-https url rewrite bug TC 5.0.28?

I'm not sure if this is a bug or a misunderstaning on my part - and
I've
been searching the archives and googling for most of the day without
success...

I've got a problem where URL rewriting is failing to correctly encode
the URL when switching from an insecure (non-ssl) connection to a
secure
ssl connection FOR THE SAME DOMAIN and where the session already exists
for the insecure connection and COOKIES ARE DISABLED in the browser. I
can reproduce this behaviour with different browsers.

An action servlet receives the non-ssl request and redirects to
another secure action servlet. The call for the redirect should
encode
the URL as follows in the first servlet's service(request, response)
method:

[snip]
if (gotoCheckout)
{
   //goto the checkout
   //this generates the URL
   //https://www.mytestsite.com/CheckoutAction?action=start
   String url = CheckoutAction.getCheckoutActionStartURL(request);

   //make sure the JSESSIONID is appended for non-cookie browsers
   url = response.encodeRedirectURL(url);

   response.sendRedirect(url);
   return;
}
[snip]

Looking at the headers, you can see that the JSESSIONID is not appended
to the redirect URL when the protocol switches from http to https:

REQUEST
===
POST
http://www.mytestsite.com/BasketAction;jsessionid=9E490ADF8FB268E3F6BC5
FA2F
D61E8CF
HTTP/1.1
Host: www.mytestsite.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a)
Gecko/20030728 Mozilla Firebird/0.6.1
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/pla
in;q
=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer:
http://www.mytestsite.com/basket;jsessionid=9E490ADF8FB268E3F6BC5FA2FD6
1E8C
F
Content-Type: application/x-www-form-urlencoded
Content-Length: 66
ret=%2Fimage%2F6503740500223action=updbutaction=checkoutqty_0=1

RESPONSE

HTTP/1.x 302 Moved Temporarily
Date: Mon, 15 Nov 2004 13:38:23 GMT
Server: Apache/1.3.29
Location: https://www.mytestsite.com/CheckoutAction?action=start
Content-Length: 0
Content-Type: text/plain
Connection: close


Setup

Apache 1.3.29 + mod_ssl + mod_jk + tomcat 5.0.28 (unix)

Apache is configured with two virtual directives; one for port 80 and
one for post 443 and the requests are forwarded by mod_jk to tomcat
which has the following in its server.xml config:

[snip]
Host name=www.mytestsite.com appBase=/ef02/tc/www.mytestsite.com
  Context path= docBase=ROOT debug=0 reloadable=false
   ResourceLink name=jdbc/D1DB global=jdbc/D1DB
type=javax.sql.DataSource/
  /Context
/Host
[snip]

Tomcat possibly nevers sees that the request is secure because the
SSL
part of the transaction is handled by mod_SSL, and I don't know if this
has a bearing on the issue?

My question, should the JSESSIONID be appended in the encoded redirect
-
I think so?

And if it should, am I doing something wrong. Or is there a bug?

If there is a bug, should I manually append the ;jsessionid=xxx
to
the URL to workaround the problem.

Can anyone shed any light on this?

Many thanks

John Sidney-Woollett

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




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



RE: [java] RE: http-https url rewrite bug TC 5.0.28?

2004-11-15 Thread Shapira, Yoav

Hi,
Someone else already explained it well.  It's not impossible, you can do
it with a bit of coding.  But the container can't do that bit of coding
for you as it's a security risk.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Paulo Alvim [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 3:13 PM
To: Tomcat Users List
Subject: RES: [java] RE: http-https url rewrite bug TC 5.0.28?

Hi Yoav,

I have a similar problem: I'd like to use https only with the login.jsp
page
and come back to http after that. Could you explain why it isn't
possible?

-Mensagem original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 15 de novembro de 2004 12:24
Para: Tomcat Users List
Assunto: [java] RE: http-https url rewrite bug TC 5.0.28?



Hi,
Not a bug.  You can't share a session that way, whether using cookies
or
URL-rewriting.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: John Sidney-Woollett [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 10:21 AM
To: [EMAIL PROTECTED]
Subject: http-https url rewrite bug TC 5.0.28?

I'm not sure if this is a bug or a misunderstaning on my part - and
I've
been searching the archives and googling for most of the day without
success...

I've got a problem where URL rewriting is failing to correctly encode
the URL when switching from an insecure (non-ssl) connection to a
secure
ssl connection FOR THE SAME DOMAIN and where the session already
exists
for the insecure connection and COOKIES ARE DISABLED in the browser. I
can reproduce this behaviour with different browsers.

An action servlet receives the non-ssl request and redirects to
another secure action servlet. The call for the redirect should
encode
the URL as follows in the first servlet's service(request, response)
method:

[snip]
if (gotoCheckout)
{
  //goto the checkout
  //this generates the URL
  //https://www.mytestsite.com/CheckoutAction?action=start
  String url = CheckoutAction.getCheckoutActionStartURL(request);

  //make sure the JSESSIONID is appended for non-cookie browsers
  url = response.encodeRedirectURL(url);

  response.sendRedirect(url);
  return;
}
[snip]

Looking at the headers, you can see that the JSESSIONID is not
appended
to the redirect URL when the protocol switches from http to https:

REQUEST
===
POST
http://www.mytestsite.com/BasketAction;jsessionid=9E490ADF8FB268E3F6BC
5
FA2F
D61E8CF
HTTP/1.1
Host: www.mytestsite.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a)
Gecko/20030728 Mozilla Firebird/0.6.1
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/pl
a
in;q
=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer:
http://www.mytestsite.com/basket;jsessionid=9E490ADF8FB268E3F6BC5FA2FD
6
1E8C
F
Content-Type: application/x-www-form-urlencoded
Content-Length: 66
ret=%2Fimage%2F6503740500223action=updbutaction=checkoutqty_0=1

RESPONSE

HTTP/1.x 302 Moved Temporarily
Date: Mon, 15 Nov 2004 13:38:23 GMT
Server: Apache/1.3.29
Location: https://www.mytestsite.com/CheckoutAction?action=start
Content-Length: 0
Content-Type: text/plain
Connection: close


Setup

Apache 1.3.29 + mod_ssl + mod_jk + tomcat 5.0.28 (unix)

Apache is configured with two virtual directives; one for port 80 and
one for post 443 and the requests are forwarded by mod_jk to tomcat
which has the following in its server.xml config:

[snip]
Host name=www.mytestsite.com appBase=/ef02/tc/www.mytestsite.com
  Context path= docBase=ROOT debug=0 reloadable=false
   ResourceLink name=jdbc/D1DB global=jdbc/D1DB
type=javax.sql.DataSource/
  /Context
/Host
[snip]

Tomcat possibly nevers sees that the request is secure because the
SSL
part of the transaction is handled by mod_SSL, and I don't know if
this
has a bearing on the issue?

My question, should the JSESSIONID be appended in the encoded redirect
-
I think so?

And if it should, am I doing something wrong. Or is there a bug?

If there is a bug, should I manually append the ;jsessionid=xxx
to
the URL to workaround the problem.

Can anyone shed any light on this?

Many thanks

John Sidney-Woollett

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



RE: JAVA_OPTS

2004-11-15 Thread Matt
If you'd prefer to use the tomcat service here's a page to assist in setup
of Xms, Xmx :

http://www.pauaware.co.nz/tomcatntservice.htm 

-Original Message-
From: Steven Lister [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 16 November 2004 6:22 a.m.
To: Tomcat Users List
Subject: JAVA_OPTS

First time caller, long time listener.  :) Have a couple of questions about
JAVA_OPT settings in catalina.sh.
First one is I was looking at -server cached and tested that out and got
nothing, tomcat didnt start a process.
Next is -Xms128 -Xmx384 gives me an error of  Error occurred during
initialization of VM  Too small initial heap
Tomcat wont start with either of these flags set in JAVA_OPTS.
--
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


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


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



Re: Cannot create JDBC driver of class '' for connect URL 'null'

2004-11-15 Thread Ed Sykes
Hi,
I have not changed the server.xml yet.
Here's the stacktrace (it dissappears in an instant) and tomcat fails to 
start.

Thanks,
-Ed Sykes
SEVERE: createMBeans: Throwable
java.lang.NullPointerException
   at 
org.apache.catalina.mbeans.MBeanUtils.createObjectName(MBeanUtils.java:1221)
   at 
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:533)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:569)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:365)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:534)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:497)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:659)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:627)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:277)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLifecycleListener.java:128)
   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2003)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

- Original Message - 
From: Allistair Crossley [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 1:27 PM
Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null'


it's looking better but this error is interesting. Are you using an API 
like validator that tries to connect out of an internal corporate network? 
have you got any more stack trace that what you provided?

-Original Message- 
From: Ed Sykes [mailto:[EMAIL PROTECTED]
Sent: Mon 15/11/2004 18:04
To: Tomcat Users List
Cc:
Subject: Re: Cannot create JDBC driver of class '' for connect URL 'null'


Hi Allistair,
Thank you very much for helping.
Here's my revised server.xml :
Context docBase=/ROOT reloadable=true
   Resource name=jdbc/myoracle auth=Container
  type=javax.sql.DataSource
driverClassName=oracle.jdbc.driver.OracleDriver
  url=jdbc:oracle:thin:@newton.sheridanc.on.ca:1522:DB2
  username=jits password=testing maxActive=20 
maxIdle=10
  maxWait=-1/

/Context
it is located inside   the Host  /Host  tag
Unfortunately, Tomcat responds with:
SEVERE:  Catalina.stop:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
etc.
and doesn't start.
Just to make things clear here is the location of the important stuff:
my JDBC files:
C:\jakarta-tomcat-5.5.4\common\lib
my server.xml:
C:\jakarta-tomcat-5.5.4\conf
my web app:
C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF\classes\JITS
the web app web.xml file:
C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF
Thanks,
Ed Sykes

- Original Message -
From: Allistair Crossley [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 12:25 PM
Subject: RE: Cannot create JDBC driver of class '' for connect URL 'null'
your docBase should be /ROOT which should in turn contain WEB-INF/web.xml
and path can be scrapped
Context docBase=/ROOT reloadable=true
ADC
 -Original Message-
 From: Ed Sykes [mailto:[EMAIL PROTECTED]
 Sent: 15 November 2004 17:24
 To: Tomcat Users List
 Subject: Re: Cannot create JDBC driver of class '' for connect URL
 'null'


 Hi Yoav Shapira,

 Thank you for your help.

 I've corrected my server.xml file.  the first line now looks like:
 Context path=ROOT docBase=

 Tomcat starts up properly.

 The Oracle JDBC driver (classes12.jar, classes12dms.jar, and
 nls_charset12.jar)  are in:

 C:\jakarta-tomcat-5.5.4\common\lib


 One thing I am worried about is, during Tomcat startup, the
 log produces:
 INFO: Missing application web.xml, using defaults only
 StandardEngine[Catalina].StandardHost[localhost].StandardContext[ROOT]

 do you think this is related to the problem?
 it is curious because Tomcat can find and serve up the
 Servlet which is
 defined in the web.xml file...

 Thanks
 -Ed Sykes




 - Original Message -
 From: Shapira, Yoav [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, November 15, 2004 

Re: OutOfMemory errors compiling JSPs on 5.0.16 and 5.5.4

2004-11-15 Thread Kevin A. Burton
Remy Maucherat wrote:
On Sat, 13 Nov 2004 17:30:38 -0800, Kevin A. Burton
[EMAIL PROTECTED] wrote:
 

Remy Maucherat wrote:
   

On Fri, 12 Nov 2004 17:17:28 -0800, Kevin A. Burton
[EMAIL PROTECTED] wrote:
 

- For all my JSPs I fetch them with the URL foo.jsp?jsp_precompile=true
to trigger precompilation
   

How many JSPs must be compiled to cause problems ?
 

About 50 or so... it changes every time.   Sometimes I have to trigger a
precompile twice.
   

I don't quite understand in which cases problems occur:
- if you ?jsp_precompile=true 50 times for the same JSP ?
- if you ?jsp_precompile=true for 50 different JSPs ?
- if you access normally 50 different JSPs (triggering compilation for
each one) ?
I would understand from your description only the second one is an
issue. Can you confirm this ?
 

Yes... I use #2
I trigger a ?jsp_precompile=true for each one of my JSPs and we have 
around 300-400 ...

Around 100 or so it will run out of memory.
Kevin
--
Use Rojo (RSS/Atom aggregator).  Visit http://rojo.com. Ask me for an 
invite!  Also see irc.freenode.net #rojo if you want to chat.

Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html
If you're interested in RSS, Weblogs, Social Networking, etc... then you 
should work for Rojo!  If you recommend someone and we hire them you'll 
get a free iPod!
   
Kevin A. Burton, Location - San Francisco, CA
  AIM/YIM - sfburtonator,  Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412



Re: OutOfMemory errors compiling JSPs on 5.0.16 and 5.5.4

2004-11-15 Thread Kevin A. Burton
Dale, Matt wrote:
I've not been following this thread but my guess would be that you are running out of space in the permanent generation of the heap. Get a hold of jvmstat from sun and run visualgc on your JVM, it should become obvious then which pool is running out of space.
 

God!  How pathetic is this:
http://java.sun.com/performance/jvmstat/#Download
This distribution of the jvmstat tools requires J2SE 5.0 with the 
HotSpot JVM.
So now I have to upgrade all our VMs to JDK 5.0 even though earlier 
versions of jvmstat supported JDK 1.4. 

Brilliant... who's the marketing genius that though of this one!?
... and of course they don't link to archival versions.
The SUN  has set my friends ;-)
Kevin
--
Use Rojo (RSS/Atom aggregator).  Visit http://rojo.com. Ask me for an 
invite!  Also see irc.freenode.net #rojo if you want to chat.

Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html
If you're interested in RSS, Weblogs, Social Networking, etc... then you 
should work for Rojo!  If you recommend someone and we hire them you'll 
get a free iPod!
   
Kevin A. Burton, Location - San Francisco, CA
  AIM/YIM - sfburtonator,  Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412

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


Rotating catalina.out with Webmin

2004-11-15 Thread Carlos
Hi Forum,

 

Could someone recommend settings for using the log rotation of Webmin in
order to rotate catalina.out (any cautionary measures)?  I just created an
entry in Webmin to rotate the catalina.out file weekly with all the default
settings (keeping the last four copies).  Are there any scripts I should run
before or after the rotation is carried out?



Jasper and Axis

2004-11-15 Thread Daniel Herbison
I'm using Axis to connect to some soap services but when I try to
instantiate the locator from a JSP I get the exception:

 

// Axis locator call

CoiDWACLApiServiceLocator coiDWLocator = new CoiDWACLApiServiceLocator();

 

I get:

 

org.apache.jasper.JasperException

at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
54)

...

root cause

javax.servlet.ServletException

at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:536)

 

This service work great outside of Tomcat but when called from the JSP I get
the exception.  

 

I don't know where to go with this does anyone know what I might do to find
the problem?



Re: Rotating catalina.out with Webmin

2004-11-15 Thread Filip Hanik - Dev
if you dont get webmin fixed, I recommend cronolog instead.
You cant just rotate it, cause then tomcat loses the file handle, and you will 
lose all further output.

with cronolog you simply pipe it through cronolog like this


your java start command | /usr/local/sbin/cronolog 
$CATALINA_BASE$/logs/%Y-%m-%d.catalina.out  /dev/null 21 

this will rotate the logs daily

Filip

- Original Message - 
From: Carlos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 2:05 PM
Subject: Rotating catalina.out with Webmin


Hi Forum,

 

Could someone recommend settings for using the log rotation of Webmin in
order to rotate catalina.out (any cautionary measures)?  I just created an
entry in Webmin to rotate the catalina.out file weekly with all the default
settings (keeping the last four copies).  Are there any scripts I should run
before or after the rotation is carried out?



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



Location: redirection

2004-11-15 Thread Lisa Soto
Hi, 

We're using perl within tomcat 4.1.27. The perl scripts run all right,
but the redirections don't work at all. 

If I run the script on the command line, it returns a proper Location:
directive, but it doesn't seem to show up in the web browser and/or
affect its reaction. 

Any ideas? 

Thanks,
Lisa 
-- 
Lisa Soto
[EMAIL PROTECTED]
(631) 344-2009
Systems Administrator
ITD Unix Services


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



RE: Rotating catalina.out with Webmin

2004-11-15 Thread Shapira, Yoav

Hi,
As usual, the advice is also to minimize System.out logging.  If you
can't modify the app code using System.out logging, add
swallowOutput=true to your context declaration to make System.out go
to the Loggers defined in Tomcat's server.xml.  Those are automatically
rotated for you.

(Note this all applies to Tomcat 5.0.x and older, not to 5.5 and newer)

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 3:19 PM
To: Tomcat Users List
Subject: Re: Rotating catalina.out with Webmin

if you dont get webmin fixed, I recommend cronolog instead.
You cant just rotate it, cause then tomcat loses the file handle, and
you
will lose all further output.

with cronolog you simply pipe it through cronolog like this


your java start command | /usr/local/sbin/cronolog
$CATALINA_BASE$/logs/%Y-%m-%d.catalina.out  /dev/null 21

this will rotate the logs daily

Filip

- Original Message -
From: Carlos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 2:05 PM
Subject: Rotating catalina.out with Webmin


Hi Forum,



Could someone recommend settings for using the log rotation of Webmin
in
order to rotate catalina.out (any cautionary measures)?  I just created
an
entry in Webmin to rotate the catalina.out file weekly with all the
default
settings (keeping the last four copies).  Are there any scripts I
should
run
before or after the rotation is carried out?



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



RE: Rotating catalina.out with Webmin

2004-11-15 Thread Carlos Oliva
Hi Filip,
I set-up the Webmin Log Rotation entry to the following:
1) Re-create log file after rotation? Yes, with mode  and owned by user
and group
   
2) Store old rotated logs in Directory   
Same directory as log file
Default (Same directory as log file)
  
3) Extension for rotated filenames  Default

Should not this maintain the file handle?

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 15, 2004 3:19 PM
To: Tomcat Users List
Subject: Re: Rotating catalina.out with Webmin

if you dont get webmin fixed, I recommend cronolog instead.
You cant just rotate it, cause then tomcat loses the file handle, and you
will lose all further output.

with cronolog you simply pipe it through cronolog like this


your java start command | /usr/local/sbin/cronolog
$CATALINA_BASE$/logs/%Y-%m-%d.catalina.out  /dev/null 21 

this will rotate the logs daily

Filip

- Original Message - 
From: Carlos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 2:05 PM
Subject: Rotating catalina.out with Webmin


Hi Forum,

 

Could someone recommend settings for using the log rotation of Webmin in
order to rotate catalina.out (any cautionary measures)?  I just created an
entry in Webmin to rotate the catalina.out file weekly with all the default
settings (keeping the last four copies).  Are there any scripts I should run
before or after the rotation is carried out?



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


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



RE: Location: redirection

2004-11-15 Thread Phillip Qin
Please refer to my previous post regarding hack into the CGIServlet.

-Original Message-
From: Lisa Soto [mailto:[EMAIL PROTECTED] 
Sent: November 15, 2004 3:24 PM
To: [EMAIL PROTECTED]
Subject: Location: redirection


Hi, 

We're using perl within tomcat 4.1.27. The perl scripts run all right, but
the redirections don't work at all. 

If I run the script on the command line, it returns a proper Location:
directive, but it doesn't seem to show up in the web browser and/or affect
its reaction. 

Any ideas? 

Thanks,
Lisa 
-- 
Lisa Soto
[EMAIL PROTECTED]
(631) 344-2009
Systems Administrator
ITD Unix Services


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


!DSPAM:4199105e51622011559358!


RE: Rotating catalina.out with Webmin

2004-11-15 Thread Phillip Qin
I found that logrotate is the easiest.

-Original Message-
From: Carlos Oliva [mailto:[EMAIL PROTECTED] 
Sent: November 15, 2004 3:28 PM
To: 'Tomcat Users List'
Subject: RE: Rotating catalina.out with Webmin


Hi Filip,
I set-up the Webmin Log Rotation entry to the following:
1) Re-create log file after rotation? Yes, with mode  and owned by user and
group
   
2) Store old rotated logs in Directory   
Same directory as log file
Default (Same directory as log file)
  
3) Extension for rotated filenames  Default

Should not this maintain the file handle?

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 15, 2004 3:19 PM
To: Tomcat Users List
Subject: Re: Rotating catalina.out with Webmin

if you dont get webmin fixed, I recommend cronolog instead.
You cant just rotate it, cause then tomcat loses the file handle, and you
will lose all further output.

with cronolog you simply pipe it through cronolog like this


your java start command | /usr/local/sbin/cronolog
$CATALINA_BASE$/logs/%Y-%m-%d.catalina.out  /dev/null 21 

this will rotate the logs daily

Filip

- Original Message - 
From: Carlos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 2:05 PM
Subject: Rotating catalina.out with Webmin


Hi Forum,

 

Could someone recommend settings for using the log rotation of Webmin in
order to rotate catalina.out (any cautionary measures)?  I just created an
entry in Webmin to rotate the catalina.out file weekly with all the default
settings (keeping the last four copies).  Are there any scripts I should run
before or after the rotation is carried out?



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


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


!DSPAM:4199117c52001195320907!


RE: Location: redirection

2004-11-15 Thread Shapira, Yoav

Hi,

We're using perl within tomcat 4.1.27. The perl scripts run all right,
but the redirections don't work at all.

Using an external mechanism (such as a CGI perl scripts in your case)
for redirection in Tomcat is tricky at best, and doomed to failure at
worst.  The reason is that the script is not really part of the servlet
request/response pipeline.  Rather, it is invoked as an exec by a Tomcat
servlet (in your case, the CGI servlet that ships with Tomcat, I
assume).

That servlet can easily do a response redirect or request forward, but
the script cannot.

Accordingly, if you stick with the script at all, modify it to return
the redirection URL, and have the servlet (a custom extension to the CGI
Servlet that ships with Tomcat probably) read and act upon this URL by
doing the redirection.

Yoav



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



gc output for tomcat?? where is it

2004-11-15 Thread John MccLain
I have set the -verbose:gc flag for tomcat. Where does the output go? Do I
need to set the
log level to Info instead of Error??


John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
Before you criticize someone, walk a mile in their shoes.
That way, you'll be a mile from them, and you'll have their shoes.


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



Re: Rotating catalina.out with Webmin

2004-11-15 Thread Filip Hanik - Dev
nope, the moment you execute the mv the file handle has moved. switch to 
cronolog to save you some time,
cronolog might recreate the file for you to, so no handle is ever lost, try it 
before you come back to the list :)


Filip

- Original Message - 
From: Carlos Oliva [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 2:28 PM
Subject: RE: Rotating catalina.out with Webmin


Hi Filip,
I set-up the Webmin Log Rotation entry to the following:
1) Re-create log file after rotation? Yes, with mode  and owned by user
and group
   
2) Store old rotated logs in Directory   
Same directory as log file
Default (Same directory as log file)
  
3) Extension for rotated filenames  Default

Should not this maintain the file handle?

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 15, 2004 3:19 PM
To: Tomcat Users List
Subject: Re: Rotating catalina.out with Webmin

if you dont get webmin fixed, I recommend cronolog instead.
You cant just rotate it, cause then tomcat loses the file handle, and you
will lose all further output.

with cronolog you simply pipe it through cronolog like this


your java start command | /usr/local/sbin/cronolog
$CATALINA_BASE$/logs/%Y-%m-%d.catalina.out  /dev/null 21 

this will rotate the logs daily

Filip

- Original Message - 
From: Carlos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 2:05 PM
Subject: Rotating catalina.out with Webmin


Hi Forum,

 

Could someone recommend settings for using the log rotation of Webmin in
order to rotate catalina.out (any cautionary measures)?  I just created an
entry in Webmin to rotate the catalina.out file weekly with all the default
settings (keeping the last four copies).  Are there any scripts I should run
before or after the rotation is carried out?



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


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

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



RE: Rotating catalina.out with Webmin

2004-11-15 Thread Carlos Oliva
Hi Phillip,
Since Webmin uses logrotate could I just create a simple entry with Webmin?
Or do I need to specify other settings?

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 15, 2004 3:31 PM
To: 'Tomcat Users List'
Subject: RE: Rotating catalina.out with Webmin

I found that logrotate is the easiest.

-Original Message-
From: Carlos Oliva [mailto:[EMAIL PROTECTED] 
Sent: November 15, 2004 3:28 PM
To: 'Tomcat Users List'
Subject: RE: Rotating catalina.out with Webmin


Hi Filip,
I set-up the Webmin Log Rotation entry to the following:
1) Re-create log file after rotation? Yes, with mode  and owned by user and
group
   
2) Store old rotated logs in Directory   
Same directory as log file
Default (Same directory as log file)
  
3) Extension for rotated filenames  Default

Should not this maintain the file handle?

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 15, 2004 3:19 PM
To: Tomcat Users List
Subject: Re: Rotating catalina.out with Webmin

if you dont get webmin fixed, I recommend cronolog instead.
You cant just rotate it, cause then tomcat loses the file handle, and you
will lose all further output.

with cronolog you simply pipe it through cronolog like this


your java start command | /usr/local/sbin/cronolog
$CATALINA_BASE$/logs/%Y-%m-%d.catalina.out  /dev/null 21 

this will rotate the logs daily

Filip

- Original Message - 
From: Carlos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 2:05 PM
Subject: Rotating catalina.out with Webmin


Hi Forum,

 

Could someone recommend settings for using the log rotation of Webmin in
order to rotate catalina.out (any cautionary measures)?  I just created an
entry in Webmin to rotate the catalina.out file weekly with all the default
settings (keeping the last four copies).  Are there any scripts I should run
before or after the rotation is carried out?



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


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


!DSPAM:4199117c52001195320907!


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



Re: gc output for tomcat?? where is it

2004-11-15 Thread David Boyer
try adding  -Xloggc:file
 


 [EMAIL PROTECTED] 11/15/2004 12:39:45 PM 

I have set the -verbose:gc flag for tomcat. Where does the output go?
Do I
need to set the
log level to Info instead of Error??


John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
Before you criticize someone, walk a mile in their shoes.
That way, you'll be a mile from them, and you'll have their shoes.


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




RE: Rotating catalina.out with Webmin

2004-11-15 Thread Phillip Qin
I don't know how to use webadmin. I did it in command line (Debian)

/etc/logrotate.d


/usr/local/jakarta-tomcat-4.1.30/logs/catalina.out {
rotate 5
weekly
compress
delaycompress
notifempty
missingok
create 0640 tu3404nl tu3404nl
}


-Original Message-
From: Carlos Oliva [mailto:[EMAIL PROTECTED] 
Sent: November 15, 2004 3:37 PM
To: 'Tomcat Users List'
Subject: RE: Rotating catalina.out with Webmin


Hi Phillip,
Since Webmin uses logrotate could I just create a simple entry with Webmin?
Or do I need to specify other settings?

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 15, 2004 3:31 PM
To: 'Tomcat Users List'
Subject: RE: Rotating catalina.out with Webmin

I found that logrotate is the easiest.

-Original Message-
From: Carlos Oliva [mailto:[EMAIL PROTECTED] 
Sent: November 15, 2004 3:28 PM
To: 'Tomcat Users List'
Subject: RE: Rotating catalina.out with Webmin


Hi Filip,
I set-up the Webmin Log Rotation entry to the following:
1) Re-create log file after rotation? Yes, with mode  and owned by user and
group
   
2) Store old rotated logs in Directory   
Same directory as log file
Default (Same directory as log file)
  
3) Extension for rotated filenames  Default

Should not this maintain the file handle?

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 15, 2004 3:19 PM
To: Tomcat Users List
Subject: Re: Rotating catalina.out with Webmin

if you dont get webmin fixed, I recommend cronolog instead.
You cant just rotate it, cause then tomcat loses the file handle, and you
will lose all further output.

with cronolog you simply pipe it through cronolog like this


your java start command | /usr/local/sbin/cronolog
$CATALINA_BASE$/logs/%Y-%m-%d.catalina.out  /dev/null 21 

this will rotate the logs daily

Filip

- Original Message - 
From: Carlos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 2:05 PM
Subject: Rotating catalina.out with Webmin


Hi Forum,

 

Could someone recommend settings for using the log rotation of Webmin in
order to rotate catalina.out (any cautionary measures)?  I just created an
entry in Webmin to rotate the catalina.out file weekly with all the default
settings (keeping the last four copies).  Are there any scripts I should run
before or after the rotation is carried out?



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


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





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


!DSPAM:4199138a52451467913336!


RE: Location: redirection

2004-11-15 Thread Phillip Qin
The redirect has to be done in inner class CGIRunner of servlet CGIServlet.
Tomcat 4.1.30/5.0.28 do not handle redirect. You have to modify method run,
in while (isRunning) add your own handling. Our cgi scripts have Status
302 for redirection, so I added header check below

if (line.startsWith(HTTP)) {
//TODO: should set status codes (NPH support)
/*
 * response.setStatus(getStatusCode(line));
 */
} else if (line.indexOf(:) = 0) {
String header =
line.substring(0, line.indexOf(:)).trim();
String value =
line.substring(line.indexOf(:) +
1).trim(); 
// PQ: quick fix for 302 redirect
if
(header.trim().compareToIgnoreCase(STATUS)==0  line.indexOf(302)-1) {
log(runCGI(my): status code=302);
response.setStatus(302);
} else {
response.addHeader(header , value);
if
((header.toLowerCase().equals(content-type))

(!value.toLowerCase().startsWith(text))) {
isBinaryContent = true;
}
}
} else {
log(runCGI: bad header line \ + line + \);
}

I know it's ugly.


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: November 15, 2004 3:31 PM
To: Tomcat Users List
Subject: RE: Location: redirection



Hi,

We're using perl within tomcat 4.1.27. The perl scripts run all right, 
but the redirections don't work at all.

Using an external mechanism (such as a CGI perl scripts in your case) for
redirection in Tomcat is tricky at best, and doomed to failure at worst.
The reason is that the script is not really part of the servlet
request/response pipeline.  Rather, it is invoked as an exec by a Tomcat
servlet (in your case, the CGI servlet that ships with Tomcat, I assume).  

That servlet can easily do a response redirect or request forward, but the
script cannot.

Accordingly, if you stick with the script at all, modify it to return the
redirection URL, and have the servlet (a custom extension to the CGI Servlet
that ships with Tomcat probably) read and act upon this URL by doing the
redirection.

Yoav



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


!DSPAM:4199125452166270918065!


Tomcat 4.1.27 ana apache 2.0.47 with mod_jk

2004-11-15 Thread Venkat Reddy Valluri
Hi 
   I installed tomcat4.1.27 apache 2.0.47 on two diffrenet servers with 
mod_jk(ajp13)
   when I try to execute jsp's they processed  fine with tomcat.   But one of 
my jsp's having a import([EMAIL PROTECTED] import =Test%) of one java 
class(Test.java) which is not included in any package( I mean it is not having 
a package name. i.e dierectly placed under the root directory).  Here I am 
getting compilation error saying that it is expecting Test.; 
THe same jsp processed fine with tomcat 4.0.4, apache 2.0.40 with mod_jk

Can you please xplain me Why it is bahaving like this

 
Thks  
--Venkat


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

RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk

2004-11-15 Thread Phillip Qin
I think you have to use package.

-Original Message-
From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED] 
Sent: November 15, 2004 4:04 PM
To: Tomcat Users List
Subject: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk


Hi 
   I installed tomcat4.1.27 apache 2.0.47 on two diffrenet servers with
mod_jk(ajp13)
   when I try to execute jsp's they processed  fine with tomcat.   But one
of my jsp's having a import([EMAIL PROTECTED] import =Test%) of one java
class(Test.java) which is not included in any package( I mean it is not
having a package name. i.e dierectly placed under the root directory).  Here
I am getting compilation error saying that it is expecting Test.; 
THe same jsp processed fine with tomcat 4.0.4, apache 2.0.40 with mod_jk

Can you please xplain me Why it is bahaving like this

 
Thks  
--Venkat




!DSPAM:419919cd57631768811543!


Re: Rotating catalina.out with Webmin

2004-11-15 Thread erh
On Mon, Nov 15, 2004 at 02:36:57PM -0600, Filip Hanik - Dev wrote:
 nope, the moment you execute the mv the file handle has moved. switch to 
 cronolog to save you some time,
 cronolog might recreate the file for you to, so no handle is ever lost, try 
 it before you come back to the list :)
 
[...snip...]
 if you dont get webmin fixed, I recommend cronolog instead.
 You cant just rotate it, cause then tomcat loses the file handle, and you
 will lose all further output.

This is incorrect.  A reference to an open file stays perfectly valid
regardless of what is done to the name of the file.  You can even remove
the file entirely and any previously opened file handle will continue to
function (and take up disk space!).

Renaming a file changes the way you get access to the underlying
file object but does not change the object itself.  Since a file handle
that a process has refers to the the underlying object, not the name,
output will continue to be written to the original file and the new
catalina.out will remain empty.

eric

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



RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk

2004-11-15 Thread Venkat Reddy Valluri
But it worked with tomcat 4.0.4 with out using any package
   Do you think is there nat option to set for this

Thks
--Venkat


-Original Message-
From:   Phillip Qin [mailto:[EMAIL PROTECTED]
Sent:   Mon 11/15/2004 4:15 PM
To: 'Tomcat Users List'
Cc: 
Subject:RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk
I think you have to use package.

-Original Message-
From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED] 
Sent: November 15, 2004 4:04 PM
To: Tomcat Users List
Subject: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk


Hi 
   I installed tomcat4.1.27 apache 2.0.47 on two diffrenet servers with
mod_jk(ajp13)
   when I try to execute jsp's they processed  fine with tomcat.   But one
of my jsp's having a import([EMAIL PROTECTED] import =Test%) of one java
class(Test.java) which is not included in any package( I mean it is not
having a package name. i.e dierectly placed under the root directory).  Here
I am getting compilation error saying that it is expecting Test.; 
THe same jsp processed fine with tomcat 4.0.4, apache 2.0.40 with mod_jk

Can you please xplain me Why it is bahaving like this

 
Thks  
--Venkat




!DSPAM:419919cd57631768811543!




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

Re: Rotating catalina.out with Webmin

2004-11-15 Thread Filip Hanik - Dev
this was not the case when using a java.io.FileOutputStream(), so I assume you 
tried and verified this :)

Filip
- Original Message - 
From: [EMAIL PROTECTED]
To: Filip Hanik - Dev [EMAIL PROTECTED]
Cc: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 3:16 PM
Subject: Re: Rotating catalina.out with Webmin


On Mon, Nov 15, 2004 at 02:36:57PM -0600, Filip Hanik - Dev wrote:
 nope, the moment you execute the mv the file handle has moved. switch to 
 cronolog to save you some time,
 cronolog might recreate the file for you to, so no handle is ever lost, try 
 it before you come back to the list :)
 
[...snip...]
 if you dont get webmin fixed, I recommend cronolog instead.
 You cant just rotate it, cause then tomcat loses the file handle, and you
 will lose all further output.

This is incorrect.  A reference to an open file stays perfectly valid
regardless of what is done to the name of the file.  You can even remove
the file entirely and any previously opened file handle will continue to
function (and take up disk space!).

Renaming a file changes the way you get access to the underlying
file object but does not change the object itself.  Since a file handle
that a process has refers to the the underlying object, not the name,
output will continue to be written to the original file and the new
catalina.out will remain empty.

eric

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

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



RE: gc output for tomcat?? where is it

2004-11-15 Thread Pooleery, Manoj
Can somebody from the developer team answer this question please?  -Xloggc:
works only from JDK 1.4 onwards.  With JDK 1.3.1 and Tomcat running as a
service, I was also not able to get any gc logs anywhere.  When it is
running as a console, with the -verbose:gc flag, it was showing the gc
output on the console itself, but when changed to start as a service, there
was no trace of it.

Thanks
-Manoj Pooleery.

-Original Message-
From: David Boyer [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 3:49 PM
To: [EMAIL PROTECTED]
Subject: Re: gc output for tomcat?? where is it


try adding  -Xloggc:file
 


 [EMAIL PROTECTED] 11/15/2004 12:39:45 PM 

I have set the -verbose:gc flag for tomcat. Where does the output go?
Do I
need to set the
log level to Info instead of Error??


John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
Before you criticize someone, walk a mile in their shoes.
That way, you'll be a mile from them, and you'll have their shoes.


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



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



  1   2   >