Re: Why am i getting this exception often?

2013-10-10 Thread Muralidhar Yaragalla
No help on this?

*Thanks And Regards,*
Muralidhar Yaragalla.*
(Visit My Blog http://yaragalla.blogspot.in)
*


On Wed, Oct 9, 2013 at 10:22 PM, Muralidhar Yaragalla 
java.yaraga...@gmail.com wrote:

 I am getting this exception very often even when i am using tomcat without
 eclipse. Is there a way to avoid this?

 *Thanks And Regards,*
 Muralidhar Yaragalla.*
 (Visit My Blog http://yaragalla.blogspot.in)
 *


 On Wed, Oct 9, 2013 at 7:00 PM, Muralidhar Yaragalla 
 java.yaraga...@gmail.com wrote:

 Hi i am using tomcat-7 with eclipse kepler. I am getting the following
 exception very often. Is there a way to prevent this?

 Exception:org.apache.jasper.JasperException: Unable to compile class for
 JSP Stack trace:

 org.apache.jasper.JasperException: Unable to compile class for JSP
  at 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:661)
  at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
  at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
  at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
  at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
  at 
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
  at 
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
  at 
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
  at 
 org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
  at 
 org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:371)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:275)
  at 
 org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
  at 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
  at 
 org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
  at 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
  at 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
  at 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
  at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at 
 com.opensymphony.xwork2

Re: Why am i getting this exception often?

2013-10-10 Thread Muralidhar Yaragalla
I am using all default settings. I am deploying the war file in webapp
folder of tomcat. just downloaded, kept the war file in webapp folder and
started the tomcat. I have not done anything else.

*Thanks And Regards,*
Muralidhar Yaragalla.*
(Visit My Blog http://yaragalla.blogspot.in)
*


On Thu, Oct 10, 2013 at 10:26 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Muralidhar,

 On 10/10/13 12:40 PM, Muralidhar Yaragalla wrote:
  No help on this?

 No further details?

 For instance, what does the directory look like where the file is
 being (attempted to be) renamed? How about permissions?

 You can't just post a stack trace and ask how can I prevent this?

 - -chris

 
  *Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog
  http://yaragalla.blogspot.in) *
 
 
  On Wed, Oct 9, 2013 at 10:22 PM, Muralidhar Yaragalla 
  java.yaraga...@gmail.com wrote:
 
  I am getting this exception very often even when i am using
  tomcat without eclipse. Is there a way to avoid this?
 
  *Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog
  http://yaragalla.blogspot.in) *
 
 
  On Wed, Oct 9, 2013 at 7:00 PM, Muralidhar Yaragalla 
  java.yaraga...@gmail.com wrote:
 
  Hi i am using tomcat-7 with eclipse kepler. I am getting the
  following exception very often. Is there a way to prevent
  this?
 
  Exception:org.apache.jasper.JasperException: Unable to compile
  class for JSP Stack trace:
 
  org.apache.jasper.JasperException: Unable to compile class for
  JSP at
 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:661)
 
 
 at

 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
  at
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
 
 
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
  at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 
 
 at

 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at
 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
 
 
 at

 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
  at
 
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
 
 
 at

 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
  at
 
 org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
 
 
 at

 org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:371)
 
 
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:275)
  at
 
 org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
 
 
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
 
 
 at

 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 
 
 at

 com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
  at
 
 org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
 
 
 at

 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 
 
 at

 com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 
 
 at

 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
  at
 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
 
 
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
 
 
 at

 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 
 
 at

 com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke

Re: Why am i getting this exception often?

2013-10-10 Thread Muralidhar Yaragalla
When ever i call a jsp in my browser this exception happens. I am not doing
anything specific.

