Re: Tomcat6+webapps+log4j

2013-01-27 Thread Tiago Sousa

Em 25/01/2013 19:39, Christopher Schultz escreveu:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Tiago,

On 1/25/13 4:45 AM, Tiago Sousa wrote:

Em 25/01/2013 08:59, Konstantin Kolinko escreveu:

2013/1/24 Tiago Sousa tiago-a-so...@ext.ptinovacao.pt:

Hello to all.

I have tomcat 6

Which version?

I'm using tomcat 6.0.16.

Did you install it from a zip file downloaded from
tomcat.apache.org?

Yes, i installed using a zip file downloaded from
tomcat.apache.org.


using JULI for logging (logging.properties in conf dir) plus
several webapps using its own log4j.properties.

I need to centralized all the logs so i thought to put a
global/shared log4j.properties in $CATALINA_BASE\lib so that
tomcat and each webapp can be controlled through this file. OK,
but make sure that all jars are in their proper places.
Sometimes people read the doc incorrectly.

http://tomcat.apache.org/tomcat-6.0-doc/logging.html

Ok, i think i've done it, namely:

* Put|log4j.jar|and|tomcat-juli-adapters.jar|from extras
into|$CATALINA_HOME/lib|. *
Replace|$CATALINA_HOME/bin/tomcat-juli.jar|with|tomcat-juli.jar|from



extras.


The problem i'm facing is that no logs are produced. At this time
i'm trying to configure just TOMCAT, no webapps, to log through
log4j but still no logs are produced. I've folowed the tutorial in
Apache logging webpage with the standard log4j.properties. No logs
in $CATALINA_BASE\logs.

Which tutorial did you follow?

The one you mentioned:
http://tomcat.apache.org/tomcat-6.0-doc/logging.html

Did you configure them to be written to ${catalina.base}/logs
? Maybe it tries to write them elsewhere?

It is configured in its standard version (
http://tomcat.apache.org/tomcat-6.0-doc/logging.html), which i am
using.

Is the file readable?

There is no file, tomcat does not create one and that is my
problem.

I think Konstantin meant is the config file readable or perhaps is
the logs/ directory writable. Of course, all permissions must be
relative to the effective uid running Tomcat.

Check catalina.out. If you don't have a log4j.properties file (or
similar) available, I believe you'll get a message on stdout saying
You haven't configured log4j properly and you won't get any further
log messages anywhere.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEAREIAAYFAlEC330ACgkQ9CaO5/Lv0PBrVQCfb9A0KMGRe0aoqRSeYrHT1WNx
0lwAn3ed8h09a7fv7Vg4jCgerDUrPFD1
=G3j0
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


Hello.
Thanks for the reply.
Yes, the config file is readable as the logs directory.
I donĀ“t have any catalina.out file because log4j is not able to create it.

Thanks for the help.

Tiago

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How to configure tomcat 6.0.36 in Windows 7 to deploy servlets

2013-01-27 Thread Pid
On 27/01/2013 16:25, Varuna Seneviratna wrote:
 I extracted tomcat-6.0.36 zip file to c:\tomcat, now root of my tomcat
 installation is c:\tomcat. I have set the CLASSPATH  to
 
 .;C:\tomcat\lib\servlet-api.jar;C:\Program Files\Java\jdk1.7.0_10

Don't do that.  Tomcat configures the classpath for itself.


 Tomcat-6.0.36 is now running and the Home page is displayed
 
 I created the below Servlet
 SERVLET
 import java.io.*;
 import javax.servlet.*;
 import javax.servlet.http.*;
 
 public class HelloWorld extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse res)
   throws ServletException, IOException  {
   
   res.setContentType(text/html);
   PrintWriter out = res.getWriter();
   
   
   out.println(HTML);
   out.println(HEADTITLEHello World/TITLE/HEAD);
   out.println(BODY)
   out.println(BIGHello World/BIG);
   out.println(/BODY/HTML);
   
   
   }
 }
 
 /SERVLET
 
 The above Servlet was successfully compiled and the resulting .class
 file was placed in the directory /webapps/ROOT/WEB-INF/classes
 The classes directory was not created when the tomcat zip file was
 extraxted so I created it my self.Inside WEB-INF/ directory there is a
 web.xml file and I didn't do anything with it.

