Re: Tomcat and IIS
How far along the installation are you? Are you seeing the index.jsp page when starting up tomcat through localhost:8080/index.jsp? Nicholas Camilleri [EMAIL PROTECTED] wrote: I am using tomcat 4.1.12 and windows XP with IIS 5 and I am trying to secure the virutal directory (named Jakarta) which I created to redirect requests to the tomcat containerThanks Again - Original Message - All email is scanned by Keyworld against known Viruses. This service is offered to all Keyworld subscribers and hosted domains and does not carry any warranty. You are advised to protect your PC with updated antivirus software at all times. ATTACHMENT part 2 message/rfc822 From: Kannan Sundararajan To: 'Tomcat Users List' Subject: RE: Tomcat and IIS The instruction set given is so confusing. After sometime, i could able to do the connectivity. But the documents is not to the standards. -Original Message- From: Lior Shliechkorn [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 3:26 PM To: Tomcat Users List Subject: Re: Tomcat and IIS What version of Tomcat? Windows? And are you trying to use windows security on the virtual directory? Nicholas Camilleri wrote: Hi there, I am attempting to configure IIS with tomcat however I am encountering some problems, related to security and authentication features with IIS 5. Each time a request is redirected to the isapi_redirect.dll, IIS logs a HTTP 401 errorDo you know what I can do, found somthing on the net which indicates that I should give anonimous user right on the vitual directory, I could not configure it with IIS an now each time the page is accessed, a security dialog is displayed indicating that the user should enter the username and password. Thanks Alot Nick. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
NullPointerException/Connection pool gets exhausted very quickly
Hi, I created a Tomcat connection pool (4.1.18/Win2k) which gets exhausted fairly quickly if a user refreshes a page a few times. I have all the pages with the following code:p - Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbc/refcoDB); conn = ds.getConnection(); p with conn.close() at the bottom of each page and initCtx.close() to release the connections. I also have the following code in the server.xml file:p - Resource name=jdbc/refcoDB scope=Shareable type=javax.sql.DataSource auth=Container/ ResourceParams name=jdbc/resourceDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameurl/name valueURL/value /parameter parameter namepassword/name valuepasswd/value /parameter parameter namemaxWait/name value100/value /parameter parameter namemaxActive/name value5/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameusername/name valueusername/value /parameter parameter namemaxIdle/name value30/value /parameter /ResourceParams -- p How can I have Tomcat process the connections faster and bring them back to being active? This scenario happens when only b1/b user is online!!p Now, also, from time to time I will try to log into the application and get a NullPointerException and something do with a filter which I do not have any filters being mapped to my login servlet. java.lang.NullPointerException at kz.users.checker.LoginProcess.doPost(LoginProcess.java:168) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) 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:2415) 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.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:590) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:479) I appreciate the help. Lior
Re: Where are ISAPI filter registry settings defined?
Which Tomcat are you using? isapi_redirect.dll or isapi_redirect2.dll? Nathan Ward [EMAIL PROTECTED] wrote: Hello, Is there any more documentation on the registry settings used by the isapi_redirect.dll than defined in the IIS How-To in the Tomcat documenation? I'd like to configure two web sites defined in the same IIS server to use different instances of the ISAPI redirector plug-in so that each IIS website can access different webapps on the same instance of Tomcat by using different uriworkermap.properties file specified by different woker_file registry string values. Nathan - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Re: Where are ISAPI filter registry settings defined?
The redirector2.dll file is a new implementation...I was told that it was faster. I have a document you can use if you choose the redirector2.dll file. Let me know. Nathan Ward [EMAIL PROTECTED] wrote:I'm using Tomcat 4.1.24 and isapi_redirector.dll. Should I be using isapi_redirectory2.dll? I saw something in a book about isapi_redirectory2.dll, but I didn't see it yet in the Tomcat docs. Nathan - Original Message - From: Lior Shliechkorn To: Tomcat Users List Sent: Monday, July 21, 2003 12:36 PM Subject: Re: Where are ISAPI filter registry settings defined? Which Tomcat are you using? isapi_redirect.dll or isapi_redirect2.dll? Nathan Ward wrote: Hello, Is there any more documentation on the registry settings used by the isapi_redirect.dll than defined in the IIS How-To in the Tomcat documenation? I'd like to configure two web sites defined in the same IIS server to use different instances of the ISAPI redirector plug-in so that each IIS website can access different webapps on the same instance of Tomcat by using different uriworkermap.properties file specified by different woker_file registry string values. Nathan - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Re: Tomcat and IIS
What version of Tomcat? Windows? And are you trying to use windows security on the virtual directory? Nicholas Camilleri [EMAIL PROTECTED] wrote: Hi there, I am attempting to configure IIS with tomcat however I am encountering some problems, related to security and authentication features with IIS 5. Each time a request is redirected to the isapi_redirect.dll, IIS logs a HTTP 401 errorDo you know what I can do, found somthing on the net which indicates that I should give anonimous user right on the vitual directory, I could not configure it with IIS an now each time the page is accessed, a security dialog is displayed indicating that the user should enter the username and password. Thanks Alot Nick. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Win2k/Tomcat 4.1.24/ISAPI_REDIRECT2 - RESOLVED
Thank you all very much for the help. Especially John Turner who pointed me in the right direction. In turn, I created a document that people who are starting out (like me) can follow and get through the often painfull installation procedure of Tomcat. Hopefully this tutorial file can help those who need it. Lior Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Win2k/4.1.24 - Not working
Hi guys, p I'm running into a weird issue. I just installed Tomcat on my machine (from exe file, and checked the run as service) and created all the environment variables. I also downloaded the isapi_redirector2.dll file and the registry entries which yielded a green arrow. p However, when I go to localhost:8080 I don't get any pages. By mistake earlier I just ran Tomcat and did not use any environment entries at all, and I got this error: p An error occured at line: -1 in the jsp file: null Generated servlet error: [javac] since fork is true, ignoring compiler setting [javac] Compiling 1 source file [javac] since fork is true, ignoring compiler setting p and it would then print out the rest of the error from the javacError(DefaultErrorHandler.java). But now that I retried everything and set the variables I get nothing. p Any ideas? p Thank you very much, Lior - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
RE: Win2k/4.1.24 - Not working
Yep, I created all of those, but I still get nothing. Also, this is my worker2.properties file that I currently have: p [shm] file=c:\\Tomcat\\conf\\shm.txt size=1048576 br # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 br # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] worker=ajp13:localhost:8009 p Which is a basic one. I created a website that has the jakarta virtual directory with execute rights, and I created a virtual directory for examples as well. I wanted to use the manager or admin application, but I can't get those to work either. p After I created everything, I thought maybe it needed a reboot to clean up a bit, but then I saw that Tomcat doesn't start up when rebooting (The service), and nothing was working yet. Motykowski, Peter P. [EMAIL PROTECTED] wrote: Do you have System Variable JAVA_HOME set to C:\path_to_jdk ? This is required for the Tomcat service running as user SYSTEM to find javac. -Original Message- From: Lior Shliechkorn [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 2:20 PM To: Tomcat Subject: Win2k/4.1.24 - Not working Hi guys, I'm running into a weird issue. I just installed Tomcat on my machine (from exe file, and checked the run as service) and created all the environment variables. I also downloaded the isapi_redirector2.dll file and the registry entries which yielded a green arrow. However, when I go to localhost:8080 I don't get any pages. By mistake earlier I just ran Tomcat and did not use any environment entries at all, and I got this error: An error occured at line: -1 in the jsp file: null Generated servlet error: [javac] since fork is true, ignoring compiler setting [javac] Compiling 1 source file [javac] since fork is true, ignoring compiler setting and it would then print out the rest of the error from the javacError(DefaultErrorHandler.java). But now that I retried everything and set the variables I get nothing. Any ideas? Thank you very much, Lior - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
RE: Win2k/4.1.24 - Not working
Now I'm getting this error all of a sudden: p org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) 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:256) 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:2415) 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:171) 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.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Unknown Source) p This is just trying to access the http://localhost:8080 url. Lior Shliechkorn [EMAIL PROTECTED] wrote: Yep, I created all of those, but I still get nothing. Also, this is my worker2.properties file that I currently have: p [shm] file=c:\\Tomcat\\conf\\shm.txt size=1048576 br # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 br # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] worker=ajp13:localhost:8009 p Which is a basic one. I created a website that has the jakarta virtual directory with execute rights, and I created a virtual directory for examples as well. I wanted to use the manager or admin application, but I can't get those to work either. p After I created everything, I thought maybe it needed a reboot to clean up a bit, but then I saw that Tomcat doesn't start up when rebooting (The service), and nothing was working yet. Motykowski, Peter P. [EMAIL PROTECTED] wrote: Do you have System Variable JAVA_HOME set to C:\path_to_jdk ? This is required for the Tomcat service
Re: Win2k/4.1.24 - Not working - ENV Variables
Thanks for the source John. p I added the entry for JAVA_HOME in the PATH, but I still couldn't get it to work. The next posting I saw was adding the following variables. Where would I add these? p _RUNJAVA=%JAVA_HOME%\bin\java _RUNJAVAW=%JAVA_HOME%\bin\javaw _RUNJDB=%JAVA_HOME%\bin\jdb _RUNJAVAC=%JAVA_HOME%\bin\javac p Is this being added in the script? If so, where would I add these? John Turner [EMAIL PROTECTED] wrote: Have you checked the FAQ? http://jakarta.apache.org/tomcat/faq/misc.html#compile John On Wed, 16 Jul 2003 12:58:01 -0700 (PDT), Lior Shliechkorn wrote: Now I'm getting this error all of a sudden: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) 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:256) 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:2415) 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:171) 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.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Unknown Source) This is just trying to access the http://localhost:8080 url. Lior Shliechkorn wrote: Yep, I created all of those, but I still get nothing. Also, this is my worker2.properties file that I currently have: [shm] file=c:\\Tomcat\\conf\\shm.txt size=1048576 # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] worker=ajp13:localhost:8009 Which is a basic one. I created a website that has the jakarta virtual directory with execute rights, and I created a virtual
Re: Win2k/4.1.24 - Not working - ENV Variables
Yeah, that's what I did, but it still did not work. I have the follwing variables set: p CATALINA_HOME\CATALINA_BASE both pointing to c:\Tomcat JAVA_HOME = c:\j2sdk1.4.2 CLASSPATH = .;%CATALINA_HOME%\common\lib\servlet.jar;%JAVA_HOME%\bin PATH = some other stuff;%JAVA_HOME%\bin p And nothing is happening once I added the path entry. p Lior John Turner [EMAIL PROTECTED] wrote: Don't know. For me, the solution on Win XP was not to add the value for JAVA_HOME to my path, but JAVA_HOME/bin. John On Wed, 16 Jul 2003 13:28:58 -0700 (PDT), Lior Shliechkorn wrote: Thanks for the source John. I added the entry for JAVA_HOME in the PATH, but I still couldn't get it to work. The next posting I saw was adding the following variables. Where would I add these? _RUNJAVA=%JAVA_HOME%\bin\java _RUNJAVAW=%JAVA_HOME%\bin\javaw _RUNJDB=%JAVA_HOME%\bin\jdb _RUNJAVAC=%JAVA_HOME%\bin\javac Is this being added in the script? If so, where would I add these? John Turner wrote: Have you checked the FAQ? http://jakarta.apache.org/tomcat/faq/misc.html#compile John On Wed, 16 Jul 2003 12:58:01 -0700 (PDT), Lior Shliechkorn wrote: Now I'm getting this error all of a sudden: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) 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:256) 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:2415) 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:171) 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.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Unknown Source
ISAPI Filter errors
Hello, I'm getting this error in my isapi.log file when I start up Tomcat. This did not occur in the 4.0.5 version, and now that I have the 4.1.18 version I'm seeing problems with the redirection: [Tue Jun 03 13:35:12 2003] [jk_isapi_plugin.c (920)]: Unable to read worker mount file C:\Tomcat\conf\uriworkermap.properties.[Tue Jun 03 21:41:13 2003] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed[Tue Jun 03 21:41:13 2003] [jk_ajp13_worker.c (712)]: Error reading reply[Tue Jun 03 21:41:13 2003] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 0[Tue Jun 03 22:21:40 2003] [jk_ajp13_worker.c (680)]: Error sending request body[Tue Jun 03 22:21:40 2003] [jk_ajp13_worker.c (848)]: In jk_endpoint_t::service, send_request failed in send loop 0[Tue Jun 03 22:27:47 2003] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed[Tue Jun 03 22:27:47 2003] [jk_ajp13_worker.c (712)]: Error reading reply I attached the worker.prop file to the message. Thanks for the help. Lior Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!# # general stuff # workers.tomcat_home=c:\tomcat workers.java_home=c:\jdk1.3.1_04 ps=\ # # workers list # worker.list=ajp12, ajp13 # # ajp12 communicates on port 8007 # worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 worker.ajp12.lbfactor=1 # # ajp13 connector communicating on port 8009 # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 # # load balancing # worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13, ajp12 # # The JVM that we are about to use # worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll # # Setting the place for the stdout and stderr of tomcat # worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
isapi_redirector2.dll not loading correctly
Hello, I'm running tomcat 4.1.18 and IIS 5, and I'm trying to upgrade the isapi filter to the new one without any success. I've changed the settings in the regedit to reflect the new filter, and I'm getting a down red arrow when restarting Tomcat. Can anyone please help me with this? Thanks, Lior - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Re: isapi_redirector2.dll not loading correctly
I checked the event viewer and saw this error: Error: [jk_isapi_plugin.c (684)]: read_registry_init_data, Failed Registry OpenKey Software\Apache Software Foundation\Jakarta Isapi Redirector\2.0 And I was checking the registry settings over and over again. Not sure though. Thanks Jason Bainbridge [EMAIL PROTECTED] wrote: On Thu, 26 Jun 2003 00:34, Lior Shliechkorn wrote: Hello, I'm running tomcat 4.1.18 and IIS 5, and I'm trying to upgrade the isapi filter to the new one without any success. I've changed the settings in the regedit to reflect the new filter, and I'm getting a down red arrow when restarting Tomcat. Firstly double check, triple check and quadruple check your registry settings, if you are absolutely sure they are right then have a look at the permissions on the folder the dll is contained in along with the dll itself, plus have a look at the settings within IIS to allow scripts to execute (can't remember exactly what they are, it is rare when I have to use IIS). Maybe also trying looking in your event log to see if any errors are being thrown. Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Re: isapi_redirector2.dll not loading correctly
This is what I have under the regedit: (default)REG_SZ (value not set) extension_uriREG_SZ /jakarta/isapi_redirector2.dll log_file REG_SZ c:\tomcat\logs\isapi_redirector.log log_level REG_SZ debug worker_file REG_SZ c:\tomcat\conf\workers.properties worker_mount_file REG_SZ c:\tomcat\conf\uriworkermap.properties And i have the isapi file under c:\tomcat\native\ directory and I'm pointing to it from the WWW settings under IIS management. Any ideas why it's not working from this point on? Thanks again for your time, Lior Jason Bainbridge [EMAIL PROTECTED] wrote: On Thu, 26 Jun 2003 00:43, Lior Shliechkorn wrote: Error: [jk_isapi_plugin.c (684)]: read_registry_init_data, Failed Registry OpenKey Software\Apache Software Foundation\Jakarta Isapi Redirector\2.0 Well that seems to indicate where the problem is, you need: HKEY_LOCAL_MACHINE /Apache Software Foundation /Jakarta Isapi Redirector /2.0 Within your registry and all the appropriate settings at that level. Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Re: isapi_redirector2.dll not loading correctly
I'll try to reboot. But before, when I try to just return the filter back to the regular isapi file, not 2, then the arrow is green. What does that mean then? I'm starting to develop a migrane from this. Jason Bainbridge [EMAIL PROTECTED] wrote:On Thu, 26 Jun 2003 01:10, Lior Shliechkorn wrote: This is what I have under the regedit: (default) REG_SZ (value not set) extension_uri REG_SZ /jakarta/isapi_redirector2.dll log_file REG_SZ c:\tomcat\logs\isapi_redirector.log log_level REG_SZ debug worker_file REG_SZ c:\tomcat\conf\workers.properties worker_mount_file REG_SZ c:\tomcat\conf\uriworkermap.properties It doesn't seem to be getting this far as it can't find the below path in the registry (I did a booboo in the last one): HKEY_LOCAL_MACHINE /Software /Apache Software Foundation /Jakarta Isapi Redirector /2.0 Are you sure that exists? If it does maybe a reboot is a good idea... Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Re: isapi_redirector2.dll not loading correctly
yep, I just created another .reg file with the following entries and it was added successfully: [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Apache Web Server] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Apache Web Server\1.3.14] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] extension_uri=/jakarta/isapi_redirect.dll log_file=C:\\TomCat\\logs\\isapi.log log_level=error worker_file=C:\\TomCat\\conf\\workers.properties worker_mount_file=C:\\TomCat\\conf\\uriworkermap.properties So, other than that, I'm just clueless as to why it's not working. Jason Bainbridge [EMAIL PROTECTED] wrote: On Thu, 26 Jun 2003 01:18, Lior Shliechkorn wrote: I'll try to reboot. But before, when I try to just return the filter back to the regular isapi file, not 2, then the arrow is green. What does that mean then? I'm starting to develop a migrane from this. HKEY_LOCAL_MACHINE /Software /Apache Software Foundation /Jakarta Isapi Redirector /2.0 Are you sure your registry has the 2.0 branch then? Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
RE: isapi_redirector2.dll not loading correctly
Oh, oops, I entered the old reg file before I modified it. This is what I put down: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Apache Web Server] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Apache Web Server\1.3.14] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] extension_uri=/jakarta/isapi_redirector2.dll log_file=C:\\tomCat\\logs\\isapi_redirector.log log_level=DEBUG worker_file=C:\\tomCat\\conf\\workers.properties worker_mount_file=C:\\tomCat\\conf\\uriworkermap.properties Sorry. - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Re: isapi_redirector2.dll not loading correctly
I'm not seeing anything happening in the event viewer, and I the arrow is still red and pointing down. I'm running everything under an admin account, so process permissions should not even be an issue. I just rebooted and everything is still the same. Jason Bainbridge [EMAIL PROTECTED] wrote: Is it still throwing the below error after adding those registry entries? Error: [jk_isapi_plugin.c (684)]: read_registry_init_data, Failed Registry OpenKey Software\Apache Software Foundation\Jakarta Isapi Redirector\2.0 Everything looks fine with your registry entries so the only thing I can suggest is to try a reboot and try again... Regards, Jason On Thu, 26 Jun 2003 01:45, Lior Shliechkorn wrote: Oh, oops, I entered the old reg file before I modified it. This is what I put down: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Apache Web Server] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Apache Web Server\1.3.14] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] extension_uri=/jakarta/isapi_redirector2.dll log_file=C:\\tomCat\\logs\\isapi_redirector.log log_level=DEBUG worker_file=C:\\tomCat\\conf\\workers.properties worker_mount_file=C:\\tomCat\\conf\\uriworkermap.properties Sorry. - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Container Security and Resource Access
Hi, p My question is regarding using Tomcat (4.1.18) container security, with using a JDBCRealm along with a security constraint for FORM type loggin in. Ok, before I start confusing myself and you, let me be more clear. p I'm using Tomcat with win2k pro, and currently the system is running with no problems, except that I've hotwired the secuity mechanism using a servlet to check if a user in on the database in order to allow access along with some filters to check whether the session variables are still alive, and if not then the user is forwarded to a page in order to log in again. p My question now is if I use the JDBCRealm and the form login, how does that change the way users log in and access resources? I've noticed that in order for Tomcat to load the login.jsp page a user must try to access a jsp resource (I'm not sure if it works the same with HTML pages). And this works for any type of resource. The way I have the app setup right now is that if a user is logged in then he is rerouted, by a servlet to the apporpriate page (by the access level). If the session is dead, and the user is still in the app then a filter forwards the user to a relogin page. p What will I have to do in order for the j_secuity_check to get access to the user login servlet so that the users can still be taken to the appropriate page once they logged in? Also, if the session dies, does the filter forward the user to the relogin page or does the user get forwarded to the login.jsp page as specified by the lt;security-constraintgt;? I'm just not sure about how the requests are processed once I add the container security and how much will the way the user sessions are handled right now will change. p I thank you for your help and the time you took to read this message. I couldn't not explain it better shorter unfortunately =). p Lior - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
j_security_check issues - Tomat 4.1.18/Win2k
hello, p I am implementing Tomcat security for my webapp, and I'm running into some issues that worked last time I was playing with the app. I'm following the example from the Apache Tomcat Security book, and it worked fine (which was a week ago and I haven't touched it since). p Now I'm back and I'm getting this error: HTTP Status 400 - Invalid direct reference to form login page - type Status report message Invalid direct reference to form login page description The request sent by the client was syntactically incorrect (Invalid direct reference to form login page). Any ideas on why this is happening?p Thanks, Lior - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Please Help
Hi, I'm still having some issues with the j_security_check if anyone could help me with what is going wrong. I'm using Tomcat 4.1.18, and Windows 2000 pro. I created the constraint in the web.xml file and it's working fine on localhost:8080. However, when I change over to a virtual directory under IIS and type www.domain.com/webapp/login.jsp and submit the form I get a Page cannot be displayed error: p The page you are looking for cannot be displayed because the page address is incorrect. p And the url stays as: http://www.domain.com/webApp/j_security_check and not directing over to the requested resource. p Please help, I need to get this done fairly soon. Thanks, Lior - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Running Tomcat As Service Errors Location
Hello, If I run Tomcat as a service, do I have to change all the catch(Exception) ... to log the errors in a log file? I used to run Tomcat as Standalone and had System.err.println()s when an exception was caught. Thanks, Lior - Do you Yahoo!? Free online calendar with sync to Outlook(TM).
JDBCRealm Newbie Question
Hi, I've created a JDBCRealm and entered it into the server.xml file. Now that I restarted Tomcat, and created a security-constraint element in my application...how exactly do I put the realm to use/ or how does Tomcat do it? Also, now that I created the realm I can't access my /admin application... Thanks, Lior - Do you Yahoo!? Free online calendar with sync to Outlook(TM).
Tomcat 4.1.18 Can't find any files
Hello, I've upgraded over to 4.1.18 from 4.0.5 and I figured that the transition should be quite easy...always assuming I suppose. I'm using Windows 2k, IIS 5 with now 4.1.18. Are there any steps that differ in the installations of both versions that I might have overlooked. I've went through all the steps, and have the isapi_redirect.dll file copied over from the bin/native to the new install bin/native directory. Under IIS all arrows are green. I can see my login page, however, when I try to log in I get a HTTP 500 page cannot be displayed. I'm not sure why this would be happening. Any help would be greatly appreciated. Thanks you very much for you time, Lior - Do you Yahoo!? Free online calendar with sync to Outlook(TM).
RE: Tomcat 4.1.18 Can't find any files
My application does take mapping for servlets such as www.domain.coom/context/servlet/ServletName, which I didn't think would really matter when moving a version ahead...or would need to be changed. One thing I am getting is an error with the isapi.log file: [Tue Jun 03 13:35:12 2003] [jk_isapi_plugin.c (920)]: Unable to read worker mount file C:\Tomcat\conf\uriworkermap.properties. Any ideas why this would be happening? Thanks. Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Does your application require the invoker servlet -- i.e. do you rely on tomcat mapping URLs like http://host/context/servlet/com.yourcompany.yourservlet to the appropriate servlet? If so, you may need to comment in the invoker servlet or map the relevant servlets in your web.xml. Regardless, the tomcat logs will tell you the root cause of the 500 errors. Check the localhost_[date] log file. Yoav Shapira Millennium ChemInformatics -Original Message- From: Lior Shliechkorn [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 3:15 PM To: Tomcat Subject: Tomcat 4.1.18 Can't find any files Hello, I've upgraded over to 4.1.18 from 4.0.5 and I figured that the transition should be quite easy...always assuming I suppose. I'm using Windows 2k, IIS 5 with now 4.1.18. Are there any steps that differ in the installations of both versions that I might have overlooked. I've went through all the steps, and have the isapi_redirect.dll file copied over from the bin/native to the new install bin/native directory. Under IIS all arrows are green. I can see my login page, however, when I try to log in I get a HTTP 500 page cannot be displayed. I'm not sure why this would be happening. Any help would be greatly appreciated. Thanks you very much for you time, Lior - Do you Yahoo!? Free online calendar with sync to Outlook(TM). This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Free online calendar with sync to Outlook(TM).
setting up hosts file
How can I set up the hosts file so that Tomcat can pick up jsp files directly from a call to www.domain.com? I've tried looking for documentation about that and can not find anything. I've always had to create an application and then a virtual directory etc. in order for Tomcat to process jsp's. I'm running Tomcat 4.0.5 and with Win2k. Any help would be greatly appreciated, Thanks - Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more
Tomcat and JBoss
What is the difference between these two software applications? I heard of JBoss recently, and as my exposure to these technologies is still very new I'm just not sure. Does JBoss replace Tomcat, or are they two different layers in the structure of application presentation. I know this is not the scope of this list, however, I know most of you are very knowledgeable and have helped me greatly in getting many things done. Thank you very much, Lior - Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day
Servlet Context Problem
Hello, I'm having problems with the ServletContext object. When I acquire the context, it just gets the path to my webApp, right? The servlet will then know what webApp it's under. Ok, so I tried to make it work with a servlet to forward to another page. Now the servlet is mapped as /webApp/servlet/ServletLogin - And I want the servlet to forward control to a JSP page. But the problem that I'm encountering is that when it forwards to the JSP page, it looks for it under the servlet/jsp/Page.jsp...and not just jsp/Page.jsp. I have the code I used below. Any help is grealy appreciated. ServletContext context = getServletContext(); String url = /jsp/JSPpage.jsp; RequestDispatcher rd = context.getRequestDispatcher(url); rd.forward(request, response); Lior - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
RE: Tool for HTTP Request Stress Test
What exactly does doing the HTTP Request Stress Test do? Thanks, Lior - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
RE: IO Exception: Connection reset by peer: socket write error
Thanks John. That sounds like the most likely scenario. Turner, John [EMAIL PROTECTED] wrote: Sounds like some sort of timeout or firewall blocking to me. If it works fine when both nodes are on a local network or subnet, but not when they are remote, something in-between is causing problems, or one or the other nodes is not set to wait long enough for delays caused by intervening networks or routers. John -Original Message- From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 4:56 PM To: Tomcat Users List Subject: RE: IO Exception: Connection reset by peer: socket write error Agreed on that one. However, back to the issue, this is not letting me log back in to the application. And, it's not throwing an exception in the filter that I have that gets/releases DB connections from a connection pool. When the application is run over in the same network as the DB there is no problem at all. Just when I run it from a different location it seems to act up in this manner. That's why I'm not quite sure. Turner, John wrote: Never mind...I missed the part about the DB. *sigh* ...time for an after work beer. John -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Re: Classes not being found in app's WEB-INF directory.
I had a bunch of problems with that until I packaged the classes and then it had no problem finding the class files. Give that a try. Hope it helps Lott, Carey [EMAIL PROTECTED] wrote:Hi, I am running tomcat4.0.4 as a standalone on Solaris 7. Simple servlets that don't need any custom built classes run fine within the $CATALINA_HOME/webapps/esd/WEB-INF/classes directory. However, servlets that are dependent on other custom classes will not run when all of the needed classes are found within the $CATALINA_HOME/webapps/esd/WEB-INF/classes directory, but they do run when the dependent classes are found within the $CATALINA_HOME/classes directory. I don't understand. I thought by default it always looks in the WEB-INF/classes and WEB-INF/lib directories before looking anywhere else for needed classes. The fact that it does run is great, but since we have to have the classes in $CATALINA_HOME/classes the automatic reload function doesn't work. And for some reason stopping and starting tomcat doesn't reload the classes in $CATALINA_HOME/classes either. Does anybody have any ideas what I am missing? I know it has to be something in the configuration, but I don't know what. Thanks in advance for the help!!! - Carey - -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Re: tomcat 3.3.1 - win2k iis
Do you have an environment variable set for CLASSPATH containing . ; %JAVA_HOME%\bin; %CATALINA_HOME%\common\lib\servlet.jar ? Schultz, Cecilia [EMAIL PROTECTED] wrote: Hi, I installed Tomcat 3.3.1 on win2k with IIS. Then I installed an a vendor's web app. When I bring up the vendor's login page, I get this error: === 2003-01-15 07:43:45 - webapps2:/i1440: Reading F:\i1440root\opt\i1440\webapps\i1440\WEB-INF\web.xml 2003-01-15 07:43:45 - webapps2:/i1440: Loading 1 InitServlet 2003-01-15 07:45:02 - webapps2:/i1440: Compiling: /login.jsp to login_0 2003-01-15 07:45:31 - webapps2:/i1440: compile error: req=R( /i1440 + /login.jsp + null) - org.apache.jasper.JasperException: Unable to compile F:\i1440root\opt\local\tomcat\work\webapps2\i1440\login_1.java:0: Class javax.servlet.http.HttpServlet not found in class com.g1440.naf.jdbc.view.ServletView. import javax.servlet.*; ^ F:\i1440root\opt\local\tomcat\work\webapps2\i1440\login_1.java:1: Package javax.servlet not found in import. import javax.servlet.*; ^ F:\i1440root\opt\local\tomcat\work\webapps2\i1440\login_1.java:2: Package javax.servlet.http not found in import. import javax.servlet.http.*; ^ F:\i1440root\opt\local\tomcat\work\webapps2\i1440\login_1.java:3: Package javax.servlet.jsp not found in import. import javax.servlet.jsp.*; ^ 4 errors at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source) at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source) at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source) at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:479) 2003-01-15 07:45:31 - webapps2:/i1440: Exception in R( /i1440 + /login.jsp + null) - org.apache.jasper.JasperException: Unable to compile F:\i1440root\opt\local\tomcat\work\webapps2\i1440\login_1.java:0: Class javax.servlet.http.HttpServlet not found in class com.g1440.naf.jdbc.view.ServletView. import javax.servlet.*; ^ F:\i1440root\opt\local\tomcat\work\webapps2\i1440\login_1.java:1: Package javax.servlet not found in import. import javax.servlet.*; ^ F:\i1440root\opt\local\tomcat\work\webapps2\i1440\login_1.java:2: Package javax.servlet.http not found in import. import javax.servlet.http.*; ^ F:\i1440root\opt\local\tomcat\work\webapps2\i1440\login_1.java:3: Package javax.servlet.jsp not found in import. import javax.servlet.jsp.*; ^ 4 errors at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source) at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source) at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source) at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:479) = (com.g1440.naf.jdbc.view.ServletView is the vendor's class) If I bring up a simple test1.jsp page, it comes ok. Does this mean that tomcat is all ok and this error is a vendor's specific error? Thanks Cecilia -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
RE: tomcat 3.3.1 - win2k iis- examples
Make sure you have all the correct environment variables, and also try to put the servlet.jar in the webApp's WEB-INF/lib folder if that doesn't work. Schultz, Cecilia [EMAIL PROTECTED] wrote: I tried running the jsp examples that comes with Tomcat and got the error: == Error: 500 Location: /examples/jsp/num/numguess.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile F:\i1440root\opt\local\tomcat\work\webapps2\examples\jsp\num\numguess_1.java:0: Class javax.servlet.http.HttpServlet not found in class org.apache.jasper.runtime.HttpJspBase. package jsp.num; ^ F:\i1440root\opt\local\tomcat\work\webapps2\examples\jsp\num\numguess_1.java:3: Package javax.servlet not found in import. import javax.servlet.*; ^ F:\i1440root\opt\local\tomcat\work\webapps2\examples\jsp\num\numguess_1.java:4: Package javax.servlet.http not found in import. import javax.servlet.http.*; ^ F:\i1440root\opt\local\tomcat\work\webapps2\examples\jsp\num\numguess_1.java:5: Package javax.servlet.jsp not found in import. import javax.servlet.jsp.*; ^ 4 errors at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source) at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source) at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source) at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:479) = what am I missing?? Thanks Cecilia -Original Message- From: Schultz, Cecilia Sent: Wednesday, January 15, 2003 10:45 AM To: 'Tomcat users list (E-mail)' Subject: RE: tomcat 3.3.1 - win2k iis It seems I am missing some path somewhere. I copied a web app that does work in another server (with another container, not tomcat) into the problem server. I got a similar error when bringing up the default page: Class javax.servlet.http.HttpServlet not found in class org.apache.jasper.runtime.HttpJspBase. any help is much appreciated Cecilia Error: 500 Location: /ranchodev/web/default.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile F:\i1440root\opt\local\tomcat\work\webapps2\ranchodev\web\_def ault_1.java:0: Class javax.servlet.http.HttpServlet not found in class org.apache.jasper.runtime.HttpJspBase. package web; ^ F:\i1440root\opt\local\tomcat\work\webapps2\ranchodev\web\_def ault_1.java:3: Package javax.servlet not found in import. import javax.servlet.*; ^ F:\i1440root\opt\local\tomcat\work\webapps2\ranchodev\web\_def ault_1.java:4: Package javax.servlet.http not found in import. import javax.servlet.http.*; ^ F:\i1440root\opt\local\tomcat\work\webapps2\ranchodev\web\_def ault_1.java:5: Package javax.servlet.jsp not found in import. import javax.servlet.jsp.*; ^ 4 errors at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source) at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source) at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source) at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Ajp13Interceptor.processConne ction(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( Unknown Source) at java.lang.Thread.run(Thread.java:479 -Original Message- From: Schultz, Cecilia Sent: Wednesday, January 15, 2003 9:56 AM To: Tomcat users list (E-mail) Subject: tomcat 3.3.1 - win2k iis Hi, I installed Tomcat 3.3.1 on win2k with IIS. Then I installed an a vendor's web app. When I bring up the vendor's login page, I get this error: === 2003-01-15 07:43:45 - webapps2:/i1440: Reading F:\i1440root\opt\i1440\webapps\i1440\WEB-INF\web.xml 2003-01-15 07:43:45 - webapps2:/i1440: Loading 1 InitServlet 2003-01-15 07:45:02 - webapps2:/i1440: Compiling: /login.jsp to login_0 2003-01-15 07:45:31 - webapps2:/i1440: compile error: req=R( /i1440 + /login.jsp + null) - org.apache.jasper.JasperException: Unable to compile F:\i1440root\opt\local\tomcat\work\webapps2\i1440\login_1.java :0: Class javax.servlet.http.HttpServlet not found in class com.g1440.naf.jdbc.view.ServletView. import javax.servlet.*; ^ F:\i1440root\opt\local\tomcat\work\webapps2\i1440\login_1.java :1: Package javax.servlet not found
IO Exception: Connection reset by peer: socket write error
Hi, I'm running an app from a remote location (Chicago) with a database located in New York. I know this is not by any means a recommended practice, however, it's for testing purposes. My question is why this is occuring? The application works fine, but if I try to access it after a little time has passed I get that exception thrown. What is the issue? How can I solve this? Thank you very much, Lior - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
RE: IO Exception: Connection reset by peer: socket write error
Right, sorry. Tomcat 4.0.5, using ajp13 connectors. This is a catalina log output for the error: 2003-01-15 08:05:54 HttpProcessor[8080][3] process.parse java.io.IOException: Couldn't read line at org.apache.catalina.connector.http.SocketInputStream.readRequestLine(SocketInputStream.java:235) at org.apache.catalina.connector.http.HttpProcessor.parseRequest(HttpProcessor.java:710) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:974) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125) at java.lang.Thread.run(Thread.java:479) This is the apache log file error: 2003-01-15 07:31:41 [org.apache.catalina.connector.warp.WarpConnector] Error accepting requests java.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463) at java.net.ServerSocket.implAccept(ServerSocket.java:238) at java.net.ServerSocket.accept(ServerSocket.java:217) at org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:590) at java.lang.Thread.run(Thread.java:479) Am I missing anything else...? Thanks Shapira, Yoav [EMAIL PROTECTED] wrote:Howdy, You're going to need to give us a lot more than that ;) What tomcat version, what connectors, full stack trace / log if possible, etc... ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 4:38 PM To: Tomcat Subject: IO Exception: Connection reset by peer: socket write error Hi, I'm running an app from a remote location (Chicago) with a database located in New York. I know this is not by any means a recommended practice, however, it's for testing purposes. My question is why this is occuring? The application works fine, but if I try to access it after a little time has passed I get that exception thrown. What is the issue? How can I solve this? Thank you very much, Lior - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
RE: IO Exception: Connection reset by peer: socket write error
Agreed on that one. However, back to the issue, this is not letting me log back in to the application. And, it's not throwing an exception in the filter that I have that gets/releases DB connections from a connection pool. When the application is run over in the same network as the DB there is no problem at all. Just when I run it from a different location it seems to act up in this manner. That's why I'm not quite sure. Turner, John [EMAIL PROTECTED] wrote: Never mind...I missed the part about the DB. *sigh* ...time for an after work beer. John -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 4:45 PM To: 'Tomcat Users List' Subject: RE: IO Exception: Connection reset by peer: socket write error Agreed, though in my experience connection reset by peer messages mean the browser/client has stopped accepting data from the server, for various reasons: timeouts, closing the browser window, etc. In most situations, they are harmless. John -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 4:41 PM To: Tomcat Users List Subject: RE: IO Exception: Connection reset by peer: socket write error Howdy, You're going to need to give us a lot more than that ;) What tomcat version, what connectors, full stack trace / log if possible, etc... ;) Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Open Source - Top 10 Security Vulnerabilities
Hello everyone, Just thought some people would like to see this, if they had not heard of it already. You can read the report on their site, as well as get the PDF form: http://www.owasp.org/ Lior - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Tomcat Accessing the Actual URL
Hello, I'm trying to have my webapp directly access a url rather than a virtual directory. I've tried to do this a couple of times, but it never worked out for me. I tried mapping the actual URL and naming the webapp the exact name of the site, but it didn't work out. Maybe I did something wrong, but was actually following the correct steps...I'm not sure. Can anyone please point me to a source where I can read up on this, or even show me some example of the implemented webapp. I currently have the http://www.domain.com/webApp implemented and would just like the server name to be accessed. I'm running Tomcat 4.0.5 on windows 2000 professional with IIS 5. I appreciate it, Thank you, Lior - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Re: Security Configuration in WEB.XML
Thank you Gary, I will check these links out. Have a happy new year. Gary Gwin [EMAIL PROTECTED] wrote:Lior, It looks like you have short-circuited Tomcat's security model and created your own. We have a Tomcat Security Overview and Analysis that might be of help at: http://www.cafesoft.com/products/cams/tomcat-security.html You might also reference the security section of the the servlet JSR: http://www.jcp.org/aboutJava/communityprocess/first/jsr053/ Gary Lior Shliechkorn wrote: Hello, I'm a bit confused about the whole security implementation in Tomcat. I'm using a webapp that has a Login.html page that posts information to a servlet that queries a database to authenticate the user. The values are then set into a bean, and each page checks the existance of the bean in order to enter that page. If I want to add additional security, what would I do in the WEB.XML page in order to have it secured by tomcat? Thanks, Lior - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -- Gary Gwin http://www.cafesoft.com * * * * The Cafesoft Access Management System, Cams, is security * * software that provides single sign-on authentication and * * centralized access control for Apache, Tomcat, and custom * * resources. * * * * -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Security Configuration in WEB.XML
Hello, I'm a bit confused about the whole security implementation in Tomcat. I'm using a webapp that has a Login.html page that posts information to a servlet that queries a database to authenticate the user. The values are then set into a bean, and each page checks the existance of the bean in order to enter that page. If I want to add additional security, what would I do in the WEB.XML page in order to have it secured by tomcat? Thanks, Lior - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
RE: Tomcat Hangs and cannot be shut down
Thanks Yoav, I don't think it's a problem with the code in my application because the pages work fine and the code in the pages gets executed without problems before hand. From time to time, when I press on a link to access a page the browser starts thinking...thinking...it never really breaks for a while either. pThen a little while later, after letting everything sit untouched for a while I shutdown the sever and Tomcat goes down clean without exceptions and starts up ok. Then after that, back to way it was before. pThanks, Lior - Do you Yahoo!? HotJobs - Search new jobs daily now
Tomcat Hangs and cannot be shut down
Tomcat, from time to time, starts processing and locks into some loop or something. I don't know what is happening, and that is the best way I can explain it. After noticing that the JSP do not get served and IE just waits and waits, I try to Shutdown Tomcat and I get an exception. java.net.ConnectException: Connection refused: connect ... This happens for a while and then when the session is terminated, I believe, then everything goes back to the way it was before and works fine. Can someone explain what is exactly might happening here? Is there a way to force the shutdown of Tomcat? Thank you for your time, Lior - Do you Yahoo!? HotJobs - Search new jobs daily now
Session Timeout Configuration
Hello, I'm trying to monitor the sessions of users using the app. I want to be able to distinguish between a user logging out and a session being timed out. I tried using the HttpSessionBindingListener and it's not ideal for redirecting requests back to the user (since the session is terminated as well as the request). I was told that I can have Tomcat intercept the session timeout and redirect the user to maybe a timedout.html page. Is this true? Can I configure Tomcat to handle the session, so let's just say 30 seconds before the session times out the client gets redirected to a page where he can choose to login again? Thanks, Lior - Do you Yahoo!? HotJobs - Search new jobs daily now
Not finding webapp
Hello, My question seems to have moved past my having Tomcat installed on windows2k. I'm not sure how to configure the mapping in Tomcat to captuer a whole website URL. So when it looks in the uriworkermap it would find /www.url.com and know to redirect any jsp/servlets from that url over to Tomcat. Now the way I have it set up is that it has a context with path=/www.url.com and docbase=www.url.com. I set up a directory under webapps with the name www.url.com. When starting Tomcat it loads the invoker etc. from that directory's WEB-INF and everything is working ok as far as that goes. However, when it maps the URL I get the following output in the log file for the redirect: [Wed Oct 23 11:18:11 2002] [jk_isapi_plugin.c (626)]: HttpFilterProc started [Wed Oct 23 11:18:11 2002] [jk_isapi_plugin.c (672)]: In HttpFilterProc Virtual Host redirection of /www.url.com/index.jsp [Wed Oct 23 11:18:11 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Oct 23 11:18:11 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/www.url.com/index.jsp' [Wed Oct 23 11:18:11 2002] [jk_uri_worker_map.c (416)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp [Wed Oct 23 11:18:11 2002] [jk_uri_worker_map.c (416)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp ** *[Wed Oct 23 11:18:11 2002] [jk_isapi_plugin.c (688)]: HttpFilterProc [/index.jsp] is a servlet url - should redirect to ajp13 *[Wed Oct 23 11:18:11 2002] [jk_isapi_plugin.c (737)]: HttpFilterProc check if [/index.jsp] is points to the web-inf directory *** [Wed Oct 23 11:18:11 2002] [jk_isapi_plugin.c (777)]: HttpExtensionProc started [Wed Oct 23 11:18:11 2002] [jk_worker.c (123)]: Into wc_get_worker_for_name ajp13 [Wed Oct 23 11:18:11 2002] [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker [Wed Oct 23 11:18:11 2002] [jk_isapi_plugin.c (799)]: HttpExtensionProc got a worker for name ajp13 [Wed Oct 23 11:18:11 2002] [jk_ajp13_worker.c (865)]: Into jk_worker_t::get_endpoint [Wed Oct 23 11:18:11 2002] [jk_ajp13_worker.c (775)]: Into jk_endpoint_t::service [Wed Oct 23 11:18:11 2002] [jk_ajp13.c (403)]: Into ajp13_marshal_into_msgb [Wed Oct 23 11:18:11 2002] [jk_ajp13.c (537)]: ajp13_marshal_into_msgb - Done [Wed Oct 23 11:18:11 2002] [jk_ajp13_worker.c (206)]: sending to ajp13 #321 [Wed Oct 23 11:18:11 2002] [jk_ajp13_worker.c (614)]: Error sending request try another pooled connection [Wed Oct 23 11:18:11 2002] [jk_connect.c (108)]: Into jk_open_socket [Wed Oct 23 11:18:11 2002] [jk_connect.c (115)]: jk_open_socket, try to connect socket = 2656 [Wed Oct 23 11:18:11 2002] [jk_connect.c (124)]: jk_open_socket, after connect ret = 0 [Wed Oct 23 11:18:11 2002] [jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on [Wed Oct 23 11:18:11 2002] [jk_connect.c (140)]: jk_open_socket, return, sd = 2656 [Wed Oct 23 11:18:11 2002] [jk_ajp13_worker.c (189)]: In jk_endpoint_t::connect_to_tomcat, connected sd = 2656 [Wed Oct 23 11:18:11 2002] [jk_ajp13_worker.c (206)]: sending to ajp13 #321 [Wed Oct 23 11:18:11 2002] [jk_ajp13_worker.c (645)]: send_request 2: request body to send 0 - request body to resend 0 [Wed Oct 23 11:18:11 2002] [jk_ajp13_worker.c (258)]: received from ajp13 #31 [Wed Oct 23 11:18:11 2002] [jk_ajp13.c (584)]: ajp13_unmarshal_response: status = 404 [Wed Oct 23 11:18:11 2002] [jk_ajp13.c (591)]: ajp13_unmarshal_response: Number of headers is = 1 [Wed Oct 23 11:18:11 2002] [jk_ajp13.c (634)]: ajp13_unmarshal_response: Header[0] [Content-Type] = [text/html] [Wed Oct 23 11:18:11 2002] [jk_isapi_plugin.c (415)]: Into jk_ws_service_t::start_response [Wed Oct 23 11:18:11 2002] [jk_ajp13_worker.c (258)]: received from ajp13 #607 [Wed Oct 23 11:18:11 2002] [jk_isapi_plugin.c (549)]: Into jk_ws_service_t::write [Wed Oct 23 11:18:11 2002] [jk_ajp13_worker.c (258)]: received from ajp13 #2 [Wed Oct 23 11:18:11 2002] [jk_isapi_plugin.c (811)]: HttpExtensionProc service() returned OK [Wed Oct 23 11:18:11 2002] [jk_ajp13_worker.c (549)]: Into jk_endpoint_t::done So you can see in the area I highlighted with * that it's looking in the ROOT directory for the index file instead of looking in the /webapps/www.url.com directory. I have tried a lot of combinations and it's not working out. Anyone have any ideas? Thanks, Lior - Do you Yahoo!? Y! Web Hosting - Let the expert host your web site
Tomcat Connection Pooling
Can someone please send me a link for reading information about Tomcat connection pooling? Thanks, lior - Do you Yahoo!? Y! Web Hosting - Let the expert host your web site
Re: Where can I download isapi_redirect.dll
You can get the filter here: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/win32/i386/ Lior - Do you Yahoo!? Y! Web Hosting - Let the expert host your web site
RE: Tomcat Connection Pooling
Is this feature is not available for tomcat 4.0.5? Steltner, Jorn HTC/DE/ESS [EMAIL PROTECTED] wrote:Have a look at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how to.html -Original Message- From: Lior Shliechkorn [mailto:liorshliech;yahoo.com] Sent: Dienstag, 22. Oktober 2002 16:55 To: Tomcat Subject: Tomcat Connection Pooling Can someone please send me a link for reading information about Tomcat connection pooling? Thanks, lior - Do you Yahoo!? Y! Web Hosting - Let the expert host your web site -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Y! Web Hosting - Let the expert host your web site
Re: iis_redirect.log file help
You don't have to delete it, you can truncate it. Hightlight the text and delete and then just overwrite. That should work. I was running into the same problem. I don't think it matters whether Tomcat is on or not. Hope it helps, Lior - Do you Yahoo!? Y! Web Hosting - Let the expert host your web site
URI mapping looks in root not webapp
Hello, I'm using IIS 5 and Win2000 server. I'm trying to have a url of a website mapped directly to a webapp www.xxx.com --- c:\tomcat\webapp\AppName I tested the webapp normally under localhost and it works fine. I packed all the utility classes and the web.xml file is created. The directory structure is as required as well. I'm getting strange results though. The redirect log finds the mapping that I created in the URIWORKERMAP.PROP file /www.xxx.com/*.jsp=ajp13 and a worker is created to take on that request. However, it looks in the ROOT folder instead of looking at the AppName folder that I created. If I add the examples virtual directory it works fine and I see that there is a match with the uri mapping and it looks like this: http://www.xxx.com/examples/jsp/num/numguess.jps -- one of the lines in the log looks like the one below HttpFilterProc [/examples/jsp...] is a The page is fetched and working fine. Now when I go to the regular URL I get a page is not available: http://www.xxx.com/index.jsp HttpFilterProc [/index.jsp] is a servlet ... So it's looking in the root instead of in the AppName. Can anyone help me with this issue? I'm not sure what I can do to resolve that. Thanks, Lior - Do you Yahoo!? Y! Web Hosting - Let the expert host your web site
Session Time out - Tomcat
When Tomcat times a session out, as instructed in the web.xml, is there a way to capture that so a page can be displayed that the session has timed out, or even prompt the user if he would like to continue being logged on? Thanks, Lior - Do you Yahoo!? Y! Web Hosting - Let the expert host your web site
Securing servlets in an application
function SetDomain(d) { document.domain = d; }Hi, I need help in adding some extra security to the login servlet for my application. I wanted to know how I can secure servlets without having to declare realms in Tomcat. I have a login page that posts to a servlet, and I want to make that servlet secure? The checking for user and password is performed by a database, and from what I understood realms that are created prompt a user for information once entering a secure area. Where can I read more information about security, and what suggestions might you have for me to implement. Thanks - Do you Yahoo!? Y! Web Hosting - Let the expert host your web site
Re: Ok people
Thanks Greg. You're right, much of the organization of the documentation leaves my head spinning. And it's not exactly in terms where one who first approaches the software can just sit and configure and run wild with it. I never came to waste people's time, but I don't know where to look a lot of the time. And sites off of search engines are usually a maze themselves. Many people have been a great and tremendous source of help that allowed me to leave the office and go home before the witching hour on this user list. As well as making the severe headaches this software can provide subside. It's good to know that I have the support of people such as youself. It definitely helps get a good start on learning what I need to move ahead. Thanks. Greg Bullough [EMAIL PROTECTED] wrote:At 12:22 PM 10/17/02 -0700, Lior Shliechkorn wrote: Limited knowledge, and often confusion, doesn't attribute to questions being asked in the same way that you, who have that knowledge, would like things phrased. I don't need people to gang up on me and tell me that I'm being rude and arrogant in the way I ask things What Lior has underlined, and what we really should take to heart, is the manner in which the Open Source movement is occasionally its own worst enemy. Let's face it...the documentation is often nonexistent, out of date, or generally awful. Tomcat is a beautiful thing...with ugly docs that merit the forgoing criticisms. Now to be fair, I can't blame anyone for not writing docs for free. After all, one of the FEW ways to make money in Open Source is to write for O'Reilly or Que or whomever. But of course you can't do that when the target is moving really really fast. Or not effectively anyway. I also can't blame them because *I* haven't done it, and so I don't get to bitch too loud :-) And some fine folks already have exceeded the call of duty by giving us, I say GIVING us Tomcat! But look at where the jakarta.apache.com points us to for FAQs...jguru.com, which is a for-pay site! That's just a bad strategy, when there are so many nice FAQ hosting packages available under the CopyLeft. Dumb little things, like 'don't use the RPMs,' the explanation which a couple of guys here gave me for my teething troubles, can consume a lot of time. They ate a day of mine. I admit, I hesitated about posting what seemed to me to be a dumb question here, for fear of getting into a flame-war when someone might say 'RTFM.' The alternatives, like Cold Fusion, have kick-ass documentation, both with the server and written by a few supporters of the platform. The reason that CF has been so successful...and is apt to fail now...is because it early on gave software developers what they wanted to build things quickly, easily, and in a way they could make a good living. Since Macromedia is falling down on that 'give the developers what they want' measure, there's an opportunity for the combination of Tomcat and the Jakarta classes/tags to sieze a big chunk of that following. This stuff *is* kind of hard to get going on. Without well-organize docs, it's REALLY hard. When the next thing is that someone slaps you around for asking what they regard as a 'dumb' question, well it doesn't do much for the proliferation of the platform. Greg -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
Ok people
Listen, I admit that I may have asked questions that some may not have understood ( I did get help and I'm not overlooking that). I'm here for the same reason we all are. I need help with some things, and maybe when I gain enough experience and knowledge I will be able to return the favor. Limited knowledge, and often confusion, doesn't attribute to questions being asked in the same way that you, who have that knowledge, would like things phrased. I don't need people to gang up on me and tell me that I'm being rude and arrogant in the way I ask things (and been riding me every chance that specific person got), or refer me to idiots guide to asking questions. It's not fair and I'm not going to be discouraged by that kind of initimidation. You have my apologies, Lior - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
IllegalStateException Error
I'm trying to do some checking on my pages that make sure that the user logged out and all the attributes that were bounded to the session were destroyed (using session.invalidate() in the logout page). However, I'm running into difficulties with 1 of my pages. The check works fine on all the other pages except this one. I try to response.sendRedirect() the page to the login page again, but it seems to ignore it and I get errors that I can't forward after a response has been committed. And other times it logs the user right back in as if nothing happened after the user logged out...it's only with this one page. here's the code. I'm not sure what could be wrong: % page session=true % % page contentType=text/html;charset=WINDOWS-1252 % % page import = java.util.*, java.sql.*, java.util.Vector.* % jsp:useBean id=pool class=ConnectionPool scope=application / % response.setHeader(pragma, no-cache); response.setHeader(Cache-Control, no-cache); response.setHeader(Expires, 0); Connection conn = null; String asql = null; Statement stmt = null; ResultSet rs = null; String aUserID = null; String aPassword = null; try { FB user = (FB) session.getAttribute(bean); //*** // FormBean Exists //*** if (user != null) { aUserID = user.getUSER_ID(); aPassword = user.getPASSWORD(); } //*** // No session bean exists //*** else { response.sendRedirect(../html/ReLogin.html); } // // INITIALIZE THE POOL // if (pool.getDriver() == null) { pool.init(); pool.initializePool(); } boolean aloginflag = false; conn = pool.getConnection(); stmt = conn.createStatement(); asql = getSqlStatement(); System.out.println(asql); String accesscode = null; rs = stmt.executeQuery(asql); while (rs.next()) { aloginflag = true; System.out.println(Login successful!); accesscode = rs.getString(ACCESS_CODE); user.setACCESSCODE(accesscode); System.out.println(accesscode); } // end while if(aloginflag) {} else { % jsp:forward page=../html/LoginError.html/jsp:forward % } if (accesscode.equalsIgnoreCase(B)) { % jsp:forward page=daily.jsp/jsp:forward % } // end if else if (accesscode.equalsIgnoreCase(C)) { % jsp:forward page=report2.jsp/jsp:forward % } // end else if else if (accesscode.equalsIgnoreCase(G)) { % jsp:forward page=report.jsp/jsp:forward % } // end else if else if (accesscode.equalsIgnoreCase(U)) { % jsp:forward page=news.jsp/jsp:forward % } // end else if else { System.out.println(No account found in the database!); response.sendRedirect(../html/LoginError.html); } // end else } catch(SQLException e) { // Login SQL Error! response.sendRedirect(../html/LoginError.html); } catch(ClassNotFoundException e) { // Classname Error! response.sendRedirect(../html/DBConnError.html); } finally { try { if (stmt != null) stmt.close(); if (rs != null) rs.close(); if (conn != null ) pool.releaseConnection(conn); } catch (Exception sqlex) { response.sendRedirect(../html/LoginError.html); } } % I find that it totally disregards the lines after the TRY statement and even after I log out I can still see that when I hit the back button it process the sql query and doesn't redirect. I tried to change the else (after the aloginflag) to a response.sendRedirect() and the page breaks... What am I doing wrong? Thanks, Lior - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
How come no one's is replying
I've been posting messages and I see other people picking up other people's requests for help and no one pays any attention to mine. - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
RE: Ok people
It came at a very bad time, where I wasn't feeling to much love from the user list. But I will look into it as I said. Sexton, George [EMAIL PROTECTED] wrote:It's not a guide for idiots and it's not supposed to be an insult. It is supposed to help you get your questions answered by teaching you how to ask the right questions. George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com -Original Message- From: Lior Shliechkorn [mailto:liorshliech;yahoo.com] Sent: 17 October, 2002 1:22 PM To: Tomcat Subject: Ok people Listen, I admit that I may have asked questions that some may not have understood ( I did get help and I'm not overlooking that). I'm here for the same reason we all are. I need help with some things, and maybe when I gain enough experience and knowledge I will be able to return the favor. Limited knowledge, and often confusion, doesn't attribute to questions being asked in the same way that you, who have that knowledge, would like things phrased. I don't need people to gang up on me and tell me that I'm being rude and arrogant in the way I ask things (and been riding me every chance that specific person got), or refer me to idiots guide to asking questions. It's not fair and I'm not going to be discouraged by that kind of initimidation. You have my apologies, Lior - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
RE: IllegalStateException Error
The return works. Thanks. I still really don't understand what was happening that it was committing the response. It was giving me a java.lang.IllegalStateException : cannot forward response has been committed... And it only gives me this error on this page...the other pages have the same exact code with checking the session beans and it works. Strange. Cox, Charlie [EMAIL PROTECTED] wrote:ok, several problems here: 1. place a 'return;' after your sendRedirect() 2. remove unintended whitespace from your jsp: change % to % 3. post your error messages with stack trace. I happen to recognize 'response already committed', but others may not. 4. search the archives: http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/ Illegalstateexception returns many hits and 'response already committed' returns more specific to your problem. These will probably give you more detail than I can remember right now. #3 and #4 will help you get an answer quicker. Please also remember that not everyone gets to all messages on the list within the 3 hours that you have allowed. Charlie -Original Message- From: Lior Shliechkorn [mailto:liorshliech;yahoo.com] Sent: Thursday, October 17, 2002 12:12 PM To: Tomcat Subject: IllegalStateException Error I'm trying to do some checking on my pages that make sure that the user logged out and all the attributes that were bounded to the session were destroyed (using session.invalidate() in the logout page). However, I'm running into difficulties with 1 of my pages. The check works fine on all the other pages except this one. I try to response.sendRedirect() the page to the login page again, but it seems to ignore it and I get errors that I can't forward after a response has been committed. And other times it logs the user right back in as if nothing happened after the user logged out...it's only with this one page. here's the code. I'm not sure what could be wrong: response.setHeader(pragma, no-cache); response.setHeader(Cache-Control, no-cache); response.setHeader(Expires, 0); Connection conn = null; String asql = null; Statement stmt = null; ResultSet rs = null; String aUserID = null; String aPassword = null; try { FB user = (FB) session.getAttribute(bean); //*** // FormBean Exists //*** if (user != null) { aUserID = user.getUSER_ID(); aPassword = user.getPASSWORD(); } //*** // No session bean exists //*** else { response.sendRedirect(../html/ReLogin.html); } // // INITIALIZE THE POOL // if (pool.getDriver() == null) { pool.init(); pool.initializePool(); } boolean aloginflag = false; conn = pool.getConnection(); stmt = conn.createStatement(); asql = getSqlStatement(); System.out.println(asql); String accesscode = null; rs = stmt.executeQuery(asql); while (rs.next()) { aloginflag = true; System.out.println(Login successful!); accesscode = rs.getString(ACCESS_CODE); user.setACCESSCODE(accesscode); System.out.println(accesscode); } // end while if(aloginflag) {} else { % } if (accesscode.equalsIgnoreCase(B)) { % } // end if else if (accesscode.equalsIgnoreCase(C)) { % } // end else if else if (accesscode.equalsIgnoreCase(G)) { % } // end else if else if (accesscode.equalsIgnoreCase(U)) { % } // end else if else { System.out.println(No account found in the database!); response.sendRedirect(../html/LoginError.html); } // end else } catch(SQLException e) { // Login SQL Error! response.sendRedirect(../html/LoginError.html); } catch(ClassNotFoundException e) { // Classname Error! response.sendRedirect(../html/DBConnError.html); } finally { try { if (stmt != null) stmt.close(); if (rs != null) rs.close(); if (conn != null ) pool.releaseConnection(conn); } catch (Exception sqlex) { response.sendRedirect(../html/LoginError.html); } } % I find that it totally disregards the lines after the TRY statement and even after I log out I can still see that when I hit the back button it process the sql query and doesn't
Re: Ok people
I know. I'm not saying that I'm not at fault. My approach about the whole thing was wrong. At least initially. But when I asked why wasn't anyone replying to my post I made sure I had as much of the information in the post that I could provide (where I asked about the IllegalStateException). Aryeh Katz [EMAIL PROTECTED] wrote: Limited knowledge, and often confusion, doesn't attribute to questions being asked in the same way that you, who have that knowledge, would like things phrased. I don't need people to gang up on me and tell me that I'm being rude and arrogant in the way I ask things (and been riding me every chance that specific person got), or refer me to idiots guide to asking questions. It's not fair and I'm not going to be discouraged by that kind of initimidation. I just looked at one of your unanswered posts. Even though I'm not expert, I can tell you why it wasn't answered. You mentioned that you couldn't get iis 4 to speak to tomcat, and asked to help figure out why. There was no information in that post as to why it fails. Nobody can see why it's failing. Assuming you've followed everything at http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html regarding IIS, nobody has any way of knowing WHY it's not working. So what do you expect people to do? --- Aryeh Katz VASCO www.vasco.com -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
Thanks George
Will do my best... - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
RE: How come no one's is replying
John, John, We don't need to get into this again...I understand your need to have everything your way and it's not that I don't appreciate what people had done to assist (or try to assist). However, I'm not asking the same complex questions that I see others ask, being that I am very new to this and don't understand much of the complexities and strict rules that Tomcat requires. In order not to hear from you the way I usually do I even included my code with the e-mail...and being that I am a nice person I will refrain from using certain words which I am sure you can sense are underlying much of what I'm saying. So if you feel the need to skip over my inquiries feel free to do so. Take care, and thanks for your efforts of trying to moderate posts to your liking. Turner, John [EMAIL PROTECTED] wrote: Now come on, are we going to have this conversation again? As I recall, several people, me included, spent a considerable amount of time answering your questions earlier this week. Did you ever consider that perhaps people don't have the answer, and don't want to waste your time (or their's) sending you on a wild goose chase? John -Original Message- From: Lior Shliechkorn [mailto:liorshliech;yahoo.com] Sent: Thursday, October 17, 2002 2:38 PM To: Tomcat Subject: How come no one's is replying I've been posting messages and I see other people picking up other people's requests for help and no one pays any attention to mine. - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
Re: Ok people
I think you have a great idea yoom! yoom nguyen [EMAIL PROTECTED] wrote:Bravo guys, my proposal with some organization could be a solution to our problems here. Yoom - Original Message - From: Lior Shliechkorn Date: Thursday, October 17, 2002 4:48 pm Subject: Re: Ok people Thanks Greg. You're right, much of the organization of the documentation leaves my head spinning. And it's not exactly in terms where one who first approaches the software can just sit and configure and run wild with it. I never came to waste people's time, but I don't know where to look a lot of the time. And sites off of search engines are usually a maze themselves. Many people have been a great and tremendous source of help that allowed me to leave the office and go home before the witching hour on this user list. As well as making the severe headaches this software can provide subside. It's good to know that I have the support of people such as youself. It definitely helps get a good start on learning what I need to move ahead. Thanks. Greg Bullough wrote:At 12:22 PM 10/17/02 - 0700, Lior Shliechkorn wrote: Limited knowledge, and often confusion, doesn't attribute to questions being asked in the same way that you, who have that knowledge, would like things phrased. I don't need people to gang up on me and tell me that I'm being rude and arrogant in the way I ask things What Lior has underlined, and what we really should take to heart, is the manner in which the Open Source movement is occasionally its own worst enemy. Let's face it...the documentation is often nonexistent, out of date, or generally awful. Tomcat is a beautiful thing...with ugly docs that merit the forgoing criticisms. Now to be fair, I can't blame anyone for not writing docs for free. After all, one of the FEW ways to make money in Open Source is to write for O'Reilly or Que or whomever. But of course you can't do that when the target is moving really really fast. Or not effectively anyway. I also can't blame them because *I* haven't done it, and so I don't get to bitch too loud :-) And some fine folks already have exceeded the call of duty by giving us, I say GIVING us Tomcat! But look at where the jakarta.apache.com points us to for FAQs...jguru.com, which is a for-pay site! That's just a bad strategy, when there are so many nice FAQ hosting packages available under the CopyLeft. Dumb little things, like 'don't use the RPMs,' the explanation which a couple of guys here gave me for my teething troubles, can consume a lot of time. They ate a day of mine. I admit, I hesitated about posting what seemed to me to be a dumb question here, for fear of getting into a flame-war when someone might say 'RTFM.' The alternatives, like Cold Fusion, have kick-ass documentation, both with the server and written by a few supporters of the platform. The reason that CF has been so successful...and is apt to fail now...is because it early on gave software developers what they wanted to build things quickly, easily, and in a way they could make a good living. Since Macromedia is falling down on that 'give the developers what they want' measure, there's an opportunity for the combination of Tomcat and the Jakarta classes/tags to sieze a big chunk of that following. This stuff *is* kind of hard to get going on. Without well- organize docs, it's REALLY hard. When the next thing is that someone slaps you around for asking what they regard as a 'dumb' question, well it doesn't do much for the proliferation of the platform. Greg -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
IllegalStateException...
I'm trying to do some checking on my pages that make sure that the user logged out and all the attributes that were bounded to the session were destroyed (using session.invalidate() in the logout page). However, I'm running into difficulties with 1 of my pages. The check works fine on all the other pages except this one. I try to response.sendRedirect() the page to the login page again, but it seems to ignore it and I get errors that I can't forward after a response has been committed. And other times it logs the user right back in as if nothing happened after the user logged out...it's only with this one page. here's the code. I'm not sure what could be wrong: % page session=true % % page contentType=text/html;charset=WINDOWS-1252 % % page import = java.util.*, java.sql.*, java.util.Vector.* % jsp:useBean id=pool class=ConnectionPool scope=application / % response.setHeader(pragma, no-cache); response.setHeader(Cache-Control, no-cache); response.setHeader(Expires, 0); Connection conn = null; String asql = null; Statement stmt = null; ResultSet rs = null; String aUserID = null; String aPassword = null; try { FB user = (FB) session.getAttribute(bean); //*** // FormBean Exists //*** if (user != null) { aUserID = user.getUSER_ID(); aPassword = user.getPASSWORD(); } //*** // No session bean exists //*** else { response.sendRedirect(../html/ReLogin.html); } // // INITIALIZE THE POOL // if (pool.getDriver() == null) { pool.init(); pool.initializePool(); } boolean aloginflag = false; conn = pool.getConnection(); stmt = conn.createStatement(); asql = getSqlStatement(); System.out.println(asql); String accesscode = null; rs = stmt.executeQuery(asql); while (rs.next()) { aloginflag = true; System.out.println(Login successful!); accesscode = rs.getString(ACCESS_CODE); user.setACCESSCODE(accesscode); System.out.println(accesscode); } // end while if(aloginflag) {} else { % jsp:forward page=../html/LoginError.html/jsp:forward % } if (accesscode.equalsIgnoreCase(B)) { % jsp:forward page=daily.jsp/jsp:forward % } // end if else if (accesscode.equalsIgnoreCase(C)) { % jsp:forward page=report2.jsp/jsp:forward % } // end else if else if (accesscode.equalsIgnoreCase(G)) { % jsp:forward page=report.jsp/jsp:forward % } // end else if else if (accesscode.equalsIgnoreCase(U)) { % jsp:forward page=news.jsp/jsp:forward % } // end else if else { System.out.println(No account found in the database!); response.sendRedirect(../html/LoginError.html); } // end else } catch(SQLException e) { // Login SQL Error! response.sendRedirect(../html/LoginError.html); } catch(ClassNotFoundException e) { // Classname Error! response.sendRedirect(../html/DBConnError.html); } finally { try { if (stmt != null) stmt.close(); if (rs != null) rs.close(); if (conn != null ) pool.releaseConnection(conn); } catch (Exception sqlex) { response.sendRedirect(../html/LoginError.html); } } % I find that it totally disregards the lines after the TRY statement and even after I log out I can still see that when I hit the back button it process the sql query and doesn't redirect. I tried to change the else (after the aloginflag) to a response.sendRedirect() and the page breaks... What am I doing wrong? Thanks, Lior - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
IIS and servlets
I have managed to get mostly everything working between IIS and Tomcat. I changed the worker.prop file to the following: # # general stuff # workers.tomcat_home=c:\tomcat workers.java_home=c:\jdk1.3.1_04 ps=\ # # workers list # worker.list=ajp12, ajp13 # # ajp12 communicates on port 8007 # worker.ajp12.port=8007 worker.ajp12.host=www.domain.com worker.ajp12.type=ajp12 worker.ajp12.lbfactor=1 # # ajp13 connector communicating on port 8009 # worker.ajp13.port=8009 worker.ajp13.host=www.domain.com worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 # # load balancing # worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13, ajp12 # # The JVM that we are about to use # worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll # # Setting the place for the stdout and stderr of tomcat # worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr I created a virtual directory under IIS for the webapp, and can access the files from the web. However, I'm not sure what to do about servlets. I tried to have the servlet work from a bunch of different URL combinations /webapp/servlet/Serv, or http://www.domain.com/webapp/servlet/Serv, or /servlet/Serv. I'm not sure what to do because it doesn't work. The log file tells me that it found a mapping and that it is being redirected to ajp13, but the page is not found on the browser. Any help is appreciated. Thanks. - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
Can anyone please help Tomcat / IIS
This is my first time trying this thing out and I'm getting there slowly...I'm working on this almost 2 weeks now. I have localhost working on the JSP's and not the HTML's and I want to access the webapp from the outside using the URL to my domain name. Can anyone please help. I will include everything once I get a reply. I've done it twice now without anything. At this point I don't know what else to do. Thanks, Lior - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
Tomcat 4.0.5 / IIS 5
I'm trying to set up Tomcat to work with IIS 5 on windows 2000 server. I got everything working fine locally. I deployed my app and it's working fine on localhost:8080. Now I want to be able to see it from the outside and some files that I try to view from my domain come up with the actual source code. I ran with several tutorials that keep saying Hey, you did it...it's was so easy wasn't it? and they don't say anything when it all goes wrong. No one goes the extra step to help out when these easy instructions do nothing. I'm looking at this for far too long now and I'm losing my mind slowly. I have IIS running and restarted it with jakarta virtual directory that has a green arrow up for the ISAPI redirector. But localhost doesn't find the pages. So I'm not sure what could be wrong. I set up the context for the inetpub/wwwroot with the path / instead of the root context. I'm having a lot of trouble with the workers.properties and uriworkermap.properties files. If anyone could help me with that it would be great. I also tried to get tomcat to service jsp files and IIS everything else (static HTML content), but still nothing. Thanks in advance, Lior - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
RE: Tomcat 4.0.5 / IIS 5
I do apologize for the way that post was written. It's not easy to convey sincere requests for assistance with type. After 4 days of looking at this...I just feel that I might be close to solving this problem. Why would I come on this list to offer rude and arrogant remarks when I try to find help from people that I know do not have to help and are offering their expertise and time to help others. Now that we have that out of the way, I hope you see my side of the story a bit more clearly. Thanks. Turner, John [EMAIL PROTECTED] wrote: -Original Message- From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 10:48 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.0.5 / IIS 5 ...snip... I ran with several tutorials that keep saying Hey, you did it...it's was so easy wasn't it? and they don't say anything when it all goes wrong. No one goes the extra step to help out when these easy instructions do nothing. I'm looking at this for far too long now and I'm losing my mind slowly. Rude and arrogant. Don't expect much help making comments like that...this list is filled with people who go out of their way to help people having problems. I've seen threads where more than one person is leading someone through a process step-by-step, and have personally experienced the frustration of trying to help someone step-by-step after they've bleated for help, only to have them disappear or ignore advice and suggestions. If there's anyone out there willing to help you, it might help _them_ if you posted: 1) WHICH easy tutorials you followed...just because they are on the net doesn't mean they are any good 2) relevant snippets of log files 3) your properties files Have a great day. If I used IIS, I might be inclined to help you out, but then again, I might not. John -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
Re: Tomcat 4.0.5 / IIS 5
Did you setup the ajp13 connector in the tomcat server.xml file? I uncommented it as I saw in a tutorial in one of the recent posts. I see that I have the isapi_redirect log in the tomcat\logs directory but it's empty. What should the worker.properties file contain? Maybe I have it wrong. This is what I have: workers.tomcat_home=c:\tomcat workers.java_home=c:\jdk1.3.1_04 ps=/ worker.list = worker1 worker.worker1.type = ajp13 worker.worker1.host = localhost worker.worker1.port = 8009 and the uriworkermap.prop: /*.jsp=worker1 /examples/*.jsp=worker1 /examples/servlet/*=worker1 But when I go to http://localhost/examples I get that the page cannot be found. thanks, Lior - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
RE: Tomcat 4.0.5 / IIS 5
Yes, I went to regedit and checked. It was all there. Ok, there's something I see now. The log file for isapi_redirect.log has this in there now: [Tue Oct 15 11:26:10 2002] [jk_uri_worker_map.c (416)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match worker1 - *.jsp [Tue Oct 15 11:26:10 2002] [jk_isapi_plugin.c (617)]: HttpFilterProc [/examples/jsp/num/numguess.jsp] is a servlet url - should redirect to worker1 [Tue Oct 15 11:26:10 2002] [jk_isapi_plugin.c (639)]: HttpFilterProc check if [/examples/jsp/num/numguess.jsp] is points to the web-inf directory [Tue Oct 15 11:26:10 2002] [jk_isapi_plugin.c (679)]: HttpExtensionProc started [Tue Oct 15 11:26:10 2002] [jk_worker.c (123)]: Into wc_get_worker_for_name worker1 [Tue Oct 15 11:26:10 2002] [jk_worker.c (127)]: wc_get_worker_for_name, done did not found a worker [Tue Oct 15 11:26:10 2002] [jk_isapi_plugin.c (701)]: HttpExtensionProc could not get a worker for name worker1 [Tue Oct 15 11:26:10 2002] [jk_isapi_plugin.c (722)]: HttpExtensionProc error, could not get a worker for name worker1 Why could it not get the worker1? This is very exciting. Thanks. Turner, John [EMAIL PROTECTED] wrote: The files look pretty good. Have you added the necessary registry keys? John -Original Message- From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 11:18 AM To: Tomcat Users List Subject: Re: Tomcat 4.0.5 / IIS 5 Did you setup the ajp13 connector in the tomcat server.xml file? I uncommented it as I saw in a tutorial in one of the recent posts. I see that I have the isapi_redirect log in the tomcat\logs directory but it's empty. What should the worker.properties file contain? Maybe I have it wrong. This is what I have: workers.tomcat_home=c:\tomcat workers.java_home=c:\jdk1.3.1_04 ps=/ worker.list = worker1 worker.worker1.type = ajp13 worker.worker1.host = localhost worker.worker1.port = 8009 and the uriworkermap.prop: /*.jsp=worker1 /examples/*.jsp=worker1 /examples/servlet/*=worker1 But when I go to http://localhost/examples I get that the page cannot be found. thanks, Lior -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
Tomcat IIS Worker problem
I'm getting the following error in the isapi_redirect.log file: [Tue Oct 15 12:34:16 2002] [jk_isapi_plugin.c (655)]: Detected IIS = 5.0 [Tue Oct 15 12:34:16 2002] [jk_isapi_plugin.c (696)]: HttpFilterProc started [Tue Oct 15 12:34:16 2002] [jk_isapi_plugin.c (759)]: In HttpFilterProc Virtual Host redirection of /localhost/examples/jsp/num/numguess.jsp [Tue Oct 15 12:34:16 2002] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue Oct 15 12:34:16 2002] [jk_uri_worker_map.c (477)]: Attempting to map URI '/localhost/examples/jsp/num/numguess.jsp' [Tue Oct 15 12:34:16 2002] [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp [Tue Oct 15 12:34:16 2002] [jk_isapi_plugin.c (775)]: HttpFilterProc [/examples/jsp/num/numguess.jsp] is a servlet url - should redirect to ajp13 [Tue Oct 15 12:34:16 2002] [jk_isapi_plugin.c (838)]: HttpFilterProc check if [/examples/jsp/num/numguess.jsp] is points to the web-inf directory [Tue Oct 15 12:34:16 2002] [jk_isapi_plugin.c (806)]: Using registry. [Tue Oct 15 12:34:16 2002] [jk_isapi_plugin.c (808)]: Using log file C:\tomcat\logs\iis_redirect.log. [Tue Oct 15 12:34:16 2002] [jk_isapi_plugin.c (809)]: Using log level 0. [Tue Oct 15 12:34:16 2002] [jk_isapi_plugin.c (810)]: Using extension uri /jakarta/isapi_redirect.dll. [Tue Oct 15 12:34:16 2002] [jk_isapi_plugin.c (811)]: Using worker file C:\tomcat\conf\workers.properties. [Tue Oct 15 12:34:16 2002] [jk_isapi_plugin.c (812)]: Using worker mount file C:\tomcat\conf\uriworkermap.properties. [Tue Oct 15 12:34:16 2002] [jk_uri_worker_map.c (159)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 15 12:34:16 2002] [jk_uri_worker_map.c (199)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 15 12:34:16 2002] [jk_uri_worker_map.c (217)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 5 [Tue Oct 15 12:34:16 2002] [jk_uri_worker_map.c (262)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=ajp13 was added [Tue Oct 15 12:34:16 2002] [jk_uri_worker_map.c (262)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /refcoapp/.jsp=ajp13 was added [Tue Oct 15 12:34:16 2002] [jk_uri_worker_map.c (262)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /examples/.jsp=ajp13 was added [Tue Oct 15 12:34:16 2002] [jk_uri_worker_map.c (273)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/servlet/=ajp13 was added [Tue Oct 15 12:34:16 2002] [jk_uri_worker_map.c (302)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 4 rules [Tue Oct 15 12:34:16 2002] [jk_uri_worker_map.c (324)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 15 12:34:16 2002] [jk_worker.c (82)]: Into wc_open [Tue Oct 15 12:34:16 2002] [jk_worker.c (207)]: Into build_worker_map, creating 1 workers [Tue Oct 15 12:34:16 2002] [jk_worker.c (213)]: build_worker_map, creating worker ajp12 [Tue Oct 15 12:34:16 2002] [jk_worker.c (138)]: Into wc_create_worker [Tue Oct 15 12:34:16 2002] [jk_worker.c (152)]: wc_create_worker, about to create instance ajp12 of ajp12 [Tue Oct 15 12:34:16 2002] [jk_ajp12_worker.c (264)]: Into ajp12_worker_factory [Tue Oct 15 12:34:16 2002] [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp12 [Tue Oct 15 12:34:16 2002] [jk_ajp12_worker.c (182)]: Into jk_worker_t::validate [Tue Oct 15 12:34:16 2002] [jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [Tue Oct 15 12:34:16 2002] [jk_worker.c (177)]: wc_create_worker, done [Tue Oct 15 12:34:16 2002] [jk_worker.c (223)]: build_worker_map, removing old ajp12 worker [Tue Oct 15 12:34:16 2002] [jk_worker.c (235)]: build_worker_map, done [Tue Oct 15 12:34:16 2002] [jk_worker.c (102)]: wc_open, done [Tue Oct 15 12:34:16 2002] [jk_isapi_plugin.c (679)]: HttpExtensionProc started [Tue Oct 15 12:34:16 2002] [jk_worker.c (123)]: Into wc_get_worker_for_name ajp13 [Tue Oct 15 12:34:16 2002] [jk_worker.c (127)]: wc_get_worker_for_name, done did not found a worker [Tue Oct 15 12:34:16 2002] [jk_isapi_plugin.c (701)]: HttpExtensionProc could not get a worker for name ajp13 [Tue Oct 15 12:34:16 2002] [jk_isapi_plugin.c (722)]: HttpExtensionProc error, could not get a worker for name ajp13 I'm not sure why it cannot get a worker. Any ideas about what could be wrong. I used this link to try to get some help: http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/index.html and I didn't notice much difference in what I did and what they had. I restarted both Tomcat and IIS and I have nothing. Thanks, Lior Shliechkorn PS - and thanks to those who helped me get this far. - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
RE: Tomcat IIS Worker problem
Ok, so now that I changed the service to ajp12 I get the following in the log file: [Tue Oct 15 13:48:24 2002] [jk_isapi_plugin.c (679)]: HttpExtensionProc started [Tue Oct 15 13:48:24 2002] [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12 [Tue Oct 15 13:48:24 2002] [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker [Tue Oct 15 13:48:24 2002] [jk_isapi_plugin.c (701)]: HttpExtensionProc got a worker for name ajp12 [Tue Oct 15 13:48:24 2002] [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint [Tue Oct 15 13:48:24 2002] [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service [Tue Oct 15 13:48:24 2002] [jk_connect.c (108)]: Into jk_open_socket [Tue Oct 15 13:48:24 2002] [jk_connect.c (115)]: jk_open_socket, try to connect socket = 632 [Tue Oct 15 13:48:25 2002] [jk_connect.c (124)]: jk_open_socket, after connect ret = -1 [Tue Oct 15 13:48:25 2002] [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 [Tue Oct 15 13:48:25 2002] [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1 [Tue Oct 15 13:48:25 2002] [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [Tue Oct 15 13:48:25 2002] [jk_isapi_plugin.c (716)]: HttpExtensionProc error, service() failed [Tue Oct 15 13:48:25 2002] [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done Not sure what these errors mean...never did this before. Thanks. Ignacio J. Ortega [EMAIL PROTECTED] wrote: From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 7:09 PM [Tue Oct 15 12:34:16 2002] [jk_worker.c (82)]: Into wc_open [Tue Oct 15 12:34:16 2002] [jk_worker.c (207)]: Into build_worker_map, creating 1 workers [Tue Oct 15 12:34:16 2002] [jk_worker.c (213)]: build_worker_map, creating worker ajp12 [Tue Oct 15 12:34:16 2002] [jk_worker.c (138)]: Into wc_create_worker [Tue Oct 15 12:34:16 2002] [jk_worker.c (152)]: wc_create_worker, about to create instance ajp12 of ajp12 [Tue Oct 15 12:34:16 2002] [jk_ajp12_worker.c (264)]: Into ajp12_worker_factory [Tue Oct 15 12:34:16 2002] [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp12 [Tue Oct 15 12:34:16 2002] [jk_ajp12_worker.c (182)]: Into jk_worker_t::validate [Tue Oct 15 12:34:16 2002] [jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [Tue Oct 15 12:34:16 2002] [jk_worker.c (177)]: wc_create_worker, done [Tue Oct 15 12:34:16 2002] [jk_worker.c (223)]: build_worker_map, removing old ajp12 worker [Tue Oct 15 12:34:16 2002] [jk_worker.c (235)]: build_worker_map, done This log excerpt seems to say that your workers.properties files doenst define a ajp13 worker, and you are assinging the uri to this nonexistent worker.. 1) To see it working use ajp12 instead of ajp13 in your uw.p file 2) post your w.p file to help you use the better ajp13 protocol instead of ajp12 HTH Saludos, Ignacio J. Ortega -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
RE: Tomcat IIS Worker problem
Here we go. The files' contents are below. workers.p : workers.tomcat_home=c:\tomcat workers.java_home=c:\jdk1.3.1_04 ps=\ worker.list = ajp12 worker.ajp12.type = ajp12 worker.ajp12.host = localhost worker.ajp12.port = 8009 worker.ajp12.lbfactor=1 uriworkermap.p: default.worker=ajp12 /*.jsp=$(default.worker) /refcoapp/*.jsp=$(default.worker) /examples/*.jsp=$(default.worker) /examples/servlet/*=$(default.worker) I'm not certain what other files would be necessary since I've only touched these in the whole process. I changed all ajp13 to 12s and got the error that you saw. Where would I change the listening port for tomcat...I didn't change any of the server.xml properties. Thanks, Lior Turner, John [EMAIL PROTECTED] wrote: Looks to me like your Tomcat is either not running, or listening on a different port: [Tue Oct 15 13:48:24 2002] [jk_connect.c (115)]: jk_open_socket, try to connect socket = 632 [Tue Oct 15 13:48:25 2002] [jk_connect.c (124)]: jk_open_socket, after connect ret = -1 [Tue Oct 15 13:48:25 2002] [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 FYI - It would be A LOT easier for people to help you if you would post some config files (as I've already suggested twice...maybe 3 times is the charm). Probably could have saved the last 2 or 3 iterations of OK, I tried X and got Y, now what?. But hey, if you want to draw this out, that's cool. John -Original Message- From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 1:53 PM To: Tomcat Users List Subject: RE: Tomcat IIS Worker problem Ok, so now that I changed the service to ajp12 I get the following in the log file: [Tue Oct 15 13:48:24 2002] [jk_isapi_plugin.c (679)]: HttpExtensionProc started [Tue Oct 15 13:48:24 2002] [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12 [Tue Oct 15 13:48:24 2002] [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker [Tue Oct 15 13:48:24 2002] [jk_isapi_plugin.c (701)]: HttpExtensionProc got a worker for name ajp12 [Tue Oct 15 13:48:24 2002] [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint [Tue Oct 15 13:48:24 2002] [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service [Tue Oct 15 13:48:24 2002] [jk_connect.c (108)]: Into jk_open_socket [Tue Oct 15 13:48:24 2002] [jk_connect.c (115)]: jk_open_socket, try to connect socket = 632 [Tue Oct 15 13:48:25 2002] [jk_connect.c (124)]: jk_open_socket, after connect ret = -1 [Tue Oct 15 13:48:25 2002] [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 [Tue Oct 15 13:48:25 2002] [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1 [Tue Oct 15 13:48:25 2002] [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [Tue Oct 15 13:48:25 2002] [jk_isapi_plugin.c (716)]: HttpExtensionProc error, service() failed [Tue Oct 15 13:48:25 2002] [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
RE: Tomcat IIS Worker problem
Unfortunately, I'm still getting the original error: [Tue Oct 15 14:15:49 2002] [jk_isapi_plugin.c (679)]: HttpExtensionProc started [Tue Oct 15 14:15:49 2002] [jk_worker.c (123)]: Into wc_get_worker_for_name rsworker [Tue Oct 15 14:15:49 2002] [jk_worker.c (127)]: wc_get_worker_for_name, done did not found a worker [Tue Oct 15 14:15:49 2002] [jk_isapi_plugin.c (701)]: HttpExtensionProc could not get a worker for name rsworker [Tue Oct 15 14:15:49 2002] [jk_isapi_plugin.c (722)]: HttpExtensionProc error, could not get a worker for name rsworker Why did it not find the worker here, but the Ajp12 worked (as far as finding a worker)? - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
RE: Tomcat IIS Worker problem
Thanks for the help John. Hopefully I'll get this resolved. Turner, John [EMAIL PROTECTED] wrote: At this point I can only surmise that it has something to do with IIS and the isapi_redirect thingie. Since I don't run IIS, I can't help with those things. Your workers.properties file and uri.properties file look fine to me. Perhaps someone out there with a working IIS configuration can offer more. John -Original Message- From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 2:21 PM To: Tomcat Users List Subject: RE: Tomcat IIS Worker problem Unfortunately, I'm still getting the original error: [Tue Oct 15 14:15:49 2002] [jk_isapi_plugin.c (679)]: HttpExtensionProc started [Tue Oct 15 14:15:49 2002] [jk_worker.c (123)]: Into wc_get_worker_for_name rsworker [Tue Oct 15 14:15:49 2002] [jk_worker.c (127)]: wc_get_worker_for_name, done did not found a worker [Tue Oct 15 14:15:49 2002] [jk_isapi_plugin.c (701)]: HttpExtensionProc could not get a worker for name rsworker [Tue Oct 15 14:15:49 2002] [jk_isapi_plugin.c (722)]: HttpExtensionProc error, could not get a worker for name rsworker Why did it not find the worker here, but the Ajp12 worked (as far as finding a worker)? - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
Tomcat 4 and IIS Virtual Directory
Hello, I have Tomcat running with IIS, however, I'm not sure how to call on servlets from the URL. I have the worker.prop file pointing to a www.domain.com rather than LOCALHOST (I added my domain name into the HOSTS file under WINNT System32 Drivers). I created a virtual directory for my application that points to an actual directory under tomcat/webapps/myApp. I can pull up the HTML files fine and the JSP files as well, but I can't get the servlet to work off of my login page. I have the following in the uriworkermap.prop file: myApp/*.jsp = ajp13 myApp/servlet/* = ajp13 so if I go to www.domain.com/myApp/html/login.html which calls on a servlet it doesn't work when I post the info to www.domain.com/myApp/servlet/Login. I get a page cannot be displayed error even though I check the log file for ISAPI and see that it found the mapping and it should be redirected. How do I go about fixing that? Thanks, Lior - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com
Tomcat Install Help
A couple of issues I'm having. One problem I'm having is that I can get tomcat to process JSP and servlets (once changing the web.xml file). However, I have a project which I created a war file for, and tomcat extracted without a problem, but I get errors that it cannot resolve symbol className...which is a utility class which is in the WEB-INF/classes folder as it should be. 1. So the beans aren't being found by Tomcat. 2. I'm trying to have it work on WinNT Server with IIS 4 and I created a virtual directory on IIS for jakarta (which has a green arrow pointing up). The registry stuff is all typed correctly in and everything. Now I'm trying to get files in JSP to work when I call them from a URL and I get the actual source of the files on the screen. How do I move on from localhost to an actual URL that Tomcat can see from the web? I've been on so many sites and have been reading so much that I'm confused where I started and where am I supposed to end. There are so many sugarcoated sites that make the process so childlike, but leave no place to ask questions when it all goes wrong. How do I change the workers.properties and the uriworkermap.properties files to work for what I want? Can anyone give me an example file of the two? Thanks in advance, Lior Shliechkorn Lior Shliechkorn --__ [p] 212-406-2853 [c] 917-295-6314 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
linux redhat support
Hi, are all versions of linux redhat (e.g., version 7.2, 7.3) running stable with tomcat 4.0.4 under IBM jdk1.3.1? where can i find such information? thanks in advance, Lior Graf Cellpay ltd e-mail: [EMAIL PROTECTED] phone: +972(3)9034334 (222) mobile: +972(51)507302 fax:+972(3)9034335 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]