Re: Max value of MaxPermSize
hi, I think the following line in /usr/local/jakarta/apache-tomcat-5.5.28/bin/catalina.sh if [ -r $CATALINA_HOME/bin/tomcat-juli.jar ]; then JAVA_OPTS=$JAVA_OPTS -server -Xms512m -Xmx512m -XX:MaxPermSize=1024m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager LOGGING_CONFIG=-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties else # Bugzilla 45585 LOGGING_CONFIG=-Dnop fi is not making any differnece onthe memory consumed,as if i do # free -m total used free sharedbuffers cached Mem: 3072696 2375 0 0 0 -/+ buffers/cache:696 2375 Swap:0 0 0 the used space is 696 mb, where as , it should allocate more than that to java itself, pl. advice how can i allocate more memory to java , as i am getting permgenerrorof memory (OutOfMemoryError: PermGen space) thanks abhi On Mon, Mar 21, 2011 at 8:03 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Abhishek, On 3/21/2011 6:14 AM, abhishek jain wrote: also am i writing these values in the correct location, With the tomcat base startup scripts, this should be in $CATALINA_BASE/setenv.sh. This file will be sourced by catalina.sh if it exists. I have a feeling that i am writing in wrong place, setenv.sh dont exist in my system, do i need to create that Yes, you can create it. It's better to create this file because it won't be overwritten by any Tomcat upgrades you might perform in the future. or can i write directly in catalina.sh, if yes where to place this configuration. You *can* put this into catalina.sh, but it would be better not to. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2HYboACgkQ9CaO5/Lv0PBPLwCgkNB2NMLGWsIHanH7emroXs2C u88An2jZaM3mwkzRvQMTx7Eu0bCFeCDi =xNcw -END PGP SIGNATURE-
[Commercial] Full time developer Delhi / Noida
hi, I am looking for a full time developer, those interested pl mal me offline asap, for this urgent opening. Pl. find the JD below. Job Profile 1 (Job Code JAVA – 64 ): Senior Java developer: a.3 yrs of experience in coding in java / j2ee b.Excellent skills in Core java (mandatory) c.Good fundamentals in java d.Excellent skills in Mysql Database (mandatory) e.Good skills in struts ,and good to have hibernate skills f.Good to have skills in Linux , from developer point of view g.Good to have skills in AJAX, HTML, Javascript, JQuery h.Must be a team player and demonstrate integrity with the company i.Must be able to take leadership role and be proactive Candidate should have worked preferably independently on projects and will be from a good college, either BTech / MCA, Location: Noida Pl reply back with: a. Relevant Experience b. Total Experience c. Current and expected CTC d. current location e. Copy of CV / Resume Mail to me urgently -- Thanks and kind Regards, Abhishek jain
Max value of MaxPermSize
hi friends, I have to increase size of MaxPermSize by altering this line on catalina.sh as i am having memory errors. I wanted to know what is hte max size i can set as i have 3.5 GB RAM (on a VPS) and most of this is free. i am runnign Centos , tomcat 5.5 . if [ -r $CATALINA_HOME/bin/tomcat-juli.jar ]; then JAVA_OPTS=$JAVA_OPTS -server* -Xms1024M -Xmx1024M -XX:MaxPermSize=2048M*-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager LOGGING_CONFIG=-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties else # Bugzilla 45585 LOGGING_CONFIG=-Dnop fi Pl. advice. -- Thanks and kind Regards, Abhishek jain
Re: Max value of MaxPermSize
On Mon, Mar 21, 2011 at 2:40 PM, Mark Thomas ma...@apache.org wrote: On 21/03/2011 08:01, abhishek jain wrote: hi friends, I have to increase size of MaxPermSize by altering this line on catalina.sh as i am having memory errors. Those settings look very, very odd. hi, what should be the appropriate settings, and on what basis should i select them, i want max memory given to java. also am i writing these values in the correct location, thanks abhi
Re: Max value of MaxPermSize
also am i writing these values in the correct location, With the tomcat base startup scripts, this should be in $CATALINA_BASE/setenv.sh. This file will be sourced by catalina.sh if it exists. Hi I have a feeling that i am writing in wrong place, setenv.sh dont exist in my system, do i need to create that or can i write directly in catalina.sh, if yes where to place this configuration. -- Thanks and kind Regards, Abhishek jain
Re: Urgent excepton: java.lang.reflect.InvocationTargetException
hi, Whenever i call the url which calls the code, i get this exception. is that what u meant to ask? Do u need code snippets. thanks abhishek On Tue, Mar 15, 2011 at 2:06 AM, Dave Newton davelnew...@gmail.com wrote: Under what circumstances? I don't see how we're supposed to be able to help. Dave On Mon, Mar 14, 2011 at 4:26 PM, abhishek jain abhishek.netj...@gmail.com wrote: Hi friends, I am on production and getting this error: can anyone help me solve, i am using hte hibernate 3, tomcat 5.5 , struts2, linux centos 5.x. java.lang.reflect.InvocationTargetException sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441) com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243) com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252) org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:130) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.ServletConfigInterceptor.intercept
Exception in hibernate3 relating to timeout
hi, I am not sure if i am ringing the correct list, but i am sure people here must have encountered this problem. I am new to hibernate and when i ran the code on server it was fine , strangely next day it keep on giving this error till i restart tomcat. The last packet successfully received from the server was 54,880,316 milliseconds ago. The last packet sent successfully to the server was 54,880,317 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem. I have searched a lot on net and added the following properties on hibernate.cfg.xml, as people there were suggesting this,but of no use. !-- Sessions and transactions -- !-- Use the C3P0 connection pool provider -- property name=hibernate.c3p0.min_size5/property property name=hibernate.c3p0.max_size20/property property name=hibernate.c3p0.timeout300/property property name=hibernate.c3p0.max_statements50/property property name=hibernate.c3p0.idle_test_period3000/property property name=current_session_context_classthread/property Pl. help me. I have used hibernate3 with myeclipse as the development environment, and am using mysql 5.x and centos (Linux) with Tomcat 5.x -- Thanks and kind Regards, Abhishek jain
[Commercial] Part time developer - Delhi / noida
Hello , I am looking for a part time developer for java with struts and hibernate and a good knowledge of mysql preferably open to visit my office in Noida (India), once a week. However i will also consider distant people also. Please someone interested contact me offline with resume and rates. -- Thanks and kind Regards, Abhishek jain
Urgent: how to run htaccess on tomcat
Hi friends, I am in middle of urgent production issue. Can some one help me how to allow .htaccess on tomcat i have a virtualhost on apache with tomcat installed. Apache 2.x tomcat 5.5.x struts 1.2 Pl. help asap. Thanks -- Thanks and kind Regards, Abhishek jain
Re: Urgent: how to run htaccess on tomcat
On Fri, Oct 22, 2010 at 3:05 PM, abhishek jain abhishek.netj...@gmail.comwrote: Hi friends, I am in middle of urgent production issue. Can some one help me how to allow .htaccess on tomcat i have a virtualhost on apache with tomcat installed. Apache 2.x tomcat 5.5.x struts 1.2 Pl. help asap. Thanks -- Thanks and kind Regards, Abhishek jain to clarify. I want to run PHP and jsp pages, and I need index.php as the default page. Also, I need to use .htaccess and not tomcats urlrewritefilter or so. pl. help thanks abhishek
Re: Urgent: how to run htaccess on tomcat
On Fri, Oct 22, 2010 at 3:31 PM, André Warnier a...@ice-sa.com wrote: abhishek jain wrote: On Fri, Oct 22, 2010 at 3:05 PM, abhishek jain abhishek.netj...@gmail.comwrote: Hi friends, I am in middle of urgent production issue. Can some one help me how to allow .htaccess on tomcat i have a virtualhost on apache with tomcat installed. Apache 2.x tomcat 5.5.x struts 1.2 Pl. help asap. Thanks -- Thanks and kind Regards, Abhishek jain to clarify. I want to run PHP and jsp pages, and I need index.php as the default page. Also, I need to use .htaccess and not tomcats urlrewritefilter or so. Unfortunately, this does not really clarify things. Some things, which may be relevant or not, depending on your configuration : - Tomcat does not care at all about .htaccess; that is purely an Apache httpd thing. (In other words, you cannot make Tomcat be aware of .htaccess) - Usually, it is a bad idea to share the same application directories between Apache httpd and Tomcat - Usually also, when Apache httpd and Tomcat work together, this is done via a connector, and it may be possible at that level to do something about .htaccess. But you are not telling us anything about your configuration, OS, setup etc.. so it is difficult to help. Main thing here : how are Apache httpd and Tomcat connected to eachother ? Hi Sorry for not clarifying at first place, I have a cpanel setup with the following configuration in cp_jkmount.conf for that virtualhost IfModule mod_jk.c JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /servlets/* ajp13 JkMount /* ajp13 JkUnMount /cart/* ajp13 JkUnMount /blog/* ajp13 JkUnMount /images/* ajp13 JkUnMount /images-ns/* ajp13 JkUnMount /*.php ajp13 JkUnMount /*.html ajp13 JkUnMount /*.htm ajp13 JkUnMount /*.htaccess ajp13 /IfModule yes there must be a connector and I am not sure what it is , how do i know of that. I have Centos 5.x as the OS. thanks abhi
Re: Urgent: how to run htaccess on tomcat
On Fri, Oct 22, 2010 at 3:52 PM, André Warnier a...@ice-sa.com wrote: abhishek jain wrote: On Fri, Oct 22, 2010 at 3:31 PM, André Warnier a...@ice-sa.com wrote: abhishek jain wrote: On Fri, Oct 22, 2010 at 3:05 PM, abhishek jain abhishek.netj...@gmail.comwrote: Hi friends, I am in middle of urgent production issue. Can some one help me how to allow .htaccess on tomcat i have a virtualhost on apache with tomcat installed. Apache 2.x tomcat 5.5.x struts 1.2 Pl. help asap. Thanks -- Thanks and kind Regards, Abhishek jain to clarify. I want to run PHP and jsp pages, and I need index.php as the default page. Also, I need to use .htaccess and not tomcats urlrewritefilter or so. Unfortunately, this does not really clarify things. Some things, which may be relevant or not, depending on your configuration : - Tomcat does not care at all about .htaccess; that is purely an Apache httpd thing. (In other words, you cannot make Tomcat be aware of .htaccess) - Usually, it is a bad idea to share the same application directories between Apache httpd and Tomcat - Usually also, when Apache httpd and Tomcat work together, this is done via a connector, and it may be possible at that level to do something about .htaccess. But you are not telling us anything about your configuration, OS, setup etc.. so it is difficult to help. Main thing here : how are Apache httpd and Tomcat connected to eachother ? Hi Sorry for not clarifying at first place, I have a cpanel setup with the following configuration in cp_jkmount.conf for that virtualhost IfModule mod_jk.c JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /servlets/* ajp13 JkMount /* ajp13 JkUnMount /cart/* ajp13 JkUnMount /blog/* ajp13 JkUnMount /images/* ajp13 JkUnMount /images-ns/* ajp13 JkUnMount /*.php ajp13 JkUnMount /*.html ajp13 JkUnMount /*.htm ajp13 JkUnMount /*.htaccess ajp13 /IfModule yes there must be a connector and I am not sure what it is , how do i know of that. I have Centos 5.x as the OS. The above tends to indicate that the connector is mod_jk. (The question being if this configuration is really enabled, since it is conditional). But let's imagine that it is. First, one remark : these lines : JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /servlets/* ajp13 are useless, because the next line JkMount /* ajp13 overrides them all. So basically you are passing everything to Tomcat, except the URLs which match any of your JkUnMount lines. Second critic : From a security point of view, it would be better to do the opposite : /only/ forward to Tomcat the specific URLs that need to be processed by Tomcat. Like this maybe : IfModule mod_jk.c JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /servlets/* ajp13 /IfModule Now, you still need to explain what you are trying to achieve. Where in this, and for what reason, does .htaccess need to be involved ? What is the content of the .htaccess file ? (remove any private info) Hi, yes selecting JKMount on specific directories did the trick thanks abhi
Re: OutOfMemoryError: PermGen space!!!! Dont know why?
hi ps axf --cols 1000 | grep java returns 29807 pts/2S+ 0:00 \_ grep java 19511 ?Ss 0:00 jsvc.exec -user tomcat -cp ./bootstrap.jar -Djava.endorsed.dirs=../common/endorsed -outfile ../logs/catalina.out -errfile ../logs/catalina.err -verbose org.apache.catalina.startup.Bootstrap -security 19512 ?Sl11:57 \_ jsvc.exec -user tomcat -cp ./bootstrap.jar -Djava.endorsed.dirs=../common/endorsed -outfile ../logs/catalina.out -errfile ../logs/catalina.err -verbose org.apache.catalina.startup.Bootstrap -security and echo $JAVA_OPTS returns a blank line Pl advice what should i do, thanks abhi On Wed, Sep 15, 2010 at 6:06 PM, Peter McNeil pe...@mcneils.net wrote: Check the process for java has the correct max perm size set. If you're using linux do a ps axf --cols 1000 | grep java A max PermSize of 1024m is pretty big... My tomcat 6 instance running several apps returns:- /usr/java/latest/bin/java -Djava.util.logging.config.file=/home/pmcneil/apps/tomcat/apache-tomcat-6.0.24/conf/logging.properties -server -Xmx2000m -XX:MaxPermSize=400m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/home/pmcneil/apps/tomcat/apache-tomcat-6.0.24/endorsed -classpath /home/pmcneil/apps/tomcat/apache-tomcat-6.0.24/bin/bootstrap.jar -Dcatalina.base=/home/pmcneil/apps/tomcat/apache-tomcat-6.0.24 -Dcatalina.home=/home/pmcneil/apps/tomcat/apache-tomcat-6.0.24 -Djava.io.tmpdir=/home/pmcneil/apps/tomcat/apache-tomcat-6.0.24/temp org.apache.catalina.startup.Bootstrap start and my JAVA_OPTS is ... echo $JAVA_OPTS -server -Xmx2000m -XX:MaxPermSize=400m If that all looks OK you have a memory leak, try using jconsole and look at threads and deadlocks etc. Good luck, Peter. On 15/09/10 16:28, abhishek jain wrote: Hi, i have the following in bin/catalina.sh JAVA_OPTS=$JAVA_OPTS -server -Xms512M -Xmx1024M -XX:MaxPermSize=1024M -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager still i get the permgen error exception everyday, pl. someone help, i have about 7 applications in struts running on the server, the applications are in struts 1.2 , mysql, tomcat 5.5, and are not big applications with about only a few jsps. I consider the applications written properly, pl. help,
OutOfMemoryError: PermGen space!!!! Dont know why?
Hi, i have the following in bin/catalina.sh JAVA_OPTS=$JAVA_OPTS -server -Xms512M -Xmx1024M -XX:MaxPermSize=1024M -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager still i get the permgen error exception everyday, pl. someone help, i have about 7 applications in struts running on the server, the applications are in struts 1.2 , mysql, tomcat 5.5, and are not big applications with about only a few jsps. I consider the applications written properly, pl. help, -- Thanks and kind Regards, Abhishek jain
Re: Expression language not working
On Tue, Aug 31, 2010 at 9:16 PM, Mark Thomas ma...@apache.org wrote: On 31/08/2010 16:38, abhishek jain wrote: Hey , I just realized that actually i accidently placed el-api.jar in WEB-INF/lib folder. If i dont than i get the following exception: Aug 31, 2010 4:28:44 PM org.apache.catalina.core. StandardContext listenerStart SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener java.lang.NoClassDefFoundError: javax/el/ExpressionFactory What else do you expect? The class isn't in the JSP spec. If you want to use that class you'll need to be using at least Tomcat 6.0.x. Mark does that mean tomcat 5.5 cannot run EL ? thanks abhishek
Expression language not working
Hi friends, I have a website in struts 1.2 hosted on tomcat 5.5.x and it uses EL. It is not being evaluated, any suggestions on the reasons why? -- Thanks and kind Regards, Abhishek jain
Re: Expression language not working
On Tue, Aug 31, 2010 at 5:22 PM, abhishek jain abhishek.netj...@gmail.comwrote: Hi friends, I have a website in struts 1.2 hosted on tomcat 5.5.x and it uses EL. It is not being evaluated, any suggestions on the reasons why? -- Thanks and kind Regards, Abhishek jain i used myeclipse for development, and i guess there is some issues with files jsf-impl.jar jstl-1.2.jar el-api.jar etc. as this files are not in my other projects hosted on same server, but without the EL . thanks abhi
Re: Expression language not working
On Tue, Aug 31, 2010 at 5:48 PM, Mark Thomas ma...@apache.org wrote: On 31/08/2010 12:52, abhishek jain wrote: Hi friends, I have a website in struts 1.2 hosted on tomcat 5.5.x and it uses EL. It is not being evaluated, any suggestions on the reasons why? http://www.catb.org/esr/faqs/smart-questions.html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Hey Mark, Sorry but What info should i provide for people to help me here, i am clueless. I used struts 1.2 , myeclipse, tomcat 5.5.28 . EL is not working on live but works on development environment on myeclipse. -- Thanks and kind Regards, Abhishek jain
Re: Expression language not working
yes, it was originally 2.5, i did tried changing it to 2.4 and of no use, thanks for answering but the problem still persists. abhishek On Tue, Aug 31, 2010 at 6:16 PM, Ben Souther b...@souther.us wrote: Look at the top of your deployment descriptor (web.xml) and see if the version is 2.4 or better. On Aug 31, 2010, at 8:35 AM, abhishek jain wrote: On Tue, Aug 31, 2010 at 5:48 PM, Mark Thomas ma...@apache.org wrote: On 31/08/2010 12:52, abhishek jain wrote: Hi friends, I have a website in struts 1.2 hosted on tomcat 5.5.x and it uses EL. It is not being evaluated, any suggestions on the reasons why? http://www.catb.org/esr/faqs/smart-questions.html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Hey Mark, Sorry but What info should i provide for people to help me here, i am clueless. I used struts 1.2 , myeclipse, tomcat 5.5.28 . EL is not working on live but works on development environment on myeclipse. -- Thanks and kind Regards, Abhishek jain - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Expression language not working
hey I was looking at the tomcat commons lib folder, there is a file called commons-el.jar has that something to do with el-api.jar in my WEB-INF/lib folder ? thanks abhishek On Tue, Aug 31, 2010 at 6:26 PM, abhishek jain abhishek.netj...@gmail.comwrote: yes, it was originally 2.5, i did tried changing it to 2.4 and of no use, thanks for answering but the problem still persists. abhishek On Tue, Aug 31, 2010 at 6:16 PM, Ben Souther b...@souther.us wrote: Look at the top of your deployment descriptor (web.xml) and see if the version is 2.4 or better. On Aug 31, 2010, at 8:35 AM, abhishek jain wrote: On Tue, Aug 31, 2010 at 5:48 PM, Mark Thomas ma...@apache.org wrote: On 31/08/2010 12:52, abhishek jain wrote: Hi friends, I have a website in struts 1.2 hosted on tomcat 5.5.x and it uses EL. It is not being evaluated, any suggestions on the reasons why? http://www.catb.org/esr/faqs/smart-questions.html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Hey Mark, Sorry but What info should i provide for people to help me here, i am clueless. I used struts 1.2 , myeclipse, tomcat 5.5.28 . EL is not working on live but works on development environment on myeclipse. -- Thanks and kind Regards, Abhishek jain
Re: Expression language not working
Hey , I just realized that actually i accidently placed el-api.jar in WEB-INF/lib folder. If i dont than i get the following exception: Aug 31, 2010 4:28:44 PM org.apache.catalina.core. StandardContext listenerStart SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener java.lang.NoClassDefFoundError: javax/el/ExpressionFactory at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.newInstance0(Class.java:326) at java.lang.Class.newInstance(Class.java:308) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3744) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1173) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:549) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:105) at javax.servlet.http.HttpServlet.service(HttpServlet.java:627) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.ClassNotFoundException: javax.el.ExpressionFactory at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316) ... 27 more and the application is not started. thanks abhishek On Tue, Aug 31, 2010 at 8:42 PM, abhishek jain abhishek.netj...@gmail.comwrote: hey I was looking at the tomcat commons lib folder, there is a file called commons-el.jar has that something to do with el-api.jar in my WEB-INF/lib folder ? thanks abhishek On Tue, Aug 31, 2010 at 6:26 PM, abhishek jain abhishek.netj...@gmail.com wrote: yes, it was originally 2.5, i did tried changing it to 2.4 and of no use, thanks for answering but the problem still persists. abhishek On Tue, Aug 31, 2010 at 6:16 PM, Ben Souther b...@souther.us wrote: Look at the top of your deployment descriptor (web.xml) and see if the version is 2.4 or better. On Aug 31, 2010, at 8:35 AM, abhishek jain wrote: On Tue, Aug 31, 2010 at 5:48 PM, Mark Thomas ma...@apache.org wrote: On 31/08/2010 12:52, abhishek jain wrote: Hi friends, I have a website in struts 1.2 hosted on tomcat 5.5.x and it uses EL. It is not being evaluated, any suggestions on the reasons why? http://www.catb.org/esr/faqs/smart-questions.html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Hey Mark, Sorry but What info should i provide for people to help me here, i am clueless. I used struts 1.2 , myeclipse, tomcat 5.5.28 . EL is not working on live but works on development environment on myeclipse. -- Thanks and kind Regards, Abhishek jain
Terminate sessions of particular domain
Dear friends, I want to terminate the sessions of a particular domain name / webapp. How can i do so. also can i do so while tomcat is running. Pl. advice.i am using tomcat 5.5 on centos / linux -- Thanks and kind Regards, Abhishek jain
Re: Session error while loading an object
On Wed, Jul 14, 2010 at 1:39 AM, Peter Crowther peter.crowt...@melandra.com wrote: On 13 July 2010 16:15, abhishek jain abhishek.netj...@gmail.com wrote: On Tue, Jul 13, 2010 at 2:11 PM, Peter Crowther peter.crowt...@melandra.com wrote: On 13 July 2010 09:34, abhishek jain abhishek.netj...@gmail.com wrote: I am using tomcat 5.5 , struts 1.x and i encounter the following error: I actually store the object in session and retrieve that(for a shopping cart application), pl. advice what i can do to remove this error: java.io.NotSerializableException: com.cart.Customer You need to make sure that com.cart.Customer (and anything else you store in the session) is serializable. - Peter Thanks Peter, i will check but i get this error only at times, and not always. Can this still be the cause of the problem. thanks abhishek Yes. It's happening because your webapp is being reloaded (are you changing some part of it?) and there are active sessions. The sessions are serialised to persist them; then the webapp is restarted; then the sessions are deserialised. If there are no sessions at the time the webapp is restarted, the problem will not occur. - Peter Thanks Peter for the info, I just realized that i am having in the Cart object which i save in session, references of datasource and message resources. This is creating the problem as they i believe are not serializable, Is there any way of overcoming them. Pl. advice, thanks abhishek
Session error while loading an object
Hi friends, I am using tomcat 5.5 , struts 1.x and i encounter the following error: I actually store the object in session and retrieve that(for a shopping cart application), pl. advice what i can do to remove this error: Exception loading sessions from persistent storagejava.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.cart.Customer at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1416) at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:940) at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394) at org.apache.catalina.session.StandardManager.load(StandardManager.java:321) at org.apache.catalina.session.StandardManager.start(StandardManager.java:637) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4202) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3056) at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:432) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1278) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.NotSerializableException: com.cart.Customer at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1492) at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:957) at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517) at org.apache.catalina.session.StandardManager.unload(StandardManager.java:463) at org.apache.catalina.session.StandardManager.stop(StandardManager.java:667) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4362) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3050) ... 7 more -- Thanks and kind Regards, Abhishek jain
Re: Session error while loading an object
On Tue, Jul 13, 2010 at 2:11 PM, Peter Crowther peter.crowt...@melandra.com wrote: On 13 July 2010 09:34, abhishek jain abhishek.netj...@gmail.com wrote: I am using tomcat 5.5 , struts 1.x and i encounter the following error: I actually store the object in session and retrieve that(for a shopping cart application), pl. advice what i can do to remove this error: java.io.NotSerializableException: com.cart.Customer You need to make sure that com.cart.Customer (and anything else you store in the session) is serializable. - Peter Thanks Peter, i will check but i get this error only at times, and not always. Can this still be the cause of the problem. thanks abhishek
Two applications, one in a sub folder - Urgent help needed
Dear friends, I have a website in Struts 1.2 and i want to install another Struts application made by me, in a subfolder of the website. I don't know will this work, Both are struts 1.2 applications. I am using apache 2.x and Tomcat 5, on Cpanel , linux centos 5.5. I think one of the possible sol might be mapping the location tag in httpd.conf to diff webapp , i dont know how to do so. Pl. help, -- Thanks and kind Regards, Abhishek jain
Re: Two applications, one in a sub folder - Urgent help needed
hi thanks for the email, but the path is like /usr/local/share/apps and for the second application: /usr/local/share/apps/app2 i mean it is a subfolder. will this still work? 2010/6/25 Paweł Zuzelski z...@xatka.net No, it is not „Urgent” for anyone but you. If you one it to be urgent for anyone else, pay for it :) Dear friends, I have a website in Struts 1.2 and i want to install another Struts application made by me, in a subfolder of the website. I don't know will this work, Both are struts 1.2 applications. I am using apache 2.x and Tomcat 5, on Cpanel , linux centos 5.5. I would define context of these applications explicite in Catalina config. I mean: unpack your war files into some directories, let say: /usr/local/share/app1 /usr/local/share/app2 then create files (home_of_your_tomcat_installation)/tomcat/conf/Catalina/localhost/app.xml (home_of_your_tomcat_installation)/tomcat/conf/Catalina/localhost/app#subapp.xml app.xml should be something like: ?xml version=1.0 encoding=UTF-8? Context path=/app docBase=/usr/local/share/app1 privileged=false allowLinking=true /Context app#subapp.xml: ?xml version=1.0 encoding=UTF-8? Context path=/app/subapp docBase=/usr/local/share/app2 privileged=false allowLinking=true /Context Note that “path” attribute must match xml context file name (note: '/' becomes '#' in filename) Hope it helps. -- Thanks and kind Regards, Abhishek jain
Re: Two applications, one in a sub folder - Urgent help needed
On Fri, Jun 25, 2010 at 4:16 PM, abhishek jain abhishek.netj...@gmail.comwrote: hi thanks for the email, but the path is like /usr/local/share/apps and for the second application: /usr/local/share/apps/app2 i mean it is a subfolder. sorry i think you are right i will give it a try. please , ignore previous email. will this still work? 2010/6/25 Paweł Zuzelski z...@xatka.net No, it is not „Urgent” for anyone but you. If you one it to be urgent for anyone else, pay for it :) Dear friends, I have a website in Struts 1.2 and i want to install another Struts application made by me, in a subfolder of the website. I don't know will this work, Both are struts 1.2 applications. I am using apache 2.x and Tomcat 5, on Cpanel , linux centos 5.5. I would define context of these applications explicite in Catalina config. I mean: unpack your war files into some directories, let say: /usr/local/share/app1 /usr/local/share/app2 then create files (home_of_your_tomcat_installation)/tomcat/conf/Catalina/localhost/app.xml (home_of_your_tomcat_installation)/tomcat/conf/Catalina/localhost/app#subapp.xml app.xml should be something like: ?xml version=1.0 encoding=UTF-8? Context path=/app docBase=/usr/local/share/app1 privileged=false allowLinking=true /Context app#subapp.xml: ?xml version=1.0 encoding=UTF-8? Context path=/app/subapp docBase=/usr/local/share/app2 privileged=false allowLinking=true /Context Note that “path” attribute must match xml context file name (note: '/' becomes '#' in filename) Hope it helps. Please ignore previous email - abhi
Re: Two applications, one in a sub folder - Urgent help needed
On Fri, Jun 25, 2010 at 4:26 PM, Mark Thomas ma...@apache.org wrote: On 25/06/2010 11:50, Pid wrote: On 25/06/2010 11:46, abhishek jain wrote: hi thanks for the email, but the path is like /usr/local/share/apps and for the second application: /usr/local/share/apps/app2 i mean it is a subfolder. will this still work? Depends which Tomcat version you actually have. I don't think multilevel paths are supported in 5.0.n, (but I might be wrong). It isn't (but that doesn't matter). Overlapping values for docBase are never valid. This configuration cannot work. but are the overlapping values of context path valid, ? - abhi
Re: Two applications, one in a sub folder - Urgent help needed
On Fri, Jun 25, 2010 at 4:51 PM, Mark Thomas ma...@apache.org wrote: On 25/06/2010 12:19, Pid wrote: On 25/06/2010 12:02, abhishek jain wrote: On Fri, Jun 25, 2010 at 4:26 PM, Mark Thomas ma...@apache.org wrote: On 25/06/2010 11:50, Pid wrote: On 25/06/2010 11:46, abhishek jain wrote: hi thanks for the email, but the path is like /usr/local/share/apps and for the second application: /usr/local/share/apps/app2 i mean it is a subfolder. will this still work? Depends which Tomcat version you actually have. I don't think multilevel paths are supported in 5.0.n, (but I might be wrong). It isn't (but that doesn't matter). Overlapping values for docBase are never valid. This configuration cannot work. but are the overlapping values of context path valid, ? Depends on which version of Tomcat you have. Actually, overlapping context paths are always valid. Consider: / and /docs And whether you've configured it correctly. +1. Especially if you want /my/context/path Correct varies by version. I am using tomcat 5.5 and cpanel is configuring it, but i think for this configuration i will have to go to file server.xml and add the additional context path row in the xml , something like: Host name=xxx appBase=/home/xxx/public_html Aliasxxx/Alias * Context path= reloadable=true docBase=/x/public_html debug=1/ Context path=/subfolder reloadable=true docBase=//public_html debug=1/ * Context path=/manager debug=0 privileged=true docBase=/usr/local/jakarta/tomcat/server/webapps/manager /Context /Host is this the right way? -- Thanks and kind Regards, Abhishek jain