Problem with passing tag values to tags.

2003-02-12 Thread Jim Lynch
Running Tomcat 4.1.10. on Linux. Java 1.4.x. I have a jsp that looks like: (Snippet) general:ListDivision tr td%= division %/td td colspan=%= branchlen %| /td /tr general:ListSubdivision division=%= division % tr td%= subdivision %/td

Re: Problem with passing tag values to tags.

2003-02-12 Thread Jim Lynch
Tim Funk wrote: Make sure in your tag declaration (tld file) you have rtexprvalue set to true. That was the key. I didn't have it set. Thanks, Jim. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

build fails with wrong url

2003-02-13 Thread Jim Lynch
Here's the pertinent information. What happened to the port number? Or what caused the failure? Tomcat is up and running, listening on port 8080. I've got another build.xml file that talks fine. I was trying this one out because there is no deploy in my original. Error after entering the ant

Re: build fails with wrong url

2003-02-13 Thread Jim Lynch
Please ignore this dumb question. I found a build.properties file in my home directory with the wrong info in it. So did ant. 8( Sorry for the wasted bandwidth, Jim. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Can JDBCrealm ... be in META-INF/context.xml file?

2003-06-19 Thread Jim Lynch
Or does it have to be in the server.xml file? Next question. Once I've got it there, what do I have to do to 1. For a login for the app. 2. After the user has logged in, how do I get his role? Thanks, Jim. - To unsubscribe,

Re: Can JDBCrealm ... be in META-INF/context.xml file?

2003-06-19 Thread Jim Lynch
Thanks, I'm making progress. I found samples of three different versions of the realm descriptor. JDBCRealm ... realm ... and Realm JDBCRealm and Realm both behave the same. When I use them with: connectionURL=jdbc:mysql://localhost/authority?user=jimpassword=jim I get an error message upon

Re: Can JDBCrealm ... be in META-INF/context.xml file?

2003-06-19 Thread Jim Lynch
userRoleTable=user_roles roleNameCol=role_name/ The document I'm referring to is: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JDBCRea lm Yoav Shapira Millennium ChemInformatics -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday

Re: Can JDBCrealm ... be in META-INF/context.xml file?

2003-06-19 Thread Jim Lynch
Now that I can log in, the next question is how do I obtain the user login information from within my servlet? THanks, Jim. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Can JDBCrealm ... be in META-INF/context.xml file?

2003-06-20 Thread Jim Lynch
That I can do. Thanks Jim. All you can get is their username - using request.getRemoteUser(). To get the rest of their information, you'll have to query the database with handwritten code. Matt -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday

Logging via log4j and war file question

2003-06-23 Thread Jim Lynch
I recently switch from doing install, remove deployments via a build directory to deploy, undeploy via a war file. Unfortuantely my logging has stopped working. I've traced it to the following statement:

Re: Logging via log4j and war file question

2003-06-23 Thread Jim Lynch
Thanks for all the replies. Finally something about this project that I can really appreciate. The soloution is to do NOTHING! I love it. 8) Thanks, Jim. Jim Lynch wrote: I recently switch from doing install, remove deployments via a build directory to deploy, undeploy via a war file

Log4j problem mixing 2 apps

2003-06-26 Thread Jim Lynch
I've two different applications running, using log4j to log. For some reason output destined for one app gets in the others log. It looks like only one application can have a log at a time. What might I have done to cause this problem? It looks like the application that has been deployed last

Re: Log4j problem mixing 2 apps

2003-06-26 Thread Jim Lynch
OK, I removed the jar file from common/lib and put copies in each WEB-INF/lib and it works as expected. Thanks again, Donie, be sure you don't still have a copy somewhere in your tomcat lib path, too. Jim. Donie Kelly wrote: I have this problem as well but my log4j.jar is in WEB-INF/lib in

What did I miss setting? Log4j?

2003-07-07 Thread Jim Lynch
log4j:ERROR Could not read configuration file [null/WEB-INF/classes/log4j.properties]. java.io.FileNotFoundException: null/WEB-INF/classes/log4j.properties (No such file or directory) - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: What did I miss setting? Log4j?