*Thanks And Regards,*
Muralidhar Yaragalla.*
(Visit My Blog http://yaragalla.blogspot.in)
*


On Thu, Oct 10, 2013 at 11:01 PM, Muralidhar Yaragalla 
java.yaraga...@gmail.com wrote:

 I am using all default settings. I am deploying the war file in webapp
 folder of tomcat. just downloaded, kept the war file in webapp folder and
 started the tomcat. I have not done anything else.

 *Thanks And Regards,*
 Muralidhar Yaragalla.*
 (Visit My Blog http://yaragalla.blogspot.in)
 *


 On Thu, Oct 10, 2013 at 10:26 PM, Christopher Schultz 
 ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Muralidhar,

 On 10/10/13 12:40 PM, Muralidhar Yaragalla wrote:
  No help on this?

 No further details?

 For instance, what does the directory look like where the file is
 being (attempted to be) renamed? How about permissions?

 You can't just post a stack trace and ask how can I prevent this?

 - -chris

 
  *Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog
  http://yaragalla.blogspot.in) *
 
 
  On Wed, Oct 9, 2013 at 10:22 PM, Muralidhar Yaragalla 
  java.yaraga...@gmail.com wrote:
 
  I am getting this exception very often even when i am using
  tomcat without eclipse. Is there a way to avoid this?
 
  *Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog
  http://yaragalla.blogspot.in) *
 
 
  On Wed, Oct 9, 2013 at 7:00 PM, Muralidhar Yaragalla 
  java.yaraga...@gmail.com wrote:
 
  Hi i am using tomcat-7 with eclipse kepler. I am getting the
  following exception very often. Is there a way to prevent
  this?
 
  Exception:org.apache.jasper.JasperException: Unable to compile
  class for JSP Stack trace:
 
  org.apache.jasper.JasperException: Unable to compile class for
  JSP at
 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:661)
 
 
 at

 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
  at
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
 
 
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
  at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 
 
 at

 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at
 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
 
 
 at

 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
  at
 
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
 
 
 at

 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
  at
 
 org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
 
 
 at

 org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:371)
 
 
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:275)
  at
 
 org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
 
 
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
 
 
 at

 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 
 
 at

 com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
  at
 
 org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
 
 
 at

 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 
 
 at

 com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 
 
 at

 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
  at
 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
 
 
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
 
 
 at

 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98

Re: Why am i getting this exception often?

