problem accessing datasource in 5.5.4 application

2004-11-15 Thread Scott Mueller
Someone please help me.  The same code that was working fine in tomcat
5.0.19 does not work anymore in 5.5.4 for accessing the database.  I have
the correct postgresql (jdk1.5 compatible) driver in the common/lib
directory.  In server.xml, I have the following resource as a child of the
GlobalNamingResources element:



 

That seems to work fine, because in my
webapps/ispmanager/META-INF/context.xml file, I have the following Realm:



  



 

This works perfectly.  I can login with the correct username/password in my
postgresql database and it works as expected.  The problem is when actually
logged in and referencing a servlet that accesses the database through the
data/ispmanagerpg datasource.  It gives the error below.  This was working
fine in 5.0.19 as I explained above.  Not sure what's different or what I
may have inadvertently changed. I have the correct resource-ref element in
my WEB-INF/web.xml file.

 

2004-11-16 03:41:48,354 ERROR [http-69.60.97.166-443-Processor25]
servlet.CustomXmlProducer (CustomXmlProducer.java:60) - unable to get result
set for this entity

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.ja
va:540)

at
com.acceleratebiz.manager.util.Database.getConnection(Database.java:31)

at
com.acceleratebiz.manager.servlet.CustomXmlProducer.getCustomerId(CustomXmlP
roducer.java:54)

at
com.acceleratebiz.manager.servlet.CustomXmlProducer.initialize(CustomXmlProd
ucer.java:41)

at
com.acceleratebiz.manager.controlpanel.Traffic.produceXml(Traffic.java:30)

at org.mis.xsltfront.servlet.XmlSource.produceXml(XmlSource.java:33)

at org.mis.xsltfront.servlet.XsltServlet.doGet(XsltServlet.java:56)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)

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

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

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)

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

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.processConne
ction(Http11Protocol.java:731)

at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:526)

at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)

at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)

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

Caused by: java.lang.NullPointerException

at java.util.StringTokenizer.(StringTokenizer.java:182)

at org.postgresql.Driver.parseURL(Driver.java:251)

at org.postgresql.Driver.acceptsURL(Driver.java:159)

at java.sql.DriverManager.getDriver(DriverManager.java:232)

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

... 24 more

 

 

The last 7 lines of my web.xml file if it helps anyone:



ispmanager database

data/ispmanagerpg

javax.sql.DataSource

Container





 

Scott Mueller

AccelerateBiz Managed Hosting

http://www.acceleratebiz.com  

Phone: (800) 360-7360

Fax: (270) 778-3081 

 



Re: Disbale cache at apache

2004-11-15 Thread birendar . waldiya

Can any one  help me with how can i integrate Apcahe/Tomcat..

if in integrate it successfully  will starting tomcat  automatical starts 
apache or  reverse way..

thanks 
regards 

Birendar Singh Waldiya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com

DISCLAIMER: The information contained in this message is intended only and 
solely for the addressed individual or entity indicated in this message and for 
the exclusive use of the said addressed individual or entity indicated in this 
message (or responsible for delivery of the message to such person) and may 
contain legally privileged and confidential information belonging to Tata 
Consultancy Services Limited. It must not be printed, read, copied, disclosed, 
forwarded, distributed or used (in whatsoever manner) by any person other than 
the addressee. Unauthorized use, disclosure or copying is strictly prohibited 
and may constitute unlawful act and can possibly attract legal action, civil 
and/or criminal. The contents of this message need not necessarily reflect or 
endorse the views of Tata Consultancy Services limited on any subject matter.
  Any action taken or omitted to be taken based on this message is entirely at 
your risk and neither the originator of this message nor Tata Consultancy 
Services Limited takes any responsibility or liability towards the same. 
Opinions, conclusions and any other information contained in this message that 
do not relate to the official business of Tata Consultancy Services limited 
shall be understood as neither given nor endorsed by Tata Consultancy Services 
Limited or any affiliate of Tata Consultancy Services Limited. If you have 
received this message in error,  you should destroy this message and may please 
notify the sender by e-mail. 
 Thank you.

Re: question

2004-11-15 Thread birendar . waldiya

You need to move the class file not java file  check if it works 

Birendar Singh Waldiya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



Peter Fogg <[EMAIL PROTECTED]> 
11/12/2004 04:12 AM

Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>


To
"Tomcat Users List" <[EMAIL PROTECTED]>
cc

Subject
Re:  question






Sorry, both of the urls are "gttp://localhost:8080/. . .

On Nov 11, 2004, at 2:38 PM, Peter Fogg wrote:

> Trying to learn how to develop applications in JSP and servlets. Using 
> Tomcat 5.0.28 on Mac OS X v10.3.5.
>
> In web-apps directory created subdirectory LearningTree.
> Created and compiled a servlet HelloWorldServlet.class in the 
> LearningTree directory.
> Moved the class to the LearningTree/WEB-INF/classes directory.
> Created the web.xml file with  and  sections.
> Set the  to "/".
> Started Tomcat
> http://8080/LearningTree/HelloWorldServlet works.
> Stopped Tomcat.
>
> Created a subdirectory, HWS, of LearningTree directory.
> Moved the HelloWorldServlet.fava file into the HWS directory.
> Moved the above WEB-INF directory into the HWS directory.
> Started Tomcat.
> http://8080/LearningTree/HWS/HelloWorldServlet does not work - 
> resource not available.
> ??
>
> Also, can someone point me to a clear and concise explanation of the 
>  issue?
>
> Thanks in advance for any help offered.
>
> Peter-
>
>
> -
> 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]


