Re: Tomcat embedded does not show ROOT context

2006-04-09 Thread Nic Daniau
> http://localhost:6969/manager/ also gives The requested resource (/) is not available. try http://localhost:6969/manager/html On 09/04/06, Juergen Weber <[EMAIL PROTECTED]> wrote: > > Hi everybody, > > I made a war from the Tomcat root and manager applications and startet > them > with the code

Re: index.jsp not showing after successful installation

2006-04-08 Thread Nic Daniau
I supposed you've already checked the obvious: conflit on port 8080 with something else? firewall turned on? service on manual and not started? On 08/04/06, balaraju mandala <[EMAIL PROTECTED]> wrote: > > Hi Comunity, > > I am unable to see index.jsp page, though i successfully installed > Tomcat5

Re: running two instances of tomcat

2006-04-05 Thread Nic Daniau
plication System ..." in the title bar, and it says "NonAlpha 45". > > Any clue what's going on here? > > David > > Nic Daniau wrote: > > OK here we go. What was said above is true but it's not all about the > > service, therefore the servi

Re: Single sign-on with multiple Tomcats served via one Apache httpdserver

2006-03-30 Thread Nic Daniau
gt; non-clustered tomcat's whose only commonality is the Apache front-end > and the user realm database. I don't know of any way in which one would > be aware of sessions created and trusted in the other. You might want > to consider your own sign-on mechanism to support this. >

Single sign-on with multiple Tomcats served via one Apache httpd server

2006-03-29 Thread Nic Daniau
Hi, believe it or not, this problem which I though to be a very standard one, didn't get a single reply?! Even if you know this can't be done, please tell me! Thanks a lot in advance. Configuration: a. Apache httpd 2.0 server (IP0, port 80) with some content served from /cms b. Worker to a Tomcat

Re: How to set a default or root application?

2006-03-28 Thread Nic Daniau
What Marc said is probably true but what about all these poor users who don't use javascrip, hum? I also noticed that with Tomcat, the new context deployment method does not work: if you put your context.xml into META-INF, it's supposed to load it, and it works... except when your context is ROOT!

Re: Context startup order

2006-03-28 Thread Nic Daniau
I wouldn't bet on that, plus it would be a short term fix as it's meant to become a deprecated use of server.xml in future releases That said, I don't have the answer but I'm sure it's in the source if you take the time to go through it... On 28/03/06, Vivek Mohan <[EMAIL PROTECTED]> wrote: > > D

Re: how to install Tomcat 5.5.15 or 16 in Windows 2003?

2006-03-28 Thread Nic Daniau
ar... not sure about the "Tomcat actually does not install anything I think" bit, and JAVA_HOME is not required either... it's a param of the service config... you might want to read my post on "*running two instances of tomcat*" starting with "OK here we go", that might get you started with a Win

Subject: Single sign-on with multiple Tomcats served via one Apache httpd server

2006-03-28 Thread Nic Daniau
Hi there! Configuration: a. Apache httpd 2.0 server (IP0, port 80) with some content served from /cms b. Worker to a Tomcat 4.1 running on a separate box (IP1:8080) mapped to /app1 c. Anpother worker to another Tomcat 5.5 running on separate box (IP2:8080) mapped to /app2 Both Tomcats are using t

Re: How to populate session after authenticate

2006-03-28 Thread Nic Daniau
I use request.getUserPrincipal().getName() to get the username, does it work for you? Never quite understood what this getRemoteUser method was... if someone knows, I'm interested! On 28/03/06, Dave <[EMAIL PROTECTED]> wrote: > > I am using JBoss. The servlet Form authentication is nice, but I ne

Re: [5.5] path specified in context.xml not being used

