Re: Redeploy application
I added this to META-INF/context.xml: ( former: ) just overwrite webapps/appname.war and it seems to work! Any experiences with this approach? Regards Tokajac wrote: > > Hello, > > > Whenever i want to deploy new version of application (that's VERY often), > have to: > stop tomcat; > execute build.xml -ant script; > start tomcat; > > Is there any way, target in ant, that can make this easier? > > > Regards > > P.S. > http://www.coderanch.com/t/449958/Tomcat/Redeploy-application#2003409 > -- View this message in context: http://www.nabble.com/Redeploy-application-tp24081872p24089275.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: Redeploy application
http://localhost:8080/manager/deploy?path=/appname but i get: Access to the requested resource has been denied with user: tomcat; pass: tomcat Can you explain step-by-step the redeployment configuration, please? Regards Jonathan Mast-2 wrote: > > try: > > http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html > > > > On Wed, Jun 17, 2009 at 4:53 PM, Tokajac wrote: > >> >> Hello, >> >> >> Whenever i want to deploy new version of application (that's VERY often), >> have to: >> stop tomcat; >> execute build.xml -ant script; >> start tomcat; >> >> Is there any way, target in ant, that can make this easier? >> >> >> Regards >> >> P.S. >> http://www.coderanch.com/t/449958/Tomcat/Redeploy-application#2003409 >> -- >> View this message in context: >> http://www.nabble.com/Redeploy-application-tp24081872p24081872.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 >> >> > > -- View this message in context: http://www.nabble.com/Redeploy-application-tp24081872p24082327.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
Redeploy application
Hello, Whenever i want to deploy new version of application (that's VERY often), have to: stop tomcat; execute build.xml -ant script; start tomcat; Is there any way, target in ant, that can make this easier? Regards P.S. http://www.coderanch.com/t/449958/Tomcat/Redeploy-application#2003409 -- View this message in context: http://www.nabble.com/Redeploy-application-tp24081872p24081872.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
Generated PDF download from Tomcat
Hello, I convert a html page with PD4ML to PDF. After that I want to download it via browser. This is used for download: view plaincopy to clipboardprint? response.setContentType("application/force-download"); response.setHeader("Pragma", "No-cache"); response.setHeader("Content-Disposition", "Attachment;Filename=\"report.pdf\""); response.setHeader("Pragma", "public"); Open/Save/Cancel dialog appears and SOMETIMES I get exceptions like: "File does not begin with '%PDF-" "Corrupted..." These errors appear very often when opening with Internet Explorer; Especially when i send (almost) simultaneous requests from several browsers. Mozilla works a bit better. When I redirect Outputstream to file -i ALWAYS get proper PDF document. How can i always get proper PDF download possibility from Tomcat application? Regards -- View this message in context: http://www.nabble.com/Generated-PDF-download-from-Tomcat-tp24042088p24042088.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: Basic authentication without a secure connection
Answer on the FIRST question: I want to have Struts and php applications on separate hosts (if possible). If not, I will consider possibility for putting them on same host... SECOND: Tomcat application is using j_security_check, not Basic authentication. User-id and password are kept in session. They can be reached anytime. The scenario that you wrote is exactly what I want. How can I implement it? I'll also look after HttpFox. Regards(!!!) awarnier wrote: > > Mmmm wait.. I think I am starting to understand what you want. > > A question first : are the Tomcat server (+Struts) and the php > application on the same host ? > > A second question : does your Tomcat host know the login user-id and > password of the users ? In other words, can the host where Tomcat runs > /verify/ the user login ? > > Is what you want the following ? > You want that the users connect to the Tomcat host first, login, and > then that this login would be valid for both the Tomcat application and > also the php application ? > So that, in your Struts application, you could just give them a link to > the php application, and when they click on that link they go the php > application, but do not have to login again ? > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Basic-authentication-without-a-secure-connection-tp23347310p23370984.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: Basic authentication without a secure connection
I think my idea would be scenario 4.) I want to: 1.) Open a browser and write Tomcat application's address (localhost:8080/myapp); 2.) Write username and password in login fields of the application; 3.) Save credentials in session after successful login; 4.) Have link to completely separate application on newly opened page; 5.) When link is clicked, request should be sent that contains row: "Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" Login username and password would be the same for both applications. On this way, I don't need to type username and password again; 6.) >From now on, php application is on-board and Tomcat can be forgotten (it remains reachable only via browser's Back button); I will look now after httpd that you mentioned, awarnier. Regards awarnier wrote: > > > 4) > User --> front-end --> Tomcat --> Struts application > front-end --> other server --> php application > > If you don't need to be in-between, that is the easiest solution. > As the front-end, you can use many things. Apache httpd being only one > of the possibilities. > > So, which kind of scenario is yours ? > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Basic-authentication-without-a-secure-connection-tp23347310p23359828.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: Basic authentication without a secure connection
Thank you for the link, André-John! User should access the application directly (not proxying). On http://hc.apache.org/httpclient-3.x/tutorial.html as I see header is created for programatic access and not via browser. Is it possible to do this when I use browser for accessing? How? Regards P.S. I opened this topic on http://www.coderanch.com/t/442467/Security/Basic-authentication-without-secure-connection also Andre-John Mas-4 wrote: > > > On 3-May-2009, at 08:11, Tokajac wrote: > >> >>> Now why would you want to do that ? >> I want to connect applications: one is running on Tomcat (Java/ >> Struts) with >> another (php). >> >> I have an application running on Tomcat that has a link to other >> application >> which is on another server. Application on another server is >> protected with: >> http://en.wikipedia.org/wiki/Basic_access_authentication >> http://en.wikipedia.org/wiki/Basic_access_authentication >> >> I want to pass credentials after link is clicked, so I don't need to >> fill >> the username and password informations. I see that I might need to >> add row: >> "Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" >> in the request header. >> >> >> Is this possible to do? How? > > Is your Tomcat proxying a connection, or do you an application that > needs > information from another application, but is not exposed to the user? > > If it is the latter, then you could look at using Apache HttpClient: > > http://hc.apache.org/httpclient-3.x/ > > and then adding the header in the request. > > If the user is going to be accessing the application directly, then > there > is a reason the security is in place and you should not over-ride it, > unless > you are sure the people who protected the resource are fine with it. > If the > resource is requires authentication, then I would be surprised they > would be > okay with it, but I am not going to make any assumptions. > > André-John > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Basic-authentication-without-a-secure-connection-tp23347310p23358168.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: Basic authentication without a secure connection
>Now why would you want to do that ? I want to connect applications: one is running on Tomcat (Java/Struts) with another (php). I have an application running on Tomcat that has a link to other application which is on another server. Application on another server is protected with: http://en.wikipedia.org/wiki/Basic_access_authentication http://en.wikipedia.org/wiki/Basic_access_authentication I want to pass credentials after link is clicked, so I don't need to fill the username and password informations. I see that I might need to add row: "Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" in the request header. Is this possible to do? How? Regards awarnier wrote: > > Tokajac wrote: >> Hello! >> >> >> I'm developing a Tomcat, Struts application. >> >> I want to send credentials to the Authentication Dialog that's shown by >> application which is running on another server. >> With this idea, I'd connect 2 application: the Tomcat application should >> have a redirection link to the other application. >> >> If I can modify the request header, I will add row "Authorization: Basic >> QWxhZGRpbjpvcGVuIHNlc2FtZQ==" >> http://en.wikipedia.org/wiki/Basic_access_authentication >> http://en.wikipedia.org/wiki/Basic_access_authentication >> http://www.ietf.org/rfc/rfc2616.txt http://www.ietf.org/rfc/rfc2616.txt >> >> >> How can I implement this? >> > Now let us get this straight. You would like your Tomcat server to > provide access to its own clients, without authentication, to a back-end > service which requires authentication. Now why would you want to do that > ? > And if that is not what you want to do, what do you want to do ? > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Basic-authentication-without-a-secure-connection-tp23347310p23355186.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
Basic authentication without a secure connection
Hello! I'm developing a Tomcat, Struts application. I want to send credentials to the Authentication Dialog that's shown by application which is running on another server. With this idea, I'd connect 2 application: the Tomcat application should have a redirection link to the other application. If I can modify the request header, I will add row "Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" http://en.wikipedia.org/wiki/Basic_access_authentication http://en.wikipedia.org/wiki/Basic_access_authentication http://www.ietf.org/rfc/rfc2616.txt http://www.ietf.org/rfc/rfc2616.txt How can I implement this? Regards P.S. I also started this topic on: http://www.coderanch.com/t/442467/Security/Basic-authentication-without-secure-connection -- View this message in context: http://www.nabble.com/Basic-authentication-without-a-secure-connection-tp23347310p23347310.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
Case-insensitive JDBC Realm j_security_check
Hello! Is it possible to adapt REALM authentication of Tomcat, so that Username and password become case insensitive? Regards -- View this message in context: http://www.nabble.com/Case-insensitive-JDBC-Realm-j_security_check-tp21073984p21073984.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
Set and pick FROM in context.xml
Hello! My context.xml looks like: [CODE] Resource name="mail/Session" auth="Container" type="javax.mail.Session" mail.store.protocol="pop3" mail.pop3.host="mail.server" mail.transport.protocol="smtp" mail.smtp.host="mail.server" mail.smtp.port="portNo" mail.smtp.auth="true" mail.smtp.user="[EMAIL PROTECTED]" password="mypass" [/CODE] I want to put FROM also in this Context. For now it's hard-coded: [CODE]sender.setFrom("[EMAIL PROTECTED]"); [/CODE] I'm picking values with: [CODE] Object sess = ctx.lookup("mail/Session"); session = (javax.mail.Session) sess; [/CODE] How can i set the FROM value with contex.xml? Regards -- View this message in context: http://www.nabble.com/Set-and-pick-FROM-in-context.xml-tp20938349p20938349.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Undeploy context
Hello! Tomcat is running all the time. When i want to delete folder and .war file from the webapps folder i got the error message: "Unable to delete ... " These files are making trouble: commons-validator.jar formdef_1_0-validator_1_2_0.jar struts.jar I'm using Ant. My question is: Is there any way to REdeploy the application without restarting Tomcat? Regards -- View this message in context: http://www.nabble.com/Undeploy-context-tp20906627p20906627.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
j_security_check Tomcat user status
Hello! For Connection on database i initialize in context.xml: [CODE] [/CODE] j_security_check works fine. Now, i want to check another column on login: userstatus. Value of the column can be 0 or 1. Only users with correct username and status 1 can login. How can i do this with j_security_check? Regards -- View this message in context: http://www.nabble.com/j_security_check-Tomcat-user-status-tp19563429p19563429.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Log4j Date/time logging
How can i simply log the date and the time in each line? I found several examples around, but none of them works Regards -- View this message in context: http://www.nabble.com/Log4j-Date-time-logging-tp19048064p19048064.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: j_security_check Tomcat bad redirection
session.invalidate(); doesn't seems to be enough Regards -- View this message in context: http://www.nabble.com/j_security_check-Tomcat-bad-redirection-tp19047465p19047484.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
j_security_check Tomcat bad redirection
Hello, When I do the login with wrong username & password i have a redirection on the same(login) page. After that i try to login with correct user & pass and have a bad redirection: Http status http://localhost:8080/{webapp}/secure/j_security_check Is there any way to restart the whole tomcat app? I have a check: httpServletRequest.getUserPrincipal().getName() How can i create new UserPrincipal object to erease the previous user? Regards -- View this message in context: http://www.nabble.com/j_security_check-Tomcat-bad-redirection-tp19047465p19047465.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat monitoring
Thanks for your answer Jan! As far as I see http://www.zabbix.com http://www.zabbix.com is not available for WinXP (that's my platform). I downloaded Zapcat. Can Zapcat be useful without zabbix? Any more advice for this situation? Regards -- View this message in context: http://www.nabble.com/Tomcat-monitoring-tp18963920p18992437.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat JConsole
Finally i started with monitoring I was trying to start a remote monitoring with : Instead of that now i'm using the local monitoring of org.apache.catalina.startup.Bootstrap start Details which regard the discussion: Windows XP; apache-tomcat-5.5.26; jdk1.6.0_07; jre1.6.0_07; There is default configuration for Tomcat server (i unzipped it only) + copy the necessary .jar files to {TomcatHome}\common\lib\folder I started Tomcat via {TomcatHome}\bin\startup.bat, i go to Program Files\Java\jdk1.6.0_07\bin\ and type: jconsole and now chose Local process! Regards What platform are you on? The first part of your settings is for Linux/UNIX, but catalina.bat is for Windows. How are you starting Tomcat? If Tomcat and JConsole are running on the same box, all you need is the -Dcom.sun.management.jmxremote; the other parts are for remote monitoring only. You do not need the java.rmi setting at all. To monitor a Tomcat on Linux, I do the following before running startup.sh: export CATALINA_OPTS="-Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false" (All of the above is on one line, of course.) Once Tomcat is running, I start JConsole on my Windows box, and simply enter :8999 in the Remote Process slot of the New Connection dialog box. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Tomcat-JConsole-tp18982597p18985903.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat JConsole
I appreciate Your answer a lot, Johnny! Can U provide me more details about configuring? Which file should be edited? Where is the right place to put -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port="9004" -Dcom.sun.management.jmxremote.authenticate="false" -Dcom.sun.management.jmxremote.ssl="false" ? Which .exe or .java file needs to be started? Regards -- View this message in context: http://www.nabble.com/Tomcat-JConsole-tp18982597p18985026.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat JConsole
How can i monitor Tomcat with JConsole? I found sg like: $ CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=test-idc.internet2.edu"; $ export CATALINA_OPTS; and i put that in catalina.but, but so far i have no success with the configuration. If sy has experience with this set up, please write down the step by step process. Thx! Regards -- View this message in context: http://www.nabble.com/Tomcat-JConsole-tp18982597p18982597.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat monitoring
Thx for Your answer, Chuck ! So far, i've found lambdaprobe more useful. i'm still looking around. Do U have any advice about SQL debug? I already have iBatis log and p6spy. Is there any other useful tool for queries? Regards -- View this message in context: http://www.nabble.com/Tomcat-monitoring-tp18963920p18967324.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat monitoring
I want to monitor performance of Tomcat server when I'm running an application. Memory usage, threads, objects, user sessions, sql queries and as much as possible of other information on server. Where can i find tools for this? Regards -- View this message in context: http://www.nabble.com/Tomcat-monitoring-tp18963920p18963920.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re-opening the browser
Hello! I'm working on password recovery part of my webapp. It is done with Tomcat server and j_security_check. When i mistype the password 3 times for username, the service sends the activation link to the e-mail address of that user. I find the link in my mailbox and when i click it, in the NEW BROWSER the login page of the webapp opens. But when i submit the (activated) username and password, i got the -- HTTP Status 408 - The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser type: Status report message The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser description: The client did not produce a request within the time that the server was prepared to wait What's wrong here? Is it something about sessions/cookies? How should i solve this? Regards P.S. If i open another browser manually after clicking the link, and submit activated username and pass -everything is fine. -- View this message in context: http://www.nabble.com/Re-opening-the-browser-tp18907443p18907443.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOLVED Re: p6Spy logging
I solved the problem: Tokajac wrote: > > Hello, > > > I want to log my Tomcat app with > http://www.p6spy.com/ > > I did the setup as it is told on the website, but it's still not working. > My configuration in the app's META-INF/context.xml is: > > driverName="com.mysql.jdbc.Driver" >connectionURL="jdbc:mysql://localhost:3306/dbname" >connectionName="" connectionPassword="" > userTable="" >userNameCol="" userCredCol="" userRoleTable="" >roleNameCol=""/> > >type="javax.sql.DataSource" username="" password="" > driverClassName="com.p6spy.engine.spy.P6SpyDriver" > url="jdbc:mysql://localhost:3306 > /dbname?autoReconnect=true" > maxActive="8" maxIdle="4"/> > > > spy.properties is in {TomcatHome}/common/classes folder > p6spy.jar is in {TomcatHome}/common/lib folder > > and i'm having this Exception: > > Cannot instantiate com.p6spy.engine.logging.appender.FileLogger, even on > second attempt. Logging to file log4jaux.log: > java.lang.ClassNotFoundException: > com.p6spy.engine.logging.appender.FileLogger > com.p6spy.engine.common.P6SpyOptions reloading properties > Warning: Could not set property setStringmatcher due to > InvoicationTargetException > Cannot instantiate com.p6spy.engine.logging.appender.FileLogger, even on > second attempt. Logging to file log4jaux.log: > java.lang.ClassNotFoundException: > com.p6spy.engine.logging.appender.FileLogger > Warning: driver com.mysql.jdbc.Driver is a real driver in spy.properties, > but it has been loaded before p6spy. p6spy will not wrap these > connections. Either prevent the driver from loading, or try setting > 'deregisterdrivers' to true in spy.properties > Warning: Error registering factory > [com.p6spy.engine.logging.P6LogFactory] > Caused By: java.lang.ClassCastException: > com.p6spy.engine.logging.P6LogFactory cannot be cast to > com.p6spy.engine.spy.P6Factory > ERROR [http-8080-Processor24] - Servlet.service() for servlet jsp threw > exception > com.p6spy.engine.spy.P6DriverNotFoundError: Error registering factory > [com.p6spy.engine.logging.P6LogFactory] > Caused By: java.lang.ClassCastException: > com.p6spy.engine.logging.P6LogFactory cannot be cast to > com.p6spy.engine.spy.P6Factory > > and so on... > > Any ideas how to make this p6Spy work? > > > Regards > -- View this message in context: http://www.nabble.com/p6Spy-logging-tp18558061p18560118.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
p6Spy logging
Hello, I want to log my Tomcat app with http://www.p6spy.com/ I did the setup as it is told on the website, but it's still not working. My configuration in the app's META-INF/context.xml is: spy.properties is in {TomcatHome}/common/classes folder p6spy.jar is in {TomcatHome}/common/lib folder and i'm having this Exception: Cannot instantiate com.p6spy.engine.logging.appender.FileLogger, even on second attempt. Logging to file log4jaux.log: java.lang.ClassNotFoundException: com.p6spy.engine.logging.appender.FileLogger com.p6spy.engine.common.P6SpyOptions reloading properties Warning: Could not set property setStringmatcher due to InvoicationTargetException Cannot instantiate com.p6spy.engine.logging.appender.FileLogger, even on second attempt. Logging to file log4jaux.log: java.lang.ClassNotFoundException: com.p6spy.engine.logging.appender.FileLogger Warning: driver com.mysql.jdbc.Driver is a real driver in spy.properties, but it has been loaded before p6spy. p6spy will not wrap these connections. Either prevent the driver from loading, or try setting 'deregisterdrivers' to true in spy.properties Warning: Error registering factory [com.p6spy.engine.logging.P6LogFactory] Caused By: java.lang.ClassCastException: com.p6spy.engine.logging.P6LogFactory cannot be cast to com.p6spy.engine.spy.P6Factory ERROR [http-8080-Processor24] - Servlet.service() for servlet jsp threw exception com.p6spy.engine.spy.P6DriverNotFoundError: Error registering factory [com.p6spy.engine.logging.P6LogFactory] Caused By: java.lang.ClassCastException: com.p6spy.engine.logging.P6LogFactory cannot be cast to com.p6spy.engine.spy.P6Factory and so on... Any ideas how to make this p6Spy work? Regards -- View this message in context: http://www.nabble.com/p6Spy-logging-tp18558061p18558061.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]