Tomcat running as NT service can't locate JNI DLLs
I have a web app that utilizes various 3rd party/in-house JNI DLLs, but System.loadLibrary() fails to locate them only when Tomcat 4.1 is run as a service under Win2k. Two odd surrounding issues: (a) Tomcat is run from Drive D:, the DLLs are located drive D:\myDLLs and the system PATH has D:\myDLLs directory in it. (b) Running Tomcat in console mode _works_ with the DLLs in D:\myDLLs. (c) Running Tomcat as a service fails however...but if I simply move the DLLs to C:\myDLLs it works. So, on the surface it seems to be ignoring the drive prefix in the PATH. I've tried un-installing, then re-installing the Tomcat service using the '-path' option pointing to D:\myDLLs directory, but it still fails. I have a feeling I'm missing something fundamental, but I'm just not seeing it. Has anyone dealt with this before? Thanks in advance Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running Tomcat 4.1.27 as NT service - logs
Hi, I had no problems installing the tomcat as service but its deleting my logs anytime I restart the server, Can someone tell me how to change the configuration so it will not delete the logs? Regards, Yuval - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides. - 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]
RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides. - 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] - 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]
RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides. - 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] - 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] - To unsubscribe, e-mail
RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Jose, Yes. I'd rename the top level dir so you have your servlets, jsps and images saved. Otherwise, I'd zip it and copy it somewhere. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:45 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides. - 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
Re: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Also note that you have to adjust the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters\JVM Library -- you have to make sure that's pointing to a real copy of jvm.dll -- the default is c:\program files\Java\j2rex.x.x\bin\client\jvm.dll and if that's not where you have Java installed, all kinds of weird things will happen. - Original Message - From: Goehring, Chuck Mr., RCI - San Diego [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 1:37 PM Subject: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail
RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
I got a mail loop error?? -Original Message- From: Goehring, Chuck Mr., RCI - San Diego Sent: Tuesday, October 21, 2003 10:49 AM To: 'Jose Euclides da Silva Junior - DATAPREVRJ'; 'Tomcat Users List' Subject: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Yes. I'd rename the top level dir so you have your servlets, jsps and images saved. Otherwise, I'd zip it and copy it somewhere. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:45 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides
Re: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Just a thought. You can reinstall Tomcat to a different port, with the NT Service checked. Or better yet, go ahead and install the Tomcat 4.1.2x to a different port. This is a great opportunity to upgrade. Put some of your apps there for test runs. If there is no issue, then move everything over to the new installation. After that, you can change the port number back. - Original Message - From: Jose Euclides da Silva Junior - DATAPREVRJ [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 12:45 PM Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e
RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
I will tried it, but i am afraid of unknowed changes done by Tcservcfg on Windows register. Since Tomcat isnt running anyway, i will reinstall it to the same port. One question: Do you know how could i remove the remained Tomcat service? Euclides. -Mensagem original- De: epyonne [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 15:13 Para: Tomcat Users List; [EMAIL PROTECTED] Assunto: Re: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Just a thought. You can reinstall Tomcat to a different port, with the NT Service checked. Or better yet, go ahead and install the Tomcat 4.1.2x to a different port. This is a great opportunity to upgrade. Put some of your apps there for test runs. If there is no issue, then move everything over to the new installation. After that, you can change the port number back. - Original Message - From: Jose Euclides da Silva Junior - DATAPREVRJ [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 12:45 PM Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat
RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Jose, Yes. I'd rename the top level dir so you have your servlets, jsps and images saved. Otherwise, I'd zip it and copy it somewhere. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:45 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select * FROM DICAS WHERE ID_TOPICO = + topico2; pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); if ( !rs.next() ) { // -- THIS IS LINE 413 -- fechaconection( pstmt,rs,con); chamadevolta = getServletContext().getRequestDispatcher(/semconteudo.jsp); chamadevolta.forward(request,response); } 5 - I ve tried to find something about permission but i didnt find anything. 6 - THE WORST: I stopped the service and tried to work as before -- starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt starts up ANYMORE !!! 7- Then, i ve disabled all TomCat's services 8- Tried step 6 again - FAILURE AGAIN 9 - Finally, i ve removed the Registry key of TomCat service. 10 - Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it... Really, any single help will be appreciated... Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
The Tomcat download site has an executable file which is built with InstallShield. If you install Tomcat using that executable file, you should have an Uninstall Tomcat option on your Start|Programs menu. Or you can always go to the Add/Remove Programs to remove it. Hope this helps. - Original Message - From: Jose Euclides da Silva Junior - DATAPREVRJ [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 01:55 PM Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) I will tried it, but i am afraid of unknowed changes done by Tcservcfg on Windows register. Since Tomcat isnt running anyway, i will reinstall it to the same port. One question: Do you know how could i remove the remained Tomcat service? Euclides. -Mensagem original- De: epyonne [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 15:13 Para: Tomcat Users List; [EMAIL PROTECTED] Assunto: Re: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Just a thought. You can reinstall Tomcat to a different port, with the NT Service checked. Or better yet, go ahead and install the Tomcat 4.1.2x to a different port. This is a great opportunity to upgrade. Put some of your apps there for test runs. If there is no issue, then move everything over to the new installation. After that, you can change the port number back. - Original Message - From: Jose Euclides da Silva Junior - DATAPREVRJ [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 12:45 PM Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset
RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Dear Chuck and friends, here is all steps taken: 1 - disable old tomcat's service 2 - download new tomcat 4.1.17 3 - install it as a NT service 4 - process of app configuration ( server.xml, web.xml and adding folders ) AGAIN, the old big problem still alive: only the static pages are availables, so whenever my app tries to use ResultSet, I get that known error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) Really, what is wrong with this procedure? Let me remind you: since i have runned this fucking tcservcfg ( to turn tomcat a service), my app have never been running correctly anymore.Probably, some NT internal configuration was wrongly mismatched by tcservcfg. Any last hint? -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 16:00 Para: [EMAIL PROTECTED]; [EMAIL PROTECTED] Apache. Org (E-mail) Assunto: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Yes. I'd rename the top level dir so you have your servlets, jsps and images saved. Otherwise, I'd zip it and copy it somewhere. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:45 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:11 AM To: '[EMAIL PROTECTED]' Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor -- tcservcfg and the second one -- windows!!! Thus, i made the following steps: 1 - ...runned the main actor ( tcservcfg ) - OK! 2 - started up the service - OK! 3 - test the environment - FAILURE! NOW, THE NIGHTMARE begins 4 - Only the static pages are availables, so whenever my app tries to use Result Sets, I get this error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) at BancoServlet.service(BancoServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) LINE 413 points to a resultset statement, see below: ring query = Select
RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
The first thing I would look into is logging some info about the ResultSet you are getting back. Is the ResultSet from execute query null? It probably is. Then pin point the problem to Statement.executeQuery. If this is the problem, then I think since the error you are receiving is in a JDBC method and this is a method in the Oracle driver you may want to try a different database (just make some simple tables and things for testing) make some simple pages and test the Oracle Driver and the other Database. If the other driver works fine, and the Oracle Driver is the one having the problem; then you need to contact Oracle about the issue. Explain that with one users permissions you can do this Show them an example. Then, with this users this happens. Also, show them code using a different driver. Working with Oracle on issues is never fun, and it is never fast, and they always want someone else to front the cost...even if it is their fault. But, at the end of the day, the code in the JDBC driver is their responsibility. I would go that route. It will pin point you to the source of the problem with proof that X works and Y doesn't. Y happens to be Oracles thin db driver. Find out what it may be accessing in the file system or other things that could be causing this problem. Hope that helps you some. Wade -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 4:40 PM To: 'Tomcat Users List'; '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Dear Chuck and friends, here is all steps taken: 1 - disable old tomcat's service 2 - download new tomcat 4.1.17 3 - install it as a NT service 4 - process of app configuration ( server.xml, web.xml and adding folders ) AGAIN, the old big problem still alive: only the static pages are availables, so whenever my app tries to use ResultSet, I get that known error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) Really, what is wrong with this procedure? Let me remind you: since i have runned this fucking tcservcfg ( to turn tomcat a service), my app have never been running correctly anymore.Probably, some NT internal configuration was wrongly mismatched by tcservcfg. Any last hint? -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 16:00 Para: [EMAIL PROTECTED]; [EMAIL PROTECTED] Apache. Org (E-mail) Assunto: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Yes. I'd rename the top level dir so you have your servlets, jsps and images saved. Otherwise, I'd zip it and copy it somewhere. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:45 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally
RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Tomcat (as far as I know) doesn't use the registry settings. The service side of things probably would, but tomcat should be looking at it's config files. Check your oracle driver version, you want to make sure that you're either on the current driver for your version of the database, or the latest driver. Either or, doesn't matter to much either way. Another thing I've seen is when working with servlets and dispatching to a jsp that the url for the dispatch which works on one server may not work on another. You could be barking up the wrong tree with the result set, even though the error says that it's the line with the result set. I've had a couple of times where the line number from the error didn't exactly match up with the line that it should have been. I usually find that it's helpful to put in debug output when I'm seriously stumped. --mikej -=-- mike jackson [EMAIL PROTECTED] -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 12:40 PM To: 'Tomcat Users List'; '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Dear Chuck and friends, here is all steps taken: 1 - disable old tomcat's service 2 - download new tomcat 4.1.17 3 - install it as a NT service 4 - process of app configuration ( server.xml, web.xml and adding folders ) AGAIN, the old big problem still alive: only the static pages are availables, so whenever my app tries to use ResultSet, I get that known error message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413) Really, what is wrong with this procedure? Let me remind you: since i have runned this fucking tcservcfg ( to turn tomcat a service), my app have never been running correctly anymore.Probably, some NT internal configuration was wrongly mismatched by tcservcfg. Any last hint? -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 16:00 Para: [EMAIL PROTECTED]; [EMAIL PROTECTED] Apache. Org (E-mail) Assunto: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Yes. I'd rename the top level dir so you have your servlets, jsps and images saved. Otherwise, I'd zip it and copy it somewhere. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:45 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:37 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure it installs in the same directory to prevent other problems. Once the installer completes you can run it as a service or disable the service and use the startup.bat in the bin directory to start it from a command prompt. Sometimes this is desirable when debugging things that go wrong at startup. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:28 AM To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy in control panel. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto
RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
Jose, Regarding the service installed by the tcservcfg - don't know anything about what it did. But, since you installed the service outside of the Tomcat installer, it probably won't uninstall it. Could be that tool will remove it also, don't know. There is no GUI command to remove services that I know of. Generically, to remove a service, you have to go into the registry with regedit by using the run command on the start menu. This is generally considered dangerous so you must pay attention and be carefull. And backup anything that is important first. Don't do this if your not used to using regedit.exe to fix things. Use run conmmand or Command prompt to execute regedit.exe. Go to HKEY_LOCAL_MACHINE Under that, go to SYSTEM Under that, go to CurrentControlSet Under that, go to Services There you should see Apache Tomcat listed on the left side. When you clisk it, you will see DisplayName on the right with Apache Tomcat as the value. Make sure the Apache Tomcat on the left is selected by clicking it again and use the menu to select Edit/Delete. That should remove the Apache Tomcat from the left and values for it from the right. Close regedit and reboot. That should do it. Chuck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat as an NT Service
We have just made a small mod to the javaservice.exe program (see also http://www.alexandriasc.com) , known to most of you as tomcat.exe from the tomcat bin directory. If you are interested, please get in touch with [EMAIL PROTECTED] or [EMAIL PROTECTED] The reason for the change is that we wanted to use the Win2000 Server service recovery feature in some cases in order to keep the system alive even when there is a problem. One case in point is a java.lang.OutOfMemory error which is definitely and demonstrably dodgy, probably due to a garbage collecting problem. (Honest). In the original software a System.exit(i) would indeed cause the service to terminate, but always gracefully, i.e. the service was always reported as STOPPED to the Service Control Manager. Since this is not a failure, the service recovery does not come into action. In order to be able to force the service recovery we modified the code to take different actions on different JVM exit codes. A code of 0 is as per usual. No extra error messages, service stops. An exit code 0 a service specific error message is logged in the application log, but the service stops normally. An exit code 0 is considered as a serious fail and will register a service specific message, and FAIL the service. This means that the Service Recovery will come into action. A minute later your system can be up and running again. Note that there is a registry key which determines the system behaviour after service failure: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug Auto = 0 Prompt user with debug window BEFORE terminating the process (and therefore before allowing the service to restart). REQUIRES USER INPUT: Auto = 1 (server default) Don't prompt user with debug window, create dump file and then end the process, therefore allowing the service to restart Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JAVA_HOME for TOMCAT as an NT Service
Hello. I am trying to get TOMCAT 4.1 to run as an NT service. When I have the service running I get a 500 error for all jsp pages I've made a change to. I've set JAVA_HOME to the correct path as a System Variable in windows 2000. If I were to shut down the service and choose Start Tomcat from the program folder, it compiles fine. Any ideas of where I should look for the problem? When I look in stderr.log I see this message. I know you don't need to see all of it but. Error running javac.exe compiler at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExtern alCompile(DefaultCompilerAdapter.java:455) at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal. java:81) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:840) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 73) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 90) 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(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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.invok eNext(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:604) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Unknown Source) Nicholas Rapagnani Phone: (484) 762-3105 Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1.18 as NT Service JVM property
I have to put a system property on the command line of the tomcat starting script, but I would like to start it as a Service (on a windows machine); i tried using CATALINA_OPTS defined as a system environment variable, but it doesn't seem to work. Release 4.1.18 already installs the service, but I don't know where to set the property (-Dvar=val) for the JVM. Any help appreciated Renato Renato Romano Sistemi e Telematica S.p.A. Calata Grazie - Vial Al Molo Giano 16127 - GENOVA e-mail: [EMAIL PROTECTED] Tel.: 010 2712603 _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Typo on http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.html
There is a missing semi-colon on an nbsp on the page: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.html Search for nbspUser mrc -- Mike Castle [EMAIL PROTECTED] www.netcom.com/~dalgoda/ We are all of us living in the shadow of Manhattan. -- Watchmen fatal (You are in a maze of twisty compiler features, all different); -- gcc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat as an NT Service.
Hi. I'm trying to install tomcat on my Windows 2000 Server as an NT service using the jk_nt_service.exe wrapper. I am consistantly getting the same error everytime I try and start the Server (I'm using the services control panel) Do you know of any problems with using the wrapper on a windows 2000 server machine?? THe error I'm getting is... Could not start the Jakarta Service on local computer Error 1607: The process terminated unexpectedly. Thanks for your time/help. ari -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat as an NT Service.
Hello ari, Which version of Tomcat? If 4.0, then you don't use jk_nt_service.exe. You use Tomcat.exe that is in the $TOMCAT_HOME/bin directory. Just use the following to install/uninstall the service (copy/paste the lines below to the command line...assuming you've set up the environment variables referenced): Install Catalina Service: %CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log Uninstall Catalina Service: %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina Jake Monday, April 22, 2002, 12:14:54 PM, you wrote: abc Hi. I'm trying to install tomcat on my Windows 2000 Server as an NT service abc using the jk_nt_service.exe wrapper. I am consistantly getting the same error abc everytime I try and start the Server (I'm using the services control panel) abc Do you know of any problems with using the wrapper on a windows 2000 server abc machine?? THe error I'm getting is... abc Could not start the Jakarta Service on local computer abc Error 1607: The process terminated unexpectedly. abc Thanks for your time/help. abc ari abc -- abc To unsubscribe: mailto:[EMAIL PROTECTED] abc For additional commands: mailto:[EMAIL PROTECTED] abc Troubles with the list: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Jakarta Tomcat 3.2.3 Windows NT Service Problem
-Original Message- From: MARSHALL,John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 7:27 PM To: [EMAIL PROTECTED] Subject: Jakarta Tomcat 3.2.3 Windows NT Service Problem wrapper.tomcat_home=c:\jakarta-tomcat-3.2.4 wrapper.java_home=c:\jdk1.3.1 It these are the exact lines then this is your problem - you don't need the and characters. They are in the sample file to show you where to place your paths. Randy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat as an NT service again...
This probably won't come as a surprise to you, but the problem is your classpath. The error you posted indicates that Tomcat can't load the XML parser. I would check the JavaService syntax for setting the classpath and then verify that jaxp and parser are at the path indicated. By the way - to make jk_nt_service work with JDK 1.3 you need to pass the -Xrs option to the Java Command created on the last line of the wrapper.properties file. Randy -Original Message- From: Mike Welch [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 5:45 PM To: [EMAIL PROTECTED] Cc: mwelch Subject: Tomcat as an NT service again... Configuration: Win NT 4 sp6a Tomcat 3.2.4 JDK 1.3.1_02 IIS Javaservice.exe Tomcat is running great when I use startup.bat interactively. I've spent two days trying to figure out how to run Tomcat has a service. I've read every single post I could find. Mostly I've read other people describing the same problem that I have encountered. However, very few times to I see a solution posted. Hopefully, this time it will be different. I've tried jk_nt_service, that didn't work. I've gone through the steps about 10 times. I'm now focusing on getting javaservice.exe to work, since it seems to work better with JDK 1.3.1. (when you log out) (http://www.alexandriasc.com/software/JavaService/documentation.html) Here is the command I'm using to install the service : c:\jakarta-tomcat-3.2.4\bin\javaservice.exe -install Tomcat c:\jdk1.3.1_02\jre\bin\hotspot\jvm.dll -Djava.class.path=c:\jakarta-tomcat-3.2.4\lib\webserver.jar;c: \jakarta-tomcat-3.2.4\lib\jasper.jar;c:\jakarta-tomcat-3.2.4\l ib\jaxp.jar;c:\jakarta-tomcat-3.2.4\lib\parser.jar;c:\jakarta- tomcat-3.2.4\lib\ant.jar;c:\jakarta-tomcat-3.2.4\lib\servlet.j ar;c:\jdk1.3.1_02\lib\tools.jar -Dtomcat.home=c:\jakarta-tomcat-3.2.4 -start org.apache.tomcat.startup.Tomcat -params -config c:\jakarta-tomcat-3.2.4\conf\server.xml -stop org.apache.tomcat.startup.Tomcat -params -stop -config c:\jakarta-tomcat-3.2.4\conf\server.xml -out c:\jakarta-tomcat-3.2.4\logs\stdout.log -err c:\jakarta-tomcat-3.2.4\logs\stderr.log The only message I receive is : The service was successfully installed. I wouldn't be surprized if there was a problem with this statement, but I've looked through it several times and don't see anything wrong. When I goto the services control panel and try to start the service, I receive the error : Could not start the Tomcat service on \\MACHINE Error 2140: An internal Windows NT error occurred. The event viewer shows Could not call the start method In the error log c:\jakarta-tomcat-3.2.4\logs\stderr.log java.lang.NoClassDefFoundError: org/xml/sax/HandlerBase at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:493) at java.security.SecureClassLoader.defineClass(SecureClassLoader. java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:178) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:240) Can anyone explain this error? Any suggestion for getting this to work? Thanks, Mike -- Mike Welch Director of Internet Media Sanger Eby Design (513)784-9046 [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat as an NT service again...
Randy Layman wrote: This probably won't come as a surprise to you, but the problem is your classpath. The error you posted indicates that Tomcat can't load the XML parser. I would check the JavaService syntax for setting the classpath and then verify that jaxp and parser are at the path indicated. You're right. It didn't come as a surprise. You were also right, the file parser.jar did not exist in that directory. Thanks. The problem originated in the sample bat file, installTomcat32.bat that is included with the JavaService download. I removed the parser.jar from the class path and added crimson.jar and that corrected the problem. Tomcat starts as an NT service now starts with no errors. Thanks for your help! -Mike -- Mike Welch Director of Internet Media Sanger Eby Design (513)784-9046 [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Jakarta Tomcat 3.2.3 Windows NT Service Problem
Hello I have installed Jakarta-Tomcat-3.2.4 and all works fine with the standard Tomcat startup, and shutdown.BAT files. But, i am having problems starting tomcat as an NT Service. I use:- Microwoft WIndows NT Version 4.0 (Build 1381) Service Pack 6) Jakarta_Tomcat-3.2.3 jk_nt_service.exe (binary download - from 3.2.4 Then using document Working with the Jakarta NT Service 1.cmd prompt: jk_nt_service -R Jakarta wrapper.properties 2.performed a net start Jakarta, and received the following three lines The Jakarta service is starting The Jakarta service could not be started The service did not report an error. I then tried... From Windows NT Control PanelServices 1.(start) Jakarta and received the following message Could not start the Jakarta Service on \\blah Error 2140: An Internal Windows NT Error Occured FYI my wrapper.properties contains:- -- -- # # $Header: /home/cvs/jakarta-tomcat/src/etc/Attic/wrapper.properties,v 1.2.2.1 2000/10/16 01:59:22 larryi Exp $ # $Revision: 1.2.2.1 $ # $Date: 2000/10/16 01:59:22 $ # # # jk_service.properties - a bootstrup file for the Tomcat NT service. # # This file provides jk_nt_service with the needed information to # start tomcat at a different process. # # As a general note, the characters $( and ) are used internally to define # macros. Do not use them!!! # # Whenever you see a set of lines such as: # x=value # y=$(x)\something # # the final value for y will be value\something # # Normaly all you will need to modify is the first two properties, i.e. # wrapper.tomcat_home and wrapper.java_home. Most of the configuration # is derived from these two. # # # wrapper.tomcat_home should point to the location where you # installed tomcat. This is where you have your conf, webapps and lib # directories. # wrapper.tomcat_home=c:\jakarta-tomcat-3.2.4 # # wrapper.java_home should point to your Java installation. Normally # you should have a bin and lib directories beneath it. # wrapper.java_home=c:\jdk1.3.1 # #-- ADVANCED MODE # Make sure that you read the how-to before making too many changes. #- # # # Defining where the service is going to put the standard # output of Tomcat. This is where System.out.println and # System.err.println goes to. # wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr # # Additions to the path. put here directories where you store DLLs for # native methods etc. # wrapper.ld_path=d:\ wrapper.ld_path=c:\ # # Defining the classpath. All the rows that belongs to the class_path # property are concatenated to create the classpath for Tomcat. # # If you have additional locations that you would like to add to the # claspath you should add a new wrapper.class_path=location line. # wrapper.class_path=$(wrapper.tomcat_home)\classes wrapper.class_path=$(wrapper.tomcat_home)\lib\jaxp.jar # wrapper.class_path=$(wrapper.tomcat_home)\lib\parser.jar wrapper.class_path=$(wrapper.tomcat_home)\lib\webserver.jar wrapper.class_path=$(wrapper.tomcat_home)\lib\servlet.jar wrapper.class_path=$(wrapper.tomcat_home)\lib\jasper.jar # # This is where Javac is located in JDK1.2.x # # wrapper.class_path=$(wrapper.java_home)\lib\tools.jar # # and a tribute to JDK1.1.x # # wrapper.class_path=$(wrapper.java_home)\lib\classes.zip # # This is the Java interpreter used for running Tomcat # wrapper.javabin=$(wrapper.java_home)\bin\java.exe # # This is Tomcat's startup class (the class that contains Tomcat's # starting point. # wrapper.startup_class=org.apache.tomcat.startup.Tomcat # # This is the location where tomcat's server.xml configuration file # is located. # wrapper.server_xml=$(wrapper.tomcat_home)\conf\server.xml # # The NT service uses AJP12/AJP13 to shutdown Tomcat. The # wrapper.shutdown_port tells the service the identity of the port that # is used by AJP12/AJP13. # wrapper.shutdown_port=8007 # # Can either be ajp12 or ajp13 depending on your configuration. # # Default value is ajp12 # wrapper.shutdown_protocol=ajp12 # # This is the command line that is used to start Tomcat. You can *add* extra # parameters to it but you can not remove anything. # wrapper.cmd_line=$(wrapper.javabin) -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) -home $(wrapper.tomcat_home) Notice: The information contained in this e-mail message and any attached files may be confidential information, and may also be the subject of legal professional privilege. If you are not the intended recipient any use
Tomcat as an NT service again...
Configuration: Win NT 4 sp6a Tomcat 3.2.4 JDK 1.3.1_02 IIS Javaservice.exe Tomcat is running great when I use startup.bat interactively. I've spent two days trying to figure out how to run Tomcat has a service. I've read every single post I could find. Mostly I've read other people describing the same problem that I have encountered. However, very few times to I see a solution posted. Hopefully, this time it will be different. I've tried jk_nt_service, that didn't work. I've gone through the steps about 10 times. I'm now focusing on getting javaservice.exe to work, since it seems to work better with JDK 1.3.1. (when you log out) (http://www.alexandriasc.com/software/JavaService/documentation.html) Here is the command I'm using to install the service : c:\jakarta-tomcat-3.2.4\bin\javaservice.exe -install Tomcat c:\jdk1.3.1_02\jre\bin\hotspot\jvm.dll -Djava.class.path=c:\jakarta-tomcat-3.2.4\lib\webserver.jar;c:\jakarta-tomcat-3.2.4\lib\jasper.jar;c:\jakarta-tomcat-3.2.4\lib\jaxp.jar;c:\jakarta-tomcat-3.2.4\lib\parser.jar;c:\jakarta-tomcat-3.2.4\lib\ant.jar;c:\jakarta-tomcat-3.2.4\lib\servlet.jar;c:\jdk1.3.1_02\lib\tools.jar -Dtomcat.home=c:\jakarta-tomcat-3.2.4 -start org.apache.tomcat.startup.Tomcat -params -config c:\jakarta-tomcat-3.2.4\conf\server.xml -stop org.apache.tomcat.startup.Tomcat -params -stop -config c:\jakarta-tomcat-3.2.4\conf\server.xml -out c:\jakarta-tomcat-3.2.4\logs\stdout.log -err c:\jakarta-tomcat-3.2.4\logs\stderr.log The only message I receive is : The service was successfully installed. I wouldn't be surprized if there was a problem with this statement, but I've looked through it several times and don't see anything wrong. When I goto the services control panel and try to start the service, I receive the error : Could not start the Tomcat service on \\MACHINE Error 2140: An internal Windows NT error occurred. The event viewer shows Could not call the start method In the error log c:\jakarta-tomcat-3.2.4\logs\stderr.log java.lang.NoClassDefFoundError: org/xml/sax/HandlerBase at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:493) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:178) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:240) Can anyone explain this error? Any suggestion for getting this to work? Thanks, Mike -- Mike Welch Director of Internet Media Sanger Eby Design (513)784-9046 [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Exception : No Suitable JDBC Driver Found, when running Tomcat 4.0 as NT service with JDK1.3.1_01
Hi all, I used jk_nt_service to install tomcat as a NT service. However, when I start the service, I got an Exception complaining No Suitable Driver Found. However, when I start tomcat from the command line, everything works fine. My JDBC driver is loaded successfully by Tomcat when running as a NT service, however, the next thing I know is the no suitable driver found exception. I even attempted to include the JDBC driver(IBM DB2 driver, db2java.jar) as part of the classpath in wrapper.properties, and it doesn't help, Can anybody shed any light on this? Thanks, -dongqi CONFIDENTIALITY NOTICE -- This transmission is intended for the sole use of the individual and/or entity to whom it is addressed, and may contain information and/or attachments that are privileged, confidential and exempt from disclosure under applicable law. If the reader of this transmission is not the intended recipient, you are hereby notified that any disclosure, dissemination, distribution, duplication or the taking of any action in reliance on the contents of this transmission by someone other than the intended addressee or its designated agent is strictly prohibited. If your receipt of this transmission is in error, please notify the sender by replying immediately to this transmission and destroy the transmission. Thank you. (MSWPR1/ODpt) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat as an NT service
Thanks for the help I recieved early, found out why I couldnt get it to work with JDK and it would work with JRE. Turns out the software sent the Enterprise Edition not the Standard Edition which has all the bin files I needed, at any rate, all working. I can now run tomcat using the startup command. However, still having problems getting the NT service to work. Originally I had the service working, just encountered the service shutting down when you logged out problem. To fix this I upgraded to the new JDK, and now cant start via the service at all. Its not exactly a complex install process to get it to work with jk_nt_service.exe so I assume I am missing something silly :/ I have edited the wrapper.properites to reflect the new jdk directory, my path's are correct, java_home and tomcat_home both set properly. Yet every time I try and start the service I get a 1067 termination error both from services window and using net start. Tomcat works fine if I use the startup command from the tomcat bin, so running out of options as to what it might be. Suggestions? Working on NT 4, tomcat3.2.4, JDK 1.3.1. Thanks, Ken -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat as an NT service
Have you got anything in the log for the service? Alex -Original Message- From: Ken Sanderson [mailto:[EMAIL PROTECTED]] Sent: 06 February 2002 19:16 To: Tomcat Users List Subject: Tomcat as an NT service Thanks for the help I recieved early, found out why I couldnt get it to work with JDK and it would work with JRE. Turns out the software sent the Enterprise Edition not the Standard Edition which has all the bin files I needed, at any rate, all working. I can now run tomcat using the startup command. However, still having problems getting the NT service to work. Originally I had the service working, just encountered the service shutting down when you logged out problem. To fix this I upgraded to the new JDK, and now cant start via the service at all. Its not exactly a complex install process to get it to work with jk_nt_service.exe so I assume I am missing something silly :/ I have edited the wrapper.properites to reflect the new jdk directory, my path's are correct, java_home and tomcat_home both set properly. Yet every time I try and start the service I get a 1067 termination error both from services window and using net start. Tomcat works fine if I use the startup command from the tomcat bin, so running out of options as to what it might be. Suggestions? Working on NT 4, tomcat3.2.4, JDK 1.3.1. Thanks, Ken -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat as an NT service
Nothing in my system logs and the only change to the other log files in the logs folder of tomcat is to jvm.stderr. The message added is: javax.xml.parsers.FactoryConfigurationError: java.lang.ClassNotFoundException: org.apache.crimson.jaxp.SAXParserFactoryImpl at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:120) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:240) Exception in thread main Thanks, Ken -Original Message- From: Alex Perez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 12:22 PM To: Tomcat Users List Subject: RE: Tomcat as an NT service Have you got anything in the log for the service? Alex -Original Message- From: Ken Sanderson [mailto:[EMAIL PROTECTED]] Sent: 06 February 2002 19:16 To: Tomcat Users List Subject: Tomcat as an NT service Thanks for the help I recieved early, found out why I couldnt get it to work with JDK and it would work with JRE. Turns out the software sent the Enterprise Edition not the Standard Edition which has all the bin files I needed, at any rate, all working. I can now run tomcat using the startup command. However, still having problems getting the NT service to work. Originally I had the service working, just encountered the service shutting down when you logged out problem. To fix this I upgraded to the new JDK, and now cant start via the service at all. Its not exactly a complex install process to get it to work with jk_nt_service.exe so I assume I am missing something silly :/ I have edited the wrapper.properites to reflect the new jdk directory, my path's are correct, java_home and tomcat_home both set properly. Yet every time I try and start the service I get a 1067 termination error both from services window and using net start. Tomcat works fine if I use the startup command from the tomcat bin, so running out of options as to what it might be. Suggestions? Working on NT 4, tomcat3.2.4, JDK 1.3.1. Thanks, Ken -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat as an NT service
This would indicate that Tomcat can't read the server.xml file because its missing the XML parser. Check your wrapper.properties file and make sure that all the TOMCAT_HOME\lib jar files are mentioned where it builds the classpath. Randy -Original Message- From: Ken Sanderson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 2:43 PM To: Tomcat Users List Subject: RE: Tomcat as an NT service Nothing in my system logs and the only change to the other log files in the logs folder of tomcat is to jvm.stderr. The message added is: javax.xml.parsers.FactoryConfigurationError: java.lang.ClassNotFoundException: org.apache.crimson.jaxp.SAXParserFactoryImpl at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactor y.java:120) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:240) Exception in thread main Thanks, Ken -Original Message- From: Alex Perez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 12:22 PM To: Tomcat Users List Subject: RE: Tomcat as an NT service Have you got anything in the log for the service? Alex -Original Message- From: Ken Sanderson [mailto:[EMAIL PROTECTED]] Sent: 06 February 2002 19:16 To: Tomcat Users List Subject: Tomcat as an NT service Thanks for the help I recieved early, found out why I couldnt get it to work with JDK and it would work with JRE. Turns out the software sent the Enterprise Edition not the Standard Edition which has all the bin files I needed, at any rate, all working. I can now run tomcat using the startup command. However, still having problems getting the NT service to work. Originally I had the service working, just encountered the service shutting down when you logged out problem. To fix this I upgraded to the new JDK, and now cant start via the service at all. Its not exactly a complex install process to get it to work with jk_nt_service.exe so I assume I am missing something silly :/ I have edited the wrapper.properites to reflect the new jdk directory, my path's are correct, java_home and tomcat_home both set properly. Yet every time I try and start the service I get a 1067 termination error both from services window and using net start. Tomcat works fine if I use the startup command from the tomcat bin, so running out of options as to what it might be. Suggestions? Working on NT 4, tomcat3.2.4, JDK 1.3.1. Thanks, Ken -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat as an NT service
I recall that parser.jar (JAXP 1.0.1) was replaced by crimson.jar (JAXP 1.1) in Tomcat 3.2.4. It is likely that some files may not have been updated to account for that change. I wouldn't be supprised if wrapper.properties still had parser.jar. Cheers, Larry -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 2:07 PM To: 'Tomcat Users List' Subject: RE: Tomcat as an NT service This would indicate that Tomcat can't read the server.xml file because its missing the XML parser. Check your wrapper.properties file and make sure that all the TOMCAT_HOME\lib jar files are mentioned where it builds the classpath. Randy -Original Message- From: Ken Sanderson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 2:43 PM To: Tomcat Users List Subject: RE: Tomcat as an NT service Nothing in my system logs and the only change to the other log files in the logs folder of tomcat is to jvm.stderr. The message added is: javax.xml.parsers.FactoryConfigurationError: java.lang.ClassNotFoundException: org.apache.crimson.jaxp.SAXParserFactoryImpl at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactor y.java:120) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:240) Exception in thread main Thanks, Ken -Original Message- From: Alex Perez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 12:22 PM To: Tomcat Users List Subject: RE: Tomcat as an NT service Have you got anything in the log for the service? Alex -Original Message- From: Ken Sanderson [mailto:[EMAIL PROTECTED]] Sent: 06 February 2002 19:16 To: Tomcat Users List Subject: Tomcat as an NT service Thanks for the help I recieved early, found out why I couldnt get it to work with JDK and it would work with JRE. Turns out the software sent the Enterprise Edition not the Standard Edition which has all the bin files I needed, at any rate, all working. I can now run tomcat using the startup command. However, still having problems getting the NT service to work. Originally I had the service working, just encountered the service shutting down when you logged out problem. To fix this I upgraded to the new JDK, and now cant start via the service at all. Its not exactly a complex install process to get it to work with jk_nt_service.exe so I assume I am missing something silly :/ I have edited the wrapper.properites to reflect the new jdk directory, my path's are correct, java_home and tomcat_home both set properly. Yet every time I try and start the service I get a 1067 termination error both from services window and using net start. Tomcat works fine if I use the startup command from the tomcat bin, so running out of options as to what it might be. Suggestions? Working on NT 4, tomcat3.2.4, JDK 1.3.1. Thanks, Ken -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat-as-an-NT-service startup failure
Thanks for your help Andrew. First to answer some of the points made: I didn't install the jk_nt_service component since Tomcat already worked as a service. Ie., I could start and stop it from the NT service manager. I only have one JDK installed on the machine though there is also a JRE installed. Tomcat, during installation, identified the JDK properly. I uninstalled Tomcat from the machine and started again. This time I rebooted after (almost) every step. The result: Tomcat now starts properly as a service at boot time! I don't know why there is a difference based on the number of times I rebooted during the install! Tomcat can also serve content when I access it directly on the 8080 port. I do still have one problem though. I can't get the redirection between IIS and Tomcat to work properly. I added the jakarta virtual directory (points to bin\native in the Tomcat installation directory) and I ensured that execute permission is enabled. The isapi_redirect.dll exists in the bin\native directory. I also added the ISAPI filter (isapi_redirect.dll) using the IIS manager and it shows up with the green arrow. I also enabled the AJP connector in the server.xml file and set the following in the uriworkermap.properties file: default.worker=ajp13 /*.jsp=$(default.worker) When I access a jsp page I get the following error in the IIS log files: 2002-01-07 17:55:59 192.168.0.173 - 196.32.42.57 80 GET /jakarta/isapi_redirect.dll - 404 Mozilla/5.0+(Windows;+U;+Windows+NT+5.0;+en-US;+rv:0.9.7)+Gecko/20011221 I get that message and then a whole bunch of garbage (ascii barf) with some recognizable text: ATETIME_FORMATS@@AAE@ABV0@@Z ??0EXTLOG_DATETIME_CACHE@@QAE@XZ ??0HASH_TABLE@@QAE@ABV0@@Z ??0HTTP_HEADERS@@QAE@XZ ??0HT_ELEMENT@@QAE@ABV0@@Z ??0HT_ELEMENT@@QAE@XZ ??0IIS_CTL@@QAE@ABV0@@Z ??0IIS_SERVER_CERT@@QAE@ABV0@@Z ??0IIS_SERVICE@@QAE@ABV0@@Z ??0IIS_SSL_INFO@@QAE@ABV0@@Z ??0LOGGING@@QAE@ABV0@@Z ??0MULTISZ@@QAE@ABV0@@Z ??0MULTISZ@@QAE@PADK@Z ??0MULTISZ@@QAE@PBD@Z ??0MULTISZ@@QAE@XZ ??0PARAM_LIST@@QAE@XZ ??0STR@@QAE@ABV0@@Z ??0STR@@QAE@K@Z ??0STR@@QAE@PADK@Z ??0STR@@QAE@PBD@Z ??0STR@@QAE@XZ ??0TS_RESOURCE@@QAE@XZ ??0W3_DATETIME_CACHE@@QAE@XZ ??1ADDRESS_CHECK@@QAE@XZ ??1ASCLOG_DATETIME_CACHE@@UAE@XZ ??1BUFFER_CHAIN@@QAE@XZ ??1BUFFER_CHAIN_ITEM@@QAE@XZ ??1CACHED_DATETIME_FORMATS@@UAE@XZ ??1DICTIONARY_MAPPER@@UAE@XZ ??1EXTLOG_DATETIME_CACHE@@UAE@XZ ??1HASH_TABLE@@UAE@XZ ??1HTTP_HEADERS@@QAE@XZ ??1HTTP_HEADER_MAPPER@@UAE@XZ ??1HT_ELEMENT@@UAE@XZ ??1MULTISZ@@QAE@XZ ??1PARAM_LIST@@QAE@XZ ??1STR@@QAE@XZ ??1TS_RESOURCE@@QAE@XZ ??1W3_DATETIME_CACHE@@UAE@XZ ?? I'm not sure where to go from here so any help and or comments would be greatly appreciated. Kevin. --- Andrew Bruno [EMAIL PROTECTED] wrote: Hi Kevin, in my document there could be a mistake. tomcat binary comes pre-installed with the NT Service, so there is no need to install the second jk_nt_service Look in your services, and see if you see if you see a service named Apache Tomcat with executabel path being C:\tomcat4\bin\tomcat.exe Then you will probably have a second service (as specified in my doc) which you created with jk_nt_service Please let me know if this is the case. Also, do you have only one JVM installed? I read some posting about people have two JVMs, which caused some problems? ~ Andrew - Original Message - From: Kevin HaleBoyes To: [EMAIL PROTECTED] Sent: Saturday, December 15, 2001 4:01 AM Subject: Tomcat-as-an-NT-service startup failure I just installed j2sdk1.3.1, Tomcat4, and the IIS redirector stuff posted by Andrew Bruno. It all seems to work fine except on the initial startup of the machine. If I manually start the Tomcat service then everything works great but when I reboot the machine, the Tomcat service _fails_ to start. I get the following message in the application section of the Event Viewer: The Java Virtual Machine has exited with a code of 1, the service is being stopped. But, like I said above, I can then go into the service admin program and start Tomcat. Does anyone have any idea why the JVM is exiting or how I can find out what it all means (what is code 1)? I'm using the latest jdk, tomcat, redirector on Win2K (+sp1+hot patches). Thanks, Kevin. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat-as-an-NT-service startup failure
Hi Kevin, in my document there could be a mistake. tomcat binary comes pre-installed with the NT Service, so there is no need to install the second jk_nt_service Look in your services, and see if you see if you see a service named Apache Tomcat with executabel path being C:\tomcat4\bin\tomcat.exe Then you will probably have a second service (as specified in my doc) which you created with jk_nt_service Please let me know if this is the case. Also, do you have only one JVM installed? I read some posting about people have two JVMs, which caused some problems? ~ Andrew - Original Message - From: Kevin HaleBoyes To: [EMAIL PROTECTED] Sent: Saturday, December 15, 2001 4:01 AM Subject: Tomcat-as-an-NT-service startup failure I just installed j2sdk1.3.1, Tomcat4, and the IIS redirector stuff posted by Andrew Bruno. It all seems to work fine except on the initial startup of the machine. If I manually start the Tomcat service then everything works great but when I reboot the machine, the Tomcat service _fails_ to start. I get the following message in the application section of the Event Viewer: The Java Virtual Machine has exited with a code of 1, the service is being stopped. But, like I said above, I can then go into the service admin program and start Tomcat. Does anyone have any idea why the JVM is exiting or how I can find out what it all means (what is code 1)? I'm using the latest jdk, tomcat, redirector on Win2K (+sp1+hot patches). Thanks, Kevin. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat-as-an-NT-service startup failure
I just installed j2sdk1.3.1, Tomcat4, and the IIS redirector stuff posted by Andrew Bruno. It all seems to work fine except on the initial startup of the machine. If I manually start the Tomcat service then everything works great but when I reboot the machine, the Tomcat service _fails_ to start. I get the following message in the application section of the Event Viewer: The Java Virtual Machine has exited with a code of 1, the service is being stopped. But, like I said above, I can then go into the service admin program and start Tomcat. Does anyone have any idea why the JVM is exiting or how I can find out what it all means (what is code 1)? I'm using the latest jdk, tomcat, redirector on Win2K (+sp1+hot patches). Thanks, Kevin. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
tomcat as an NT service.
hi all ! how can i run my tomcat (3.2.2 in this case ) as an NT service ? i mean , i want my tomcat to start by itself whenever i restart my machine. any help will be greatly appreciated. thanx in advance, sumit
Re: tomcat as an NT service.
dear sumit, here's what the docs say The Jakarta NT service is an executable that wraps the Tomcat servlet container and executes it in the background as an NT service. To install it you will need to: 1.Get a hold on the NT executable (jk_nt_service.exe) Download the executable from the win32/i386 directory found where you downloaded the Tomcat binary distribution. For those using Netscape as your browser, try downloading a zip version of the file, if available. There can be problems using Netscape to download DLL files. 2.Customize a properties file that provides the service with Tomcat information (wrapper.properties). Locate the wrapper.properties template file in your Tomcat conf directory. Update the wrapper.tomcat_home property to point at your tomcat home. Update the wrapper.java_home property to point at your Java home. 3.Install jk_nt_service by running it with the -i flag. Execute jk_nt_service -I name of service path to updated wrapper properties name of service should be a single word (without and spaces) such as Jakarta path to updated wrapper properties should point to your wrapper.properties file (and the service will check it's existence.) For example, a valid command line can be jk_nt_service -I Jakarta wrapper.properties 4.Start tomcat as a service. From the command line, execute net start name of service (e.g. net start Jakarta) From the NT services applet, highlight your service and press start. Note: If the log file location in your wrapper.properties file points to the logs directory, and the logs directory doesn't yet exist, manually create it before starting the service. 5.Stop Tomcat as a service. From the command line, execute net stop name of service (e.g. net stop Jakarta) From the NT services applet, highlight your service and press stop. Special note: The Tomcat service is using AJPV12 to perform clean shutdown and you should make sure that an AJPV12 connector is defined in your server.xml. In the absence of a configured AJPV12 port the Tomcat service will kill Tomcat abruptly (that is murder it) without giving it a chance to clean up. To remove the installed service, execute jk_nt_service -R name of service ravi On Thu, 30 August 2001, Sumit Ranjan wrote: hi all ! how can i run my tomcat (3.2.2 in this case ) as an NT service ? i mean , i want my tomcat to start by itself whenever i restart my machine. any help will be greatly appreciated. thanx in advance, sumit Find the best deals on the web at AltaVista Shopping! http://www.shopping.altavista.com
RE: tomcat as an NT service.
In your install directory look for NT-Service-howto.html in the doc subdirectory. -Original Message- From: Sumit Ranjan [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 12:05 AM To: [EMAIL PROTECTED] Subject: tomcat as an NT service. hi all ! how can i run my tomcat (3.2.2 in this case ) as an NT service ? i mean , i want my tomcat to start by itself whenever i restart my machine. any help will be greatly appreciated. thanx in advance, sumit
RE: tomcat as an NT service.
I can't find this NT-Service-howto.html in Tomcat 3.x or Tomcat 4.x? regards -Original Message- From: Nirmal Rajarathnam [SMTP:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 1:33 PM To: [EMAIL PROTECTED] Subject: RE: tomcat as an NT service. In your install directory look for NT-Service-howto.html in the doc subdirectory. -Original Message- From: Sumit Ranjan [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 12:05 AM To: [EMAIL PROTECTED] Subject: tomcat as an NT service. hi all ! how can i run my tomcat (3.2.2 in this case ) as an NT service ? i mean , i want my tomcat to start by itself whenever i restart my machine. any help will be greatly appreciated. thanx in advance, sumit
RE: tomcat as an NT service.
check this link http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.html -Original Message- From: Lin, Zhongwu [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 11:58 AM To: '[EMAIL PROTECTED]' Subject: RE: tomcat as an NT service. I can't find this NT-Service-howto.html in Tomcat 3.x or Tomcat 4.x? regards -Original Message- From: Nirmal Rajarathnam [SMTP:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 1:33 PM To: [EMAIL PROTECTED] Subject: RE: tomcat as an NT service. In your install directory look for NT-Service-howto.html in the doc subdirectory. -Original Message- From: Sumit Ranjan [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 12:05 AM To: [EMAIL PROTECTED] Subject: tomcat as an NT service. hi all ! how can i run my tomcat (3.2.2 in this case ) as an NT service ? i mean , i want my tomcat to start by itself whenever i restart my machine. any help will be greatly appreciated. thanx in advance, sumit
Runing Tomcat as a NT Service with JDK1.3.1 - problem solved
Hi, I´ve been working on the problem of using jk_nt_service with jdk1.3, the problem described on the documentation for Tomcat 3.2.3 and also for th 3.3, and after a day of trying several ways to run Tomcat as a service I´ve just discovered at Sun that the problem was solved with a command line parameter for the java.exe that preventes the LOGOFF Event of the NT from hanging he JVM. It´s just putting -Xrs at the command line at the end of wrapper.properties. Please, include this information on the documentation, it will save much time from people. Thank You []'s André Rosenzweig [EMAIL PROTECTED]
Re: Tomcat works as NT service when logging off in JDK1.3.1
The problem I've found however is that when you stop the Tomcat service, it takes longer to shut down than Windows expects. You get an annoying error message telling you it couldn't stop the service about half a minute or so before the service actually stops. Holden, Mark wrote: Tomcat can work as an NT service and doesn't die when logging off when using JDK1.3.1 and using the -Xrs switch. I checked my tomcat running as a service and it definately had the problem of dying when logging off. Then I change the line in my wrapper.properties to have the -Xrs switch like this. wrapper.cmd_line=$(wrapper.javabin) -Xrs -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) -home $(wrapper.tomcat_home) The problem then went away. I am running windows 2000 sp2 on a dual P3 550. I noticed that the documention for tomcat reads as this. Notice for JDK 1.3 users: There is a known problem http://developer.java.sun.com/developer/bugParade/bugs/4323062.html in JDK 1.3 that affects Java applications being run as Windows NT services. The bug causes the service to terminate when the currently logged in user logs out. The simplest way to work around this problem is to use JDK 1.2. If your application requires JDK 1.3 features then you may want to look into javaserv http://www.kcmultimedia.com/javaserv/ or JavaService http://www.alexandriasc.com/software/JavaService/. Users have reported success with both of these packages but there may be others that work as well. The bug was fixed in JDK1.3.1. You may want to update the documentation so that others can use this switch. Here is some documentation that came with JDK1.3.1... Bug 4323062: Any Windows NT Service embedding Java VM aborts when user logs out This bug has been fixed in J2SDK 1.3.1. In order to enable the fix, the -Xrs command-line option must be passed to the JVM. The additional command line argument is necessary because the fix necessarily disables the J2SDK 1.3 shutdown hooks mechanism and forbids the use of the sun.misc.Signal class. For more background, please see at least the last section of the evaluation on the Bug Parade: http://developer.java.sun.com/developer/bugParade/bugs/4323062.html Mark Holden [EMAIL PROTECTED] 952-324-0410
Tomcat works as NT service when logging off in JDK1.3.1
Tomcat can work as an NT service and doesn't die when logging off when using JDK1.3.1 and using the -Xrs switch. I checked my tomcat running as a service and it definately had the problem of dying when logging off. Then I change the line in my wrapper.properties to have the -Xrs switch like this. wrapper.cmd_line=$(wrapper.javabin) -Xrs -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) -home $(wrapper.tomcat_home) The problem then went away. I am running windows 2000 sp2 on a dual P3 550. I noticed that the documention for tomcat reads as this. Notice for JDK 1.3 users: There is a known problem http://developer.java.sun.com/developer/bugParade/bugs/4323062.html in JDK 1.3 that affects Java applications being run as Windows NT services. The bug causes the service to terminate when the currently logged in user logs out. The simplest way to work around this problem is to use JDK 1.2. If your application requires JDK 1.3 features then you may want to look into javaserv http://www.kcmultimedia.com/javaserv/ or JavaService http://www.alexandriasc.com/software/JavaService/. Users have reported success with both of these packages but there may be others that work as well. The bug was fixed in JDK1.3.1. You may want to update the documentation so that others can use this switch. Here is some documentation that came with JDK1.3.1... Bug 4323062: Any Windows NT Service embedding Java VM aborts when user logs out This bug has been fixed in J2SDK 1.3.1. In order to enable the fix, the -Xrs command-line option must be passed to the JVM. The additional command line argument is necessary because the fix necessarily disables the J2SDK 1.3 shutdown hooks mechanism and forbids the use of the sun.misc.Signal class. For more background, please see at least the last section of the evaluation on the Bug Parade: http://developer.java.sun.com/developer/bugParade/bugs/4323062.html Mark Holden [EMAIL PROTECTED] 952-324-0410
RE: Tomcat as an NT Service, in win 2000
The most common reasons for this is spaces in the paths of TOMCAT_HOME and JAVA_HOME. Other possibilities are classpath errors (not finding a critical class) and bind errors (something else running on the port Tomcat wants). Randy -Original Message- From: Govind Agarwal [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 12:18 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat as an NT Service, in win 2000 This happens when the Wrapper.properties file is not configured properly. Check for all the path mentioned in your properties file and then try to run it again. otherwise try to run the Tomcat.bat file in the bin folder or run the command mentioned at the end of wrapper.properties file. executing this might give u some user friendly error message if any. -Original Message- From: Henry Kozachkov [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 6:36 AM To: [EMAIL PROTECTED] Subject: Tomcat as an NT Service, in win 2000 Will the instructions for NT service work in win 2000. I don't know if this is a bug or not, but under win 2k, I get C:\net start tomcat The Tomcat service is starting. The Tomcat service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. after following the instructions at http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.html to the letter. This isn't a request for help, I just want to know if it is a known bug. Henry
Tomcat as an NT Service, in win 2000
Will the instructions for NT service work in win 2000. I don't know if this is a bug or not, but under win 2k, I get C:\net start tomcatThe Tomcat service is starting.The Tomcat service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. after following the instructions at http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.htmlto the letter. This isn't a request for help, I just want to know if it is a known bug. Henry
RE: Tomcat as an NT Service, in win 2000
This happens whenthe Wrapper.properties file is not configured properly. Check for all the path mentioned in your properties file and then try to run it again. otherwise try to run the Tomcat.bat file in the bin folder or run the command mentioned at the end of wrapper.properties file. executing this might give u some user friendly error message if any. -Original Message-From: Henry Kozachkov [mailto:[EMAIL PROTECTED]]Sent: Friday, July 06, 2001 6:36 AMTo: [EMAIL PROTECTED]Subject: Tomcat as an NT Service, in win 2000 Will the instructions for NT service work in win 2000. I don't know if this is a bug or not, but under win 2k, I get C:\net start tomcatThe Tomcat service is starting.The Tomcat service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. after following the instructions at http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.htmlto the letter. This isn't a request for help, I just want to know if it is a known bug. Henry
Tomcat 4.0 as NT service
I have done a research on running Tomcat 4.0 as a service on NT. Here is my wrapper.properties wrapper.properties Ammend this file and follow instruction for version 3.2 Regards Jan __ Tato komunikace je urcena vyhradne pro adresata a je duverna. This communication is intended solely for the addressee and is confidential. wrapper.properties
RE: Run Tomcat as a NT Service Problem
You can get the XERCES XML parser from the Apache web site: xml.apache.org I am not sure about Tomcat-4.0-b5 but Tomcat 3.2.1 will not run without this xml parser xerces.jar. wrapper.properties is part of the tomcat zip file for version 3.2.1 . I am not sure how they set tomcat up as a service for version 4.0 if a wrapper.properties file is not being used. ron -Original Message- From: Pernica, Jan [mailto:[EMAIL PROTECTED]] Sent: Friday, May 25, 2001 12:56 AM To: [EMAIL PROTECTED] Subject: RE: Run Tomcat as a NT Service Problem Hi I am using Tomcat-4.0-b5. What shall I do to run as an NT service? wrapper.properties is missing. Thank you Jan On Friday, May 25, 2001 3:49 AM, Huynh Tin [SMTP:[EMAIL PROTECTED]] wrote: Dear Louzon, Thank you for your information, but i didn't have xerces.jar ...This file not existed in Jboss-Tomcat2.2 ! What i need to do . Thank you ! I'm using JDK1.3, JBoss-Tomcat2.2 Best regards ! Huynh Tin - Original Message - From: Ronald G. Louzon mailto:[EMAIL PROTECTED] To: '[EMAIL PROTECTED]' mailto:'[EMAIL PROTECTED]' Sent: Thursday, May 24, 2001 8:42 PM Subject: RE: Run Tomcat as a NT Service Problem It sounds like you don't have xerces.jar as the first thing on your classpath. To make this the first thing on your classpath: 1) Edit the file %TOMCAT_HOME%\conf\wrapper.properties 2) You see some lines in this file that start with wrapper.classpath. Before the first of those lines, add a line wrapper.classpath=full path and filespec for xerces.jar 3) Restart the service and see if things are better. Also, be aware that if you are using the jk_nt_service.exe wrapper for your NT service, and if you are using version 1.3 of the JVM, when you log out of NT, the service will be stopped. I had to use JavaService.exe to get around this problem. -Original Message- From: Huynh Tin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 11:23 PM To: [EMAIL PROTECTED] Subject: Run Tomcat as a NT Service Problem Hi all , I used jk_nt_service.exe to add Tomcat like NT service . I finished adding Tomcat into a NT service named TomcatService. I went to Control Panel to start TomcatService It started ok , but also stoped after started. What's happen. In logs dicrectory generate file named jvm.stderr and it's content as follow: java.lang.NoClassDefFoundError: org/xml/sax/HandlerBase at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:178) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Exception in thread main Anyway, in conf\server.xml file, i also didn't know how to define AJPV12 connector. There are not any information about AJPV12 in this server.xml file. How could i do it ? Anybody help me , what's this error , how could i fix it ?? Thank you Huynh Tin __ Tato komunikace je urcena vyhradne pro adresata a je duverna. This communication is intended solely for the addressee and is confidential.
RE: Run Tomcat as a NT Service Problem
It sounds like you don't have "xerces.jar" as the first thing on your classpath. To make this the first thing on your classpath: 1) Edit the file %TOMCAT_HOME%\conf\wrapper.properties 2) You see some lines in this file that start with "wrapper.classpath". Before the first of those lines, add a line wrapper.classpath=full path and filespec for xerces.jar 3) Restart the service and see if things are better. Also, be aware that if you are using the jk_nt_service.exe wrapper for your NT service, and if you are using version 1.3 of the JVM, when you log out of NT, the service will be stopped. I had to use JavaService.exe to get around this problem. -Original Message-From: Huynh Tin [mailto:[EMAIL PROTECTED]]Sent: Wednesday, May 23, 2001 11:23 PMTo: [EMAIL PROTECTED]Subject: Run Tomcat as a NT Service Problem Hi all , I used jk_nt_service.exe to add Tomcat like NT service . I finished adding Tomcat into a NT service named TomcatService. I went to Control Panel to start TomcatService It started ok , but also stoped after started. What's happen. In "logs" dicrectory generate file named "jvm.stderr" and it's content as follow: java.lang.NoClassDefFoundError: org/xml/sax/HandlerBase at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:178) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Exception in thread "main" Anyway, in "conf\server.xml" file, i also didn't know how to define AJPV12 connector. There are not any information about AJPV12 in this "server.xml" file. How could i do it ? Anybody help me , what's this error , how could i fix it ?? Thank you Huynh Tin
Re: Run Tomcat as a NT Service Problem
Dear Louzon, Thank you for your information, but i didn't have "xerces.jar" ...This file not existed in Jboss-Tomcat2.2 ! What i need to do . Thank you ! I'm using JDK1.3, JBoss-Tomcat2.2 Best regards ! Huynh Tin - Original Message - From: Ronald G. Louzon To: '[EMAIL PROTECTED]' Sent: Thursday, May 24, 2001 8:42 PM Subject: RE: Run Tomcat as a NT Service Problem It sounds like you don't have "xerces.jar" as the first thing on your classpath. To make this the first thing on your classpath: 1) Edit the file %TOMCAT_HOME%\conf\wrapper.properties 2) You see some lines in this file that start with "wrapper.classpath". Before the first of those lines, add a line wrapper.classpath=full path and filespec for xerces.jar 3) Restart the service and see if things are better. Also, be aware that if you are using the jk_nt_service.exe wrapper for your NT service, and if you are using version 1.3 of the JVM, when you log out of NT, the service will be stopped. I had to use JavaService.exe to get around this problem. -Original Message-From: Huynh Tin [mailto:[EMAIL PROTECTED]]Sent: Wednesday, May 23, 2001 11:23 PMTo: [EMAIL PROTECTED]Subject: Run Tomcat as a NT Service Problem Hi all , I used jk_nt_service.exe to add Tomcat like NT service . I finished adding Tomcat into a NT service named TomcatService. I went to Control Panel to start TomcatService It started ok , but also stoped after started. What's happen. In "logs" dicrectory generate file named "jvm.stderr" and it's content as follow: java.lang.NoClassDefFoundError: org/xml/sax/HandlerBase at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:178) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Exception in thread "main" Anyway, in "conf\server.xml" file, i also didn't know how to define AJPV12 connector. There are not any information about AJPV12 in this "server.xml" file. How could i do it ? Anybody help me , what's this error , how could i fix it ?? Thank you Huynh Tin
RE: Run Tomcat as a NT Service Problem
Hi I am using Tomcat-4.0-b5. What shall I do to run as an NT service? wrapper.properties is missing. Thank you Jan On Friday, May 25, 2001 3:49 AM, Huynh Tin [SMTP:[EMAIL PROTECTED]] wrote: Dear Louzon, Thank you for your information, but i didn't have xerces.jar ...This file not existed in Jboss-Tomcat2.2 ! What i need to do . Thank you ! I'm using JDK1.3, JBoss-Tomcat2.2 Best regards ! Huynh Tin - Original Message - From: Ronald G. Louzon mailto:[EMAIL PROTECTED] To: '[EMAIL PROTECTED]' mailto:'[EMAIL PROTECTED]' Sent: Thursday, May 24, 2001 8:42 PM Subject: RE: Run Tomcat as a NT Service Problem It sounds like you don't have xerces.jar as the first thing on your classpath. To make this the first thing on your classpath: 1) Edit the file %TOMCAT_HOME%\conf\wrapper.properties 2) You see some lines in this file that start with wrapper.classpath. Before the first of those lines, add a line wrapper.classpath=full path and filespec for xerces.jar 3) Restart the service and see if things are better. Also, be aware that if you are using the jk_nt_service.exe wrapper for your NT service, and if you are using version 1.3 of the JVM, when you log out of NT, the service will be stopped. I had to use JavaService.exe to get around this problem. -Original Message- From: Huynh Tin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 11:23 PM To: [EMAIL PROTECTED] Subject: Run Tomcat as a NT Service Problem Hi all , I used jk_nt_service.exe to add Tomcat like NT service . I finished adding Tomcat into a NT service named TomcatService. I went to Control Panel to start TomcatService It started ok , but also stoped after started. What's happen. In logs dicrectory generate file named jvm.stderr and it's content as follow: java.lang.NoClassDefFoundError: org/xml/sax/HandlerBase at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:178) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Exception in thread main Anyway, in conf\server.xml file, i also didn't know how to define AJPV12 connector. There are not any information about AJPV12 in this server.xml file. How could i do it ? Anybody help me , what's this error , how could i fix it ?? Thank you Huynh Tin __ Tato komunikace je urcena vyhradne pro adresata a je duverna. This communication is intended solely for the addressee and is confidential.
Run Tomcat as a NT Service Problem
Hi all , I used jk_nt_service.exe to add Tomcat like NT service . I finished adding Tomcat into a NT service named TomcatService. I went to Control Panel to start TomcatService It started ok , but also stoped after started. What's happen. In "logs" dicrectory generate file named "jvm.stderr" and it's content as follow: java.lang.NoClassDefFoundError: org/xml/sax/HandlerBase at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:178) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Exception in thread "main" Anyway, in "conf\server.xml" file, i also didn't know how to define AJPV12 connector. There are not any information about AJPV12 in this "server.xml" file. How could i do it ? Anybody help me , what's this error , how could i fix it ?? Thank you Huynh Tin
Running Tomcat as an NT Service
When running Tomcat as a Windows NT service, the NT wrapper jk_nt_service.exe must be installed and run instead of using the startup batch file. It appears that the jk_nt_service application reads its entire configuration from the wrapper.properties file. What this means is that the classes and jar files under WEB-INF/classes and WEB-INF/lib are not automatically loaded for a servlet. Instead, they must all be added manually in the wrapper.properties file. Has anyone else run Tomcat as an NT Service and seen this same behaviour? If this behaviour is correct, why is so much functionality lost when running with the wrapper service? Thanks, ron
Re: Running Tomcat as an NT Service
I run it as a service on win2000 and don't have this problem. I simply modified the first 2 lines of wrapper.properties like specified, and everything else gets picked up from server.xml or web.xml in my directory. Eric Lubin T/L 443-6954 External: 561-443-6954 Notes ID: elubin@ibmusm20External: [EMAIL PROTECTED] Ronald G. Louzon [EMAIL PROTECTED] on 05/21/2001 08:34:58 AM Please respond to [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] cc: Subject: Running Tomcat as an NT Service When running Tomcat as a Windows NT service, the NT wrapper jk_nt_service.exe must be installed and run instead of using the startup batch file. It appears that the jk_nt_service application reads its entire configuration from the wrapper.properties file. What this means is that the classes and jar files under WEB-INF/classes and WEB-INF/lib are not automatically loaded for a servlet. Instead, they must all be added manually in the wrapper.properties file. Has anyone else run Tomcat as an NT Service and seen this same behaviour? If this behaviour is correct, why is so much functionality lost when running with the wrapper service? Thanks, ron
RE: Running Tomcat as an NT Service
I currently have the following 2 system environment variables (I double checked to be sure there were no USER environment variables of the same name): JAVA_HOME=jdk1.3 TOMCAT_HOME=c:\MCA5.5\tomcat-3.2.1 In the wrapper.properties file, I have made the mods: wrapper.tomcat_home=C:\MCA5.5\tomcat-3.2.1 wrapper.java_home=C:\jdk1.3 In the Server.XML file, which is in c:\MCA5.5\tomcat-3.2.1\conf, I have added the context: Context path=/soap docBase=C:\MCA5.5\tomcat-3.2.1\webapps\soap debug=1 reloadable=true /Context And, in the c:\MCA5.5\tomcat-3.2.1\webapps\soap\WEB-INF\classes directory, I have added all of my classes. The class directory structure has been reproduced under the directory and the classes are actually in the directory c:\MCA5.5\tomcat-3.2.1\webapps\soap\WEB-INF\classes\samples\addressbook When I run Tomcat as a service, it knows the context soap is there but it cannot find any of the class files. If I add the following line to worker.properties, everything works fine: wrapper.class_path=$(wrapper.tomcat_home)\webapps\soap\WEB-INF\classes Is there something else I need to configure? thanks, ron -Original Message- From: Hunor Nam [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 10:23 AM To: [EMAIL PROTECTED] Subject: RE: Running Tomcat as an NT Service just make sure that your enviroment varibles are set for SYSTEM !!! not for USER varables Hades -Original Message- From: Ronald G. Louzon [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 3:35 PM To: '[EMAIL PROTECTED]' Subject: Running Tomcat as an NT Service When running Tomcat as a Windows NT service, the NT wrapper jk_nt_service.exe must be installed and run instead of using the startup batch file. It appears that the jk_nt_service application reads its entire configuration from the wrapper.properties file. What this means is that the classes and jar files under WEB-INF/classes and WEB-INF/lib are not automatically loaded for a servlet. Instead, they must all be added manually in the wrapper.properties file. Has anyone else run Tomcat as an NT Service and seen this same behaviour? If this behaviour is correct, why is so much functionality lost when running with the wrapper service? Thanks, ron
RE: Running Tomcat as an NT Service
I have found my problem. It was being caused by some classes being loaded by the system class loader and other files being loaded by the servlet class loader. By adding the servlet jar files to wrapper.properties, they were being loaded by the system class loader. But, they could not find any of the servlet supporting classes because these classes, which were in the classes directory of the servlet's context, were being loaded by the servlet class loader. When I removed all of my entries from wrapper.properties and put the jars into the lib directory under my servlet's context, everything worked. - ron -Original Message- From: Hunor Nam [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 10:23 AM To: [EMAIL PROTECTED] Subject: RE: Running Tomcat as an NT Service just make sure that your enviroment varibles are set for SYSTEM !!! not for USER varables Hades -Original Message- From: Ronald G. Louzon [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 3:35 PM To: '[EMAIL PROTECTED]' Subject: Running Tomcat as an NT Service When running Tomcat as a Windows NT service, the NT wrapper jk_nt_service.exe must be installed and run instead of using the startup batch file. It appears that the jk_nt_service application reads its entire configuration from the wrapper.properties file. What this means is that the classes and jar files under WEB-INF/classes and WEB-INF/lib are not automatically loaded for a servlet. Instead, they must all be added manually in the wrapper.properties file. Has anyone else run Tomcat as an NT Service and seen this same behaviour? If this behaviour is correct, why is so much functionality lost when running with the wrapper service? Thanks, ron
Tomcat as an NT service
I am attempting to run tomcat as a service and run into the following error. After running the jk_nt_service.exe program with the correct parameters NT will not allow me to start the service. The response I get from jk_nt_service.exe is the following: -- C:\Program Files\jakarta-tomcat-3.2.1\binjk_nt_service.exe -i Jakarta-Tomcat C:\Program Files\jakarta-tomcat-3.2.1\conf\wrapper.properties Asked (and given) winsock 1.1 The service named Jakarta-Tomcat was created. Now adding registry entries Registry values were added If you have already updated wrapper.properties you may start the Jakarta-Tomcat service by executing net start Jakarta-Tomcat from the command prompt -- It appears that the service was installed successfully and the service appears in the services applet. When I try to start it, either from the command line or the applet it fails, but doesn't give an error message: -- C:\Program Files\jakarta-tomcat-3.2.1\binnet start Jakarta-Tomcat The Jakarta-Tomcat service is starting. The Jakarta-Tomcat service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. C:\Program Files\jakarta-tomcat-3.2.1\binnet helpmsg 3534 The service did not report an error. EXPLANATION The service did not report an error. ACTION Try the task later. If the problem persists, contact your network administrator. -- I double checked the wrapper.properties file to make sure I updated it correctly. Here are those updated values: -- wrapper.tomcat_home=C:\Program Files\jakarta-tomcat-3.2.1 wrapper.java_home=C:\jdk1.3.1 -- Has anyone encountered this problem before? Thanks to any help, Jeff Payne
RE: Tomcat as an NT service
Has anyone encountered this problem before? Yes. I'm pretty sure I was able to start the service via the Control Panel / Services dialog. I was able to stop it via the command line, but got the same error you're encountering when attempting to start it via the command line. Sorry, but I don't have a solution for you. -T -Original Message- From: JEFF SCOTT PAYNE [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 8:28 PM To: [EMAIL PROTECTED] Subject: Tomcat as an NT service I am attempting to run tomcat as a service and run into the following error. After running the jk_nt_service.exe program with the correct parameters NT will not allow me to start the service. The response I get from jk_nt_service.exe is the following: -- C:\Program Files\jakarta-tomcat-3.2.1\binjk_nt_service.exe -i Jakarta-Tomcat C:\Program Files\jakarta-tomcat-3.2.1\conf\wrapper.properties Asked (and given) winsock 1.1 The service named Jakarta-Tomcat was created. Now adding registry entries Registry values were added If you have already updated wrapper.properties you may start the Jakarta-Tomcat service by executing net start Jakarta-Tomcat from the command prompt -- It appears that the service was installed successfully and the service appears in the services applet. When I try to start it, either from the command line or the applet it fails, but doesn't give an error message: -- C:\Program Files\jakarta-tomcat-3.2.1\binnet start Jakarta-Tomcat The Jakarta-Tomcat service is starting. The Jakarta-Tomcat service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. C:\Program Files\jakarta-tomcat-3.2.1\binnet helpmsg 3534 The service did not report an error. EXPLANATION The service did not report an error. ACTION Try the task later. If the problem persists, contact your network administrator. -- I double checked the wrapper.properties file to make sure I updated it correctly. Here are those updated values: -- wrapper.tomcat_home=C:\Program Files\jakarta-tomcat-3.2.1 wrapper.java_home=C:\jdk1.3.1 -- Has anyone encountered this problem before? Thanks to any help, Jeff Payne
installing tomcat as an NT service on windows 2000
How can I install tomcat as an NT service on windows 2000 ?
Re: installing tomcat as an NT service on windows 2000
Hope this helps, http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/NT-Service-howto.html Brent At 01:17 AM 4/20/2001 , you wrote: How can I install tomcat as an NT service on windows 2000 ?
Starting tomcat as an NT Service
Hi, I'm running tomcat on NT 4 workstation. I installed it as a service using jk_nt_service.exe. It installed perfectly without a hitch. However, when I modified the service to start automatically it doesn't want to cooperate. Whenever I log off the service dies and when I log in again I have to restart it manually even though "automatic" is selected. Have you ever seen this problem before? Any thoughts on how I might overcome this problem? Thanks much, Scott Eversole - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Starting tomcat as an NT Service
Which JDK version are you using ? -Original Message- From: Scott Eversole [mailto:[EMAIL PROTECTED]] Sent: jeudi 22 fvrier 2001 17:14 To: '[EMAIL PROTECTED]' Subject: Starting tomcat as an NT Service Hi, I'm running tomcat on NT 4 workstation. I installed it as a service using jk_nt_service.exe. It installed perfectly without a hitch. However, when I modified the service to start automatically it doesn't want to cooperate. Whenever I log off the service dies and when I log in again I have to restart it manually even though "automatic" is selected. Have you ever seen this problem before? Any thoughts on how I might overcome this problem? Thanks much, Scott Eversole - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Starting tomcat as an NT Service
This is almost certainly the infamous JDK1.3 bug. It has been discussed *lots* of times on this list (search the archives or read the documentation at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/NT-Service-howto.htm l). -Original Message- From: Scott Eversole [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 10:14 AM To: '[EMAIL PROTECTED]' Subject: Starting tomcat as an NT Service Hi, I'm running tomcat on NT 4 workstation. I installed it as a service using jk_nt_service.exe. It installed perfectly without a hitch. However, when I modified the service to start automatically it doesn't want to cooperate. Whenever I log off the service dies and when I log in again I have to restart it manually even though "automatic" is selected. Have you ever seen this problem before? Any thoughts on how I might overcome this problem? Thanks much, Scott Eversole - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Autoreply: RE: Starting tomcat as an NT Service
This is not a valid address at SNL Securities (http://www.snl.com). Please remove him/her from your mailing list or address book. Your message reads: Received: from snlexch.snl.com (unverified [10.0.1.9]) by mail.snl.com (Rockliffe SMTPRA 4.5.4) with ESMTP id [EMAIL PROTECTED] for [EMAIL PROTECTED]; Thu, 22 Feb 2001 15:13:45 -0500 Received: by SNLEXCH with Internet Mail Service (5.5.2653.19) id F3WAVKWL; Thu, 22 Feb 2001 15:11:26 -0500 Received: from mail.snl.com (SNLDMZBDC [10.0.0.7]) by snlexch.snl.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id F3WAVKWJ; Thu, 22 Feb 2001 15:11:22 -0500 Received: from apache.org (unverified [64.208.42.41]) by mail.snl.com (Rockliffe SMTPRA 4.5.4) with SMTP id [EMAIL PROTECTED] for [EMAIL PROTECTED]; Thu, 22 Feb 2001 15:13:41 -0500 Received: (qmail 95136 invoked by uid 500); 22 Feb 2001 16:43:52 - Received: (qmail 95127 invoked from network); 22 Feb 2001 16:43:51 - Received: from unknown (HELO mail.apropos.com) (198.63.198.2) by h31.sny.collab.net with SMTP; 22 Feb 2001 16:43:51 - Received: from MSAEGESSERLPT (10.1.16.1 [10.1.16.1]) by mail.apropos.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 15K1DAH5; Thu, 22 Feb 2001 10:42:34 -0600 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk Reply-To: [EMAIL PROTECTED] list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] list-post: mailto:[EMAIL PROTECTED] Delivered-To: mailing list [EMAIL PROTECTED] From: "Marc Saegesser" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Starting tomcat as an NT Service Date: Thu, 22 Feb 2001 10:43:25 -0600 Message-ID: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: 6DEE0F579FB9D411BC9100508B44CFD25506AD@DAL-02-MSG X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This is almost certainly the infamous JDK1.3 bug. It has been discussed *lots* of times on this list (search the archives or read the documentation at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/NT-Service-howto.htm l). -Original Message- From: Scott Eversole [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 10:14 AM To: '[EMAIL PROTECTED]' Subject: Starting tomcat as an NT Service Hi, I'm running tomcat on NT 4 workstation. I installed it as a service using jk_nt_service.exe. It installed perfectly without a hitch. However, when I modified the service to start automatically it doesn't want to cooperate. Whenever I log off the service dies and when I log in again I have to restart it manually even though "automatic" is selected. Have you ever seen this problem before? Any thoughts on how I might overcome this problem? Thanks much, Scott Eversole - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat 3.2.1 as NT-service
Hello, I have problems to start Tomcat as NT-Service: NT-4.0 Server, Sp6a, IIS 4.0 (german) I can start it manualy without problems. I also can install the service, but when executing it, Tomcat is not started. NT gives not detailled message. Can you help? Regards, Herbert Peters [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Tomcat 3.2.1 as NT-service
Maybe the problem is in the wrapper.propertis in the entries of the wrapper.tomcat_home=E:\tomcat wrapper.java_home=E:\jdk1.2 in the example of the file it looks like this wrapper.tomcat_home=E:\tomcat\tomcat wrapper.java_home=E:\jdk1.2 you should get rid from the "" -Original Message- From: Herbert Peters, GRUENE [mailto:[EMAIL PROTECTED]] Sent: Tue, February 13, 2001 6:28 PM To: [EMAIL PROTECTED] Subject: Tomcat 3.2.1 as NT-service Hello, I have problems to start Tomcat as NT-Service: NT-4.0 Server, Sp6a, IIS 4.0 (german) I can start it manualy without problems. I also can install the service, but when executing it, Tomcat is not started. NT gives not detailled message. Can you help? Regards, Herbert Peters [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Running Tomcat as an NT Service Problem....
Dear users, I have installed tomcat and I am running it as an NT service and I am running it with IIS. Everything is working fine. I set the Jakarta service to run as the system(default) but when i log off the box the service stops running. I don't know why the service would stop when I log off the box? I intalled the service when I was logged in as administrator. Has anybody runn accross this happening to them before? Please help me out, I would really appreciate it. Thanks for your time, Corey Drew. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Running Tomcat as an NT Service Problem....
You are using JDK 1.3. This is a known issue with that version of the JDK. You have two options. 1. Use JDK1.2 (might not be possible depending upon your application) 2. Find one of the wrappers for JDK1.3 that trap the user logged off signal. Search the mailing list archives to find one of these (this is a VERY common question). Randy Before you ask, the a link to the mail list archives are available at the same place on the Jakarta website where you signed up for the mailing list. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 4:26 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Running Tomcat as an NT Service Problem Dear users, I have installed tomcat and I am running it as an NT service and I am running it with IIS. Everything is working fine. I set the Jakarta service to run as the system(default) but when i log off the box the service stops running. I don't know why the service would stop when I log off the box? I intalled the service when I was logged in as administrator. Has anybody runn accross this happening to them before? Please help me out, I would really appreciate it. Thanks for your time, Corey Drew. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Running Tomcat as an NT Service Problem....
Corey, There is a bug in the JDK 1.3 that causes this. Your options are: use JDK1.2.2, wait for JDK1.3.1, or use an NT service that runs your code through JNI calls like jsrvany or javaserv. John [EMAIL PROTECTED] wrote: Dear users, I have installed tomcat and I am running it as an NT service and I am running it with IIS. Everything is working fine. I set the Jakarta service to run as the system(default) but when i log off the box the service stops running. I don't know why the service would stop when I log off the box? I intalled the service when I was logged in as administrator. Has anybody runn accross this happening to them before? Please help me out, I would really appreciate it. Thanks for your time, Corey Drew. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat as an NT service
Hello, I have the following trouble with Tomcat 3.1 running as a NT service (using the JK_NT_service.exe program). Even though the service is running under the system account, when I log off the current NT user, the service dies. When I log on again, it is stopped, I have to start it manually. It should be one the NT service advantages that when the NT user logs off, the service is still working. I am not absolutely sure, but the same problem seems to appear with Tomcat 3.2. Any ideas? Marek Bezpalec
RE: Tomcat as an NT service
Are you using JDK 1.3 ? This is a known bug. I'm not sure it was already corrected. Try the newest or JDK1.2.2 that sure works. Wellington -Original Message- From: Bezpalec, Marek [mailto:[EMAIL PROTECTED]] Sent: 06 December 2000 11:13 To: '[EMAIL PROTECTED]' Subject:Tomcat as an NT service Hello, I have the following trouble with Tomcat 3.1 running as a NT service (using the JK_NT_service.exe program). Even though the service is running under the system account, when I log off the current NT user, the service dies. When I log on again, it is stopped, I have to start it manually. It should be one the NT service advantages that when the NT user logs off, the service is still working. I am not absolutely sure, but the same problem seems to appear with Tomcat 3.2. Any ideas? Marek Bezpalec
RE: Tomcat as an NT service
This is a FAQ. It is a problem with JDK 1.3 - not Tomcat. Apparently reverting to 1.2x is the solution...gack -Original Message- From: Bezpalec, Marek [mailto:[EMAIL PROTECTED]] Sent: 06 December 2000 10:13 To: '[EMAIL PROTECTED]' Subject: Tomcat as an NT service Hello, I have the following trouble with Tomcat 3.1 running as a NT service (using the JK_NT_service.exe program). Even though the service is running under the system account, when I log off the current NT user, the service dies. When I log on again, it is stopped, I have to start it manually. It should be one the NT service advantages that when the NT user logs off, the service is still working. I am not absolutely sure, but the same problem seems to appear with Tomcat 3.2. Any ideas? Marek Bezpalec
tomcat as an NT service
Title: tomcat as an NT service hi. i'm having trouble finding the jk_nt_service.exe file. i've seen a couple messages talking about problems with jdk1.3 and log-on/log-off, but this is a issue i'm prepared to deal with (prolly with an auto-logon). can you point me to the file, or point out any alternatives? thanks a bunch, ./paul softwax freight elevator quartet http://www.fe4.com
RE: tomcat as an NT service
Title: tomcat as an NT service http://jakarta.apache.org/builds/tomcat/release/v3.2-beta-8/bin/win32/i386/ HTH. Shad -Original Message-From: Paul Feuer [mailto:[EMAIL PROTECTED]]Sent: Wednesday, November 29, 2000 1:54 PMTo: '[EMAIL PROTECTED]'Subject: tomcat as an NT service hi. i'm having trouble finding the jk_nt_service.exe file. i've seen a couple messages talking about problems with jdk1.3 and log-on/log-off, but this is a issue i'm prepared to deal with (prolly with an auto-logon). can you point me to the file, or point out any alternatives? thanks a bunch, ./paul softwax freight elevator quartet http://www.fe4.com
RE: tomcat as an NT service
Title: RE: tomcat as an NT service oops. nevermind. i found it in the cvs archive ./paul -Original Message- From: Paul Feuer Sent: Wednesday, November 29, 2000 1:54 PM To: '[EMAIL PROTECTED]' Subject: tomcat as an NT service hi. i'm having trouble finding the jk_nt_service.exe file. i've seen a couple messages talking about problems with jdk1.3 and log-on/log-off, but this is a issue i'm prepared to deal with (prolly with an auto-logon). can you point me to the file, or point out any alternatives? thanks a bunch, ./paul softwax freight elevator quartet http://www.fe4.com
Tomcat as an NT service - stop when logging out
I have installed Tomcat as an NT service. If I restart my server, Tomcat starts up and works. If I log in, Tomcat continues running. However if I log out, the Tomcat service stops and if I log back in, it is still stopped. I can manually start it from this point with no problems, but again if I log out it stops. If I restart NT, then Tomcat is started when NT comes back up. Is this a known problem or could you offer any insight as to why it happens? Thanks, Geoff Moriak [EMAIL PROTECTED] ___ Say Bye to Slow Internet! http://www.home.com/xinbox/signup.html
RE: Tomcat as an NT service - stop when logging out
On Wednesday November 01, 2000 Willie Wheeler wrote: Yeah, that is correct. It is a Java 1.3 problem. Last time I checked it was the one with the most Bug Parade votes but I guess that they haven't fixed it yet. Arrghh... I think it's likely that this bug will not be fixed for some time, as it could also be considered a NT bug. NT sends a service a logoff message to a running program (ie java.exe) when the current user logs off. Java.exe shuts down when it receives the message, as it should normally. The problem is that NT sends the logoff message also when java.exe runs as a service process, so it shuts down. The only solution is to not use java.exe to run java applications as a service, but use JNI to create a service process instead. I have a Java service program that allows Tomcat to run under JDK1.3 without the logoff problem that anyone is free to have/use/whatever. It's located at: http://www.alexandriasc.com/software/JavaService Elijah Roberts [EMAIL PROTECTED]
Re:RE: Tomcat as an NT service - stop when logging out
That's right, it's still on top. Why don't we go to http://developer.java.sun.com/developer/bugParade/bugs/4323062.html and vote massively for it ? bye diego. -- Diego Rodrigo Vates S.A. [EMAIL PROTECTED] +54(11)4346-6658 Reply Separator Subject:RE: Tomcat as an NT service - stop when logging out Author: [EMAIL PROTECTED] Date: 01/11/2000 8:56 PM Yeah, that is correct. It is a Java 1.3 problem. Last time I checked it was the one with the most Bug Parade votes but I guess that they haven't fixed it yet. Arrghh... Willie -Original Message- From: CPC Livelink Admin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 01, 2000 2:41 PM To: [EMAIL PROTECTED] Subject: RE: Tomcat as an NT service - stop when logging out I believe this is a known behaviour of Java 1.3 - switch to a 1.2 rev. -Original Message- From: Geoff Moriak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 01, 2000 01:51 PM To: [EMAIL PROTECTED] Subject: Tomcat as an NT service - stop when logging out I have installed Tomcat as an NT service. If I restart my server, Tomcat starts up and works. If I log in, Tomcat continues running. However if I log out, the Tomcat service stops and if I log back in, it is still stopped. I can manually start it from this point with no problems, but again if I log out it stops. If I restart NT, then Tomcat is started when NT comes back up. Is this a known problem or could you offer any insight as to why it happens? Thanks, Geoff Moriak [EMAIL PROTECTED] ___ Say Bye to Slow Internet! http://www.home.com/xinbox/signup.html
Re:RE: Tomcat as an NT service - stop when logging out
I've been using Elijah's service manager and it works very fine, I am very pleased with it, but ... let's face it, this behavior is still a bug. I mean, if Sun really wants Java to gain share on the server side, this *bug* is a big hole !!! Your service is a wonderful workaround, but Sun should have worked that out. (thank you Elijah) bye diego. -- Diego Rodrigo Vates S.A. [EMAIL PROTECTED] +54(11)4346-6658 Reply Separator Subject:RE: Tomcat as an NT service - stop when logging out Author: [EMAIL PROTECTED] Date: 01/11/2000 9:16 PM On Wednesday November 01, 2000 Willie Wheeler wrote: Yeah, that is correct. It is a Java 1.3 problem. Last time I checked it was the one with the most Bug Parade votes but I guess that they haven't fixed it yet. Arrghh... I think it's likely that this bug will not be fixed for some time, as it could also be considered a NT bug. NT sends a service a logoff message to a running program (ie java.exe) when the current user logs off. Java.exe shuts down when it receives the message, as it should normally. The problem is that NT sends the logoff message also when java.exe runs as a service process, so it shuts down. The only solution is to not use java.exe to run java applications as a service, but use JNI to create a service process instead. I have a Java service program that allows Tomcat to run under JDK1.3 without the logoff problem that anyone is free to have/use/whatever. It's located at: http://www.alexandriasc.com/software/JavaService Elijah Roberts [EMAIL PROTECTED]
RE: Tomcat as an NT service - stop when logging out
Thanks for that...I have it bookmarked, as this fills a real need. :-) Willie -Original Message- From: Elijah Roberts [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 01, 2000 3:10 PM To: [EMAIL PROTECTED] Subject: RE: Tomcat as an NT service - stop when logging out On Wednesday November 01, 2000 Willie Wheeler wrote: Yeah, that is correct. It is a Java 1.3 problem. Last time I checked it was the one with the most Bug Parade votes but I guess that they haven't fixed it yet. Arrghh... I think it's likely that this bug will not be fixed for some time, as it could also be considered a NT bug. NT sends a service a logoff message to a running program (ie java.exe) when the current user logs off. Java.exe shuts down when it receives the message, as it should normally. The problem is that NT sends the logoff message also when java.exe runs as a service process, so it shuts down. The only solution is to not use java.exe to run java applications as a service, but use JNI to create a service process instead. I have a Java service program that allows Tomcat to run under JDK1.3 without the logoff problem that anyone is free to have/use/whatever. It's located at: http://www.alexandriasc.com/software/JavaService Elijah Roberts [EMAIL PROTECTED]