ForwardSourceID:NT33EE 


DISCLAIMER: The information contained in this message is intended only and 
solely for the addressed individual or entity indicated in this message and for 
the exclusive use of the said addressed individual or entity indicated in this 
message (or responsible for delivery of the message to such person) and may 
contain legally privileged and confidential information belonging to Tata 
Consultancy Services Limited. It must not be printed, read, copied, disclosed, 
forwarded, distributed or used (in whatsoever manner) by any person other than 
the addressee. Unauthorized use, disclosure or copying is strictly prohibited 
and may constitute unlawful act and can possibly attract legal action, civil 
and/or criminal. The contents of this message need not necessarily reflect or 
endorse the views of Tata Consultancy Services limited on any subject matter.
  Any action taken or omitted to be taken based on this message is entirely at 
your risk and neither the originator of this message nor Tata Consultancy 
Services Limited takes any responsibility or liability towards the same. 
Opinions, conclusions and any other information contained in this message that 
do not relate to the official business of Tata Consultancy Services limited 
shall be understood as neither given nor endorsed by Tata Consultancy Services 
Limited or any affiliate of Tata Consultancy Services Limited. If you have 
received this message in error,  you should destroy this message and may please 
notify the sender by e-mail. 
 Thank you.

RE: SSL Not working properly

2004-11-15 Thread birendar . waldiya

Oh  thanks Chris and David , 
I made stupid mistake 
thanks a lot for help.
regards

Birendar Singh Waldiya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



"Hubble, Christopher" <[EMAIL PROTECTED]> 
11/11/2004 06:58 PM

Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>


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

Subject
RE: SSL Not working properly






Oh, and your keystoreFile parameter is misspelled as well.  You have
keystrore.  It should be keystore. :)

Chris

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 11, 2004 2:42 AM
To: Tomcat Users List
Subject: SSL Not working properly



Hi, 
I have done everything to implement SSL on tomcat as described in  SSL HOW 

-TO ..
 i have placed my kestore file in the Tomcat home directory and as 
metioned in  the path in server.xml
but i am still  getting  error 
please help???

[ERROR] Http11Protocol - -Error initializing endpoint 
java.io.IOException: 
Keystore
was tampered with, or password was incorrect
at 
sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:737)
at java.security.KeyStore.load(KeyStore.java:608)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocket
Factory.java:313)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESoc
ketFactory.java:261)
at 
org.apache.tomcat.util.net.jsse.JSSE13SocketFactory.init(JSSE13Socket
Factory.java:129)


Catalina.start: LifecycleException:  Protocol handler initialization 
failed: jav
a.io.IOException: Keystore was tampered with, or password was incorrect
LifecycleException:  Protocol handler initialization failed: 
java.io.IOException
: Keystore was tampered with, or password was incorrect
at 
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.
java:1231)
at 
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:579)
at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2246)
at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)



Catalina.start: LifecycleException:  Protocol handler initialization 
failed: jav
a.io.IOException: Keystore was tampered with, or password was incorrect
LifecycleException:  Protocol handler initialization failed: 
java.io.IOException
: Keystore was tampered with, or password was incorrect
at 
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.
java:1231)
at 
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:579)
at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2246)
at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)



my server.xml is as follow :

.

 




 
 
  

.




Birendar Singh Waldiya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



Koon Yue Lam <[EMAIL PROTECTED]> 
11/11/2004 12:38 PM

Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>


To
Tomcat Users List <[EMAIL PROTECTED]>
cc

Subject
How to secure my webapp under Tomcat?






Hi, I have developed a webapp using Tomcat and MySQL

Now I DON'T want my client browse my JSPs, servlets and database
structure etc ..

I want the entire webapp (and database) deployed only by me and not by 
others.

Is there any methods that I can secure my webapp to ensure my client
won't deploy it to somewhere else by someone else??

Regards

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


ForwardSourceID:NT327A 


DISCLAIMER: The information contained in this message is intended only and
solely for the addressed individual or entity indicated in this message 
and
for the exclusive use of the said addressed individual or entity indicated
in this message (or responsible for delivery of the message to such 
person)
and may contain legally privileged and confidential information belonging 
to
Tata Consultancy Services Limited. It must not be printed, read, copied,
disclosed, forwarded, distributed or used (in whatsoever manner) by any
person other than the addressee. Unauthorized use, disclosure or copying 
is
strictly prohibited and may constitute unlawful act and can possibly 
attract
legal action, civil and/or criminal. The contents of this message need not
necessarily reflect or endorse the views of Tata Consultancy Services
limited on any subject matter.
  Any action taken or omitted to be taken based on this message is 
entirel

RE: SSL Not working properly

2004-11-15 Thread birendar . waldiya