2013-10-10 Thread Muralidhar Yaragalla
*Thanks And Regards,*
Muralidhar Yaragalla.*
(Visit My Blog http://yaragalla.blogspot.in)
*


On Thu, Oct 10, 2013 at 11:18 PM, Mark Eggers its_toas...@yahoo.com wrote:

 1. Please don't top-post
 2. Please read: 
 http://www.catb.org/esr/faqs/**smart-questions.htmlhttp://www.catb.org/esr/faqs/smart-questions.html


 On 10/10/2013 10:31 AM, Muralidhar Yaragalla wrote:

 I am using all default settings. I am deploying the war file in webapp
 folder of tomcat. just downloaded, kept the war file in webapp folder and
 started the tomcat. I have not done anything else.


 Exact version of each please:

 1. Tomcat (not just 7, but 7.0.x)
 2. JVM version (not just 7, but 1.7.0_x)
 3. OS, version, and bits

 This particular error has been discussed before, but only on a really old
 version of Tomcat.

 There are similar errors that occur that apparently have to do with
 Windows indexing the java.io.tmpdir directory. See for example:

 http://www.coderanch.com/t/**468010/Tomcat/Strange-**
 behavior-Tomcat-classFile-**deletehttp://www.coderanch.com/t/468010/Tomcat/Strange-behavior-Tomcat-classFile-delete

 However, since I don't know if you're running on Windows, I don't know if
 this is applicable.

 Google the following for other discussions:

 java.io.IOException: tmpFile.renameTo(classFile) failed

 Apparently BIRT has had issues with this in the past as well (and from
 your blog, I see that you use BIRT).

 Again, these are pretty much random guesses since information is lacking.

 On the plus side, I've never seen this problem occur in any of my
 environments with any JSP file.

 . . . just my two cents
 /mde/

  *Thanks And Regards,*
 Muralidhar Yaragalla.*
 (Visit My Blog http://yaragalla.blogspot.in**)
 *


 On Thu, Oct 10, 2013 at 10:26 PM, Christopher Schultz 
 ch...@christopherschultz.net wrote:

  -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Muralidhar,

 On 10/10/13 12:40 PM, Muralidhar Yaragalla wrote:

 No help on this?


 No further details?

 For instance, what does the directory look like where the file is
 being (attempted to be) renamed? How about permissions?

 You can't just post a stack trace and ask how can I prevent this?

 - -chris


 *Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog
 http://yaragalla.blogspot.in**) *


 On Wed, Oct 9, 2013 at 10:22 PM, Muralidhar Yaragalla 
 java.yaraga...@gmail.com wrote:

  I am getting this exception very often even when i am using
 tomcat without eclipse. Is there a way to avoid this?

 *Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog
 http://yaragalla.blogspot.in**) *


 On Wed, Oct 9, 2013 at 7:00 PM, Muralidhar Yaragalla 
 java.yaraga...@gmail.com wrote:

  Hi i am using tomcat-7 with eclipse kepler. I am getting the
 following exception very often. Is there a way to prevent
 this?

 Exception:org.apache.jasper.**JasperException: Unable to compile
 class for JSP Stack trace:

 org.apache.jasper.**JasperException: Unable to compile class for
 JSP at

  org.apache.jasper.**JspCompilationContext.compile(**
 JspCompilationContext.java:**661)



  at

 org.apache.jasper.servlet.**JspServletWrapper.service(**
 JspServletWrapper.java:357)

 at

  org.apache.jasper.servlet.**JspServlet.serviceJspFile(**
 JspServlet.java:390)



  at org.apache.jasper.servlet.**JspServlet.service(JspServlet.**
 java:334)

 at
 javax.servlet.http.**HttpServlet.service(**HttpServlet.java:728) at

  org.apache.catalina.core.**ApplicationFilterChain.**
 internalDoFilter(**ApplicationFilterChain.java:**305)



  at

 org.apache.catalina.core.**ApplicationFilterChain.**doFilter(**
 ApplicationFilterChain.java:**210)

 at

  org.apache.catalina.core.**ApplicationDispatcher.invoke(**
 ApplicationDispatcher.java:**749)



  at

 org.apache.catalina.core.**ApplicationDispatcher.**processRequest(**
 ApplicationDispatcher.java:**487)

 at

  org.apache.catalina.core.**ApplicationDispatcher.**doForward(**
 ApplicationDispatcher.java:**412)



  at

 org.apache.catalina.core.**ApplicationDispatcher.forward(**
 ApplicationDispatcher.java:**339)

 at

  org.apache.struts2.dispatcher.**ServletDispatcherResult.**doExecute(
 **ServletDispatcherResult.java:**164)



  at

 org.apache.struts2.dispatcher.**StrutsResultSupport.execute(**
 StrutsResultSupport.java:186)

 at

  com.opensymphony.xwork2.**DefaultActionInvocation.**executeResult(**
 DefaultActionInvocation.java:**371)



  at

 com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
 DefaultActionInvocation.java:**275)

 at

  org.apache.struts2.**interceptor.debugging.**DebuggingInterceptor.**
 intercept(**DebuggingInterceptor.java:256)



  at

 com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
 DefaultActionInvocation.java:**246)

 at

  com.opensymphony.xwork2.**interceptor.**DefaultWorkflowInterceptor.*
 *doIntercept(**DefaultWorkflowInterceptor.**java:176)



  at

 com.opensymphony.xwork2.**interceptor.**MethodFilterInterceptor.**
 intercept(**MethodFilterInterceptor.java:**98

Re: Why am i getting this exception often?

2013-10-10 Thread Muralidhar Yaragalla
*Thanks And Regards,*
Muralidhar Yaragalla.*
(Visit My Blog http://yaragalla.blogspot.in)
*


On Thu, Oct 10, 2013 at 10:19 PM, David kerber dcker...@verizon.net wrote:

 On 10/10/2013 12:40 PM, Muralidhar Yaragalla wrote:

 No help on this?


 I guess not.  Have you asked on the Eclipse forums?


This is happening without eclipse and also with eclipse.



 *Thanks And Regards,*
 Muralidhar Yaragalla.*
 (Visit My Blog http://yaragalla.blogspot.in**)
 *


 On Wed, Oct 9, 2013 at 10:22 PM, Muralidhar Yaragalla 
 java.yaraga...@gmail.com wrote:

  I am getting this exception very often even when i am using tomcat
 without
 eclipse. Is there a way to avoid this?

 *Thanks And Regards,*
 Muralidhar Yaragalla.*
 (Visit My Blog http://yaragalla.blogspot.in**)
 *


 On Wed, Oct 9, 2013 at 7:00 PM, Muralidhar Yaragalla 
 java.yaraga...@gmail.com wrote:

  Hi i am using tomcat-7 with eclipse kepler. I am getting the following
 exception very often. Is there a way to prevent this?

 Exception:org.apache.jasper.**JasperException: Unable to compile class
 for
 JSP Stack trace:

  org.apache.jasper.**JasperException: Unable to compile class
 for JSP
 at org.apache.jasper.**JspCompilationContext.compile(**
 JspCompilationContext.java:**661)
 at org.apache.jasper.servlet.**JspServletWrapper.service(**
 JspServletWrapper.java:357)
 at org.apache.jasper.servlet.**JspServlet.serviceJspFile(**
 JspServlet.java:390)
 at org.apache.jasper.servlet.**JspServlet.service(JspServlet.**
 java:334)
 at javax.servlet.http.**HttpServlet.service(**
 HttpServlet.java:728)
 at org.apache.catalina.core.**ApplicationFilterChain.**
 internalDoFilter(**ApplicationFilterChain.java:**305)
 at org.apache.catalina.core.**ApplicationFilterChain.**
 doFilter(**ApplicationFilterChain.java:**210)
 at org.apache.catalina.core.**ApplicationDispatcher.invoke(**
 ApplicationDispatcher.java:**749)
 at org.apache.catalina.core.**ApplicationDispatcher.**
 processRequest(**ApplicationDispatcher.java:**487)
 at org.apache.catalina.core.**ApplicationDispatcher.**
 doForward(**ApplicationDispatcher.java:**412)
 at org.apache.catalina.core.**ApplicationDispatcher.forward(**
 ApplicationDispatcher.java:**339)
 at org.apache.struts2.dispatcher.**ServletDispatcherResult.**
 doExecute(**ServletDispatcherResult.java:**164)
 at org.apache.struts2.dispatcher.**StrutsResultSupport.execute(
 **StrutsResultSupport.java:186)
 at com.opensymphony.xwork2.**DefaultActionInvocation.**
 executeResult(**DefaultActionInvocation.java:**371)
 at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(*
 *DefaultActionInvocation.java:**275)
 at org.apache.struts2.**interceptor.debugging.**
 DebuggingInterceptor.**intercept(**DebuggingInterceptor.java:256)
 at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(*
 *DefaultActionInvocation.java:**246)
 at com.opensymphony.xwork2.**interceptor.**
 DefaultWorkflowInterceptor.**doIntercept(**DefaultWorkflowInterceptor.*
 *java:176)
 at com.opensymphony.xwork2.**interceptor.**
 MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**
 98)
 at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(*
 *DefaultActionInvocation.java:**246)
 at com.opensymphony.xwork2.**validator.**ValidationInterceptor.
 **doIntercept(**ValidationInterceptor.java:**265)
 at org.apache.struts2.**interceptor.validation.**
 AnnotationValidationIntercepto**r.doIntercept(**
 AnnotationValidationIntercepto**r.java:68)
 at com.opensymphony.xwork2.**interceptor.**
 MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**
 98)
 at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(*
 *DefaultActionInvocation.java:**246)
 at com.opensymphony.xwork2.**interceptor.**
 ConversionErrorInterceptor.**intercept(**ConversionErrorInterceptor.**
 java:138)
 at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(*
 *DefaultActionInvocation.java:**246)
 at com.opensymphony.xwork2.**interceptor.**
 ParametersInterceptor.**doIntercept(**ParametersInterceptor.java:**249)
 at com.opensymphony.xwork2.**interceptor.**
 MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**
 98)
 at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(*
 *DefaultActionInvocation.java:**246)
 at com.opensymphony.xwork2.**interceptor.**
 ParametersInterceptor.**doIntercept(**ParametersInterceptor.java:**249)
 at com.opensymphony.xwork2.**interceptor.**
 MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**
 98)
 at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(*
 *DefaultActionInvocation.java:**246)
 at com.opensymphony.xwork2.**interceptor.**
 StaticParametersInterceptor.**intercept(**StaticParametersInterceptor.*
 *java:191

Why am i getting this exception often?

2013-10-09 Thread Muralidhar Yaragalla
.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at 
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at 
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at 
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at 
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at 
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at 
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
at 
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:546)
at 
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
at 
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.ymd.ums.LoginFilter.doFilter(LoginFilter.java:36)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at 
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at 
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: tmpFile.renameTo(classFile) failed
at 
org.apache.jasper.compiler.SmapUtil$SDEInstaller.install(SmapUtil.java:204)
at org.apache.jasper.compiler.SmapUtil.installSmap(SmapUtil.java:163)
at 
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:483)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)