2006-03-26 Thread Nic Daniau
agree with Chuck. It used to work in previous versions of Tomcat (up to 5.5.9 if I'm correct) but it stopped behaving like this in more recent versions (eg 5.5.16). The doc explicitely says not to use the path attribute in context files deployed within your war's META-INF or your server's conf/Cata

Re: manager webapp absent after installation

2006-03-25 Thread Nic Daniau
what about in conf/catalina/localhost, what do you find there? http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Introductionmight help, just a thought On 25/03/06, Alex Turner <[EMAIL PROTECTED]> wrote: > > It's in the server/webapps/ directory instead of directly in the webapps > direc

Re: [5.5] path specified in context.xml not being used

2006-03-25 Thread Nic Daniau
see also my other post in "*Setting the context path for expanded WARs* " On 24/03/06, Wang, Hansen <[EMAIL PROTECTED]> wrote: > > The path is ignored when you deploy webapps this way. Tomcat will use > the basename of the war file as the context path. If you want to use > something different than

Re: Setting the context path for expanded WARs

2006-03-25 Thread Nic Daniau
create a folder ${catalina.home}\context (I use "context" but anything works as long as the name does NOT start with webapps (see bug in bugzilla), eg "webapps2" will NOT work. expand your war into this folder, NOT to webapps/ copy your context file into conf/catalina/localhost (or whatever your

Re: system.out

2006-03-24 Thread Nic Daniau
That's a parameter of the Tomcat launcher, or the service on Windows. If you use the monitor (tomcat5w) you can configure this on one of the tabs. or you can use tomcat5 //US//Tomcat5 --StdOutput "..." --StdError "..." http://tomcat.apache.org/tomcat-5.5-doc/setup.html On 24/03/06, Gilbert, Anto

Re: Run Tomcat in W2k3 as service

2006-03-24 Thread Nic Daniau
I wouldn't think so, these options are called when the service is launched so you would have to restart the service for this to be picked up. On 24/03/06, Ryan Daly <[EMAIL PROTECTED]> wrote: > > On Thu, 2006-03-23 at 20:51 +, Nic Daniau wrote: > > You may need to

Re: Run Tomcat in W2k3 as service

2006-03-23 Thread Nic Daniau
You may need to reconfigure the service. Have a look to my post from a few min ago on "*running two instances of tomcat*" you can also update the service using e.g. %CATALINA_HOME%\bin\tomcat5.exe //US//Tomcat5 --Description "My updated description" HTH Nic On 23/03/06, David Kerber <[EMAIL P

Re: running two instances of tomcat

2006-03-23 Thread Nic Daniau
OK here we go. What was said above is true but it's not all about the service, therefore the service.bat script is not enough to resolve the problem. If you read the nsi install script from the source, you can see everything that it does, and the setup of the service is just one thing. The tested p

Re: running two instances of tomcat

2006-03-22 Thread Nic Daniau
That was the case in 4.1 yes, but it doesn't work with 5.5 on Windows platform, because of the way the service is set up from the nsi scrip (that you can read from tomcat source). I've written down a procedure to overcome this and I will post it tomorrow (its on my laptop which I left at the office

Re: Helpppp: Tomcat displays Page slowly

2006-03-20 Thread Nic Daniau
do you get these 7s the first time you request the page, and then it's a lot quicker the next times, or it it always like this. Because the first time you call your JSP it's first compiled so it's normal to get poor performance on the first call. hth Nic On 20/03/06, Michael McQuade <[EMAIL PROTE

Re: UserDatabase with something else than a basic MemoryUserDatabase

2006-03-20 Thread Nic Daniau
izzled. > > Short story: You're not missing anything. UserDatabase is currently the > unloved orphaned child of Tomcat ;-). > > > "Nic Daniau" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > Hi, > I'm trying to configure Tomcat (5

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

Re: Jsp mode in Emacs

2006-03-18 Thread Nic Daniau
If all you need is a powefull text editor and not some IDE that supposedly guide you in developping your JSPs, then I can only say good things about Textpad (minimal investment, highly customisable, powerful, and a lot easier to get used to than Emacs -- which I've used too). I use Texpad with ant