Sorry, for late response as we had holiday ti today 
Chris and David,  I have changed te misspelled  attribute too and again 
did the same exercise still getting same error..



Birendar Singh Waldiya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



"Hubble, Christopher" <[EMAIL PROTECTED]> 
11/11/2004 07:57 PM

Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>


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

Subject
RE: SSL Not working properly






AFAIK, that's because https defaults to 443.

-Original Message-
From: David Austin [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 11, 2004 9:36 AM
To: Tomcat Users List
Subject: RE: SSL Not working properly


But I thought that was the whole point of the redirect...  So a user could
be browsing the site using the familiar http://localhost:8080, and he 
comes
across a secure link to https, he could just type https://localhost:8080 
and
it would redirect automatically.

If i set it up for ports 80 and 443, i can type https://localhost it will
redirect without displaying the :443. 

-- Original Message --
From: "Hubble, Christopher" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
Date:  Thu, 11 Nov 2004 09:20:24 -0500

>I had no problems running SSL on the default ports.  I believe your 
problem
>is that your specifying https and 8080.  Try https://localhost:8443
>
>Chris
>
>-Original Message-
>From: David Austin [mailto:[EMAIL PROTECTED]
>Sent: Thursday, November 11, 2004 9:28 AM
>To: Tomcat Users List
>Subject: RE: SSL Not working properly
>
>
>Chris, or Birendar
>
>Were you able to get the redirect working on those ports: 8080 and 8443? 
I
>have the same setup for tomcat 4.1.31, but i can only get it to work 
using
>port 80 and 443...
>
>-dave
>
>
>-- Original Message --
>From: "Hubble, Christopher" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Date:  Thu, 11 Nov 2004 08:28:38 -0500
>
>>Oh, and your keystoreFile parameter is misspelled as well.  You have
>>keystrore.  It should be keystore. :)
>>
>>Chris
>>
>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, November 11, 2004 2:42 AM
>>To: Tomcat Users List
>>Subject: SSL Not working properly
>>
>>
>>
>>Hi, 
>>I have done everything to implement SSL on tomcat as described in  SSL 
HOW

>>-TO ..
>> i have placed my kestore file in the Tomcat home directory and as 
>>metioned in  the path in server.xml
>>but i am still  getting  error 
>>please help???
>>
>>[ERROR] Http11Protocol - -Error initializing endpoint 
>>>tore was tampered with, or password was incorrect>java.io.IOException: 
>>Keystore
>>was tampered with, or password was incorrect
>>at 
>>sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:737)
>>at java.security.KeyStore.load(KeyStore.java:608)
>>at 
>>org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocket
>>Factory.java:313)
>>at 
>>org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESoc
>>ketFactory.java:261)
>>at 
>>org.apache.tomcat.util.net.jsse.JSSE13SocketFactory.init(JSSE13Socket
>>Factory.java:129)
>>
>>
>>Catalina.start: LifecycleException:  Protocol handler initialization 
>>failed: jav
>>a.io.IOException: Keystore was tampered with, or password was incorrect
>>LifecycleException:  Protocol handler initialization failed: 
>>java.io.IOException
>>: Keystore was tampered with, or password was incorrect
>>at 
>>org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.
>>java:1231)
>>at 
>>org.apache.catalina.core.StandardService.initialize(StandardService.j
>>ava:579)
>>at 
>>org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
>>a:2246)
>>at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
>>at 
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>>at 
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>>
>>
>>
>>Catalina.start: LifecycleException:  Protocol handler initialization 
>>failed: jav
>>a.io.IOException: Keystore was tampered with, or password was incorrect
>>LifecycleException:  Protocol handler initialization failed: 
>>java.io.IOException
>>: Keystore was tampered with, or password was incorrect
>>at 
>>org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.
>>java:1231)
>>at 
>>org.apache.catalina.core.StandardService.initialize(StandardService.j
>>ava:579)
>>at 
>>org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
>>a:2246)
>>at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
>>at 
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>>at 
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>>
>>
>>
>>my server.xml is as

Hi

2004-11-15 Thread hgomez
--  Virus Warning Message (on uusnwa08)

Found virus WORM_NETSKY.Z in file Bill.txt  

   .exe (in Bill.zip)
The file is deleted.

-
Important bill!


--  Virus Warning Message (on uusnwa08)

Bill.zip is removed from here because it contains a virus.

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

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

2004-11-15 Thread Steven J. Owens
On Mon, Nov 15, 2004 at 05:13:21PM -0300, Paulo Alvim wrote:
> 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?

 It's not possible because it's not _proper_ from a security
perspective, so they built tomcat to not enable it.

 I can sorta understand why people want to do it, myself, but you
should understand that it's not secure, and be very much aware of the
risks you're taking.  Still, I can understand some of the motivation
behind the request, and I think there's a solution.  The key is to
realize you're trying to solve the wrong problem.  See my explanation
at the end for what the right problem is, and how to solve it.

 To illustrate this properly, imagine that your account has two
usernames and two passwords that you can use to access it, the
permanent username/password and a temporary username/password.

 When you login, you first have to send the permanent username and
first password over the net.

 At that point, the server then sets your temporary username and