*Thanks And Regards,*
Muralidhar Yaragalla.*
(Visit My Blog http://yaragalla.blogspot.in)
*


Re: Why am i getting this exception often?

2013-10-09 Thread Muralidhar Yaragalla
I am getting this exception very often even when i am using tomcat without
eclipse. Is there a way to avoid this?

*Thanks And Regards,*
Muralidhar Yaragalla.*
(Visit My Blog http://yaragalla.blogspot.in)
*


On Wed, Oct 9, 2013 at 7:00 PM, Muralidhar Yaragalla 
java.yaraga...@gmail.com wrote:

 Hi i am using tomcat-7 with eclipse kepler. I am getting the following
 exception very often. Is there a way to prevent this?

 Exception:org.apache.jasper.JasperException: Unable to compile class for
 JSP Stack trace:

 org.apache.jasper.JasperException: Unable to compile class for JSP
   at 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:661)
   at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
   at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
   at 
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
   at 
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
   at 
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
   at 
 org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
   at 
 org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)
   at 
 com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:371)
   at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:275)
   at 
 org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
   at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at 
 com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
   at 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
   at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at 
 com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
   at 
 org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
   at 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
   at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at 
 com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
   at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
   at 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
   at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
   at 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
   at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at 
 com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
   at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at 
 org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
   at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at 
 org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
   at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at 
 org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
   at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
   at 
 com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
   at 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke

