RE: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows Service
On 1/13/2016 12:18 PM, McDermott, Becky wrote: My problem has been solved. In the tomcat7w.exe, I had to add the following to the Java Options: -Djava.library.path=\PROGRA~1\IBM\JazzTeamServer_601\server\tomcat\lib I also had to remove: -Xgc:preferredHeapBase=1 With the removal of -Xgc and the addition of the -Djava.library.path, the service successfully started. Nice work! -Terence -Original Message- From: Terence M. Bandoian [mailto:tere...@tmbsw.com] Sent: Tuesday, January 12, 2016 6:46 PM To: Tomcat Users List Subject: RE: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows Service On 1/12/2016 10:04 AM, McDermott, Becky wrote: I used the Java options provided by IBM. Since Tomcat will successfully start using the startup batch files, I assume that these settings are fine. I've tried playing with the settings and cannot get it to work either. I seems like it's some sort of weird Windows thing. I have successfully configured these services before with prior version of IBM's CLM. The difference in those previous versions was that Tomcat came bundled with t heir product. For this latest IBM version, Tomcat was not bundled and they provided instructions for downloading it from Apache and instructions for where to install it. I have escalated the issue with IBM's support and since they are providing the JVM, it is probably their issue but wanted to put it out to the larger community to see if anyone has ever had this issue before. A user on the user forums said that the memory error in the Tomcat log file is a red herring and that it is giving that memory allocation error because the JVM didn't actually start. So, the issue seems more connected to the error in the Windows Event viewer ("cannot open file"). Hi, Becky- Have you tried the Tomcat Windows Service Installer available on the download page (http://tomcat.apache.org/download-70.cgi)? In my experience, it makes it much easier to get Tomcat up and running as a Windows service. In addition, a configuration app is included which further simplifies the process. With your current setup, I'd start by checking the Log On settings of the service and the permissions of the Tomcat files and folders. -Terence Bandoian -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, January 12, 2016 8:59 AM To: Tomcat Users List Subject: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows Service Becky, On 1/12/16 10:42 AM, McDermott, Becky wrote: I am integrating Tomcat with the IBM CLM 6.0.1 collaboration tools. Per IBM's installation instructions, I downloaded and extracted Tomcat 7.0.59 to my server. I am successfully able to start the Tomcat server from the command line using the batch files provided by the IBM application (C:\Program Files\IBM\JazzTeamServer_601\server\server.startup.bat). Tomcat starts as well as all of the IBM CLM applications. The problem I'm having is when I try to configure tomcat to run as a Windows service. I have followed the instructions provided by IBM: 1. Set the environment variable CATALINA_HOME to C:\Program Files\IBM\JazzTeamServer_601\server\tomcat 2. Deleted existing tomcat7 services using: sc delete tomcat7 3. Re-booted the machine Note that, depending upon how you set the CATALINA_HOME environment variable, rebooting will lose this value. I'm not sure the reboot was necessary. 4. Installed the new tomcat service from the Tomcat bin directory: service.bat install tomcat7 5. Configured the service using: tomcat7w.exe 1. Clicked "Java" tab 2. Cleared "Use default" checkbox 3. Added the following path to the Java Virtual machine: C:\Program Files\IBM\JazzTeamServer_601\server\jre\bin\j9vm\jvm.dll 4. Added the following lines to the end of the java Options text field: -DJAZZ_HOME=le:///C:/PROGRA~1/IBM/JazzTeamServer_601/server/conf -Djava.awt.headless=ue -Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin>> >tr ue -Dcom.ibm.team.repository.tempDir=C:\Program Files\IBM\JazzTeamServer_601\server\tomcat\temp -Djazz.connector.sslEnabledProtocols=Sv1.2 -Djazz.connector.algorithm=mX509 -Dlog4j.configuration=le:///C:/PROGRA~1/IBM/JazzTeamServer_601/ser ve r/conf/startup_log4j.properties -Xgcpolicy:gencon -Xcompressedrefs -Xgc:preferredHeapBase=1 -XX:MaxDirectMemorySize= That's a BIG buffer. Do you need 1G NIO buffers? A web-based video-editing application? -Xmx4G -Xms4G -Xmn1g What is -Xmn? It's probably not a problem, but I thought I'd point-out something that looks weird. -DORACLE_JDBC_DRIVER_FILE=\Program Files\IBM\JazzTeamServer_601\server\Oracle\ojdb6.jar 5. Cleared the following fields: * Initial memory pool * Maximum memory pool * Thread stack size 6. In the Startup and Shutdown tabs, confirmed that &qu
RE: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows Service
My problem has been solved. In the tomcat7w.exe, I had to add the following to the Java Options: -Djava.library.path=C:\PROGRA~1\IBM\JazzTeamServer_601\server\tomcat\lib I also had to remove: -Xgc:preferredHeapBase=0x1 With the removal of -Xgc and the addition of the -Djava.library.path, the service successfully started. -Original Message- From: Terence M. Bandoian [mailto:tere...@tmbsw.com] Sent: Tuesday, January 12, 2016 6:46 PM To: Tomcat Users List Subject: RE: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows Service On 1/12/2016 10:04 AM, McDermott, Becky wrote: > I used the Java options provided by IBM. Since Tomcat will successfully > start using the startup batch files, I assume that these settings are fine. > I've tried playing with the settings and cannot get it to work either. I > seems like it's some sort of weird Windows thing. > > I have successfully configured these services before with prior version of > IBM's CLM. The difference in those previous versions was that Tomcat came > bundled with t heir product. For this latest IBM version, Tomcat was not > bundled and they provided instructions for downloading it from Apache and > instructions for where to install it. > > I have escalated the issue with IBM's support and since they are providing > the JVM, it is probably their issue but wanted to put it out to the larger > community to see if anyone has ever had this issue before. A user on the > user forums said that the memory error in the Tomcat log file is a red > herring and that it is giving that memory allocation error because the JVM > didn't actually start. So, the issue seems more connected to the error in > the Windows Event viewer ("cannot open file"). Hi, Becky- Have you tried the Tomcat Windows Service Installer available on the download page (http://tomcat.apache.org/download-70.cgi)? In my experience, it makes it much easier to get Tomcat up and running as a Windows service. In addition, a configuration app is included which further simplifies the process. With your current setup, I'd start by checking the Log On settings of the service and the permissions of the Tomcat files and folders. -Terence Bandoian > > -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Tuesday, January 12, 2016 8:59 AM > To: Tomcat Users List > Subject: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows > Service > > Becky, > > On 1/12/16 10:42 AM, McDermott, Becky wrote: >> >I am integrating Tomcat with the IBM CLM 6.0.1 collaboration tools. Per >> >IBM's installation instructions, I downloaded and extracted Tomcat 7.0.59 >> >to my server. >> > >> >I am successfully able to start the Tomcat server from the command line >> >using the batch files provided by the IBM application (C:\Program >> >Files\IBM\JazzTeamServer_601\server\server.startup.bat). Tomcat starts as >> >well as all of the IBM CLM applications. >> > >> >The problem I'm having is when I try to configure tomcat to run as a >> >Windows service. I have followed the instructions provided by IBM: >> > >> > >> >1. Set the environment variable CATALINA_HOME to C:\Program >> >Files\IBM\JazzTeamServer_601\server\tomcat >> > >> >2. Deleted existing tomcat7 services using: sc delete tomcat7 >> > >> >3. Re-booted the machine > Note that, depending upon how you set the CATALINA_HOME environment variable, > rebooting will lose this value. I'm not sure the reboot was necessary. > >> >4. Installed the new tomcat service from the Tomcat bin directory: >> >service.bat install tomcat7 >> > >> >5. Configured the service using: tomcat7w.exe >> > >> >1. Clicked "Java" tab >> > >> >2. Cleared "Use default" checkbox >> > >> >3. Added the following path to the Java Virtual machine: C:\Program >> >Files\IBM\JazzTeamServer_601\server\jre\bin\j9vm\jvm.dll >> > >> >4. Added the following lines to the end of the java Options text >> >field: >> >-DJAZZ_HOME=file:///C:/PROGRA~1/IBM/JazzTeamServer_601/server/conf >> >-Djava.awt.headless=true >> >-Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin= >> >tr ue -Dcom.ibm.team.repository.tempDir=C:\Program >> >Files\IBM\JazzTeamServer_601\server\tomcat\temp >> >-Djazz.connector.sslEnabledProtocols=TLSv1.2 >> >-Djazz.connector.algorithm=IbmX509 >> >-Dlog4j.configuration=file:///C:/PROGRA~1/IBM/JazzTeamServer_601/ser >
Re: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows Service
On 12.01.2016 18:29, Mark Thomas wrote: On 12/01/2016 17:10, McDermott, Becky wrote: I am definitely not a Java/Tomcat expert so I appreciate the info. I have 10GB of RAM and only 1.2 GB is in use when I try to start the tomcat service. OK. You should be OK then but you never know. One thing to try is lower settings to see if you can find when the problem starts. The error code JVMJ9VM015W is the one for not enough system memory available. I downloaded from: http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.59/bin/?cm_mc_uid=36937329763514476995925_mc_sid_5020=1450452120 And downloaded/extracted "apache-tomcat-7.0.59-windows-x64.zip" Good. That means you will only have the 64-bit service wrapper. Also, when I go to the location of my jre (C:\Program Files\IBM\JazzTeamServer_601\server\jre\bin) and run: java -version I get: java version "1.7.0" Java(TM) SE Runtime Environment (build pwa6470_27sr3fp10-20150708_01(SR3 FP10)) IBM J9 VM (build 2.7, JRE 1.7.0 Windows Server 2012 amd64-64 Compressed Referenc es 20150630_255653 (JIT enabled, AOT enabled) J9VM - R27_Java727_SR3_20150630_2236_B255653 JIT - tr.r13.java_20150623_94888.01 GC - R27_Java727_SR3_20150630_2236_B255653_CMPRSS J9CL - 20150630_255653) JCL - 20150628_01 based on Oracle jdk7u85-b15 That looks good. The fact that I can start Tomcat from the command line scripts is indicating to me that the memory settings are ok for my server. The server.start.bat file that IBM provides (which I successfully run from the command line) has the exact same memory settings that I'm providing to the Windows service. When you entered the settings in the service UI, did you use new lines between each setting? I have a vague memory of them either being required or not allowed. With line wrapping it can be hard to tell what is what. I'm not near a Windows box at the moment so I can't test that. Don't know if that helps, but on my laptop I have an old tomcat 6 installed, and in the GUI "Javba options" box it shows up like this : -Dcatalina.base=C:\apache-tomcat-6.0.24 -Dcatalina.home=C:\apache-tomcat-6.0.24 -Djava.endorsed.dirs=C:\apache-tomcat-6.0.24\endorsed -Djava.io.tmpdir=C:\apache-tomcat-6.0.24\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\apache-tomcat-6.0.24\conf\logging.properties -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1093 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=127.0.0.1 (looks like one option per line, with CR/LF at the end of each) Mark -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Tuesday, January 12, 2016 9:57 AM To: Tomcat Users List Subject: Re: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows Service On 12/01/2016 16:04, McDermott, Becky wrote: I used the Java options provided by IBM. Since Tomcat will successfully start using the startup batch files, I assume that these settings are fine. I've tried playing with the settings and cannot get it to work either. I seems like it's some sort of weird Windows thing. I have successfully configured these services before with prior version of IBM's CLM. The difference in those previous versions was that Tomcat came bundled with t heir product. For this latest IBM version, Tomcat was not bundled and they provided instructions for downloading it from Apache and instructions for where to install it. I have escalated the issue with IBM's support and since they are providing the JVM, it is probably their issue but wanted to put it out to the larger community to see if anyone has ever had this issue before. A user on the user forums said that the memory error in the Tomcat log file is a red herring and that it is giving that memory allocation error because the JVM didn't actually start. So, the issue seems more connected to the error in the Windows Event viewer ("cannot open file"). Nope. The Tomcat log file has the useful information. Ignore the event viewer. 4G of heap + 1G of native + whatever else the JVM needs is an awful lot. Are you sure there is enough free RAM on the box? Also, as Chris indicated, check that you are using the 64-bit version of the service runner and a 64-bit JVM. Exactly which Tomcat download did you use? Mark -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, January 12, 2016 8:59 AM To: Tomcat Users List Subject: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows Service Becky, On 1/12/16 10:42 AM, McDermott, Becky wrote: I am integrating Tomcat with the IBM CLM 6.0.1 collaboration tools. Per IBM's installation instructions, I downloaded and extracted Tomcat 7.0.59 to my server. I am successfully able to start the Tomcat server from the command line using the batch files provided by th
Re: Problem starting Tomcat 7.0.59 as a Windows Service
Becky, On 1/12/16 10:42 AM, McDermott, Becky wrote: > I am integrating Tomcat with the IBM CLM 6.0.1 collaboration tools. Per > IBM's installation instructions, I downloaded and extracted Tomcat 7.0.59 to > my server. > > I am successfully able to start the Tomcat server from the command line using > the batch files provided by the IBM application (C:\Program > Files\IBM\JazzTeamServer_601\server\server.startup.bat). Tomcat starts as > well as all of the IBM CLM applications. > > The problem I'm having is when I try to configure tomcat to run as a Windows > service. I have followed the instructions provided by IBM: > > > 1. Set the environment variable CATALINA_HOME to C:\Program > Files\IBM\JazzTeamServer_601\server\tomcat > > 2. Deleted existing tomcat7 services using: sc delete tomcat7 > > 3. Re-booted the machine Note that, depending upon how you set the CATALINA_HOME environment variable, rebooting will lose this value. I'm not sure the reboot was necessary. > 4. Installed the new tomcat service from the Tomcat bin directory: > service.bat install tomcat7 > > 5. Configured the service using: tomcat7w.exe > > 1. Clicked "Java" tab > > 2. Cleared "Use default" checkbox > > 3. Added the following path to the Java Virtual machine: C:\Program > Files\IBM\JazzTeamServer_601\server\jre\bin\j9vm\jvm.dll > > 4. Added the following lines to the end of the java Options text field: > -DJAZZ_HOME=file:///C:/PROGRA~1/IBM/JazzTeamServer_601/server/conf > -Djava.awt.headless=true > -Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin=true > -Dcom.ibm.team.repository.tempDir=C:\Program > Files\IBM\JazzTeamServer_601\server\tomcat\temp > -Djazz.connector.sslEnabledProtocols=TLSv1.2 > -Djazz.connector.algorithm=IbmX509 > -Dlog4j.configuration=file:///C:/PROGRA~1/IBM/JazzTeamServer_601/server/conf/startup_log4j.properties > -Xgcpolicy:gencon > -Xcompressedrefs > -Xgc:preferredHeapBase=0x1 > -XX:MaxDirectMemorySize=1G That's a BIG buffer. Do you need 1G NIO buffers? A web-based video-editing application? > -Xmx4G > -Xms4G > -Xmn1g What is -Xmn? It's probably not a problem, but I thought I'd point-out something that looks weird. > -DORACLE_JDBC_DRIVER_FILE=C:\Program > Files\IBM\JazzTeamServer_601\server\Oracle\ojdb6.jar > > 5. Cleared the following fields: > > * Initial memory pool > > * Maximum memory pool > > * Thread stack size > > 6. In the Startup and Shutdown tabs, confirmed that "jvm" was selected > for the "Mode" setting > > When I try to start the service from Windows Services, I receive the > following error: > > Services > Windows could not start the Apache Tomcat 7.0 tomcat7 on Local Computer. For > more information, review the System Event Log. If this is a non-Microsoft > service, contact the service vendor and refer to service-specific error code > 4. > > When I look at the Windows Event Viewer, there is an error that corresponds > to the time I tried to start the service: > > The Apache Tomcat 7.0 tomcat7 service terminated with the following > service-specific error: > The system cannot open the file. > > The tomcat log file: tomcat7-stderr.2016-01-12.log contains: > 2016-01-12 08:35:10 Commons Daemon procrun stderr initialized > JVMJ9VM015W Initialization error for library j9gc27(2): Failed to instantiate > heap; 4G requested > > I have contacted IBM support but they have not provided me a solution at this > point. I thought I would submit here to see if it could be a Tomcat service > issue specific to Windows. Here is my host information: > Windows Server 2012 Standard > Processor: Siz-Core AMD Opteron(tm) Processor 8431 2.41 GHz > Installed Memory (RAM): 10.0 GB > System Type: 64-bit Operating System, x64-based processor > > I also submitted a question to an IBM Jazz user forum and was told that the > Windows Event viewer is indicating that the JVM cannot be started because it > cannot find a file that is needed. The user suggested that since my Tomcat > and jvm are installed in "C:\Program Files" that perhaps it is a path issue. > I have checked all paths and have even changed all references to "PROGRA~1". > When I installed the service, I ran the install from a Windows Command Prompt > that I opened using "Run as Administrator". > > Since Tomcat will start fine from the command line batch files, this is > perplexing. Has anyone ever run into this? Is it possible that you have the 32-bit service runner? That would cause the JVM to run in 32-bit mode when you launch as a service. Selecting the JVM DLL directly should definitely select the right JVM (and architecture!) but I'm not an expert on Windows and Windows Services. -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:
RE: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows Service
I used the Java options provided by IBM. Since Tomcat will successfully start using the startup batch files, I assume that these settings are fine. I've tried playing with the settings and cannot get it to work either. I seems like it's some sort of weird Windows thing. I have successfully configured these services before with prior version of IBM's CLM. The difference in those previous versions was that Tomcat came bundled with t heir product. For this latest IBM version, Tomcat was not bundled and they provided instructions for downloading it from Apache and instructions for where to install it. I have escalated the issue with IBM's support and since they are providing the JVM, it is probably their issue but wanted to put it out to the larger community to see if anyone has ever had this issue before. A user on the user forums said that the memory error in the Tomcat log file is a red herring and that it is giving that memory allocation error because the JVM didn't actually start. So, the issue seems more connected to the error in the Windows Event viewer ("cannot open file"). -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, January 12, 2016 8:59 AM To: Tomcat Users List Subject: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows Service Becky, On 1/12/16 10:42 AM, McDermott, Becky wrote: > I am integrating Tomcat with the IBM CLM 6.0.1 collaboration tools. Per > IBM's installation instructions, I downloaded and extracted Tomcat 7.0.59 to > my server. > > I am successfully able to start the Tomcat server from the command line using > the batch files provided by the IBM application (C:\Program > Files\IBM\JazzTeamServer_601\server\server.startup.bat). Tomcat starts as > well as all of the IBM CLM applications. > > The problem I'm having is when I try to configure tomcat to run as a Windows > service. I have followed the instructions provided by IBM: > > > 1. Set the environment variable CATALINA_HOME to C:\Program > Files\IBM\JazzTeamServer_601\server\tomcat > > 2. Deleted existing tomcat7 services using: sc delete tomcat7 > > 3. Re-booted the machine Note that, depending upon how you set the CATALINA_HOME environment variable, rebooting will lose this value. I'm not sure the reboot was necessary. > 4. Installed the new tomcat service from the Tomcat bin directory: > service.bat install tomcat7 > > 5. Configured the service using: tomcat7w.exe > > 1. Clicked "Java" tab > > 2. Cleared "Use default" checkbox > > 3. Added the following path to the Java Virtual machine: C:\Program > Files\IBM\JazzTeamServer_601\server\jre\bin\j9vm\jvm.dll > > 4. Added the following lines to the end of the java Options text field: > -DJAZZ_HOME=file:///C:/PROGRA~1/IBM/JazzTeamServer_601/server/conf > -Djava.awt.headless=true > -Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin=tr > ue -Dcom.ibm.team.repository.tempDir=C:\Program > Files\IBM\JazzTeamServer_601\server\tomcat\temp > -Djazz.connector.sslEnabledProtocols=TLSv1.2 > -Djazz.connector.algorithm=IbmX509 > -Dlog4j.configuration=file:///C:/PROGRA~1/IBM/JazzTeamServer_601/serve > r/conf/startup_log4j.properties > -Xgcpolicy:gencon > -Xcompressedrefs > -Xgc:preferredHeapBase=0x1 > -XX:MaxDirectMemorySize=1G That's a BIG buffer. Do you need 1G NIO buffers? A web-based video-editing application? > -Xmx4G > -Xms4G > -Xmn1g What is -Xmn? It's probably not a problem, but I thought I'd point-out something that looks weird. > -DORACLE_JDBC_DRIVER_FILE=C:\Program > Files\IBM\JazzTeamServer_601\server\Oracle\ojdb6.jar > > 5. Cleared the following fields: > > * Initial memory pool > > * Maximum memory pool > > * Thread stack size > > 6. In the Startup and Shutdown tabs, confirmed that "jvm" was selected > for the "Mode" setting > > When I try to start the service from Windows Services, I receive the > following error: > > Services > Windows could not start the Apache Tomcat 7.0 tomcat7 on Local Computer. For > more information, review the System Event Log. If this is a non-Microsoft > service, contact the service vendor and refer to service-specific error code > 4. > > When I look at the Windows Event Viewer, there is an error that corresponds > to the time I tried to start the service: > > The Apache Tomcat 7.0 tomcat7 service terminated with the following > service-specific error: > The system cannot open the file. > > The tomcat log file: tomcat7-stderr.2016-01-12.log contains: > 2016-01-12 08:35:10 Commons Daemon procrun stderr initi
RE: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows Service
On 1/12/2016 10:04 AM, McDermott, Becky wrote: I used the Java options provided by IBM. Since Tomcat will successfully start using the startup batch files, I assume that these settings are fine. I've tried playing with the settings and cannot get it to work either. I seems like it's some sort of weird Windows thing. I have successfully configured these services before with prior version of IBM's CLM. The difference in those previous versions was that Tomcat came bundled with t heir product. For this latest IBM version, Tomcat was not bundled and they provided instructions for downloading it from Apache and instructions for where to install it. I have escalated the issue with IBM's support and since they are providing the JVM, it is probably their issue but wanted to put it out to the larger community to see if anyone has ever had this issue before. A user on the user forums said that the memory error in the Tomcat log file is a red herring and that it is giving that memory allocation error because the JVM didn't actually start. So, the issue seems more connected to the error in the Windows Event viewer ("cannot open file"). Hi, Becky- Have you tried the Tomcat Windows Service Installer available on the download page (http://tomcat.apache.org/download-70.cgi)? In my experience, it makes it much easier to get Tomcat up and running as a Windows service. In addition, a configuration app is included which further simplifies the process. With your current setup, I'd start by checking the Log On settings of the service and the permissions of the Tomcat files and folders. -Terence Bandoian -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, January 12, 2016 8:59 AM To: Tomcat Users List Subject: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows Service Becky, On 1/12/16 10:42 AM, McDermott, Becky wrote: >I am integrating Tomcat with the IBM CLM 6.0.1 collaboration tools. Per IBM's installation instructions, I downloaded and extracted Tomcat 7.0.59 to my server. > >I am successfully able to start the Tomcat server from the command line using the batch files provided by the IBM application (C:\Program Files\IBM\JazzTeamServer_601\server\server.startup.bat). Tomcat starts as well as all of the IBM CLM applications. > >The problem I'm having is when I try to configure tomcat to run as a Windows service. I have followed the instructions provided by IBM: > > >1. Set the environment variable CATALINA_HOME to C:\Program Files\IBM\JazzTeamServer_601\server\tomcat > >2. Deleted existing tomcat7 services using: sc delete tomcat7 > >3. Re-booted the machine Note that, depending upon how you set the CATALINA_HOME environment variable, rebooting will lose this value. I'm not sure the reboot was necessary. >4. Installed the new tomcat service from the Tomcat bin directory: service.bat install tomcat7 > >5. Configured the service using: tomcat7w.exe > >1. Clicked "Java" tab > >2. Cleared "Use default" checkbox > >3. Added the following path to the Java Virtual machine: C:\Program Files\IBM\JazzTeamServer_601\server\jre\bin\j9vm\jvm.dll > >4. Added the following lines to the end of the java Options text field: >-DJAZZ_HOME=file:///C:/PROGRA~1/IBM/JazzTeamServer_601/server/conf >-Djava.awt.headless=true >-Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin=tr >ue -Dcom.ibm.team.repository.tempDir=C:\Program >Files\IBM\JazzTeamServer_601\server\tomcat\temp >-Djazz.connector.sslEnabledProtocols=TLSv1.2 >-Djazz.connector.algorithm=IbmX509 >-Dlog4j.configuration=file:///C:/PROGRA~1/IBM/JazzTeamServer_601/serve >r/conf/startup_log4j.properties >-Xgcpolicy:gencon >-Xcompressedrefs >-Xgc:preferredHeapBase=0x1 >-XX:MaxDirectMemorySize=1G That's a BIG buffer. Do you need 1G NIO buffers? A web-based video-editing application? >-Xmx4G >-Xms4G >-Xmn1g What is -Xmn? It's probably not a problem, but I thought I'd point-out something that looks weird. >-DORACLE_JDBC_DRIVER_FILE=C:\Program >Files\IBM\JazzTeamServer_601\server\Oracle\ojdb6.jar > >5. Cleared the following fields: > >* Initial memory pool > >* Maximum memory pool > >* Thread stack size > >6. In the Startup and Shutdown tabs, confirmed that "jvm" was selected for the "Mode" setting > >When I try to start the service from Windows Services, I receive the following error: > >Services >Windows could not start the Apache Tomcat 7.0 tomcat7 on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor and refer to service-specific error code 4. > >Wh
Re: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows Service
On 12/01/2016 16:04, McDermott, Becky wrote: > I used the Java options provided by IBM. Since Tomcat will successfully > start using the startup batch files, I assume that these settings are fine. > I've tried playing with the settings and cannot get it to work either. I > seems like it's some sort of weird Windows thing. > > I have successfully configured these services before with prior version of > IBM's CLM. The difference in those previous versions was that Tomcat came > bundled with t heir product. For this latest IBM version, Tomcat was not > bundled and they provided instructions for downloading it from Apache and > instructions for where to install it. > > I have escalated the issue with IBM's support and since they are providing > the JVM, it is probably their issue but wanted to put it out to the larger > community to see if anyone has ever had this issue before. A user on the > user forums said that the memory error in the Tomcat log file is a red > herring and that it is giving that memory allocation error because the JVM > didn't actually start. So, the issue seems more connected to the error in > the Windows Event viewer ("cannot open file"). Nope. The Tomcat log file has the useful information. Ignore the event viewer. 4G of heap + 1G of native + whatever else the JVM needs is an awful lot. Are you sure there is enough free RAM on the box? Also, as Chris indicated, check that you are using the 64-bit version of the service runner and a 64-bit JVM. Exactly which Tomcat download did you use? Mark > > -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Tuesday, January 12, 2016 8:59 AM > To: Tomcat Users List > Subject: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows Service > > Becky, > > On 1/12/16 10:42 AM, McDermott, Becky wrote: >> I am integrating Tomcat with the IBM CLM 6.0.1 collaboration tools. Per >> IBM's installation instructions, I downloaded and extracted Tomcat 7.0.59 to >> my server. >> >> I am successfully able to start the Tomcat server from the command line >> using the batch files provided by the IBM application (C:\Program >> Files\IBM\JazzTeamServer_601\server\server.startup.bat). Tomcat starts as >> well as all of the IBM CLM applications. >> >> The problem I'm having is when I try to configure tomcat to run as a Windows >> service. I have followed the instructions provided by IBM: >> >> >> 1. Set the environment variable CATALINA_HOME to C:\Program >> Files\IBM\JazzTeamServer_601\server\tomcat >> >> 2. Deleted existing tomcat7 services using: sc delete tomcat7 >> >> 3. Re-booted the machine > > Note that, depending upon how you set the CATALINA_HOME environment variable, > rebooting will lose this value. I'm not sure the reboot was necessary. > >> 4. Installed the new tomcat service from the Tomcat bin directory: >> service.bat install tomcat7 >> >> 5. Configured the service using: tomcat7w.exe >> >> 1. Clicked "Java" tab >> >> 2. Cleared "Use default" checkbox >> >> 3. Added the following path to the Java Virtual machine: C:\Program >> Files\IBM\JazzTeamServer_601\server\jre\bin\j9vm\jvm.dll >> >> 4. Added the following lines to the end of the java Options text field: >> -DJAZZ_HOME=file:///C:/PROGRA~1/IBM/JazzTeamServer_601/server/conf >> -Djava.awt.headless=true >> -Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin=tr >> ue -Dcom.ibm.team.repository.tempDir=C:\Program >> Files\IBM\JazzTeamServer_601\server\tomcat\temp >> -Djazz.connector.sslEnabledProtocols=TLSv1.2 >> -Djazz.connector.algorithm=IbmX509 >> -Dlog4j.configuration=file:///C:/PROGRA~1/IBM/JazzTeamServer_601/serve >> r/conf/startup_log4j.properties >> -Xgcpolicy:gencon >> -Xcompressedrefs >> -Xgc:preferredHeapBase=0x1 >> -XX:MaxDirectMemorySize=1G > > That's a BIG buffer. Do you need 1G NIO buffers? A web-based video-editing > application? > >> -Xmx4G >> -Xms4G >> -Xmn1g > > What is -Xmn? It's probably not a problem, but I thought I'd point-out > something that looks weird. > >> -DORACLE_JDBC_DRIVER_FILE=C:\Program >> Files\IBM\JazzTeamServer_601\server\Oracle\ojdb6.jar >> >> 5. Cleared the following fields: >> >> * Initial memory pool >> >> * Maximum memory pool >> >> * Thread stack size >> >> 6. In the Startup and Shutdown tabs, confirmed that "jvm" was s
RE: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows Service
I am definitely not a Java/Tomcat expert so I appreciate the info. I have 10GB of RAM and only 1.2 GB is in use when I try to start the tomcat service. I downloaded from: http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.59/bin/?cm_mc_uid=36937329763514476995925_mc_sid_5020=1450452120 And downloaded/extracted "apache-tomcat-7.0.59-windows-x64.zip" Also, when I go to the location of my jre (C:\Program Files\IBM\JazzTeamServer_601\server\jre\bin) and run: java -version I get: java version "1.7.0" Java(TM) SE Runtime Environment (build pwa6470_27sr3fp10-20150708_01(SR3 FP10)) IBM J9 VM (build 2.7, JRE 1.7.0 Windows Server 2012 amd64-64 Compressed Referenc es 20150630_255653 (JIT enabled, AOT enabled) J9VM - R27_Java727_SR3_20150630_2236_B255653 JIT - tr.r13.java_20150623_94888.01 GC - R27_Java727_SR3_20150630_2236_B255653_CMPRSS J9CL - 20150630_255653) JCL - 20150628_01 based on Oracle jdk7u85-b15 The fact that I can start Tomcat from the command line scripts is indicating to me that the memory settings are ok for my server. The server.start.bat file that IBM provides (which I successfully run from the command line) has the exact same memory settings that I'm providing to the Windows service. -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Tuesday, January 12, 2016 9:57 AM To: Tomcat Users List Subject: Re: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows Service On 12/01/2016 16:04, McDermott, Becky wrote: > I used the Java options provided by IBM. Since Tomcat will successfully > start using the startup batch files, I assume that these settings are fine. > I've tried playing with the settings and cannot get it to work either. I > seems like it's some sort of weird Windows thing. > > I have successfully configured these services before with prior version of > IBM's CLM. The difference in those previous versions was that Tomcat came > bundled with t heir product. For this latest IBM version, Tomcat was not > bundled and they provided instructions for downloading it from Apache and > instructions for where to install it. > > I have escalated the issue with IBM's support and since they are providing > the JVM, it is probably their issue but wanted to put it out to the larger > community to see if anyone has ever had this issue before. A user on the > user forums said that the memory error in the Tomcat log file is a red > herring and that it is giving that memory allocation error because the JVM > didn't actually start. So, the issue seems more connected to the error in > the Windows Event viewer ("cannot open file"). Nope. The Tomcat log file has the useful information. Ignore the event viewer. 4G of heap + 1G of native + whatever else the JVM needs is an awful lot. Are you sure there is enough free RAM on the box? Also, as Chris indicated, check that you are using the 64-bit version of the service runner and a 64-bit JVM. Exactly which Tomcat download did you use? Mark > > -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Tuesday, January 12, 2016 8:59 AM > To: Tomcat Users List > Subject: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows > Service > > Becky, > > On 1/12/16 10:42 AM, McDermott, Becky wrote: >> I am integrating Tomcat with the IBM CLM 6.0.1 collaboration tools. Per >> IBM's installation instructions, I downloaded and extracted Tomcat 7.0.59 to >> my server. >> >> I am successfully able to start the Tomcat server from the command line >> using the batch files provided by the IBM application (C:\Program >> Files\IBM\JazzTeamServer_601\server\server.startup.bat). Tomcat starts as >> well as all of the IBM CLM applications. >> >> The problem I'm having is when I try to configure tomcat to run as a Windows >> service. I have followed the instructions provided by IBM: >> >> >> 1. Set the environment variable CATALINA_HOME to C:\Program >> Files\IBM\JazzTeamServer_601\server\tomcat >> >> 2. Deleted existing tomcat7 services using: sc delete tomcat7 >> >> 3. Re-booted the machine > > Note that, depending upon how you set the CATALINA_HOME environment variable, > rebooting will lose this value. I'm not sure the reboot was necessary. > >> 4. Installed the new tomcat service from the Tomcat bin directory: >> service.bat install tomcat7 >> >> 5. Configured the service using: tomcat7w.exe >> >> 1. Clicked "Java" tab >> >> 2. Cleared "Use default" checkbox >> >> 3. Added the following path to the Java Virtual machine: C:\Program >> Files\IBM\JazzTeamServer_6
Re: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows Service
On 12/01/2016 17:10, McDermott, Becky wrote: > I am definitely not a Java/Tomcat expert so I appreciate the info. I have > 10GB of RAM and only 1.2 GB is in use when I try to start the tomcat service. OK. You should be OK then but you never know. One thing to try is lower settings to see if you can find when the problem starts. The error code JVMJ9VM015W is the one for not enough system memory available. > I downloaded from: > http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.59/bin/?cm_mc_uid=36937329763514476995925_mc_sid_5020=1450452120 > And downloaded/extracted "apache-tomcat-7.0.59-windows-x64.zip" Good. That means you will only have the 64-bit service wrapper. > Also, when I go to the location of my jre (C:\Program > Files\IBM\JazzTeamServer_601\server\jre\bin) and run: java -version > I get: > java version "1.7.0" > Java(TM) SE Runtime Environment (build pwa6470_27sr3fp10-20150708_01(SR3 > FP10)) > IBM J9 VM (build 2.7, JRE 1.7.0 Windows Server 2012 amd64-64 Compressed > Referenc > es 20150630_255653 (JIT enabled, AOT enabled) > J9VM - R27_Java727_SR3_20150630_2236_B255653 > JIT - tr.r13.java_20150623_94888.01 > GC - R27_Java727_SR3_20150630_2236_B255653_CMPRSS > J9CL - 20150630_255653) > JCL - 20150628_01 based on Oracle jdk7u85-b15 That looks good. > The fact that I can start Tomcat from the command line scripts is indicating > to me that the memory settings are ok for my server. The server.start.bat > file that IBM provides (which I successfully run from the command line) has > the exact same memory settings that I'm providing to the Windows service. When you entered the settings in the service UI, did you use new lines between each setting? I have a vague memory of them either being required or not allowed. With line wrapping it can be hard to tell what is what. I'm not near a Windows box at the moment so I can't test that. Mark > > > -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Tuesday, January 12, 2016 9:57 AM > To: Tomcat Users List > Subject: Re: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows > Service > > On 12/01/2016 16:04, McDermott, Becky wrote: >> I used the Java options provided by IBM. Since Tomcat will successfully >> start using the startup batch files, I assume that these settings are fine. >> I've tried playing with the settings and cannot get it to work either. I >> seems like it's some sort of weird Windows thing. >> >> I have successfully configured these services before with prior version of >> IBM's CLM. The difference in those previous versions was that Tomcat came >> bundled with t heir product. For this latest IBM version, Tomcat was not >> bundled and they provided instructions for downloading it from Apache and >> instructions for where to install it. >> >> I have escalated the issue with IBM's support and since they are providing >> the JVM, it is probably their issue but wanted to put it out to the larger >> community to see if anyone has ever had this issue before. A user on the >> user forums said that the memory error in the Tomcat log file is a red >> herring and that it is giving that memory allocation error because the JVM >> didn't actually start. So, the issue seems more connected to the error in >> the Windows Event viewer ("cannot open file"). > > Nope. The Tomcat log file has the useful information. Ignore the event viewer. > > 4G of heap + 1G of native + whatever else the JVM needs is an awful lot. > Are you sure there is enough free RAM on the box? > > Also, as Chris indicated, check that you are using the 64-bit version of the > service runner and a 64-bit JVM. > > Exactly which Tomcat download did you use? > > Mark > > >> >> -Original Message- >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Sent: Tuesday, January 12, 2016 8:59 AM >> To: Tomcat Users List >> Subject: [EXTERNAL] Re: Problem starting Tomcat 7.0.59 as a Windows >> Service >> >> Becky, >> >> On 1/12/16 10:42 AM, McDermott, Becky wrote: >>> I am integrating Tomcat with the IBM CLM 6.0.1 collaboration tools. Per >>> IBM's installation instructions, I downloaded and extracted Tomcat 7.0.59 >>> to my server. >>> >>> I am successfully able to start the Tomcat server from the command line >>> using the batch files provided by the IBM application (C:\Program >>> Files\IBM\JazzTeamServer_601\server\server.startup.bat). Tomcat starts as >>> well as all of the IBM CLM applications. >>> >>> The problem I'm having is when I tr
Re: Problem starting Tomcat 6.0.39 (64) service under Windows 7/64
On Fri, Feb 7, 2014 at 11:59 PM, Jain, Shailesh shj...@suncor.com wrote: Hello Chris, Iam getting very high memory utilization issue in tomcat 7 , which is installed on Windows (Vmware) Let me know if oyu want logs , and let me know the ftp link where I can upload the logs. Regards, Shailesh Jain Suncor MW Shailesh, Did you not read Chuck's message to you? He has already suggested what you should do: 1. Read the http://www.catb.org/~esr/faqs/smart-questions.html 2. Read the mailing list rules: http://tomcat.apache.org/lists.html#tomcat-users (things under IMPORTANT section) 3. See how that applies to your case: a. Do not top post, but rather put your reply text under the text you are responding to b. Specify what tomcat version you are using, e.g. 7.0.51 c. Specify what platform you are using (ok you mentioned Windows on VMWare) d. Specify any other relevant information, what JDK you use e. Clearly describe your problem, what are the symptoms you observed, how did you observe them, how would someone replicate your problem? More specific you are, more likely is that someone on the list will volunteer to help you troubleshoot your issue. 4. Understand that this mailing list is a community of generous volunteers that are selflessly sharing their time and experience with you. While it might be that the primary goal is to resolve your issue, it is more important that community benefits from your experience and problem solving! You are probably not the only one with the same issue, and others would greatly benefit from your sharing how you solved your issue. 5. Be patient. If you cannot wait, there is always an option to seek Tomcat professional services company, pay for the support, and submit your ticket to them: http://wiki.apache.org/tomcat/SupportAndTraining Good luck!
Re: Problem starting Tomcat 6.0.39 (64) service under Windows 7/64
Christoph P.U. Kukulies wrote: I downloaded tomcat 6.0.39 (64) from tomcat.apache.org, put it into c:\program files\Apache_Group\Tomcat_6.0.39 and ran the service.bat which established the service. As system environment variables I have set: CATALINA_HOME=c:\Program Files\Apache_Group\Tomcat_6.0.3 JAVA_HOME=c:\Program Files\java\jdk1.7.0_51 JRE_HOME=c:\program files\java\jre7 The service does not start at boot and starting it manually gives a return code 1. The event log only shows: Der Dienst Apache Tomcat 6 wurde mit folgendem dienstspezifischem Fehler beendet: Unzulässige Funktion.. starting tomcat6 manually (interactivelym using startup.bat) seems to work: C:\Program Files\Apache_Group\Tomcat_6.0.39\binstartup Using CATALINA_BASE: c:\Program Files\Apache_Group\Tomcat_6.0.39 Using CATALINA_HOME: c:\Program Files\Apache_Group\Tomcat_6.0.39 Using CATALINA_TMPDIR: c:\Program Files\Apache_Group\Tomcat_6.0.39\temp Using JRE_HOME:c:\program files\java\jre7 Using CLASSPATH: c:\Program Files\Apache_Group\Tomcat_6.0.39\bin\bootstra p.jar C:\Program Files\Apache_Group\Tomcat_6.0.39\bin Any clues? Hi. This issue seems to be identical to the very recent thread on this list entitled unable to start Tomcat through the Windows Services panel. To avoid long repetitions, could you consult the list archives and see if it provides the solution for you too ? (See : http://tomcat.apache.org/lists.html) In the meantime, just one thing : - running Tomcat in a command window uses the BAT files and environment variables - running Tomcat as a Service does not use these at all. For more details, see : http://wiki.apache.org/tomcat/FAQ/Windows#Q11 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem starting Tomcat 6.0.39 (64) service under Windows 7/64
Thanks for the quick answer. You were faster than I. I had already answered myself, but the post bounced since I'm not allowed to post HTML. :) I will examine the thread you posted also. Anyway here is my finding: Solved! Minutes after I posted this, I gave the GUI Windows Installer (32/64) 32-bit/64-bit%20Windows%20Service%20Installer a try and, lo and behold, it worked! Thanks for listening. -- Christoph Kukulies Am 07.02.2014 10:16, schrieb André Warnier: Christoph P.U. Kukulies wrote: I downloaded tomcat 6.0.39 (64) from tomcat.apache.org, put it into c:\program files\Apache_Group\Tomcat_6.0.39 and ran the service.bat which established the service. As system environment variables I have set: CATALINA_HOME=c:\Program Files\Apache_Group\Tomcat_6.0.3 JAVA_HOME=c:\Program Files\java\jdk1.7.0_51 JRE_HOME=c:\program files\java\jre7 The service does not start at boot and starting it manually gives a return code 1. The event log only shows: Der Dienst Apache Tomcat 6 wurde mit folgendem dienstspezifischem Fehler beendet: Unzulässige Funktion.. starting tomcat6 manually (interactivelym using startup.bat) seems to work: C:\Program Files\Apache_Group\Tomcat_6.0.39\binstartup Using CATALINA_BASE: c:\Program Files\Apache_Group\Tomcat_6.0.39 Using CATALINA_HOME: c:\Program Files\Apache_Group\Tomcat_6.0.39 Using CATALINA_TMPDIR: c:\Program Files\Apache_Group\Tomcat_6.0.39\temp Using JRE_HOME:c:\program files\java\jre7 Using CLASSPATH: c:\Program Files\Apache_Group\Tomcat_6.0.39\bin\bootstra p.jar C:\Program Files\Apache_Group\Tomcat_6.0.39\bin Any clues? Hi. This issue seems to be identical to the very recent thread on this list entitled unable to start Tomcat through the Windows Services panel. To avoid long repetitions, could you consult the list archives and see if it provides the solution for you too ? (See : http://tomcat.apache.org/lists.html) In the meantime, just one thing : - running Tomcat in a command window uses the BAT files and environment variables - running Tomcat as a Service does not use these at all. For more details, see : http://wiki.apache.org/tomcat/FAQ/Windows#Q11 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem starting Tomcat 6.0.39 (64) service under Windows 7/64
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Christoph, On 2/7/14, 4:01 AM, Christoph P.U. Kukulies wrote: I downloaded tomcat 6.0.39 (64) from tomcat.apache.org, put it into c:\program files\Apache_Group\Tomcat_6.0.39 and ran the service.bat which established the service. As system environment variables I have set: CATALINA_HOME=c:\Program Files\Apache_Group\Tomcat_6.0.3 JAVA_HOME=c:\Program Files\java\jdk1.7.0_51 JRE_HOME=c:\program files\java\jre7 Note that, when using the Windows Service, the above environment variables are completely irrelevant. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJS9TzsAAoJEBzwKT+lPKRYj5AQAKu35feq5MtnjhlsUClo0Qhk axY7S+W9IRxB73QifQybU6I+8L2CJpLbIlE0y+xXInkPZM/I0S7xTaIi+S+AyxQw jwpE4aiTZK/Bu5ECynIiFYTmabANnGZWCyJeYSuVUnAFhNg2oK3cLbBt6b+b1hyt iDeKBOSiKIxMkVJiIvHZfnMr/sEhetW2KBab7WH+BPPuTRSkpyxiSAy/CHd9TaoP /NRIZIaHLX4HlpTrjGO3SJ5NkYVNx7fiJlq26ZAJuhOkx7VLudG+aDtowTc02Sqx fNtUaPMUXphd0V+zVUNMLofsqHtq+43fEQ3OEhVS3SGirixIeMHTMNj2y4jVg0V1 lSZcEr298eehEdnTCT8Yf3cRRLya8oCsP7FlpW3LbguH/logJo1+aUWOnVadY2hf XDNJ7uugB/sa7rSAANQySZpCNm2GTv1PxEZ9R9J2HOlXGdzeDh8wz4fxF13peDi/ 3W3oBkQ2ZYxTPrS7zmGfwNzj2ZUaMBvu68sY3k9+xLQgDUQqTmsH3gx0EGdBELbf duOxjHgJWUBsx0ZEa/Q+MhPEeQ5ozFANhUeVorF30P63L3aSOJDBlYwQ/zCOMAzW 8aAaP8lyMH3uM/7k0d6Qt5wFlXwzLMxFIzghiQlXu734enB10e6+LCWYja9y+rgB 7DH1LePymVtJZr+KfzgA =+x1c -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem starting Tomcat 6.0.39 (64) service under Windows 7/64
Christopher On 2/7/14, 4:01 AM, Christoph P.U. Kukulies wrote: I downloaded tomcat 6.0.39 (64) from tomcat.apache.org, put it into c:\program files\Apache_Group\Tomcat_6.0.39 and ran the service.bat which established the service. As system environment variables I have set: CATALINA_HOME=c:\Program Files\Apache_Group\Tomcat_6.0.3 JAVA_HOME=c:\Program Files\java\jdk1.7.0_51 JRE_HOME=c:\program files\java\jre7 Note that, when using the Windows Service, the above environment variables are completely irrelevant. For the benefit of the mailing archive, when using the windows service the variables are not relevant. However when I read Christoph's post, I think that it is more along the lines of I set these variables when I ran service.bat, in which case the values at that time are critical. True they don't have to be system environment variables - plain environment variables in the console will do. However it is wrong to say environment variables are completely irrelevant. Chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Problem starting Tomcat 6.0.39 (64) service under Windows 7/64
Hello Chris, Iam getting very high memory utilization issue in tomcat 7 , which is installed on Windows (Vmware) Let me know if oyu want logs , and let me know the ftp link where I can upload the logs. Regards, Shailesh Jain Suncor MW -Original Message- From: cjder...@gmail.com [mailto:cjder...@gmail.com] On Behalf Of chris derham Sent: Saturday, February 08, 2014 5:02 AM To: Tomcat Users List Subject: Re: Problem starting Tomcat 6.0.39 (64) service under Windows 7/64 Christopher On 2/7/14, 4:01 AM, Christoph P.U. Kukulies wrote: I downloaded tomcat 6.0.39 (64) from tomcat.apache.org, put it into c:\program files\Apache_Group\Tomcat_6.0.39 and ran the service.bat which established the service. As system environment variables I have set: CATALINA_HOME=c:\Program Files\Apache_Group\Tomcat_6.0.3 JAVA_HOME=c:\Program Files\java\jdk1.7.0_51 JRE_HOME=c:\program files\java\jre7 Note that, when using the Windows Service, the above environment variables are completely irrelevant. For the benefit of the mailing archive, when using the windows service the variables are not relevant. However when I read Christoph's post, I think that it is more along the lines of I set these variables when I ran service.bat, in which case the values at that time are critical. True they don't have to be system environment variables - plain environment variables in the console will do. However it is wrong to say environment variables are completely irrelevant. Chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org This email and its contents are private and confidential, for the sole use of the addressees. If you are not an intended recipient, copying, forwarding or other distribution of this email or its contents by any means is prohibited. If you believe that you received this email in error please notify the original sender immediately. Petro-Canada is a Suncor Energy business. Ce courriel et son contenu sont privés et confidentiels, et sont destinés à l’usage exclusif des destinataires. Si vous n'êtes pas le destinataire prévu, toute reproduction, transfert ou autre forme de diffusion de ce courriel ou de son contenu par quelque moyen que ce soit est interdit. Si vous croyez avoir reçu ce courriel par erreur, veuillez en aviser l'expéditeur original immédiatement. Petro-Canada est une entreprise de Suncor Énergie. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem starting tomcat
On 18/04/2012 02:59, Fairouz Fakhfakh wrote: Hello, I have a problem when I start tomcat by cliking on tomcat5.exe located in Tomcat 5.5\bin. I have the following message: GRAVE: Erreur lors du dÚploiement du rÚpertoire juddi de l'application web java.lang.NoClassDefFoundError: *org/apache/axis/transport/http/AxisServlet* at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1247) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1181) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:1027) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:92 5) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex t.java:3857) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 118) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73 9) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav a:894) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j ava:857) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442 ) at org.apache.catalina.core.StandardService.start(StandardService.java:4 50) at org.apache.catalina.core.StandardServer.start(StandardServer.java:683 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:537) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) 18 avr. 2012 02:51:01 org.apache.coyote.http11.Http11Protocol start INFO: DÚmarrage de Coyote HTTP/1.1 sur http-8083 18 avr. 2012 02:51:01 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/10 config=null 18 avr. 2012 02:51:01 org.apache.catalina.startup.Catalina start INFO: Server startup in 2990 ms I think that the problem from axis by I didn't kbow how to resolve it. Can someone help me; please? It's a classpath error, meaning that your application does not have the right JAR files in the application lib directory. E.g. tomcat/webapps/YOURAPPNAME/WEB-INF/lib/some-missing-dependency.jar p -- [key:62590808] signature.asc Description: OpenPGP digital signature
Re: Problem starting Tomcat + APR on port 80 using jsvc with setuid
Óscar Frías Barranco wrote: Hi. I want to start Tomcat 6.0.33 (running on port 80) from the command line of a non-root user. I have set the setuid flag in the jsvc binary to convert the non-root user to root at the time of execution. Then the jsvc binary is executed with the --user tomcat parameter. Sorry, this is not a direct answer to your question, and I don't know either why it would work without APR and not with it. But, instead of doing this via a setuid root script, could you not do this using the sudo command ? It is specifically designed to do things like that. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem starting Tomcat + APR on port 80 using jsvc with setuid
2011/11/28 Óscar Frías Barranco ofr...@gmail.com: Hi. I want to start Tomcat 6.0.33 (running on port 80) from the command line of a non-root user. I have set the setuid flag in the jsvc binary to convert the non-root user to root at the time of execution. Then the jsvc binary is executed with the --user tomcat parameter. The thing is that the whole setup works and I can successfully start Tomcat from a non-root user command line if I don't use APR (libtcnative-1). But then I installed APR and now I can only start Tomcat from root command line. If I try to start Tomcat from the non-root user command line I get the exception at the bottom. Why is this happening? Is this a Tomcat bug? Do I have to setuid another file besides jsvc? Thanks! INFO: JvmRouteBinderValve started Nov 28, 2011 1:28:25 PM org.apache.coyote.http11.Http11AprProtocol start SEVERE: Error starting endpoint java.lang.Exception: Socket bind failed: [13] Permission denied at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:649) at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:766) at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:137) at org.apache.catalina.connector.Connector.start(Connector.java:1095) at org.apache.catalina.core.StandardService.start(StandardService.java:540) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) What messages are before this one in the logs? (Clear the log files and then start Tomcat). Normally the workflow is the following: 1) init() initializes connectors and port binding happens 2) priviledges are dropped 3) start() Your stacktrace is from start(). I wonder why it is so, but without looking in the sources I cannot say more. Please provide full logs as I mentioned above. You may have better luck with 7.0.x. Lifecycle handling was improved in 7.0. In 7.0.x there is explicit bindOnInit attribute in connectors. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem starting Tomcat + APR on port 80 using jsvc with setuid
Thanks for your replies. At the end I include the logs from the beginning. (by the way, I cannot use sudo because I would like to restart tomcat from a non-interactive script) Nov 28, 2011 2:41:41 PM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.20. Nov 28, 2011 2:41:41 PM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. Nov 28, 2011 2:41:41 PM org.apache.coyote.http11.Http11AprProtocol init SEVERE: Error initializing endpoint java.lang.Exception: Socket bind failed: [13] Permission denied at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:649) at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107) at org.apache.catalina.connector.Connector.initialize(Connector.java:1022) at org.apache.catalina.core.StandardService.initialize(StandardService.java:703) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:838) at org.apache.catalina.startup.Catalina.load(Catalina.java:538) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:276) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:212) Nov 28, 2011 2:41:41 PM org.apache.catalina.core.StandardService initialize SEVERE: Failed to initialize connector [Connector[HTTP/1.1-80]] LifecycleException: Protocol handler initialization failed: java.lang.Exception: Socket bind failed: [13] Permission denied at org.apache.catalina.connector.Connector.initialize(Connector.java:1024) at org.apache.catalina.core.StandardService.initialize(StandardService.java:703) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:838) at org.apache.catalina.startup.Catalina.load(Catalina.java:538) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:276) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:212) Nov 28, 2011 2:41:41 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 293 ms Nov 28, 2011 2:41:41 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Nov 28, 2011 2:41:41 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.33 Nov 28, 2011 2:41:41 PM org.apache.catalina.ha.tcp.SimpleTcpCluster start INFO: Cluster is about to start On Mon, Nov 28, 2011 at 14:39, Konstantin Kolinko knst.koli...@gmail.comwrote: 2011/11/28 Óscar Frías Barranco ofr...@gmail.com: Hi. I want to start Tomcat 6.0.33 (running on port 80) from the command line of a non-root user. I have set the setuid flag in the jsvc binary to convert the non-root user to root at the time of execution. Then the jsvc binary is executed with the --user tomcat parameter. The thing is that the whole setup works and I can successfully start Tomcat from a non-root user command line if I don't use APR (libtcnative-1). But then I installed APR and now I can only start Tomcat from root command line. If I try to start Tomcat from the non-root user command line I get the exception at the bottom. Why is this happening? Is this a Tomcat bug? Do I have to setuid another file besides jsvc? Thanks! INFO: JvmRouteBinderValve started Nov 28, 2011 1:28:25 PM org.apache.coyote.http11.Http11AprProtocol start SEVERE: Error starting endpoint java.lang.Exception: Socket bind failed: [13]
Re: Problem starting tomcat server.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gaurav, On 12/15/2010 12:08 PM, Gaurav Pruthi wrote: I am unable to start tomcat service using tomcat6w.exe and even I have tried on command line using commands setclasspath.bat followed by startup.bat but still no results. You should just be calling bin\startup.bat.. there is no need to call bin\setclasspath.bat. I have also trying changing port numbers but that too doesn't bear fruit. There is another issue also when I install some another version of tomcat afresh. The server shows error :- Let's handle one thing at a time. [2010-12-15 18:10:24] [info] Running Service... [2010-12-15 18:10:24] [info] Starting service... [2010-12-15 18:10:24] [457 javajni.c] [error] FindClass org/apache/catalina/startup/Bootstrap failed [2010-12-15 18:10:24] [935 prunsrv.c] [error] Failed loading main org/apache/catalina/startup/Bootstrap class D:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jar Where do you have Tomcat installed? What is the output you get when you run from the command line? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0JEfcACgkQ9CaO5/Lv0PAecACglGfTxZ70l8jG75t/0drveFxZ apUAmwT7CtGGPDa/Wc92YtLCdC6OXxQa =Ktho -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem starting Tomcat in Netbeans
Hi Carlos This line looks odd? Why are there asterisks around it? *servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class* Regards Ron - Original Message - From: Carlos Botto carl...@qualitau.com To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, March 14, 2009 11:43 AM Subject: Problem starting Tomcat in Netbeans Sorry for bothering the list with the same problem again, but this problem has became a nightmare at this point. Bundled Tomcat 5.5.17 on Netbeans is not starting and I'm getting the following error: *SEVERE: Parse error in default web.xml java.lang.NullPointerException* at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2725) at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2751) at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1060) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1772) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561) at org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:781) at org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:721) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:977) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:278) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5130) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3945) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) Mar 13, 2009 3:26:56 PM org.apache.catalina.startup.ContextConfig processContextConfig *SEVERE: Occurred at line 18 column 20* This is what I have in the first lines of my conf/web.xml (the 18th. line is in black). ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
Re: Problem starting Tomcat in Netbeans
Hi Ron, There are no * in the code, those in the email were put on purpose to underline the 18th. line. Thanks Carlos Ron McNulty wrote: Hi Carlos This line looks odd? Why are there asterisks around it? *servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class* Regards Ron - Original Message - From: Carlos Botto carl...@qualitau.com To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, March 14, 2009 11:43 AM Subject: Problem starting Tomcat in Netbeans Sorry for bothering the list with the same problem again, but this problem has became a nightmare at this point. Bundled Tomcat 5.5.17 on Netbeans is not starting and I'm getting the following error: *SEVERE: Parse error in default web.xml java.lang.NullPointerException* at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2725) at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2751) at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1060) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1772) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561) at org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:781) at org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:721) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:977) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:278) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5130) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3945) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) Mar 13, 2009 3:26:56 PM org.apache.catalina.startup.ContextConfig processContextConfig *SEVERE: Occurred at line 18 column 20* This is what I have in the first lines of my conf/web.xml (the 18th. line is in black). ?xml
Re: Problem starting Tomcat in Netbeans
Hi Carlos The error is coming from Digester, whose job in life is simply to parse XML files and read them into objects. Have you opened web.xml with a hex editor and checked for non-ascii characters? Regards Ron - Original Message - From: Carlos Botto carl...@qualitau.com To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, March 14, 2009 12:04 PM Subject: Re: Problem starting Tomcat in Netbeans Hi Ron, There are no * in the code, those in the email were put on purpose to underline the 18th. line. Thanks Carlos Ron McNulty wrote: Hi Carlos This line looks odd? Why are there asterisks around it? *servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class* Regards Ron - Original Message - From: Carlos Botto carl...@qualitau.com To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, March 14, 2009 11:43 AM Subject: Problem starting Tomcat in Netbeans Sorry for bothering the list with the same problem again, but this problem has became a nightmare at this point. Bundled Tomcat 5.5.17 on Netbeans is not starting and I'm getting the following error: *SEVERE: Parse error in default web.xml java.lang.NullPointerException* at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2725) at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2751) at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1060) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1772) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561) at org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:781) at org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:721) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:977) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:278) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5130) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3945) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java
Re: Problem starting Tomcat in Netbeans
Ron, I did it. Also I deleted the line and typed it again. Thanks Carlos Ron McNulty wrote: Hi Carlos The error is coming from Digester, whose job in life is simply to parse XML files and read them into objects. Have you opened web.xml with a hex editor and checked for non-ascii characters? Regards Ron - Original Message - From: Carlos Botto carl...@qualitau.com To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, March 14, 2009 12:04 PM Subject: Re: Problem starting Tomcat in Netbeans Hi Ron, There are no * in the code, those in the email were put on purpose to underline the 18th. line. Thanks Carlos Ron McNulty wrote: Hi Carlos This line looks odd? Why are there asterisks around it? *servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class* Regards Ron - Original Message - From: Carlos Botto carl...@qualitau.com To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, March 14, 2009 11:43 AM Subject: Problem starting Tomcat in Netbeans Sorry for bothering the list with the same problem again, but this problem has became a nightmare at this point. Bundled Tomcat 5.5.17 on Netbeans is not starting and I'm getting the following error: *SEVERE: Parse error in default web.xml java.lang.NullPointerException* at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2725) at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2751) at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1060) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1772) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561) at org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:781) at org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:721) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:977) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:278) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5130) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3945) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
Re: Problem starting Tomcat in Netbeans
Hi Carlos If your Tomcat is starting OK from its normal /bin/startup.sh or /bin/startup.bat script, then there is nothing wrong with your web.xml file. So that suggests Netbeans is not using that web.xml, or is doing something really strange (Setting CATALINA_HOME wrongly?). I would try putting a few lines of garbage in web.xml, and see if you get a different startup error. That will lock down if the complaint is in fact from conf/web.xml. Maybe we are the wrong NG to help. (I am an Eclipse user myself). Also, do you need to start Tomcat from within Netbeans? I'm almost certain it will support Tomcat's remote debugging option, which allows independent startup. Regards Ron - Original Message - From: Carlos Botto carl...@qualitau.com To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, March 14, 2009 12:41 PM Subject: Re: Problem starting Tomcat in Netbeans Ron, I did it. Also I deleted the line and typed it again. Thanks Carlos Ron McNulty wrote: Hi Carlos The error is coming from Digester, whose job in life is simply to parse XML files and read them into objects. Have you opened web.xml with a hex editor and checked for non-ascii characters? Regards Ron - Original Message - From: Carlos Botto carl...@qualitau.com To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, March 14, 2009 12:04 PM Subject: Re: Problem starting Tomcat in Netbeans Hi Ron, There are no * in the code, those in the email were put on purpose to underline the 18th. line. Thanks Carlos Ron McNulty wrote: Hi Carlos This line looks odd? Why are there asterisks around it? *servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class* Regards Ron - Original Message - From: Carlos Botto carl...@qualitau.com To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, March 14, 2009 11:43 AM Subject: Problem starting Tomcat in Netbeans Sorry for bothering the list with the same problem again, but this problem has became a nightmare at this point. Bundled Tomcat 5.5.17 on Netbeans is not starting and I'm getting the following error: *SEVERE: Parse error in default web.xml java.lang.NullPointerException* at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2725) at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2751) at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1060) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1772) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561) at org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:781) at org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:721) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:977) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:278) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5130) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3945) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122
Re: Problem starting Tomcat in Netbeans
Ron, I already did what you suggest. I created errors on purpose on that file and got a different error. What it's interesting is that I created some errors below the line 18 and it changed the error message and error line. This the computer where I develop and I run bundled Tomcat for debugging purposes. Thank for your help Ron, I'll keep trying. Carlos Ron McNulty wrote: Hi Carlos If your Tomcat is starting OK from its normal /bin/startup.sh or /bin/startup.bat script, then there is nothing wrong with your web.xml file. So that suggests Netbeans is not using that web.xml, or is doing something really strange (Setting CATALINA_HOME wrongly?). I would try putting a few lines of garbage in web.xml, and see if you get a different startup error. That will lock down if the complaint is in fact from conf/web.xml. Maybe we are the wrong NG to help. (I am an Eclipse user myself). Also, do you need to start Tomcat from within Netbeans? I'm almost certain it will support Tomcat's remote debugging option, which allows independent startup. Regards Ron - Original Message - From: Carlos Botto carl...@qualitau.com To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, March 14, 2009 12:41 PM Subject: Re: Problem starting Tomcat in Netbeans Ron, I did it. Also I deleted the line and typed it again. Thanks Carlos Ron McNulty wrote: Hi Carlos The error is coming from Digester, whose job in life is simply to parse XML files and read them into objects. Have you opened web.xml with a hex editor and checked for non-ascii characters? Regards Ron - Original Message - From: Carlos Botto carl...@qualitau.com To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, March 14, 2009 12:04 PM Subject: Re: Problem starting Tomcat in Netbeans Hi Ron, There are no * in the code, those in the email were put on purpose to underline the 18th. line. Thanks Carlos Ron McNulty wrote: Hi Carlos This line looks odd? Why are there asterisks around it? *servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class* Regards Ron - Original Message - From: Carlos Botto carl...@qualitau.com To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, March 14, 2009 11:43 AM Subject: Problem starting Tomcat in Netbeans Sorry for bothering the list with the same problem again, but this problem has became a nightmare at this point. Bundled Tomcat 5.5.17 on Netbeans is not starting and I'm getting the following error: *SEVERE: Parse error in default web.xml java.lang.NullPointerException* at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2725) at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2751) at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1060) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1772) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561) at org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:781) at org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:721) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:977) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:278) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5130) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3945) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739
RE: Problem starting Tomcat in Netbeans
From: Carlos Botto [mailto:carl...@qualitau.com] Subject: Problem starting Tomcat in Netbeans when I validated context.xml I got the following: cvc-elt.1: Cannot find the declaration of element 'Context'. [2] Since there is no DTD to validate against, that's not surprising. Context crossContext=true debug=5 docBase=qualitau path=/qualitau reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_my_log. suffix=.txt timestamp=true/ Tomcat has supported a Logger element in quite some time, so that should come out. Also, the path attribute is illegal when the Context element is in your webapp's META-INF/context.xml file (which is where it should be). Mar 11, 2009 3:54:58 PM org.apache.catalina.startup.ContextConfig processContextConfig SEVERE: Parse error in default web.xml Note that the above refers to the *default* web.xml, not the one in your webapp's WEB-INF directory. What did you break in Tomcat's conf/web.xml file? Mar 11, 2009 3:54:58 PM org.apache.catalina.startup.ContextConfig processContextConfig SEVERE: Occurred at line 18 column 20 That should give you a pretty good idea of where to look. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem starting Tomcat in Netbeans
Chuck, Thanks for your answer. I generated the DTD and fixed the config.xml problem. But the other problem is still there. I didn't touch conf/web.xml, but I checked it out anyway and didn't find a problem (should be at line 18 column 20). Here are the first 24 lines from conf/web.xml: ?xml version=1.0 encoding=UTF-8? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 descriptionQualiTau Intranet/description display-nameQualiTau Intranet/display-name listener listener-classcom.qualitau.startup.JDBCStartup/listener-class /listener !-- Basic permissions to access any page on the site -- security-constraint web-resource-collection web-resource-nameQualiTau Web Applications/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-nameportal/role-name /auth-constraint user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint Thanks again Carlos Caldarale, Charles R wrote: From: Carlos Botto [mailto:carl...@qualitau.com] Subject: Problem starting Tomcat in Netbeans when I validated context.xml I got the following: cvc-elt.1: Cannot find the declaration of element 'Context'. [2] Since there is no DTD to validate against, that's not surprising. Context crossContext=true debug=5 docBase=qualitau path=/qualitau reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_my_log. suffix=.txt timestamp=true/ Tomcat has supported a Logger element in quite some time, so that should come out. Also, the path attribute is illegal when the Context element is in your webapp's META-INF/context.xml file (which is where it should be). Mar 11, 2009 3:54:58 PM org.apache.catalina.startup.ContextConfig processContextConfig SEVERE: Parse error in default web.xml Note that the above refers to the *default* web.xml, not the one in your webapp's WEB-INF directory. What did you break in Tomcat's conf/web.xml file? Mar 11, 2009 3:54:58 PM org.apache.catalina.startup.ContextConfig processContextConfig SEVERE: Occurred at line 18 column 20 That should give you a pretty good idea of where to look. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem starting Tomcat in Netbeans
Chuck, Sorry by mistake I copied the WEB-INF/web.xml. The conf/web.xml is the following: ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; !-- Introduction == -- !-- This document defines default values for *all* web applications -- !-- loaded into this instance of Tomcat. As each application is -- !-- deployed, this file is processed, followed by the-- !-- /WEB-INF/web.xml deployment descriptor from your own -- !-- applications.-- !-- -- !-- WARNING: Do not configure application-specific resources here! -- !-- They should go in the /WEB-INF/web.xml file in your application. -- !-- == Built In Servlet Definitions -- !-- The default servlet for all web applications, that serves static -- !-- resources. It processes all requests that are not mapped to other -- !-- servlets with servlet mappings (defined either here or in your own -- !-- web.xml file. This servlet supports the following initialization-- !-- parameters (default values are in square brackets): -- !-- -- !-- debug Debugging detail level for messages logged -- !-- by this servlet. [0] -- !-- -- !-- fileEncodingEncoding to be used to read static resources -- !-- [platform default] -- !-- -- !-- input Input buffer size (in bytes) when reading -- !-- resources to be served. [2048]-- !-- -- !-- listingsShould directory listings be produced if there -- !-- is no welcome file in this directory? [false] -- !-- WARNING: Listings for directories with many-- !-- entries can be slow and may consume-- !-- significant proportions of server resources. -- !-- -- !-- output Output buffer size (in bytes) when writing -- !-- resources to be served. [2048]-- !-- -- !-- readonlyIs this context read only, so HTTP -- !-- commands like PUT and DELETE are -- !-- rejected? [true] -- !-- -- !-- readmeFile File name to display with the directory-- !-- contents. [null] -- !-- -- !-- sendfileSizeIf the connector used supports sendfile, this -- !-- represents the minimal file size in KB for -- !-- which sendfile will be used. Use a negative-- !-- value to always disable sendfile. [48]-- !-- -- !-- For directory listing customization. Checks localXsltFile, then -- !-- globalXsltFile, then defaults to original behavior. -- !-- -- !-- localXsltFile Make directory listings an XML doc and -- !-- pass the result to this style sheet residing -- !-- in that directory. This overrides -- !-- globalXsltFile[null] -- !-- -- !-- globalXsltFile Site wide configuration version of -- !-- localXsltFile This argument is expected-- !-- to be a physical file. [null] -- !-- -- !-- -- !--filter
Re: Problem starting Tomcat Windows service
Hi, Perhaps http://www.nabble.com/Tomcat-5.5-and-x64-Windows-to8430335.html#a20310083 might help. Yo can download the x64 version of the service exe and use that instead. Hope this helps Regards, Serge Fonville On Tue, Feb 10, 2009 at 2:37 PM, André Warnier a...@ice-sa.com wrote: Hi. A colleague recently downloaded the Tomcat 5.5.27 service installer from the official Tomcat site and tried to install it on a Windows XP workstation. But considering that this is a 64-bit XP system, the Tomcat service refused to start. (The installed Java is a Sun java 1.6.0 64-bit JDK or JRE). Being an assiduous reader of this forum, I of course knew why, and following the usually excellent advice given here, I told him to de-install the service version, and instead download and install the zip version, and consequently install it as a service using the service.bat script. That part worked nicely. However, when trying to start the service later on, something goes awry, and the service does not start. The Windows Event logger is pretty useless, mentioning an error of type 0/0 or similar. In the Tomcat logs directory however, I find the file jakarta_service.20090210, with the contents below. Anyone have any idea what's wrong ? (I have this suspicion that even with the zip version, I need to get the 64-bit version of procrun somewhere else, yes ?) [2009-02-10 12:29:00] [info] Procrun (2.0.4.0) started [2009-02-10 12:29:00] [info] Running Service... [2009-02-10 12:29:00] [info] Starting service... [2009-02-10 12:29:01] [174 javajni.c] [error] %1 is not a valid Win32 application. [2009-02-10 12:29:01] [994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0_12\jre\bin\server\jvm.dll [2009-02-10 12:29:01] [1269 prunsrv.c] [error] ServiceStart returned 1 [2009-02-10 12:29:01] [info] Run service finished. [2009-02-10 12:29:01] [info] Procrun finished. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Problem starting Tomcat Windows service
From: André Warnier [mailto:a...@ice-sa.com] Subject: Problem starting Tomcat Windows service (I have this suspicion that even with the zip version, I need to get the 64-bit version of procrun somewhere else, yes ?) Correct: http://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/amd64/ - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem starting Tomcat Windows service
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Problem starting Tomcat Windows service (I have this suspicion that even with the zip version, I need to get the 64-bit version of procrun somewhere else, yes ?) Correct: http://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/amd64/ Thanks, both. Got them. If you know how to ask the question, you probably already have 90% of the answer. Someone posted that here earlier. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Problem starting Tomcat on Windows 2003
From: Venkat Venkataramanan [mailto:[EMAIL PROTECTED] [...] java.net.BindException: Address already in use: JVM_Bind:8080 [...] 3. What does the exception on the last line mean? Port 8080 is already in use by some other application. As I recall, Process Explorer (from www.sysinternals.com) can tell you which process has a particular port. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem starting Tomcat on Windows 2003
Good Morning Ven- the message indicates The Address is already bound to Port 8080 you'll have to properly shutdown the Tomcat service (and free the port) e.g. C:net stop Tomcat5 or reboot the machine With Warm Regards M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Venkat Venkataramanan [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, May 01, 2007 11:12 AM Subject: Problem starting Tomcat on Windows 2003 Hello: I just installed Tomcat v6.0 on a Windows 2003 server. I stopped IIS and tried to run the batch file, startup.bat and the Command windows closed. I see the following errors in the log file: May 1, 2007 10:20:25 AM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jre1.6.0_01\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\ WINDOWS;C:\Program Files\Common Files\Crystal Decisions\2.5\bin\NOTES\;C:\Program Files\Common Files\Crystal Decisions\2.5\bin\NOTES\DATA\;D:\PROGRA~1\Serena\vm\win32\bin;D:\PROGRA~1\Se rena\vm\common\bin\win32;D:\oracle\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WI NDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\PROGRA~1\COMMON~1\SONICS~1\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;D:\Program Files\Microsoft SQL Server\90\DTS\Binn\;D:\Program Files\Microsoft SQL Server\90\Tools\binn\;D:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;D:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\QuickTime\QTSystem\;D:\Program Files\Java\jdk1.6.0_01\bin;D:\Program Files\Java\jre1.6.0_01\bin; May 1, 2007 10:20:25 AM org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.net.BindException: Address already in use: JVM_Bind:8080 My questions are: 1. Where is the path for java.library.path getting set to? 2. What native library is it not finding? 3. What does the exception on the last line mean? Venki - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem starting Tomcat on Windows 2003
Peter Crowther wrote: From: Venkat Venkataramanan [mailto:[EMAIL PROTECTED] [...] java.net.BindException: Address already in use: JVM_Bind:8080 [...] 3. What does the exception on the last line mean? Port 8080 is already in use by some other application. As I recall, Process Explorer (from www.sysinternals.com) can tell you which process has a particular port. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Actually it's TCPMon and it's from Microsoft now :-(. The SysInternals url you mentioned will redirect automtically. -- David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem starting Tomcat on Windows 2003
From: Venkat Venkataramanan [mailto:[EMAIL PROTECTED] Subject: Problem starting Tomcat on Windows 2003 1. Where is the path for java.library.path getting set to? From the PATH environment variable for the process. This is the default value for a Sun JVM running on Windows. 2. What native library is it not finding? The Apache Portable Runtime, which is an optional connector that will improve performance somewhat over the standard pure-Java connectors. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem starting Tomcat on Windows 2003
I realized that there was another software package that was running as a service and using Tomcat. Thanks for all your help. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 01, 2007 12:05 PM To: Tomcat Users List Subject: RE: Problem starting Tomcat on Windows 2003 From: Venkat Venkataramanan [mailto:[EMAIL PROTECTED] Subject: Problem starting Tomcat on Windows 2003 1. Where is the path for java.library.path getting set to? From the PATH environment variable for the process. This is the default value for a Sun JVM running on Windows. 2. What native library is it not finding? The Apache Portable Runtime, which is an optional connector that will improve performance somewhat over the standard pure-Java connectors. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem starting Tomcat
well boris what with this java exception in the server error msg. : java.lang.ClassNotFoundException you must not have placed/put the 2 jar files, servlet-api.jar and jsp-api.jar into your system's classpath yet. Goykhman, Boris wrote: Hi I have just installed Tomcat 5.0.28 on my XP machine and I am having trouble starting it. Here's the output that Catalina.bat produces: Using CATALINA_BASE: C:\jakarta-tomcat-5.0.28 Using CATALINA_HOME: C:\jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.28\temp Using JAVA_HOME: C:\j2sdk1.4.2_11 C:\j2sdk1.4.2_11\bin\java -Djava.endorsed.dirs=C:\jakarta-tomcat-5.0.28\c ommon\endorsed -classpath C:\j2sdk1.4.2_11\lib\tools.jar;C:\jakarta-tomcat-5.0 .28\bin\bootstrap.jar -Dcatalina.base=C:\jakarta-tomcat-5.0.28 -Dcatalina.hom e=C:\jakarta-tomcat-5.0.28 -Djava.io.tmpdir=C:\jakarta-tomcat-5.0.28\temp or g.apache.catalina.startup.Bootstrap start java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas sLoader.java:854) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas sLoader.java:721) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:205) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402) Because of corporate user restrictions, I cannot modify Path environment variable. It should not matter though because it's trying to use java executable directly from JDK installation folder. It looks like it cannot find C:\jakarta-tomcat-5.0.28 folder even though that's where Tomcat files are. I would appreciate any help. Thanks *The information contained in this e-mail and any attachments may be confidential and/or proprietary. If you are not an intended recipient or an authorized agent of an intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and permanently delete the e-mail and any attachments immediately. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem starting Tomcat
From: Steve R Burrus [mailto:[EMAIL PROTECTED] Subject: Re: problem starting Tomcat well boris what with this java exception in the server error msg. : java.lang.ClassNotFoundException you must not have placed/put the 2 jar files, servlet-api.jar and jsp-api.jar into your system's classpath yet. Nor should he do so. Tomcat uses its own classloaders, not the JVM system class loader, to find and initialize all classes other than those in bootstrap.jar. If you don't know how Tomcat class loading works, please review the doc: http://tomcat.apache.org/tomcat-5.0-doc/class-loader-howto.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem starting Tomcat
From: Goykhman, Boris [mailto:[EMAIL PROTECTED] Subject: problem starting Tomcat I have just installed Tomcat 5.0.28 on my XP machine and I am having trouble starting it. Why are you using such an old level rather than the current 5.5.20? java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina This indicates that the installation was incorrect. Could be an access permissions problem, or the necessary files were not copied to the proper locations. The above class should be located in: C:\jakarta-tomcat-5.0.28\server\lib\catalina.jar Is it? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem starting tomcat
Hi Raffaele, Raffaele Viola wrote: I solved the problem. The server had a incorrect LOOPBACK interface settings Thanks Raffo I seem to have the same problem. Could you please tell what changes you made to the LOOPBACK interface settings. Thanks in advance, Rob Berens - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem starting tomcat
1) port 8005 is not available on the machine (not allowed to that user or used by another application already), free it or change it in server.xml I try to change the port but I still have the problem 2) you have changed tomcat configuration on a perhaps multi ip machine to bind only on a specific interface (specific ip) and this interface does not exist on the machine (for example, you have configured the 8005 connector to bind to 192.168.0.15:8005 but the server is 192.168.0.150) Where can I modify the IP address to bind?
Re: problem starting tomcat
The shutdown port is always bound to the localhost interface (127.0.0.1) for security reasons. There is no chance of changing that. Does your system have a valid localhost interface? Also what OS are you working with? --David Raffaele Viola wrote: 1) port 8005 is not available on the machine (not allowed to that user or used by another application already), free it or change it in server.xml I try to change the port but I still have the problem 2) you have changed tomcat configuration on a perhaps multi ip machine to bind only on a specific interface (specific ip) and this interface does not exist on the machine (for example, you have configured the 8005 connector to bind to 192.168.0.15:8005 but the server is 192.168.0.150) Where can I modify the IP address to bind? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem starting tomcat
I solved the problem. The server had a incorrect LOOPBACK interface settings Thanks Raffo
Re: problem starting tomcat
Several possibilities 1) port 8005 is not available on the machine (not allowed to that user or used by another application already), free it or change it in server.xml 2) you have changed tomcat configuration on a perhaps multi ip machine to bind only on a specific interface (specific ip) and this interface does not exist on the machine (for example, you have configured the 8005 connector to bind to 192.168.0.15:8005 but the server is 192.168.0.150) 3) you have fallen in that jvm bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6206527, which is supposed to be fixed by sun, upgrade jvm if possible Raffaele Viola a écrit : Hi all, I'm trying to start Tomcat but Ihave some problems This is what I read in the catalina.out, could someone help me? Thanks a lot Raffo 28-Sep-2006 16:03:28 org.apache.catalina.core.AprLifecycleListenerlifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java. library.path: /usr/jre1.5.0_06/lib/sparc/server:/usr/jre1.5.0_06/lib/sparc:/usr/jre1.5.0_06/../lib/sparc::/usr/local/lib:/usr /local/apache2/lib:/usr/lib 28-Sep-2006 16:03:29 org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 28-Sep-2006 16:03:29 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1875 ms 28-Sep-2006 16:03:29 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 28-Sep-2006 16:03:29 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.17 28-Sep-2006 16:03:29 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 28-Sep-2006 16:03:31 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive CMM_EU.war 28-Sep-2006 16:03:32 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive CMM_PDA.war 28-Sep-2006 16:03:33 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive CMM_TM.war 28-Sep-2006 16:03:34 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive xgui3.war 28-Sep-2006 16:03:35 org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 28-Sep-2006 16:03:35 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 28-Sep-2006 16:03:35 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/64 config=null 28-Sep-2006 16:03:36 org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource 28-Sep-2006 16:03:36 org.apache.catalina.startup.Catalina start INFO: Server startup in 7035 ms 28-Sep-2006 16:03:36 org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.init(Unknown Source) at org.apache.catalina.core.StandardServer.await(StandardServer.java :372) at org.apache.catalina.startup.Catalina.await(Catalina.java:615) at org.apache.catalina.startup.Catalina.start(Catalina.java:575) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) 28-Sep-2006 16:03:36 org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem starting tomcat
Raffaele Viola schrieb: Hi all, I'm trying to start Tomcat but Ihave some problems This is what I read in the catalina.out, could someone help me? Thanks a lot Raffo 28-Sep-2006 16:03:28 org.apache.catalina.core.AprLifecycleListenerlifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java. library.path: /usr/jre1.5.0_06/lib/sparc/server:/usr/jre1.5.0_06/lib/sparc:/usr/jre1.5.0_06/../lib/sparc::/usr/local/lib:/usr /local/apache2/lib:/usr/lib 28-Sep-2006 16:03:29 org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 28-Sep-2006 16:03:29 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1875 ms 28-Sep-2006 16:03:29 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 28-Sep-2006 16:03:29 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.17 28-Sep-2006 16:03:29 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 28-Sep-2006 16:03:31 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive CMM_EU.war 28-Sep-2006 16:03:32 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive CMM_PDA.war 28-Sep-2006 16:03:33 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive CMM_TM.war 28-Sep-2006 16:03:34 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive xgui3.war 28-Sep-2006 16:03:35 org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 28-Sep-2006 16:03:35 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 28-Sep-2006 16:03:35 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/64 config=null 28-Sep-2006 16:03:36 org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource 28-Sep-2006 16:03:36 org.apache.catalina.startup.Catalina start INFO: Server startup in 7035 ms 28-Sep-2006 16:03:36 org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.init(Unknown Source) at org.apache.catalina.core.StandardServer.await(StandardServer.java :372) at org.apache.catalina.startup.Catalina.await(Catalina.java:615) at org.apache.catalina.startup.Catalina.start(Catalina.java:575) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) 28-Sep-2006 16:03:36 org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Hallo, i am not sure but the cause of this Failure can be the JAVA_HOME. if you didn't use a msi file to install Tomcat then you must to define JAVA_HOME and CATALINA_HOME variables in path. if you have installed tomcat with msi file then this variables will be settet automatically. i have given as JAVA_HOME jdk path not the jre. maybe it can be a problem too. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem starting tomcat
taylan kuecuek a écrit : Raffaele Viola schrieb: Hi all, I'm trying to start Tomcat but Ihave some problems This is what I read in the catalina.out, could someone help me? Thanks a lot Raffo 28-Sep-2006 16:03:28 org.apache.catalina.core.AprLifecycleListenerlifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java. library.path: /usr/jre1.5.0_06/lib/sparc/server:/usr/jre1.5.0_06/lib/sparc:/usr/jre1.5.0_06/../lib/sparc::/usr/local/lib:/usr /local/apache2/lib:/usr/lib 28-Sep-2006 16:03:29 org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 28-Sep-2006 16:03:29 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1875 ms 28-Sep-2006 16:03:29 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 28-Sep-2006 16:03:29 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.17 28-Sep-2006 16:03:29 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 28-Sep-2006 16:03:31 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive CMM_EU.war 28-Sep-2006 16:03:32 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive CMM_PDA.war 28-Sep-2006 16:03:33 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive CMM_TM.war 28-Sep-2006 16:03:34 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive xgui3.war 28-Sep-2006 16:03:35 org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 28-Sep-2006 16:03:35 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 28-Sep-2006 16:03:35 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/64 config=null 28-Sep-2006 16:03:36 org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource 28-Sep-2006 16:03:36 org.apache.catalina.startup.Catalina start INFO: Server startup in 7035 ms 28-Sep-2006 16:03:36 org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.init(Unknown Source) at org.apache.catalina.core.StandardServer.await(StandardServer.java :372) at org.apache.catalina.startup.Catalina.await(Catalina.java:615) at org.apache.catalina.startup.Catalina.start(Catalina.java:575) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) 28-Sep-2006 16:03:36 org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Hallo, i am not sure but the cause of this Failure can be the JAVA_HOME. if you didn't use a msi file to install Tomcat then you must to define JAVA_HOME and CATALINA_HOME variables in path. if you have installed tomcat with msi file then this variables will be settet automatically. i have given as JAVA_HOME jdk path not the jre. maybe it can be a problem too. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I don't think there is a relation between java home and a network binding exception. Also, i don't think you can install a msi package on a SPARC system :) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem starting tomcat
David Delbecq schrieb: taylan kuecuek a écrit : Raffaele Viola schrieb: Hi all, I'm trying to start Tomcat but Ihave some problems This is what I read in the catalina.out, could someone help me? Thanks a lot Raffo 28-Sep-2006 16:03:28 org.apache.catalina.core.AprLifecycleListenerlifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java. library.path: /usr/jre1.5.0_06/lib/sparc/server:/usr/jre1.5.0_06/lib/sparc:/usr/jre1.5.0_06/../lib/sparc::/usr/local/lib:/usr /local/apache2/lib:/usr/lib 28-Sep-2006 16:03:29 org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 28-Sep-2006 16:03:29 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1875 ms 28-Sep-2006 16:03:29 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 28-Sep-2006 16:03:29 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.17 28-Sep-2006 16:03:29 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 28-Sep-2006 16:03:31 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive CMM_EU.war 28-Sep-2006 16:03:32 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive CMM_PDA.war 28-Sep-2006 16:03:33 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive CMM_TM.war 28-Sep-2006 16:03:34 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive xgui3.war 28-Sep-2006 16:03:35 org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 28-Sep-2006 16:03:35 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 28-Sep-2006 16:03:35 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/64 config=null 28-Sep-2006 16:03:36 org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource 28-Sep-2006 16:03:36 org.apache.catalina.startup.Catalina start INFO: Server startup in 7035 ms 28-Sep-2006 16:03:36 org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.init(Unknown Source) at org.apache.catalina.core.StandardServer.await(StandardServer.java :372) at org.apache.catalina.startup.Catalina.await(Catalina.java:615) at org.apache.catalina.startup.Catalina.start(Catalina.java:575) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) 28-Sep-2006 16:03:36 org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Hallo, i am not sure but the cause of this Failure can be the JAVA_HOME. if you didn't use a msi file to install Tomcat then you must to define JAVA_HOME and CATALINA_HOME variables in path. if you have installed tomcat with msi file then this variables will be settet automatically. i have given as JAVA_HOME jdk path not the jre. maybe it can be a problem too. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I don't think there is a relation between java home and a network binding exception. Also, i don't think you can install a msi package on a SPARC system :) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] :) yes you are right, i have overlooked the directory architecture. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem starting tomcat
In addition to what others have suggested, I remember a thread concerning binding to an IPv4 address on a system that only accepted IPv6 bindings. Search the archives for that case. --David Raffaele Viola wrote: Hi all, I'm trying to start Tomcat but Ihave some problems This is what I read in the catalina.out, could someone help me? Thanks a lot Raffo 28-Sep-2006 16:03:28 org.apache.catalina.core.AprLifecycleListenerlifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java. library.path: /usr/jre1.5.0_06/lib/sparc/server:/usr/jre1.5.0_06/lib/sparc:/usr/jre1.5.0_06/../lib/sparc::/usr/local/lib:/usr /local/apache2/lib:/usr/lib 28-Sep-2006 16:03:29 org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 28-Sep-2006 16:03:29 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1875 ms 28-Sep-2006 16:03:29 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 28-Sep-2006 16:03:29 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.17 28-Sep-2006 16:03:29 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 28-Sep-2006 16:03:31 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive CMM_EU.war 28-Sep-2006 16:03:32 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive CMM_PDA.war 28-Sep-2006 16:03:33 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive CMM_TM.war 28-Sep-2006 16:03:34 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive xgui3.war 28-Sep-2006 16:03:35 org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 28-Sep-2006 16:03:35 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 28-Sep-2006 16:03:35 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/64 config=null 28-Sep-2006 16:03:36 org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource 28-Sep-2006 16:03:36 org.apache.catalina.startup.Catalina start INFO: Server startup in 7035 ms 28-Sep-2006 16:03:36 org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.init(Unknown Source) at org.apache.catalina.core.StandardServer.await(StandardServer.java :372) at org.apache.catalina.startup.Catalina.await(Catalina.java:615) at org.apache.catalina.startup.Catalina.start(Catalina.java:575) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) 28-Sep-2006 16:03:36 org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem starting Tomcat in Netbeans
I don't know why you have the Common folder of tomcat in your classpath. that should not be needed. On 5/28/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Mon, May 29, 2006 at 12:31:12AM +0800, Justin See wrote: I've tried to search for it but couldn't find an answer. Please try to help me. I've created an application and deployed and run successfully in the first PC. I copied everything over, installed everything as the first PC. 1) I've the mysql-connector-java-3.1.12-bin.jar in the common/lib. 2) Added this to the server.xml: Context Resource name=jdbc/MySQLDB auth=Container type=javax.sql.DataSource username=root password=password driverClassName= com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/transport maxActive=8 maxIdle=4/ /Context 3) Added this to the web.xml descriptionMySQL Connection/description resource-ref descriptionDB Connection/description res-ref-namejdbc/MySQLDB/res-ref-name res-type javax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref 4) Set the environment variable: CLASSPATH=C:\Program Files\netbeans- 5.0\enterprise2\jakarta-tomcat-5.5.9\common lib Now when i deploy and start the application on the Tomcat, Tomcat logs give me this error: May 28, 2006 10:46:10 PM org.apache.catalina.mbeans.ServerLifecycleListenercreateMBeans SEVERE: createMBeans: Throwable java.lang.NullPointerException at org.apache.catalina.mbeans.MBeanUtils.createObjectName( MBeanUtils.java:1079) Are you using the Tomcat server distributed with NB, have you set this one up as an external server in NB or is this problem occurring outside of NB? If it is occurring when you 'run project' from within NB, then you may want to connect with the NetBeans user mailing list. Additionally, if the application functions properly within NB but blows up when you deploy the .war file, the same applies. Occasionally, there can be intricacies with deployment internally as opposed to externally. Usually, in my limited experience, this is because of difficulties in properly specifying the location of libraries. Thanks. mp -- Michael Powe[EMAIL PROTECTED]Naugatuck CT USA 47.3% of all statistics are made up on the spot. - Steven Wright -- Marc Farrow
Re: Problem starting Tomcat in Netbeans
On Mon, May 29, 2006 at 12:31:12AM +0800, Justin See wrote: I've tried to search for it but couldn't find an answer. Please try to help me. I've created an application and deployed and run successfully in the first PC. I copied everything over, installed everything as the first PC. 1) I've the mysql-connector-java-3.1.12-bin.jar in the common/lib. 2) Added this to the server.xml: Context Resource name=jdbc/MySQLDB auth=Container type=javax.sql.DataSource username=root password=password driverClassName= com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/transport maxActive=8 maxIdle=4/ /Context 3) Added this to the web.xml descriptionMySQL Connection/description resource-ref descriptionDB Connection/description res-ref-namejdbc/MySQLDB/res-ref-name res-type javax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref 4) Set the environment variable: CLASSPATH=C:\Program Files\netbeans- 5.0\enterprise2\jakarta-tomcat-5.5.9\common lib Now when i deploy and start the application on the Tomcat, Tomcat logs give me this error: May 28, 2006 10:46:10 PM org.apache.catalina.mbeans.ServerLifecycleListenercreateMBeans SEVERE: createMBeans: Throwable java.lang.NullPointerException at org.apache.catalina.mbeans.MBeanUtils.createObjectName( MBeanUtils.java:1079) Are you using the Tomcat server distributed with NB, have you set this one up as an external server in NB or is this problem occurring outside of NB? If it is occurring when you 'run project' from within NB, then you may want to connect with the NetBeans user mailing list. Additionally, if the application functions properly within NB but blows up when you deploy the .war file, the same applies. Occasionally, there can be intricacies with deployment internally as opposed to externally. Usually, in my limited experience, this is because of difficulties in properly specifying the location of libraries. Thanks. mp -- Michael Powe[EMAIL PROTECTED] Naugatuck CT USA 47.3% of all statistics are made up on the spot. - Steven Wright pgpLFFfwaKKrS.pgp Description: PGP signature
Re: Problem starting tomcat with jsvc cron job
--- Peter Neu [EMAIL PROTECTED] wrote: Hello, I'm stopping restarting tomcat ervery night with a cron job. I do this because we have many applications running and sometimes we need to simply clean the system. The cron job invokes a shell script which then starts tomcat with jsvc. Up to now this worked fine. But now tomcat does not restart again and I get this confusing error message: -catalina.out-- jsvc.exec error: Service exit with a return value of 143 Apr 5, 2006 12:45:00 AM org.apache.catalina.startup.Catalina load WARNING: Can't load server.xml Either permission problem or CATALINA_HOME not set. --shell-script JAVA_HOME1=/usr/local/jdk1.5.0_04 CATALINA_HOME=/usr/local/jakarta-tomcat-5.5.9 DAEMON_BIN=/usr/local/jakarta-tomcat-5.5.9/bin/jsvc TOMCAT_USER=root TMP_DIR=/var/tmp CATALINA_OPTS=-Xmx2048m -Xms1536m CLASSPATH=/usr/local/java/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar case $1 in start) # # Start Tomcat # $DAEMON_BIN \ -user $TOMCAT_USER \ -home $JAVA_HOME1 \ -Dcatalina.home=$CATALINA_HOME \ This should have done it. I'd check permissions. Nix. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem Starting Tomcat
Hi, I got this problem yesterday at the morning, but during the evening it was working well, and when reboot the machine, it got the same problem. The port 8005 is been used by another program, but in my server.xml I can't see nothing using the port 8005. I'm using it on Windows XP, and tomcat 5.0.28... This is my server.xml... ?xml version='1.0' encoding='utf-8'? Server debug=9 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/ GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service debug=9 name=Catalina Connector acceptCount=100 connectionTimeout=4 debug=9 disableUploadTimeout=true port=81 redirectPort=8443 maxSpareThreads=75 maxThreads=150 minSpareThreads=25 /Connector Connector port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine debug=9 defaultHost=localhost name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger debug=9 prefix=localhost_log. suffix=.txt timestamp=true verbosity=4/ /Host Logger className=org.apache.catalina.logger.FileLogger debug=9 prefix=catalina_log. suffix=.txt timestamp=true verbosity=4/ Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=9/ /Engine /Service /Server Thanks, Marco - Original Message - From: Neil Sherman [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org; Marco Aurélio Seraphim da Silva [EMAIL PROTECTED] Sent: Friday, March 17, 2006 12:07 PM Subject: RE: Problem Starting Tomcat Marco, This sounds as if Tomcat is attempting to bind to a port that is already in use. You should check your server.xml file to see which ports Tomcat is attempting to bind too, you can then check to see if this port is already in use by running: Netstat -a Has this setup worked previously ? If so is tomcat already running ? How are you starting tomcat ? And under what OS ? Neil -Original Message- From: Marco Aurélio Seraphim da Silva [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 15:04 To: users@tomcat.apache.org Subject: Problem Starting Tomcat When I Start tomcat i got this error: StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) ... Someone why are this hapennig? Thanks, Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email message contains confidential information and is intended for the use of its intended recipient only. Access to this email by anyone else is unauthorised. If you are not the intended recipient you are hereby notified that any use, disclosure, copying or distribution or any action taken or omitted to be taken in reliance on it is strictly prohibited. If this communication has been sent to you in error, please notify us immediately. Action Information Management Ltd. 129 Devizes Road, Hilperton, Trowbridge, Wiltshire BA14 7SZ. Tel: +44 (0) 1225 711200 Fax: +44 (0) 1225 711222 Website www.aimltd.co.uk email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem Starting Tomcat
On 17 Mar 2006 at 13:06, Marco Aurélio Seraphim da Sil wrote: Hi, I got this problem yesterday at the morning, but during the evening it was working well, and when reboot the machine, it got the same problem. The port 8005 is been used by another program, but in my server.xml I can't see nothing using the port 8005. 8005 is the default shutdown port for tomcat I'm using it on Windows XP, and tomcat 5.0.28... This is my server.xml... ?xml version='1.0' encoding='utf-8'? Server debug=9 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/va lue /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service debug=9 name=Catalina Connector acceptCount=100 connectionTimeout=4 debug=9 disableUploadTimeout=true port=81 redirectPort=8443 maxSpareThreads=75 maxThreads=150 minSpareThreads=25 /Connector Connector port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine debug=9 defaultHost=localhost name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger debug=9 prefix=localhost_log. suffix=.txt timestamp=true verbosity=4/ /Host Logger className=org.apache.catalina.logger.FileLogger debug=9 prefix=catalina_log. suffix=.txt timestamp=true verbosity=4/ Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=9/ /Engine /Service /Server Thanks, Marco - Original Message - From: Neil Sherman [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org; Marco Aurélio Seraphim da Silva [EMAIL PROTECTED] Sent: Friday, March 17, 2006 12:07 PM Subject: RE: Problem Starting Tomcat Marco, This sounds as if Tomcat is attempting to bind to a port that is already in use. You should check your server.xml file to see which ports Tomcat is attempting to bind too, you can then check to see if this port is already in use by running: Netstat -a Has this setup worked previously ? If so is tomcat already running ? How are you starting tomcat ? And under what OS ? Neil -Original Message- From: Marco Aurélio Seraphim da Silva [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 15:04 To: users@tomcat.apache.org Subject: Problem Starting Tomcat When I Start tomcat i got this error: StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) ... Someone why are this hapennig? Thanks, Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email message contains confidential information and is intended for the use of its intended recipient only. Access to this email by anyone else is unauthorised. If you are not the intended recipient you are hereby notified that any use, disclosure, copying or distribution or any action taken or omitted to be taken in reliance on it is strictly prohibited. If this communication has been sent to you in error, please notify us immediately. Action Information Management Ltd. 129 Devizes Road, Hilperton, Trowbridge, Wiltshire BA14 7SZ. Tel: +44 (0) 1225 711200 Fax: +44 (0) 1225 711222 Website www.aimltd.co.uk email: [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: Problem Starting Tomcat
Well I had same problem with Tomcat and I use Netbeans 5. I solved this problem by stopping server in NetBeans 5 another Runtime window in NetbBeans 5,and now everything working fine. Yes sometimes i got again this situation but i solved again on the same problem. It happens that Tomcat can`t stopped servis (i don`t now why). If you don`t use NetBeans press CTRL+ALT+DEL and see if any of java.exe is running even you didn`t start any Tomcat and if yoy find it kill that process. ANd i think it will help Bye --- Steve Ochani [EMAIL PROTECTED] wrote: On 17 Mar 2006 at 13:06, Marco Aurélio Seraphim da Sil wrote: Hi, I got this problem yesterday at the morning, but during the evening it was working well, and when reboot the machine, it got the same problem. The port 8005 is been used by another program, but in my server.xml I can't see nothing using the port 8005. 8005 is the default shutdown port for tomcat I'm using it on Windows XP, and tomcat 5.0.28... This is my server.xml... ?xml version='1.0' encoding='utf-8'? Server debug=9 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/va lue /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service debug=9 name=Catalina Connector acceptCount=100 connectionTimeout=4 debug=9 disableUploadTimeout=true port=81 redirectPort=8443 maxSpareThreads=75 maxThreads=150 minSpareThreads=25 /Connector Connector port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine debug=9 defaultHost=localhost name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger debug=9 prefix=localhost_log. suffix=.txt timestamp=true verbosity=4/ /Host Logger className=org.apache.catalina.logger.FileLogger debug=9 prefix=catalina_log. suffix=.txt timestamp=true verbosity=4/ Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=9/ /Engine /Service /Server Thanks, Marco - Original Message - From: Neil Sherman [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org; Marco Aurélio Seraphim da Silva [EMAIL PROTECTED] Sent: Friday, March 17, 2006 12:07 PM Subject: RE: Problem Starting Tomcat Marco, This sounds as if Tomcat is attempting to bind to a port that is already in use. You should check your server.xml file to see which ports Tomcat is attempting to bind too, you can then check to see if this port is already in use by running: Netstat -a Has this setup worked previously ? If so is tomcat already running ? How are you starting tomcat ? And under what OS ? Neil -Original Message- From: Marco Aurélio Seraphim da Silva [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 15:04 To: users@tomcat.apache.org Subject: Problem Starting Tomcat When I Start tomcat i got this error: StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) ... Someone why are this hapennig? Thanks, Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email message contains confidential information and is intended for the use of its intended recipient only. Access to this email by anyone else is unauthorised. If you are not the intended recipient you are hereby notified that any use, disclosure, copying or distribution or any action taken or omitted to be taken in reliance on it is strictly prohibited. If this communication has been sent to you in error, please notify us immediately. Action Information Management Ltd. 129 Devizes Road, Hilperton, Trowbridge, Wiltshire BA14 7SZ. Tel: +44 (0) 1225 711200 Fax: +44 (0) 1225 711222 Website www.aimltd.co.uk email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: Problem Starting Tomcat - Now works
Yes, that was the problem the NetBeans was using the same port... I had to use windows registry to remove the program, the was no evidence of it... Thanks all, Marco - Original Message - From: Nenad Bosanac [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, March 17, 2006 1:41 PM Subject: Re: Problem Starting Tomcat Well I had same problem with Tomcat and I use Netbeans 5. I solved this problem by stopping server in NetBeans 5 another Runtime window in NetbBeans 5,and now everything working fine. Yes sometimes i got again this situation but i solved again on the same problem. It happens that Tomcat can`t stopped servis (i don`t now why). If you don`t use NetBeans press CTRL+ALT+DEL and see if any of java.exe is running even you didn`t start any Tomcat and if yoy find it kill that process. ANd i think it will help Bye --- Steve Ochani [EMAIL PROTECTED] wrote: On 17 Mar 2006 at 13:06, Marco Aurélio Seraphim da Sil wrote: Hi, I got this problem yesterday at the morning, but during the evening it was working well, and when reboot the machine, it got the same problem. The port 8005 is been used by another program, but in my server.xml I can't see nothing using the port 8005. 8005 is the default shutdown port for tomcat I'm using it on Windows XP, and tomcat 5.0.28... This is my server.xml... ?xml version='1.0' encoding='utf-8'? Server debug=9 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/va lue /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service debug=9 name=Catalina Connector acceptCount=100 connectionTimeout=4 debug=9 disableUploadTimeout=true port=81 redirectPort=8443 maxSpareThreads=75 maxThreads=150 minSpareThreads=25 /Connector Connector port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine debug=9 defaultHost=localhost name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger debug=9 prefix=localhost_log. suffix=.txt timestamp=true verbosity=4/ /Host Logger className=org.apache.catalina.logger.FileLogger debug=9 prefix=catalina_log. suffix=.txt timestamp=true verbosity=4/ Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=9/ /Engine /Service /Server Thanks, Marco - Original Message - From: Neil Sherman [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org; Marco Aurélio Seraphim da Silva [EMAIL PROTECTED] Sent: Friday, March 17, 2006 12:07 PM Subject: RE: Problem Starting Tomcat Marco, This sounds as if Tomcat is attempting to bind to a port that is already in use. You should check your server.xml file to see which ports Tomcat is attempting to bind too, you can then check to see if this port is already in use by running: Netstat -a Has this setup worked previously ? If so is tomcat already running ? How are you starting tomcat ? And under what OS ? Neil -Original Message- From: Marco Aurélio Seraphim da Silva [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 15:04 To: users@tomcat.apache.org Subject: Problem Starting Tomcat When I Start tomcat i got this error: StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) ... Someone why are this hapennig? Thanks, Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email message contains confidential information and is intended for the use of its intended recipient only. Access to this email by anyone else is unauthorised. If you are not the intended recipient you are hereby notified that any use, disclosure, copying or distribution