Re: heap memory issues

2012-06-18 Thread Miguel González Castaños
On 18/06/2012 02:45, Perry, Andrew wrote: Try setting -XX:MaxPermSize=256m it helps with our applications, it might do the trick here. What is the effect of this? Miguel - To unsubscribe, e-mail:

Re: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm

2012-06-18 Thread javed ansari
Hi, Thanks for the help so far. Now my login implementation is working. I added a context.xml file in the META-INF folder and now those two classes are being loaded. good so far. Now I want to implement LOGOUT. For this I have a hyperlink named logout on every page. By clicking on that I suppose

Re: iis not looking for jsp in tomcat webapps folder

2012-06-18 Thread André Warnier
Vijaya wrote: Thanks for the reply again Andre Warner. We reformatted our server and installed a windows, IIS, and Tomcat all over. The problem still persists. This is what my setting is. Our portal URL is www.eservicebazaar.com. The class, and jsp files are under the folder

Re: IP-based virtual hosting with useIPVHosts=true always goes to default host

2012-06-18 Thread Assaf Urieli
Hi all, I solved this issue following a parallel discussion on another forum: http://forum.linode.com/viewtopic.php?f=19t=8991 Basically, I had IPTables firewall rules rerouting port 443 traffic to port 8443, and port 80 traffic to port 8080. This is because the tomcat6 user cannot access ports

RE: iis not looking for jsp in tomcat webapps folder

2012-06-18 Thread Vijaya
This is what I get in the IIS log file if I login to www.eservicebazaar.com/AtYourService URL 08:57:43 220.181.124.181 GET /index.html 304 08:59:08 59.92.208.214 GET /jakarta/isapi_redirector2.dll 500 This is what I get in the logfile if I log in as www.eservicebazaar.com 09:01:56

Re: IP-based virtual hosting with useIPVHosts=true always goes to default host

2012-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Assaf, On 6/15/12 6:33 AM, Assaf Urieli wrote: So, the addresses to test are: http://www.joli-ciel.com/test.jsp http://www.moyshele.com/test.jsp http://178.79.152.69/test.jsp http://176.58.107.88/test.jsp And exactly the same four, but with

Re: IP-based virtual hosting with useIPVHosts=true always goes to default host

2012-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Assaf, On 6/18/12 4:46 AM, Assaf Urieli wrote: Hi all, I solved this issue following a parallel discussion on another forum: http://forum.linode.com/viewtopic.php?f=19t=8991 Basically, I had IPTables firewall rules rerouting port 443 traffic

Re: iis not looking for jsp in tomcat webapps folder

2012-06-18 Thread André Warnier
Vijaya, I am not the great specialist regarding isapi_redirector for Windows, but the configuration that you list below looks very strange to me. It does not seem to match the configuration format for isapi_redirector, which is described here :

RE: iis not looking for jsp in tomcat webapps folder

2012-06-18 Thread Leo Donahue - PLANDEVX
-Original Message- From: Vijaya [mailto:svij...@solutionscraft.com] Subject: iis not looking for jsp in tomcat webapps folder The current setting is In IIS 6, I have the jakarta isapi filter set and the default document only as and nothing else; Do you have a web service

Running Tomcat in a jvm with an EJB container...

2012-06-18 Thread Tony Anecito
Hi All,   Is it possible to run Tomcat in the same jvm as JBoss and if so how to do that? I am using the latest versions of both and usually run in separate jvms but want to see if it can they can run together in the same jvm so I can compare response times for both configurations. Since JBoss

Re: Running Tomcat in a jvm with an EJB container...

2012-06-18 Thread Jose María Zaragoza
2012/6/18 Tony Anecito adanec...@yahoo.com: Hi All, Since JBoss is usually several minor versions behind on it's embedded Tomcat server I usually run them in different jvms so I can use the latest versions of each. Are you interested on any particular feature in latest releases of Tomcat

Tomcat not starting properly on a customer's AS/400, and I have no idea why. Help?