second password to some random value, temporarily, and then sends
those back to you.  

 The temporary username/password will last until your user session
times out, or until you explicitly log out.

 Your browser then sends a copy of that temporary username and
temporary password along with _every_ _single_ _request_ to the
server.

 Just because you make sure the first communication, where you
sent the permanent username/password, is secure, doesn't keep somebody
from sniffing the temporary username and password and using those to
do all sorts of damage to your account during that window of
opportunity.

 To bring this back to reality, the JSESSIONID cookie is the
temporary username/password.  This explains why it is not secure to
use the same session for both HTTP and HTTPS connections.

 Thinking about it, I can certainly see why people would want some
happy medium between the two.  SSL consumes resources* and often
you're not worried about securing the entire series of user
interactions, just a critical subset.  For example, you don't need to
SSL-protect the user browsing your catalog, but you do need to
SSL-protect the payment authorization.

 (* Last I heard, the SSL server takes up about 40% extra
resources, though that info is years old and may be way out of date.)

 However, the important point is _not_ that you want to share the
session data across secure and unsecure apps, but that you want to
avoid making the user log in twice.  Here's how I'd approach this.
You need two distinct sets of security credentials, "serious" and
"trivial".  The serious credential is necessary for the SSL-protected
portion, the trivial credential is necessary for the non-SSL portion.

 Then, when the user logs in via SSL, it also creates a trivial
security credential, and sets that on a _different_ cookie than
JSESSIONID.  It's been ages since I've worked with cookies, but you
can mark a cookie as "Secure", meaning it only gets sent back to the
secure server, or not.  The tomcat SSL-created JSESSIONID is set
secure, for example.  Here's what one looks like:

Set-Cookie: JSESSIONID=202E506FAD4A9ADB5F062DB3A3310E89; Path=/xyzzy; Secure

 This is further documented at:

 http://www.ietf.org/rfc/rfc2109.txt

 However, you can also set a second cookie, _without_ the secure
option, from the SSL response.  The browser will then include that
cookie value in further requests to the non-secure site at the same
domain.  You would have to customize the non-secure site's security so
that it checks for this cookie and automatically logs the user in to
the non-secure site without prompting.

 One thing you'll have to watch out for is the timeout of the SSL
session, since it might get left alone for many hours.  You have two
choices there:

1) either include an SSL-protected icon on every page, which will keep
your SSL session from timing out.  This can have some slight
complications, since most browsers use some visual cue to indicated
SSL traffic.

2) or just set the SSL app's session timeout to a fairly long time.

-- 
Steven J. Owens
[EMAIL PROTECTED]

"I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt." - http://darksleep.com/notablog


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



Mbean to Tomcat

2004-11-15 Thread Anil_A
Hi All
just coming back to tomcat mailing list after about one year. My 
apologies if this question asked and answered before. I have search the 
mailing list.

Does any one have nice example of deploying mbean to Tomcat 4.1.30+ or 
5.0.27+.

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


hello

2004-11-15 Thread pier
Mail  failed.  For further assistance, please contact!

Dangerous Attachment has been Removed.  The file "meuz.scr" has been removed 
because of a virus.  It was infected with the "W32/Lovgate-dam" virus.  File 
quarantined as: "". 
http://www.fortinet.com/VirusEncyclopedia/search/encyclopediaSearch.do?method=quickSearchDirectly&virusName=W32%2FLovgate-dam
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Content-disposition for file downlaod with Mozilla/Firefox

2004-11-15 Thread David Wall
Most interesting!  I've given it a shot (just putting quotes around the
filename) and it does seem to fix things for all the browsers I test with
(Mozilla 1.7, Firefox 1.0, Netscape 7.1, IE 6 and Opera 7.11).

I was worried it was a browser thing, but it does appear to be something I
can fix in my servlet.  It is interesting that so many browsers have "fixed"
broken standards to make things appear to work that you get fat on such
simple errors.  After all, it was surprising that Netscape 7.1 worked fine
since it's Mozilla based, and because it worked with IE and Opera, too, it
surely seemed to be a Mozilla bug.

So I now use something like:

Content-Disposition: attachment;filename="Some Agreement 2004-11-15.doc"

Thanks again,
David

- Original Message - 
From: "Tim Funk" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 15, 2004 3:54 PM
Subject: Re: Content-disposition for file downlaod with Mozilla/Firefox


> Its not a bug.
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=221028
>
> -Tim
>
> David Wall wrote:
> > 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?
> >
>
>
> -
> 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: Content-disposition for file downlaod with Mozilla/Firefox

2004-11-15 Thread Tim Funk
Its not a bug.
https://bugzilla.mozilla.org/show_bug.cgi?id=221028
-Tim
David Wall wrote:
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?

-
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 Wendy Smoak
From: "Venkat Reddy Valluri" <[EMAIL PROTECTED]>
>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

Somewhere around the move from Tomcat 4.0 to 4.1 and from Java 1.3 to 1.4,
things changed and you can no longer import a class in the default package
[no package statement] into a class that _is_ in a named package (such as
the code generated from a JSP).