Re: Using websocket with Tomcat 7.0.37

2013-04-08 Thread Muralidhar Yaragalla
See if you are following the examples shown on tomcat7.0 docs then you are
wasting time. The JSR is not yet implemented in tomcat but the examples
shown are according to JSR that is currently open. Tomcat7.0 has a
propitiatory solution for websockets. if you want to use websockets study
the examples that comes with the tomcat distribution. That will help you to
use websockets in tomcat7.


On Mon, Apr 8, 2013 at 2:41 PM, eric.rober...@free.fr wrote:

 Hi all !

 I would like to use web socket, and I started looking to do so with tomcat
 API.
 I'm currently using Tomcat 7.0.37 on Windows Seven, integrated in Eclipse
 Juno.

 I tried to follow the example code from tomcat documentation, and read the
 associated JavaDoc for package org.apache.catalina.websocket. The example
 is
 supposed to be a chat application. Here is the link for the documentation :
 http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html


 I'm also using maven for the project, so I added this to my pom.xml :

 dependency
 groupIdorg.apache.tomcat/groupId
 artifactIdtomcat-catalina/artifactId
 version7.0.39/version
 scopeprovided/scope
 /dependency

 First thing that's weird, I get an error message in Eclipse for this line :

 private class MyMessageInbound extends MessageInbound

 The error message is The hierarchy of the type MyMessageInbound is
 inconsistent,
 but I'm still able to compile and launch the webapp from Eclipse.

 I also added the configuration in the web.xml as follow:

 servlet
 servlet-namewsChat/servlet-name
 servlet-classwebsocket.chat.ChatWebSocketServlet/servlet-class
 load-on-startup1/load-on-startup
 /servlet

 servlet-mapping
 servlet-namewsChat/servlet-name
 url-pattern/websocket/chat/url-pattern
 /servlet-mapping

 So, I'm able to launch the webapp, but when I go to the chat page, I get
 an error
 on the chat board saying Info: WebSocket closed.. Tomcat log give me the
 following message:

 SEVERE: Servlet.service() for servlet [wsChat] in context with path
 [/websocket-tuto] threw exception [L''exécution de la servlet a lancé une
 exception]
 with root cause
 java.lang.NoSuchMethodError:
 websocket.chat.ChatWebSocketServlet$MyMessageInbound.init(Lwebsocket/chat/ChatWebSocketServlet;Luwebsocket/chat/ChatWebSocketServlet$MyMessageInbound;)V
 at
 websocket.chat.ChatWebSocketServlet.createWebSocketInbound(ChatWebSocketServlet.java:34)
 at
 org.apache.catalina.websocket.WebSocketServlet.doGet(WebSocketServlet.java:121)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
 at
 org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)

 Anyone see what could be my problem, or what I'm doing wrong ?

 Thanks !

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




-- 
Thanks And Regards,
*Muralidhar Yaragalla.
*


Re: problems faced in deploying servlet

2013-03-19 Thread Muralidhar Yaragalla
What are u exactly trying to do? what book you are studying and what
examples you are using is not that relevant here. You have written a html
file and in the form tag you have configured the action attribute and
still you are facing problem. is it? or what exactly is your problem? if
possible paste the log.