2012-06-18 Thread James Lampert
We're attempting to bring up apache-tomcat-7.0.25.zip on a customer's AS/400, the same as we've done on several other AS/400s (including our own), and it's not working. In catalina.out, I'm seeing this: Jun 18, 2012 11:36:23 AM org.apache.catalina.core.AprLifecycleListener init

Re: Tomcat not starting properly on a customer's AS/400, and I have no idea why. Help?

2012-06-18 Thread Konstantin Kolinko
2012/6/18 James Lampert jam...@touchtonecorp.com: We're attempting to bring up apache-tomcat-7.0.25.zip on a customer's AS/400, the same as we've done on several other AS/400s (including our own), and it's not working. In catalina.out, I'm seeing this: Jun 18, 2012 11:36:23 AM

Re: Running Tomcat in a jvm with an EJB container...

2012-06-18 Thread Tony Anecito
Actually I am trying to keep the same exact tomcat builds so I eliminate that as a cause for differences in my test results.   Thanks! -Tony --- On Mon, 6/18/12, Jose María Zaragoza demablo...@gmail.com wrote: From: Jose María Zaragoza demablo...@gmail.com Subject: Re: Running Tomcat in a jvm

Re: Tomcat pausing and no java process

2012-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel, (Bringing this back onto the list) On 6/17/12 5:11 AM, Miguel González Castaños wrote: This weekend I made a test to upgrade from 1.5 32 bits jdk to a 1.7 64 bits jdk. Unfortunately even I increase the heap memory to 1gb, the system gets

Re: Tomcat not starting properly on a customer's AS/400, and I have no idea why. Help?

2012-06-18 Thread James Lampert

Re: Running Tomcat in a jvm with an EJB container...

2012-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 6/18/12 11:55 AM, Tony Anecito wrote: Is it possible to run Tomcat in the same jvm as JBoss and if so how to do that? I am using the latest versions of both and usually run in separate jvms but want to see if it can they can run together

Re: heap memory issues

2012-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, On 6/17/12 8:45 PM, Perry, Andrew wrote: Try setting -XX:MaxPermSize=256m it helps with our applications, it might do the trick here. Please don't just make random suggestions. This almost certainly has nothing to do with PermGem

RE: Running Tomcat in a jvm with an EJB container...