If you're using the same JDK version on both servers, then my guess is that
Tomcat 4.1 puts a package statement on the code generated from the JSP,
while Tomcat 4.0 didn't.  You can look in the 'work' directory to find out
for sure, but it's irrelevant-- by the time you're deploying a J2EE webapp,
all of your code should be packaged.

-- 
Wendy Smoak


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



Re: WebDAV-Servlet with Contexts different from FileDirContext

2004-11-15 Thread Oliver Zeigermann
Looking into this further, couldn't proppatch be implemented properly?
I know the file dir context does not support setting of attributes,
but there are other dir contexts imaginable that do, right?

Oliver

On Mon, 15 Nov 2004 02:23:49 +0100, Oliver Zeigermann
<[EMAIL PROTECTED]> wrote:
> Folks,
> 
> I am just reviewing Tomcat's WebDAV servlet and have even run Slide's
> WebDAV testsuite against it - many tests work :) I really like the
> brevity!
> 
> I understand the default context used is FileDirContext, right? I am
> no Tomcat expert, so maybe this is a stupid question, but is it
> actually possible to use a different context possibly accessing a
> system in a more complicated way? Has anybody tried this already?
> 
> Thanks in advance,
> Oliver
>

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



Re: Rotating catalina.out with Webmin

2004-11-15 Thread erh
On Mon, Nov 15, 2004 at 03:39:01PM -0600, Filip Hanik - Dev wrote:
> this was not the case when using a java.io.FileOutputStream(), so I assume 
> you tried and verified this :)

You are confused.  It _is_ the case with FileOutputStream.  The only
way it could be otherwise is if the output stream re-opens the file, either
on every write, or when it notices that the file name no longer refers to
the same file.

Create aa.java with this code:

import java.io.*;
public class aa
{
public static void main(String[] args) throws Exception
{
FileOutputStream f = new FileOutputStream(args[0]);
f.write(80); f.flush();
synchronized(f) { f.wait(5 * 1000); }
f.write(81); f.flush();
}
}

And run this:
java aa foo &
mv foo bar

Notice that the output of the second write (which occurs after the file
is renamed) is in the original file (bar), not in a new foo.

eric

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



RE: Tomcat 4.1.27 can't access symbolink directories

2004-11-15 Thread Venkat Reddy Valluri
Thank you mark