On Tue, Mar 19, 2013 at 8:49 PM, Satya Priya Das am_sp...@yahoo.co.inwrote:

 I am a retd. software person,worked with autocoder,COBOL,assembler,c, and
 now trying to learn java,
 I am using Java for the Web with Servlets,jsp,and EJB by Budi Kurniwan,
 but unfortunatetely the tomcat v4 has been used in the book for examples.
 Downloading of tomcat6.0.36, and installing of tomcat has been done
 success fully.The example in chapter one has been compiled and tested
 o.k.,The servlet context example compiled and deployed successfully.
 Now the example for RequestDemoServlet has been compiled  o.k, but when I
 want to deploy the example
 with index.html file using action element, the source not found message is
 displayed. I have used alias name,class name, even url-mapping but result
 is same.
 A directory myapp has been created under which  subdirs are build,doc,web
 and build.xml build.properties file. The wb.xml file created as per book
 with //DTDWeb application 2.3//en
 pL. guide me how I can trace the causes of resource not found message.
 Thanks
 s.p.das




-- 
Thanks And Regards,
*Muralidhar Yaragalla.
*


Re: help on websockets

2013-03-19 Thread Muralidhar Yaragalla
Hi Christopher,
The following is the link in tomcat7 docs
http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html

in this under the application development section there is a pointer to
server side code which shows an example implementation of chat application
with annotations. You can have a look at it.


On Wed, Mar 20, 2013 at 1:37 AM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Muralidhar,

 Please don't top-post. See my response below.

 On 3/17/13 4:44 PM, Muralidhar Yaragalla wrote:
  On Mon, Mar 18, 2013 at 2:00 AM, Mark Thomas ma...@apache.org
  wrote:
 
  On 17/03/2013 20:17, Muralidhar Yaragalla wrote:
  Hi I have downloaded the tomcat 7.0.37 and trying to run the
  websocket
  chat
  program which is with javax.wesocket annotations but the
  annotations
  are
  not being recognized. how to run this on tomcat.
 
  Tomcat 7.0.x does not (yet) implement JSR-356.
 
  Tomcat's JSR-356 implementation is a work-in-progress on trunk
  (i.e. Tomcat 8.0.x). Once the JSR-356 implementation is complete,
  the non-JSR-356 WebSocket implementation in Tomcat 7 will be
  deprecated and the JSR-356 implementation ported from trunk to
  replace it.
 
  Thank you. Without implementing jsr why would they show examples
  in tomcat7 online docs. It is so much confusing. Thanks anyway.

 Can you give an example of where some Tomcat 7 online documentation is
 inaccurate?

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

 iEYEAREIAAYFAlFIxXAACgkQ9CaO5/Lv0PAo9gCfY4IwIMec5mFjs+sfGECxHK2Z
 SSAAoKEgs8kJqXP2qTGyKt+C8w2ybdEB
 =7s6K
 -END PGP SIGNATURE-

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




-- 
Thanks And Regards,
*Muralidhar Yaragalla.
*


Re: help on websockets

2013-03-19 Thread Muralidhar Yaragalla
sorry, I use gmail and i am not sure how to avoid top-posting.


On Wed, Mar 20, 2013 at 1:37 AM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Muralidhar,

 Please don't top-post. See my response below.

 On 3/17/13 4:44 PM, Muralidhar Yaragalla wrote:
  On Mon, Mar 18, 2013 at 2:00 AM, Mark Thomas ma...@apache.org
  wrote:
 
  On 17/03/2013 20:17, Muralidhar Yaragalla wrote:
  Hi I have downloaded the tomcat 7.0.37 and trying to run the
  websocket
  chat
  program which is with javax.wesocket annotations but the
  annotations
  are
  not being recognized. how to run this on tomcat.
 
  Tomcat 7.0.x does not (yet) implement JSR-356.
 
  Tomcat's JSR-356 implementation is a work-in-progress on trunk
  (i.e. Tomcat 8.0.x). Once the JSR-356 implementation is complete,
  the non-JSR-356 WebSocket implementation in Tomcat 7 will be
  deprecated and the JSR-356 implementation ported from trunk to
  replace it.
 
  Thank you. Without implementing jsr why would they show examples
  in tomcat7 online docs. It is so much confusing. Thanks anyway.

 Can you give an example of where some Tomcat 7 online documentation is
 inaccurate?

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

 iEYEAREIAAYFAlFIxXAACgkQ9CaO5/Lv0PAo9gCfY4IwIMec5mFjs+sfGECxHK2Z
 SSAAoKEgs8kJqXP2qTGyKt+C8w2ybdEB
 =7s6K
 -END PGP SIGNATURE-

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




-- 
Thanks And Regards,
*Muralidhar Yaragalla.
*


Re: help on websockets

