Re: Jbuilder Resource binding problem

2002-11-20 Thread Jeanfrancois Arcand
You should post the question to a JBuilder list. I'm sure peoples using Tomcat and JBuilder can help. It strange that JBuilder does not allow you to change the server.xml file. Depending on the Tomcat version bundled with JBuilder, you can use the admin tool to create your JDBC datasource. --

Re: bean getProperty issue

2002-11-20 Thread Jeanfrancois Arcand
You have the exception because you are not following the JavaBean getter/setter convention. You need to follow the upperCase/lowerCase sensitivity if you want to use getProperty/setProperty. -- Jeanfrancois Mark Walker wrote: I compared your code to something similar on our server. In our

Jbuilder Resource binding problem

2002-11-20 Thread zephyr . zhao
Actually, JBuilder will re-write the server.xml whenever it starts web server. I searched on google, some one suggested to add them into web.xml. But I find this method can't work. Is anybody can help? -Original Message- From: Zhao, Zephyr Sent: 2002Äê11ÔÂ21ÈÕ 9:13 To: '[EMAIL

Re: Administration Tool with Tomcat 4.1.12: admin user doesn't work

2002-11-20 Thread Jeanfrancois Arcand
You have 2 problems: (1) you cannot cache you form based login page. The error you are seeiing is because you have probably cached (or bookmarked) the admin login page. You must type http://localhost:8080//admin. (2) As Jeff answered, you need an admin role, not manager -- Jeanfrancois

Re: init parameters acces

2002-11-20 Thread Jeanfrancois Arcand
From you web.xml fragment, seems some element are missing. First, the servlet element is not closed. Are you sure you web.xml file is parsed properly? -- Jeanfrancois Javier Linares wrote: Hi, I'm trying to access my init parameters in my web.xml file located in my

RE: Jbuilder Resource binding problem

2002-11-20 Thread zephyr . zhao
OK. thanks anywary -Original Message- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]] Sent: 2002年11月21日 9:43 To: Tomcat Users List Subject: Re: Jbuilder Resource binding problem You should post the question to a JBuilder list. I'm sure peoples using Tomcat and JBuilder can help.

mod_jk2-2.0.43 for freebsd

2002-11-20 Thread Warren Roberts
Does anyone know where I can get a copy of mod_jk2 built in freebsd. The buildconf.sh script from the build source won't build it for me so if someone out there has built it or can give me help in building it I would really appreciate it. Thanx in advance Warren Roberts

Re: SOAP: Unable to resolve target object

2002-11-20 Thread Craig R. McClanahan
On Wed, 20 Nov 2002, Glenn O wrote: Date: Wed, 20 Nov 2002 17:05:23 -0800 From: Glenn O [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: SOAP: Unable to resolve target object Craig R. McClanahan wrote: Is anybody

Apache2+tomcat4+Mod_jk2+load blance ?

2002-11-20 Thread m jun
Hi, Anyone succeed to config them with loadblance ? Please give me a detail about config file. My config file: * /* workers2.properties*/ [logger] file=${serverRoot}/logs/jk2.log level=info [config:] file=${serverRoot}/conf/workers2.properties debug=0

Re: SOAP: Unable to resolve target object

2002-11-20 Thread Paul Campbell
Craig R. McClanahan wrote: snip BRAVO soapbox snip But wait ... snip But wait ... that means snip /soapbox /BRAVO ;-) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

hashtable

2002-11-20 Thread Paul_Wallace
Hello, Can anyone tell me, can a hash table be defined as a session and retrieved from another page as can an array? Thanks Paul.

Re: hashtable

