Re:How to specify path when executing CGI in Tomcat?
Does anyone know how to include the system property path(win2000) when executing CGI in Tomcat? Just like the way apache http server did for CGI. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re:How to specify path when executing CGI in Tomcat?
If you are interested in this question, here is how to make cgi in tomcat to know the system property path. 1. download the tomcat source, find the CGIServlet.java 2. add the following line inside setCGIEnvironment method, compile it, create the servlet-cgi.jar file again. envp.put(PATH, nullsToBlanks(System.getProperty(java.library.path))); 3. restart the tomcat, now it will find the path system property. This is just a temparary way to get it work, wish the later release tomcat will allow user to configure to include any system property they need. Bin __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to specify path when executing CGI in Tomcat?
Hi, I try to implement CGI in Tomcat(win2k,tomcat4.15). I follow the instruction to make a simple CGI work. However when I test a more complicated cgi file written using c++, I get a problem like xxx.exe -Unable to Locate DLL The dynamic link library orasql.dll cound not found in specified path D:\tomcat\webapps\test\WEB-INF\cgi;.;c:\WINNT\System32;c:\WINNT\System;c:\WINNT; Apparently it can't find the system property path. So how to specify path for cgi in tomcat? If anyone can tell me how to fix this problem, I will really appreciate it. Thanks, Bin __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.12 - Incompatible type for getting or setting field
Jeff: I post a similar message several days ago but no response. I think I figure it out yesterday. It's because of the bug in jasper-compiler.jar(in common/lib) for jsper2. You can either upgrate tomcat to 4.15 or copy the old jasper-compiler.jar from 4.06 which is using jsper1. HTH, Bin __ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: tomcat 4.1.12, first time load jsp get ServletException
If anyone has similar problem(see below), please update to tomcat 4.15. It seems that the new jasper-compiler.jar fix the problem. -Bin We just find this weild problem in tomcat4.1.12(win2k), if we clear all files from work directory, load all jsp from browser, then sometimes we get ServletException(please see following), after hit browser fresh, the error disappear. This problem only happen for first time to load jsp, if the jsp already loaded before and compiled in work directory, then everything work fine. The same jsp files work fine in tomcat 4.03. Has anyone see similar problem? Is this a bug or some congiguration need to be done? Any help will be greatly appreciated. -Bin The server encountered an internal error: javax.servlet.ServletException: (class: org/apache/jsp/searchWizardCore_jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Incompatible type for getting or setting field at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) __ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
tomcat 4.1.12, first time load jsp get ServletException
We just find this weild problem in tomcat4.1.12(win2k), if we clear all files from work directory, load all jsp from browser, then sometimes we get ServletException(please see following), after hit browser fresh, the error disappear. This problem only happen for first time to load jsp, if the jsp already loaded before and compiled in work directory, then everything work fine. The same jsp files work fine in tomcat 4.03. Has anyone see similar problem? Is this a bug or some congiguration need to be done? Any help will be greatly appreciated. -Bin The server encountered an internal error: javax.servlet.ServletException: (class: org/apache/jsp/searchWizardCore_jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Incompatible type for getting or setting field at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) __ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
tomcat 4.1.12 Incompatible type for getting or setting field error
Hi, I just update the tomcat from 4.0.3 to 4.1.12(on win2k, apache+tomcat). Then an error message when viewing jsp files popups from time to time like the following, but when refreshing, the error disppears. This never happens in 4.03. Does someone have any idea? htmlheadtitleApache Tomcat/4.1.12 - Error report/titleSTYLE!--H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} H3{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color : white;background-color : #0086b2;} HR{color : #0086b2;} --/STYLE /headbodyh1HTTP Status 500 - Internal Server Error/h1HR size=1 noshadepbtype/b Exception report/ppbmessage/b uInternal Server Error/u/ppbdescription/b uThe server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request./u/ppbexception/b prejavax.servlet.ServletException: (class: org/apache/jsp/searchWizardCore_jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Incompatible type for getting or setting field at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:536) /pre/ppbroot cause/b prejava.lang.VerifyError: (class: org/apache/jsp/searchWizardCore_jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Incompatible type for getting or setting field at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576) at java.lang.Class.getConstructor0(Class.java:1748) at java.lang.Class.newInstance0(Class.java:266) at java.lang.Class.newInstance(Class.java:249) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:146) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at