2013-03-19 Thread Muralidhar Yaragalla
Hi Christopher,
 I dont want to go for those examples which might be in effect from
tomcat8. I am fine with tomcat7 and examples that comes with the
distribution. I am using websockets but i have centralized that code so
when websocket spec changes and when tomcat provides implementation for new
spec that point of time i will change the code. They are only 1-2 classes.
so no problem.


On Wed, Mar 20, 2013 at 2:18 AM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Muralidhar,

 On 3/19/13 4:43 PM, Muralidhar Yaragalla wrote:
  Hi Christopher, The following is the link in tomcat7 docs
  http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html
 
  in this under the application development section there is a
  pointer to server side code which shows an example implementation
  of chat application with annotations. You can have a look at it.

 You'll note that page says more than once that the implementation is
 unstable and may change at any moment without notification.

 It is true, though, that the page (for Tomcat 7) includes links into
 viewvc that point to the Tomcat's trunk (which will ultimately be the
 forthcoming Tomcat 8) instead of Tomcat 7.

 So, if you want to use those examples, I'm afraid you'll have to start
 using Tomcat trunk (which currently has no official binary releases).
 Fortunately, building Tomcat from source is quite easy these days.

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

 iEYEAREIAAYFAlFIzw4ACgkQ9CaO5/Lv0PBXZgCguFePAZikzgn1u/3Tfc5yht0Q
 c3MAoJQItSfFZ6K1B2CCU1jfoVieWUv1
 =zCNx
 -END PGP SIGNATURE-

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




-- 
Thanks And Regards,
*Muralidhar Yaragalla.
*


Re: help on websockets

2013-03-19 Thread Muralidhar Yaragalla
On Wed, Mar 20, 2013 at 2:19 AM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Muralidhar Yaragalla [mailto:java.yaraga...@gmail.com]
  Subject: Re: help on websockets

  sorry, I use gmail and i am not sure how to avoid top-posting.

 Write your response _below_ the point you are replying to.  (This has
 nothing to do with gmail.)

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail and
 its attachments from all computers.


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



Ok thanks.
-- 
Thanks And Regards,
*Muralidhar Yaragalla.
*


Re: help on websockets

2013-03-17 Thread Muralidhar Yaragalla
Thank you. Without implementing jsr why would they show examples in tomcat7
online docs. It is so much confusing. Thanks anyway.


On Mon, Mar 18, 2013 at 2:00 AM, Mark Thomas ma...@apache.org wrote:

 On 17/03/2013 20:17, Muralidhar Yaragalla wrote:
  Hi I have downloaded the tomcat 7.0.37 and trying to run the websocket
 chat
  program which is with javax.wesocket annotations but the annotations
 are
  not being recognized. how to run this on tomcat.

 Tomcat 7.0.x does not (yet) implement JSR-356.

 Tomcat's JSR-356 implementation is a work-in-progress on trunk (i.e.
 Tomcat 8.0.x). Once the JSR-356 implementation is complete, the
 non-JSR-356 WebSocket implementation in Tomcat 7 will be deprecated and
 the JSR-356 implementation ported from trunk to replace it.

 Mark

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




-- 
Thanks And Regards,
*Muralidhar Yaragalla.
*


RE: using tomcat maven plugin

2010-03-29 Thread Muralidhar Yaragalla
Are u trying to create data source from outside tomcat by program?

-Original Message-
From: fachhoch [mailto:fachh...@gmail.com] 
Sent: Monday, March 29, 2010 7:47 PM
To: users@tomcat.apache.org
Subject: using tomcat maven plugin


I am struggling hard to setup datasource in tomact, mine is embedded tomcat 
through maven plugin , please  help me in setting up dataasource for
embedded tomcat 
-- 
View this message in context:
http://old.nabble.com/using-tomcat-maven-plugin-tp28069941p28069941.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


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



RE: When starting tomcat 6 from eclipse Galelio 2.5SR2-- error org.apache.axis2.transport.http.AxisAdminServlet java.lang.ClassNotFoundException

2010-03-26 Thread Muralidhar Yaragalla
Where are u placing the axis jar files?

-Original Message-
From: SM [mailto:moni_spar...@yahoo.com] 
Sent: Friday, March 26, 2010 11:10 PM
To: users@tomcat.apache.org
Subject: When starting tomcat 6 from eclipse Galelio 2.5SR2-- error
org.apache.axis2.transport.http.AxisAdminServlet
java.lang.ClassNotFoundException