-Original Message-
From:   Mark Thomas [mailto:[EMAIL PROTECTED]
Sent:   Mon 11/15/2004 5:23 PM
To: 'Tomcat Users List'
Cc: 
Subject:RE: Tomcat 4.1.27 can't access symbolink directories
Have a look at http://www.jguru.com/faq/view.jsp?EID=1028397

Mark

> -Original Message-
> From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 15, 2004 10:16 PM
> To: Tomcat Users List
> Subject: Tomcat 4.1.27 can't access symbolink directories
> 
> Hi,
>  why Tomact 4.1.27 can't acess symbolic link directories while
>   tomcat 4.0.4 can acess those symbolic link directories
> 
> can you please throw some light on this
> 
> Thks
> --Venkat
> 
> 
> 



-
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 4.1.27 can't access symbolink directories

2004-11-15 Thread Mark Thomas
Have a look at http://www.jguru.com/faq/view.jsp?EID=1028397

Mark

> -Original Message-
> From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 15, 2004 10:16 PM
> To: Tomcat Users List
> Subject: Tomcat 4.1.27 can't access symbolink directories
> 
> Hi,
>  why Tomact 4.1.27 can't acess symbolic link directories while
>   tomcat 4.0.4 can acess those symbolic link directories
> 
> can you please throw some light on this
> 
> Thks
> --Venkat
> 
> 
> 



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



Tomcat 4.1.27 can't access symbolink directories

2004-11-15 Thread Venkat Reddy Valluri
Hi,
 why Tomact 4.1.27 can't acess symbolic link directories while
  tomcat 4.0.4 can acess those symbolic link directories

can you please throw some light on this

Thks
--Venkat


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

Re: Setup Xms & Xmx

2004-11-15 Thread David Boyer
Another shameless plug:
 
http://web.bvu.edu/staff/david/tcservcfg/

>>> [EMAIL PROTECTED] 11/15/2004 2:03:33 PM >>>

Hi,

my platform is:

Windows 2K
Tomcat 5.0.27

I start Tomcat as Win2K service, can I setup JAVA_OPTS like Xms and Xms.


Thank a lot and best regards.


ciao

-- 
__
Pablo Carretero Sánchez
Cygnux

Arquitecto de Software
Pintor Velazquez nº 3 Esc Izq 7º B
28932 – Móstoles (Madrid)
Movil: +34 699929150
[EMAIL PROTECTED]




-
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 Mark Thomas
Please start a new thread for a new question. It makes it easier for those using
thread aware mail clients or one of the many web archives to follow a particular
question.

Mark

> -Original Message-
> From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 15, 2004 9:52 PM
> To: Tomcat Users List
> Subject: RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk
> 
> Thank you very much for giving information markt
>
> why Tomact 4.1.27 can't acess symblic link directories where 
> as tomcat 4.0.4 can acess those symbolic link directories
> 
> 
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: Mark Thomas [mailto:[EMAIL PROTECTED]
> Sent: Mon 11/15/2004 4:48 PM
> To:   'Tomcat Users List'
> Cc:   
> Subject:  RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk
> No. The spec requires this. 
> 
> > -Original Message-
> > From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, November 15, 2004 9:19 PM
> > To: Tomcat Users List
> > Subject: RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk
> > 
> > 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]
> 
> 
> 
> 
> 
> 



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



Setup Xms & Xmx

2004-11-15 Thread Pablo Carretero Sánchez
Hi,

my platform is:

Windows 2K
Tomcat 5.0.27

I start Tomcat as Win2K service, can I setup JAVA_OPTS like Xms and Xms.


Thank a lot and best regards.


ciao

-- 
__
Pablo Carretero Sánchez
Cygnux

Arquitecto de Software
Pintor Velazquez nº 3 Esc Izq 7º B
28932 – Móstoles (Madrid)
Movil: +34 699929150
[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 Phillip Qin
I don't remember. I think logrotate recreates it anyway.

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


Hi Phillip,
Why do you re-create the file?  Is it not enough to truncate it?

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

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


 | /usr/local/sbin/cronolog
"$CATALINA_BASE$"/logs/%Y-%m-%d.catalina.out >> /dev/null 2>&1 

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]





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


!DSPAM:419925d560433608341601!


RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk

2004-11-15 Thread Phillip Qin
I think you need to tell tomcat in sever.xml or context.xml?

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


Thank you very much for giving information markt
   
why Tomact 4.1.27 can't acess symblic link directories where as tomcat 4.0.4
can acess those symbolic link directories








-Original Message-
From:   Mark Thomas [mailto:[EMAIL PROTECTED]
Sent:   Mon 11/15/2004 4:48 PM
To: 'Tomcat Users List'
Cc: 
Subject:RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk
No. The spec requires this. 

> -Original Message-
> From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 15, 2004 9:19 PM
> To: Tomcat Users List
> Subject: RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk
> 
> 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
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 



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







!DSPAM:419924f160279402618921!


RE: Rotating catalina.out with Webmin

2004-11-15 Thread Carlos Oliva
Hi Phillip,
Why do you re-create the file?  Is it not enough to truncate it?

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

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


 | /usr/local/sbin/cronolog
"$CATALINA_BASE$"/logs/%Y-%m-%d.catalina.out >> /dev/null 2>&1 

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!


-
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
Thank you very much for giving information markt
   
why Tomact 4.1.27 can't acess symblic link directories where as tomcat 4.0.4 
can acess those symbolic link directories








-Original Message-
From:   Mark Thomas [mailto:[EMAIL PROTECTED]
Sent:   Mon 11/15/2004 4:48 PM
To: 'Tomcat Users List'
Cc: 
Subject:RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk
No. The spec requires this. 

> -Original Message-
> From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 15, 2004 9:19 PM
> To: Tomcat Users List
> Subject: RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk
> 
> 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]





-
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 Mark Thomas
No. The spec requires this. 

> -Original Message-
> From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 15, 2004 9:19 PM
> To: Tomcat Users List
> Subject: RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk
> 
> 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: gc output for tomcat?? where is it

2004-11-15 Thread Shapira, Yoav

Hi,
Well, the console is trapped to stdout.log when running as a service,
isn't it?  That's where I'd expect it.  But I don't care enough for JDK
1.3 to actually test this for you ;)

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Pooleery, Manoj [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 15, 2004 4:44 PM
>To: 'Tomcat Users List'
>Subject: RE: gc output for tomcat?? where is it
>
>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:
>
>
>
 [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]




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


>>> [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]



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


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


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


 | /usr/local/sbin/cronolog
"$CATALINA_BASE$"/logs/%Y-%m-%d.catalina.out >> /dev/null 2>&1 

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: gc output for tomcat?? where is it

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


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


 | /usr/local/sbin/cronolog
"$CATALINA_BASE$"/logs/%Y-%m-%d.catalina.out >> /dev/null 2>&1 

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


 | /usr/local/sbin/cronolog
"$CATALINA_BASE$"/logs/%Y-%m-%d.catalina.out >> /dev/null 2>&1 

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]



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



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


 | /usr/local/sbin/cronolog
"$CATALINA_BASE$"/logs/%Y-%m-%d.catalina.out >> /dev/null 2>&1 

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


 | /usr/local/sbin/cronolog
"$CATALINA_BASE$"/logs/%Y-%m-%d.catalina.out >> /dev/null 2>&1 

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: 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
>
>
> | /usr/local/sbin/cronolog
>"$CATALINA_BASE$"/logs/%Y-%m-%d.catalina.out >> /dev/null 2>&1
>
>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]



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


 | /usr/local/sbin/cronolog 
"$CATALINA_BASE$"/logs/%Y-%m-%d.catalina.out >> /dev/null 2>&1 

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]



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?



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?



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]


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

   
  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"/>


