Where to find Tomcat RPMs?

2003-11-20 Thread Jens Ove Lillegraven
Hello
I cannot find any more rpm packets for Tomcat installation. I usually found them at 
http://jakarta.apache.org
I've got 4.1.24. Is there any newer rpms for Tomcat 4.x, maybe for Tomcat 5.x? 

rpm are more suitable for our use than tar.

Thanks
Jens Ove

Re: Would this work? (Load Balance Question)

2003-11-20 Thread Antonio Fiol Bonnín
We do that, with a firewall in front of the Apache, and one behind it, 
in front of the TC and DB.

BTW: It works ;-)

Antonio

Andreas Mohrig wrote:

Dave,

although I have never set up such a configuration, I have thought about it
quite a lot. This is exactly the thing I would try and I'm pretty much
convinced that it should work. It is even quite attractive from a security
point of view, because neither your tmocat servers nor your database-server
get any chance to expose some services/ports to the whole wide world
(provided you disable routing on your webserver). 

Of course you would need a switch on the internal network, but that could
even be a gigabit-switch to remove at least one bottleneck.
Greetings

Andreas Mohrig

-Original Message-
From: David O'Brien [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 5:34 PM
To: [EMAIL PROTECTED]
Subject: Would this work? (Load Balance Question)
I have one apache web server conversing with two separate tomcat servers 
with access a fourth MySql server.

Could I set it up like this?
pre
 The Internet
  |
  |
 (real IP addresses)
   -- External Network 
   |
  ---   ------   ---
  | |   | || |   | |
  |W|   |T||T|   |M|
  |W|   |C||C|   |Y|
  |W|   | || |   |S|
  | |   |1||2|   |Q|
  | |   | || |   |L|
  | |   | || |   | |
  ---   ------   ---
   | |  | |
   --- Internal Network ---
(192.168.0. addresses)
/pre
All the machines have 2 nics on board. I am worried that the other external 
network traffic
is slowing my response time, So I'd like to separate the backend processing 
from the
external network.

-Dave



David G. O'Brien
Web Services Coordinator / Systems Administrator
NACCRRA
The Nation's Network of Child Care Resource  Referral
1319 F Street NW, Suite 500
Washington, DC 20004
(202) 393-5501 ext. 113
(202) 393-1109 fax
 




smime.p7s
Description: S/MIME Cryptographic Signature


Re: Where to find Tomcat RPMs?

2003-11-20 Thread Antony Paul
Check this
http://marc.theaimsgroup.com/?l=tomcat-userm=106639528807348w=2

Antony Paul

