Re: Regarding Error 404-please help!

2008-09-10 Thread Ognjen Blagojevic
laura fu wrote: Hi Tomcat, How are you? I am new to using Apache Tomcat and am in the process of learning it. I came across this problem while i was setting it up, please kindly take a look, i just need a little push in the right direction. I saved my work HelloWorld.java in the folder in "C:\

Re: Regarding Error 404-please help!

2008-09-12 Thread Ognjen Blagojevic
It is really hard to pinpoint your problem whit such a huge web.xml. But, let's try. First, for servlet "HelloWorld" you stated the class name "/servlet/HelloWorld". That is wrong. Class name should be fully qualified Java class name like: "com.something.servlet.HelloWorld". Second, in your

Re: How do you have your dev environment setup?

2008-09-17 Thread Ognjen Blagojevic
Bai Shen wrote: I've been doing a lot of webapp development on tomcat, but currently my process is all manual. I write the code in Eclipse, and then copy the appropriate files over to tomcat. I'd like to automate and standardize my process. So would y'all mind explaining how your dev environme

Re: Browser Limited web application

2008-09-17 Thread Ognjen Blagojevic
Peter Crowther wrote: From: karthikn [mailto:[EMAIL PROTECTED] Question 2: How to fetch the MAC address (Physical address) of the clients using web application ? You can not do this at the server. Some clients may not even have one - a computer with no network card using a

Re: HTTPS and Virtual Hosts

2008-09-22 Thread Ognjen Blagojevic
André Warnier wrote: Is the above, very roughly and approximatively still a valid explanation of what happens, or is it totally wrong, or has something changed in-between that I am unaware of ? Yes, that's about it. Here is the official explanation: http://httpd.apache.org/docs/2.0/ssl/ssl_

Re: [OT] RE: HTTPS and Virtual Hosts

2008-09-22 Thread Ognjen Blagojevic
Peter Crowther wrote: Or configure multiple IP addresses on one card - almost all operating systems these days allow multiple IP addresses on one adapter. Cheaper, and you don't run out of card slots so fast :-). Didn't know that. That's definitely better. -Ognjen -

Re: tomcat and jdbc connector

2007-10-01 Thread Ognjen Blagojevic
Hi, loredana loredana wrote: "javax.servlet.ServletException: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]The requested instance is either invalid or not running." Can you try to do the same outside Tomcat, in a main method of a test Java class? It doesn't look like a T

Re: Hidden form fields not found in request

2007-10-26 Thread Ognjen Blagojevic
Hi Ashok, Ashok Venkat wrote: In the below code, i am submitting a form to itself in the onload method and changing some hidden form field values. After the form is submitted, the hidden values are not available in the request object.As a result, the page gets into an endless loop. Interestin

FORM login, would like error page same as login page

2007-11-15 Thread Ognjen Blagojevic
Hi all, I'm using FORM login, and I'm trying to make error page looks the same as login page, with one extra error message. So, I created login.html, with username and password fields, and if parameter err=1 is passed, then the error message is displayed. My web.xml configuration follows:

Re: SV: FORM login, would like error page same as login page

2007-11-15 Thread Ognjen Blagojevic
Wilhelmsen Tor Iver wrote: So, I created login.html, with username and password fields, and if parameter err=1 is passed, then the error message is displayed. How do you pick up the parameter in the HTML? Using JavaScript? Remember *.html resources are usually not parsed server-side in any way.

Re: FORM login, would like error page same as login page

2007-11-15 Thread Ognjen Blagojevic
Wilhelmsen Tor Iver wrote: to see what the real URL is when you expect it to use the error page; most likely that will be the URL of the resource that triggered the authentication in the first place. Yes, the url returned is http://localhost:8080/myapp/j_security_check So the parameters wer

Re: SV: FORM login, would like error page same as login page

2007-11-16 Thread Ognjen Blagojevic
Hi Christopher, Christopher Schultz wrote: Please post the code that checks for this parameter. Here is the code: function getUrlParameter(name) { name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]" + name + "=([^&#]*)"; var regex = new RegExp(regexS

Re: UTF-8 charset encoding

2007-11-16 Thread Ognjen Blagojevic
Hi Tremal, Tremal Naik wrote: all characters are displayed well in both browsers, the page encoding appears correctly set to UTF-8. The problems arises when I try to submit "strange" characters as currency symbols (euro, pound, yen, ...) in a form text box. Did you try to put acceptCharset="UT

Re: UTF-8 charset encoding

2007-11-19 Thread Ognjen Blagojevic
Tremal Naik wrote: 2007/11/16, Ognjen Blagojevic <[EMAIL PROTECTED]>: Did you try to put acceptCharset="UTF-8" in the form tag? well, I'm using Struts and it looks the html:form tag doesn't allow any acceptCharset attribute. I tried to set the enctype attribute, b

Re: UTF-8 charset encoding

2007-11-19 Thread Ognjen Blagojevic
Tremal Naik wrote: Oh, yes, you're right. I'm using version 1.1, that's why probably I don't have that option available. Unfortunately I'm not allowed to upgrade to a newer version... I suppose you are using ActionForms. Try to extend ActionForm overriding your reset method which will set the

Re: Java file name is displayed when the JSP file is accessed.

2007-11-27 Thread Ognjen Blagojevic
Pavan Singaraju wrote: i have a web application which is deployed on Tomcat 5.0.18. Sometimes when i am navigating to a page using menu of my application, it is displaying a java file name with full package name. The java file is a business logic processing location on the application. Why is

Logging and debugging j_security_check problems

2007-11-27 Thread Ognjen Blagojevic
Hi all, I have problems using j_security_check, and I'm not sure is it DB access problem or something else. I would like to make Tomcat log all the messages regarding this, but I don't know how to configure it. I read /tomcat-6.0-doc/logging.html, but I can't rebuild tomcat extras, since I'm

Bad README.html

2007-08-29 Thread Ognjen Blagojevic
Hi all, README link on http://tomcat.apache.org/download-60.cgi#6.0.14 seems to open an empty blank page. Try: http://www.mirrorgeek.com/apache.org/tomcat/tomcat-6/v6.0.14/README.html http://www.mirrorgeek.com/apache.org/tomcat/tomcat-6/v6.0.13/README.html ... Regards, Ognjen -

Re: Tomcat status

2007-09-19 Thread Ognjen Blagojevic
Hi Andrew, For Tomcat you can use: http://localhost:8080/manager/status Be sure to confugure conf/tomcat-users.xml. Regards, Ognjen Andrew Hole wrote: Could you tell me wich page? On 9/18/07, Bj <[EMAIL PROTECTED]> wrote: if you're using apache httpd and mod_jk in front of your tomcats,

Re: PostgreSQL vs MySQL with Tomcat

2009-01-19 Thread Ognjen Blagojevic
In our company we used MySQL and Postgres for several projects. Both DBMSs are mature and stable, and they are used worldwide for large-scale projects. Performance-wise we measured some differences, but they were not so big to notice them in the real-life loads. In other words, having some expe

Re: how

2009-02-26 Thread Ognjen Blagojevic
nicumarius wrote: what should I do to not use port number when writting the address of a page on the Apache server? Do you want to use: http://server.com/app instead of http://server.com:8080/app ? If this is the case than you need to have a web server (either Apache HTTPD or Apache To

Re: Restarting Tomcat 6

2009-10-26 Thread Ognjen Blagojevic
André Warnier wrote: Potri Raaja wrote: I need to restart tomcat at the specified time using crontab. Please let me know how to do that. Only if you tell us at least under which platform, and the version of Tomcat this applies to. Potri, First, you must know the shell command to restart

Re: tomcat https

2009-11-04 Thread Ognjen Blagojevic
Torleif wrote: I am trying to set up tomcat to use https. I used "keytool -genkey -alias tomcat -keyalg RSA" If I use "changeit" as password for keystore everything works ok. If I use a different password it does not work. I have modified "server.xml" with keystorePass="newpassword" My .keystore

Re: Tocat webapp listening on different port

2009-11-04 Thread Ognjen Blagojevic
Tobias Crefeld wrote: schrieb Sergio Arrighi : Is it possible to have a tomcat webapp listening on a port different from the port which is in use by the server itself?? AFAIK it is not possible to setup 2 http-connectors for one tomcat, but you can install another tomcat in its own JVM with ot

Re: Reading and writing files outside tomcat directory

2009-11-04 Thread Ognjen Blagojevic
noobie45 wrote: Thank you so much. I am absolutely new to Tomcat on Linux. I need to figure out what you mean by "user-id under which Tomcat runs". Every process on Linux is ran by a certain user. With command "ps -ef", you can list all the processes and users that run them (first column fr

Re: webapps question

2009-11-04 Thread Ognjen Blagojevic
Michele Mase' wrote: I've 100 webapps on one single tomcat instance. Every webapps has in his WEB-INF/lib the same jars I've some permgen memory problems too Moving all the shared libs in tomcat's root/common/lib should help me reducing the perm gen memory usage? Should it be a good pratics? No

Re: tomcat https

2009-11-04 Thread Ognjen Blagojevic
ards, Ognjen Thanks again for all help!! Torleif Wed Nov 04 2009 10:28:22 CET from "Ognjen Blagojevic" Subject: Re: tomcat https Torleif wrote: I am trying to set up tomcat to use https. I used "keytool -genkey -alias tomcat -keyalg RSA" If I use &

Re: [OT] Tomcat dies suddenly

2010-02-14 Thread Ognjen Blagojevic
George Sexton wrote: There's a story in a book I once read where a computer system crashed every morning around the same time. No one could figure it out. Finally, the head of IS goes down to the computer room at the expected time. In walks a maintenance man who comes in, opens the cabinet for

Re: [OT] Tomcat dies suddenly

2010-02-17 Thread Ognjen Blagojevic
André Warnier wrote: Now I am very curious, because I happen to have supplied the media archive management software used by a very large broadcasting organisation, where a similar story happened to the server running ditto software (this was a few years ago). Right after that incident, the or

Re: TR: pb redeploy with Tomcat 5.5.24

2009-08-11 Thread Ognjen Blagojevic
Hi, 1. What is the exact error being thrown? (copy paste the stack trace, if any) 2. Are you using Tomcat 5.5.23? Can you switch to fresh version of tomcat (6.0.20)? It is probably more stable and with less bugs. If you can't reproduce the problem on the latest version, that probably means

Re: Tomcat not starting - No error messages seen

2009-08-12 Thread Ognjen Blagojevic
Anisha Parveen -X (anparvee - Infosys at Cisco) wrote: From the log messages it seems Tomcat is not loading the contexts provided in server.xml. Out of the contexts provided in server.xml , only one of it getting loaded and no log messages for the rest. Could you post the log messgages? Say,

Re: SSL Using IP Addresses

2009-08-13 Thread Ognjen Blagojevic
Jeff Sexton wrote: We have a situation where we need to call a SOAP service in a Glassfish server via HTTPS from a servlet in Tomcat. We extract a self-signed certificate from Glassfish and imported it on the Tomcat server. It all works in situations where we can use the fully-qualified host na

Re: SSL Using IP Addresses

2009-08-14 Thread Ognjen Blagojevic
t can not be used to validate a call by IP address, then why does importing it with an alias of the IP address not work for us? Thank you, my understanding of this is still weak. On Thu, Aug 13, 2009 at 8:47 AM, Ognjen Blagojevic wrote: Jeff Sexton wrote: We have a situation where we need to call

Re: Multi-Level Context Paths

2009-08-17 Thread Ognjen Blagojevic
Hi Andy, Try to undeploy the old application. Rename the test.war to sg#server#test.war, and deploy it. Regards, Ognjen Andy Ee wrote: Dear All, I need an urgent help, and I hope you will shed some light to it. I have recently installed Apache Tomcat version 6.0.20. I copied my

Re: Multi-Level Context Paths

2009-08-17 Thread Ognjen Blagojevic
Factory.(DefaultFactor y.java:57) ... 25 more Aug 17, 2009 6:57:44 PM org.apache.catalina.core.ApplicationContext log INFO: Closing Spring root WebApplicationContext Any idea? Thanks. Best Regards, Andy Ee -Original Message- From: Ognjen Blagojevic [mailto:ogn..

Re: Multi-Level Context Paths

2009-08-17 Thread Ognjen Blagojevic
Try here: http://www.opensymphony.com/sitemesh/userForums.action Regards, Ognjen Andy Ee wrote: Hi Ognjen, Are you able to advice the mailing list for sitemesh? Is it under Tomcat as well? Best Regards, Andy Ee -Original Message- From: Ognjen Blagojevic [mailto:ogn

Re: Multi-Level Context Paths

2009-08-18 Thread Ognjen Blagojevic
Andy Ee wrote: Other 2 questions: 1) Can I exclude the META-INF/context.xml file in the war file? This context.xml that will be copied to conf/Catalina/localhost after deployment, so that I can be sure this is not the problem to the setup of multi-level context path? Yes, you can. 2) When we

Re: Any way to make tomcat send the "disable caching" headers on all responses?

2009-08-18 Thread Ognjen Blagojevic
Epithemeus wrote: What is happening in practice is that: the xml file is indeed updated but the graph being displayed is an older version (corresponding to the older .xml file which has now been over-written). I gather that this means tomcat is caching the xml files. I have tried including "cach

Re: Request Help

2009-08-18 Thread Ognjen Blagojevic
R.Sriram wrote: I am trying to host my servlet based solution in Network Solutions shared hosting service. In order test if I can use it, I downloaded Hello.java from their environment and compiled in my environment as MyHello.class. I tested their Hello.class (Hello.class compiled in their envi

Re: Tomcat Logs and console .

2009-08-18 Thread Ognjen Blagojevic
Mohamed Shah wrote: Sorry If this is not interesting. I couldn't find all of the console contents in log files. If not available in log files can I manage the console to read the full contents somehow?. FYI I use old tomcat bundled with liferay tomcat(5.0) and I cannot upgrade due to some tea

Re: Tomcat Logs and console .

2009-08-18 Thread Ognjen Blagojevic
- From: Ognjen Blagojevic [mailto:ogn...@etf.bg.ac.rs] Sent: Tuesday, August 18, 2009 5:57 PM To: Tomcat Users List Subject: Re: Tomcat Logs and console . Mohamed Shah wrote: Sorry If this is not interesting. I couldn't find all of the console contents in log files. If not available in log

Re: Tomcat Logs and console .

2009-08-18 Thread Ognjen Blagojevic
Log file looks ok. It is dirty with duplicate listeners errors. Can you try to solve that first? Regards, Ognjen Mohamed Shah wrote: Aug 18, 2009 4:44:44 AM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "com.liferay.portal.spring.context.PortalContextLo

Re: Request Help

2009-08-19 Thread Ognjen Blagojevic
R.Sriram wrote: I am trying to find out from Network Solution what JDK version they are using to compile. All they are telling me is they use JServ 1.1.2 and JDK compatible to that. That software is 9 years old, and it is not developed anymore. Tomcat supports Servlet spec 2.5, and Jserv 2.0

Re: Tomcat Logs and console .

2009-08-19 Thread Ognjen Blagojevic
Mohamed Shah wrote: Console Displays the actual errors, But the screen size is small so that we cannot know about the errors. Scroll back, Mohamed! Scroll back! :) -Ognjen - To unsubscribe, e-mail: users-unsubscr...@tomcat.a

Re: tomcat 5.5.x and sun java 1.6

2009-08-19 Thread Ognjen Blagojevic
Nikolay Diulgerov wrote: My question is, does tomcat 5.5.x work OK with sun java 1.6.x. Yes, it does. -Ognjen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.ap

Re: autodeploying/unpacking ROOT.war

2009-08-20 Thread Ognjen Blagojevic
Christoph Kukulies wrote: What again are the bits to auto-unpack/deploy a file in the webapps directory, e.g. ROOT.war? I looked into server.xml and there is unpackWars="true" and autoDeploy="true" and still a ROOT.war file I put into /usr/share/tomcat5.5/webapps remains untouched when I start

Re: "Exception Initializing Page Context"

2009-08-20 Thread Ognjen Blagojevic
Gwen Way wrote: Hmmm... I will check with the developers then, although the three people on my team are theoretically the only ones with access to make changes to the app. Thank you again, Mark. If you worry how come that application previously worked but now it doesn't, I can think of at le

Re: autodeploying/unpacking ROOT.war

2009-08-20 Thread Ognjen Blagojevic
Christoph Kukulies wrote: Nothing got unpacked. I was used that whenever I put a fresh ROOT.war (which hen contained something different than the tomcat ROOT app) it got unpacked into a ROOT directory in webapps. (I helped myself now in unzipping the war file). This is typical behavior when t

Re: Tomcat not starting - No error messages seen

2009-08-20 Thread Ognjen Blagojevic
Anisha Parveen -X (anparvee - Infosys at Cisco) wrote: Please find attached the catalina.out logs file and debug logs. I don't see any attachment. Paste your logs into the message. Not the whole files, just last 30 lines. You didn't try "ps -ef | grep java"? In our case tomcat is started

Re: Using multiple DataSource's for fail-over.

2009-09-02 Thread Ognjen Blagojevic
This is interesting topic. IANA-failover-expert, but one question comes to my mind. What happens when the first server is recovered? Some cached connections will still point to second server, while newly created connections will go to the first one? Is that acceptable? Regards, Ognjen Bill

Re: Exception while configuring JDBC realm

2009-03-10 Thread Ognjen Blagojevic
Ramya Raghukumar wrote: I am trying to configure jdbc realm on Tomcat 6, by connecting to Oracle 11g that runs on Ubuntu.I tried doing it with inside but got the exception "Network adapter unable to establish connection". However when I tried to connect to the database through a JNDI resourc

Re: Tomcat error while starting related to java

2009-03-10 Thread Ognjen Blagojevic
Hi Selvajava, Read the stack trace carefully. It seems that the class com.headstrong.tablecomponent.util.ConfigFileParser is digesting an XML file (probably TableProperties.xml), and during that process the exception is thrown - probably due to malformed XML. It seems that it doesn't have an

Re: Tomcat Configuration in Eclipse

2009-05-08 Thread Ognjen Blagojevic
This is normal. When you start Tomcat manually, it uses YOUR-TOMCAT-HOME/webapps as default webapp directory. This directory contains "ROOT" webapp (visible on context "/"), and that is the welcome page you see. On the other side, when you start Tomcat inside Eclipse, it uses some other weba

Sanity check: Multiple SSL virtual hosts

2009-05-09 Thread Ognjen Blagojevic
Hi all, I just configured Tomcat 6.0.18 (over CentOS 5.3 and Java 1.6.0u13) to work with two virtual hosts over https, and wanted to check is this the proper configuration: two https connectors (bounded to the IPs) with two keystores, two Host elements, all inside one Service element. Here i

Re: Tomcat 7: Why is JDK needed ?

2011-07-22 Thread Ognjen Blagojevic
Bobi, What Konstantin is suggesting, is if you want to get your question answered, you *really* need to describe your problem in detail. Which OS, JRE and Tomcat version are you using, which Tomcat distribution (installer or .zip), how are your environment variables set, how do you try to st

Re: Tomcat 7: Why is JDK needed ?

2011-07-22 Thread Ognjen Blagojevic
DK_HOME towards it, I could start Tomcat with the startup.bat. Best, --- Ognjen Blagojevic schrieb am Fr, 22.7.2011: Von: Ognjen Blagojevic Betreff: Re: Tomcat 7: Why is JDK needed ? An: "Tomcat Users List" Datum: Freitag, 22. Juli, 2011 12:06 Uhr Bobi, What Konstantin is suggesting, i

Re: [Tomcat 6.0.29] Why do I have to configure the datasource in the context.xml of the server and in the context.xml of the application?

2011-07-25 Thread Ognjen Blagojevic
On 25.7.2011 16:57, AN wrote: I don't understand why do I have to place the Resource element in both files. You don't. It seems that you misconfigured something. < Could "<<" be the source of the problem? If you deploy as WAR file, check if context.xml is indeed copied to $CATALINA_B

Re: Unable to generate pw hash on cmd line since 7.0.16

2011-07-26 Thread Ognjen Blagojevic
Hi Jeremy, On 26.7.2011 17:37, M. Jeremy Carter wrote: Since upgrading to Tomcat 7.0.16, the command line noted at http://tomcat.apache.org/tomcat-7.0-doc/realm-howto.html hasn't worked for me. I've been unable to find any answers from google, other than some references that seem to say I'm

Re: Unable to generate pw hash on cmd line since 7.0.16

2011-07-26 Thread Ognjen Blagojevic
On 27.7.2011 0:11, Ognjen Blagojevic wrote: Add tomcat-coyote.jar to your classpath, and you should be fine. Ops... Didn't notice you already solved it. Thunderbird broke it into separate threads. -Ognjen - To unsubs

Re: Updating JAR META-INF/resources at runtime

2011-07-27 Thread Ognjen Blagojevic
Hi David, On 27.7.2011 16:20, David Wolverton wrote: I'm running Tomcat 7.0.19 with IntelliJ IDEA IDE. I'm using the new Servlet 3.0 feature that allows webapp resources to be served from within JARs' META-INF/resources directory. This technique is working fine, however I would like to be able t

Re: Support for a jarsToInclude property?

2011-07-30 Thread Ognjen Blagojevic
On 30.7.2011 0:27, Konstantin Kolinko wrote: 2. Note that you can configure JarScanner element in context.xml. Maybe it is worth to add a pair of such attributes (skip/include) there? http://tomcat.apache.org/tomcat-7.0-doc/config/jar-scanner.html That makes sense. Most of the jar files are an

Re: [Tomcat 6.0.29] Why do I have to configure the datasource in the context.xml of the server and in the context.xml of the application?

2011-08-01 Thread Ognjen Blagojevic
Hi AN, On 30.7.2011 22:34, AN wrote: (...) I'm using Liferay (the application is a portlet). I believe that you cannot apply webapp configuration to portlets. It is probably better if you ask your question at Liferay mailing lists. -Ognjen --

Re: Java 7

2011-11-23 Thread Ognjen Blagojevic
André, On 22.11.2011 20:31, André Warnier wrote: The reason I'm asking is that for testing some unrelated Java software, I am being asked to install Java 7 on a system on which currently happily runs Tomcat 6.x with Java 6 (Oracle), and I'd like to know if I would be setting myself up for some i

Re: SSL Certificate Update Not Reflected on the Website

2012-01-09 Thread Ognjen Blagojevic
Conway, On 9.1.2012 11:19, Conway Liu wrote: Does anyone have any suggestion where might be wrong? Do you have anything between your browser and Tomcat? Apache HTTPd, perhaps, or some kind of load balancer with SSL termination? -Ognjen --

Re: SSL Configuration Errors

2012-01-09 Thread Ognjen Blagojevic
Justin, On 9.1.2012 20:40, Justin Larose wrote: This seems to be the problem. How do I set my imported cert as a "key entry" or get Tomcat to read it as a CertEntry? You must use the same keystore and same alias when you: 1. generate key, 2. generate csr, 3. import certificate. Example: ke

Re: More, Re: Problem bringing up SSL with a CA certificate

2012-01-19 Thread Ognjen Blagojevic
James, On 19.1.2012 1:41, James Lampert wrote: secondary, Jan 18, 2012, trustedCertEntry, Certificate fingerprint (MD5): EB:A3:71:66:38:5E:3E:F4:24:64:ED:97:52:E9:9F:1B wintouch, Jan 18, 2012, trustedCertEntry, Certificate fingerprint (MD5): 55:D7:4D:D4:83:01:D6:E0:EB:A4:F3:9A:06:BD:87:38 primar

Re: New development, Re: More, Re: Problem bringing up SSL with a CA certificate

2012-01-23 Thread Ognjen Blagojevic
James, On 19.1.2012 18:05, James Lampert wrote: You must find keystore with earlier generated key pair (the one you also used to generate CSR for CA), and import all three certificates into that keystore. At this point, I still don't have the keystore used to generate the CSR, but I *do* now h

[OT] Re: jvm exits without trace

2010-03-16 Thread Ognjen Blagojevic
Hi, "Tomcat dies suddenly" thread was exciting almost as "Prison Break" TV series. I couldn't wait to find out what would be solution to the problem, and I must admit that just downgrading to lower sub-sub-sub version JVM left me a bit disappointed. :) Regards, Ognjen Carl wrote: Taylan,

Re: Tomcat app. can no longer connect to MySQL

2010-03-29 Thread Ognjen Blagojevic
Konstantin Kolinko wrote: 2010/3/28 fred basset : Caused by: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:57) at org.hibernate.dialect.DialectFactory.buildDialect(DialectFac

Debugging PermGen problems

2010-04-28 Thread Ognjen Blagojevic
Hi, My co-worker and I decided to try to debug PermGen problems after detailed reading of mailing list archives and Tomcat wiki. We followed the procedure described at the wiki [1], and got one inactive WebappClassLoader (started = false), with 18 GC root paths. They are attached to the mess

Re: Debugging PermGen problems

2010-04-29 Thread Ognjen Blagojevic
Caldarale, Charles R wrote: From: Ognjen Blagojevic [mailto:ogn...@etf.bg.ac.rs] Subject: Debugging PermGen problems Environment: Tomcat 6.0.14, Windows XP SP2. Before doing *anything* else, move up to the current level (6.0.26). Besides having numerous stability and security fixes beyond

Re: tomcat administration

2010-05-07 Thread Ognjen Blagojevic
testwreq wreq wrote: http://localhost:8080 brings up the tomcat page & one of the option is "Administration". I would like to use this web interface and even give some of the test webapp users ability to restart tomcat. What is the URL of the administration application? Is it something that en

Re: How to configure a web app

2010-06-09 Thread Ognjen Blagojevic
On 9.6.2010 16:19, Thomas Kloeber wrote: * the IP address of the backing database is one of the parameters that needs to be configured (in context.xml), so I can't get any data from the db unless it is configured... * the other confgurables (SPNEGO and kerberos stuff) are in w

[offtopic] Server dies suddenly

2010-07-04 Thread Ognjen Blagojevic
Whenever you have a hard time debugging your server crash, read this blog post from James Gosling: "We'd get core dumps and spend hours pouring over them. Some were just crazy, showing values in registers that were simply impossible given the preceeding instructions. We tried everything. Repla

Re: How to configure certificate file (*.cer) in Tomcat 6

2012-01-30 Thread Ognjen Blagojevic
Geet, Bottom-posting style is standard on this list (http://en.wikipedia.org/wiki/Posting_style#Bottom-posting). On 30.1.2012 5:42, Geet Chandra wrote: - The customer has got very secure environment...they don't want to use the *.keystore being shipped with particular product. Uhm... lots

Re: How to configure certificate file (*.cer) in Tomcat 6

2012-01-30 Thread Ognjen Blagojevic
On 30.1.2012 12:44, Geet Chandra wrote: 1. By "*.keystore", do you mean keystore or truststore? Do you understand the difference between them? - Could you please explain the difference. Google is your friend: http://stackoverflow.com/questions/318441/truststore-and-keystore-definitions 2.

Re: memory heap size

2012-02-14 Thread Ognjen Blagojevic
On 14.2.2012 14:55, André Warnier wrote: The Heap is only one part of the memory used by the Java process. Exactly. Here is some more information on the topic: http://stackoverflow.com/questions/8037920/tomcat-memory-consumption-is-more-than-heap-permgen-space -Ognjen ---

Re: tomcat dbcp encryption

2012-03-27 Thread Ognjen Blagojevic
이재만, On 27.3.2012 9:54, 이재만 wrote: how do i encrypt my datasource's user and password in server.xml ?? Read this: http://wiki.apache.org/tomcat/FAQ/Password -Ognjen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache

Re: PermGen error

2012-04-03 Thread Ognjen Blagojevic
On 3.4.2012 10:35, Casper Wandahl Schmidt wrote: Den 03-04-2012 10:26, Vijay skrev: Why i am getting PermGen space error even increasing permgen size & Heap Size to 1024MB. Tomcat : apache-tomcat-6.0.33 Try reading: http://www.catb.org/~esr/faqs/smart-questions.html Exactly. Also, check t

Re: Problem tomcat

2012-04-06 Thread Ognjen Blagojevic
Fairouz, On 4.4.2012 17:25, Fairouz Fakhfakh wrote: I use Tomcat 6 and java 5. Good to know. Send us exact versions for both. OS type and version could also be informative. I have a problem by clicking on a button to access a JSP page. Which button? If the button is on the HTML/JSP pag

Re: Adding the manager app to a Standalone tomcat install

2012-05-07 Thread Ognjen Blagojevic
Todd, On 4.5.2012 22:01, Todd Seidenberg wrote: xx.x.32.16 - - [04/May/2012:13:59:05 -0600] "GET /manager/html HTTP/1.1" 404 991 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/12.04 Chromium/18.0.1025.151 Chrome/18.0.1025.151 Safari/535.19" xx.x.32.16 - - [04/

Re: need help debugging why a simple app install fails

2012-08-09 Thread Ognjen Blagojevic
Hi my, On 9.8.2012 14:55, my koseli wrote: When I do ant build, deploy it seems to work but when I do "ant install -v" I get failed to build with output below. I cant find the reason this is failing. Is it possible to get some help on debugging this? You get the message from Manager webapp ("F

Re: need help debugging why a simple app install fails

2012-08-09 Thread Ognjen Blagojevic
Hi my, On 9.8.2012 16:57, my koseli wrote: Here's the relevant lines from build.xml 101 Tomcat docs says that install task is deprecated. Although it is maybe equivalent to "deploy", I recommend to switch to deploy task. 102 Other than that, nothing suspicious her

Re: need help debugging why a simple app install fails

2012-08-10 Thread Ognjen Blagojevic
Hi my, On 10.8.2012 6:13, my koseli wrote: I tried adding "/text" to the end of manager url but that didnt work. There is nothing interesting in the /var/log/tomcat6/ also. When I do *build* I do get warning as below but I am not sure how serious this warning is. On this list, bottom-postin

Re: need help debugging why a simple app install fails

2012-08-10 Thread Ognjen Blagojevic
Hi my, On 10.8.2012 6:13, my koseli wrote: I tried adding "/text" to the end of manager url but that didnt work. There is nothing interesting in the /var/log/tomcat6/ also. When I do *build* I do get warning as below but I am not sure how serious this warning is. I just tested some more wit

Re: need help debugging why a simple app install fails

2012-08-13 Thread Ognjen Blagojevic
my, On 12.8.2012 18:52, my koseli wrote: I just tested some more with 6.0.26, and indeed InstallTask seems to be problematic, so just use DeployTask as recommended by Tomcat docs: Again, what exact Tomcat version do you use? I changed the build.xml to below but I still get the error. Any ide

Re: error while shutting down tomcat

2012-08-15 Thread Ognjen Blagojevic
Ijlal, On 15.8.2012 0:32, Ijlal EL HAZITI wrote: I installed a wab application (sakai precisely) on a distant server remotely, but it doesn't start, and when I shutdown tomcat, I get that error: /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar 14 août 2012 13:55:44 org.apache.catal

Re: Issue with running Tomcat from Eclipse/STS

2012-08-16 Thread Ognjen Blagojevic
Julien, On 15.8.2012 22:12, Julien Martin wrote: I am having trouble getting Tomcat-7.0.29 to work with Eclipse/sts. My war deploys fine when I drop it into the deploy directory of Tomcat directly but when I deploy it using Eclipse/STS, I get a ClassNotFoundException whereas I know for certain

Re: error while shutting down tomcat

2012-08-17 Thread Ognjen Blagojevic
Ijal, On 17.8.2012 1:18, Ijlal EL HAZITI wrote: Well, I have a full access to the server, Here is the logs file, hope it helps. Great, now take a look at your log files, and try to understand what they are trying to tell you. Hint: "Access denied for user 'sa'@'localhost' (using password: N

Re: Problem with uploading large files

2012-08-17 Thread Ognjen Blagojevic
Sahana, On 17.8.2012 14:33, Sahana Voleti wrote: I am trying to upload really large files (size about 10GB) using the Apache commons upload. I have followed the steps properly, increased the java heap size and the maxPostSize in tomcat (I am using tomcat version 7.0.29). Also I am using W

MySQL connection error [was: error while shutting down tomcat]

2012-08-20 Thread Ognjen Blagojevic
Ijlal, On 18.8.2012 2:03, Ijlal EL HAZITI wrote: I understand that it's an access to mysql problem. So I gave the user sakai all permissions required, and re-verified the file catalina.properties (where I should put mysql username and the password) but in vain. I still have the same error. You

Re: Implementing SSL and error invocating https://localhost:8443/ (Tomcat 7.0 on Windows 7)

2012-10-29 Thread Ognjen Blagojevic
Gabriel, On 28.10.2012 3:48, Gabriel Huerta Araujo wrote: 5.- When I open IE with http://mydomain.com:8080/ or https://mydomain.com:8443/ appears or : IE can not show web page. It seems that your hosts file is not properly configured. 1. Make sure you are editing %SystemRoot%\system32\driver

Re: How do I get Tomcat 7 to start up faster in Linux CentOS kernel version 2.6.18?

2012-10-31 Thread Ognjen Blagojevic
Dilshad, On 30.10.2012 22:55, Dilshad Shahid wrote: I am experiencing a problem with slow start up times for Tomcat 7. I have done some testing by tweaking configuration parameters both on Linux CentOS kernel version 2.6.18 and on Windows 7 using this link as my primary guide: http://wiki.apache

Re: SSL Certificate Help

2012-11-08 Thread Ognjen Blagojevic
Alissa, On 7.11.2012 22:13, Alissa Schneider wrote: Here are the steps I have taken thus far: * I deleted my original keystore that held my self-signed certificate. * I deleted the self-signed certificate. * I recreated the keystore. * I imported the CA-signed

Re: How to Enable SSL on Tomcat 7 on Linux & Test using curl?

2012-12-18 Thread Ognjen Blagojevic
James, On 18.12.2012 3:03, James Dekker wrote: Dec 17, 2012 5:43:08 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8443"] Dec 17, 2012 5:43:08 PM org.apache.coyote.AbstractP INFO: Server startup in 9611 ms You successfully configured a

Re: How to Enable SSL on Tomcat 7 on Linux & Test using curl?

2012-12-18 Thread Ognjen Blagojevic
Chris, On 18.12.2012 20:44, Christopher Schultz wrote: If you are using curl just to check the certificate or test HTTPS, it is easier and faster to do that with your favorite web browser. Better yet, use sslscan. Nice tool, thank you for the tip. You seem to be confused by the fact that

[OT] Tomcat upgrade 7.0.35 -> 7.0.37, SSL/TLS handshake failure

2013-02-20 Thread Ognjen Blagojevic
Hi, I just wanted to report a problem with JSSE TLS/SSL handshake that became obvious only after I upgraded Tomcat from 7.0.35 to 7.0.37. Server: Tomcat 7.0.37, BIO Connector, Oracle JDK 1.7.0_xx (e.g. _09) Client: Java TLS/SSL client, e.g. [1], Oracle JDK 1.6.0_xx (e.g. _35) Exception is:

Re: Tomcat(7.0.35) vulnerability or issues

2013-02-25 Thread Ognjen Blagojevic
dkumar, On 25.2.2013 10:02, dku...@ccilindia.co.in wrote: We are upgrading the tomcat from version 6.0.18 to 7.0.35 Operating System Version : HP-UX 11.31 Please inform us if there are any known issues or any vulnerability on latest tomcat version of 7.0.35. 1. Good you are upgrading, 6.0.1

Re: Question regarding JNDIRealm - tomcat 6.0.35

2013-02-25 Thread Ognjen Blagojevic
André, On 25.2.2013 10:34, André Warnier wrote: So, on the face of it, there seems to be a contradiction between you saying on the one hand that the LDAP server closes the connection, and on the other hand that netstat shows the connection still being active. TCP connection is established unti

Re: Question regarding JNDIRealm - tomcat 6.0.35

2013-02-25 Thread Ognjen Blagojevic
André, On 25.2.2013 14:53, André Warnier wrote: Yes, but as soon as Tomcat would try to write to (or read from) that connection, it would immediately get an error, no ? So to say that in the meantime "tomcat keeps on trying" one of these connections doesn't seem to fit, or ? In regular situat

  1   2   3   >