it is located inside   the 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

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

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: [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%2F6503740500223&action=upd&butaction=checkout&qty_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]
>>
>>  
>>   >type="javax.sql.DataSource"/>
>>  
>>
>>[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

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%2F6503740500223&action=upd&butaction=checkout&qty_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]
>
>  
>   type="javax.sql.DataSource"/>
>  
>
>[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: 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 :

   
  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"/>


it is located inside   the 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

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

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: 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: 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=C&ID=18698&DocName=
Germany&entry=&DocType=pdf&category=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 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]



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.

  


3.  Add below entries in web.xml.
   a) 
  DB Connection
  jdbc/RegistrationDB
  javax.sql.DataSource
  Container


   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.


  
  
  
username
!username!
password
!password!
driverClassName
 
com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource

url
 
jdbc:mysql://:/?autoReload=true


maxActive
8
 
 
maxIdle
4
 
   
  

5.  Copy the mysql-connector-java-3.1.4-beta-bin.jar file in common/lib
folder.
6.  Comment out
org.apache.struts.taglib.html.ErrorsTei 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: 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]




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]


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=C&ID=18698&DocName=Germany&entry=&DocType=pdf&category=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]


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]



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]


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 :



   





it is located inside   the 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



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:
> 
> 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,
>
> > 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.
>
> >>
> >  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.
>
> >
>
> 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 wit

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 :



   





it is located inside   the 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



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

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



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


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


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 :

  
 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"/>

   
it is located inside   the 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


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:

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,
>
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.
>   
>  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.
>
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]



---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---

-
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: 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%2F6503740500223&action=upd&butaction=checkout&qty_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]

 
  
 

[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 r

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



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:
>  
> 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,
> 
> > 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.
> 
> >>
> >  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.
> 
> >
> 
> 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]
> 
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



