Re: Tomcat and Eclipse IDE

2005-01-09 Thread Benoit - Althosting.fr
What is your system and configuration ?
Ben
- Original Message - 
From: Nic Werner [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Sunday, January 09, 2005 10:23 PM
Subject: Tomcat and Eclipse IDE


I'm using the Eclipse IDE with the Web Tools Platform. It is running my 
version of Tomcat 5, but I can't find any documentation on how it is 
running? I want to use Tomcat for authentication, and certain things 
need to be set in the right context in server.xml, but I can't figure 
out how the WPT uses Tomcat.

   It looks like it isn't copying files over to the webapps/ dir, but 
it doesn't like it has modified docBase either

I know this is not purely a Tomcat question, but due to lack of 
documentation I'm hoping someone is on the same path I am...

- Nic.
-
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: catalina.out export to another file

2005-01-07 Thread Benoit - Althosting.fr
Hi,
Thanks for your answer
But I've lot of webapps running, and need for all of this running contexte 
to put the output file of catalina in differents files (one contexte = one 
file).
With your method, it's just change the file I think.

Benoit
- Original Message - 
From: Julius Davies [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Cc: [EMAIL PROTECTED]
Sent: Friday, January 07, 2005 8:53 AM
Subject: RE: catalina.out export to another file

Hi, Benoit,
You can could try adding code like this to a jsp, and then hitting the jsp 
with a browser:

%
OutputStream os = new FileOutputStream( /var/log/myNewLogFile.log );
PrintStream ps = new PrintStream( os );
System.setOut( os );
%
From that point on you will have taken over catalina.out.
Also, when starting Tomcat, you could use catalina.sh run command instead 
of startup.sh or catalina.sh start and redirect it.  Like so:

catalina.sh run  /var/log/myNewLogFile.log
These are just two workarounds I happen to know about.  Probably there are 
betters ways using Tomcat's config files.

yours,
Julius
-Original Message-
From: Benoit - Althosting.fr [mailto:[EMAIL PROTECTED]
Sent: Thu 1/6/2005 3:54 PM
To: tomcat-user@jakarta.apache.org
Cc:
Subject: catalina.out export to another file
Hi,
Sorry, I post this message again, I have no answer and I really need help :(
I'm trying to redirect catalina logs to another file
(montest_access_log.txt) but catalina out is not redirect in my file (steal
in catalina.out)
That's my configuration in server.xml for the host :
Host name=mywebsite.com debug=0
appBase=/usr/local/jakarta-tomcat4.1/webapps/montest unpackWARs=true
autoDeploy=true
  Context path= docBase= debug=1 reloadable=true
swallowOutput=true /
  Logger className=org.apache.catalina.logger.SystemOutLogger
directory=/usr/local/jakarta-tomcat4.1/webapps/montest/logs
prefix=montest suffix=.txt  timestamp=true verbosity=4 /
  Logger className=org.apache.catalina.logger.SystemErrLogger
directory=logs prefix=montest_systerr suffix=.txt  timestamp=true
verbosity=4 /
  Valve className=org.apache.catalina.valves.AccessLogValve
directory=webapps/montest/logs  prefix=montest_access_log. suffix=.txt
pattern=common resolveHosts=false/
/Host
Does anybody know anything about this ?
I tried to make the change but unfortynately it does not work.
Thanks
-
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]


catalina log - redirect

2005-01-06 Thread Benoit - Althosting.fr
Hi,
I'm trying to redirect catalina logs to another file
(montest_access_log.txt) but catalina out is not redirect in my file (steal
in catalina.out)
That's my configuration in server.xml for the host :
Host name=mywebsite.com debug=0
appBase=/usr/local/jakarta-tomcat4.1/webapps/montest unpackWARs=true
autoDeploy=true
  Context path= docBase= debug=1 reloadable=true
swallowOutput=true /
  Logger className=org.apache.catalina.logger.SystemOutLogger
directory=/usr/local/jakarta-tomcat4.1/webapps/montest/logs
prefix=montest suffix=.txt  timestamp=true verbosity=4 /
  Logger className=org.apache.catalina.logger.SystemErrLogger
directory=logs prefix=montest_systerr suffix=.txt  timestamp=true
verbosity=4 /
  Valve className=org.apache.catalina.valves.AccessLogValve
directory=webapps/montest/logs  prefix=montest_access_log. suffix=.txt
pattern=common resolveHosts=false/
/Host
Does anybody know anything about this ?
I tried to make the change but unfortynately it does not work.
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


catalina.out export to another file

2005-01-06 Thread Benoit - Althosting.fr
Hi,
Sorry, I post this message again, I have no answer and I really need help :(
I'm trying to redirect catalina logs to another file
(montest_access_log.txt) but catalina out is not redirect in my file (steal
in catalina.out)
That's my configuration in server.xml for the host :
Host name=mywebsite.com debug=0
appBase=/usr/local/jakarta-tomcat4.1/webapps/montest unpackWARs=true
autoDeploy=true
  Context path= docBase= debug=1 reloadable=true
swallowOutput=true /
  Logger className=org.apache.catalina.logger.SystemOutLogger
directory=/usr/local/jakarta-tomcat4.1/webapps/montest/logs
prefix=montest suffix=.txt  timestamp=true verbosity=4 /
  Logger className=org.apache.catalina.logger.SystemErrLogger
directory=logs prefix=montest_systerr suffix=.txt  timestamp=true
verbosity=4 /
  Valve className=org.apache.catalina.valves.AccessLogValve
directory=webapps/montest/logs  prefix=montest_access_log. suffix=.txt
pattern=common resolveHosts=false/
/Host
Does anybody know anything about this ?
I tried to make the change but unfortynately it does not work.
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]