2002-11-20 Thread Kwok Peng Tuck
Yes, you can use the session.setAttribute () feature, which takes an object and string (I can't remember the order) . Later when you do session.getAttribute(), make sure you cast it back to the object that you want. Be mindful of invalid sessions. [EMAIL PROTECTED] wrote: Hello, Can

Re: hashtable

2002-11-20 Thread David Kavanagh
Paul, I assume you are asking if you can store something in a session to share between pages. Yes, you can store an object (such as a Hashtable) in the session object. You can use session.setAttribute(key, value) or session.getAttribute() to retrieve it. David On 11/20/2002 10:31 PM, [EMAIL

Re: hashtable

2002-11-20 Thread Paul_Wallace
Great, I have styles which is an int array (to become hashtable) and want to retrieve it from another page (you assume correctly). I have: session.setAttribute(styles, styles); which runs OK and: session.getAttribute(styles, styles); which is throwing a compiler error. It's been a while

Re: hashtable

2002-11-20 Thread David Kavanagh
I think another lister posted this answer. You should do this; int styles[] = (int [])session.getAttribute(styles); I'll also recommend testing the session before using it. I think if you get null from request.getSession(false), that means it timed out, or was marked invalid. David On

Re: hashtable

2002-11-20 Thread bido
My two cents: 1. int is a java primitive type and your assigning an object to it, that's illegal. 2. You need to cast the call into an Int object something like: Int styles[] = (Int) session.getAttribute(styles); Hope this helps. On Wednesday, November 20, 2002, at 10:02 PM, [EMAIL

Re: hashtable

2002-11-20 Thread Kwok Peng Tuck
session.setAttribute returns an object, so you need to cast the object to your specific type. In your case, Hashtable mytable = (Hashtable) session.getAttribute(styles, styles) ; // double check this for syntax errors pls. Printout your hashtable, and see if you gets stuff. good luck paul .

Re: hashtable

2002-11-20 Thread Paul_Wallace
it is an array object is it not? of type int ? [EMAIL PROTECTED] 21-11-2002 12:11 Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: hashtable My two cents: 1. int is a java primitive type and your assigning

Re: hashtable

2002-11-20 Thread Paul_Wallace
what ever it is, it worked! I remember doing this before however with no cast necessary? David Kavanagh [EMAIL PROTECTED] 21-11-2002 12:07 Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: hashtable I think

symbolic links in 4.1.12

2002-11-20 Thread Eugene Gluzberg
Was ... Re: problem with Classloader and symbolic links in 4.1.12 ok, i installed ant and am now putting classes in the right places. However, it seems that images and plain html files wont load through symbolic links either. There must be a setting somewhere for this! Jon Eaves wrote: it

Re: hashtable

2002-11-20 Thread Kwok Peng Tuck
Sorry for some confusion caused if I asked you to put a hash table in the session, it should be a array of int, and recast back to array after you get it from the session. [EMAIL PROTECTED] wrote: what ever it is, it worked! I remember doing this before however with no cast necessary?

Re: hashtable

2002-11-20 Thread David Kavanagh
Just to set the record straight, an array is treated like an object, so the int[] is OK. casting the result using (int []) works just fine. David On 11/20/2002 11:11 PM, [EMAIL PROTECTED] wrote: My two cents: 1. int is a java primitive type and your assigning an object to it, that's illegal.

Help with Tomcat 4.1.12...

2002-11-20 Thread Randall DuCharme
Greetings, I'm trying to work through issues with Apache 2.0.43 and Tomcat 4.1.12 and UnixSockets. I keep getting this SEVERE: Can't create apr java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at {SNIP} I found the Robert Williams article on the web that talks about

Re: hashtable

2002-11-20 Thread Paul_Wallace
Thanks Gents, that's great. One last thing. Where is session in the API? I can't see httpSession anywhere. I am looking for session settings to define session life span etc. Thanks paul.

Re: Re[4]: XML parser

2002-11-20 Thread Saurabh Arora
We had also faced a similar problem in a project. We are currently working on a prototype for loading a specific version of xerces.jar (which is compatible with our application) , using the InternalclassLoader. You can try to write your own code for the same, write your own classloader,

Apache cannot serve html files in webapp directory

2002-11-20 Thread Irwan
Hi all, I have installed mod_jk but cannot get apache to serve html files from tomcat webapp. The interesting thing, Apache can serve gif files but when the request is for html files, it returns this: Forbidden You don't have permission to access /examples/index.html on this server.

Re: hashtable

2002-11-20 Thread David Kavanagh
The session lifetime (timeout) is defined in the web.xml for the application. Look after the servlet mappings. David On 11/20/2002 11:59 PM, [EMAIL PROTECTED] wrote: Thanks Gents, that's great. One last thing. Where is session in the API? I can't see httpSession anywhere. I am looking for

session startup

2002-11-20 Thread Paul_Wallace
Relating to the previous posting. Now I have my hastable stored as a session, and am able to retrieve it, I would like the session to be created when the service (TC) starts up, or is restarted. I.e I would like the session to be available without initailsing it by loading a JSP page. Thanks

Re: symbolic links in 4.1.12

2002-11-20 Thread Eugene Gluzberg
I found a previous thread with the same problem. Does anyone know if there is a solution? Or do i have to go back to using 4.0.x? Here is the link http://www.faqchest.com/prgm/tomcat-l/tmct-02/tmct-0208/tmct-020881/tmct02082707_10981.html Eugene Gluzberg wrote: Was ... Re: problem with

Re: hashtable

2002-11-20 Thread Paul_Wallace
Regarding timout and web.xml..my web.xml looks like this: web-app display-nameWelcome to Tomcat/display-name description Welcome to Tomcat /description /web-app In other words has not been adjusted a great deal. I could sit here for hours and guess what the tag name is/are, and

Re: hashtable

2002-11-20 Thread Kwok Peng Tuck
You can also set it in your jsp code, you can look it up in the apis. Comes bundled with tomcat it does. [EMAIL PROTECTED] wrote: Regarding timout and web.xml..my web.xml looks like this: web-app display-nameWelcome to Tomcat/display-name description Welcome to Tomcat /description

Re: session startup

2002-11-20 Thread David Kavanagh
Hmm, I think you might be missing the point of a session. It is something that is associated with a client. If you want something initialized when the app starts up, you need to put something in a servlet.init() method. In there, check to see if that thing is initialized, if not, initialize

Re: hashtable

2002-11-20 Thread David Kavanagh
In my web.xml, I have (as a child of web-app), these lines. session-config session-timeout 30 /session-timeout /session-config This is in minutes. David On 11/21/2002 12:32 AM, [EMAIL PROTECTED] wrote: Regarding timout and web.xml..my web.xml looks like this:

Re: session startup

2002-11-20 Thread Paul_Wallace
OK, Perhaps then a session is not what is required here. I wish to make available upon startup of the server, some simple string values. They must be accessible to all clients, auto initialised when the service starts up. This is something similar to a posting I made a while ago

Re: hashtable

2002-11-20 Thread Paul_Wallace
Yeah I got that thanks. I was looking at the wrong web.xml. I want conf/web.xml right? P. In my web.xml, I have (as a child of web-app), these lines. session-config session-timeout 30 /session-timeout /session-config This is in minutes. David On

Re: Tomcat Newsgroup?

2002-11-20 Thread Bill Barker
Craig R. McClanahan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wed, 20 Nov 2002, Jeff Wishnie wrote: Date: Wed, 20 Nov 2002 13:48:00 -0800 From: Jeff Wishnie [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List

Re: setting syetem property while starting up tomcat

2002-11-20 Thread Bill Barker
Better, create either a setenv.sh or setenv.bat (depending on your taste in O/S) file in your $CATALINA_HOME/bin directory, and set CATALINA_OPTS there. This one won't be over-written when you upgrade. Jeanfrancois Arcand [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: proper use of servlet contexts

2002-11-20 Thread Noah Davis
Thanks for your response. I realize now that I should have actually stated what the problem is, instead of this round about stuff with the context. Basically, we develop all of our applications under contexts. Each one a separate context. When they go live, they go to the default context so users

Re: Apache cannot serve html files in webapp directory

2002-11-20 Thread Bill Barker
Usually this is a problem with file permissions. The Apache user (I think that this defaults to apache on RedHat, but I don't use RedHat that much) needs to have read+execute permissions on all directories upto and including the examples directory. In practice, this usually means that they all

problem in compilation in Tomcat 4.0

2002-11-20 Thread vivek baliga
hi, Not able to excecute even the examples in Tomcat 4 getting the following response pls help. Rgds, jabs type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from

Re: Status of Symbolic Links on Linux/TC 4.1.12???

2002-11-20 Thread Bill Barker
It should be pretty much working in 4.1.15 now (as long as you configure the Resources yourself). From 4.1.13, you can also get it to work by setting the caseSensitive=false attribute on the Resources tag. Bob McCormick [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: Status of Symbolic Links on Linux/TC 4.1.12???

2002-11-20 Thread Eugene Gluzberg
Could you please specify how to configure it in 4.1.15? should we omit the docBase in Context and specify it in Resources instead? or do we need both? Does the Resources have to have a absolute docBase (assuming FileDirContext), or relative? If relative, what is it relative to? Will the

Re: session startup

2002-11-20 Thread Paul_Wallace
Hi, I am looking into servlets to initialise string values every time the service is started, making them accessible to multiple clients? To define them is simple enough, but how can I make them accessible for all clients? Much appreciated Paul.

Re: problem in compilation in Tomcat 4.0

2002-11-20 Thread Jacob Kjome
Did you install the JRE or JDK? You *have* to have the JDK installed and set JAVA_HOME to where the JDK is installed. Also, at least on Windows, you should put JAVA_HOME/bin at the beginning of your PATH variable to avoid having Microsoft's VM fire up instead of Sun's. Jake At 11:54 AM

Re: problem in compilation in Tomcat 4.0

2002-11-20 Thread vivek baliga
hi jake , i just copied tools.jar in lib\common folder in tomcat it worked. actually this jar file does not get copied ..! Jabs - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 12:42 PM Subject:

Re: problem in compilation in Tomcat 4.0

2002-11-20 Thread Jacob Kjome
That should be an unnecessary step, though. Well, I guess whatever works for you. Glad I could help. Jake At 12:57 PM 11/21/2002 +0530, you wrote: hi jake , i just copied tools.jar in lib\common folder in tomcat it worked. actually this jar file does not get copied ..! Jabs

<    1   2   3