2012-06-18 Thread Martin Gainty
Tony- JBOSS v5.1 is implementing a catalina connector whose servlet-spec is at *LEAST* 1 full version older than the servlet-spec of that TC 7 support for Specification-Version: 3.0 Servlet spec version for the JBOSS 5.1 connector org.jboss.mx.server.ServerConstants interface /*** The

RE: Running Tomcat in a jvm with an EJB container...

2012-06-18 Thread Tony Anecito
Thanks Martin,   I am using JBoss 7.1.1 final in standalone mode and both that and Tomcat in jdk 1.7.0_05 64-bit. I am just trying to find out about the interprocess communication response time.   Thanks, -Tony --- On Mon, 6/18/12, Martin Gainty mgai...@hotmail.com wrote: From: Martin Gainty

Re: Modify HTTP status returned by stopped context

2012-06-18 Thread kharper2
Chris et. al., Thank you for the direction. I created my own servlet which loads without error. Here is how I've configured it: servlet servlet-nameHttpResponseAdjuster/servlet-name servlet-classbla.bla.tomcat.ReturnNotAvailableServlet/servlet-class load-on-startup1/load-on-startup

Re: iis not looking for jsp in tomcat webapps folder

2012-06-18 Thread Pid
On 18/06/2012 10:10, Vijaya wrote: file=c:/tomcat-5.5.16/conf/jk2.shm So... tomcat-5.5.16 AND jk2? I had to blow the dust of the 5.x security page... http://tomcat.apache.org/security-5.html#Fixed_in_Apache_Tomcat_5.5.16,_5.0.SVN just sayin' p -- [key:62590808] signature.asc

Re: Tomcat not starting properly on a customer's AS/400, and I have no idea why. Help?

2012-06-18 Thread James Lampert
Found the problem: The lines # Java 6 settings if needed export -s JAVA_HOME=/QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit/jre export -s CATALINA_HOME=/wintouch/tomcat

Re: Tomcat not starting properly on a customer's AS/400, and I have no idea why. Help?

2012-06-18 Thread Mark Thomas
On 18/06/2012 22:02, James Lampert wrote: Found the problem: The lines # Java 6 settings if needed export -s JAVA_HOME=/QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit/jre

Re: Tomcat not starting properly on a customer's AS/400, and I have no idea why. Help?

2012-06-18 Thread James Lampert
Mark Thomas wrote: On 18/06/2012 22:02, James Lampert wrote: Found the problem: The lines # Java 6 settings if needed export -s JAVA_HOME=/QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit/jre

RE: Tomcat not starting properly on a customer's AS/400, and I have no idea why. Help?

2012-06-18 Thread Hedrick, Brooke - 43
-Original Message- From: James Lampert [mailto:jam...@touchtonecorp.com] Sent: Monday, June 18, 2012 4:03 PM To: Tomcat Users List Subject: Re: Tomcat not starting properly on a customer's AS/400, and I have no idea why. Help? Found the problem: The lines # Java 6 settings

Re: Tomcat not starting properly on a customer's AS/400, and I have no idea why. Help?

2012-06-18 Thread James Lampert
# Java 6 settings if needed export -s JAVA_HOME=/QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit/jre export -s CATALINA_HOME=/wintouch/tomcat export -s JAVA_OPTS=-Dos400.awt.native=true -Djava.awt.headless=true -Djava.version=1.6 -Xms256m -Xmx512m I just tried moving them out of bin/catalina.sh and

Re: heap memory issues

2012-06-18 Thread Miguel González Castaños
On 18/06/2012 09:52, Konstantin Kolinko wrote: 2012/6/16 Miguel González Castañosmiguel_3_gonza...@yahoo.es: Dear all, We have a webapp under Tomcat 5.5 and jdk 1.5 32 bits under a virtual machine of 4 Gb and a 64 bits OS. 4 Gb is memory size? Yes Some of you have helped me

Re: iis not looking for jsp in tomcat webapps folder

2012-06-18 Thread André Warnier
Pid wrote: On 18/06/2012 10:10, Vijaya wrote: file=c:/tomcat-5.5.16/conf/jk2.shm So... tomcat-5.5.16 AND jk2? I had to blow the dust of the 5.x security page... http://tomcat.apache.org/security-5.html#Fixed_in_Apache_Tomcat_5.5.16,_5.0.SVN just sayin' And no easier to find :

RE: heap memory issues

2012-06-18 Thread Martin Gainty
Chris Hansen sugire: Thread maximum stack size 2m Initial stack is 32m Initial PermGen 32m Max PermGen 200m Max Heap at 367 M Allow Concurrent Mark and Sweep CMS ClassUnloading enabled -Xss2m -Xms32m -XX:PermSize=32m -XX:MaxPermSize=200m -Xverify:none -Xmx367m -XX:+UseConcMarkSweepGC

Protect JSP from Direct Access in Tomcat 7.0.xx

2012-06-18 Thread Kiran Badi
Hi All, I need your guidance again.I have bunch of JSP's close to 100+ which I need to protect it from direct access. I have this mapping in web xml and this is not working,It seems that probably i need to define a role first and then use below settings.But unfortunately my app is open

RE: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm

2012-06-18 Thread Esmond Pitt
Javed Just call Session.invalidate() or HttpServletRequest.logout(). The JAASRealm will do the rest, and call logout() on your LoginModule. Note that you can't assume it is the same instance of your login module, that's what all the shared state is for. EJP

Re: Modify HTTP status returned by stopped context

2012-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kyle, On 6/18/12 3:52 PM, kharp...@oreillyauto.com wrote: Thank you for the direction. I created my own servlet which loads without error. Here is how I've configured it: Where did you configure this? Which webapp's web.xml? servlet

Re: heap memory issues

2012-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel, On 6/18/12 6:34 PM, Miguel González Castaños wrote: [H]ow do I know how much ram to assign in a 64 bits jdk? We are planning to move to a bigger server (hopefully 16 or 32 gb). Nobody can tell you how big your heap needs to be: it all

Re: heap memory issues

2012-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 6/18/12 7:26 PM, Martin Gainty wrote: Chris Hansen sugire: Thread maximum stack size 2m Initial stack is 32m Initial PermGen 32m Max PermGen 200m Max Heap at 367 M Allow Concurrent Mark and Sweep CMS ClassUnloading enabled -Xss2m

Re: Protect JSP from Direct Access in Tomcat 7.0.xx

2012-06-18 Thread Tim Watts
Hi Kiran, On Tue, 2012-06-19 at 05:40 +0530, Kiran Badi wrote: Hi All, I need your guidance again.I have bunch of JSP's close to 100+ which I need to protect it from direct access. By direct access do you mean that http://host/myapp/sample.jsp is returning the JSP source code rather than

Re: Protect JSP from Direct Access in Tomcat 7.0.xx

2012-06-18 Thread Kiran Badi
On 6/19/2012 8:03 AM, Tim Watts wrote: Hi Kiran, On Tue, 2012-06-19 at 05:40 +0530, Kiran Badi wrote: Hi All, I need your guidance again.I have bunch of JSP's close to 100+ which I need to protect it from direct access. By direct access do you mean that http://host/myapp/sample.jsp is

apache-tomcat-7.0.27 start up errors on Mac OX Lion

2012-06-18 Thread Samuel V Green III
I followed directions for install and config here: http://wolfpaulus.com/journal/mac/tomcat7 and here: http://www.janhellevik.no/blog/?p=323 When attempting to start Tomcat I get the following error…. ( I've googled the _ _ it out of this error and can't find a fix. sudo

Re: heap memory issues

2012-06-18 Thread Terence M. Bandoian
On 1:59 PM, Miguel González Castaños wrote: I know, but how do I know how much ram to assign in a 64 bits jdk? We are planning to move to a bigger server (hopefully 16 or 32 gb). Miguel 16 or 32 GB? Is this a medical image processing system? A control system for a space flight? Sorry

Re: Protect JSP from Direct Access in Tomcat 7.0.xx

2012-06-18 Thread Tim Watts
On Tue, 2012-06-19 at 08:48 +0530, Kiran Badi wrote: No its not returning source code.I have couple of jsps where in I use EL in those to access session objects and directly accessing those jsps is not something I want. Good move. SNIP 2. Is their any extra setting that is required if I

Abtract methods in DelegatingResultSet

2012-06-18 Thread Olivier Lefevre
I just noticed that the DelegatingResultSet object handed by Tomcat sports a slew of abstract methods even though the class itself is not declared abstract. In Tomcat 7.0.x there are only 2 such methods: the two getObject methods taking a Class as second argument, which are also the only two

Javamail exception in tomcat 7.0.11

2012-06-18 Thread Kiran Badi
Hi All, I have send mail servlet, which looks something like below, protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String emailRecipient = request.getParameter(name); // String emailRecipient = xxx;

Re: Protect JSP from Direct Access in Tomcat 7.0.xx

2012-06-18 Thread Kiran Badi
On 6/19/2012 10:22 AM, Tim Watts wrote: Hopefully, you're trying to use or move toward the MVC (Model, View, Controller) pattern. If not, you should. Google MVC design pattern. There are many, many frameworks that will make this easier for you (once you learn them): Struts, Spring MVC... If

Re: Javamail exception in tomcat 7.0.11

2012-06-18 Thread Tim Watts
On Tue, 2012-06-19 at 10:54 +0530, Kiran Badi wrote: Hi All, I have send mail servlet, which looks something like below, protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String emailRecipient =