RE: realms and user initialization

2004-08-04 Thread Jérôme Duval
You could create a SessionListener and create your bean and bind it to the
session in the sessionCreated method. 

-Original Message-
From: Chad Cunningham [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 04, 2004 4:42 PM
To: [EMAIL PROTECTED]
Subject: realms and user initialization


Hi,

Is there a simple way to initialize a bean and store it in the session
context when a user is logged in via realms? I'd like to have a bean which
is filled with data from a database at login and then sticks in the session
so it is available everywhere. Is there a login hook or anything I can use,
or do I need to manually check on each page to see if the object has been
created yet?

Thanks


-
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: Weird stylesheet behavior

2004-08-02 Thread Jérôme Duval
Well I just unistalled 5.0.24 and installed the 5.0.27 binary version. The
stylesheet works correctly. I guess I'll try rebuilding the code or
rebuilding Tomcat.

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 31, 2004 1:23 PM
To: Tomcat Users List
Subject: RE: Weird stylesheet behavior


Stylesheets are rendered in the browser so I can't imagine how tomcat could
affect it. I'd try changing one thing at a time and see when they stop
working. ie Try 5.0.27 on your XP machine, or try 5.0.24 on linux, try to
narrow down where the problem is occurring.

Ta
Matt

-Original Message-
From: Jérôme Duval [mailto:[EMAIL PROTECTED]
Sent: 30 July 2004 22:01
To: 'Tomcat Users List'
Subject: Weird stylesheet behavior


I developped a webapp in Windows XP using Tomcat 5.0.24 (the binary
download). Everything is swell on my machine. When I copied it to a linux
box (using Fedora 2), on which we installed Tomcat 5.0.27 from source, my
application works, but the stylesheet stuff doesn't show at all. Inline
definitions also don't seem to matter. I am checking the application from IE
on another computer and the source contains all the necessary info (ie.
link,class, style, etc.) Any ideas?


-
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: SunONE versus Tomcat performance

2004-08-02 Thread Jérôme Duval
Why would you compare Apache and Tomcat vs. SunONE? Isn't there a lot of
overhead in using the connector and all that? Seems to me a more logical
test would be Tomcat vs SunONE and the most recent version of both, which
Tomcat 4.1.30 is not. I smell bogus test results!

-Original Message-
From: V D [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 31, 2004 11:24 PM
To: Tomcat Users List
Subject: Re: SunONE versus Tomcat performance


I used it for webservice before, and it is faster than Tomcat, but I
wouldn't say that was 2 to 5 times for that particular case.  You can get it
for free because it's bundled with the Application Server platform which is
free.

Julian wrote:


 Just downloaded it to give it a try. There's a trial version but 
 nevertheless it costs only $75.



 David Rees wrote:

 David Wall wrote:

 It is worth noting that Sun Java Web Server has better performance 
 than Apache Tomcat; you can learn more about this from Sun Java Web 
 Server vs.
 Apache/Tomcat Benchmarks.

 The link to the KeyLabs report is at 
 http://www.keylabs.com/results/sun/SunONEFinalReport_Solaris.pdf

 Why would SunONE be anywhere from 2 to 5 times faster than Tomcat?

 They also suggest that Tomcat would start to show errors when 
 loading 200 users at a time, whereas SunONE could handle up to 500 
 users without any errors.



 It's hard to say why the Apache/Tomcat combination would not perform 
 as well as SunONE (which I am not familar with), but without more 
 details of the Apache/Tomcat configuration it's too difficult to say.

 Has anyone independantly tested SunONE compared to Apache/Tomcat?

 -Dave


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



Binary distribution for Linux?

2004-08-02 Thread Jérôme Duval
Is there a binary distribution for Linux (ie a Windows Installer-type
interface)? Or do I have to build it myself?


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



RE: Weird stylesheet behavior

2004-08-02 Thread Jérôme Duval
Well everyone, I'm happy to report that by doing absolutely nothing to
resolve this problem, my application works perfectly! I love how logical
computer science is!

-Original Message-
From: Jérôme Duval [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 8:34 AM
To: 'Tomcat Users List'
Subject: RE: Weird stylesheet behavior

Well I just unistalled 5.0.24 and installed the 5.0.27 binary version. The
stylesheet works correctly. I guess I'll try rebuilding the code or
rebuilding Tomcat.

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 31, 2004 1:23 PM
To: Tomcat Users List
Subject: RE: Weird stylesheet behavior


Stylesheets are rendered in the browser so I can't imagine how tomcat could
affect it. I'd try changing one thing at a time and see when they stop
working. ie Try 5.0.27 on your XP machine, or try 5.0.24 on linux, try to
narrow down where the problem is occurring.

Ta
Matt

-Original Message-
From: Jérôme Duval [mailto:[EMAIL PROTECTED]
Sent: 30 July 2004 22:01
To: 'Tomcat Users List'
Subject: Weird stylesheet behavior


I developped a webapp in Windows XP using Tomcat 5.0.24 (the binary
download). Everything is swell on my machine. When I copied it to a linux
box (using Fedora 2), on which we installed Tomcat 5.0.27 from source, my
application works, but the stylesheet stuff doesn't show at all. Inline
definitions also don't seem to matter. I am checking the application from IE
on another computer and the source contains all the necessary info (ie.
link,class, style, etc.) Any ideas?


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



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



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



RE: SunONE versus Tomcat performance

2004-08-02 Thread Jérôme Duval
The report you linked to ran with Apache and Tomcat version 4.1.30. Don't
believe me?
3.2 Web Server Configuration

3.2.1 Apache /Tomcat
For this test KeyLabs used Apache 2 and Tomcat 4.1.24. The Apache web server
was configured with
the Coyote connector. During the test all request were directed to the
Apache web server, which then
routed only the JSP requests to Tomcat. When the Apache server was compiled
SSL enabled, and the
worker mpm was specified. Tomcat used the Sun Java version 1.4.1_03.

In any case, I am just saying that the test results appear bogus to me,
because I would use only Tomcat as a web server (for both dynamic and static
content). That being said, SunONE might be better then Tomcat, but I don't
know because I haven't seen a reliable comparison and haven't tested them
myself.

Cheers!

-Original Message-
From: Vy Ho [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 10:07 AM
To: Tomcat Users List
Subject: Re: SunONE versus Tomcat performance


I am sorry for not being clear enough.
The test did not run with both Apache and Tomcat, only Tomcat 5.0.  
Please understand that I do not try to create a flame war here.  This is
only a particular case, no scientific comparison, and no pointing out which
one is better overall.  Please download it yourself, and try with your
application if performance is something you want to find out.

Jérôme Duval wrote:

Why would you compare Apache and Tomcat vs. SunONE? Isn't there a lot 
of overhead in using the connector and all that? Seems to me a more 
logical test would be Tomcat vs SunONE and the most recent version of 
both, which Tomcat 4.1.30 is not. I smell bogus test results!

-Original Message-
From: V D [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 31, 2004 11:24 PM
To: Tomcat Users List
Subject: Re: SunONE versus Tomcat performance


I used it for webservice before, and it is faster than Tomcat, but I 
wouldn't say that was 2 to 5 times for that particular case.  You can 
get it for free because it's bundled with the Application Server 
platform which is free.

Julian wrote:

  

Just downloaded it to give it a try. There's a trial version but 
nevertheless it costs only $75.



David Rees wrote:



David Wall wrote:

  

It is worth noting that Sun Java Web Server has better performance 
than Apache Tomcat; you can learn more about this from Sun Java Web 
Server vs.
Apache/Tomcat Benchmarks.

The link to the KeyLabs report is at 
http://www.keylabs.com/results/sun/SunONEFinalReport_Solaris.pdf

Why would SunONE be anywhere from 2 to 5 times faster than Tomcat?

They also suggest that Tomcat would start to show errors when 
loading 200 users at a time, whereas SunONE could handle up to 500 
users without any errors.



It's hard to say why the Apache/Tomcat combination would not perform 
as well as SunONE (which I am not familar with), but without more 
details of the Apache/Tomcat configuration it's too difficult to say.

Has anyone independantly tested SunONE compared to Apache/Tomcat?

-Dave


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

  



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



Weird stylesheet behavior

2004-07-30 Thread Jérôme Duval
I developped a webapp in Windows XP using Tomcat 5.0.24 (the binary
download). Everything is swell on my machine. When I copied it to a linux
box (using Fedora 2), on which we installed Tomcat 5.0.27 from source, my
application works, but the stylesheet stuff doesn't show at all. Inline
definitions also don't seem to matter. I am checking the application from IE
on another computer and the source contains all the necessary info (ie.
link,class, style, etc.) Any ideas?


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



RE: redirect output in win 2000 from comandline

2004-07-26 Thread Jérôme Duval
To redirect to a file put filename.extension System.err will still be in
your prompt window though. The only way you can redirect System.err is
programatically (look at the Java API in the System class (java.lang I
believe...))

-Original Message-
From: Alberto Marino [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 26, 2004 4:51 PM
To: Tomcat Users List
Subject: redirect output in win 2000 from comandline

I start Tomcat since comandline but how can I redirect this output from a
file in a comandline in win 2000?

Ruth, Brice [EMAIL PROTECTED] wrote:How are you starting Tomcat? If
you're starting tomcat from the cmdline, then it will send STDOUT  STDERR
to the console. If you're starting it as a service, then it should create
stdout.log and stderr.log in the TOMCAT_HOME/logs directory. If you're
running Tomcat from Eclipse, or other IDEs, then STDOUT  STDERR typically
get redirected to the IDE's console.

Caveat - if the Host in server.xml and/or your Context definition contain a
logging element, then most logging will get redirected to that log file, I
believe.

Alberto Marino wrote:

Yes, I have files like localhost_log.2004-07-24.txt but this files don´t
show java output. For example, when you have in your code
System.out.println(.) I don´t know where must see for the output. In
linux I know that there are a file like catalina.out that show this output
but in Windows 2000 I dont´t know.

John Najarian wrote:I know mine is on XP but my friend runs on 2000.
You should have an stdout.log  localhost_log...
files in the Jakarta.../logs directory.

Try doing a search under Jakarta... for files modified today. Perhaps 
you inadvertently put it in some other directory a maybe under another 
name.

-Original Message-
From: Alberto Marino [mailto:[EMAIL PROTECTED]
Sent: Monday, July 26, 2004 12:52 PM
To: Tomcat Users List
Subject: Re: how I can to see the output in tomcat from windows 2000

Sorry, in mi /logs directory only there are
localhost_log.2004-XX-XX.txt
files but not anyone

Ruth, Brice 
wrote:There should be a logs directory in your TOMCAT_HOME directory 
... so, if you installed Tomcat to C:\Program Files\Apache Tomcat\ - 
then look for a logs directory there. You'll find the same 
catalina.out file and catalina.err file there.

Alberto Marino wrote:

 

Note: forwarded message attached.

--
--

Nuevo Yahoo! Búsquedas




--
--

Subject:
how I can to see the output in tomcat from windows 2000
From:
Alberto Marino
Date:
Mon, 26 Jul 2004 16:57:17 +0200 (CEST)
To:
[EMAIL PROTECTED]

To:
[EMAIL PROTECTED]


Hi, I would like to know how I can to see the output in tomcat for 
depure mi aplication. In linux I can see the catalina.out in /logs 
directory but in Windows 2000 I don´t know.

Please help me! Thanks.

--
--

Nuevo Yahoo! Búsquedas



--
--

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

 


 


--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/


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




-



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



RE: Help (Started over again) Making Tomcat work with Apache

2004-07-22 Thread Jérôme Duval
You changed the worng thing! The path is what is typed in the Adress bar and
the docBase is where the content is. So what you actually want is:

 !-- Tomcat Root Context --

  Context path= docBase=d:/webserver/apache/apache/htdocs 
debug=0/

-Original Message-
From: Phillip Blancher [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 22, 2004 12:27 PM
To: [EMAIL PROTECTED]
Subject: Re: Help (Started over again) Making Tomcat work with Apache

To test if your Apache+mod_jk+Tomcat config is working, see if you can 
get to:

http://localhost/manager/html/list

If this prompts you for a login, then its working ... as this is the 
login for Tomcat's manager application.

This did work.

So, you could enable the ROOT context in server.xml, restart Tomcat, 
restart Apache (to pick up the new mod_jk.conf), then put your test.jsp 
in webapps/ROOT - and *then* http://localhost/test.jsp *should* work.

I am assuming you are talking about this section of server.xml?


   !-- Tomcat Root Context --
   !--
 Context path= docBase=ROOT debug=0/
   --


Which I changed to:

!-- Tomcat Root Context --

  Context path=d:/webserver/apache/apache/htdocs docBase=ROOT 
debug=0/


And now nothing works again on JSP. I am receiving Error 500's in IE.

Phil

_
Powerful Parental Controls Let your child discover the best the Internet has
to offer. 
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=htt
p://hotmail.com/encaHL=Market_MSNIS_Taglines
  Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.


-
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: Help (Started over again) Making Tomcat work with Apache

2004-07-22 Thread Jérôme Duval
I am not sure about this, but your problem seems to be confirming this. I
think the JSPs will not be compiled unless they are part of a web
application, i.e. you are being asked to save it because it isn't a format
your browser recognizes (it’s not a webpage). In the folder of your
test.jsp, you have to create a WEB-INF folder and it has to contain a valid
web.xml file (which can probably be empty aside from the wep-app/web-app
tags).


-Original Message-
From: Phillip Blancher [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 22, 2004 1:05 PM
To: [EMAIL PROTECTED]
Subject: RE: Help (Started over again) Making Tomcat work with Apache

OK changed this. JSP is back to working, however localhost/test.jsp is still
coming up prompting me to save it.

Is there some kind of a file handler that needs to be placed in httpd.conf
for Apache for handling JSP's?

Phil



You changed the worng thing! The path is what is typed in the Adress 
bar and the docBase is where the content is. So what you actually want 
is:

  !-- Tomcat Root Context --

   Context path= docBase=d:/webserver/apache/apache/htdocs
debug=0/


_
Designer Mail isn't just fun to send, it's fun to receive. Use special
stationery, fonts and colors. 
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=htt
p://hotmail.com/encaHL=Market_MSNIS_Taglines
  Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.


-
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: Files, paths and permissions

2004-07-07 Thread Jérôme Duval
Thanks for the pointer! Not running it as a service made it worked. Guess
I'll have to stick to that from now on.

-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 06, 2004 5:21 PM
To: Tomcat Users List
Subject: Re: Files, paths and permissions

On Tue, Jul 06, 2004 at 02:11:00PM -0400, J?r?me Duval wrote:
: Yet these lines of code in my servlet:
:   File target = new File(Msi\\nouveau dossier\\,Commande.web);
:   if(!target.exists()) {
:   System.out.println(The file doesn't exist!);
:   }
:   FileWriter fileOutput = new FileWriter(target,true);
: 
: produce: The file doesn't exist!

Does the owner of the Tomcat process have write access to that folder?

If you're running Tomcat as a service, I understand it has different perms
than if you fire it up directly as the logged-in user.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



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



RE: Files, paths and permissions

2004-07-07 Thread Jérôme Duval
The thing is that it doesn't seem to want to run as a different user than
the one it is configured to run as (LocalSystem) and I have no idea what
user this represents (I am in WinXP if someone wants to shine some light). I
have these accounts set up:
Administrator
ASPNET
Default
Guest
HelpAssistant
root-- Not the unix/linux root user account! It's to allow
accounts called root to use the printer.
SUPPORT_388945a0
Tomcat -- The user I would like to use to start Tomcat.

-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 07, 2004 11:11 AM
To: Tomcat Users List
Subject: Re: Files, paths and permissions

On Wed, Jul 07, 2004 at 09:40:21AM -0400, J?r?me Duval wrote:
: Thanks for the pointer! Not running it as a service made it worked. Guess
: I'll have to stick to that from now on.

... or you could find out what user owns/runs services and grant that user
write-access to the folder.

That would be a long-term solution.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



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



Files, paths and permissions

2004-07-06 Thread Jérôme Duval
I am having a problem creating a file on a remote computer in one of my
servlets when using Tomcat 5.0.24. The folder for the file is on another
computer (called MSI). I know for a fact that the folders and the file
exist, because a test app returns: \\Msi\nouveau dossier\commande.web when I
go through a FileChooser.

Yet these lines of code in my servlet:
File target = new File(Msi\\nouveau dossier\\,Commande.web);
if(!target.exists()) {
System.out.println(The file doesn't exist!);
}
FileWriter fileOutput = new FileWriter(target,true);

produce: The file doesn't exist!

I also get a nice IOException: 2004-07-06 14:00:16
StandardWrapperValve[Telson]: Servlet.service() for servlet Telson threw
exception
java.io.FileNotFoundException: \\Msi\nouveau dossier\Commande.web (Access is
denied)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.init(Unknown Source)
at java.io.FileWriter.init(Unknown Source)
at Telson.doPost(Telson.java:39)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
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.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:144)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:702)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:644)
at java.lang.Thread.run(Unknown Source)

So any suggestions on work arounds or config options? I am truly stumped...


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



RE: Ruth R Wu-Wong/SANTACLARA/ADD/ABBOTT is out of the office.

2004-07-05 Thread Jérôme Duval
Yay! Another one ;) 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 05, 2004 12:27 PM
To: Tomcat Users List
Subject: Ruth R Wu-Wong/SANTACLARA/ADD/ABBOTT is out of the office.

I will be out of the office starting  06/28/2004 and will not return until
07/06/2004.

During my absence, please contact Masaki Nakane at x88508 or Doug Dixon at
x60449 if you have a question regarding the VDRA project.

Ruth


-
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: Log rotation HOWTO

2004-06-29 Thread Jérôme Duval
Search the mailing list! This question was asked recently... 

These messages might be useful...

-Original Message-
From: Frank Zammetti [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 10:04 AM
To: [EMAIL PROTECTED]
Subject: Log rotation HOWTO

I haven't been able to find a clear answer to this anywhere online,
hopefully you fine folks can help...

I need a way to rotate my stdout log in Tomcat 5.0.18.  It could be dalily
or weekly (monthly might be OK too).

Is thre any way to do this?  I assume so, so how?  Thanks in advance all!

_
Get fast, reliable Internet access with MSN 9 Dial-up – now 3 months FREE! 
http://join.msn.click-url.com/go/onm00200361ave/direct/01/


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

---BeginMessage---
Could you please use tomcats web admin to change logging settings...

By default you can access http://localhost:8080/admin

You can activate a separate log for several contents.


-Ursprüngliche Nachricht-
Von: Veera Sivakumar [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 22. Juni 2004 11:47
An: Tomcat Users List
Betreff: Managing Tomcat logs

Hi,
I am using Tomcat as web server for my application. I start Tomcat using
windows service. All the logs generated by the Application are written in to
a file called stdout.log which is under tomca/logs folder.
I have noticed that with continuous use of application,stdout file size
increasing to a large extent. To delete the it I have to stop the tomcat.
Is there any way that I can manage the logs date wise automatically(without
manual intervention). I am not using any third party tool for logging.
The logging mechanism I use is very simple.

We have class Debug.java that have a method log(String); This log() method
use System.out.println(); In the application, I use Debug.log(Exception);

I will be more happy if there is any way to manage logs.
I have also noticed the following logs generated by Tomcat:
1.localhost_log.2004-06-18.txt
2.localhost_access_log.2004_06_22.txt

How to maintain these logs?. Can we off them permanently?
Thanks in advance.

Regards
S.V.Sivakumar
QCA Project
Tata Infotech Limited
Tel:+44 1235 823411
[EMAIL PROTECTED] / [EMAIL PROTECTED]

Visit our website at http://www.rm.com

This message is confidential.  You should not copy it or disclose its
contents to anyone.  You may use and apply the information only for the
intended purpose.  Internet communications are not secure and therefore RM
does not accept legal responsibility for the contents of this message.  Any
views or opinions presented are only those of the author and not those of
RM.  If this email has come to you in error please delete it and any
attachments.  Please note that RM may intercept incoming and outgoing e-mail
communications.

This email has been scanned for viruses by Trend ScanMail.



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

---End Message---
---BeginMessage---
Instead of using System.out.println() to log your messages, use the
HttpServlet's log() method. You can specify the logging class you want to
use,
the path it writes to, the base name, and extension. Each day a new file is
created and you can simply delete the old ones as they are closed when a new
file is started each day. You could also create your own logger that manages
the
file size in some way. I have used the former and have specified the file
name
and path so that it easy form me to manage. My logs are separate from the
normal
logs as well.

Robert S. Harper
801.265.8800 ex. 255

 -Original Message-
 From: Veera Sivakumar [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 22, 2004 3:47 AM
 To: Tomcat Users List
 Subject: Managing Tomcat logs
 
 Hi,
 I am using Tomcat as web server for my application. I start Tomcat using
 windows service. All the logs generated by the Application are written in
to a
 file called stdout.log which is under tomca/logs folder.
 I have noticed that with continuous use of application,stdout file size
 increasing to a large extent. To delete the it I have to stop the tomcat.
 Is there any way that I can manage the logs date wise
automatically(without
 manual intervention). I am not using any third party tool for logging.
 The logging mechanism I use is very simple.
 
 We have class Debug.java that have a method log(String);
 This log() method use System.out.println();
 In the application, I use Debug.log(Exception);
 
 I will be more happy if there is any way to manage logs.
 I have also noticed the following logs generated by Tomcat:
 1.localhost_log.2004-06-18.txt
 2.localhost_access_log.2004_06_22.txt
 
 How to maintain these logs?. Can we off them permanently?
 Thanks in advance.
 
 Regards
 S.V.Sivakumar
 QCA 

RE: DOCTYPE wrong yet still works, why?

2004-06-29 Thread Jérôme Duval
Because, if I remember correctly from a previous message on the list, Tomcat
does not validate web.xml files. (Anyone care to confirm this?)

-Original Message-
From: Woodchuck [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 12:10 PM
To: tomcat
Subject: DOCTYPE wrong yet still works, why?

i just discovered that my DOCTYPE points to an old link:

http://java.sun.com/j2ee/dtds/web-app_2_3.dtd

if you go there you will see a message with the correct link:

http://java.sun.com/dtd/web-app_2_3.dtd

however, my app still works, and tomcat didn't complain, nor did it warn
me..

why does tomcat still understand my web.xml (or does it?) when the dtd
points to something that is not a dtd?



__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



[Dev] What is the best way to proceed...

2004-06-23 Thread Jérôme Duval
I am currently developing a web application using tomcat 5.0.24. The layout
of my application is like so:

frameset rows=180,*,57 framespacing=0 border=0 frameborder=0
frame ...
frameset cols=*,175 framespacing=0 border=0 frameborder=0
frameset rows=35,* framespacing=0 border=0 frameborder=0
frame noresize scrolling=no marginheight=0
marginwidth=0 src=bar.jsp name=bar
frame noresize scrolling=yes marginheight=0
marginwidth=0 src=view.jsp name=view
/frameset
frame noresize scrolling=no marginheight=0 marginwidth=0
src=naviBar.jsp name=navigation
/frameset
frame ...
/frameset

I currently store in each user's session a Viewing attribute which allows me
to tell which page they want to view and view.jsp reacts accordingly by
including the right html page. But now, I have a jsp for ordering online and
there is a lot of java code that gets turned to whitespace when served to
the client increasing the file size. I would thus like to convert this JSP
to a servlet.

Now I could specify the links to load into the view frame and use the
response's PrintWriter to output the content, but I would like to reload the
navigation frame at the same (because a button will go away and be replaced
with another one). I have seen examples, of two frames changing, but this
was always client side (using javascript for example) and I was wondering if
it was possible to do this server side.

In case you are wondering how I am doing it right now, people are constantly
reloading the index page (through the magic that is target=_top), and the
jsps content change. This works with the jsp that I currently have, but I
don't think it will work with the servlet because response.getWriter(); will
give me a writer that will write over index.html and thus, people will only
see what I write. I could recreate my layout on one big page instead, but it
hardly seems like I would be saving space!!!

Sorry for the long post. Your input is much appreciated!
Jerome


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



RE: Tomcat does not compiles my .jsp!

2004-06-23 Thread Jérôme Duval
You probably have an error in you jsp file. To test this right a normal html
file with a jsp extension. If you aren't familiar with html, just go to any
website and copy the source of the page and use that...

-Original Message-
From: Cyberjobe [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 23, 2004 3:59 PM
To: [EMAIL PROTECTED]
Subject: Tomcat does not compiles my .jsp!

Hi!

I have followed the tomcat's installation manual and I did make the Servlets
work. But not the .jsp files!

So... I modified the server.xml and put this:
Context path=/jsp1 docBase=/home/cyberjobe/jsp1
reloadable=true crossContext=true/

On the /home/cyberjobe/jsp1 I have the file index.jsp (just a test) . I also
have a dir WEB-INF.

I restart the Tomcat and... try to conect on localhost:8080/jsp1/index.jsp.
I got this messages:

.
org.apache.jasper.JasperException: Unable to compile class for JSP
(...)
java.io.FileNotFoundException:
/usr/local/.../localhost/jsp1/org/apache/jsp/index_jsp.java
(...)
.

What can I do to solve this?

Thanks,
Cyberjobe


-
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: Easy /servlet question

2004-06-23 Thread Jérôme Duval
You must specify your servlet in the web.xml file. This is how Tomcat knows
what to do when you ask it for Upload_CnW. This might be unnecessary to
mention, but you also have to compile your class before launching Tomcat.
Anything else would just be shots in the dark, since you haven't really told
us what you wanted to know and detailed your situation enough.

-Original Message-
From: e-Denton Subscriber [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 23, 2004 4:29 PM
To: [EMAIL PROTECTED]
Subject: Easy /servlet question

I have a very simple question, to which neither I nor my wife can find the
answer.

My servlet is in the WEB-INF/classes directory of my application directory.
For some reason, I can't get this simple construction--it's in all the JSP
books--to work:

http://127.0.0.1:8080/e-Denton/servlet/Upload_CnW


I get this error:

HTTP Status 404 - /e-Denton/servlet/Upload_CnW message
/e-Denton/servlet/Upload_CnW description The requested resource
(/e-Denton/servlet/Upload_CnW) is not available.

I can get it to wotk with a sevlet mapping, but not without it.



-
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 does not compiles my .jsp!

2004-06-23 Thread Jérôme Duval
 Corrected a stupid mistake:

You probably have an error in you jsp file. To test this write a normal html
file with a jsp extension. If you aren't familiar with html, just go to any
website and copy the source of the page and use that...


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



RE: Design question ..

2004-06-21 Thread Jérôme Duval
Most commercial databases implement a solution to this problem since it is
fairly common. For MySQL, you must use the InnoDB engine (at least for now).
You use the concept of transaction. To do this, you must turn the AutoCommit
mode to off (some client have this mode off by default, some do not. Check
your documentation. If you are going through JDBC Connections are always in
AutoCommit(true)!). You must also set the Transaction Mode to
Transaction_Serializable which locks table so that no one else then you can
read the data in your tables.

The code looks something like this:

try {
//Validate information
//Add the record in the table
//Bill the customer
//commit transaction
} catch (SQLException) {
//rollback the transaction cause something went wrong
} finally {
//close the connection
}

Where you bill the customer is dicussable (it is related to the transaction
but does not require DB access). It's all up to you really. A couple of
things to notice:

- TRANSACTION_SERIALIZABLE is the most demanding mode for your database
server.
- If you forget even one commit() or rollback() you might lose data to
locking.


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



RE: Parameters and where is log

2004-06-16 Thread Jérôme Duval
Don't know if this will be of any use to you, but if you are using Tomcat
5.0.24, you can define where System.out and System.err are redirected by
Configuring Tomcat under the Logging tab.


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



Re: Re: Setting the Session Id length

2004-06-16 Thread Jérôme Duval
To avoid having to type in -classpath . when you use your JVM add ;.;
after C:\j2sdk1.4.2_01\bin.

The classpath is the variable your JVM uses to figure out where it can find
the classes that it is supposed to use. By adding . you tell it to look in
the directory you are currently in. The semi-colons are used to separate
multiple entries in system variable values. It's a good idea to add it to
all of your entries.


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



RE: Vexing session ceration issue

2004-06-16 Thread Jérôme Duval
I think you are asking the wrong object for info. You want to know if the
session exists or not, so ask the session! I would use the isNew() method,
rather then getSession(false), simply because the session is the best placed
object to know if it exists or not.


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



Re: Second Try: Can anyone explain this?

2004-06-16 Thread Jérôme Duval
Then your out of luck. The java from a JSP page is always placed into a
package. Becuase of this, you can't have packageless classes.

Tim, perhaps I don't understand what you are saying correctly, but I have no
trouble using classes that are not in a package in my application. Once I am
done developing they will be in a package, but for now, I don't see the
point and my app works fine.


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



RE: Second Try: Can anyone explain this?

2004-06-16 Thread Jérôme Duval
Now I see what you mean. It's just that I never develop with classes that
reuse code that is located in other folders, so the classloader can always
find the classes I need. 

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 16, 2004 3:21 PM
To: Tomcat Users List
Subject: Re: Second Try: Can anyone explain this?

It a 1.4 JVM thing (not 1.3)


Consider class Cowbell in package more.

file: Cowbell.java
--
package more;
import Fever
public class Cowbell {
}

Then consider a class called Fever without a package.
file: Fever.java
--
public class Fever {
}

Now try to compile them. The compiler will barf because it can't find Fever
because its packageless.

$JAVA_HOME/bin/javac -d out/ Fever.java more/Cowbell.java

You should get:
more/Cowbell.java:3: '.' expected
import Fever;
 ^
1 error

-Tim

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