You need to specify the Servlet in web.xml.  That would be why it
doesn't work, read the Servlet Specification for more information and
follow the guide here:

 http://tomcat.apache.org/tomcat-6.0-doc/appdev/index.html

Tip: don't modify the existing Tomcat applications, remove/backup the
existing ones and replace them with the ones you create.


p


 When I tried to access the Servlet HelloWorld through the url
 http://localhost:8080/servlet/HelloWorld the response is
 RESPONSE
 HTTP Status 404 - /servlet/HelloWorld
 
 type Status report
 
 message /servlet/HelloWorld
 
 description The requested resource is not available.
 Apache Tomcat/6.0.36
 /RESPONSE
 
 trying with the url http://localhost:8080/servlets/servlet/HelloWorld
 resulted in the same response as above
 
 What must be done to get the Servlets deployed?
 
 Thanks
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 


-- 

[key:62590808]

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



LDAP on TOMCAT 7.0.30

2013-01-27 Thread N.s.Karthik
Hi

Spec :  JDK1.6,  
 Tomcat 7.0.30, 
  Linux 64 bit Suse  

So far we have been using  3 killer Ajax web based applications 
with each app provided with separate DB schema.

The Requirement  is to provide a SSO Single Sign On  Logic with existing
LDAP Server.
The AAA has to validated  Only once for login

1) What Options do i have in providing SSO Logic
2)Can Cookies be used for resolving the requirement.
3)Can the browser pick up the Client System Login credentials ( Win start-up
credentials) for the authorization.

with regards
karthik 



with regards
Karthik  



--
View this message in context: 
http://tomcat.10.n6.nabble.com/LDAP-on-TOMCAT-7-0-30-tp4993107.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: What is roseModel.mdl

2013-01-27 Thread Ben Stringer
Hi Geett,

Anything below the /webapps directory is part of a deployed application, not 
part of Tomcat. You will need to ask the application developer. 

Cheers, Ben

On 28/01/2013, at 3:41 PM, Geett Chanddra Singha gee...@gmail.com wrote:

 Hi All,
 
 What is the significance of this file
 
 \www\webapps\docs\architecture\requestProcess\roseModel.mdl
 
 -- 
 Thanks  Regards
 Geett Chanddra Singha

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: What is roseModel.mdl

2013-01-27 Thread Ben Stringer
Sorry, disregard my post, I see the file you are referring to in the tomcat 
source.

Cheers, Ben

On 28/01/2013, at 3:58 PM, Ben Stringer b...@burbong.com wrote:

 Hi Geett,
 
 Anything below the /webapps directory is part of a deployed application, not 
 part of Tomcat. You will need to ask the application developer. 
 
 Cheers, Ben
 
 On 28/01/2013, at 3:41 PM, Geett Chanddra Singha gee...@gmail.com wrote:
 
 Hi All,
 
 What is the significance of this file
 
 \www\webapps\docs\architecture\requestProcess\roseModel.mdl
 
 -- 
 Thanks  Regards
 Geett Chanddra Singha
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How to prevent CVE-2012-5568 in Tomcat 7.0.32

2013-01-27 Thread Aditi Sinha
Thanks a lot Mark for the information.



Regards,

Aditi


Re: What is roseModel.mdl

2013-01-27 Thread Mark Thomas
Geett Chanddra Singha gee...@gmail.com wrote:

Hi All,

What is the significance of this file

\www\webapps\docs\architecture\requestProcess\roseModel.mdl

It is an IBM Rational Rose UML model of the request process. It is the source 
for the UML images in the docs. Note that it had not been updated for some 
time. While it is broadly still correct, some of the detail may have changed

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org