I used eclipse Gamypede to generate webservices in the past with tomcat
6. Was using the service archive and the code generator wizard.  However
the loading of axis2 fails with the following error on a new version of
eclipse Galileo 3.5SR2.  Tomcat version 6.0 is being used.  The same
instance of the Tomcat 6.0 server starts without a problem when started
independent of
eclipse.  If the server is started from within the eclipse environment I
get the following error.  Is there a fix for this?  


repositories:
    /WEB-INF/classes/
-- Parent Classloader:
org.apache.catalina.loader.standardclassloa...@6e70c7
org.apache.axis2.transport.http.AxisAdminServlet
java.lang.ClassNotFoundException:
org.apache.axis2.transport.http.AxisAdminServlet
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1484)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1329)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
95)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
4187)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at
 org.apache.catalina.startup.Catalina.start(Catalina.java:593)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Boots

Any tips or pointers in getting this corrected will be very beneficial.  

Thanks,
Monisha


  


  


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



RE: Configuring a database connection pool by source

2010-03-26 Thread Muralidhar Yaragalla
Hi basically this happens when you don't provide InitialContexFactory to the
Initialcontext when creating an InitialContext object. If your code resides
inside tomcat you don't need to do this because it knows where its directory
service is located. But if you want to connect to directory service from
outside tomcat I am not sure whether you can do it or not? If you want to do
it there is only one way? Find where the implementation of the factory
interface is. It is responsibility of the service provider to provide its
implementation. Once you find it create env properties accordingly and pass
it to InitialContext constructor while creating object for that.

-Original Message-
From: Pid [mailto:p...@pidster.com] 
Sent: Friday, March 26, 2010 6:42 PM
To: Tomcat Users List
Cc: David Calavera
Subject: Re: Configuring a database connection pool by source

On 24/03/2010 18:39, David Calavera wrote:
 Hi,

 I'm working in an application that uses an embedded tomcat and I'd like to
 add a feature to add a connection pool by source but when I run the server
 I'm getting this error:

   javax.naming.NoInitialContextException: Need to specify class name in
 environment or system property, or as an applet parameter, or in an
 application resource file:  java.naming.factory.initial

That sounds like you haven't configued the InitialContext via a suitable 
Factory.  I don't think Tomcat embedded does that automatically*, so you 
would need to provide it yourself.


p


* someone will correct me if I'm wrong.



 I'm using the tomcat jars for the version 6.0.18, and this is how I'm
trying
 to do it:

 tomcat = new org.apache.catalina.startup.Tomcat() //creates the new server

 ... // configures the server

 StandardContext application = tomcat.addWebapp(); //creates the web
 application

 ... // configures the web application

 resource = org.apache.catalina.deploy.ContextResource() // creates the new
 JNDI resource

 ... // configures the JNDI resource with the name, type and properties

 application.getNamingResources().addResource(resource) // adds the
resource
 to the application context


 tomcat.start() //start tomcat


 This is more or less the code, seems I'm not configuring anything because
 without the resource it works fine.

 Can anyone help me?

 Thank you



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


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



RE: configuration to serve 500 users

2010-03-26 Thread Muralidhar Yaragalla
Thank you.

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Thursday, March 25, 2010 9:07 PM
To: Tomcat Users List
Subject: Re: configuration to serve 500 users

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Muralidhar,

Welcome to the list. In the future, please use a more descriptive
subject line: most list members are writing because they need help, so
need help is completely useless.

On 3/24/2010 1:38 PM, Muralidhar Yaragalla wrote:
 Hi, I have to run tomcat against 500 concurrent users.

When you say 500 concurrent users, do you mean that you need to support
500 users logged-on at once, or you need to be able to handle 500
simultaneous requests?

 Do I have to specify any maximum threads allowed or kind of things?

You might want to do that. The default maximum number of worker threads
for all connectors is 250.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkurgx4ACgkQ9CaO5/Lv0PC19QCggrxD0Meootl81p+o8LY6aJ2F
PDMAnRQ3t0foY/TNxRtAFM2zODH2iZ6B
=cpjJ
-END PGP SIGNATURE-

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


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



need help

2010-03-24 Thread Muralidhar Yaragalla
Hi, I have to run tomcat against 500 concurrent users. I am using tomcat6,
Java1.6 and tomcat running on windows2003 OS. Do I have to do any additional
configuration for this in tomcat or no configuration required?  Kindly help
me. Do I have to specify any maximum threads allowed or kind of things? Pls
help me guys.