2003-07-07 Thread Jim Lynch
I think the problem is the path. Somehow he has lost the path to WEB-INF... Phillip Qin wrote: I had similar problem when I didn't grant read/write permission to log4j.properties in Catalina.policy. Did you start tomcat -security? -Original Message- From: Jim Lynch [mailto:[EMAIL

Netbeans screwed up my Tomcat install

2003-08-04 Thread Jim Lynch
How do I get rid of it? I can always reinstall tomcat, but I sure don't want to. I installed netbeans 3.5 on Linux. Somehow it screwed up my Tomcat server configuration. I wasn't using it with tomcat, just debugging a stand alone java program. When I went to start Tomcat, it doesn't with this

How do I start with a servlet?

2003-03-09 Thread Jim Lynch
I've got a situation where I need to initialize some session variables the first time in. I'd like to start execution with a servlet rather than a .html or .jsp page. I tried to use: servlet-mapping servlet-nameStartServlet/servlet-name url-pattern/*/url-pattern

Re: How do I start with a servlet?

2003-03-10 Thread Jim Lynch
Hi, Matt and Mavrikis, Well, I tried to add the load-on-start like this: servlet servlet-nameStartServlet/servlet-name servlet-classmanpower.servlets.StartServlet/servlet-class load-on-startup1/load-on-startup /servlet That didn't work. I tried load-on-startup/ too.

Re: How do I start with a servlet?

2003-03-10 Thread Jim Lynch
OK, I think I see the problem. It did call the servlet but only the init() method. Makes sense. Since there is no request passed, I can't do anything. Let me restate the question. I'd like to start execution with a servlet that can fire off a jsp after initializing stuff in the the session

Re: How do I start with a servlet?

2003-03-10 Thread Jim Lynch
not clear about initializing the Session info, on startup Do let me know if any thing found on that... Regards, Pratt. - Original Message - From: Jim Lynch [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 10, 2003 3:55 PM Subject: Re: How do I start

At boot is order of start up (Apache vs Tomcat) important?

2003-06-06 Thread Jim Lynch
I know I've seen this discussion a while back but I couldn't find it. On a Linux box I've build a simple minded tomcat start/stop/restart script and put it in /etc/init.d. Should I start tomcat before apache or after or does it matter? Same for shutdown. Are there any timing issues? This is a

Re: Tomcat Manager deploy and undeploy

2003-06-06 Thread Jim Lynch
I've been following this thread with interest since I've never been able to get undeploy to work either. Where might I go to learn about context.xml and most importantly, what goes into it? Examples would be great. Thanks, Jim. Phillip Qin wrote: Having added context.xml, Deploy/Undeploy

Re: tomcat manager deploy and undeploy

2003-06-05 Thread Jim Lynch
I do an ant remove before I do the deploy. That works for me. Jim. Phillip Qin wrote: Did anyone solve Cannot remove document base for path /mywebapp? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Memory leaks?

2003-09-03 Thread Jim Lynch
I seemed to have read that java/tomcat isn't supposed to have memory leaks, but something seems to be running me out of memory and I don't know what. After a number of edit/undeploy/compile/deploy iterations I get the following: javax.servlet.ServletException: Servlet execution threw an

Re: Memory leaks?

2003-09-03 Thread Jim Lynch
; } } - Original Message - From: Jim Lynch [EMAIL PROTECTED] To: tomcat [EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 12:56 PM Subject: Memory leaks? I seemed to have read that java/tomcat isn't supposed to have memory leaks, but something seems to be running me out of memory and I

How do I stop security checks for all files?

2003-09-04 Thread Jim Lynch
I'm using the basic authentication scheme, 'cause I couldn't ever make the user type work. My pages just sat there and looped. But I'm running into a performance problem. I have dozens of .gif files and other things that get loaded with my page and it looks like it is authenticating each of

Re: How do I stop security checks for all files?

2003-09-04 Thread Jim Lynch
Shapira, Yoav wrote: Howdy, What does your web.xml look like, specifically the security-constraint parts? Yoav Shapira Millennium ChemInformatics I think I understand where you are going and I changed it slightly and partially accomplished what I wanted to do. Here is the modified

Re: Memory leaks?

2003-09-05 Thread Jim Lynch
Millennium ChemInformatics -Original Message- From: Greg Ward [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 10:05 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Memory leaks? On 03 September 2003, Jim Lynch said: OK, that's probably what's going on. I know I

Re: Memory leaks?

2003-09-05 Thread Jim Lynch
? -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 9:37 AM To: Tomcat Users List Subject: Re: Memory leaks? I'm most certain the connections are closed but there may be a few dangling statements. I'm using mysql jdbc. Not using

OT How to maintain a version number

2003-10-10 Thread Jim Lynch
I've written an application where I need to keep up with the version number. I'm trying to figure out an elegant way to maintain that in the simplest and perhaps the most automated way. My source is kept in a cvs archive but of course there are dozens of files so it would be difficult to

Re: OT How to maintain a version number

2003-10-14 Thread Jim Lynch
Thanks to all who made suggestions. I'm still sorting through the options. Jim. Jim Lynch wrote: I've written an application where I need to keep up with the version number. I'm trying to figure out an elegant way to maintain that in the simplest and perhaps the most automated way. My

What did I do to get an (Unknown source

2003-10-20 Thread Jim Lynch
I'm getting the following trace as a result of calling printStackTrace(). What have I done to cause it to lose the source locations? java.lang.ClassCastException: java.lang.NullPointerException at com.sgi.patches.dao.PatchDao.getPatchList(Unknown Source) at

Name mail is not bound in this Context error??

2003-10-20 Thread Jim Lynch
This is not starting the week out very good. I'm trying to duplicate the code in the Tomcat example, SendMail.java. I'm getting the following error: 03-10-20 09:06:46|ERROR|gi.oasis.servlets.FeedbackRequestHandler|Feedback error java.lang.Exception: OpusMail encountered exception:

Re: What did I do to get an (Unknown source

2003-10-20 Thread Jim Lynch
Hm. That's strange. I don't even know how to change the debug setting. Thanks, Jim. Shapira, Yoav wrote: Howdy, You compiled it without debug enabled in javac. Yoav Shapira Millennium ChemInformatics - To unsubscribe,

Re: Name mail is not bound in this Context error??

2003-10-20 Thread Jim Lynch
a mail/Session JNDI entry into your env context. Post your server.xml. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 9:24 AM To: Tomcat Users List Subject: Name mail is not bound in this Context error

Re: Name mail is not bound in this Context error??

2003-10-20 Thread Jim Lynch
That gave me the info I needed. The configuration has to be in my context.xml file. Or an appropriate place in the server.xml file. I tried to put in in a global resources section and that wasn't working. Thanks, Jim. Shapira, Yoav wrote: Howdy, That depends on which SendMail example you're

Re: What did I do to get an (Unknown source

2003-10-20 Thread Jim Lynch
-Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 9:26 AM To: Tomcat Users List Subject: Re: What did I do to get an (Unknown source Hm. That's strange. I don't even know how to change the debug setting. Thanks, Jim. Shapira, Yoav wrote: Howdy

getRealPath woes

2003-11-04 Thread Jim Lynch
I have 3 almost identical tomcat servers running on Linux. Production, testing and development. They are all running 4.1.24. I have the following code running on all three: fullPath=getServletContext().getRealPath(/)+APP_FILE_PROP_KEY; On the dev. and prod. systems the getRealPath method

getResourceAsStream woes was: getRealPath woes

2003-11-04 Thread Jim Lynch
); Now that you mention it, I believe I've accused the wrong method. The getResourceAsStream is failing. I get a stream on the other two systems but not on testing. Jim. Tom Parker wrote: On Wed, 2003-11-05 at 12:30, Jim Lynch wrote: On the dev. and prod. systems the getRealPath method returns

Re: getResourceAsStream woes was: getRealPath woes

2003-11-05 Thread Jim Lynch
Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 8:00 PM To: Tomcat Users List Subject: getResourceAsStream woes was: getRealPath woes As I mentioned, all of these systems are pretty much identical. What I didn't include in the source was a test to see

Where to I put .so for JNI access?

2003-11-10 Thread Jim Lynch
I've searched google for jni and tomcat, but I can't figure out where to put a shared lib so a Tomcat application will find it. All the people looking for help have already figured this out, apparently. Anyway, running Linux on Intel, Tomcat 4.1.24. Where does my .so file go so my

Re: Where to I put .so for JNI access?

2003-11-10 Thread Jim Lynch
Ah, in the java tree! I'm too hung up on Tomcat and overlooked the obvious. Thanks, Jim. Phillip Qin wrote: $JAVA_HOME/jre/lib/i386 -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:27 AM To: Tomcat Users List Subject: Where to I put .so for JNI

Re: Signal 11 causing Tomcat crash

2003-11-13 Thread Jim Lynch
Random sig 11s are sometime indicative of memory failures. Be sure to run some good memory diagnostics. Jim. Jim Goodspeed wrote: Unfortunately we have also tried Sun's JVM and are experiencing the same Signal 11 errors (I've included two snippets of the Sun error - same error as the IBM Sig

How to measue performance? Log4j on/off.

2003-12-04 Thread Jim Lynch
We have a performance issue with a web page being served via Tomcat/Apache. I don't think it has anything to do with Tomcat, but I am being asked to turn debug logging off to help improve it. I'm resisting because the output has been extremely valuable in solving problems that still crop up

Re: How to measue performance? Log4j on/off.

2003-12-04 Thread Jim Lynch
If it were my boss wanting to do the measurement, I'd have money, but I'm trying to keep him off my back, hence no cash. Thanks, Jim. Justin Brister wrote: Jim, if you have any money to spend, it would be worth running a code profiler such as JProbe over the code. If you don't have access to

Re: How to measue performance? Log4j on/off.

2003-12-04 Thread Jim Lynch
profiler such as JProbe over the code. If you don't have access to such a tool / money, then you could try running JMeter to benchmark the site. J -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 1:40 PM To: Tomcat Users List Subject: How

Re: Application looping

2004-12-14 Thread Jim Lynch
for now, test tomcat-standalone. Once that works, if you need Apache you can bring it back in and worry about its configuration. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 8:36 AM To: Tomcat Users List

Rewrite to alternate port hooked to mod_jk isn't working as expected.

2004-12-14 Thread Jim Lynch
I have two apache servers running on a single system. The main one is apache 2 the secondary one on port 81 is apache 1.3. Since I was unsuccessfull at getting the combination Tomcat 4.1.30, Apache 2 and mod_jk2 working together I brought up 1.3 and got it working with Tomcat 4.1.24 and

Re: Authentication isn't working with mod_jk 1.7.3 beta.

2004-12-16 Thread Jim Lynch
That's quite possible but not helpful. The configuration is identical in essence to a working version on apache 1.3. Can anyone tell me what the differences are between the two are? Jim. Mladen Turk wrote: Jim Lynch wrote: I finally got mod_jk to comple on RH 9 for Apache 2

Re: Authentication isn't working with mod_jk 1.7.3 beta.

2004-12-17 Thread Jim Lynch
. Apache/2.0.40 Server at xxx.sgi.com Port 80 Cox, Charlie wrote: Are you sure Apache is not blocking your request? Enable the AccessLogValve on tomcat and see if your request is getting through. Charlie -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent

Re: Authentication isn't working with mod_jk 1.7.3 beta.

2004-12-17 Thread Jim Lynch
the AccessLogValve on tomcat and see if your request is getting through. Charlie -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 8:28 AM To: Tomcat Users List Subject: Re: Authentication isn't working with mod_jk 1.7.3 beta. That's quite

Re: Authentication isn't working with mod_jk 1.7.3 beta.

2004-12-17 Thread Jim Lynch
=org.gjt.mm.mysql.Driver roleNameCol=role_name userCredCol=user_pass userNameCol=user_name userRoleTable=user_roles userTable=users validate=true/ Resource auth=Container description=DB Connection name=jdbc/Nafo scope=Shareable type=javax.sql.DataSource/ /Context Jim Lynch wrote: I

Application looping

2004-12-14 Thread Jim Lynch
Hi, all, I'm attempting to port an application from one system to another. I originally wrote it on a debian system and ported it to a RH 7.2 system. Now I'm trying to move it to a RH 9 system. I installed the latest Tomcat 4.1.31, java 1.4.2_06 and Apache 1.3. Orignally this system had

Authentication isn't working with mod_jk 1.7.3 beta.

2004-12-15 Thread Jim Lynch
I finally got mod_jk to comple on RH 9 for Apache 2, but the authentication doesn't work through the connector. If I go to port 8080 I get the login popup and am able to enter the app OK, however if I try to go to the default port and connect via mod_jk I get an authentication error. I never