Re: [OT] Hosting providers

2006-03-19 Thread Bruno Georges
I use : http://www.eapps.com And also used http://www.spinweb.net both have different offers ranging to Virtual Private Servers to Dedicated ones. they also have both great expertise and support. Note that eapps.com is an official; JBoss partner, thus providing full support of Tomcat. Hopes thi

Re: Tomcat and Threads

2006-03-19 Thread Mete Balcı
Hello, I had the same question in my mind some time ago. I have a web application which creates a timer in a context listener init(), which wakes up in 30seconds or so, and destroys the timer in context listener destroy(). It should complete its processing before server stops, so I did some ex

java.lang.IllegalStateException

2006-03-19 Thread Prashant Saraf
When i try to delete a record my tomcat gives following error error: java.lang.IllegalStateException my code fo delete is <% if(del!=null) { System.out.println("in delete"); if(Item_con == null ) { throw new Exception() ;

Re: Somewhat OT: Multiple auth methods in one webapp?

2006-03-19 Thread Frank W. Zammetti
FYI, I did a little research... the 2.4 DTD states the affinity of the element as ?, so you are allowed at most a single auth method. So, while you can of course configure as many constraints as you want, they all must share the same method, one per context. This means that, in answer to my

Tomcat 5.5.16 - Confirmation of " Extra bytes at the end of class file listeners/ContextListener" error

2006-03-19 Thread Adam Hill
I have confirmed this error on a clean XP install (completely virgin, nothing but up to date patches installed) with clean JDK 1.5_06 setup. The installer ID'ed the JRE correctly and tray applet is running. This problem is repeatable on many various XP installs, real and virtual, dev and non-dev.

RE: tomcat examples

2006-03-19 Thread Caldarale, Charles R
> From: erha [mailto:[EMAIL PROTECTED] > Subject: Re: tomcat examples > > I have the same problem here. No, you have a completely different problem. > And below is the error from the log file for my case. Anybody > body know what is wrong ? > > java.lang.ClassFormatError: Extra bytes at the e

RE: tomcat examples

2006-03-19 Thread Caldarale, Charles R
> From: Konstantin L Kouptsov [mailto:[EMAIL PROTECTED] > Subject: Re: tomcat examples > > Thanks for the answer. As far as the second part is > concerned, I found that I needed to stick path="/foo" reloadable="true" docBase="C:\bar" > workDir="C:\bar\work" /> in the > $CATALINA_HOME/conf/serv

Re: Tomcat 5.5.16 - Error configuring application listener of class listeners.ContextListener

2006-03-19 Thread erha
I have the same problem here. Have you managed to solved your problem ? Rudy -- View this message in context: http://www.nabble.com/Tomcat-5.5.16---Error-configuring-application-listener-of-class-listeners.ContextListener-t1292922.html#a3487618 Sent from the Tomcat - User forum at Nabble.com.

Re: tomcat examples

2006-03-19 Thread erha
I have the same problem here. And below is the error from the log file for my case. Anybody body know what is wrong ? Mar 20, 2006 12:29:31 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class listeners.ContextListener java.lang.ClassF

Re: tomcat examples

2006-03-19 Thread Konstantin L Kouptsov
Thanks for the answer. As far as the second part is concerned, I found that I needed to stick docBase="C:\bar" workDir="C:\bar\work" /> in the $CATALINA_HOME/conf/server.xml file, and it works. As far as examples are concented, I have installed everything, so the examples with all the files a

Re: UserDatabase with something else than a basic MemoryUserDatabase

2006-03-19 Thread Bill Barker
Yeah, well, UserDatabase didn't really attract many followers :). It's a nice concept, with a really s*cky implementation (esp. how it works with /admin :). At one point, there was an attempt at a JDBC UserDatabase, but it fizzled. Short story: You're not missing anything. UserDatabase is c

RE: tomcat examples

2006-03-19 Thread Caldarale, Charles R
> From: Konstantin L Kouptsov [mailto:[EMAIL PROTECTED] > Subject: tomcat examples > However, when I try to access "JSP examples" or "servlet > examples" in the left panel menu, I get a 404 page Sounds like something in your installation failed to complete, or perhaps you've got a file permissi

RE: Clean Install - examples do not work

2006-03-19 Thread Caldarale, Charles R
> From: Vikram [mailto:[EMAIL PROTECTED] > Subject: Clean Install - examples do not work > > In tar file that I downloaded from Apache site has the > truncated file name. There's nothing wrong with the tar file - use a real (GNU-compatible) tar utility. If you'd looked at the README you would

Re: Converting characters to "ascii" value

2006-03-19 Thread David Kerber
Indeed it is! Frank W. Zammetti wrote: String myString = "ABCDEFG"; int myInt = (int)myString.charAt(1); Even simpler than VB :) Frank David Kerber wrote: To be more specific than my last message, my ultimate goal is to be able to do something like: String myString = "ABCDEFG" Integer

Re: Somewhat OT: Multiple auth methods in one webapp?

2006-03-19 Thread Mark Lowe
On 3/17/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > Thats the 2.3 and 2.4 specs btw.. the 2.2 doesn't have section 12.5 > and the authentication section is section 11.. > > Anyhow without getting into all that cellar dwelling, i dont think > that there's a restriction on the amount of securit contra

Re: Tomcat and Threads

2006-03-19 Thread Clemens Eisserer
Hi again, > There's some good, in-depth discussion in the archives. It > needs some updating, but: > http://www.distributopia.com/servlet_stuff/background_threads.html > > is also reasonably informative. Thanks a lot for mentioning this article - wow i think i could have caused troubles on my

tomcat examples

2006-03-19 Thread Konstantin L Kouptsov
Hello, I am trying to learn using tomcat and writing servlets. After I installed Tomcat 5.5.16 for windows and pointed my browser to localhost:8080, I can see the tomcat page. However, when I try to access "JSP examples" or "servlet examples" in the left panel menu, I get a 404 page (The req

UTF-8 2019 (right single quote) incorrect display

2006-03-19 Thread John-Paul Delaney
Hello List... my first attempt at i18n is failing. I've converted MS smart quotes to utf 2019 symbol (right single quote) in my VIM editor after setting encoding to UTF-8. The quote displays ok in vim but in the browser it displays badly ( in firefox - a+circumflex, and IE - a+circumflex+garbag

Re: Converting characters to "ascii" value

2006-03-19 Thread Frank W. Zammetti
String myString = "ABCDEFG"; int myInt = (int)myString.charAt(1); Even simpler than VB :) Frank David Kerber wrote: To be more specific than my last message, my ultimate goal is to be able to do something like: String myString = "ABCDEFG" Integer myInt = myString.whateverMethod( myString.su

RE: Best eclipse plugin for tomcat development

2006-03-19 Thread Wade Chandler
--- Richard Mixon <[EMAIL PROTECTED]> wrote: > Dola, > > For the last couple of years I have used the Sysdeo > plugin with good > success. > > But since December the all-in-one bundle of Eclipse > with the Eclipse Web > Tools Project has been available. This is a > completely integrated build th

Re: Converting characters to "ascii" value

2006-03-19 Thread Leon Rosenberg
> Integer myInt = myString.asc( myString.substring( 1, 2 )) // would > return 66 if the asc() method existed int b = (int)myString.charAt(1); or, in 1.5 int b = (int)(myString.substring(1,2).charAt(0))); ? in java you don't need asc, since each char can be assign to an integer an vice versa L

programatic jaas authentication

2006-03-19 Thread Jan Zach
Hi Everybody, I got working container JAAS authentication (area protected by url set in web.xml), I also know how to authenticate against JAAS. But what I cannot sort out is how to programatically force container to authenticate (from login dialog), i.e., how to get principal to the session/htt

UserDatabase with something else than a basic MemoryUserDatabase

2006-03-19 Thread Nic Daniau
Hi, I'm trying to configure Tomcat (5.5) with a DataSource realm the "proper" way. Configuring a DataSourceRealm directly is fine http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#List%20Available%20Security%20Roles>. But also to conform with the sample server.xml given at install, w

Re: Converting characters to "ascii" value

2006-03-19 Thread David Kerber
To be more specific than my last message, my ultimate goal is to be able to do something like: String myString = "ABCDEFG" Integer myInt = myString.whateverMethod( myString.substring( 1, 2 )) // should return 66 I can do this by going through a byte[], but was looking for a more straight f

Re: Converting characters to "ascii" value

2006-03-19 Thread David Kerber
Not a char, a String (or more specifically, a specific character extracted from a String). Nic Daniau wrote: Hum... I am missing something or you just want to cast a char to a byte/int in Java? char x = 'B'; // or "Bravo".charAt(0) if you start with a string byte y = (byte) x; System.out.pr

Re: Converting characters to "ascii" value

2006-03-19 Thread Nic Daniau
Hum... I am missing something or you just want to cast a char to a byte/int in Java? char x = 'B'; // or "Bravo".charAt(0) if you start with a string byte y = (byte) x; System.out.println("y=" + y); // should give you 66 and vice-versa: char z = (char) y; System.out.println("z=" + z); // should

Re: Converting characters to "ascii" value

2006-03-19 Thread David Kerber
I've never used char types; I'm so used to using Strings I don't even think of it. Thanks! Frank W. Zammetti wrote: The first 127 characters of Unicode are in fact ASCII (might be the first 255, I'm not sure, but the first 127 for sure). In other words, it you do: int i = (int)'A'; will

Re: Converting characters to "ascii" value

2006-03-19 Thread David Kerber
Thanks! Artur Rataj wrote: char is a numeric type. You might try this code as an example: char c = 32; c += '@'; if(c > 31) System.out.println(c + " = " + (int)c); The exception is it adds to strings as a character, thus the cast is needed. Regards, Artur -

JNDI in embedded tomcat

2006-03-19 Thread Minilin-inbox
Hi, All, I want to start tomcat by program, but I also need a JNDI data source. Could anyone tell me how to config a Tomcat JNDI data source by program, or any method let the data source configuration file work? Minilin

Clean Install - examples do not work

2006-03-19 Thread Vikram
Hi All, May be experts do not need the examples running but they seem to be broken for a long time as evidenced by several posts on the web. I could not get an answer as what is the fix. In tar file that I downloaded from Apache site has the truncated file name. $ tar tvf jakarta-tomcat-5.0.28.t

Re: Converting characters to "ascii" value

2006-03-19 Thread Frank W. Zammetti
The first 127 characters of Unicode are in fact ASCII (might be the first 255, I'm not sure, but the first 127 for sure). In other words, it you do: int i = (int)'A'; will result in i=65, the ASCII value for A. char is a numeric type remember, so you don't really have to cast to int, I just

Re: Converting characters to "ascii" value

2006-03-19 Thread Artur Rataj
char is a numeric type. You might try this code as an example: char c = 32; c += '@'; if(c > 31) System.out.println(c + " = " + (int)c); The exception is it adds to strings as a character, thus the cast is needed. Regards, Artur --

Converting characters to "ascii" value

2006-03-19 Thread David Kerber
I know "Ascii value" isn't quite the correct term, but it's the only one I could come up with. What Im trying to come up with is the simplest way of coming up with the numeric value associated with a given character, and to go back the other direction as well. In VB, these are the ASC() and c

Re: Tomcat and Threads

2006-03-19 Thread Richard Toren
You can also try using the TimerTask, as follows: In the context.xml create a bean as follows: The TimerBean can be very simple. I typically have an init(), destroy(), and setters for the parameters (setParam1, setParam2). The Bean needs to create a Timer and can be used to invoke a Tim

Re: Virtual Host configuration

2006-03-19 Thread Nic Daniau
Never really done this myself, but there is something about host aliases in the docs for 5.5: http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Host%20Name%20Aliases Does this help? Nic On 19/03/06, Matt Anderson <[EMAIL PROTECTED]> wrote: > > Hi All, > > I was configuring the virtual host