-
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 Ed Sykes
Hi Yoav Shapira,
Thank you for your help.
I've corrected my server.xml file.  the first line now looks like:

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,
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.
  
 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.

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]


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


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]



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.(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: 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
> >
> >
> >
> >  > docBase="ROOT/WEB-INF/classes/JITS"
> >
> > debug="5" reloadable="true" crossContext="true">
> >
> >
> >
> > >
> >   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"/>
> >
> >
> >
> > 
> >
> >   
> >
> > factory
> >
> > org.apache.commons.dbcp.BasicDataSourceFactory
> >
> >   
> >
> >   
> >
> > 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
> >
> >   
> >
> > 
> >
> >
> >
> >
> >
> > 
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Here's the contents of
> > C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF\web.xml
> >
> >
> >
> >
> >
> > 
> >
> > JITS.ImageServer
> >
> > JITS.ImageServer
> >
> > 
> >
> >
> >
> >   
> >
> > JITS.ImageServer
> >
> > /servlet/JITS.ImageServer
> >
> > 
> >
> >
> >
> >  
> >
> >  Oracle Datasource example
> >
> >  jdbc/myoracle
> >
> >  javax.sql.DataSource
> >
> >  Container
> >
> > 
> >
> >
> >
> >
> >
> >
> >
> > 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
> >
> >
> >
> >
> >
> 
> 
> 
> ---
> QAS Ltd.
> Developers of QuickAddress Software
> http://www.qas.com";>www.q

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

2004-11-15 Thread Shapira, Yoav

Hi,

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

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

>

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


debug="5" reloadable="true" crossContext="true">

   
  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"/>


  
factory
org.apache.commons.dbcp.BasicDataSourceFactory
  
  
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
  








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



JITS.ImageServer
JITS.ImageServer


  
JITS.ImageServer
/servlet/JITS.ImageServer


 
 Oracle Datasource example
 jdbc/myoracle
 javax.sql.DataSource
 Container




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




---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---

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


debug="5" reloadable="true" crossContext="true">

   
  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"/>


  
factory
org.apache.commons.dbcp.BasicDataSourceFactory
  
  
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
  








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



JITS.ImageServer
JITS.ImageServer


  
JITS.ImageServer
/servlet/JITS.ImageServer


 
 Oracle Datasource example
 jdbc/myoracle
 javax.sql.DataSource
 Container




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




---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---

-
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 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
> 
>  
> 
>  docBase="ROOT/WEB-INF/classes/JITS"
> 
> debug="5" reloadable="true" crossContext="true">
> 
>   
> 
> 
>   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"/> 
> 
>  
> 
> 
> 
>   
> 
> factory
> 
> org.apache.commons.dbcp.BasicDataSourceFactory
> 
>   
> 
>   
> 
> 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
> 
>   
> 
> 
> 
>  
> 
>  
> 
> 
> 
>  
> 
>  
> 
>  
> 
>  
> 
> Here's the contents of 
> C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF\web.xml
> 
>  
> 
>  
> 
> 
> 
> JITS.ImageServer
> 
> JITS.ImageServer
> 
> 
> 
>  
> 
>   
> 
> JITS.ImageServer
> 
> /servlet/JITS.ImageServer
> 
> 
> 
>  
> 
>  
> 
>  Oracle Datasource example
> 
>  jdbc/myoracle
> 
>  javax.sql.DataSource
> 
>  Container
> 
> 
> 
>  
> 
>  
> 
>  
> 
> 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
> 
>  
> 
>  
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



-
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
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
> 
>  
> 
>  docBase="ROOT/WEB-INF/classes/JITS"
> 
> debug="5" reloadable="true" crossContext="true">
> 
>   
> 
> 
>   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"/> 
> 
>  
> 
> 
> 
>   
> 
> factory
> 
> org.apache.commons.dbcp.BasicDataSourceFactory
> 
>   
> 
>   
> 
> 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
> 
>   
> 
> 
> 
>  
> 
>  
> 
> 
> 
>  
> 
>  
> 
>  
> 
>  
> 
> Here's the contents of 
> C:\jakarta-tomcat-5.5.4\webapps\ROOT\WEB-INF\web.xml
> 
>  
> 
>  
> 
> 
> 
> JITS.ImageServer
> 
> JITS.ImageServer
> 
> 
> 
>  
> 
>   
> 
> JITS.ImageServer
> 
> /servlet/JITS.ImageServer
> 
> 
> 
>  
> 
>  
> 
>  Oracle Datasource example
> 
>  jdbc/myoracle
> 
>  javax.sql.DataSource
> 
>  Container
> 
> 
> 
>  
> 
>  
> 
>  
> 
> 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
> 
>  
> 
>  
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



-
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

 



  



 



  

factory

org.apache.commons.dbcp.BasicDataSourceFactory

  

  

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

  



 

 



 

 

 

 

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

 

 



JITS.ImageServer

JITS.ImageServer



 

  

JITS.ImageServer

/servlet/JITS.ImageServer



 

 

 Oracle Datasource example

 jdbc/myoracle

 javax.sql.DataSource

 Container



 

 

 

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



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 @@
 ]>
 

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 
> >> >
> >> >
> >> >
> >> >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.
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >---
> >> >QAS Ltd.
> >> >Developers of QuickAddress Software
> >> >http://www.qas.com";>www.qas.com
> >> >Registered in England: No 2582055
> >> >Registered in Australia: No 082 851 474
> >> >---
> >> >
> >>
> >>
> >>
> >>
> >> 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]
> >>
> >>
> >
> >
> >
> >---
> >QAS Ltd.
> >Developers of QuickAddress Software
> >http://www.qas.com";>www.qas.com
> >Registered in England: No 2582055
> >Registered in Australia: No 082 851 474
> >---
> >
> >
> >
> >-
> >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, pri

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%2F6503740500223&action=upd&butaction=checkout&qty_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]
>
>  
>   type="javax.sql.DataSource"/>
>  
>
>[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: 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
>
> 
>   className="org.apache.catalina.mbeans.ServerLifecycleListener"
>debug="0"
>/>
>   className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
>debug="0" />
>   />
>   type="org.apache.catalina.UserDatabase" description="User database
>that
>can be updated and saved" />
>  
>   
>   factory
>   org.apache.catalina.users.MemoryUserDatabaseFactory
>   
>   
>   pathname
>   conf/tomcat-users.xml
>   
>   
>   
>  
>maxSpareThreads="75" enableLookups="false" redirectPort="8443"
>acceptCount="100" debug="0" connectionTimeout="2"
>disableUploadTimeout="true" />
>debug="0" protocol="AJP/1.3" />
> 
> prefix="catalina_log." suffix=".txt" timestamp="true" />
>  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" />
>  unpackWARs="true" autoDeploy="true" xmlValidation="false"
>xmlNamespaceAware="false">
> directory="logs"  prefix="localhost_log."
>suffix=".txt"
>timestamp="true"/>
>   
> 
>   
>  
>
>context.xml under the application/web-INF directory
>
>
>   prefix="ims_log." suffix=".txt" timestamp="true" verbosity="4" />
>   prefix="ims_err." suffix=".txt" timestamp="true" verbosity="4" />
>   prefix="ims_out." suffix=".txt" timestamp="true" verbosity="4" />
>
>
>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 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%2F6503740500223&action=upd&butaction=checkout&qty_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]

 
  
 

[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
 
 




  
   
   factory 
   org.apache.catalina.users.MemoryUserDatabaseFactory 
   
   
   pathname 
   conf/tomcat-users.xml 
   
   
   
  
 
 
 
  
   
  
   
   
 
   
  
 
context.xml under the application/web-INF directory


   
   
   

 
Tomcat 5.0.28/Apache2
 
Have I missed something?
 
Thanks,

Scott Pippin
[EMAIL PROTECTED]


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%2F6503740500223&action=upd&butaction=checkout&qty_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]

 
  
 

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


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 
>> >> >
>> >> >
>> >> >
>> >> >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.
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >---
>> >> >QAS Ltd.
>> >> >Developers of QuickAddress Software
>> >> >http://www.qas.com";>www.qas.com
>> >> >Registered in England: No 2582055
>> >> >Registered in Australia: No 082 851 474
>> >> >---
>> >> >
>> >>
>> >>
>> >>
>> >>
>> >> 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]
>> >>
>> >>
>> >
>> >
>> >
>> >---
>> >QAS Ltd.
>> >Developers of QuickAddress Software
>> >http://www.qas.com";>www.qas.com
>> >Registered in England: No 2582055
>> >Registered in Australia: No 082 851 474
>> >---
>> >
>> >
>> >
>>
>-
>> >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 recipien

  1   2   >