Re: Mod_jk setup problems

2005-09-20 Thread Don Boling

Thanks Mark,

I this helped a lot ... I'll insert comments as well... ;)

Mark Eggers wrote:


A couple of things here.  I'll try to insert comment
where appropriate.

--- Don Boling [EMAIL PROTECTED] wrote:

 


I can't seem to get anything to successfully pass
though the mod_jk connector to the webapp.
   



What version of mod_jk?
 


mod_jk 1.2.14



 


My mod_jk.conf , workers.properties are as follows.

$ less mod_jk.conf
#
   JkWorkersFile
/usr/local/etc/apache/workers.properties
   JkLogFile  /var/log/jk.log
   JkLogLevel debug
   



Later versions of mod_jk need JkShmFile on UNIX.
 

I removed the loadbalance setting... do I still need this? I have not 
seen any reference as to

what this should be set to.


 


   JkMount /*.jsp worker1
   JkMount /servlet/* worker1
   JkMount /examples/* worker1
   JkMount /docstore worker1
   JkMount /docstore/* worker1
   



My installs of Tomcat on Linux and Windows do not have
an examples web application.  I have /jsp-examples and
a /servlets-examples contexts.  You might try:

JkMount /jsp-examples/*.jsp worker1
JkMount /servlet-examples/servlet/* worker1
 


I corrected these, thanks for pointing those out...


I don't know what your other applications are, but
I'll comment on a general setup in a bit.

 


# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.reclycle_timeout=300
   



You probably don't need worker.worker1.lbfactor since
you're not using load balancing.  Recycle
(worker.worker1.reclycle_timeout) needs to be spelled
correctly.
 


oops, thanks ... new mod_jk.conf is ...

$ less mod_jk.conf
#
   JkWorkersFile /usr/local/etc/apache/workers.properties
   JkLogFile  /var/log/jk.log
   JkLogLevel debug

VirtualHost localhost
   ServerName localhost

   # Sample JkMounts.  Replace these with the paths you would
   # like to mount from your JSP server.
   JkMount /*.jsp worker1
   JkMount /servlet-examples/servlet/* worker1
   JkMount /jsp-examples/*.jsp worker1
   JkMount /docstore worker1
   JkMount /docstore/* worker1
/VirtualHost
mod_jk.conf (END)



[Lots of log stuff deleted]

With the exceptin of docstore, I did not see anything
that matched your JkMount statements.  Since there was
no match, no requests were forwarded.

In general, you will probably not have
$CATALINA_HOME/webapps and Apache's DocumentRoot
ovelapping each other.  Since they don't overlap,
Apache will not know anything about static files
(html, css, etc.) that live in $CATALINA_HOME/webapps.

You can use Directory and Alias directives in Apache
to set up access and map the directory into a URI
space that Apache knows about.

With later versions of mod_jk, you can use JkAutoAlias
to map directories for you.  From the documentation at
http://jakarta.apache.org/tomcat/connectors-doc/config/apache.html

JkAutoAlias /opt/tomcat/webapps

Then you can use JkMount to map certain requests
(*.jsp, /*/servlet/*).

JkMount /jsp-examples/*.jsp worker1

The value of JkAutoAlias appears to be prepended to
the JkMount directive to find the physical location.

I've not used JkAutoAlias, but this appears to be a
nice alternative to Directory and Alias directives in
httpd.conf.
 


I am trying the JkAutoAlias route ... almost there.


In short:

1. Add JkShmFile to httpd.conf
2. Remove lbfactor from workers.properties
3. Change the spelling of recycle
4. Use JkAutoAlias or Directory / Alias directives to
put the appropriate directories within Apache's
document and URI space.

I hope that gets you up and running.

/mde/
 


I have it running now with 'less' errors in jk.log ...

I have noticed that 8080 is not responding any more if I just try to hit 
TC directly
so I think, correct me if I'm wrong... this won't work even if setup 
correctly, until I

fix that.

Thanks again,

Don


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



Mod_jk setup problems

2005-09-19 Thread Don Boling
 to map URI 
'/index.html' from 0 maps
[Sun Sep 18 23:55:51 2005] [7507:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI 
'/HEADER.html' from 0 maps
[Sun Sep 18 23:55:51 2005] [7507:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI 
'/README.html' from 0 maps
[Mon Sep 19 00:40:41 2005] [7501:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/' 
from 0 maps
[Mon Sep 19 00:40:41 2005] [7501:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI 
'/index.html' from 0 maps
[Mon Sep 19 00:40:41 2005] [7501:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI 
'/HEADER.html' from 0 maps
[Mon Sep 19 00:40:41 2005] [7501:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI 
'/README.html' from 0 maps
[Mon Sep 19 07:12:08 2005] [7503:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI 
'/_vti_bin/_vti_aut/fp30reg.dll' from 0 maps
[Mon Sep 19 08:31:45 2005] [7504:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI 
'/proxycheck/proxyjudge.cgi' from 0 maps
[Mon Sep 19 14:19:00 2005] [7500:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/' 
from 0 maps
[Mon Sep 19 14:19:00 2005] [7500:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI 
'/index.html' from 0 maps
[Mon Sep 19 14:19:00 2005] [7500:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI 
'/HEADER.html' from 0 maps
[Mon Sep 19 14:19:00 2005] [7500:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI 
'/README.html' from 0 maps
[Mon Sep 19 15:36:41 2005] [7501:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/' 
from 0 maps
[Mon Sep 19 15:36:41 2005] [7501:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI 
'/index.html' from 0 maps
[Mon Sep 19 15:36:41 2005] [7501:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI 
'/HEADER.html' from 0 maps
[Mon Sep 19 15:36:41 2005] [7501:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI 
'/README.html' from 0 maps

/var/log/jk.log (END)


I see the process running as I expect in the proc list ...
$ ps aux | grep www
www  7500  0.0  0.9  4124 2392  ??  I 9:37PM   0:00.01 
/usr/local/sbin/httpd
www  7501  0.0  0.9  4108 2392  ??  I 9:37PM   0:00.02 
/usr/local/sbin/httpd
www  7502  0.0  1.0  4232 2484  ??  I 9:37PM   0:00.01 
/usr/local/sbin/httpd
www  7503  0.0  0.9  4124 2392  ??  I 9:37PM   0:00.01 
/usr/local/sbin/httpd
www  7504  0.0  0.9  4100 2376  ??  I 9:37PM   0:00.01 
/usr/local/sbin/httpd
www  7507  0.0  0.9  4120 2392  ??  I 9:39PM   0:00.01 
/usr/local/sbin/httpd
www  7780  0.0  0.9  4084 2356  ??  I11:54PM   0:00.00 
/usr/local/sbin/httpd
www  6784  0.0 13.9 242500 35112  p0  S 5:15PM   3:31.83 
/usr/local/jdk1.5.0/bin/java -jar 
-Dcatalina.home=/usr/local/jakarta-tomcat5.5 bin/bootstrap.jar start



and I see it listening in the output from netstat ...

$ netstat -an | grep 80
tcp4   0  0  127.0.0.1.8005 *.*LISTEN
tcp4   0  0  *.8009 *.*LISTEN
tcp4   0  0  *.8180 *.*LISTEN
tcp4   0  0  *.80   *.*LISTEN
$

http.conf has the mod_jk entries as well...

$ grep mod_jk httpd.conf
LoadModule jk_module  libexec/apache/mod_jk.so
AddModule mod_jk.c
Include /usr/local/etc/apache/mod_jk.conf
$

now when I try to connect to my webapp ... I get nothing. I was getting 
a directory listing, until I set listing to 'false' in web.xml


TIA,
any ideas,

Don

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



Tomcat and IIS load balancing configuration

2005-08-29 Thread Don Hayes
I am testing a load balancing configuration with Tomcat and IIS using the
isapi_redirector.  My configuration works if I have a single worker defined
in my workers.properties file but it fails if I try to add a second worker
(ie, I change the balance_workers entry near the bottom of the file to the
one that is currently commented out).

One of the symptoms I see of the problem is that when my servlet calls
request.getRequestedSessionId() I get back a null.

Here is my workers.properties file:

workers.tomcat_home=d:\tomcat
workers.java_home=c:\progra~1\java\jre15~1.0_0
ps=\
worker.list=wlb

worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
worker.ajp13w.cachesize=500
worker.ajp13w.cache_timeout=600
worker.ajp13w.socket_keepalive=1
worker.ajp13w.recycle_timeout=300
worker.ajp13w.lbfactor=1
worker.ajp13w.debug=9

worker.ajp13x.type=ajp13
worker.ajp13x.host=localhost
worker.ajp13x.port=8010
worker.ajp13x.cachesize=500
worker.ajp13x.cache_timeout=600
worker.ajp13x.socket_keepalive=1
worker.ajp13x.recycle_timeout=300
worker.ajp13x.lbfactor=1
worker.ajp13x.debug=9

worker.wlb.type=lb
#worker.wlb.balance_workers=ajp13w,ajp13x
worker.wlb.balance_workers=ajp13w
worker.wlb.sticky_session=1

worker.jkstatus.type=status



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



Re: images/static content in jar

2005-04-10 Thread Don Hill
Nikola Milutinovic wrote:
Don Hill wrote:
I have a war that has folder like /images and /content, is there a 
way to config tomcat so that I can package these in  jar, I know I 
can write a custom servlet todo this but I would like this to be 
handled by the servers servlet container. The reason this is my 
concern is that I think that the servlet container has a better model 
for handling request rather than a servlet that has to invoke a 
openStream, seems this would cause some contention and perf issues.

Just to clarify (not really offering a solution, sorry). The reason 
why you want to do that is to have some ability like skins in 
Mozilla and other products, right?

I mean, all static content can be a packaged into a WAR file, if 
packaging is what you need. If you'd like to have skins for your 
application, even dynamic skins, I'd sugest a servlet that would 
unpack/remove all static content from a set of JARs. A skin change would:

- unpack a new JAR to a temp dir
- stop or pause the application
- mv static dir to some other name
- mv temp dir to static
- un-pause application
- cleanup
Access to static content would still be better off being handled 
through a servlet, how would you expire the old data otehrwise? 
Imagine half of your skin being new and the other half old...

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

Yeah but this is a little more than that, the app has many, many , many 
resources curently we are using a servlet that calls Singleton in the 
get and the class then gets the bytes, there is a bit of contention at 
times, this app may at times have like 1000 users and when rendering 
pages may need images, style sheets, xml.

I was just wondering before I re-design the servlet and resource class.
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


images/static content in jar

2005-04-09 Thread Don Hill
I have a war that has folder like /images and /content, is there a way 
to config tomcat so that I can package these in  jar, I know I can write 
a custom servlet todo this but I would like this to be handled by the 
servers servlet container. The reason this is my concern is that I think 
that the servlet container has a better model for handling request 
rather than a servlet that has to invoke a openStream, seems this would 
cause some contention and perf issues.

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


web resources in jar

2005-04-07 Thread Don Hill
I have a war that has folder like /images and /content, is there a way 
to config tomcat so that I can package these in  jar, I know I can write 
a custom servlet todo this but I would like this to be handled by the 
servers servlet container.

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


authentication question

2004-07-23 Thread Don Hill
Hi,

I am trying to get application to authenticate so that the credentials
are carried into all subsequent request, what I have a persistence
realm that holds all the user/pasword and other info, I have a custom
login screen that we are using for all appservers websphere,weblogic
.. these other appserver have a API that allows me to login and
authenticate the user, I want to do the same thing with tomcat 4.x,
5.x without using the web.xml security constraints, does anyone know a
way that I can authenticate a user, I will be using the DataSource
Realm that will be mapped to my persistence store. I have tried to use
ServerFactory to try and get the services and the realm but haven't
any luck with this.

Thanks, don

  

-- 
Best regards,
 Don  mailto:[EMAIL PROTECTED]


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



jndi lookup of Realm

2004-07-23 Thread Don Hill
Hi,

Is it possible to do a jndi lookup of the Realm and then once you have
this handle to call authenticate() on the realm ?

.don


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



jmx and tomcat realm

2004-07-22 Thread Don Hill
Hi,


How would I use JMX/tomcat to get a handle on the realm and be able to
call methods like authenticate(). I know I can get a realm but I
believe its not writeable. I was trying to use the ServerFactory but
it seems I get a classnotfound exception, are the container
classloader not a child of the server ?




Any thought or suggestions



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



custom login to tomcat realm

2004-07-21 Thread Don Hill

  I am looking for some direction as to what APi I should be using for
  doing a custom login to tomcat 4.x 5.x, I don't want to use the j2ee
  container authentication, any suggestion on where I could find some
  info or sample code, I need to also do things like, get user list,
  get Roles, groups .
  

Thanks


-
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



RE: best way to debug JSP's ???

2003-11-05 Thread Don Jones
One of the techniques I use alot is to include a JSP at the bottom of every page that 
is essentially a JSP Debugging page.  This code mines all of the JSP objects and 
displays all of the values.  I can toggle on or off what I want to see and when I go 
to production I either comment out the include or remove it.   I also use log4j within 
my JSPs so that I can include info, warn and debug output from the JSPs in my web app 
log.  Whenever I wonder what is going on in a page I uncomment the debugging include 
and almost always this leads me right to the source of the problem.  
 
cheers, 
don jones

-Original Message- 
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wed 11/5/2003 8:06 AM 
To: Tomcat Users List 
Cc: 
Subject: RE: best way to debug JSP's ???




Hola,

I hope this isn't terribly off topic, but I couldn't think of a better
list...

No, it's not off topic. Best way to debug JSPs?  Hmm, how about not use
any?  Just kidding.  (Partially).

- Have plenty of logging statements in the JSP, outputting various
variable values.

(BTW, is there a way to get at the servlet that's generated by
compiling
the
JSP?)

It's in the $CATALINA_HOME/work/[engine]/[host]/[context] directory.

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]

JSP Debugging: Eclipse vs. IntelliJIDEA: integration with Tomcat

2003-11-05 Thread Don Jones
Has anyone compared Eclipse vs. IDEA plus others as far as Tomcat integration and 
overall JSP web app development/debugging?
 
Don Jones
Madison WI, USA

-Original Message- 
From: Harry Mantheakis [mailto:[EMAIL PROTECTED] 
Sent: Wed 11/5/2003 9:38 AM 
To: Tomcat Users List 
Cc: 
Subject: Re: best way to debug JSP's ???




 The very best thing to do with JSPs is never put any Java code into
 them. If you can avoid that, and always use taglibs or other JSP
 directives, etc. then you'll be much better off.

I second the use of tag libraries. Also, with a decent IDE (such as Eclipse)
you can refactor the code in your tab libraries without breaking your JSPs.

Harry Mantheakis
London



-
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 Worker Not Found - help?

2003-10-08 Thread Don Heitzmann
Must be a configuration problem, but I don't see it.  Have set up Tomcat 
and Apache with mod_jk, using John Turner's excellent documentation.  Both 
servers work, but can't execute sample jsp's from Apache (get 500 Server 
error).  Have turned on JkLogLevel to debug, and looking at mod_jk.log, 
see the last message in log is from jk_worker.c, saying ...did not found 
worker (sic).
The prior log message says it's looking for a worker named ajp13.  My 
workers.properties file defines the worker named ajp13... I get no errors 
at startup, so I'm presuming that the file is found and is correct, syntax 
wise.

This must be something stupid, or simple (or both)... Can anyone suggest 
what to look for?  Thanks.
-don

p.s. using Win2kProfessional, Tomcat 4.1.27, Apache 2.0.47, mod_jk_2.0.43

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


Re: Tomcat4.1, jk2, and apache 1.3

2003-10-08 Thread Don Heitzmann
Mark, boy can I identify with your first sentenceI'm in the same boat, 
and I too am going insane. (Maybe we can meet when we both get there :-) )

The best resource I've found (which I didn't find until a serendipitous 
google probe after about 4 days of suffering) is at 
www.johnturner.com   This fellow has written a series of docs about how to 
get all this stuff going.  Although I have to tell you that it's still not 
working right on my machine, I will say that I'm miles closer and also have 
a better idea what's going on, having read his doc.
Perhaps you'll find that it works just fine on your machine.  Good luck.
-don

At 05:17 PM 10/8/2003 -0500, you wrote:
Hi.  I am trying to get the mod_jk2 to load into apache 1.3 and I am
slowly going insane.  I have googled my way around the web and have
seen lots of people ask the same type of question I am asking, but there
are few good answers.  (I feel a bit like that guy in the commercial
that finished the internet.)
I have in my httpd.conf file:
LoadModule  jk2_module libexec/mod_jk2.so
Include tomcat/conf/auto/mod_jk.conf
I have read that there is a way to get tomcat to produce its own
mod_jk.conf-auto file, but I cannot find how to do it.  I have looked at
the jk2 docs a lot, but it seems that they are for a different
(incompatible) version.  The JkMount directives cannot be added manually
either, since mod_jk2 doesn't seem to understand these.
What magic do I need to do so that tomcat 4.1 can produce the jk2 config
file automatically?
Thanks,
Mark
-
Nonviolence is the answer to the crucial political and moral questions
of our time; the need for man to overcome oppression and violence
without resorting to oppression and violence. 
-- Martin Luther King Jr.
Mark Claassen
Donnell Systems, Inc.
300 S. St. Louis Blvd. Ste. 203
South Bend, IN 46617
E-mail: mailto:[EMAIL PROTECTED]
Voice: (574)232-3784
Fax: (574)232-4014
-
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]


Referencing Tomcat JNDI datasource

2003-08-20 Thread Don Ross
Hello,

I am using Tomcat 4.1.18 and have setup a JNDI datasource for database connection 
pooling.

I would like to reference this datasource from another application that is not running 
under Tomcat.

In searching the mailing list archive and other forums I found dated information that 
indicated that this was not possible that I would have to use another database 
connection pooling utility such as DbConnectionBroker from Javaexchange.com.

Is this still the case with the latest versions of Tomcat?

Has anyone used DbConnectionBroker to provide database connection pooling with Tomcat 
and in a stand alone application?

Any suggestions on other ways to use a database connection pool with Tomcat and from a 
stand alone application?

Thanks,

Don


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



Where to put js scripts on tomcat server...

2003-08-14 Thread Don Reese
Greetings,

I assume this has been asked before, but I can't seem to track it down in
the archives
or any other document I have found.

I am having trouble inserting a

script type=text/javascript language=javascript
src=filename.js/script

into my HTML output and the browser being able to find the JS file.

I have tried putting the js files into various directories but have not been
successful in find the correct place.

I have tried putting them in the following locations:

webapps/*
webapps/myservlet/*
webapps/myservlet/WEB-INF
webapps/ROOT
webapps/ROOT/WEB-INF

but none of these fix the problem of the missing JS file in the brower.

Any pointers on what I may be doing wrong (I assume that Tomcat can
serve up the JS files just as it can my Image files).

Thanks in advance,

Don Reese



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



Re: Where to put js scripts on tomcat server...

2003-08-14 Thread Don Reese
Hi Jacob,

With your confirmation as to where the files should be, I was
able to track down the issue and it is now resolved.  Case
sensitivity was the issue - fixed that and now all is well.

Don Reese

- Original Message - 
From: Jacob Kjome [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 11, 2003 9:35 PM
Subject: Re: Where to put js scripts on tomcat server...



 It will be relative to the directory you see in your browser.  For
 instance, if you have this...

 http://localhost:8080/mycontext/mypage.jsp

 The .jsp file below would be loaded from the root of /mycontext just like
 mypage.jsp is.  The URL to it would be...

 http://localhost:8080/mycontext/filename.js

 Keep in mind that the script source path has nothing to do with servlet
 mappings and such.  It is resolved by the browser.  This means it
 definitely cannot be under WEB-INF since that is not directly accessible
 via a browser.  It is a server-side concept so only server-side code has
 access to it.  Here is where it would physically exist in your webapp...

 /webapps/mycontext/filename.js


 Jake

 At 08:48 PM 8/11/2003 -0400, you wrote:
 Greetings,
 
 I assume this has been asked before, but I can't seem to track it down in
 the archives
 or any other document I have found.
 
 I am having trouble inserting a
 
 script type=text/javascript language=javascript
 src=filename.js/script
 
 into my HTML output and the browser being able to find the JS file.
 
 I have tried putting the js files into various directories but have not
been
 successful in find the correct place.
 
 I have tried putting them in the following locations:
 
 webapps/*
 webapps/myservlet/*
 webapps/myservlet/WEB-INF
 webapps/ROOT
 webapps/ROOT/WEB-INF
 
 but none of these fix the problem of the missing JS file in the brower.
 
 Any pointers on what I may be doing wrong (I assume that Tomcat can
 serve up the JS files just as it can my Image files).
 
 Thanks in advance,
 
 Don Reese
 
 
 
 -
 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: Problem confinguring MySQL JNDI Datasource RH Linux 7.2

2003-08-04 Thread Don Ross
In case anyone else runs into the following error message:

Error:  DBCP borrowObject failed: java.sql.SQLException: Server connection
failure during transaction

The cause of the error was the mysql user I was using to access the database didn't 
have permission to access it.

The JNIDI Datasource howto has you create a user called javauser in your mysql 
database with the following command:

GRANT ALL PRIVILIGES ON *.* TO [EMAIL PROTECTED] IDENTIFIEd BY 'javadude' WITH GRANT 
OPTION;

Since, the MySQL setup I was using had entries in the mysql system database table db 
restricting users to certain databases. I also had to add the javauser to this table 
and give the user permission to access the javatest table.

Don

-Original Message-
From: Don Ross 
Sent: Thursday, July 31, 2003 5:59 PM
To: Tomcat Users List
Subject: RE: Problem confinguring MySQL JNDI Datasource RH Linux 7.2


Scott,

I tried your suggestion and I am still getting the same error.

Below is the log from the context DBTest, which I setup to use the datasource.

I tried another suggestion from following URL:

http://www.java-internals.com/code/resourcefactory/readme.html

which also defined the datasource GlobalNamingResources section and got a little 
further.

The java-internals suggestion uses a different resource type and added a factory 
parameter that references a jar file that I had to install in 
$CATALINA_HOME/common/lib/

After tryig their suggestion I following error:

java.sql.SQLException: Invalid authorization specification: Access denied for user: 
'[EMAIL PROTECTED]' (Using password: YES) error
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:659)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1562)
at com.mysql.jdbc.Connection.init(Connection.java:491)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:346)
at 
com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:199)
at 
com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:163)
at 
com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:134)
at foo.DBTest.init(DBTest.java:23)

Doesn't look like my user and password parameters are getting processed

Here are the sections I updated:

ResourceLink name=jdbc/MySQLConnectPool
  global=jdbc/MySQLConnectPool
  
type=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource /

Resource name=jdbc/MySQLConnectPool 
  auth=Container 
  
type=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource /

ResourceParams name=jdbc/MySQLConnectPool 

parameter
 namefactory/name
 
valuecom.java_internals.resourcefactory.MyResourceFactory/value
/parameter
parameter
  nameserverName/name
  valuelocalhost/value
/parameter
parameter
  namedatabaseName/name
  valuejavatest/value
   /parameter
parameter
nameusername/name
valuejavauser/value
/parameter

parameter
namepassword/name
valuejavadude/value
/parameter
/ResourceParams


DBTest log file after I implemented your changes

2003-07-31 17:10:14 StandardContext[/DBTest]: Starting
2003-07-31 17:10:14 StandardContext[/DBTest]: Processing start(), current 
available=false
2003-07-31 17:10:14 StandardContext[/DBTest]: Configuring default Resources
2003-07-31 17:10:14 StandardContext[/DBTest]: Configuring non-privileged default Loader
2003-07-31 17:10:14 StandardContext[/DBTest]: Configuring default Manager
2003-07-31 17:10:14 StandardContext[/DBTest]: Processing standard container startup
2003-07-31 17:10:14 WebappLoader[/DBTest]: Deploying class repositories to work 
directory /usr/local/jakarta-tomcat-4.1.24/work/Standalone/localhost/DBTest
2003-07-31 17:10:14 WebappLoader[/DBTest]: Deploy class files /WEB-INF/classes to 
/usr/local/jakarta-tomcat-4.1.24/webapps/DBTest/WEB-INF/classes
2003-07-31 17:10:14 WebappLoader[/DBTest]: Reloading checks are enabled for this 
Context
2003-07-31 17:10:14 ContextConfig[/DBTest]: ContextConfig: Processing START
2003-07-31 17:10:14 StandardContext[/DBTest]: Setting deployment descriptor public ID 
to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
2003-07-31 17:10:14 StandardContext[/DBTest]: Setting deployment descriptor public ID 
to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
2003-07-31 17:10:14 ContextConfig[/DBTest]:  Accumulating TLD resource

Problem confinguring MySQL JNDI Datasource RH Linux 7.2

2003-07-31 Thread Don Ross
)
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:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.sql.SQLException: Server connection failure during transaction. 
Attempted reconnect 3 times. Giving up.
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1704)
at com.mysql.jdbc.Connection.init(Connection.java:491)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:346)
at 
org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:83)
... 42 more
/catalina.out error

Does any one have any advice on what may be wrong?

I have successfully configured Tomcat 4.1.24 using the JNDI datasource howto example 
code on Windows 2000 using mysql-connector-java-3.0.8-stable-bin.jar, with MySQL 
3.23.44.

Thanks for your help,

Don


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



RE: Problem confinguring MySQL JNDI Datasource RH Linux 7.2

2003-07-31 Thread Don Ross
/localhost/DBTest]:   Resource 
parameters for UserTransaction = null
2003-07-31 17:10:14 StandardManager[/DBTest]: Seeding random number generator class 
java.security.SecureRandom
2003-07-31 17:10:15 StandardManager[/DBTest]: Seeding of random number generator has 
been completed
2003-07-31 17:10:15 StandardContext[/DBTest]: Posting standard context attributes
2003-07-31 17:10:15 StandardContext[/DBTest]: Configuring application event listeners
2003-07-31 17:10:15 StandardContext[/DBTest]: Sending application start events
2003-07-31 17:10:15 StandardContext[/DBTest]: Starting filters
2003-07-31 17:10:15 StandardWrapper[/DBTest:default]: Loading container servlet default
2003-07-31 17:10:15 StandardWrapper[/DBTest:invoker]: Loading container servlet invoker
2003-07-31 17:10:15 StandardContext[/DBTest]: Starting completed
2003-07-31 17:11:10 StandardContext[/DBTest]: Mapping contextPath='/DBTest' with 
requestURI='/DBTest/test.jsp' and relativeURI='/test.jsp'
2003-07-31 17:11:10 StandardContext[/DBTest]:   Trying exact match
2003-07-31 17:11:10 StandardContext[/DBTest]:   Trying prefix match
2003-07-31 17:11:10 StandardContext[/DBTest]:   Trying extension match
2003-07-31 17:11:10 StandardContext[/DBTest]:  Mapped to servlet 'jsp' with servlet 
path '/test.jsp' and path info 'null' and update=true

/DBTest log file

Thanks for the help,

Don 

-Original Message-
From: Scott Stewart [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 2:45 PM
To: 'Tomcat Users List'
Subject: RE: Problem confinguring MySQL JNDI Datasource RH Linux 7.2


You certainly can define your MySQL JNDI Datasource within the
GlobalResourceParams node in server.xml.  This is how I have it set up
currently and everything works fine (I am running Tomcat 4.1.24).  I sent
the following out the other day in response to a different thread, but it
applies here as well:

The global DataSource definition


!-- Global JNDI resources --
GlobalNamingResources

!-- Editable user database that can also be used by JNDI
DatabaseRealm to authenticate users --
Resource name=jdbc/MySQLConnectPool 
  auth=Container 
  type=javax.sql.DataSource /

ResourceParams name=jdbc/MySQLConnectPool 

parameter
nameusername/name
value/value
/parameter

parameter
namepassword/name
value/value
/parameter

parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
/parameter

parameter
nameurl/name
valuejdbc:mysql://your IP here:3306/your DB name
here?autoReconnect=true/value
/parameter

parameter
nameremoveAbandoned/name
valuetrue/value
/parameter

parameter
nameremoveAbandonedTimeout/name
value60/value
/parameter

parameter
namelogAbandoned/name
valuetrue/value
/parameter

parameter
namemaxActive/name
value200/value
/parameter

parameter
namemaxIdle/name
value3/value
/parameter

parameter
namemaxWait/name
value100/value
/parameter

/ResourceParams

/GlobalNamingResources


Realm definition using global DataSource


Realm  
className=org.apache.catalina.realm.DataSourceRealm 
dataSourceName=jdbc/MySQLConnectPool
userTable=customers 
userNameCol=customer_username 
userCredCol=customer_password
userRoleTable=roles 
roleNameCol=role 
debug=0
/


Context reference to global DataSource
--

ResourceLink name=jdbc/MySQLConnectPool
  global=jdbc/MySQLConnectPool
  type=javax.sql.DataSource /
  

Hope this helps!!

Thanks,

Scott Stewart


-Original Message-
From: Geralyn M Hollerman [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 1:24 PM
To: [EMAIL PROTECTED]
Subject: Re: Problem confinguring MySQL JNDI Datasource RH Linux 7.2


[EMAIL

Tomcat 4.1.24 context problem?

2003-04-02 Thread Don Sauer
 Okay, This is driving me nuts. I have  APACHE 2 + Tomcat 4.1.24 +
mod_jk configured. In my VirtualHost I set it so that /* =ajp13
/examples/* ajp13 and /hms/* ajp13. My Context is below, when I test my
configuration the http:///www.xyz.com/ comes up to Tomcats default page
eventhough it isn't within the new docBase - if I try a different page
in that docBase such as http://www.xyz.xom/about.jsp it comes up
correctly. Currently, the only hosts and contexts are to xyz.com the
logs show access to the different contexts correctly and it doesn't
throw and error in the catalina.out. What am I missing that it isn't
bringing up the index.jsp from the docBase? 

 Host name=www.xyz.com debug=0 appBase=/web/xyz/docs

  Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/



!-- Tomcat Root Context --
Context path= docBase=/web/xyz/docs debug=0
reloadable=true /
Context path=/examples
docBase=/usr/tomcat/webapps/examples/ debug=0 reloadable=true /
Context path=/hms docBase=/web/servlets/hms/ debug=0
reloadable=true 
   /Host


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



Symlink Problem after setting resources tag allowLinking=true

2003-03-05 Thread Don Ross
After looking through the mail archives and following the examples of
enabling symbolic links, I am still unable to get it to work.
Added following context to default server.xml following the definition of 
examples context.

Context path=/served docBase=served debug=0 reloadable=true
  Resources className=org.apache.naming.resources.FileDirContext
  allowLinking=true caseSensitive=false /
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=localhost_served_log. suffix=.txt
timestamp=true/
/Context
I'm running Tomcat 4.1.18 on RedHat Linux 7.2.

Have also tried setting docBase= in the Resources tag, but didn't
help.
I have a symbolic link jsp under my webapps/served/ directory that links 
to a directory outside of Tomcat directory structure.

After restarting tomcat still get 404 error when trying to access files in 
this directory.

Any help would be appreciated.

Thanks,

Don





_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


Re: [ot?] Frontpage extensions for tomcat or related items

2003-01-15 Thread Don Saxton
Isn't frontpage a webdav client? Tomcat docs (4.18) state that IE is a
webdav client. my impression was that Frontpage was needed to make it into a
writing / editing webdav client. If so that would give you the publishing
part.  There are other webdav clients you might want to check out at
wevdav.org.

Then comes the ...for jsp... part. I think at minimum it would have
respect taglib tags.  The last time I saw respect coming from ms was ten
years ago.


- Original Message -
From: Jason Pyeron [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 8:05 AM
Subject: [ot?] Frontpage extensions for tomcat or related items



 I am looking for resources related to Frontpage for jsp.
 does anyone know of some sites to look at, Google does not help much.

 -jason

 --
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 -   -
 - Jason Pyeron   http://www.pyerotechnics.com   -
 - Owner  Lead  Pyerotechnics Development, Inc. -
 - +1 410 808 6646 (c)   500 West University Parkway #1S -
 - +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
 -   -
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

 This message is for the designated recipient only and may contain
 privileged, proprietary, or otherwise private information. If you
 have received it in error, purge the message from your system and
 notify the sender immediately.  Any other use of the email by you
 is prohibited.




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



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




Help with using mod_jk2 continued

2002-12-09 Thread Don Jones
I can't offer any help on this but will be trying to get Apache 2.0.43
working with Tomcat 4.1.x with the mod_jk2 connector using binaries on Red
Hat 8.0.The docs say the mod_jk2 was built with Red Hat 7.2.   Do you by
chance know if the connector will work on Red Hat 8.0?

 

Don Jones

[EMAIL PROTECTED] 




JK 1.2.1 Red Hat 8.0

2002-12-09 Thread Don Jones
I can't offer any help on this but will be trying to get Apache 2.0.43
working with Tomcat 4.1.x with the mod_jk2 connector using binaries on Red
Hat 8.0.The docs say the mod_jk2 was built with Red Hat 7.2.   Does
anyone know if the connector will work on Red Hat 8.0?

 

Don Jones

[EMAIL PROTECTED] 

 




packages and paths?

2002-10-03 Thread Don Fike


I have packaged a group of servlets into a package.
Now to access my servlet I am using an URL similar to
the one below;

http://mysite:8080/example/servlet/path.to.my.package.myServlet

My servlets are located in a directory structure like;

... tomcat/webapps/example/WEB-INF/classes/path/to/my/package/myServlet

moving them to where they were [and prolly breaking a path-package rule]
doesn't work, i.e placing them here fails with errors;

... tomcat/webapps/example/WEB-INF/classes/myServlet 

Before I packaged my servlets I used an URL similar to this one;

http://mysite:8080/example/servlet/myServlet

I would prefer the shorter version of the URL.  Do I have
this app and package configured wrong for tomcat?  
Is it possible to still use packages but not have to 
use an URL that includes the entire package path info 
with the servlet name?

Thanks,

Don
[EMAIL PROTECTED]



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




where is mod_jk.so?

2002-08-27 Thread Don

Hello,

I am trying to integrate Apache 1.3.26 with Tomcat 4.0.3 binary on Solaris
5.8.
Any pointers to good references on this would be appreciated.
I have found some info, regarding httpd.conf edits etc.  My
biggest problem now is coming up with mod_jk.so, source, binary...
Where do I find this module to add to Apache?

Thanks,

Don
[EMAIL PROTECTED]



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




symbol pset_bind: referenced symbol not found

2002-06-11 Thread Don Fike


Using binary's I have installed both;

j2sdk1.4.0_01
jakarta-tomcat-4.0.3

The system architecture is;

SunOS 5.8 Generic_108528-12 sun4u sparc

Running startup.sh for tomcat prints out my environment variables
but does not start.  Running shutdown.sh generates this error;

Error: failed /silk/homes/icl/j2sdk1.4.0_01/jre/lib/sparc/client/libjvm.so,
because ld.so.1: /silk/homes/icl/j2sdk1.4.0_01/bin/java:
fatal: relocation error: file
/silk/homes/icl/j2sdk1.4.0_01/jre/lib/sparc/client/libjvm.so:
symbol pset_bind: referenced symbol not found

Would anyone know how to get tomcat started in this environment?

Thanks,

Don
[EMAIL PROTECTED]



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




RE: symbol pset_bind: referenced symbol not found

2002-06-11 Thread Don Fike


Your correct, it wasn't a Tomcat problem.

It was a SunOS 5.8 and j2sdk1.4.0_01 problem.
I found two solutions, 

1. Upgrade OS
2. Downgrade Java

Using JDK 1.3 instead of 1.4, Java is happy, and Tomcat is happy.

thanks


-Original Message-
From: Mike Jackson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 1:35 PM
To: Tomcat Users List
Subject: RE: symbol pset_bind: referenced symbol not found


Sounds like a jvm problem (or possibly install problem don't know), not a
tomcat problem.

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

 -Original Message-
 From: Don Fike [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 9:39 AM
 To: [EMAIL PROTECTED]
 Subject: symbol pset_bind: referenced symbol not found



 Using binary's I have installed both;

 j2sdk1.4.0_01
 jakarta-tomcat-4.0.3

 The system architecture is;

 SunOS 5.8 Generic_108528-12 sun4u sparc

 Running startup.sh for tomcat prints out my environment variables
 but does not start.  Running shutdown.sh generates this error;

 Error: failed
 /silk/homes/icl/j2sdk1.4.0_01/jre/lib/sparc/client/libjvm.so,
 because ld.so.1: /silk/homes/icl/j2sdk1.4.0_01/bin/java:
 fatal: relocation error: file
 /silk/homes/icl/j2sdk1.4.0_01/jre/lib/sparc/client/libjvm.so:
 symbol pset_bind: referenced symbol not found

 Would anyone know how to get tomcat started in this environment?

 Thanks,

 Don
 [EMAIL PROTECTED]



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





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




RE: Authenticating against Microsoft ActiveDirectory

2002-05-10 Thread Don Sauer

Sure, the easiest way is to do a LDAP query to a DC

-Original Message-
From: Galbraith, Paul [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 10, 2002 2:35 PM
To: [EMAIL PROTECTED]
Subject: Authenticating against Microsoft ActiveDirectory


Can anyone tell me if it's possible to configure tomcat to authenticate
users against MS ActiveDirectory?  Cheers,
 
Paul


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




RE: JSP Page caching questions

2002-03-19 Thread Don Sauer

There are 2 ways. 1. Modify the server.xml and turn reloadable off for your
JSP (this is recommended because it will compile them each time the JSP page
is run) or 2. Stop Tomcat and delete the jsp cache pages under the working
drectory and restart Tomcat

-Original Message-
From: Anthony Eden [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 11:23 AM
To: 'Tomcat Users List'
Subject: RE: JSP Page caching questions


FWIW, I wrote a small Perl script for doing a recursive touch on all
files in a given directory.  It is at
http://www.anthonyeden.com/projects/perl/rtouch.pl.txt

Sincerely,
Anthony Eden

 -Original Message-
 From: Diego, Emil [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 19, 2002 9:14 AM
 To: Tomcat Mailing List (E-mail)
 Subject: JSP Page caching questions



 Hi,

 Here is the environment I am running under.
 Redhat linux 7.2 running apache 1.3 and Tomcat 3.2.3.

 I have a JSP website that I am making modifications to, here
 is what is happening.

 I hav a group of 20 pages, that are all including another
 pages using the following tag %@include file=includes/main.jsp %

 I modified the main.jsp page to modify the order of some menu
 buttons.

 My question is this. Of the 20 pages that are including this
 file, only 2 of them are displaying the modified menu button
 order. And those 2 were new pages that I added to the site.

 I am assuming that the two pages are working fine because
 they were not previously compiled by tomcat.

 My question is this.  How do i tell tomcat to recompile all
 the JSP so that they are
 updated with the modifications I made.


 Emil

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



RE: /usr/local/jdk1.3.1_01/bin/i386/native_threads/java: error

2001-12-10 Thread Don Bell

Please help, and sorry if I missed a discussion of this
on list previously.

Just installed 4.0.1 Tomcat binary with JDK 1.3.1_01 on Redhat 7.0.

Tomcat begins to start up than quits with catalina.out log message:
/usr/local/jdk1.3.1_01/bin/i386/native_threads/java: error while loading
shared
libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such
fil
e or directory

Of course not, libraries are more current with Redhat 7 but of course trying
to
install rpm with libstdc++-libc6.1-1.so.2 I get error:

rpm -i libstdc++-2.95.3-0.2323.i386.rpm
package libstdc++-2.96-54 (which is newer than libstdc++-2.95.3-0.2323)
is
already installed...

What would be workaround for this... not really a Tomcat error per se. Why
does
latest non beta jdk from Sun point to old c++ library?

Anyway, discovered this on Sun website page re jdk1.3.1:

 For Linux users - The newer glibc-2.2.x libraries cannot correctly handle
 initial thread stack sizes larger than 6 MB. This can cause a segmentation
 fault on some Linux platforms that use the newer libraries. Such platforms
 include Red Hat 7.0, Mandrake 8.0, SuSe 7.2, and Debian 2.2. The problem
 will not occur on Linux platforms that are using glibc-2.1.x such as Red
 Hat 6.1 and 6.2. It will also not affect Red Hat 7.1 because it uses a
 different thread stack layout. This problem is being tracked as bug
4466587.
 Workaround - Use ulimit -s 2048 in bash shell or limit stacksize 2048
 in tcsh to limit the initial thread stack to 2 MB.

I tried this and experienced same failure repoted above:

/usr/local/jdk1.3.1_01/bin/i386/native_threads/java: error while loading
shared
libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such
fil
e or directory

Any suggestions re workaround other than upgrading Linux to 7.1 or 2?

Don


-


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: STARTUP.SH DOESN'T WORKS FINE

2001-11-14 Thread Tanner, Don

 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nancy,
Try the following;

If you DO NOT want the output from tomcat.sh to go to the file
nohup.out

nohup tomcat.sh start  /dev/null 21

Later!
DT

The opinions expressed above are probably mine but not necessarily
the opinions of my employers. In order to prevent possible injury to
yourself, or your computer, and to ensure readability, please do not
smoke, eat, drink, spindle, bend, fold, staple, or mutilate this
e-mail message.




- -Original Message-
From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 8:55 AM
To: Tomcat_Users
Subject: STARTUP.SH DOESN'T WORKS FINE


Hello everybody!
I hope you could help me, please..

Actually, I'm begining to use Tomcat, and I have a succeded start
because it still works PERFECT to me...
But muy problem is very strange :
I installed Tomcat to Solaris 8, and when I start it (startup.sh |
tomcat.sh start ) it starts, but when I close the terminal window
Tomcat
shuts down!!! and now I'm using Tomcat with a terminal window opened
with the caution message :DON'T CLOSE, PLEASE...

I hope you could help me to fix it.
Nancy.



- --
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com

iQA/AwUBO/LRcSqKAcOxsM3XEQJugQCgpdTh+4s7R+DF1httL/erEk0qyR4AoLEx
h1bSrBotdA+YvhhkYre0NVbF
=vMJe
-END PGP SIGNATURE-

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Generating .keystore does not work

2001-11-13 Thread Tanner, Don

Hi there!!
We are using Tomcat 4.0.1 on Solaris 8.
We have been attempting to get SSL to work on Tomcat by following the
document @ http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html.
When we run $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA this is
what happens:

 ./keytool -genkey -alias tomcat -keyalg RSA
Enter keystore password:  changeit
keytool error: KeyPairGenerator not available

Any suggestions would be greatly appreciated 


The opinions expressed above are probably mine but not necessarily the
opinions of my employers. In order to prevent possible injury to yourself,
or your computer, and to ensure readability, please do not smoke, eat,
drink, spindle, bend, fold, staple, or mutilate this e-mail message.




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat 4 DataSource resource-env-ref problem

2001-10-01 Thread Don Park

I got thru the DataSource casting problem and my app is running now, but I
found curious entry in the application log:

2001-10-01 04:03:01 StandardContext[/arcotadmin]: Bind naming operation
failed : javax.naming.NamingException: Name {0} is already bound in this
Context

For some reason, resource-env-ref entries in web.xml is failing to bind
due to unknown conflict with Resource entries in server.xml.  I have
followed the Tomcat 4's JNDI/JDBC docs with appropriate tag name changes
(res- to resource-) to avoid DTD validation failures.  I suspect that this
problem is due to InitialContext being read-only for some reason.  Why would
the doc require me to add resource-env-ref in web.xml if InitialContext is
read-only?

What gives?

Best,

Don Park
Docuverse




Re: Strange behaviour of mod_jk

2001-09-24 Thread Don Gourley

We have also witnessed less than perfect load balancing by
mod_jk using tomcat-3.2.3.  We have four tomcats that we
are load-balancing across and the first one seems to always
get more sessions, with the second, third and fourth each
have somewhat fewer than the previous one.  For example,
right now the first has 139 sessions, the second 73, third
66 and fourth 52.

My guess is that it has something to do with the round-robin
load balancing scheme and the multiple copies of apache httpd
that are running...perhaps each time a new httpd is forked it
starts the round-robin rotation over at server #1, and maybe
somehow new session requests tend to be handled by an httpd
that has just forked?

Anyway, when we used JServ in the same hardware configuration
we saw much more even load balancing of sessions.  It makes
sense (to me) that a random server selection like mod_jserv
uses would work better when you have multiple unsynchronized
selectors than a round-robin scheme.

-Don


At 09:20 PM 9/22/01, Cezar Grzelak [EMAIL PROTECTED] wrote:

I have a two tomcat boxes running tomcat-3.2.3 which are load balanced using
mod_jk. Now everything worked fine until I started playing with the lbfactor
parameter in my workers.properties. Initially I had it configured so that
one box had an lbfactor of 3 while the other one had 2. When I tried to
switch the lb factor to be 1 on each box my cluster no longer worked! Only
one node on the system would receive all the trafic while the other would
sit completely idle. Certain combinations of lb factors seem to work just
fine (4 and 5 for example) while others seem not to work at all. I can't
even determine the pattern for which lb factors work. Has anyone come across
this issue before? It seem like a weird bug in mod_jk to me!
Please help as I'm running out of ideas on what to try next. Nothing seems
to cure the problem unless I set the lb factors to the values that mod_jk
likes.




Re: Strange behaviour of mod_jk

2001-09-24 Thread Don Gourley

At 04:09 PM 9/24/01, Barry L. Kline [EMAIL PROTECTED] wrote:

How are you determining the number of sessions your tomcat server is
servicing?

In our servlet context we have an HttpSessionBindingListener which
adds/removes sessions from a static hash table whenever they are
created or invalidated, and a servlet that displays counts from
that hash table on request.

-Don




Out-of-process Tomcat workers

2001-09-08 Thread Don Ha

Hi,
How many out-of-process Tomcat workers that I can
configure in workers.properties file?  Thanks.
Don Ha

__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



JSP Performance

2001-09-04 Thread Don Ha

Hi,
I have a JSP file and it takes nearly 25 seconds to
run for the first time.  Is there a way to make JSP's
fast on first execution?
Thanks.
Don Ha

__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



multiple paths for a single context?

2001-08-27 Thread Don Gourley

How can I specify that a second path should be mapped to an
existing context?

I have Apache (with mod_jk) mounting /C1 using a load-balancing
worker and /C2 using a regular ajpv12 worker.  The idea is that
most user requests are processed via the load balancing worker
but a few admin requests need to be directed to a specific server
in the load balancing configuration (to reload data and other
administrative tasks).

How can I set it up on the tomcat (v. 3.2.1) side so requests
starting with /C1 and /C2 are handled by the same context?  The
server.xml file doesn't like more than one path in a context
and if I make two context's that just differ by the path I
get, of course, two distinct contexts so the admin commands don't
affect the context participating in the load-balancing group.

Thanks,

-Don




Tomcat Worker Name

2001-08-08 Thread Don Ha

Hi,
I'm trying to figure out there is any limitation to
Tomcat worker name such as size, special character...
Thanks.
Don Ha

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



ContextManager: SocketException reading request

2001-07-25 Thread Don Wee



Can someone help here? I just start to use Tomcat 
with Apache on NetWare server. And sometimes when the servlet reads html form 
request, tomcat shows the "ContextManager: SocketException reading request". 
Please see the following for detail message. The environment I'm using is 
Tomcat3.2.2, Apache1.3.20 and NetWare5.1. Thanks in advance!

Tomcat shows:
ContextManager: SocketException reading request, 
ignored
 java.net.SocketException: socket 
available: Socket operation on non-socket
  
  at 
java.net.PlainSocketImpl.socketAvailable(Native Method)
  
  at 
java.net.PlainSocketImpl.available(Unknown Source)
 
at java.net.SocketInputStream.available(Unknown Source)
  
  at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:217)
  
  at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
  
  at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
  
  at java.lang.Thread.run(Unknown 
Source)





RE: javax.xml.parsers.* not found

2001-05-18 Thread Don Nguyen
Title: RE: javax.xml.parsers.* not found 





Hello,


You can put the .jar files anywhere you want in your hard disk as long as you have your classpath pointing to the appropiate directory and/or files. I have found that even pointing to the directory containing my .jar files sometimes do not work and instead I have to explicitly add the .jar file to the classpath( eg.. c:\classpath;. doesn't work but c:\classpath\archive.jar will work). I would try appending the xalan.jar, crimson.jar, etc.. to your classpath. One other important thing is to make sure you add these paths to the front of your classpath and not the end, you could very well have another (possibly outdated)copy of xalan.jar for instance in another directory that is searched first in your classpath and don't forget to add . current directory if your working directory contains the .jar files you want to use.

Don


-Original Message-
From: Brendan McKenna [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 9:23 AM
To: [EMAIL PROTECTED]
Subject: Re: javax.xml.parsers.* not found 



Hi,


 Perhaps it's a typo but the directory should be:


 c:\jdk1.3\jre\lib\ext (you forgot the last subdirectory)



  Brendan
: Hello,
: 
: I am trying to write a testing xml program. I downloaded jaxp.jar,
: crimson.jar and xalan.jar files from sun and put them in c:\jdk1.3\jre\lib.
: and in classpath. In my testing program, I import javax.xml.parsers.*. When
: I compiled the program, I got error message Package javax.xml.parsers not
: found in import. Any idea for what am i wrong?
: 
: Thanks,
: Jack Li
: 
: 
-- 
Brendan McKennaEmail: [EMAIL PROTECTED]
Development Strategist   Phone: +353-61-338177
Taringold Ltd.Fax: +353-61-338065





RE: UN-SUBSCRIBE ME

2001-04-17 Thread Villanueva, Don



 Don Villanueva
 Product Data Management (PDM) Systems   0622 / 32
 Internal Information Services
 LOGICON,
 A Northrop Grumman Company
 ext: 24210
 mailto:[EMAIL PROTECTED]


-Original Message-
From: Harrison, Robert [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 7:57 AM
To: [EMAIL PROTECTED]
Subject: UN-SUBSCRIBE ME




-Original Message-
From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 3:02 PM
To: [EMAIL PROTECTED]
Subject: RE: AddModule mod_jk.c


At 05:46 PM 4/16/2001 -0400, you wrote:

No, you can't just rename DLL files.  Windows stores a "library" name 
inside the DLL, and it gets bothered if the current DLL name doesn't
match 
the name stored inside the DLL.  mod_jk.so works as a DLL because it
was 
built as mod_jk.so.  So a more exact wording of my statement below is 
"Windows doesn't require DLLs to have a .dll extension, but you must 
decide what name you want your DLL to have and stick with it."

As of windows 2k the os keeps a "double secret" registry
of system files using a hash code of the contents as well
as a digital signature that includes the version info, so
I'm not so sure that simply renaming the library is enough
to freak it out but I don't see the value in re-naming things
unnecessarily. I use mod_jk and I didn't have to re-name the
thing.



JkMountCopy directive

2001-03-14 Thread Don Ha

Hi,
I'm trying to setup a server using JkMountCopy.  If
you know how to setup the environment in order to get
this directive work, please let me know.  Thanks.
Don Ha

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

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




connecting tomcat3.2.1 to apache1.3.19 using mod_jk

2001-03-07 Thread Don Hardaway



I have configured tomcat3.2.1 with apache1.3.19 
using the mod_jk.so file. Everytime I try to start apache i get this message 
that say says line 8 of the mod_jk.conf file has a syntax error. it says that 
"mod_jk.so is garbled -- perhaps this is not an Apache module DSO?" Can 
anyone tell what is wrong. I followed the instructions that were provided but 
can not find where i made a mistake.


In process Tomcat and JSP

2001-02-21 Thread Don Ha

Hi,
I'm trying to use In process Tomcat and JSP.  When I
execute JSP files from "webapps/examples" directory, 
there is error message about  file not exist.  What
should I change Tomcat config file?  Thanks.
Don Ha

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

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




In-process Tomcat and JSP

2001-02-20 Thread Don Ha

Hi,
I'm using In-process Tomcat and I can not execute any
JSP files in "webapps/examples" directory.  What
should I change my Tomcat configuration?  Thanks.
Don Ha

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




Tomcat Error

2001-02-18 Thread Don Quy Ha



Hi,
How could I fix the problem below? Thanks.
Don Ha



Error: 500
Location: /jsp/num/numguess.jspInternal Servlet Error:org.apache.jasper.JasperException: Unable to compile class for JSPC:\Jakarta\jakarta-tomcat\work\localhost_8080%2Fjsp\_0002fnum_0002fnumguess_0002ejspnumguess_jsp_0.java:15: Class num.NumberGuessBean not found in import.
import num.NumberGuessBean;
   ^
1 error

	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
	at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
	at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
	at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)




Tomcat Configuration

2001-02-14 Thread Don Ha

Hi,
I copy all jsp files from
"C:\jakarta-tomcat\webapps\examples\jsp\*.*" to
"C:\jakarta-tomcat\webapps\ROOT\jsp\".  When I make a
request from browser
"http://localhost:8080/jsp/num/numguess.jsp", I got
these error messages "Page not found".  How should I
configure Tomcat to recognize JSP files?  Thanks.
Don Ha   


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




RE: How do I precompile JSP files for final Production use?

2001-01-23 Thread Hobson, Don

Michael,
I don't want to install the JDK onto the server either. It is too big. When
I install my app I will install Tomcat to use http as the transport
mechanism.

Is there a way around having to install the JDK at all?

-Original Message-
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 23, 2001 7:03 AM
To: '[EMAIL PROTECTED]'
Subject: RE: How do I precompile JSP files for final Production use?


 I don't want the files to be compiled at startup. I don't want them
 to ever have to be compiled once installed on the users machine.
 I want to compile them, package the .class files and ship my
 application.

 Has anyone tried this with success? I don't want to install the JDK on
 the users machine, as I assume I will have to. Just the JVM.

You wouldn't have to install the JDK(or the JVM for that matter, unless you
are running applets as well as servlets) on every users machine only the
server
that is running tomcat.  The way JSP works is it is a server side technology
(hence the Server in Java Server Pages).  The servlet, or jsp, is run
on the server and the HTML/XML/WML/... that is generated is then streamed
down to the user who made the request.  The compilation would only
occur at server startup not at client startup.  This would be relatively
transparent to all users(might cause a slight bubble of time at server
startup but it wouldn't be too significant and it would only be once).


---
Michael Wentzel
Software Developer
A HREF="http://www.aswethink.com"Software As We Think/A
A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A

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

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




RE: How do I precompile JSP files for final Production use?

2001-01-22 Thread Hobson, Don

I don't want the files to be compiled at startup. I don't want them
to ever have to be compiled once installed on the users machine.
I want to compile them, package the .class files and ship my application.

Has anyone tried this with success? I don't want to install the JDK on
the users machine, as I assume I will have to. Just the JVM.

-Don

-Original Message-
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 6:47 AM
To: '[EMAIL PROTECTED]'
Subject: RE: How do I precompile JSP files for final Production use?


Another way to do this is write a servlet that will make a
request to all jsp's in your webapp at startup.  This takes
care of the class name translations and such.

---
Michael Wentzel
Software Developer
A HREF="http://www.aswethink.com"Software As We Think/A
A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A

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

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




Syntax and Performance

2001-01-22 Thread Hobson, Don



Is there any reason that I should not do
this:
%! String
hostname;%% hostname =
request.getParameter("Host");
%
Does the compilerhave to do any extra work?
Should I combine them?


How do I precompile JSP files for final Production use?

2001-01-20 Thread Hobson, Don

When I ship or deploy my app, I do not intend
to install the JDK on the users machine. I understand
that I can precompile all of the JSP files to .class
files and this will work. Can someone explain this
process?

If I call:
FORM action="login.jsp" method="post"

but I only have the precompiled login.class file
in the WEB-INF/classes directory (I assume, or should it
be placed in the directory that the original login.jsp was in)
will the correct file be called?

Thanks,

Don

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