- Original Message -
From: Jens Ove Lillegraven [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 1:03 PM
Subject: Where to find Tomcat RPMs?


Hello
I cannot find any more rpm packets for Tomcat installation. I usually found
them at http://jakarta.apache.org
I've got 4.1.24. Is there any newer rpms for Tomcat 4.x, maybe for Tomcat
5.x?

rpm are more suitable for our use than tar.

Thanks
Jens Ove

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



Re: Installation problem

2003-11-20 Thread [EMAIL PROTECTED]
Hi Timo,

Did as told. Copied your hello tomcat code created
'index.jsp', then saved it in 
'C:\Program Files\Apache Software Foundation\Tomcat
5.0\webapps\Sancha\WEB-INF'

but when i tried
'http://127.0.0.1:8080/Sancha/' , i got the 404 http status
error.

Please help me to solve this problem.

Thanks in anticipation.

bfn


 
 Sacha,
 I think you missed to put index.jsp or index.htm in
 your context folder which are the welcome-file section in
 your web.xml file you just copied. try to put a basic jsp
 file named index.jsp , as a start I would suggest:
 --
  %@ page contentType=text/html
 ;charset=windows-1252 % html
 body
 h1Welcome to Tomcat..rather than Hello world!/h1
 pToday is %=new java.util.Date() %/p
 /body
 /html
 --
 --- good luck!
 - Original Message - 
 From: [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, November 19, 2003 10:10 PM
 Subject: Re: Installation problem
 
 
  Hi Harry,
 
  Created a folder named Sancha in
  C:\Program Files\Apache Software Foundation\Tomcat
  5.0\webapps
 
  created a subfolder web-inf, copied pasted web.xml into
  it. But when i type
  http://127.0.0.1:8080/Sancha/;
  in the URL,
  I get the following result
 
  HTTP Status 404 - Servlet org.apache.jsp.index_jsp is
  not available
 
 
 --
  --
 
  type Status report
 
  message Servlet org.apache.jsp.index_jsp is not
 available 
  description The requested resource (Servlet
  org.apache.jsp.index_jsp is not available) is not
 available. 
 
 
 --
  --
 
  Apache Tomcat/5.0.14
 
  Not sure, whatto do next.
 
  Please help.
 
  Thanks in anticipation.
 
  bfn
  
   Hello
  
So since my friend is able to ping my machine s ip
address from his machine, I guess asking him to
access my documents thro the browser is an easier
  alternative. 
   Ask your friend to request the following URL:
  
   http://your_ip_address:8080/
  
   He might be lucky!
  
   To share documents, I suggest you create a new context
   (say we call it 'xxx') in the '$CATALINA_HOME/webapps'
   directory. Basically, create an empty folder named
   'xxx' (whatever) within '$CATALINA_HOME/webapps'.
  
   Within 'xxx' create another folder named 'WEB-INF'.
  
   Go to '$CATALINA_HOME/webapps/ROOT/WEB-INF' and *copy*
   the 'web.xml' file into the
   '$CATALINA_HOME/webapps/xxx/WEB-INF' directory you
   have just created.
  
   Place some documents in the 'xxx' folder, start Tomcat
   and have your friend point their browser to the 'xxx'
   application:
  
   http://your_ip_address:8080/xxx/
  
   Good luck.
  
   Harry Mantheakis
   London, UK
  
  
Hi Harry,
   
My friend is in a sibling network. To access my
machine, my friend isnt able to access my shared
documents i.e becoz he needs to type in the machine
name and password. My password doesnt seem to
work(dont know what is the problem?). Not really
interested in raising the issue to the network
   administrator. 
So since my friend is able to ping my machine s ip
address from his machine, I guess asking him to
access my documents thro the browser is an easier
   alternative. 
Hope you have the solution.
   
Thanks in anticipation
   
bfn
   
   
   
   
   
Hello
   
i tried accessing the welcome page. Then,
got the welcome page...
   
Congratulations!
   
At least we got over the flickering problem.
   
Could you please tell me as to how should
i allow my file to viewed by my friend in
another machine?
   
Err... Is your friend connected to your machine?
   
Regards
   
Harry Mantheakis
London, UK
  
  
  
  
 --
   --- 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]



Re: How to convert SSL Certificates and Private Keys to Tomcat (JKS) format?

2003-11-20 Thread Bill Barker
@see http://www.comu.de/docs/tomcat_ssl.htm.

The Tomcat 5 docs also include an example on how to do this using a jkcs12
file.

Raghu Karamel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi Experts,

 Need your help on figuring out how to do the following.

 I have the private key (Generated using OpenSSH) and the certificate
signed
 by Verisign. Both are in Base-64 encoded format. How can I get both the
 private key and certificate imported into Tomcat Keystore?

 In other words, what do I need to do to get the verisign certificate
working
 with my tomcat server? Do I need to just import the certificate or both
the
 certificate and the private key?

 Your help will be appreciated.

 Thanks,
 Raghu




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



Re: Is this a bug???

2003-11-20 Thread Rodrigo Ruiz
Do you have any other tomcat installed on the machine? I sometimes 
forget to set the correct value to my CATALINA_HOME / CATALINA_BASE 
environment variables ;-P

Regards,
Rodrigo Ruiz
Gabriel Jenik wrote:

Chris...

Thanks for answering...

Maybe that's the problem... I don't know...I am just stattring on this...

The strange thing is that I've just installed it... I haven't made any
modifications to anything... just installed the tomcat...
Could it be something with the configuration on my PC??? Do you think I
should report it as a Bug??
Thanks

Gabriel
- Original Message -
From: Christopher Schultz [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 7:53 PM
Subject: Re: Is this a bug???
 

Gabriel,
   

Hi...

I've read all the stuff about repoting bugs, but I still don't want
to report this, cause I don't know if this is a bug or not...It is
too hard to know... isn't it?
Here is the deal... I have clean installation. Every first time,
after startup, I try to get to the tomcat administration, I get
this error... Then I just reload the page and everithing works
great I've tried to stop the tomcat administration application
and then re-start it... and I still get the error on the first
attempt to surf to the application..
what's this???
 


   

org.apache.jasper.JasperException: Malformed \u encoding.
 

  at

   

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

It looks like you have a JSP that you've run through native2ascii (or
used your own escape codes), and one of them is bogus. Look in your JSPs
for the string \u and see if any of those references are broken.
-chris

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



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.542 / Virus Database: 336 - Release Date: 18/11/03


-
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 access my web application (resource is not available)

2003-11-20 Thread Martin Monsorno
(Hmm, the mailing list server seems to have swallowed the message text
part of my posting - here it is:)


Hi *,

after managing to install my web-app, I cannot access it with my
browser.  

The installation is as follows:
- I set CATALINA_BASE to a directory
- created a conf/server.xml with the following entries:
...
Context
  path=/myapp 
  docBase=myapp
  debug=0
  reloadable=true
  crossContext=true
...
  (complete file is attached)
- put my application (the whole WAR directory tree) under
  webapps/myapp
- (and, yes, I created a temp dir there after getting some errors
  about jar-file processing)

Starting tomcat works well, in the logfile says that various files of
my app are deployed:

,
| 2003-11-19 17:53:30 WebappLoader[/myapp]: Deploying class repositories to work 
directory /home/monsorno/proj/myapp/intrapas/build/run/work/Standalone/localhost/myapp
| 2003-11-19 17:53:30 WebappLoader[/myapp]: Deploy class files /WEB-INF/classes to 
/home/monsorno/proj/myapp/intrapas/build/run/webapps/myapp/WEB-INF/classes
| 2003-11-19 17:53:30 WebappLoader[/myapp]: Deploy JAR /WEB-INF/lib/common.jar to 
/home/monsorno/proj/myapp/intrapas/build/run/webapps/myapp/WEB-INF/lib/common.jar
| ...
| 2003-11-19 17:53:30 WebappLoader[/myapp]: Deploy JAR 
/WEB-INF/lib/xalan-j_2_5_0-xml-apis.jar to 
/home/monsorno/proj/myapp/intrapas/build/run/webapps/myapp/WEB-INF/lib/xalan-j_2_5_0-xml-apis.jar
| 2003-11-19 17:53:30 WebappLoader[/myapp]: Reloading checks are enabled for this 
Context
| 2003-11-19 17:53:30 ContextConfig[/myapp]: Missing default web.xml, using 
application web.xml only
| 2003-11-19 17:53:31 StandardManager[/myapp]: Seeding random number generator class 
java.security.SecureRandom
| 2003-11-19 17:53:31 StandardManager[/myapp]: Seeding of random number generator has 
been completed
`

But when I try to access http://localhost:8090/myapp/ with my browser,
I get:

,
| HTTP Status 404 - /ipas/
| 
| type Status report
| 
| message /ipas/
| 
| description The requested resource (/ipas/) is not available.
`

Any ideas why it does not work?  It's most likely not the
application's fault as it runs with no problems in resin on the same
directory tree.

-- 
Martin

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



Re: Installation problem

2003-11-20 Thread Timo
Sorry Sancha, forgot to mention it should be in the root directory, not
WEB-INF
in your case the file index.jsp should be in

C:\Program Files\Apache Software Foundation\Tomcat
5.0\webapps\Sancha\index.jsp

Let me know if it works, good luck!
don't forget to restart Tomcat!

- Original Message - 
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 12:29 AM
Subject: Re: Installation problem


 Hi Timo,

 Did as told. Copied your hello tomcat code created
 'index.jsp', then saved it in
 'C:\Program Files\Apache Software Foundation\Tomcat
 5.0\webapps\Sancha\WEB-INF'

 but when i tried
 'http://127.0.0.1:8080/Sancha/' , i got the 404 http status
 error.

 Please help me to solve this problem.

 Thanks in anticipation.

 bfn


 
  Sacha,
  I think you missed to put index.jsp or index.htm in
  your context folder which are the welcome-file section in
  your web.xml file you just copied. try to put a basic jsp
  file named index.jsp , as a start I would suggest:
  --
   %@ page contentType=text/html
  ;charset=windows-1252 % html
  body
  h1Welcome to Tomcat..rather than Hello world!/h1
  pToday is %=new java.util.Date() %/p
  /body
  /html
  --
  --- good luck!
  - Original Message - 
  From: [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Wednesday, November 19, 2003 10:10 PM
  Subject: Re: Installation problem
 
 
   Hi Harry,
  
   Created a folder named Sancha in
   C:\Program Files\Apache Software Foundation\Tomcat
   5.0\webapps
  
   created a subfolder web-inf, copied pasted web.xml into
   it. But when i type
   http://127.0.0.1:8080/Sancha/;
   in the URL,
   I get the following result
  
   HTTP Status 404 - Servlet org.apache.jsp.index_jsp is
   not available
  
  
  --
   --
  
   type Status report
  
   message Servlet org.apache.jsp.index_jsp is not
  available 
   description The requested resource (Servlet
   org.apache.jsp.index_jsp is not available) is not
  available. 
  
  
  --
   --
  
   Apache Tomcat/5.0.14
  
   Not sure, whatto do next.
  
   Please help.
  
   Thanks in anticipation.
  
   bfn
   
Hello
   
 So since my friend is able to ping my machine s ip
 address from his machine, I guess asking him to
 access my documents thro the browser is an easier
   alternative. 
Ask your friend to request the following URL:
   
http://your_ip_address:8080/
   
He might be lucky!
   
To share documents, I suggest you create a new context
(say we call it 'xxx') in the '$CATALINA_HOME/webapps'
directory. Basically, create an empty folder named
'xxx' (whatever) within '$CATALINA_HOME/webapps'.
   
Within 'xxx' create another folder named 'WEB-INF'.
   
Go to '$CATALINA_HOME/webapps/ROOT/WEB-INF' and *copy*
the 'web.xml' file into the
'$CATALINA_HOME/webapps/xxx/WEB-INF' directory you
have just created.
   
Place some documents in the 'xxx' folder, start Tomcat
and have your friend point their browser to the 'xxx'
application:
   
http://your_ip_address:8080/xxx/
   
Good luck.
   
Harry Mantheakis
London, UK
   
   
 Hi Harry,

 My friend is in a sibling network. To access my
 machine, my friend isnt able to access my shared
 documents i.e becoz he needs to type in the machine
 name and password. My password doesnt seem to
 work(dont know what is the problem?). Not really
 interested in raising the issue to the network
administrator. 
 So since my friend is able to ping my machine s ip
 address from his machine, I guess asking him to
 access my documents thro the browser is an easier
alternative. 
 Hope you have the solution.

 Thanks in anticipation

 bfn





 Hello

 i tried accessing the welcome page. Then,
 got the welcome page...

 Congratulations!

 At least we got over the flickering problem.

 Could you please tell me as to how should
 i allow my file to viewed by my friend in
 another machine?

 Err... Is your friend connected to your machine?

 Regards

 Harry Mantheakis
 London, UK
   
   
   
   
  --
--- 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] 

Re: RedHat 9 tomcat

2003-11-20 Thread satou hotmail
Hello,


 Hello All,
 Today I tired to port my application which was running fine on Redhat 8 
 to redhat 9. My Application
 spawns multiple threads. What I found interesting was thread were not 
 behaving as they were supposed to.
 I am not sure do I have to do anything special about RedHat 9? Please 
 let me know if some one have any clue.
 santos


RedHat9 is not considered that thread is process.
But RedHat8 and RedHat7.x is thread is process.

If you perform  ps -m ,Your problem will be solved.



This issue(Redhat7-8)
http://www.onlamp.com/pub/a/onlamp/2002/11/07/linux_threads.html


*
Diasuke Sato
http://www.opentone.co.jp

-- 
satou hotmail [EMAIL PROTECTED]



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



Designing Systems Help!

2003-11-20 Thread Vaneet Sharma
Hi all.
. Currently i am designing a document management system. According to the architecture 
proposed, it will be a three - tier architecture. (web based)I am looking forward to 
use J2EE ..  i will be using Tomcat to run it.
 What i need to know is ? Is there any open source project for Document and Knowledge 
Management Systems. (Basically versioning the files and searching, storing, and other 
features). I think i can use good ready made reusable objects in my design.? Where can 
i get an idea .. on how to desing a good document management system.  I want the 
business rules to lie in an XML file so that the inteface , database and coding need 
not be changed. Lets say, if my company wants to add some features on the interface , 
then they can specify in XML file and whole system can be reflected.
 I would 
appreciate very much any help on this subject.
 My research work has led me to Adaptive Reflective Systems. But still, as there are 
lot of industry experts, i would like to have a feedback.
   Kind Regards to all
Yours Vaneet
 

-Original Message- 
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wed 19/11/2003 14:25 
To: Tomcat Users List 
Cc: 
Subject: RE: Tomcat  OpenJMS Design Pattern?




Howdy,
I've used and use OpenJMS with tomcat all the time, including in several
production systems.

What are you looking for specifically?  A document?  Code that sends
messages to an OpenJMS queue/topic, received from an OpenJMS
queue/topic, all of the above?

I've actually gone from using tomcat's JNDI support to specifying the
JMS connection parameters in an app-specific configuration file and
creating the JMS objects myself.  But I had it working via tomcat's JNDI
before as well.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Gavin, Rick [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 6:25 PM
To: Tomcat Users List
Subject: Tomcat  OpenJMS Design Pattern?

Hi All,
  Just wondering if any could post a working design pattern for using
openJMS or another open
JMS engine with tomcat, preferably a model using asynchronous queue
message
handling.  I
figured someone around here has done it and I would rather use a tried
and
true model.

Looking for some basics about best intregration method, and or for
dealing
with async message
Handling.

I currently have openJMS setup using persistent Database storage, using
JNDI
content lookup to
Get the JMS connection factory, is this better looked up once and bound
to
servlet context as an
Application scope variable, etc, etc?

Thanks for you any help,

Rick



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]

mod_jk2 not working anymore

2003-11-20 Thread Laurent Michenaud
Hi,
 
I've upgraded to apache 2.0.48/mod_jk2/jakarta-tomcat-4.1.29
and the mappings in workers2.properties don't work correctly anymore.
I was working with apache-2.0.46/mod_jk2/jakarta-tomcat-4.1.24.
 
My uri mapping are :
 
[uri:/*.jsp]
worker=ajp13:localhost:8009
 
[uri:/servlet/*]
worker=ajp13:localhost:8009
 
Jsp are working but not servlet.
 
If I put a generic mapping [uri:/*], jsp and servlet
don't work.
 
If I put :
[uri:/*.jsp]
worker=ajp13:localhost:8009
 
[uri:/servlet/TheNameOfMyServlet]
worker=ajp13:localhost:8009
 
The servlet works but I don't want to have to put a mapping for each
servlet.
 
Any idea ?
 
 
 
 
 


RE : mod_jk2 not working anymore

2003-11-20 Thread Laurent Michenaud
I resolved my problem configuring the mapping
In the httpd.conf :

Location /*.jsp
JkUriSet worker ajp13:localhost:8009
/Location

Location /servlet/*
JkUriSet worker ajp13:localhost:8009
/Location

Location /jkstatus
JkUriSet worker status:status
/Location

So, I think that the mapping with pcre in the mod_jk2
is not working properly.

-Message d'origine-
De : Laurent Michenaud 
Envoyé : jeudi 20 novembre 2003 10:21
À : [EMAIL PROTECTED]
Objet : mod_jk2 not working anymore

Hi,
 
I've upgraded to apache 2.0.48/mod_jk2/jakarta-tomcat-4.1.29
and the mappings in workers2.properties don't work correctly anymore.
I was working with apache-2.0.46/mod_jk2/jakarta-tomcat-4.1.24.
 
My uri mapping are :
 
[uri:/*.jsp]
worker=ajp13:localhost:8009
 
[uri:/servlet/*]
worker=ajp13:localhost:8009
 
Jsp are working but not servlet.
 
If I put a generic mapping [uri:/*], jsp and servlet
don't work.
 
If I put :
[uri:/*.jsp]
worker=ajp13:localhost:8009
 
[uri:/servlet/TheNameOfMyServlet]
worker=ajp13:localhost:8009
 
The servlet works but I don't want to have to put a mapping for each
servlet.
 
Any idea ?
 
 
 
 
 

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



Re: Installation problem

2003-11-20 Thread [EMAIL PROTECTED]
Hi timo,

Did as told again. I am having the index.jsp(the code
belonging to u) in the path , 
C:\Program Files\Apache Software Foundation\Tomcat
5.0\webapps\Sancha

Typed http://127.0.0.1:8080/Sancha/;; in the URL,

Got this error message 

HTTP Status 500 - 



type Exception report

message 

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

exception 

javax.servlet.ServletException: Wrapper cannot find servlet
class org.apache.jsp.index_jsp or a class it depends on
   
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
   
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209)
   
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
   
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)

   
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
   
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
java.lang.Thread.run(Thread.java:534)


root cause 

java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
   
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
   
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1212)
   
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
   
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209)
   
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
   
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)

   
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
   
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
java.lang.Thread.run(Thread.java:534)


note The full stack trace of the root cause is available in
the Tomcat logs.

Awaiting your help in anticipation.

bfn


 
 Sorry Sancha, forgot to mention it should be in the root
 directory, not WEB-INF
 in your case the file index.jsp should be in
 
 C:\Program Files\Apache Software Foundation\Tomcat
 5.0\webapps\Sancha\index.jsp
 
 Let me know if it works, good luck!
 don't forget to restart Tomcat!
 
 - Original Message - 
 From: [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, November 20, 2003 12:29 AM
 Subject: Re: Installation problem
 
 
  Hi Timo,
 
  Did as told. Copied your hello tomcat code created
  'index.jsp', then saved it in
  'C:\Program Files\Apache Software Foundation\Tomcat
  5.0\webapps\Sancha\WEB-INF'
 
  but when i tried
  'http://127.0.0.1:8080/Sancha/' , i got the 404 http
  status error.
 
  Please help me to solve this problem.
 
  Thanks in anticipation.
 
  bfn
 
 
  
   Sacha,
   I think you missed to put index.jsp or index.htm
   in your context folder which are the welcome-file
   section in your web.xml file you just copied. try to
   put a basic jsp file named index.jsp , as a start I
   would suggest:
  
 --
    %@ page contentType=text/html 
   ;charset=windows-1252 % html body
   h1Welcome to Tomcat..rather than Hello world!/h1
   pToday is %=new java.util.Date() %/p
   /body
   /html
  
  
 --
   --- good luck! - Original Message - 
   From: [EMAIL PROTECTED]
   To: Tomcat Users List
   [EMAIL PROTECTED] Sent: Wednesday,
   November 19, 2003 10:10 PM Subject: Re: Installation
  problem 
  
Hi Harry,
   
Created a folder named Sancha in
C:\Program Files\Apache Software Foundation\Tomcat
5.0\webapps
   
created a subfolder web-inf, copied pasted web.xml
into it. But when i type
http://127.0.0.1:8080/Sancha/;;
in the URL,
I get the following result
   
HTTP Status 404 - Servlet org.apache.jsp.index_jsp
is not available
   
   
  
  
 --
    -- 
type Status report
   
message Servlet org.apache.jsp.index_jsp is not
   available 
description The requested resource (Servlet
org.apache.jsp.index_jsp is not available) is not
   available. 
   
   
  
  
 --
    -- 
Apache Tomcat/5.0.14
   
Not sure, whatto do next.
   
Please help.
   
Thanks in anticipation.
   
bfn

 Hello

  So since my friend is able to ping my machine s
  ip address from his machine, I guess asking him
  to access my documents thro the browser is an
easier alternative. 
 Ask your friend to request the following URL:

 http://your_ip_address:8080/

 He might be lucky!

 To share documents, I suggest you create a new
   

Dead threads

2003-11-20 Thread Walter do Valle
How to know what Tomcat threads are dead (or hanged, os blocked, or inoperative, or... 
) in an Tomcat running on Linux?
Any help is welcome.

Re: JDBC Realm

2003-11-20 Thread Jon Wingfield
mySQL is case-sensitive on column names.
In mysql describe the users and user_roles tables. Use the column names 
as returned.

eg:

mysqldescribe bobbins;
+---+--+--+-+-+---+
| Field | Type | Null | Key | Default | Extra |
+---+--+--+-+-+---+
| bobbins_id| bigint(20)   |  | PRI | 0   |   |
| description   | varchar(255) |  | | |   |
+---+--+--+-+-+---+
2 rows in set (0.09 sec)
The single quotes you are using have unanticipated side effects:
The sql generated by the JDBCRealm will be something like
select 'USERPASS' from users where 'USERNAME' = ?;
This will bring back zero rows unless the password is actually the 
string literal 'USERNAME'. In that case the value returned will be the 
string literal 'USERPASS' not the data within the password column.

I would guess your columns are defined in lowercase so the realm setup 
should be:

Realm className=org.apache.catalina.realm.JDBCRealm
   debug=99 driverName=org.gjt.mm.mysql.Driver
connectionURL=jdbc:mysql://localhost:3306/cofc?user=root;password=root
userTable=users
userNameCol=username
userCredCol=userpass
userRoleTable=user_roles
roleNameCol='ur_rolename'/
HTH,

Jon



Justin Wesbrooks wrote:
When I get rid of the single quotes, the Mysql JDBC driver throws an 
SQLException that says something like column USERNAME not found

I originally had it without the single quotes.  To solve the error I added 
them just to try it and it worked, so I left them.

Justin



Tim Funk [EMAIL PROTECTED] 
11/19/2003 05:37 PM
Please respond to
Tomcat Users List [EMAIL PROTECTED]

To

Tomcat Users List [EMAIL PROTECTED]
cc




Subject
Re: JDBC Realm




Get rid of the single quotes.
  userNameCol=USERNAME
-Tim

Justin Wesbrooks wrote:



I have a JDBCRealm set up in Tomcat 4.1.29.  The realm config is as
follows..
Realm className=org.apache.catalina.realm.JDBCRealm
  debug=99 driverName=org.gjt.mm.mysql.Driver
connectionURL=jdbc:mysql://localhost:3306/cofc?user=root;password=root
userTable=users
userNameCol='USERNAME'
userCredCol='USERPASS'
userRoleTable=user_roles
roleNameCol='UR_ROLENAME'/


-
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 memory model and web applications

2003-11-20 Thread Mark . Shotton
Hello

I have recently been reading the Java Language Specification (JLS) 
concerning threads, locks and the Java memory model
http://java.sun.com/docs/books/jls/second_edition/html/memory.doc.html#30206
and the book excerpt Synchronization and the Java Memory Model from 
Concurrent Programming in Java (Doug Lea):
http://gee.cs.oswego.edu/dl/cpj/jmm.html

I am now very puzzled as to how the threading issues described in these 
articles relate to a web application.

The articles state that:
JLS: Each thread has a working memory, in which it may keep copies of the 
values of variables from the main memory that is shared between all 
threads.  Changes to variables made by one thread in its working memory 
are only guaranteed to be copied back into main memory when the thread 
performs an unlock action on any lock, or the thread terminates.  A thread is only 
guaranteed to load a 
variable from the main memory into its working memory when it performs a 
lock action or the first time it accesses the variable.
Doug Lea: Changes to fields made by one thread are guaranteed to be 
visible to other threads only under the following conditions: A writing 
thread releases a synchronization lock and a reading thread subsequently 
acquires that same synchronization lock.

Could anyone please answer the following questions relating to a web 
application:

(1) If I use the Sevlet init() method to initialize some variables in a 
web application and then access these variables from a service() method, 
must I synchronize the setting of the variables from init() and the 
getting of these variables from service() in order to guarantee that the 
thread running the service() method can see the changes made to the 
variables by the init() method on a different thread?  Alternatively is 
this looked after in some way by Tomcat to ensure that the servlet 
initialization is visible to requests to the servlet.

(2) I have the same question regarding the use of the ServletContext 
object: must I synchronize access to all attributes that I set/get in the 
ServletContext to guarantee that changes made by one thread are visible to 
another?

Thanks for your help.

Mark

mod_jk, missing post parameters

2003-11-20 Thread Marco Manini
Hi,
I have this configuration:

- a linux machine with Apache 2.0.47 and mod_jk 1.2.5 configured for load
balancing and sticky session.
- two linux machine with tomcat 4.1.x.

Load Balancing and sticky session work fine, but when there is a node
failure and mod_jk switch the courrent request to
the remaining tomcat instance the HTTP POST parameters get lost!

I sniffed the AJP traffic and I observed those packets directed to the
remaining node:

1) AJP REQUEST POST with a content legth field setted to 54 (correct size)
2) AJP REQUEST BODY with length 0 !!!

This happens only when switching from a failing node to another.
During normal operation all works fine and the AJP packets are correct.

How is this possibile ?

Thanks in advance to all mod_jk gurus.

Marco


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



Re: mod_jk, missing post parameters

2003-11-20 Thread Luca
Hi 

I have exactly the same problem but not solution.

I tried with mod_jk2 too. I have the same problem.

Now I’m trying with apache for Windows. I want see if
is OS problem.

Is a bug of mod_jk/mod_jk2?

Luca


--- Marco Manini [EMAIL PROTECTED] wrote:
 Hi,
 I have this configuration:
 
 - a linux machine with Apache 2.0.47 and mod_jk
 1.2.5 configured for load
 balancing and sticky session.
 - two linux machine with tomcat 4.1.x.
 
 Load Balancing and sticky session work fine, but
 when there is a node
 failure and mod_jk switch the courrent request to
 the remaining tomcat instance the HTTP POST
 parameters get lost!
 
 I sniffed the AJP traffic and I observed those
 packets directed to the
 remaining node:
 
 1) AJP REQUEST POST with a content legth field
 setted to 54 (correct size)
 2) AJP REQUEST BODY with length 0 !!!
 
 This happens only when switching from a failing node
 to another.
 During normal operation all works fine and the AJP
 packets are correct.
 
 How is this possibile ?
 
 Thanks in advance to all mod_jk gurus.
 
 Marco
 
 

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


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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



TomCat 5.0.14 JSP 2.0 not working

2003-11-20 Thread tbrida
Please help,

I am using TomCat 5.0.14 under windows and I am trying to run a jsp 
page
that I found at

http://www.javaworld.com/javaworld/jw-05-2003/jw-0523-calltag-p2.html

and it looks like the JSP 2.0 expressions are not working? 
(JSP 1.0 stuff works)

Here's the page :

%@ taglib prefix=tf 
uri=http://devsphere.com/articles/calltag/TestFunction.tld%

jsp:useBean id=obj 
classcom.wilmingtontrust.util.calltag.TestBean/

HTML
BODY

${tf:testMethod(obj, abc, 123, true)}

HR

${tf:testMethod(obj, obj.text, obj.number, obj.logic)}

/BODY
/HTML

Here's what I get :

${tf:testMethod(obj, abc, 123, true)}
  _ 

${tf:testMethod(obj, obj.text, obj.number, obj.logic)}

Any suggestions ?

thanks in advance, tony

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



Re: jsp cache issue

2003-11-20 Thread Tim Funk
Actually[without more digging] - I thought tomcat should be writing to 
$CATALINA_HOME/work

-Tim

Justin Ruthenbeck wrote:
If it wrote to the same place you started it from (ie where the 
scripts/exe live), that could be a potential problem.  It's actually 
writing to it's own exclusive work directory, though, that's used only 
for temporary files -- this is reasonable.  Where would you rather have 
it write to?

justin

At 03:39 PM 11/19/2003, you wrote:

For the most part, Yup

-Tim

Euan Guttridge wrote:

Hi,
I have noticed that TC creates a temp file (example name = 
files02123412)
when compiling jsps. It will only exist for a few seconds, presumably 
while
the compilation takes place, then is deleted. Here is the annoying 
part -
they are created in the directory from which you started tomcat - so 
if you
start TC from a dir which TC does not have write permissions to the 
jsp will
never compile. This temp file will simply contain ascii text for 
example :
/usr/local/tomcat/work/Standalone/localhost/_/jsp/diagnostics/diagpage_jsp. 

java

Is this behaviour by design?


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


Re: append text into a file

2003-11-20 Thread Harry Mantheakis
Hello

 Could please give me some advice about how to append some data into an existed
 log file? Thanks.

The GenericServlet.log method (which HttpServlets inherit) appends to the
log file - within a servlet, just call 'log'.

In a JSP you can do the same thing using the ServletContext.log method. The
ServletContext is referenced through the 'application' object that is given
to you by the container - hence, just call 'application.log' within a JSP
scriptlet.

Regards

Harry Mantheakis
London, UK


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



server error

2003-11-20 Thread Subramaniyam Hemalatha


hello ,

i get this following error when i run my jsp page.
will u be able to guide me.

thks

hema

Error 500--Internal Server Error 

java.lang.NoClassDefFoundError: org/apache/log4j/Category
at com.ncs.app.framework.service.LogService.(LogService.java:30)
at
com.ncs.app.servlet.AgServletCtrl.serviceGetOrPost(AgServletCtrl.java:73)
at com.ncs.app.servlet.AgServletCtrl.doGet(AgServletCtrl.java:58)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6291)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3575)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2573)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
 

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



Can Tomcat run on JRE only?

2003-11-20 Thread Thierry Thelliez
My understanding is that the full JDK is needed for compiling JSPs. What if
the JSPs are already compiled? Can on deploy a JSP site without the full
JDK, only the JRE? Can I deploy the site without the JSP files themselves?
With a copy of the work directory?

 

 

Thanks,

Thierry



Tomcat Mager Application

2003-11-20 Thread Avoodaiyappan, Subbulakshmi
Hi,

I have configured tomcat server on WINDOWS XP machine using the
jakarta-tomcat-4.1.12 source. I am able to start the server and view the
tomcat's homepage with the url http://localhost:8080

The problem is with the manager application. When i browse for the Manager
application with the url http://localhost:8080/manager, i get the pop up
window for authentication. If i enter the username as admin and password
as admin it is not accepting. 

Can you figure out where am goinf wrong?

The excerpts of /conf/tomcat-users.xml

?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=admin/
  role rolename=manager/
  role rolename=tomcat/
  role rolename=role1/
  user username=admin password=admin rolename=manager/
  user username=admin password=admin rolename=admin/
  user username=tomcat password=tomcat roles=tomcat/
  user username=both password=tomcat roles=tomcat/
  user username=role1 password=tomcat roles=role1/
/tomcat-users



Confidential:  This electronic message and all contents contain information
from Syntel, Inc. which may be privileged, confidential or otherwise
protected from disclosure. The information is intended to be for the
addressee only. If you are not the addressee, any disclosure, copy,
distribution or use of the contents of this message is prohibited.  If you
have received this electronic message in error, please notify the sender
immediately and destroy the original message and all copies.

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



Re: Installation problem

2003-11-20 Thread Harry Mantheakis
Hello

 Got this error message

Sancha, please copy and paste into an email the complete contents of the
'web.xml' file located in the '$CATALIA_HOME\webapps\Sancha\WEB-INF'
directory.

I had not intended that you provide a 'welcome' page - the intention was for
you to place documents in the 'Sancha' directory so that your friend could
access them over the wire. By going to your 'site' your friend would simply
see a directory listing of documents. This could be text documents, or image
documents - anything that a browser can display.

I hasten to add that this is *not* how Tomcat is intended to be used (!) but
if it solves your 'network problem' so be it :-)

Regards

Harry Mantheakis
London, UK



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



ClassCastException whilst extending Log4J Logger

2003-11-20 Thread Scerri, Antony (ELSLON)
Hi

My scenario is that I am running a webapp consisting of JSP pages and Java
classes. I have run this under WebSphere 5.x and Tomcat 4.1.x. I have
overridden the Logger class in the same manner as in the Log4J example
subclass/MyLogger.java. This allows per-thread logging levels to be altered
at runtime. Log4J has been installed at the application server level, so
that any web apps can use Log4J, as well as there being a default
configuration for any default Logger created by any app. I have then
configured my code to use my factory.

The problem occurs if I restart the web application through the appropriate
admin console on either app server. Upon starting up my classes have static
fields for their logger, using my loggers overridden getInstance method
which returns a Logger object which I then cast to my class (ThreadLogger).

This works the first time it is called when the app server starts up and my
webapp is started for the first time. But when the webapp is restarted, on
calling getInstance the logger classes in particular where it retrieves the
stored Logger from its static hash table in the repository, return my
previous ThreadLogger object. But when I try to cast this to my
ThreadLogger, it gives me a ClassCastException. I believe this is due to the
fact that when a web app is restarted a new WebAppClassLoader (of what ever
type dependant upon the app server) is created. So the Logger object
returned after my webapp is restart was created by the first instance of the
WebAppClassLoader, but it is being checked by a second instance of the
WebAppClassLoader, which no longer thinks they are the same ThreadLogger
class.

To work around this problem under WebSphere I installed the Log4J
installation under my WebApp, and changed the modules class loader order to
PARENT_LAST so that it would use the Log4J instance in my webapp not the app
server. This way everything (including the logger repository) is unloaded on
restarting a webapp. I tried the same approach under Tomcat, but this does
not appear to work, and it is continuing to use the Log4J installed and
configured at the app server level, so I am unable to restart my webapp
without restarting the appserver. 

What I am after is either a solution to how I can have Log4J installed at
the app server level, but allow me to continue using, extended Loggers on a
per-webapp basis. Or a recommendation on how Log4J should be installed which
differs from how I have things setup. If it turns out to be a problem with
Tomcat in someway, then I will post to their mailing list.

Thanks for your help

Tony


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



Re: Installation problem (For Harry and the rest....)

2003-11-20 Thread Harry Mantheakis
Hello

 I faced this kind of problem before, a window disappear as soon as it
 appears. I notice (after i checked the log files in the tomcat directory)
 that's because of the IP binding... my background environment is still
 running the services thus when i start again... give me the same
 syndrom. 

The only thing that comes to mind is that another service is using port
8080. IIRC Oracle 9i runs a service on that port.

Do netstat and see what's running.

Is anything written to the log file?

Regards

Harry Mantheakis
London, UK



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



Session Repication

2003-11-20 Thread Drinkwater, GJ (Glen)
Hi 

I am trying to replicate my sessions via clustering with tomcat5 behind a
apache. The problem is that i get this exception when i try to add a string
to a session.

code:
String name= request.getParameter(name);
session.setAttribute(name, name);

exception:

java.lang.IllegalArgumentException: Value for attribute instance is not
serializable.

org.apache.catalina.cluster.session.ReplicatedSession.setAttribute(Replicate
dSession.java:153)

org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessi
onFacade.java:176)
org.apache.jsp.addition_jsp._jspService(addition_jsp.java:86)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
11)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

But i works if the code is
session.setAttribute(name, Myname);

Any ideas?

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



Re: Can Tomcat run on JRE only?

2003-11-20 Thread Florian Ebeling
Hi Thierry,

you can compile JSPs into Java source code using the jspc. But this is 
rather meant for debugging and interpreting stack trace line numbers and 
the like. You could generate source and compile. But you still would 
have to invoke them. I don't know how one could convince the JSP-Servlet 
to forward requests to your precompiled JSP classes.

But anyway, were is the point in removing the compiler? Precompiling can 
be achieved using the

someJsp.jsp?jsp_precompile=true

facility, which is easily scriptable.

-Florian

Thierry Thelliez wrote:
My understanding is that the full JDK is needed for compiling JSPs. What if
the JSPs are already compiled? Can on deploy a JSP site without the full
JDK, only the JRE? Can I deploy the site without the JSP files themselves?
With a copy of the work directory?


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


Sunone Studio and Tomcat issue

2003-11-20 Thread James Ostad
Hi,
I am new in Tomcat realm.

I am working on SunOne Studio 4U1.

I have a web application that works fine in SunOne, but once I move it
to Tomcat area by creating a war file , it won't function right.

In the sunone, I am using an external Tomcat installation, the same one
that I move the application to.

Tomcat is 4.1 version.
My system is win2k advance server.

Here is what the app does:
1- through the browser, it gets the user entries
2- then a servlet passes the info to a bean, which will connect to a
database
by using connection pool system.
3 -it gets the data and upon that start another bean to get a file
information from
remote server.
4 -then it will copy it into the app directory; it will create directory
structure of the source file, and then copy the file into it.
5 - then the control goes back to the servlet to send the JSP page to
client for a page to download the file.

all is fine while in the sunone.
but as soon as I move to tomcat, it won't do the step 4, only. even the
step 5 does show exact information to user for downloading the file, the
hyperlink and other file info is there, but by clicking on it nothing
happen.

I checked the directory where the file should go. nothing is being
copied. and that is why the download is not working.
Now, if I put the file and directory there my self, and then fireup the
application, download would be OK. 

It seems that somehow the file and its directory structure are not being
copied as they do in the Sunone to the specified location on the webapps
directory.

I don't know it is related or not, but just as info:
when I run it from sunone, the browser shows this url:
..//localhost:8080/..

when I run it from tomcat, the browser shows this url:
..//127.0.0.1:8080/..

the code is exactly the same, and I am using the same tomcat
installation.

Question:
Does sunone studio has a special setup that the application runs just
fine, in compare to tomcat itself?

within the tomcat, I have checked server.xml and web.xml, and also the
application web.xml and I have not found any changes during transferring
the application from sunone to tomcat webapps directory.

upon request, I could send any files you ask. here is the structure of
my app:
it is based on MVC architecture.

\root\gateway.jsp // first page to request a form
\root\crcform.jsp  // view, entry form
\root\index.jsp
\root\show_client.jsp // view, download page
\root\error\server_busy.html, server_shutdown.html
\root\images\bullet.jpg, gennet.jpg
\root\incl\banner.jsp, copyright.jsp, side-bar.jsp
\root\login\error.jsp, login.jsp
\root\temp\  // for copying files during runtime
\root\web-inf\classes\domain\crcservice.java, client.java,
clientDAO.java // model
\root\web-inf\classes\util\Namingservice // model
\root\web-inf\classes\util\fileUtil\filescopy.java  // model, copy file
process
\root\web-inf\classes\util\fileUtil\runfile.java // pass db file info to
filescopy.java
\root\web-inf\classes\util\sql\connectionpool.java //model
\root\web-inf\classes\web\ceocrcservlet.java,
initializeconnectionpool.java // controller
\root\web-inf\web.xml


any suggestion would be great.

Thanks,


James Ostad
Application Developer/Analyst
TMS Department
Ex. 4457
E-mail: [EMAIL PROTECTED]


Out--- (3)



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



RE: Dead threads

2003-11-20 Thread Shapira, Yoav

Howdy,
If a thread is dead it will have been GCed.  Use a thread dump (kill -s
QUIT processId) to get the current list of threads and what they're
doing on stdout.  There are also programmatic ways to go about this:
I've posted at least three times in the past the complete code for a
thread-crawler type of class that will display all the threads in the
JVM, what they're doing, their state, etc: you can search the list
archives for it.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Walter do Valle [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 6:52 AM
To: Tomcat Users List
Subject: Dead threads

How to know what Tomcat threads are dead (or hanged, os blocked, or
inoperative, or... ) in an Tomcat running on Linux?
Any help is welcome.



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: Is this a bug???

2003-11-20 Thread Shapira, Yoav

Howdy,
Actually this is interesting.  You're not supposed to see this in the
webapps that ship with tomcat by default.  I would tend to blame
Windows98 as we've seen other encoding-related issues with it recently
(and this is an encoding-related issue).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 3:33 AM
To: Tomcat Users List
Subject: Re: Is this a bug???

Do you have any other tomcat installed on the machine? I sometimes
forget to set the correct value to my CATALINA_HOME / CATALINA_BASE
environment variables ;-P

Regards,
Rodrigo Ruiz

Gabriel Jenik wrote:

Chris...

Thanks for answering...

Maybe that's the problem... I don't know...I am just stattring on
this...

The strange thing is that I've just installed it... I haven't made any
modifications to anything... just installed the tomcat...

Could it be something with the configuration on my PC??? Do you think
I
should report it as a Bug??

Thanks

Gabriel
- Original Message -
From: Christopher Schultz [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 7:53 PM
Subject: Re: Is this a bug???




Gabriel,


Hi...

I've read all the stuff about repoting bugs, but I still don't want
to report this, cause I don't know if this is a bug or not...It is
too hard to know... isn't it?

Here is the deal... I have clean installation. Every first time,
after startup, I try to get to the tomcat administration, I get
this error... Then I just reload the page and everithing works
great I've tried to stop the tomcat administration application
and then re-start it... and I still get the error on the first
attempt to surf to the application..

what's this???


 


org.apache.jasper.JasperException: Malformed \u encoding.


   at
 



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


It looks like you have a JSP that you've run through native2ascii (or
used your own escape codes), and one of them is bogus. Look in your
JSPs
for the string \u and see if any of those references are broken.

-chris


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




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.542 / Virus Database: 336 - Release Date: 18/11/03




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

2003-11-20 Thread James Ostad
check you packaging information in the file that your are using
category, in logservice.java.



-Original Message-
From: Subramaniyam Hemalatha [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 10:44 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: server error




hello ,

i get this following error when i run my jsp page.
will u be able to guide me.

thks

hema

Error 500--Internal Server Error 

java.lang.NoClassDefFoundError: org/apache/log4j/Category
at com.ncs.app.framework.service.LogService.(LogService.java:30)
at
com.ncs.app.servlet.AgServletCtrl.serviceGetOrPost(AgServletCtrl.java:73
)
at
com.ncs.app.servlet.AgServletCtrl.doGet(AgServletCtrl.java:58)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
rvle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java
:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un(W
ebAppServletContext.java:6291)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
etCo
ntext.java:3575)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
java
:2573)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
 

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



---In (14)




Out--- (3)



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



RE: Java memory model and web applications

2003-11-20 Thread Shapira, Yoav

Howdy,

I have recently been reading the Java Language Specification (JLS)
concerning threads, locks and the Java memory model

http://java.sun.com/docs/books/jls/second_edition/html/memory.doc.html#
3020
6
and the book excerpt Synchronization and the Java Memory Model from
Concurrent Programming in Java (Doug Lea):
http://gee.cs.oswego.edu/dl/cpj/jmm.html

Oh you went right to the source.  This is both good and bad: good
because you're reading the complete, definitive resource.  Bad because
it can be confusing when it comes to real life, as containers take care
of many of these details for you.

(1) If I use the Sevlet init() method to initialize some variables in a
web application and then access these variables from a service()
method,
must I synchronize the setting of the variables from init() and the
getting of these variables from service() in order to guarantee that
the
thread running the service() method can see the changes made to the
variables by the init() method on a different thread?

No, you need not synchronize this, because

Alternatively is
this looked after in some way by Tomcat to ensure that the servlet
initialization is visible to requests to the servlet.

The container takes care of it for you (not just tomcat) by how it
implements the servlet lifecycle.

(2) I have the same question regarding the use of the ServletContext
object: must I synchronize access to all attributes that I set/get in
the
ServletContext to guarantee that changes made by one thread are visible
to
another?

This is only slightly more interesting: you don't need to synchronize
ServletContext access normally.  If you have a situation where multiple
threads (e.g. multiple concurrent requests to the same servlet) would
write into the ServletContext (reading is fine), then you might need to
synchronize because you could have a race condition on the write.

Yoav Shapira



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: Designing Systems Help!

2003-11-20 Thread Shapira, Yoav

Howdy,
Dude, google.
http://www.business-seek-easy.com/document-management/open-source-docume
nt-management.htm

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Vaneet Sharma [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 4:19 AM
To: Tomcat Users List
Subject: Designing Systems Help!

Hi all.
. Currently i am designing a document management system. According to
the
architecture proposed, it will be a three - tier architecture. (web
based)I
am looking forward to use J2EE ..  i will be using Tomcat to run it.
 What i need to know is ? Is there any open source project for
Document
and Knowledge Management Systems. (Basically versioning the files and
searching, storing, and other features). I think i can use good ready
made
reusable objects in my design.? Where can i get an idea .. on how to
desing
a good document management system.  I want the business rules to lie in
an
XML file so that the inteface , database and coding need not be
changed.
Lets say, if my company wants to add some features on the interface ,
then
they can specify in XML file and whole system can be reflected.

I would appreciate very much any help on this subject.
 My research work has led me to Adaptive Reflective Systems. But still,
as
there are lot of industry experts, i would like to have a feedback.
   Kind Regards to all
Yours Vaneet


   -Original Message-
   From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
   Sent: Wed 19/11/2003 14:25
   To: Tomcat Users List
   Cc:
   Subject: RE: Tomcat  OpenJMS Design Pattern?




   Howdy,
   I've used and use OpenJMS with tomcat all the time, including in
several
   production systems.

   What are you looking for specifically?  A document?  Code that
sends
   messages to an OpenJMS queue/topic, received from an OpenJMS
   queue/topic, all of the above?

   I've actually gone from using tomcat's JNDI support to
specifying the
   JMS connection parameters in an app-specific configuration file
and
   creating the JMS objects myself.  But I had it working via
tomcat's
JNDI
   before as well.

   Yoav Shapira
   Millennium ChemInformatics


   -Original Message-
   From: Gavin, Rick [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, November 18, 2003 6:25 PM
   To: Tomcat Users List
   Subject: Tomcat  OpenJMS Design Pattern?
   
   Hi All,
 Just wondering if any could post a working design pattern for
using
   openJMS or another open
   JMS engine with tomcat, preferably a model using asynchronous
queue
   message
   handling.  I
   figured someone around here has done it and I would rather use
a
tried
   and
   true model.
   
   Looking for some basics about best intregration method, and or
for
   dealing
   with async message
   Handling.
   
   I currently have openJMS setup using persistent Database
storage,
using
   JNDI
   content lookup to
   Get the JMS connection factory, is this better looked up once
and
bound
   to
   servlet context as an
   Application scope variable, etc, etc?
   
   Thanks for you any help,
   
   Rick



   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]






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

2003-11-20 Thread Shapira, Yoav

Howdy,
I would think creating a new user in tomcat-users.xml is simple enough.
It's not rolename=xxx for a user, it's roles=x,y,z.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Avoodaiyappan, Subbulakshmi
[mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 3:59 AM
To: '[EMAIL PROTECTED] '
Cc: Avoodaiyappan, Subbulakshmi
Subject: Tomcat Mager Application

Hi,

I have configured tomcat server on WINDOWS XP machine using the
jakarta-tomcat-4.1.12 source. I am able to start the server and view
the
tomcat's homepage with the url http://localhost:8080

The problem is with the manager application. When i browse for the
Manager
application with the url http://localhost:8080/manager, i get the pop
up
window for authentication. If i enter the username as admin and
password
as admin it is not accepting.

Can you figure out where am goinf wrong?

The excerpts of /conf/tomcat-users.xml

?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=admin/
  role rolename=manager/
  role rolename=tomcat/
  role rolename=role1/
  user username=admin password=admin rolename=manager/
  user username=admin password=admin rolename=admin/
  user username=tomcat password=tomcat roles=tomcat/
  user username=both password=tomcat roles=tomcat/
  user username=role1 password=tomcat roles=role1/
/tomcat-users



Confidential:  This electronic message and all contents contain
information
from Syntel, Inc. which may be privileged, confidential or otherwise
protected from disclosure. The information is intended to be for the
addressee only. If you are not the addressee, any disclosure, copy,
distribution or use of the contents of this message is prohibited.  If
you
have received this electronic message in error, please notify the
sender
immediately and destroy the original message and all copies.

-
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: Is this a bug???

2003-11-20 Thread Gabriel Jenik
Thanks all of you for your help...

I'll keep the bug for my own...maybe it is just me or my PC...although I
think It is some session variable not initialized properly.

Thanks

Gabriel


- Original Message -
From: Rodrigo Ruiz [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 5:33 AM
Subject: Re: Is this a bug???


 Do you have any other tomcat installed on the machine? I sometimes
 forget to set the correct value to my CATALINA_HOME / CATALINA_BASE
 environment variables ;-P

 Regards,
 Rodrigo Ruiz

 Gabriel Jenik wrote:

 Chris...
 
 Thanks for answering...
 
 Maybe that's the problem... I don't know...I am just stattring on this...
 
 The strange thing is that I've just installed it... I haven't made any
 modifications to anything... just installed the tomcat...
 
 Could it be something with the configuration on my PC??? Do you think I
 should report it as a Bug??
 
 Thanks
 
 Gabriel
 - Original Message -
 From: Christopher Schultz [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, November 19, 2003 7:53 PM
 Subject: Re: Is this a bug???
 
 
 
 
 Gabriel,
 
 
 Hi...
 
 I've read all the stuff about repoting bugs, but I still don't want
 to report this, cause I don't know if this is a bug or not...It is
 too hard to know... isn't it?
 
 Here is the deal... I have clean installation. Every first time,
 after startup, I try to get to the tomcat administration, I get
 this error... Then I just reload the page and everithing works
 great I've tried to stop the tomcat administration application
 and then re-start it... and I still get the error on the first
 attempt to surf to the application..
 
 what's this???
 
 
  
 
 
 org.apache.jasper.JasperException: Malformed \u encoding.
 
 
at
  
 
 
 

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
2
 54)
 
 
 It looks like you have a JSP that you've run through native2ascii (or
 used your own escape codes), and one of them is bogus. Look in your JSPs
 for the string \u and see if any of those references are broken.
 
 -chris
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.542 / Virus Database: 336 - Release Date: 18/11/03
 
 
 
 
 -
 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]


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.542 / Virus Database: 336 - Release Date: 18/11/03



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



search to don t list

2003-11-20 Thread eric perso
Hi,
 
i search to don 't see a directory.
exemple : i ve a dir /images in my webapp
how to don't see: http://www.toto.com/images
but i cant use the images into this directory on another pages
 
thanks


RE: Virtual Host to Redirect

2003-11-20 Thread Dennis McRitchie
A while back, someone explained that with apache 1.3 you could use the
AddModule directive to specify the order of modules to be executed in the
module stack. Since the stack was LIFO, you had to do an AddModule of the
jk2 module first, and the redirect module second. Then the redirect module
would be executed first and you would therefore redirect instead of passing
the command to Tomcat via jk2.

However, I - like you - am using apache 2, and - according to the apache 2
reference - AddModule is no longer supported in that version. So I was
wondering how to order the module stack when using apache 2. This might
solve both our problems.

Dennis

 -Original Message-
 From: Boemio, Neil (GEI, FGI) [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 19, 2003 12:36 AM
 To: Tomcat Users List
 Subject: RE: Virtual Host to Redirect


 I need for the url address in the client's browser to change to
 our main domain.  A redirect (ReWrite) is needed to do this.  The
 Apache ReWrite for JSP pages is not happening because of the
 connector sending *.jsp to Tomcat.

 -Original Message-
 From: George Sexton [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 19, 2003 12:05 AM
 To: 'Tomcat Users List'
 Subject: RE: Virtual Host to Redirect


 Why don't you just set the DNS so that all hosts resolve to the same
 machine, and then set the default virtual host to have the files you
 want in it?


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

 -Original Message-
 From: Boemio, Neil (GEI, FGI) [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 18, 2003 6:26 PM
 To: Tomcat Users List
 Subject: Virtual Host to Redirect


 I have a sever with 2 IPs.  One of the IPs (say 1.2.3.4) is going to be
 used as a redirector to point all our domains to one main domain.
 Example: Typing in
   another.name.com  will send the browser to my.main.com
   another.name.com/somepage.jsp will send the browser to my.main.com
   yetanother.name.com   will send the browser to my.main.com

 This will be accomplished by having all our domains point to this one
 redirector IP in our DNS.

 I'm running Apache 2.0.47 and Tomcat 4.1.27 with JK2 as the connector.

 So in my Apache conf I have:

 VirtualHost 1.2.3.4
 RewriteEngine On
 RewriteRule /.* http://my.main.com/ [R]
 /VirtualHost

 Now this works fine if I go to  http://1.2.3.4/.  It redirects to
 my.main.com just fine.  My problem is that if I enter something like
 http://1.2.3.4/somepage.jsp, then it does not get redirected.  Instead
 Tomcat serves it up.  I believe this is happening because I have the
 following in my workers2.properties file under the Apache conf
 directory:

 # Map JSPs to the Web server uri space
 [uri:/*.jsp]
 worker=ajp13:localhost:8009

 So it seems the connector is sending all JSPs to Tomcat and the Rewrite
 in the VirtualHost is never getting to do it's job.  But of course, I
 need JSPs to go to Tomcat.

 Does anyone know how to get around this problem?  Or perhaps there is a
 better way to accomplish what I'm trying to do?

 Thanks a bunch!
 Neil

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



Re: Can Tomcat run on JRE only?

2003-11-20 Thread Rodrigo Ruiz
Thierry Thelliez wrote:

My understanding is that the full JDK is needed for compiling JSPs. What if
the JSPs are already compiled? Can on deploy a JSP site without the full
JDK, only the JRE? Can I deploy the site without the JSP files themselves?
With a copy of the work directory?
 

AFAIK, the full JDK is needed only for compiling the servlets generated 
from your JSPs. If you only have servlets or precompiled JSPs, the JRE 
should be enough.
I think you can even compile JSPs with only the JRE if you provide a 
javac replacement, as jikes

If you recompile JSPs, remember to add the extra servlet declarations in 
your web.xml deployment descriptor. If you do not do so, they will not work.

HTH,
Rodrigo Ruiz


Thanks,

Thierry

 



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


RE: mod_jk2 tomcat4.1.29 apache2.0.48

2003-11-20 Thread Dennis McRitchie
One additional point: it is indeed true that with jk2 you can't specify jk
directives in the httpd.conf file. As Julio has pointed out, jk2 directives
are in the workers2.properties file, which by default is in the
apache-home/conf directory. If you need to change that location, you can
specify the following directive in your httpd.conf file:

JkSet config.file /path/to/workers2.properties

Dennis

 -Original Message-
 From: Julio César Mejia Vergara [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 18, 2003 9:12 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: mod_jk2 tomcat4.1.29 apache2.0.48


 Hi,

 Here is how i configured ir with Apache 2.0.47 and Tomcat 4.1.27 on a
 Solaris 7 SPARC.

 Julio


 #cd /opt/temp
 #cp apache-ant-1.5.4-bin.tar.gz /opt
 #cp tomcat-4.1.27.tar.gz /opt
 #cd /opt
 #gunzip apache-ant-1.5.4-bin.tar.gz
 #tar -xvf apache-ant-1.5.4-bin.tar
 #gunzip tomcat-4.1.27.tar.gz
 #tar -xvf tomcat-4.1.27.tar
 #ln -s jakarta-tomcat-4.1.27 Tomcat

 #cd /opt/Tomcat/bin
 #vi startup.sh
 PATH=/usr/local/bin:/usr/ccs/bin:/usr/local/mysql/bin:/usr/local/s
 sl/bin:/usr/java/bin:/opt/apache-ant-1.5.4/bin:/opt/Tomcat/bin:$PATH
 LD_LIBRARY_PATH=/usr/local/lib:/lib:/usr/lib:/usr/local/mysql/lib:
 /usr/local/ssl/lib:/opt/apache-ant-1.5.4/lib:$LD_LIBRARY_PATH
 MANPATH=/usr/local/man:/usr/local/mysql/man:/usr/local/ssl/man:$MANPATH
 JAVA_HOME=/usr/java
 AC_MACRODIR=/usr/local/share/autoconf
 CLASSPATH=/usr/java/lib/tools.jar:usr/java/lib:/opt/apache-ant-1.5
.4/lib:/usr/java/src.zip:/usr/java/lib/dt.jar
 CATALINA_HOME=/opt/Tomcat
 APACHE2_HOME=/usr/local/apache
 ANT_HOME=/opt/apache-ant-1.5.4
 CATALINA_OPTS='-Djava.awt.headless=true'
 CATALINA_BASE=/opt/Tomcat

 export PATH LD_LIBRARY_PATH MANPATH JAVA_HOME AC_MACRODIR CLASSPATH
 CATALINA_HOME APACHE2_HOME ANT_HOME CATALINA_OPTS CATALINA_BASE
 #
 #cd /opt/temp
 #cp mod_jk2.so.apache_2_0_47_tomcat_4_1 /usr/local/apache/modules
 #cd /usr/local/apache/modules
 #mv mod_jk2.so.apache_2_0_47_tomcat_4_1 mod_jk2.so
 #cd /usr/local/apache/conf

 #vi httpd.conf
 #Dynamic Shared Object (DSO) Support
 LoadModule jk2_module modules/mod_jk2.so
 #

 #cd /opt/Tomcat/conf
 #vi jk2.properties
 #Set the desired handler list
 handler.list=request,container,channelSockets
 #Socket Configuration
 channelSocket.port=8009
 channelSocket.address=127.0.0.1
 channelSocket.maxPort=port+10
 #

 #cd /usr/local/apache/conf
 #vi workers2.properties
 [logger]
 level=DEBUG

 [config:]
 file=/usr/local/apache/conf/workers2.properties
 debug=0
 debugEnv=0

 [uriMap:]
 info=Maps the requests. Options: debug
 debug=0

 # Alternate file logger
 [logger.file:0]
 level=DEBUG
 file=/usr/local/apache/logs/jk2.log

 #Share memory handling. Needs To be set.
 [shm:]
 info=Scoreboard. Required for reconfiguration and status with
 multiprocess servers
 file=/usr/local/apache/logs/jk2.shm
 size=1048576
 debug=0
 disabled=0

 [workerEnv:]
 info=Global server options
 timing=1
 debug=0
 # Default Native Logger (apache2 or win32 )
 # can be overriden to a file logger, useful
 # when tracing win32 related issues
 #logger=logger.file:0

 #Socket Channel, explicity set port and host
 [channel.socket:localhost:8009]
 info=Ajp13 forwarding over socket
 debug=0
 tomcatId=localhost:8009

 #define the worker
 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009

 [status:status]
 info=Status worker, displays runtime informations

 [vm:]
 info=Parameters used to load a JVM in the server process
 classpath=${TOMCAT_HOME}/bin/tomcat-jni.jar
 classpath=${TOMCAT_HOME}/server/lib/commons-logging.jar
 OPT=-Djava.class.path=${TOMCAT_HOME}/bin/tomcat-jni.jar;${TOMCAT_H
 OME}/server/lib/commons-logging.jar
 OPT=-Dtomcat.home=${TOMCAT_HOME}
 OPT=-Dcatalina.home=${TOMCAT_HOME}
 OPT=-Xmx128M
 disabled=1

 [uri:/jkstatus/*]
 info=Display status information and checks the config file for changes
 group=status:
 worker=status:status

 [uri:/examples]
 info=Example webapp in the default context.
 context=/examples
 debug=0

 [uri:/examples/servlet/*]
 info=Prefix mapping

 [uri:/examples/*.jsp]
 info=Extension mapping

 [uri:/examples/*]
 info=Map the whole webapp


 And that it http://localhost/examples/

 Reference:
 http://www.cymulacrum.net/tomcat/tomcat_mod_jk2.html

 Julio



 pablo garaitonandia wrote:

  Hey Folks,
   I am having a bit of a challenge setting up mod_jk2 .  It seems
  very different from its predecessor mod_jk.   I try putting diectives
  in my httpd.conf just like I did with mod_jk and all I get is an error
  stating that the objective is for a module that does not exist or it
  is mispelled.   Could someone please guide me to the a definitive
  guide on mod_jk2 , or even a snip at what my httpd.conf is supposed to
  look like I would greatly appreciate it
  thank you ,
  Pablo
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 

Re: JDBC Realm

2003-11-20 Thread Justin Wesbrooks




Thanks for the response.  When I describe the user table, I get the
following output...

Doesn't this indicate that my orinigal configuration without the single
quotes should be correct?


mysql describe users;
+---+---+--+-+-+---+
| Field | Type  | Null | Key | Default | Extra |
+---+---+--+-+-+---+
| USERNAME  | varchar(16)   |  | PRI | |   |
| PASSWORD  | varchar(16)   |  | | |   |
| EMAIL | varchar(100)  | YES  | | |   |
| CREATE_DT | timestamp(14) | YES  | | NULL|   |
+---+---+--+-+-+---+
4 rows in set (0.01 sec)



   
 Jon Wingfield 
 [EMAIL PROTECTED] 
 odo.com   To 
   Tomcat Users List   
 11/20/2003 05:01  [EMAIL PROTECTED]
 AM cc 
   
   Subject 
 Please respond to Re: JDBC Realm  
   Tomcat Users   
   List   
 [EMAIL PROTECTED] 
  rta.apache.org  
   
   




mySQL is case-sensitive on column names.
In mysql describe the users and user_roles tables. Use the column names
as returned.

eg:

mysqldescribe bobbins;
+---+--+--+-+-+---+
| Field | Type | Null | Key | Default | Extra |
+---+--+--+-+-+---+
| bobbins_id| bigint(20)   |  | PRI | 0   |   |
| description   | varchar(255) |  | | |   |
+---+--+--+-+-+---+
2 rows in set (0.09 sec)

The single quotes you are using have unanticipated side effects:
The sql generated by the JDBCRealm will be something like
select 'USERPASS' from users where 'USERNAME' = ?;

This will bring back zero rows unless the password is actually the
string literal 'USERNAME'. In that case the value returned will be the
string literal 'USERPASS' not the data within the password column.

I would guess your columns are defined in lowercase so the realm setup
should be:

 Realm className=org.apache.catalina.realm.JDBCRealm
debug=99 driverName=org.gjt.mm.mysql.Driver
 connectionURL=jdbc:mysql://localhost:3306/cofc?user=root;password=root
 userTable=users
 userNameCol=username
 userCredCol=userpass
 userRoleTable=user_roles
 roleNameCol='ur_rolename'/

HTH,

Jon



Justin Wesbrooks wrote:
 When I get rid of the single quotes, the Mysql JDBC driver throws an
 SQLException that says something like column USERNAME not found

 I originally had it without the single quotes.  To solve the error I
added
 them just to try it and it worked, so I left them.

 Justin




 Tim Funk [EMAIL PROTECTED]
 11/19/2003 05:37 PM
 Please respond to
 Tomcat Users List [EMAIL PROTECTED]


 To

 Tomcat Users List [EMAIL PROTECTED]
 cc





 Subject
 Re: JDBC Realm






 Get rid of the single quotes.
   userNameCol=USERNAME

 -Tim

 Justin Wesbrooks wrote:



I have a JDBCRealm set up in Tomcat 4.1.29.  The realm config is as
follows..

Realm className=org.apache.catalina.realm.JDBCRealm
   debug=99 driverName=org.gjt.mm.mysql.Driver
connectionURL=jdbc:mysql://localhost:3306/cofc?user=root;password=root
userTable=users
userNameCol='USERNAME'
userCredCol='USERPASS'
userRoleTable=user_roles
roleNameCol='UR_ROLENAME'/



 -
 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: JK2 Build Error

2003-11-20 Thread Dennis McRitchie
Also, check out this URL on building jk2:

http://marc.theaimsgroup.com/?l=tomcat-userm=105103815630094w=2

I found both to be helpful.

If you still have the problem, check the archives of the tomcat users
mailing list. This was discussed in the last couple of weeks.

Dennis

 -Original Message-
 From: Andy Eastham [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 19, 2003 4:21 AM
 To: Tomcat Users List
 Subject: RE: JK2 Build Error


 Bill,

 The problem is that the apache runtime library cannot be located.

 I just found this resource that might help you out:
 http://cymulacrum.net/tomcat/jk2_compile.html

 Best regards,

 Andy

  -Original Message-
  From: Bill R [mailto:[EMAIL PROTECTED]
  Sent: 19 November 2003 02:03
  To: [EMAIL PROTECTED]
  Subject: JK2 Build Error
 
 
  I am sure you all have heard this before, and can give me some direction
  on how to solve this problem.
 
  When I go to 'make' the jk2 module, I get the following build error:
 
  /usr/bin/ld: cannot find -lapr-0
  collect2: ld returned 1 exit status
 
  I am running Redhat 9
  jakarta-tomcat-5.0.14
  apache 2.0.40
 
  If you need more info, please let me know.  I am still a bit new at
  compiling my own shared objects for my own purposes (but I have done
  it), so keep that in mind... I am resourceful, but I need a leg up
  here.  :-)  Any help would be appreciated.
 
  Thanks,
 
  BillR
 
  JK2 Build ErrorJK2 Build Error
  --
  Bill R [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: jsp cache issue

2003-11-20 Thread Christopher Schultz
Tim,

Actually[without more digging] - I thought tomcat should be writing to 
$CATALINA_HOME/work
Yeah, that's what I thought it was there for. If it doesn't write to the 
work dir, it should at least write to the tmpdir or whatever that 
thing is.

-chris

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


Re: JDBC Realm

2003-11-20 Thread Justin Wesbrooks




By the way,
I know my userCredCol from the original configuration I sent was wrong.  It
should be PASSWORD.  I've corrected this and still get the same errors.

I just tried changing all of my field names to lower case, but get the same
results.  Here is the exception I get when I don't use the single quotes.


2003-11-20 08:54:01 JDBCRealm[Standalone]: Username justin successfully
authenticated
2003-11-20 08:54:01 JDBCRealm[Standalone]: Exception performing
authentication
java.sql.SQLException: Column not found,  message from server: Unknown
column 'username' in 'where clause'
  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1825)
  at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1020)
  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1109)
  at com.mysql.jdbc.Connection.execSQL(Connection.java:2030)
  at
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1563)
  at
org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:476)
  at
org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:394)
  at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:161)
  at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
  at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
  at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
  at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
  at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
  at java.lang.Thread.run(Thread.java:534)



   
 Jon Wingfield 
 [EMAIL PROTECTED] 
 odo.com   To 
   Tomcat Users List   
 11/20/2003 05:01  [EMAIL PROTECTED]
 AM cc 
   
   Subject 
 Please respond to Re: JDBC Realm  
   Tomcat Users   
   List   
 [EMAIL PROTECTED] 
  rta.apache.org  
   
   




mySQL is case-sensitive on column names.
In mysql describe the users and user_roles tables. Use the column names
as returned.

eg:

mysqldescribe bobbins;
+---+--+--+-+-+---+
| Field | Type | Null | Key | Default | Extra |
+---+--+--+-+-+---+
| bobbins_id| bigint(20)   |  | PRI | 0   |   |
| description   | varchar(255) |  |

Re: JDBC Realm

2003-11-20 Thread Jon Anderson
On Thursday 20 November 2003 8:51 am, Justin Wesbrooks wrote:
 Thanks for the response.  When I describe the user table, I get the
 following output...


 mysql describe users;


Isn't users the default table in mysql where it stores MySQL logins?  Or was 
that your intention.  If not, you might have a table name conflict.

Jon

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



RE: JDBC Realm

2003-11-20 Thread Andreas Mohrig
Justin,

maybe tomcat is complaining about your userRoleTable (user_roles). Does
this table have a row named userNameCol (USERNAME), too? AFAIK the exact
same column name is required to put users and roles together. 

I assume this because you first get

 2003-11-20 08:54:01 JDBCRealm[Standalone]: Username justin successfully
authenticated

which seems like the password has been successfully checked, but then you
get 

 2003-11-20 08:54:01 JDBCRealm[Standalone]: Exception performing
authentication
 java.sql.SQLException: Column not found,  message from server: Unknown
column 'username' in 'where clause'

which should come from the attempt to get the roles for this user.

Greetings

Andreas Mohrig

-Original Message-
From: Justin Wesbrooks [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 3:59 PM
To: Tomcat Users List
Subject: Re: JDBC Realm






By the way,
I know my userCredCol from the original configuration I sent was wrong.  It
should be PASSWORD.  I've corrected this and still get the same errors.

I just tried changing all of my field names to lower case, but get the same
results.  Here is the exception I get when I don't use the single quotes.


2003-11-20 08:54:01 JDBCRealm[Standalone]: Username justin successfully
authenticated
2003-11-20 08:54:01 JDBCRealm[Standalone]: Exception performing
authentication
java.sql.SQLException: Column not found,  message from server: Unknown
column 'username' in 'where clause'
  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1825)
  at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1020)
  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1109)
  at com.mysql.jdbc.Connection.execSQL(Connection.java:2030)
  at
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1563)
  at
org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:476)
  at
org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:394)
  at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthe
nticator.java:161)
  at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:528)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
  at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
  at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
  at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:549)
  at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
  at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:666)
  at java.lang.Thread.run(Thread.java:534)



   
 Jon Wingfield 
 [EMAIL PROTECTED] 
 odo.com   To 
   Tomcat Users List   
 11/20/2003 05:01  [EMAIL PROTECTED]
 AM cc 
   
   Subject 
 Please respond to Re: JDBC Realm  
   Tomcat Users  

RE: JDBC Realm

2003-11-20 Thread Justin Wesbrooks




Here are my 3 table definitions...  Does the username column in the
user_roles table have to be named the exact same as the column in the users
table?

mysql describe users;
+---+---+--+-+-+---+
| Field | Type  | Null | Key | Default | Extra |
+---+---+--+-+-+---+
| username  | varchar(16)   |  | PRI | |   |
| password  | varchar(16)   |  | | |   |
| email | varchar(100)  | YES  | | |   |
| create_dt | timestamp(14) | YES  | | NULL|   |
+---+---+--+-+-+---+


mysql describe roles;
+---+--+--+-+-+---+
| Field | Type | Null | Key | Default | Extra |
+---+--+--+-+-+---+
| role_name | varchar(16)  |  | PRI | |   |
| role_desc | varchar(100) |  | | |   |
+---+--+--+-+-+---+
2 rows in set (0.00 sec)

mysql describe user_roles;
+-+-+--+-+-+---+
| Field   | Type| Null | Key | Default | Extra |
+-+-+--+-+-+---+
| ur_username | varchar(16) |  | PRI | |   |
| ur_rolename | varchar(16) |  | PRI | |   |
+-+-+--+-+-+---+
2 rows in set (0.00 sec)




   
 Andreas Mohrig
 [EMAIL PROTECTED] 
 adooz.de  To 
   'Tomcat Users List' 
 11/20/2003 09:12  [EMAIL PROTECTED]
 AM cc 
   
   Subject 
 Please respond to RE: JDBC Realm  
   Tomcat Users   
   List   
 [EMAIL PROTECTED] 
  rta.apache.org  
   
   




Justin,

maybe tomcat is complaining about your userRoleTable (user_roles). Does
this table have a row named userNameCol (USERNAME), too? AFAIK the exact
same column name is required to put users and roles together.

I assume this because you first get

 2003-11-20 08:54:01 JDBCRealm[Standalone]: Username justin successfully
authenticated

which seems like the password has been successfully checked, but then you
get

 2003-11-20 08:54:01 JDBCRealm[Standalone]: Exception performing
authentication
 java.sql.SQLException: Column not found,  message from server: Unknown
column 'username' in 'where clause'

which should come from the attempt to get the roles for this user.

Greetings

Andreas Mohrig

-Original Message-
From: Justin Wesbrooks [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 3:59 PM
To: Tomcat Users List
Subject: Re: JDBC Realm






By the way,
I know my userCredCol from the original configuration I sent was wrong.  It
should be PASSWORD.  I've corrected this and still get the same errors.

I just tried changing all of my field names to lower case, but get the same
results.  Here is the exception I get when I don't use the single quotes.


2003-11-20 08:54:01 JDBCRealm[Standalone]: Username justin successfully
authenticated
2003-11-20 08:54:01 JDBCRealm[Standalone]: Exception performing
authentication
java.sql.SQLException: Column not found,  message from server: Unknown
column 'username' in 'where clause'
  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1825)
  at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1020)
  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1109)
  at com.mysql.jdbc.Connection.execSQL(Connection.java:2030)
  at
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1563)
  at
org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:476)
  at
org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:394)
  at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthe

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

.java:528)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:641)
  at

RE: Can Tomcat run on JRE only?

2003-11-20 Thread Shapira, Yoav

Howdy,
I just added this to the tomcat FAQ.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 9:40 AM
To: Tomcat Users List
Subject: Re: Can Tomcat run on JRE only?

Thierry Thelliez wrote:

My understanding is that the full JDK is needed for compiling JSPs.
What
if
the JSPs are already compiled? Can on deploy a JSP site without the
full
JDK, only the JRE? Can I deploy the site without the JSP files
themselves?
With a copy of the work directory?




AFAIK, the full JDK is needed only for compiling the servlets generated
from your JSPs. If you only have servlets or precompiled JSPs, the JRE
should be enough.
I think you can even compile JSPs with only the JRE if you provide a
javac replacement, as jikes

If you recompile JSPs, remember to add the extra servlet declarations
in
your web.xml deployment descriptor. If you do not do so, they will not
work.

HTH,
Rodrigo Ruiz



Thanks,

Thierry







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



error-page bug ?

2003-11-20 Thread Laurent Michenaud
When my error page is at the root of the webapp, tomcat can't find it.
 
In web.xml of the webapp :
 
This works :
error-page
error-code404/error-code
 location/error/notfound.jsp/location
/error-page
 
This works
error-page
error-code404/error-code
 location//location
/error-page
 
This DOESNOT works :
error-page
error-code404/error-code
 location/notfound.jsp/location
/error-page
 
Tomcat is 4.1.29


Change the name of a servlet in runtime

2003-11-20 Thread Manuel Gil Perez
Hi all.

I have a servlet that reads a file from disk and it returns as output stream
in the servlet (octect-stream). From web browser, when I execute this
servlet the file is stored with the servlet name. How can I change this name
to the file name??

Regards...

   Manuel Gil.

---

  ServletOutputStream toClient = response.getOutputStream();
  res.setContentType(application/octet-stream);
  toClient.write(file_bytes);
  toClient.close();
  return;


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



RE: JDBC Realm

2003-11-20 Thread Justin Wesbrooks




Thanks for the help.  When I changed the ur_username column to username, it
worked.



   
 Andreas Mohrig
 [EMAIL PROTECTED] 
 adooz.de  To 
   'Tomcat Users List' 
 11/20/2003 09:12  [EMAIL PROTECTED]
 AM cc 
   
   Subject 
 Please respond to RE: JDBC Realm  
   Tomcat Users   
   List   
 [EMAIL PROTECTED] 
  rta.apache.org  
   
   




Justin,

maybe tomcat is complaining about your userRoleTable (user_roles). Does
this table have a row named userNameCol (USERNAME), too? AFAIK the exact
same column name is required to put users and roles together.

I assume this because you first get

 2003-11-20 08:54:01 JDBCRealm[Standalone]: Username justin successfully
authenticated

which seems like the password has been successfully checked, but then you
get

 2003-11-20 08:54:01 JDBCRealm[Standalone]: Exception performing
authentication
 java.sql.SQLException: Column not found,  message from server: Unknown
column 'username' in 'where clause'

which should come from the attempt to get the roles for this user.

Greetings

Andreas Mohrig

-Original Message-
From: Justin Wesbrooks [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 3:59 PM
To: Tomcat Users List
Subject: Re: JDBC Realm






By the way,
I know my userCredCol from the original configuration I sent was wrong.  It
should be PASSWORD.  I've corrected this and still get the same errors.

I just tried changing all of my field names to lower case, but get the same
results.  Here is the exception I get when I don't use the single quotes.


2003-11-20 08:54:01 JDBCRealm[Standalone]: Username justin successfully
authenticated
2003-11-20 08:54:01 JDBCRealm[Standalone]: Exception performing
authentication
java.sql.SQLException: Column not found,  message from server: Unknown
column 'username' in 'where clause'
  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1825)
  at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1020)
  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1109)
  at com.mysql.jdbc.Connection.execSQL(Connection.java:2030)
  at
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1563)
  at
org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:476)
  at
org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:394)
  at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthe

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

.java:528)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:641)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180

)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:643)
  at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.

java:171)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:641)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172

)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:641)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java

:174)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

eNext(StandardPipeline.java:643)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at

mod_jk2 big bug

2003-11-20 Thread Luca
Clustering with mod_jk2 with sticky session e load
balancing works bad.

Configuration 


.
|-|..
|  Apache 2.0.x   |..
.___|mod_jk2  |..
.|  |-||.
.| |.
.| |.
..   | |.
.|-||-|..
.| Tomcat1.4.x || Tomcat1.4.x |..
.|-||-|..
.



Load Balancing and sticky session work fine, but
when there is a node
failure and mod_jk2 switch the courrent request to
the remaining tomcat instance the HTTP POST
parameters get lost!

I sniffed the AJP traffic and I observed those
packets directed to the
remaining node:

1) AJP REQUEST POST with a content length field
setted to 54 (correct size)
2) AJP REQUEST BODY with length 0 !!! Big Big Error

This happens only when switching from a failing node
to another.

I tried with apache e tomcat installed on Windows e
Linux
in a lot of different configuration but the results
seem the same.

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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



Re: Change the name of a servlet in runtime

2003-11-20 Thread Christopher Schultz
Search the archives for Content-Disposition

Manuel Gil Perez wrote:
Hi all.

I have a servlet that reads a file from disk and it returns as output stream
in the servlet (octect-stream). From web browser, when I execute this
servlet the file is stored with the servlet name. How can I change this name
to the file name??
Regards...

   Manuel Gil.

---

  ServletOutputStream toClient = response.getOutputStream();
  res.setContentType(application/octet-stream);
  toClient.write(file_bytes);
  toClient.close();
  return;
-
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]


sun.misc.InvalidJarIndexException

2003-11-20 Thread Joe Fernandez
Hello,

I am trying to start Tomcat 4.1.29 on a HP-UX 11 machine and am using JDK
1.3.

On startup, TC hurls 'sun.misc.InvalidJarIndexException' and terminates.

Any idea what is wrong? Do I need to move up to JDK 1.4?

Here's the exception stack trace

Catalina.start: sun.misc.InvalidJarIndexException: Invalid index!
sun.misc.InvalidJarIndexException: Invalid index!
at
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2540)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2566)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1276)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Sour
ce)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)




Many Thnx
Joe Fernandez



Re: JDBC Realm

2003-11-20 Thread Christopher Schultz
Jon,

Isn't users the default table in mysql where it stores MySQL logins?  Or was 
that your intention.  If not, you might have a table name conflict.
Naw, that's in a different tablespace. His stuff looks correct.

-chris

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


Re: error-page bug ?

2003-11-20 Thread Andoni
.jsp files have never worked for me when they are at the root of a web-app.
I still see them being used this way in books all the time though to don't
take my word as gospel.  Do you have any .jsp files running in this way?

Andoni.


- Original Message -
From: Laurent Michenaud [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 3:25 PM
Subject: error-page bug ?


When my error page is at the root of the webapp, tomcat can't find it.

In web.xml of the webapp :

This works :
error-page
error-code404/error-code
 location/error/notfound.jsp/location
/error-page

This works
error-page
error-code404/error-code
 location//location
/error-page

This DOESNOT works :
error-page
error-code404/error-code
 location/notfound.jsp/location
/error-page

Tomcat is 4.1.29


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



mod_jk1.2 Binary for Solaris ?

2003-11-20 Thread Chakravarthy, Sundar
I don't find any mod_jk so files for solaris after I unpack
solaris8.tar.gz file from here

 

http://mirrors.xtria.com/apache/jakarta/tomcat-connectors/jk/binaries/so
laris/ .

 

Could someone tell me how to get mod_jk 1.2 binary for Solaris 8 or 9 ? 

 

Thanks



RE : Dead threads

2003-11-20 Thread Laurent Michenaud
I can't find it.

Could u or anybody else post the code ?

Thanks

-Message d'origine-
De : Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 20 novembre 2003 14:42
À : Tomcat Users List
Objet : RE: Dead threads


Howdy,
If a thread is dead it will have been GCed.  Use a thread dump (kill -s
QUIT processId) to get the current list of threads and what they're
doing on stdout.  There are also programmatic ways to go about this:
I've posted at least three times in the past the complete code for a
thread-crawler type of class that will display all the threads in the
JVM, what they're doing, their state, etc: you can search the list
archives for it.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Walter do Valle [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 6:52 AM
To: Tomcat Users List
Subject: Dead threads

How to know what Tomcat threads are dead (or hanged, os blocked, or
inoperative, or... ) in an Tomcat running on Linux?
Any help is welcome.



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]



Apache2, Tomcat, jk: Error connecting to tomcat.

2003-11-20 Thread Michael Valentiner
I'm trying to get Apache 2.0.48, Tomcat 4.1.29, and jk-1.2.5 up, 
running, and talking to each other on Mac OS 10.3.1 (Panther).  I have 
Apache and Tomcat configured and running, but when I try to access the 
Tomcat examples page from Apache, I get an Internal Server Error.  
The mod_jk.log file contains the following lines:

[Wed Nov 19 21:54:20 2003]  [jk_connect.c (188)]: Into jk_open_socket
[Wed Nov 19 21:54:20 2003]  [jk_connect.c (195)]: jk_open_socket, try 
to connect socket = 15
[Wed Nov 19 21:54:20 2003]  [jk_connect.c (204)]: jk_open_socket, after 
connect ret = -1
[Wed Nov 19 21:54:20 2003]  [jk_connect.c (233)]: jk_open_socket, 
connect() failed errno = 13
[Wed Nov 19 21:54:20 2003]  [jk_ajp_common.c (676)]: Error connecting 
to tomcat. Tomcat is probably not started or is listenning on the wrong 
port. Failed errno = 13

Upon examining jk_connect.c, it appears that jk fails trying to connect 
to the open socket because it doesn't have permission (errno = 13).  
I'm running Apache as root, Tomcat not as root.  I saw mention of this 
problem in the archives, but no solution.  Does anyone know the fix?

---
Mike Valentiner, Minneapolis, Minnesota
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Multiple Tomcats handled by one Apache

2003-11-20 Thread Wegener, Dierk
Hello,

is it possible to use different Tomcats (not multiple instances but real
different versions)
in one Apache installations? 

In workers.properties there is an entry for workers.tomcat_home which I
suppose to mean
that multiple instances of one Tomcat installation can be started as
workers.

My problem is that several systems on one physical machine need different
Tomcat versions
but all have to be reachable on Port 80. So my approach was to load the
mod_jk and to define
VirtualHosts (in httpd.conf) where the Include-directives point to the
different Tomcats. Using 
different mount points for JkMount should direct the requests to the correct
application.

Unfortunately I am not able to get to work such a configuration.

Can anyone help? Thanks!!

Dierk Wegener



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



Re: Installation problem

2003-11-20 Thread [EMAIL PROTECTED]
Hi harry,

the web.xml in path, C:\Program Files\Apache Software
Foundation\Tomcat 5.0\webapps\Sancha\WEB-INF
is :

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
  display-nameWelcome to Tomcat/display-name
  description
 Welcome to Tomcat
  /description


!-- JSPC servlet mappings start --

servlet
   
servlet-nameorg.apache.jsp.index_jsp/servlet-name
   
servlet-classorg.apache.jsp.index_jsp/servlet-class
/servlet

servlet-mapping
   
servlet-nameorg.apache.jsp.index_jsp/servlet-name
url-pattern/index.jsp/url-pattern
/servlet-mapping

!-- JSPC servlet mappings end --

/web-app

Waiting for your instructions.

Thanks in anticipation.


 
 Hello
 
  Got this error message
 
 Sancha, please copy and paste into an email the complete
 contents of the 'web.xml' file located in the
 '$CATALIA_HOME\webapps\Sancha\WEB-INF' directory.
 
 I had not intended that you provide a 'welcome' page - the
 intention was for you to place documents in the 'Sancha'
 directory so that your friend could access them over the
 wire. By going to your 'site' your friend would simply see
 a directory listing of documents. This could be text
 documents, or image documents - anything that a browser
 can display.
 
 I hasten to add that this is *not* how Tomcat is intended
 to be used (!) but if it solves your 'network problem' so
 be it :-)
 
 Regards
 
 Harry Mantheakis
 London, UK
 
 
 
 --
 --- 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]



mod_jk + apache 2.0.40 + redhat 9.0

2003-11-20 Thread Peter Maas
Hi all,

googling for mod_jk solutions yielded far to much tutorials. what is the 
best one??

P

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


A proper way to stop thread ?

2003-11-20 Thread Laurent Michenaud
Hi,
 
We are using Timer in our web application.
 
We are wondering how to stop the Timer when tomcat shutdown.
 
For the moment, we add Timer.cancel() in the destroy() of the servlet
that launches the Timer.
 
I don't know if it is good or not.
 
When is a servlet killed ? at tomcat shutdown or when it is not used
anymore ( GC ) ?


RE : A proper way to stop thread ?

2003-11-20 Thread eric perso
Put it on null ,not?

 -Original Message-
 From: Laurent Michenaud [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, November 20, 2003 5:26 PM
 To: [EMAIL PROTECTED]
 Subject: A proper way to stop thread ?
 
 
 Hi,
  
 We are using Timer in our web application.
  
 We are wondering how to stop the Timer when tomcat shutdown.
  
 For the moment, we add Timer.cancel() in the destroy() of the servlet
 that launches the Timer.
  
 I don't know if it is good or not.
  
 When is a servlet killed ? at tomcat shutdown or when it is not used
 anymore ( GC ) ?
 


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



not see the directory

2003-11-20 Thread eric perso
hi,
 
i search to:
don't see inside a directory like www.toto.com/images/
 
but i use in the jsp and html pages the image www.toto.com/images/i.gif 
how to do this
 
thanks;
best regards


Re: mod_jk1.2 Binary for Solaris ?

2003-11-20 Thread jean-frederic clere
Chakravarthy, Sundar wrote:
I don't find any mod_jk so files for solaris after I unpack
solaris8.tar.gz file from here
 

http://mirrors.xtria.com/apache/jakarta/tomcat-connectors/jk/binaries/so
laris/ .
 

Could someone tell me how to get mod_jk 1.2 binary for Solaris 8 or 9 ? 
I have downloaded the 
jakarta-tomcat-connectors-jk-1.2.5-solaris8-sparc-apache-1.3.28.tar.gz and I 
have found:
+++
bash-2.03$ ls -lt 
jakarta-tomcat-connectors-jk-1.2.5-solaris8-sparc-apache-1.3.28/mod_jk.so
-rwxr-xr-x   1 jfclere  jfclere   891708 Oct 11 18:36 
jakarta-tomcat-connectors-jk-1.2.5-solaris8-sparc-apache-1.3.28/mod_jk.so
bash-2.03$ file 
jakarta-tomcat-connectors-jk-1.2.5-solaris8-sparc-apache-1.3.28/mod_jk.so
jakarta-tomcat-connectors-jk-1.2.5-solaris8-sparc-apache-1.3.28/mod_jk.so:
ELF 32-bit MSB dynamic lib SPARC Version 1, dynamically linked, not stripped
+++

Idem for 2.0:
+++
bash-2.03$ file 
jakarta-tomcat-connectors-jk-1.2.5-solaris8-sparc-apache-2.0.47/mod_jk.so
jakarta-tomcat-connectors-jk-1.2.5-solaris8-sparc-apache-2.0.47/mod_jk.so:
ELF 32-bit MSB dynamic lib SPARC Version 1, dynamically linked, not stripped
bash-2.03$ ls -l 
jakarta-tomcat-connectors-jk-1.2.5-solaris8-sparc-apache-2.0.47/mod_jk.so
-rwxr-xr-x   1 jfclere  jfclere   864176 Oct 11 18:43 
jakarta-tomcat-connectors-jk-1.2.5-solaris8-sparc-apache-2.0.47/mod_jk.so
+++

Use a gnu tar the Solaris one does not work with those files.

Cheers

Jean-Frederic

 

Thanks




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


RE: A proper way to stop thread ?

2003-11-20 Thread Shapira, Yoav

Howdy,

We are using Timer in our web application.

We are wondering how to stop the Timer when tomcat shutdown.

For the moment, we add Timer.cancel() in the destroy() of the servlet
that launches the Timer.

I don't know if it is good or not.

When is a servlet killed ? at tomcat shutdown or when it is not used
anymore ( GC ) ?

A servlet is normally destroyed on server shutdown.  According to the
servlet specification, however, the container may destroy a servlet if
it needs to as long as it's not in use.

So you may wish to have the Timer shutdown elsewhere, such as in the
contextDestroyed method of a servlet listener.

Alternatively, you can run the Timer in a separate Thread as a daemon,
in which case the JVM will automatically shut it down when it shuts
down.  But you don't want to rely on this unless you have to.

Perhaps the better question is, why are you using such a long-lived
timer?

Yoav Shapira



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: mod_jk + apache 2.0.40 + redhat 9.0

2003-11-20 Thread Asif Chowdhary
Hi Peter,

where you able to find rpm for mod-jk2 for redhat 9.0.
I have not been able to find?

Thanks
Asif

-Original Message-
From: Peter Maas [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 11:24 AM
To: Tomcat Users List
Subject: mod_jk + apache 2.0.40 + redhat 9.0


Hi all,

googling for mod_jk solutions yielded far to much tutorials. what is the 
best one??

P


-
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: not see the directory

2003-11-20 Thread Juan Salvador Castejón
Hi,
I dont' know if that can be done, but why don't get the images by means
of a servlet a put them inside WEB-INF? That way, you'll be able to use your
images without make them accessible.

---Mensaje original---

De: Tomcat Users List
Fecha: jueves 20 de noviembre de 2003 17:31:14
A: tomcat user List
Asunto: not see the directory

hi,

i search to:
don't see inside a directory like www.toto.com/images/

but i use in the jsp and html pages the image www.toto.com/images/i.gif 
how to do this

thanks;
best regards

Re: mod_jk + apache 2.0.40 + redhat 9.0

2003-11-20 Thread Peter Maas
Not yet...

didn't expect that to be the problem...

P

Asif Chowdhary wrote:

Hi Peter,

where you able to find rpm for mod-jk2 for redhat 9.0.
I have not been able to find?
Thanks
Asif
-Original Message-
From: Peter Maas [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 11:24 AM
To: Tomcat Users List
Subject: mod_jk + apache 2.0.40 + redhat 9.0
Hi all,

googling for mod_jk solutions yielded far to much tutorials. what is the 
best one??

P

-
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: invalid direct reference..--problem with solution..

2003-11-20 Thread Patrick Willart
Hi Claus,

According to the official servlet specification one cannot directly link to
the login form. The user must always be redirected (because he entered a
protected URL) to the login form for it to work. This behavior prohibits one
to have a log in form an every page. It's like this in the servlet spec and
there is no way around.

However, there is an open source project called SecurityFilter, that
provides a different authentication mechanism. I can't use it because it
doesn't support single sign-on (they are still working on that), but may be
it's good for you. have a look at http://securityfilter.sourceforge.net/ for
the details.

grts,

Patrick

-Original Message-
From: Claus Weng Madsen - TELMORE [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 2:02 AM
To: [EMAIL PROTECTED]
Subject: RE: invalid direct reference..--problem with solution..


Hi Patrick

Did you ever find a solution to your problem?
I have the same problem as you mentioned previous. So if you have found
a solution please write back to me :-)

Med venlig hilsen

Claus Weng Madsen, Teamleder
TELMORE A/S
Carl Gustavsgade 3, 2630 Taastrup
Telefon 70218700, Mobil 30242875
www.telmore.dk


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



log rotation for stdout and stderr?

2003-11-20 Thread Deluca, Don
We are running Tomcat as a Windows service.

The stdout and stderr log files are not rotated when running as a NT
service.  Also when the service is stopped and started the files are
overrwritten.

Are there any parameters that need to be set when installing the windows
service that can activate log rotation or append to
the files?

Any other known solutions/suggestions to fix this?

Thanks,
Don



JK2 error- file access denied

2003-11-20 Thread James Ostad
I am getting the following error when I try to access a file from the
remote server:

Created catalinaLoader in: d:\Program Files\Apache Group\Tomcat
4.1\server\lib
Nov 20, 2003 11:41:31 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Nov 20, 2003 11:41:43 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Nov 20, 2003 11:41:43 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Nov 20, 2003 11:41:48 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Nov 20, 2003 11:42:00 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Nov 20, 2003 11:42:01 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Nov 20, 2003 11:42:01 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=30/30  config=d:\Program Files\Apache
Group\Tomcat 4.1\conf\jk2.properties
java.io.FileNotFoundException:\\ceoimage\ceodata$\crc\00057720.tif
(Access is denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.init(FileInputStream.java:103)
at util.fileUtil.filescopy.copyFile(filescopy.java:26)
at util.fileUtil.filescopy.init(filescopy.java:13)
at util.fileUtil.runfile.init(runfile.java:9)
at domain.Client.init(Client.java:20)
at domain.ClientDAO.getClient(ClientDAO.java:56)
at domain.CRCService.getClient(CRCService.java:17)
at web.CEOCRCServlet.processClient(CEOCRCServlet.java:68)
at web.CEOCRCServlet.doPost(CEOCRCServlet.java:32)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
7)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:78
1)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:549)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
9)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:666)
at java.lang.Thread.run(Thread.java:536)

my system is windows 2k adv. server , sp4.

thanks,

James Ostad
Application Developer/Analyst
TMS Department
Ex. 4457
E-mail: [EMAIL PROTECTED]


Out--- (3)



-
To 

RE : A proper way to stop thread ?

2003-11-20 Thread Laurent Michenaud
The goal of the timer is to update a cache.

Thanks for the idea of the context listener.

-Message d'origine-
De : Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 20 novembre 2003 17:30
À : Tomcat Users List
Objet : RE: A proper way to stop thread ?


Howdy,

We are using Timer in our web application.

We are wondering how to stop the Timer when tomcat shutdown.

For the moment, we add Timer.cancel() in the destroy() of the servlet
that launches the Timer.

I don't know if it is good or not.

When is a servlet killed ? at tomcat shutdown or when it is not used
anymore ( GC ) ?

A servlet is normally destroyed on server shutdown.  According to the
servlet specification, however, the container may destroy a servlet if
it needs to as long as it's not in use.

So you may wish to have the Timer shutdown elsewhere, such as in the
contextDestroyed method of a servlet listener.

Alternatively, you can run the Timer in a separate Thread as a daemon,
in which case the JVM will automatically shut it down when it shuts
down.  But you don't want to rely on this unless you have to.

Perhaps the better question is, why are you using such a long-lived
timer?

Yoav Shapira



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 : JK2 error- file access denied

2003-11-20 Thread eric perso
Hi,
You have not the rights to write
Or you write with incorrect path separator / 
Correct under windows \ for file and directory

I hope , i answer to your probleme

 -Original Message-
 From: James Ostad [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, November 20, 2003 6:02 PM
 To: Tom (E-mail)
 Subject: JK2 error- file access denied
 Importance: High
 
 
 I am getting the following error when I try to access a file from the
 remote server:
 
 Created catalinaLoader in: d:\Program Files\Apache Group\Tomcat
 4.1\server\lib
 Nov 20, 2003 11:41:31 AM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on port 8080
 Nov 20, 2003 11:41:43 AM 
 org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, config='org.apache.struts.util.LocalStrings',
 returnNull=true
 Nov 20, 2003 11:41:43 AM 
 org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, config='org.apache.struts.action.ActionResources',
 returnNull=true
 Nov 20, 2003 11:41:48 AM 
 org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing,
 config='org.apache.webapp.admin.ApplicationResources', returnNull=true
 Nov 20, 2003 11:42:00 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on port 8080
 Nov 20, 2003 11:42:01 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Nov 20, 2003 11:42:01 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=30/30  config=d:\Program Files\Apache
 Group\Tomcat 4.1\conf\jk2.properties
 java.io.FileNotFoundException:\\ceoimage\ceodata$\crc\00057720.tif
 (Access is denied)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.init(FileInputStream.java:103)
   at util.fileUtil.filescopy.copyFile(filescopy.java:26)
   at util.fileUtil.filescopy.init(filescopy.java:13)
   at util.fileUtil.runfile.init(runfile.java:9)
   at domain.Client.init(Client.java:20)
   at domain.ClientDAO.getClient(ClientDAO.java:56)
   at domain.CRCService.getClient(CRCService.java:17)
   at web.CEOCRCServlet.processClient(CEOCRCServlet.java:68)
   at web.CEOCRCServlet.doPost(CEOCRCServlet.java:32)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(Applica
 tionFilterChain.java:247)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilt
 erChain.java:193)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValv
 e.java:256)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.i
 nvokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:4
 80)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValv
 e.java:191)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.i
 nvokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:4
 80)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:241
 7)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java
 :180)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.i
 nvokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherVa
 lve.java:171)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.i
 nvokeNext(StandardPipeline.java:641)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java
 :172)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.i
 nvokeNext(StandardPipeline.java:641)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:4
 80)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.
 java:174)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.i
 nvokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:4
 80)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.
 java:193)
   at
 org.apache.coyote.http11.Http11Processor.process(Http11Process
 or.java:78
 1)
   at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
 r.processC
 onnection(Http11Protocol.java:549)
   at
 

RE: log rotation for stdout and stderr?

2003-11-20 Thread Shapira, Yoav

Howdy,
This is a FAQ, you could search the archives.

A couple of things:
1. catalina.out isn't rotated on unix either.
2. Add swallowOutput=true to you context to make System.out and
System.err go into the context logger, which is rotated nightly.
3. Don't use System.out/System.err so much ;)  Consider a logging
framework like log4j.
4. There are external, free, 3rd party log rotating tools out there,
google.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Deluca, Don [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 11:53 AM
To: Tomcat-User (E-mail)
Subject: log rotation for stdout and stderr?

We are running Tomcat as a Windows service.

The stdout and stderr log files are not rotated when running as a NT
service.  Also when the service is stopped and started the files are
overrwritten.

Are there any parameters that need to be set when installing the
windows
service that can activate log rotation or append to
the files?

Any other known solutions/suggestions to fix this?

Thanks,
   Don




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: RE : JK2 error- file access denied

2003-11-20 Thread James Ostad
I feel I am in heaven. some one responded back.
here is my case,
I use SunOne Studio to create my web apps. It does work in it, but when
I move it out to tomcat, that is what I get.

I just stated to look at the jk2.properties file. Currently nothing has
been setup there. It seems that SunOne is taking care of this part by
itself.

Thank you for replying back.

James

-Original Message-
From: eric perso [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 12:01 PM
To: 'Tomcat Users List'
Subject: RE : JK2 error- file access denied


Hi,
You have not the rights to write
Or you write with incorrect path separator / 
Correct under windows \ for file and directory

I hope , i answer to your probleme

 -Original Message-
 From: James Ostad [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, November 20, 2003 6:02 PM
 To: Tom (E-mail)
 Subject: JK2 error- file access denied
 Importance: High
 
 
 I am getting the following error when I try to access a file from the
 remote server:
 
 Created catalinaLoader in: d:\Program Files\Apache Group\Tomcat
 4.1\server\lib
 Nov 20, 2003 11:41:31 AM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on port 8080
 Nov 20, 2003 11:41:43 AM 
 org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, config='org.apache.struts.util.LocalStrings',
 returnNull=true
 Nov 20, 2003 11:41:43 AM 
 org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, config='org.apache.struts.action.ActionResources',
 returnNull=true
 Nov 20, 2003 11:41:48 AM 
 org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing,
 config='org.apache.webapp.admin.ApplicationResources', returnNull=true
 Nov 20, 2003 11:42:00 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on port 8080
 Nov 20, 2003 11:42:01 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Nov 20, 2003 11:42:01 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=30/30  config=d:\Program Files\Apache
 Group\Tomcat 4.1\conf\jk2.properties
 java.io.FileNotFoundException:\\ceoimage\ceodata$\crc\00057720.tif
 (Access is denied)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.init(FileInputStream.java:103)
   at util.fileUtil.filescopy.copyFile(filescopy.java:26)
   at util.fileUtil.filescopy.init(filescopy.java:13)
   at util.fileUtil.runfile.init(runfile.java:9)
   at domain.Client.init(Client.java:20)
   at domain.ClientDAO.getClient(ClientDAO.java:56)
   at domain.CRCService.getClient(CRCService.java:17)
   at web.CEOCRCServlet.processClient(CEOCRCServlet.java:68)
   at web.CEOCRCServlet.doPost(CEOCRCServlet.java:32)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(Applica
 tionFilterChain.java:247)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilt
 erChain.java:193)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValv
 e.java:256)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.i
 nvokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:4
 80)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValv
 e.java:191)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.i
 nvokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:4
 80)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:241
 7)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java
 :180)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.i
 nvokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherVa
 lve.java:171)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.i
 nvokeNext(StandardPipeline.java:641)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java
 :172)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValv
 eContext.i
 nvokeNext(StandardPipeline.java:641)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:4
 80)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.
 java:174)
   at
 

Re: hot deploy

2003-11-20 Thread Leonardo Kenji Shikida
looks like a windows solution... is there something for UNIX?

-- 

[]

Leonardo Kenji Shikida
Vetta Technologies
http://www.vettatech.com


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



Re: Installation problem

2003-11-20 Thread Harry Mantheakis
Okay Sancha

Delete all of of the following lines from the 'web.xml' file in
'$CATALINA_HOME/webapps/Sancha/WEB-INF':




!-- JSPC servlet mappings start --

  servlet
 
servlet-nameorg.apache.jsp.index_jsp/servlet-name
 
servlet-classorg.apache.jsp.index_jsp/servlet-class
  /servlet

  servlet-mapping
 
servlet-nameorg.apache.jsp.index_jsp/servlet-name
  url-pattern/index.jsp/url-pattern
  /servlet-mapping

!-- JSPC servlet mappings end --




Make sure you do NOT delete the closing /web-app tag at the end of the
page (!) otherwise Tomcat will complain.

Now you will have an 'empty' context (application). Any files you place into
the '$CATALINA_HOME/webapps/Sancha' folder will be displayed as a directory
list.

Test it yourself by calling:

http://your_ip_address:8080/Sancha/

You should see just a list of files, assuming there are any to list.

I hasten to add that this is not how Tomcat is normally used (!) and it
could be that I have misunderstood your intentions for using Tomcat. It is a
very crude way of 'sharing' certain files, but I assume that is what you
want to do.

All the best.

Harry Mantheakis
London, UK


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



[POLL] Logging

2003-11-20 Thread Pitre, Russell
I need to use a robbust logging api for my webapp that I'm building, so
I decided I would cast a poll to get census of what everyone prefers


Logging, Which do you prefer?

1. Log4j
2. Java.util.Logging
3. Other



Russ


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



RE: [POLL] Logging

2003-11-20 Thread Shapira, Yoav

Howdy,
Log4j, hands-down and easily, especially with log4j v1.3 domains and the
awesome Chainsaw improvements.  Nothing else comes close.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Pitre, Russell [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 12:33 PM
To: Tomcat Users List
Subject: [POLL] Logging

I need to use a robbust logging api for my webapp that I'm building, so
I decided I would cast a poll to get census of what everyone
prefers


Logging, Which do you prefer?

1. Log4j
2. Java.util.Logging
3. Other



Russ


-
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: Change the name of a servlet in runtime

2003-11-20 Thread Tim Funk
Or the faq:
http://jakarta.apache.org/tomcat/faq/misc.html#saveas
-Tim
Christopher Schultz wrote:
Search the archives for Content-Disposition

Manuel Gil Perez wrote:

Hi all.

I have a servlet that reads a file from disk and it returns as output 
stream
in the servlet (octect-stream). From web browser, when I execute this
servlet the file is stored with the servlet name. How can I change 
this name
to the file name??



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


Re: [POLL] Logging

2003-11-20 Thread Christopher Schultz
Russ,

Log4j, hands-down and easily, especially with log4j v1.3 domains and the
awesome Chainsaw improvements.  Nothing else comes close.
Yoav Shapira
Millennium ChemInformatics
Absolutely agreed. Log4j works pretty much everywhere and I think it 
makes a *lot* more sense than the built-in Java logging.

-chris

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


Re: Multiple Tomcats handled by one Apache

2003-11-20 Thread Tim Funk
Its possible. (Hopefully one of links describes it) ...
http://jakarta.apache.org/tomcat/faq/connectors.html
-Tim

Wegener, Dierk wrote:

Hello,

is it possible to use different Tomcats (not multiple instances but real
different versions)
in one Apache installations? 

In workers.properties there is an entry for workers.tomcat_home which I
suppose to mean
that multiple instances of one Tomcat installation can be started as
workers.
My problem is that several systems on one physical machine need different
Tomcat versions
but all have to be reachable on Port 80. So my approach was to load the
mod_jk and to define
VirtualHosts (in httpd.conf) where the Include-directives point to the
different Tomcats. Using 
different mount points for JkMount should direct the requests to the correct
application.

Unfortunately I am not able to get to work such a configuration.

Can anyone help? Thanks!!

Dierk Wegener



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


org.apache.jasper.JasperException: Unable to compile class for JS P

2003-11-20 Thread Luis Estevens
Hello

 

I have Windows2000 Server, IIS5, jdk 1.4 and Tomcat 4112

 

After sucesuffly installed TomCat and tested it through
http://localhost/examples/servlet/HelloWorldExample
http://localhost/examples/servlet/HelloWorldExample  i tried to put some
jsp witch calls a bean to work

 

Unfortunally i get an org.apache.jasper.JasperException: Unable to compile
class for JSP

 

I created a jsp file named time.jsp and put it into a directory named
bigjava into webapp. The Timebeanclass witch is invoked in time.jsp and i
put into a jar file with the corrected classpath is placed into the classes
file, witch also contains the Timebeanclass.java

 

I already search google and found lots of people with the same problems, but
nothing applies to me

 

Got any clue?

 

Thanks in advance

 

Luis Estevens

 


Basic Authentication

2003-11-20 Thread Kumar, Sumit
Hello,

I have a third party application named Intraspect5.6. It uses Tomcat 4.1 as
servlet engine. It uses Basic Authentication. I want to use the same Basic
Authentication used by Intraspect for my custom application that I have
deployed in the same Tomcat instance. From my webapp, can I go to the table
where intraspect stores the userid and passwords and decode the password Or
is their a better way. I also donot understand how Basic Authentication is
implemented. Any help please.

Thnaks
-sumit
 

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



Re: Installation problem

2003-11-20 Thread [EMAIL PROTECTED]
Hi Harry,

Thanks a lot for your help and all the people belonging to
this forum who came forward to help me.

I understand that apache tomcat wasnt exactly built for
such file sharing..but somehow i am left with no
alternatives over here. 

Anyway, thanks again for ur patience and time.

Gratefully,
Sancha
 
 Okay Sancha
 
 Delete all of of the following lines from the 'web.xml'
 file in '$CATALINA_HOME/webapps/Sancha/WEB-INF':
 
 
 
 
 !-- JSPC servlet mappings start --
 
   servlet
  
 servlet-nameorg.apache.jsp.index_jsp/servlet-name
  
 servlet-classorg.apache.jsp.index_jsp/servlet-class
   /servlet
 
   servlet-mapping
  
 servlet-nameorg.apache.jsp.index_jsp/servlet-name
   url-pattern/index.jsp/url-pattern
   /servlet-mapping
 
 !-- JSPC servlet mappings end --
 
 
 
 
 Make sure you do NOT delete the closing /web-app tag at
 the end of the page (!) otherwise Tomcat will complain.
 
 Now you will have an 'empty' context (application). Any
 files you place into the '$CATALINA_HOME/webapps/Sancha'
 folder will be displayed as a directory list.
 
 Test it yourself by calling:
 
 http://your_ip_address:8080/Sancha/
 
 You should see just a list of files, assuming there are
 any to list.
 
 I hasten to add that this is not how Tomcat is normally
 used (!) and it could be that I have misunderstood your
 intentions for using Tomcat. It is a very crude way of
 'sharing' certain files, but I assume that is what you
 want to do.
 
 All the best.
 
 Harry Mantheakis
 London, UK
 
 
 --
 --- 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: [POLL] Logging

2003-11-20 Thread russo
We're using Log4j here under Weblogic for PeopleSoft. Very nice, although
I must say we haven't tried anything else...

Just starting to use Tomcat but, logging has not come up yet. Was glad to
see mention on the list of the built in Tomcat logging ability which we
may use for simple tasks and probably use Log4j for more complex logging
requirements--dependent on the scope and complexity of the webapp I
imagine.

-Ryan

 I need to use a robbust logging api for my webapp that I'm building, so
 I decided I would cast a poll to get census of what everyone prefers


 Logging, Which do you prefer?

 1. Log4j
 2. Java.util.Logging
 3. Other



 Russ


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

2003-11-20 Thread Filip Hanik
this is a tomcat user group, you are running weblogic

Filip

- Original Message -
From: Subramaniyam Hemalatha [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 7:44 PM
Subject: server error




hello ,

i get this following error when i run my jsp page.
will u be able to guide me.

thks

hema

Error 500--Internal Server Error

java.lang.NoClassDefFoundError: org/apache/log4j/Category
at com.ncs.app.framework.service.LogService.(LogService.java:30)
at
com.ncs.app.servlet.AgServletCtrl.serviceGetOrPost(AgServletCtrl.java:73)
at com.ncs.app.servlet.AgServletCtrl.doGet(AgServletCtrl.java:58)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6291)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3575)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2573)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)


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



Apache Virtual Hosts with Tomcat behind Localdirector

2003-11-20 Thread Dave Morrow
I have 2 Apache2 webservers each running multiple virtual hosts on different
ports (with a single IP address on each server) integrated with Tomcat using
mod_jk2

My Apache virtual hosting is setup as;

VirtualHost *:8000
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/website1.mycompany.com
ServerName mywebsite1.mycompany.com
ErrorLog logs/mywebsite1.mycompany.com-error_log
CustomLog logs/mywebsite1.mycompany.com-access_log common
/VirtualHost
VirtualHost *:8001
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/website2.mycompany.com
ServerName mywebsite2.mycompany.com
ErrorLog logs/mywebsite2.mycompany.com-error_log
CustomLog logs/mywebsite2.mycompany.com-access_log common
/VirtualHost

The configuration is working fine. For example, I can connect to
http://server1:8000/MyApp1 http://server1:8000/MyApp1  and
http://server2:8001/MyApp2 http://server2:8001/MyApp2 

I have configured the uri statements in the workers2.properties files such
that /MyApp1 is only accessible to the website on port 8000 as such;
[uri:*:8000/MyApp1/*]
[uri:*:8001/MyApp2/*]

Now, here is where I run into difficulties.  I am running a Cisco
Localdirector in front of these 2 webservers in order to provide port
mapping, load balancing etc.  For example, the local director receives
traffic on a virtual address (on port 80) and redirects traffic to the
appropriate web site (on a different port).  The problem is that the
Apache/Tomcat integration somehow breaks at this point (although pure http
traffic redirects properly).  I should mention here that if I configure a
webapp on the default virtual host in Apache, the re-direction through the
localdirector works fine.  It only breaks when I use a port based virtual
host in Apache.

If anyone else out there has done something similar, I would really
appreciate some assistance.

David Morrow
Systems Technical Lead, IT Operations
P: (519) 951-6079
F: (519) 451-6615
mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 
..poor planning on your part does not make an emergency on my
part

 This message has originated from Autodata Solutions.  The attached material
is the Confidential and Proprietary Information of Autodata Solutions. This
email and any files transmitted with it are confidential and intended solely
for the use of the individual or entity to whom they are addressed. If you
have received this email in error please delete this message and notify the
Autodata system administrator at  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 




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



Path not found problem.

2003-11-20 Thread Yansheng Lin
My setting:

- Tomcat-Standalone
- Context 
className=org.apache.catalina.core.StandardContext 
cachingAllowed=true 
charsetMapperClass=org.apache.catalina.util.CharsetMapper 
cookies=true  
crossContext=false 
debug=0 
docBase=C:\Web\development\eclipse\workspace\j2ee-test\web
mapperClass=org.apache.catalina.core.StandardContextMapper 
path=/j2ee 
privileged=false 
reloadable=false 
swallowOutput=false 
useNaming=true 
wrapperClass=org.apache.catalina.core.StandardWrapper
- Directory structure:
j2ee-test
|- doc
|- src
|- web
|- jsp
|testMain.jsp
|- styles
|global.css
|- WEB-INF
|...

And here is the problem. In my testMain.jsp page, I have:
  style type=css/text src=../styles/global_style.css 
  style type=css/text src=../styles/elements.css 
  style type=css/text src=../styles/navigation.css 

But I have to comment out these three lines in order for the page to be
displayed in IE, otherwise IE doesn't display anything(not even errors), while
Mozilla just ignores it.

I tried both http://localhost:8080/j2ee/jsp/ and
http://localhost:8080/j2ee/styles/, I can see my files under that directory.  I
also tried to play with the '..' a bit, but none worked.

Anyone see the problem? 

Thanks in advance!

-Yan



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



RE: Path not found problem.

2003-11-20 Thread Yansheng Lin
Sorry directory should be, (typo):

- Directory structure:
j2ee-test
|- doc
|- src
|- web
|- jsp
|- testMain.jsp
|- styles
|- global_style.css
|- 
|- WEB-INF
|...


-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 20, 2003 10:52 AM
To: 'Tomcat Users List'
Subject: Path not found problem.


My setting:

- Tomcat-Standalone
- Context 
className=org.apache.catalina.core.StandardContext 
cachingAllowed=true 
charsetMapperClass=org.apache.catalina.util.CharsetMapper 
cookies=true  
crossContext=false 
debug=0 
docBase=C:\Web\development\eclipse\workspace\j2ee-test\web
mapperClass=org.apache.catalina.core.StandardContextMapper 
path=/j2ee 
privileged=false 
reloadable=false 
swallowOutput=false 
useNaming=true 
wrapperClass=org.apache.catalina.core.StandardWrapper
- Directory structure:
j2ee-test
|- doc
|- src
|- web
|- jsp
|testMain.jsp
|- styles
|global.css
|- WEB-INF
|...

And here is the problem. In my testMain.jsp page, I have:
  style type=css/text src=../styles/global_style.css 
  style type=css/text src=../styles/elements.css 
  style type=css/text src=../styles/navigation.css 

But I have to comment out these three lines in order for the page to be
displayed in IE, otherwise IE doesn't display anything(not even errors), while
Mozilla just ignores it.

I tried both http://localhost:8080/j2ee/jsp/ and
http://localhost:8080/j2ee/styles/, I can see my files under that directory.  I
also tried to play with the '..' a bit, but none worked.

Anyone see the problem? 

Thanks in advance!

-Yan



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

2003-11-20 Thread Kumar, Sumit
Can somebody suggest how to implement Basic Authentication in Tomcat4.1 or
use an existing Basic Authentication being used by other application.

Thanks
-sumit

-Original Message-
From: Kumar, Sumit 
Sent: Thursday, November 20, 2003 11:44 AM
To: 'Tomcat Users List'
Subject: Basic Authentication


Hello,

I have a third party application named Intraspect5.6. It uses Tomcat 4.1 as
servlet engine. It uses Basic Authentication. I want to use the same Basic
Authentication used by Intraspect for my custom application that I have
deployed in the same Tomcat instance. From my webapp, can I go to the table
where intraspect stores the userid and passwords and decode the password Or
is their a better way. I also donot understand how Basic Authentication is
implemented. Any help please.

Thnaks
-sumit
 

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

2003-11-20 Thread eric perso
It s not use in the class java.net.Authenticator ?
See it


 -Original Message-
 From: Kumar, Sumit [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, November 20, 2003 7:01 PM
 To: 'Tomcat Users List'
 Subject: RE: Basic Authentication
 
 
 Can somebody suggest how to implement Basic Authentication in 
 Tomcat4.1 or
 use an existing Basic Authentication being used by other application.
 
 Thanks
 -sumit
 
 -Original Message-
 From: Kumar, Sumit 
 Sent: Thursday, November 20, 2003 11:44 AM
 To: 'Tomcat Users List'
 Subject: Basic Authentication
 
 
 Hello,
 
 I have a third party application named Intraspect5.6. It uses 
 Tomcat 4.1 as
 servlet engine. It uses Basic Authentication. I want to use 
 the same Basic
 Authentication used by Intraspect for my custom application 
 that I have
 deployed in the same Tomcat instance. From my webapp, can I 
 go to the table
 where intraspect stores the userid and passwords and decode 
 the password Or
 is their a better way. I also donot understand how Basic 
 Authentication is
 implemented. Any help please.
 
 Thnaks
 -sumit
  
 
 -
 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]



Where can I find mod-jk2 for RedHat 9.0?

2003-11-20 Thread Asif Chowdhary



Asif Chowdhary
System Analyst
x.eye incorporated
 
Phone: (905) 624-6608 ext. 280 
mailto:[EMAIL PROTECTED]  
www.xeye.com  


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



RE: Designing Systems Help!

2003-11-20 Thread Goehring, Chuck Mr., RCI - San Diego
Vaneet,

There are a ton of open source projects at www.sourceforge.net.  There is a keyword 
search capably to find existing projects.  Check the Development Status and other 
project attributes to see if a project meets your objectives.  Don't know if there is 
a Document Management system, but you might find a framework or taglib that will cover 
some of the pieces.

And of course Jakarta has many framework and components libraries for doing various 
things.

Chuck

-Original Message-
From: Vaneet Sharma [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 1:19 AM
To: Tomcat Users List
Subject: Designing Systems Help!


Hi all.
. Currently i am designing a document management system. According to the architecture 
proposed, it will be a three - tier architecture. (web based)I am looking forward to 
use J2EE ..  i will be using Tomcat to run it.
 What i need to know is ? Is there any open source project for Document and Knowledge 
Management Systems. (Basically versioning the files and searching, storing, and other 
features). I think i can use good ready made reusable objects in my design.? Where can 
i get an idea .. on how to desing a good document management system.  I want the 
business rules to lie in an XML file so that the inteface , database and coding need 
not be changed. Lets say, if my company wants to add some features on the interface , 
then they can specify in XML file and whole system can be reflected.
 I would 
appreciate very much any help on this subject.
 My research work has led me to Adaptive Reflective Systems. But still, as there are 
lot of industry experts, i would like to have a feedback.
   Kind Regards to all
Yours Vaneet
 

-Original Message- 
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wed 19/11/2003 14:25 
To: Tomcat Users List 
Cc: 
Subject: RE: Tomcat  OpenJMS Design Pattern?




Howdy,
I've used and use OpenJMS with tomcat all the time, including in several
production systems.

What are you looking for specifically?  A document?  Code that sends
messages to an OpenJMS queue/topic, received from an OpenJMS
queue/topic, all of the above?

I've actually gone from using tomcat's JNDI support to specifying the
JMS connection parameters in an app-specific configuration file and
creating the JMS objects myself.  But I had it working via tomcat's JNDI
before as well.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Gavin, Rick [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 6:25 PM
To: Tomcat Users List
Subject: Tomcat  OpenJMS Design Pattern?

Hi All,
  Just wondering if any could post a working design pattern for using
openJMS or another open
JMS engine with tomcat, preferably a model using asynchronous queue
message
handling.  I
figured someone around here has done it and I would rather use a tried
and
true model.

Looking for some basics about best intregration method, and or for
dealing
with async message
Handling.

I currently have openJMS setup using persistent Database storage, using
JNDI
content lookup to
Get the JMS connection factory, is this better looked up once and bound
to
servlet context as an
Application scope variable, etc, etc?

Thanks for you any help,

Rick



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]





OT: Linux specific JVM problem

2003-11-20 Thread Nikola Milutinovic
Hi all.

I have a problem which, I suppose, I can solve - this way or another. I'd like to hear 
a recomendation from the list, since I'm supposed to go live ASAP.

I have installed:

- Mandrake Linux 9.1 - paranoid security setting
- Sun JDK 1.4.2 rel_02
- Tomcat 4.1.24 from RPM

If I try to start Tomcat via /etc/init.d/tomcat4 start it dies. If I start it 
manually, it runs.

I have tracked down the problem to permissions. The regular way tries to run Tomcat 
and it's underlying JVM as user tomcat4 and that fails with this message:

[EMAIL PROTECTED] tomcat4]# more catalina.out
#
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Server VM (1.4.2_02-b03 mixed mode)
#
# Error ID: 4F533F4C494E55580E43505001C9
#

Heap at VM Abort:
Heap



Another exception has been detected while we were handling last error.
Dumping information about last error:
ERROR REPORT FILE = (N/A)
PC= 0x46098c28
SIGNAL= 11
FUNCTION NAME = (N/A)
OFFSET= 0x
LIBRARY NAME  = (N/A)
Please check ERROR REPORT FILE for further information, if there is any.
Good bye.

If I run java -version as user tomcat4 I get the same. If I run it as root, it 
is OK.

Running 'strace -o run-out.log -f su - tomcat4 -c /usr/bin/dtomcat4 start' shows 
that JVM is trying to access portions of /proc file system and fails. I recall, that 
I've managed to solve the problem by adding user tomcat4 to adm group.

This is the STDOUT of strace:

/proc/26880/status: Permission denied

And this is from strace log:

16313 open(/proc/stat, O_RDONLY)  = -1 EACCES (Permission denied)
16313 open(/proc/cpuinfo, O_RDONLY)   = -1 EACCES (Permission denied)
16313 open(/proc/meminfo, O_RDONLY)   = -1 EACCES (Permission denied)
16313 open(/proc/self/stat, O_RDONLY) = -1 EACCES (Permission denied)

Is that the recomended way to go?

Any advice?

Nix.



Re: Where can I find mod-jk2 for RedHat 9.0?

2003-11-20 Thread Luca
Very short question!!!

Download source
http://www.apache.inetcosmos.org/dist/jakarta/tomcat-connectors/jk2/jakarta-tomcat-connectors-jk2-src-current.tar.gz

and compile it with your version of apache.
Very simple.

--- Asif Chowdhary [EMAIL PROTECTED] wrote:
 
 
 
 Asif Chowdhary
 System Analyst
 x.eye incorporated
  
 Phone: (905) 624-6608 ext. 280 
 mailto:[EMAIL PROTECTED]  
 www.xeye.com  
 
 

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


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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



Re: mod_jk + apache 2.0.40 + redhat 9.0

2003-11-20 Thread Oscar Carrillo
I would suggest using more than one as a reference in case something is 
misunderstood or vague. My tutorial is below:

http://daydream.stanford.edu/tomcat/install_web_services.html

I link to many other sites that are useful, and I believe John Turner's 
site (which I link to) links to an RPM based solution.

Oscar

On Thu, 20 Nov 2003, Peter Maas wrote:

 Hi all,
 
 googling for mod_jk solutions yielded far to much tutorials. what is the 
 best one??
 
 P
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



  1   2   >