Re: Error starting tomcat 9.0.7 from Eclipse
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Charles, On 4/24/18 2:48 AM, charles Andrews wrote: > Hi > > I am having problems starting Tomcat 9.0.7 from Eclipse version > Oxygen.3a Release (4.7.3a). Tomcat will start from the command > line but not from within Eclipse. I get the following error: > > Could not create the Java Virtual Machine > > The console log in Eclipse contains: > > -Djava.endorsed.dirs=C:\Program Files\Apache Software > Foundation\apache-tomcat-9.0.7\endorsed is not supported. Endorsed > standards and standalone APIs in modular form will be supported via > the concept of upgradeable modules. > > Can anyone help me with this? I seem to remember someone on SO saying that Eclipse had an update that provides the necessary changes to support Tomcat 9. I dunno if it's available yet though. - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlrfMmkACgkQHPApP6U8 pFisOA//Q6V09hUy4k48IyJOjx7pA4JXZVEMRl1SSErgHE5zGDRUvZo0pyrsqGjV gd3wneCMfou1l0jUmDdBqHJWfcAZDBymmN3xjHl+71n0HesszH8QRJMiRUj/6Be7 EjeMG4OWNIHCLRZhSd++w542zn92b19BA4yHPWGv8C8HXa836pSxpmF7s1gF/KM0 M8zK+GJn72XjWzwxVMlssVr32AtyaLeuKwWNYpbbR3BvnoGV3IEHykbB8MZFHQHt 0ZnJ7p9b/ihS19TxowFWAS5h2ruAJMUsa/Z3rKsDhZMYyWZnPc4HgZPtOJlbINfV 70w9lEmxWllBMAdrn+705pCiWm+MApml7RGdehFafDSVEpbFG1rBFe8pdBAodWW7 PjPYnIv4QqcAPpcw0uoqkP9UAiFWpD9UvYPZuomgnYQ56EQzsa06yGZCT7nThkSV zU537w+Pbw6F7MCtEChfFvJAFlZNwPISaob7xP7ExvxVX6SgyQ7bbf0zGpfcJc1N h/l70Odgr9S8DGDL7oY/QOxOif+PpTGXZi//imUek0UFDYVY0V2SZe0DQ0jPNg5D 5mm+CMCZtYx/en+C0Nj2wUSm1+OWCBViCmn2Z6w36/LVmBqpgLdbS17N7BZoWDKY 92zBsraMNUMbTBlHHOf1GPTn2AawFSo/0RAlYY0n0vjvjSfXGLg= =Hp0v -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Error starting tomcat 9.0.7 from Eclipse
On 24/04/18 07:48, charles Andrews wrote: > Hi > > I am having problems starting Tomcat 9.0.7 from Eclipse version > Oxygen.3a Release (4.7.3a). Tomcat will start from the command line > but not from within Eclipse. I get the following error: > > Could not create the Java Virtual Machine > > The console log in Eclipse contains: > > -Djava.endorsed.dirs=C:\Program Files\Apache Software > Foundation\apache-tomcat-9.0.7\endorsed is not supported. Endorsed > standards and standalone APIs > in modular form will be supported via the concept of upgradeable modules. > > Can anyone help me with this? That is a question for the Eclipse folks. It looks like Eclipse's integration for Apache Tomcat needs an update for Java 9. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Error starting tomcat 9.0.7 from Eclipse
Hi I am having problems starting Tomcat 9.0.7 from Eclipse version Oxygen.3a Release (4.7.3a). Tomcat will start from the command line but not from within Eclipse. I get the following error: Could not create the Java Virtual Machine The console log in Eclipse contains: -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\apache-tomcat-9.0.7\endorsed is not supported. Endorsed standards and standalone APIs in modular form will be supported via the concept of upgradeable modules. Can anyone help me with this? Thanks. Charles Andrews - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 403 error starting tomcat 7.0.22 application on windows 7
When i have changed url for my app from http://localhost... to http://127.0.0.1... the 403 error has gone. -Исходное сообщение- From: Tim Watts Sent: Monday, November 14, 2011 7:35 PM To: Tomcat Users List Subject: Re: 403 error starting tomcat 7.0.22 application on windows 7 On Mon, 2011-11-14 at 09:56 +0400, bas...@obninsk.com wrote: -Исходное сообщение- From: Tim Watts Sent: Monday, November 14, 2011 9:09 AM To: Tomcat Users List Subject: Re: 403 error starting tomcat 7.0.22 application on windows 7 On Mon, 2011-11-14 at 08:17 +0400, bas...@obninsk.com wrote: Can you paste the application web.xml file (inline) into your reply? ?xml version=1.0 encoding=UTF-8? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 display-nameWEB query/display-name description/description error-page error-code404/error-code location/includes/error404.jsp/location /error-page error-page error-code500/error-code location/includes/error500.jsp/location /error-page servlet description/description display-namereportcmnt/display-name servlet-namereportcmnt/servlet-name jsp-file/jsp/reportcmnt.jsp/jsp-file /servlet servlet-mapping servlet-namereportcmnt/servlet-name url-pattern/reportcmnt/url-pattern /servlet-mapping /web-app Do you have an access log configured, if so, what does it show? 0:0:0:0:0:0:0:1 - - [13/Nov/2011:09:50:32 +0300] GET /query HTTP/1.1 302 125 - Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 0:0:0:0:0:0:0:1 - - [13/Nov/2011:09:50:32 +0300] GET /query/ HTTP/1.1 403 964 - Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 0:0:0:0:0:0:0:1 - - [13/Nov/2011:11:40:54 +0300] GET /query HTTP/1.1 302 125 http://localhost:8082/manager/html;jsessionid=4D76EA53493CA915B556DB02D1D9932E?org.apache.catalina.filters.CSRF_NONCE=95AB554C225507BE146FBA41E2BF3A97; Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 0:0:0:0:0:0:0:1 - - [13/Nov/2011:11:40:54 +0300] GET /query/ HTTP/1.1 403 964 http://localhost:8082/manager/html;jsessionid=4D76EA53493CA915B556DB02D1D9932E?org.apache.catalina.filters.CSRF_NONCE=95AB554C225507BE146FBA41E2BF3A97; Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 What user account is Tomcat running under? A: local system account. It has full access to the application's folders and files. OK, you're getting a 403 on http://localhost:8082/query/ but your web.xml only shows a mapping for /reportcmnt and no welcome file declarations. What happens if you use /query/reportcmnt instead? A: 403 error again. Is there perhaps an index.html that would have redirected to /query/reportcmnt? A: My index.html contains html meta content=text/html;charset=utf-8/ head titleWEB query/title /head body scriptlocation=jsp/app.jsp/script /body /html Q: What version of Tomcat were you using prior to the win7 migration? A: Tomcat 7.0.22. I've just installed Tomcat 7.0.22 on WinXP, then copied my app from Win7 to the WinXp webapps folder and run my app. It works fine. So (xp,tc7)=OK but (win7,tc7)=403 for 'query' but not 'manager'. Presumably on XP you're also running Tomcat as a service under the local system account? Just for grins, have you tried stopping the service then running Tomcat from a command shell (e.g. {tc-home}\bin \startup.bat) on win7 under your user account and see if you still get the 403? Just guessing here but is it possible your web app files have security constraints attached to them that aren't being resolved on win7 but are on xp? Are there any conditions in your app logic that would return a 403? Perhaps it can't access a service from win7 but can from xp? Licensing? Also, looks like you've done some tweaking on server.xml (e.g. different server port). Can you paste in this file as well? - 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: 403 error starting tomcat 7.0.22 application on windows 7
On Mon, 2011-11-14 at 09:56 +0400, bas...@obninsk.com wrote: -Исходное сообщение- From: Tim Watts Sent: Monday, November 14, 2011 9:09 AM To: Tomcat Users List Subject: Re: 403 error starting tomcat 7.0.22 application on windows 7 On Mon, 2011-11-14 at 08:17 +0400, bas...@obninsk.com wrote: Can you paste the application web.xml file (inline) into your reply? ?xml version=1.0 encoding=UTF-8? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 display-nameWEB query/display-name description/description error-page error-code404/error-code location/includes/error404.jsp/location /error-page error-page error-code500/error-code location/includes/error500.jsp/location /error-page servlet description/description display-namereportcmnt/display-name servlet-namereportcmnt/servlet-name jsp-file/jsp/reportcmnt.jsp/jsp-file /servlet servlet-mapping servlet-namereportcmnt/servlet-name url-pattern/reportcmnt/url-pattern /servlet-mapping /web-app Do you have an access log configured, if so, what does it show? 0:0:0:0:0:0:0:1 - - [13/Nov/2011:09:50:32 +0300] GET /query HTTP/1.1 302 125 - Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 0:0:0:0:0:0:0:1 - - [13/Nov/2011:09:50:32 +0300] GET /query/ HTTP/1.1 403 964 - Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 0:0:0:0:0:0:0:1 - - [13/Nov/2011:11:40:54 +0300] GET /query HTTP/1.1 302 125 http://localhost:8082/manager/html;jsessionid=4D76EA53493CA915B556DB02D1D9932E?org.apache.catalina.filters.CSRF_NONCE=95AB554C225507BE146FBA41E2BF3A97; Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 0:0:0:0:0:0:0:1 - - [13/Nov/2011:11:40:54 +0300] GET /query/ HTTP/1.1 403 964 http://localhost:8082/manager/html;jsessionid=4D76EA53493CA915B556DB02D1D9932E?org.apache.catalina.filters.CSRF_NONCE=95AB554C225507BE146FBA41E2BF3A97; Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 What user account is Tomcat running under? A: local system account. It has full access to the application's folders and files. OK, you're getting a 403 on http://localhost:8082/query/ but your web.xml only shows a mapping for /reportcmnt and no welcome file declarations. What happens if you use /query/reportcmnt instead? A: 403 error again. Is there perhaps an index.html that would have redirected to /query/reportcmnt? A: My index.html contains html meta content=text/html;charset=utf-8/ head titleWEB query/title /head body scriptlocation=jsp/app.jsp/script /body /html Q: What version of Tomcat were you using prior to the win7 migration? A: Tomcat 7.0.22. I've just installed Tomcat 7.0.22 on WinXP, then copied my app from Win7 to the WinXp webapps folder and run my app. It works fine. So (xp,tc7)=OK but (win7,tc7)=403 for 'query' but not 'manager'. Presumably on XP you're also running Tomcat as a service under the local system account? Just for grins, have you tried stopping the service then running Tomcat from a command shell (e.g. {tc-home}\bin \startup.bat) on win7 under your user account and see if you still get the 403? Just guessing here but is it possible your web app files have security constraints attached to them that aren't being resolved on win7 but are on xp? Are there any conditions in your app logic that would return a 403? Perhaps it can't access a service from win7 but can from xp? Licensing? Also, looks like you've done some tweaking on server.xml (e.g. different server port). Can you paste in this file as well? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 403 error starting tomcat 7.0.22 application on windows 7
On 13 Nov 2011, at 07:07, bas...@obninsk.com bas...@obninsk.com wrote: Hi. I updated winXp to win7 and cannot start my tomcat 7.0.22 web-application. The tomcat returns 403 error. When i run manager application everything is ok. The manager app is ok, or running the manager app fixes your other app? What seems to be my problem? Problem: you haven't told us anything useful. Thanks. 403 is HTTP Forbidden, it means that Auth has failed. What Auth do you have configured? p - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 403 error starting tomcat 7.0.22 application on windows 7
Hi. I updated winXp to win7 and cannot start my tomcat 7.0.22 web-application. The tomcat returns 403 error. When i run manager application everything is ok. The manager app is ok, or running the manager app fixes your other app? The manager itself runs ok but starting my app from the manager list still results in 403 error. What seems to be my problem? Problem: you haven't told us anything useful. Thanks. 403 is HTTP Forbidden, it means that Auth has failed. What Auth do you have configured? No Auth have been configured, because i just copy my app to the webapps directory from the old operating system, where my app was running without any Auth configuration. p - 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: 403 error starting tomcat 7.0.22 application on windows 7
On 13 Nov 2011, at 08:46, bas...@obninsk.com bas...@obninsk.com wrote: Hi. I updated winXp to win7 and cannot start my tomcat 7.0.22 web-application. The tomcat returns 403 error. When i run manager application everything is ok. The manager app is ok, or running the manager app fixes your other app? The manager itself runs ok but starting my app from the manager list still results in 403 error. What seems to be my problem? Problem: you haven't told us anything useful. Thanks. 403 is HTTP Forbidden, it means that Auth has failed. What Auth do you have configured? No Auth have been configured, because i just copy my app to the webapps directory from the old operating system, where my app was running without any Auth configuration. What else has changed? Do you still have the old server.xml file? Can you paste the application web.xml file (inline) into your reply? Remove usernames/passwords if present. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 403 error starting tomcat 7.0.22 application on windows 7
Hi. I updated winXp to win7 and cannot start my tomcat 7.0.22 web-application. The tomcat returns 403 error. When i run manager application everything is ok. The manager app is ok, or running the manager app fixes your other app? The manager itself runs ok but starting my app from the manager list still results in 403 error. What seems to be my problem? Problem: you haven't told us anything useful. Thanks. 403 is HTTP Forbidden, it means that Auth has failed. What Auth do you have configured? No Auth have been configured, because i just copy my app to the webapps directory from the old operating system, where my app was running without any Auth configuration. What else has changed? Operating system have been changed from WinXp pro to Win7 pro. That's all. Do you still have the old server.xml file? No. I've installed Tomcat 7.0.22. Can you paste the application web.xml file (inline) into your reply? ?xml version=1.0 encoding=UTF-8? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 display-nameWEB query/display-name description/description error-page error-code404/error-code location/includes/error404.jsp/location /error-page error-page error-code500/error-code location/includes/error500.jsp/location /error-page servlet description/description display-namereportcmnt/display-name servlet-namereportcmnt/servlet-name jsp-file/jsp/reportcmnt.jsp/jsp-file /servlet servlet-mapping servlet-namereportcmnt/servlet-name url-pattern/reportcmnt/url-pattern /servlet-mapping /web-app Remove usernames/passwords if present. - 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: 403 error starting tomcat 7.0.22 application on windows 7
On 13/11/2011 09:31, bas...@obninsk.com wrote: Hi. I updated winXp to win7 and cannot start my tomcat 7.0.22 web-application. The tomcat returns 403 error. When i run manager application everything is ok. The manager app is ok, or running the manager app fixes your other app? The manager itself runs ok but starting my app from the manager list still results in 403 error. What seems to be my problem? Problem: you haven't told us anything useful. Thanks. 403 is HTTP Forbidden, it means that Auth has failed. What Auth do you have configured? No Auth have been configured, because i just copy my app to the webapps directory from the old operating system, where my app was running without any Auth configuration. What else has changed? Operating system have been changed from WinXp pro to Win7 pro. That's all. Do you still have the old server.xml file? No. I've installed Tomcat 7.0.22. Can you paste the application web.xml file (inline) into your reply? ?xml version=1.0 encoding=UTF-8? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 display-nameWEB query/display-name description/description error-page error-code404/error-code location/includes/error404.jsp/location /error-page error-page error-code500/error-code location/includes/error500.jsp/location /error-page servlet description/description display-namereportcmnt/display-name servlet-namereportcmnt/servlet-name jsp-file/jsp/reportcmnt.jsp/jsp-file /servlet servlet-mapping servlet-namereportcmnt/servlet-name url-pattern/reportcmnt/url-pattern /servlet-mapping /web-app Remove usernames/passwords if present. What is in the WEB-INF/lib and WEB-INF/classes directory? Does the application deploy correctly? Is there anything in the logs? Do you have an access log configured, if so, what does it show? What user account is Tomcat running under? p -- [key:62590808] signature.asc Description: OpenPGP digital signature
Re: 403 error starting tomcat 7.0.22 application on windows 7
Hi. I updated winXp to win7 and cannot start my tomcat 7.0.22 web-application. The tomcat returns 403 error. When i run manager application everything is ok. The manager app is ok, or running the manager app fixes your other app? The manager itself runs ok but starting my app from the manager list still results in 403 error. What seems to be my problem? Problem: you haven't told us anything useful. Thanks. 403 is HTTP Forbidden, it means that Auth has failed. What Auth do you have configured? No Auth have been configured, because i just copy my app to the webapps directory from the old operating system, where my app was running without any Auth configuration. What else has changed? Operating system have been changed from WinXp pro to Win7 pro. That's all. Do you still have the old server.xml file? No. I've installed Tomcat 7.0.22. Can you paste the application web.xml file (inline) into your reply? ?xml version=1.0 encoding=UTF-8? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 display-nameWEB query/display-name description/description error-page error-code404/error-code location/includes/error404.jsp/location /error-page error-page error-code500/error-code location/includes/error500.jsp/location /error-page servlet description/description display-namereportcmnt/display-name servlet-namereportcmnt/servlet-name jsp-file/jsp/reportcmnt.jsp/jsp-file /servlet servlet-mapping servlet-namereportcmnt/servlet-name url-pattern/reportcmnt/url-pattern /servlet-mapping /web-app Remove usernames/passwords if present. What is in the WEB-INF/lib and WEB-INF/classes directory? WEB-INF/lib contains com4j.jar ojdbc6.jar orai18n.jar orgkvsutils_2_0.jar serializer.jar SmartInspect.jar xalan.jar xercesImpl.jar xml-apis.jar WEB-INF/classes doesn't exxists. Does the application deploy correctly? Yes. Is there anything in the logs? catalina.2011-11-13.log: ноя 13, 2011 9:50:06 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Embarcadero\RAD Studio\7.0\bin;C:\Users\Public\Documents\RAD Studio\7.0\Bpl;C:\app\basil\product\11.2.0\client_1;C:\app\basil\product\11.2.0\client_1\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;y:\Program Files\Microsoft SQL Server\100\Tools\Binn\;y:\Program Files\Microsoft SQL Server\100\Tools\Binn\;y:\Program Files\Microsoft SQL Server\100\DTS\Binn\;c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;y:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\QuickTime\QTSystem\;;. ноя 13, 2011 9:50:07 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-bio-8082] ноя 13, 2011 9:50:07 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [ajp-bio-8009] ноя 13, 2011 9:50:07 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1927 ms ноя 13, 2011 9:50:07 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina ноя 13, 2011 9:50:07 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.22 ноя 13, 2011 9:50:07 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory docs ноя 13, 2011 9:50:07 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory loader ноя 13, 2011 9:50:08 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory manager ноя 13, 2011 9:50:08 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory query ноя 13, 2011 9:50:09 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory ROOT ноя 13, 2011 9:50:09 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler
Re: 403 error starting tomcat 7.0.22 application on windows 7
On Mon, 2011-11-14 at 08:17 +0400, bas...@obninsk.com wrote: Can you paste the application web.xml file (inline) into your reply? ?xml version=1.0 encoding=UTF-8? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 display-nameWEB query/display-name description/description error-page error-code404/error-code location/includes/error404.jsp/location /error-page error-page error-code500/error-code location/includes/error500.jsp/location /error-page servlet description/description display-namereportcmnt/display-name servlet-namereportcmnt/servlet-name jsp-file/jsp/reportcmnt.jsp/jsp-file /servlet servlet-mapping servlet-namereportcmnt/servlet-name url-pattern/reportcmnt/url-pattern /servlet-mapping /web-app Do you have an access log configured, if so, what does it show? 0:0:0:0:0:0:0:1 - - [13/Nov/2011:09:50:32 +0300] GET /query HTTP/1.1 302 125 - Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 0:0:0:0:0:0:0:1 - - [13/Nov/2011:09:50:32 +0300] GET /query/ HTTP/1.1 403 964 - Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 0:0:0:0:0:0:0:1 - - [13/Nov/2011:11:40:54 +0300] GET /query HTTP/1.1 302 125 http://localhost:8082/manager/html;jsessionid=4D76EA53493CA915B556DB02D1D9932E?org.apache.catalina.filters.CSRF_NONCE=95AB554C225507BE146FBA41E2BF3A97; Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 0:0:0:0:0:0:0:1 - - [13/Nov/2011:11:40:54 +0300] GET /query/ HTTP/1.1 403 964 http://localhost:8082/manager/html;jsessionid=4D76EA53493CA915B556DB02D1D9932E?org.apache.catalina.filters.CSRF_NONCE=95AB554C225507BE146FBA41E2BF3A97; Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 What user account is Tomcat running under? OK, you're getting a 403 on http://localhost:8082/query/ but your web.xml only shows a mapping for /reportcmnt and no welcome file declarations. What happens if you use /query/reportcmnt instead? Is there perhaps an index.html that would have redirected to /query/reportcmnt? Q: What version of Tomcat were you using prior to the win7 migration? If you were using a pre-Tomcat7 version you may be butting up against 7's stricter servlet compliance. You should explicitly declare a welcome file in web.xml. - 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: 403 error starting tomcat 7.0.22 application on windows 7
-Исходное сообщение- From: Tim Watts Sent: Monday, November 14, 2011 9:09 AM To: Tomcat Users List Subject: Re: 403 error starting tomcat 7.0.22 application on windows 7 On Mon, 2011-11-14 at 08:17 +0400, bas...@obninsk.com wrote: Can you paste the application web.xml file (inline) into your reply? ?xml version=1.0 encoding=UTF-8? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 display-nameWEB query/display-name description/description error-page error-code404/error-code location/includes/error404.jsp/location /error-page error-page error-code500/error-code location/includes/error500.jsp/location /error-page servlet description/description display-namereportcmnt/display-name servlet-namereportcmnt/servlet-name jsp-file/jsp/reportcmnt.jsp/jsp-file /servlet servlet-mapping servlet-namereportcmnt/servlet-name url-pattern/reportcmnt/url-pattern /servlet-mapping /web-app Do you have an access log configured, if so, what does it show? 0:0:0:0:0:0:0:1 - - [13/Nov/2011:09:50:32 +0300] GET /query HTTP/1.1 302 125 - Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 0:0:0:0:0:0:0:1 - - [13/Nov/2011:09:50:32 +0300] GET /query/ HTTP/1.1 403 964 - Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 0:0:0:0:0:0:0:1 - - [13/Nov/2011:11:40:54 +0300] GET /query HTTP/1.1 302 125 http://localhost:8082/manager/html;jsessionid=4D76EA53493CA915B556DB02D1D9932E?org.apache.catalina.filters.CSRF_NONCE=95AB554C225507BE146FBA41E2BF3A97; Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 0:0:0:0:0:0:0:1 - - [13/Nov/2011:11:40:54 +0300] GET /query/ HTTP/1.1 403 964 http://localhost:8082/manager/html;jsessionid=4D76EA53493CA915B556DB02D1D9932E?org.apache.catalina.filters.CSRF_NONCE=95AB554C225507BE146FBA41E2BF3A97; Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 What user account is Tomcat running under? A: local system account. It has full access to the application's folders and files. OK, you're getting a 403 on http://localhost:8082/query/ but your web.xml only shows a mapping for /reportcmnt and no welcome file declarations. What happens if you use /query/reportcmnt instead? A: 403 error again. Is there perhaps an index.html that would have redirected to /query/reportcmnt? A: My index.html contains html meta content=text/html;charset=utf-8/ head titleWEB query/title /head body scriptlocation=jsp/app.jsp/script /body /html Q: What version of Tomcat were you using prior to the win7 migration? A: Tomcat 7.0.22. I've just installed Tomcat 7.0.22 on WinXP, then copied my app from Win7 to the WinXp webapps folder and run my app. It works fine. If you were using a pre-Tomcat7 version you may be butting up against 7's stricter servlet compliance. You should explicitly declare a welcome file in web.xml. Why? - 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 403 error starting tomcat 7.0.22 application on windows 7
catalina.policy? On Mon, Nov 14, 2011 at 4:56 PM, bas...@obninsk.com wrote: -Исходное сообщение- From: Tim Watts Sent: Monday, November 14, 2011 9:09 AM To: Tomcat Users List Subject: Re: 403 error starting tomcat 7.0.22 application on windows 7 On Mon, 2011-11-14 at 08:17 +0400, bas...@obninsk.com wrote: Can you paste the application web.xml file (inline) into your reply? ?xml version=1.0 encoding=UTF-8? web-app xmlns:xsi=http://www.w3.org/**2001/XMLSchema-instancehttp://www.w3.org/2001/XMLSchema-instance xmlns=http://java.sun.com/**xml/ns/javaeehttp://java.sun.com/xml/ns/javaee xmlns:web=http://java.sun.**com/xml/ns/javaee/web-app_2_5.** xsd http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd xsi:schemaLocation=http://**java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/**javaee/web-app_2_5.xsdhttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd version=2.5 display-nameWEB query/display-name description/description error-page error-code404/error-code location/includes/error404.**jsp/location /error-page error-page error-code500/error-code location/includes/error500.**jsp/location /error-page servlet description/description display-namereportcmnt/**display-name servlet-namereportcmnt/**servlet-name jsp-file/jsp/reportcmnt.jsp**/jsp-file /servlet servlet-mapping servlet-namereportcmnt/**servlet-name url-pattern/reportcmnt/url-**pattern /servlet-mapping /web-app Do you have an access log configured, if so, what does it show? 0:0:0:0:0:0:0:1 - - [13/Nov/2011:09:50:32 +0300] GET /query HTTP/1.1 302 125 - Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 0:0:0:0:0:0:0:1 - - [13/Nov/2011:09:50:32 +0300] GET /query/ HTTP/1.1 403 964 - Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 0:0:0:0:0:0:0:1 - - [13/Nov/2011:11:40:54 +0300] GET /query HTTP/1.1 302 125 http://localhost:8082/**manager/html;jsessionid=** 4D76EA53493CA915B556DB02D1D993**2E?org.apache.catalina.** filters.CSRF_NONCE=**95AB554C225507BE146FBA41E2BF3A**97http://localhost:8082/manager/html;jsessionid=4D76EA53493CA915B556DB02D1D9932E?org.apache.catalina.filters.CSRF_NONCE=95AB554C225507BE146FBA41E2BF3A97 Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 0:0:0:0:0:0:0:1 - - [13/Nov/2011:11:40:54 +0300] GET /query/ HTTP/1.1 403 964 http://localhost:8082/**manager/html;jsessionid=** 4D76EA53493CA915B556DB02D1D993**2E?org.apache.catalina.** filters.CSRF_NONCE=**95AB554C225507BE146FBA41E2BF3A**97http://localhost:8082/manager/html;jsessionid=4D76EA53493CA915B556DB02D1D9932E?org.apache.catalina.filters.CSRF_NONCE=95AB554C225507BE146FBA41E2BF3A97 Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 What user account is Tomcat running under? A: local system account. It has full access to the application's folders and files. OK, you're getting a 403 on http://localhost:8082/query/ but your web.xml only shows a mapping for /reportcmnt and no welcome file declarations. What happens if you use /query/reportcmnt instead? A: 403 error again. Is there perhaps an index.html that would have redirected to /query/reportcmnt? A: My index.html contains html meta content=text/html;charset=**utf-8/ head titleWEB query/title /head body scriptlocation=jsp/app.jsp**/script /body /html Q: What version of Tomcat were you using prior to the win7 migration? A: Tomcat 7.0.22. I've just installed Tomcat 7.0.22 on WinXP, then copied my app from Win7 to the WinXp webapps folder and run my app. It works fine. If you were using a pre-Tomcat7 version you may be butting up against 7's stricter servlet compliance. You should explicitly declare a welcome file in web.xml. Why? --**--**- To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.orgusers-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --**--**- To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.orgusers-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --**--**- To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.orgusers-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 403 error starting tomcat 7.0.22 application on windows 7
catalina.policy? // These permissions apply to javac grant codeBase file:${java.home}/lib/- { permission java.security.AllPermission; }; // These permissions apply to all shared system extensions grant codeBase file:${java.home}/jre/lib/ext/- { permission java.security.AllPermission; }; // These permissions apply to javac when ${java.home] points at $JAVA_HOME/jre grant codeBase file:${java.home}/../lib/- { permission java.security.AllPermission; }; // These permissions apply to all shared system extensions when // ${java.home} points at $JAVA_HOME/jre grant codeBase file:${java.home}/lib/ext/- { permission java.security.AllPermission; }; // == CATALINA CODE PERMISSIONS === // These permissions apply to the daemon code grant codeBase file:${catalina.home}/bin/commons-daemon.jar { permission java.security.AllPermission; }; // These permissions apply to the logging API // Note: If tomcat-juli.jar is in ${catalina.base} and not in ${catalina.home}, // update this section accordingly. // grant codeBase file:${catalina.base}/bin/tomcat-juli.jar {..} grant codeBase file:${catalina.home}/bin/tomcat-juli.jar { permission java.io.FilePermission ${java.home}${file.separator}lib${file.separator}logging.properties, read; permission java.io.FilePermission ${catalina.base}${file.separator}conf${file.separator}logging.properties, read; permission java.io.FilePermission ${catalina.base}${file.separator}logs, read, write; permission java.io.FilePermission ${catalina.base}${file.separator}logs${file.separator}*, read, write; permission java.lang.RuntimePermission shutdownHooks; permission java.lang.RuntimePermission getClassLoader; permission java.lang.RuntimePermission setContextClassLoader; permission java.util.logging.LoggingPermission control; permission java.util.PropertyPermission java.util.logging.config.class, read; permission java.util.PropertyPermission java.util.logging.config.file, read; permission java.util.PropertyPermission catalina.base, read; // Note: To enable per context logging configuration, permit read access to // the appropriate file. Be sure that the logging configuration is // secure before enabling such access. // E.g. for the examples web application (uncomment and unwrap // the following to be on a single line): // permission java.io.FilePermission ${catalina.base}${file.separator} // webapps${file.separator}examples${file.separator}WEB-INF // ${file.separator}classes${file.separator}logging.properties, read; }; // These permissions apply to the server startup code grant codeBase file:${catalina.home}/bin/bootstrap.jar { permission java.security.AllPermission; }; // These permissions apply to the servlet API classes // and those that are shared across all class loaders // located in the lib directory grant codeBase file:${catalina.home}/lib/- { permission java.security.AllPermission; }; // If using a per instance lib directory, i.e. ${catalina.base}/lib, // then the following permission will need to be uncommented // grant codeBase file:${catalina.base}/lib/- { // permission java.security.AllPermission; // }; // == WEB APPLICATION PERMISSIONS = // These permissions are granted by default to all web applications // In addition, a web application will be given a read FilePermission // and JndiPermission for all files and directories in its document root. grant { // Required for JNDI lookup of named JDBC DataSource's and // javamail named MimePart DataSource used to send mail permission java.util.PropertyPermission java.home, read; permission java.util.PropertyPermission java.naming.*, read; permission java.util.PropertyPermission javax.sql.*, read; // OS Specific properties to allow read access permission java.util.PropertyPermission os.name, read; permission java.util.PropertyPermission os.version, read; permission java.util.PropertyPermission os.arch, read; permission java.util.PropertyPermission file.separator, read; permission java.util.PropertyPermission path.separator, read; permission java.util.PropertyPermission line.separator, read; // JVM properties to allow read access permission java.util.PropertyPermission java.version, read; permission java.util.PropertyPermission java.vendor, read; permission java.util.PropertyPermission java.vendor.url, read; permission java.util.PropertyPermission java.class.version, read; permission java.util.PropertyPermission java.specification.version, read; permission java.util.PropertyPermission java.specification.vendor, read; permission java.util.PropertyPermission java.specification.name, read; permission
403 error starting tomcat 7.0.22 application on windows 7
Hi. I updated winXp to win7 and cannot start my tomcat 7.0.22 web-application. The tomcat returns 403 error. When i run manager application everything is ok. What seems to be my problem? Thanks.
Re: Error starting Tomcat
Konstantin: I am very glad that I found this thread. For a week I have been struggling with this problem. I have Tomcat7 running. My application which was running just fine under Tomcat5 does not run under Tomcat7. I have created setupclasspath.sh with all the necessary JARs. My Tomcat starts fine and I see the opening page. Even my Axis comes up ok but not my application. I start Tomcat with ./startup.sh and I do not use Eclipse. The message that I get is *** Oct 20, 2011 3:04:03 PM org.apache.catalina.core.ContainerBase addChildInternal SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/mywebapp]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1055) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:978) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1329) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) *** I tried reading this thread but I cannot understand what exactly I should do in my setup. I see only one /opt/tomcat7/lib/servlet-api.jar and this file is inside my CLASSPATH. Your help is greatly appreciated. Thank you. -- View this message in context: http://old.nabble.com/Error-starting-Tomcat-tp32338111p32691794.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Error starting Tomcat
I have Tomcat7 running. My application which was running just fine under Tomcat5 does not run under Tomcat7. I have created setupclasspath.sh with all the necessary JARs. My Tomcat starts fine and I see the opening page. Even my Axis comes up ok but not my application. I start Tomcat with ./startup.sh and I do not use Eclipse. The message that I get is *** Oct 20, 2011 3:04:03 PM org.apache.catalina.core.ContainerBase addChildInternal SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component Sounds like there may have been some configuration changes to the various xml files that pertain to your app, between versions 5 and 7 I mean. Did you change any of the server.xml, and friends, when migrating? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Error starting Tomcat
On 20/10/2011 20:16, ramsri wrote: Konstantin: I am very glad that I found this thread. For a week I have been struggling with this problem. If this is a new problem, please start a new thread. I have Tomcat7 running. My application which was running just fine under Tomcat5 does not run under Tomcat7. I have created setupclasspath.sh with all the necessary JARs. That's not likely to help matters, don't do that. My Tomcat starts fine and I see the opening page. Even my Axis comes up ok but not my application. I start Tomcat with ./startup.sh and I do not use Eclipse. The message that I get is *** Oct 20, 2011 3:04:03 PM org.apache.catalina.core.ContainerBase addChildInternal SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/mywebapp]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1055) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:978) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1329) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) *** I tried reading this thread but I cannot understand what exactly I should do in my setup. I see only one /opt/tomcat7/lib/servlet-api.jar and this file is inside my CLASSPATH. Your help is greatly appreciated. Thank you. Please start a new thread. p signature.asc Description: OpenPGP digital signature
Re: Error starting Tomcat
) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 17 more Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 215 ms -- View this message in context: http://old.nabble.com/Error-starting-Tomcat-tp32338111p32461187.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Error starting Tomcat
) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 17 more Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 215 ms -- View this message in context: http://old.nabble.com/Error-starting-Tomcat-tp32338111p32461189.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Error starting Tomcat
) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 14 more Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig; at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1308) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1390) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:896) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:322) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 17 more Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 215 ms -- View this message in context: http://old.nabble.com/Error-starting-Tomcat-tp32338111p32461187.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Error starting Tomcat
2011/8/26 Pratibha S psund...@gmail.com: Hi Konstantin Kolinko, thank you for the reply. Did you mean tomcat/webapps/examples/WEB-INF/lib? No. Do not touch Tomcat installation and return it to its original state. There is no servlet-api.jar there. Please correct me if I got it wrong. You have to start from scratch and describe what exact error it was, before you broke your Tomcat installation, and how your project is configured. You should not have servlet-api.jar in your own project - it should be only a part of Apache Tomcat runtime. It should not be in WebContent/WEB-INF/lib. There is a FAQ on Eclipse + Tomcat somewhere. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Error starting Tomcat
Hi Konstantin Kolinko, I had copied servlet-api.jar into the tomcat/lib directory while adding external jars. Now I have removed that jar file and any other jar files I have added extra from the tomcat/lib folder. Now, the server is starting. Thank you for the help. Regards, Pratibha On Fri, Aug 26, 2011 at 7:06 AM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2011/8/26 Pratibha S psund...@gmail.com: Hi Konstantin Kolinko, thank you for the reply. Did you mean tomcat/webapps/examples/WEB-INF/lib? No. Do not touch Tomcat installation and return it to its original state. There is no servlet-api.jar there. Please correct me if I got it wrong. You have to start from scratch and describe what exact error it was, before you broke your Tomcat installation, and how your project is configured. You should not have servlet-api.jar in your own project - it should be only a part of Apache Tomcat runtime. It should not be in WebContent/WEB-INF/lib. There is a FAQ on Eclipse + Tomcat somewhere. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Error starting Tomcat
Hi, I'm a newbie. I'm unable to start Tomcat from Eclipse Indigo and getting the error below. I checked forums and found that I need to remove servlet.api from CLASSPATH. I removed the entry in the Libraries and also tried removing the file from tomcat/lib. Now, Eclipse is not recognizing javax.servlet.annotation and some other servlet classes. Please help. Aug 25, 2011 6:00:34 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/server:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386::/usr/java/packages/lib/i386:/usr/lib/i386-linux-gnu/jni:/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu:/usr/lib/jni:/lib:/usr/lib Aug 25, 2011 6:00:34 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:RecommendationApp' did not find a matching property. Aug 25, 2011 6:00:35 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-bio-8080] Aug 25, 2011 6:00:35 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [ajp-bio-8009] Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1634 ms Aug 25, 2011 6:00:35 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Aug 25, 2011 6:00:35 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.20 Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina start SEVERE: Catalina.start: org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.startup.Catalina.start(Catalina.java:621) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 7 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 9 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 11 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 14 more Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig; at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1308) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1390) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:896) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:322) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 17 more Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina start INFO:
Re: Error starting Tomcat
2011/8/26 Pratibha S psund...@gmail.com: Hi, I'm a newbie. I'm unable to start Tomcat from Eclipse Indigo and getting the error below. I checked forums and found that I need to remove servlet.api from CLASSPATH. I removed the entry in the Libraries and also tried removing the file from tomcat/lib. Now, Eclipse is not recognizing javax.servlet.annotation and some other servlet classes. Please help. No. You have to remove it from WEB-INF/lib only. Put it back in all other places. Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig; at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1308) Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Error starting Tomcat
Hi Konstantin Kolinko, thank you for the reply. Did you mean tomcat/webapps/examples/WEB-INF/lib? There is no servlet-api.jar there. Please correct me if I got it wrong. Regards, Pratibha On Thu, Aug 25, 2011 at 6:38 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2011/8/26 Pratibha S psund...@gmail.com: Hi, I'm a newbie. I'm unable to start Tomcat from Eclipse Indigo and getting the error below. I checked forums and found that I need to remove servlet.api from CLASSPATH. I removed the entry in the Libraries and also tried removing the file from tomcat/lib. Now, Eclipse is not recognizing javax.servlet.annotation and some other servlet classes. Please help. No. You have to remove it from WEB-INF/lib only. Put it back in all other places. Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig; at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1308) Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Error starting Tomcat 5.5 as a Windows service
Daniel, Thanks for the suggestion. That did the trick. The Tomcat application is now running as a windows service and everything is working. Odd situation though since I always thought that environment variables were recognized immediately (except for previously opened command windows). Lesson learned :). Thanks, Tony Fountain Benefit Concepts, Inc. (419) 244-9936 x9010 -Original Message- From: Daniel Stephens [mailto:[EMAIL PROTECTED] Sent: Thursday, July 05, 2007 4:32 PM To: Tomcat Users List Subject: Re: Error starting Tomcat 5.5 as a Windows service Make sure you have CATALINA_HOME pointed to your tomcat instance. make sure your java home is correct.. It sounds like it can't find the java home.. You did boot after the install right? If you added that environment variable to the system section, you'll need to boot to pick it up or open a new cmd prompt to re-read the environment. On 7/5/07, Tony Fountain [EMAIL PROTECTED] wrote: Hi, I am attempting to install Tomcat 5.5.23 as a Windows service on a Windows 2003 Server box. The steps I went through are as follows * Installed the JDK 1.5 Update 12 * Manually added the environment variable JAVA_HOME to C:\Program Files\Java\jdk1.5.0_12 (as a system variable, not user level) * Ran the windows installer package and selected the full install option. At this point I expected to be able to test the service can start and serve requests using examples installed with the installation but I am unable to. Anytime I try to start the Windows service the following error is logged: [2007-07-05 15:53:54] [1276 prunsrv.c] [debug] Procrun log initialized [2007-07-05 15:53:54] [info] Running Service... [2007-07-05 15:53:54] [1098 prunsrv.c] [debug] Inside ServiceMain... [2007-07-05 15:53:54] [info] Starting service... [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[0] -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[1] -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[2] -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\endorsed [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[3] -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[4] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[5] -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\logging.properties [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[6] -Djava.class.path=C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\bootstrap.jar [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[7] vfprintf [2007-07-05 15:53:54] [info] Error occurred during initialization of VM [2007-07-05 15:53:54] [info] java/lang/NoClassDefFoundError [2007-07-05 15:53:54] [info] : java/lang/Object I'm assuming it's a class path issue but being new to the world of Java, I'm not sure what could be missing out of a basic installation. I have performed some Google searches and even searched through some of the archives but was unable to find anything specific to this situation. Any pointers or a push in the right direction would be greatly appreciated. FYI - Even at the Windows command prompt, if I type java -version I receive this error: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Same error, different cause so I'm not completely sure if this is even related to the Tomcat installation, rather possibly some odd situation that was encountered when the JDK was installed. Thanks, Tony This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. - 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: Error starting Tomcat 5.5 as a Windows service
Excellent! Glad to hear it worked out. On 7/6/07, Tony Fountain [EMAIL PROTECTED] wrote: Daniel, Thanks for the suggestion. That did the trick. The Tomcat application is now running as a windows service and everything is working. Odd situation though since I always thought that environment variables were recognized immediately (except for previously opened command windows). Lesson learned :). Thanks, Tony Fountain Benefit Concepts, Inc. (419) 244-9936 x9010 -Original Message- From: Daniel Stephens [mailto:[EMAIL PROTECTED] Sent: Thursday, July 05, 2007 4:32 PM To: Tomcat Users List Subject: Re: Error starting Tomcat 5.5 as a Windows service Make sure you have CATALINA_HOME pointed to your tomcat instance. make sure your java home is correct.. It sounds like it can't find the java home.. You did boot after the install right? If you added that environment variable to the system section, you'll need to boot to pick it up or open a new cmd prompt to re-read the environment. On 7/5/07, Tony Fountain [EMAIL PROTECTED] wrote: Hi, I am attempting to install Tomcat 5.5.23 as a Windows service on a Windows 2003 Server box. The steps I went through are as follows * Installed the JDK 1.5 Update 12 * Manually added the environment variable JAVA_HOME to C:\Program Files\Java\jdk1.5.0_12 (as a system variable, not user level) * Ran the windows installer package and selected the full install option. At this point I expected to be able to test the service can start and serve requests using examples installed with the installation but I am unable to. Anytime I try to start the Windows service the following error is logged: [2007-07-05 15:53:54] [1276 prunsrv.c] [debug] Procrun log initialized [2007-07-05 15:53:54] [info] Running Service... [2007-07-05 15:53:54] [1098 prunsrv.c] [debug] Inside ServiceMain... [2007-07-05 15:53:54] [info] Starting service... [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[0] -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[1] -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[2] -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\endorsed [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[3] -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[4] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[5] -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\logging.properties [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[6] -Djava.class.path=C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\bootstrap.jar [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[7] vfprintf [2007-07-05 15:53:54] [info] Error occurred during initialization of VM [2007-07-05 15:53:54] [info] java/lang/NoClassDefFoundError [2007-07-05 15:53:54] [info] : java/lang/Object I'm assuming it's a class path issue but being new to the world of Java, I'm not sure what could be missing out of a basic installation. I have performed some Google searches and even searched through some of the archives but was unable to find anything specific to this situation. Any pointers or a push in the right direction would be greatly appreciated. FYI - Even at the Windows command prompt, if I type java -version I receive this error: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Same error, different cause so I'm not completely sure if this is even related to the Tomcat installation, rather possibly some odd situation that was encountered when the JDK was installed. Thanks, Tony This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error starting Tomcat 5.5 as a Windows service
Hi, I am attempting to install Tomcat 5.5.23 as a Windows service on a Windows 2003 Server box. The steps I went through are as follows * Installed the JDK 1.5 Update 12 * Manually added the environment variable JAVA_HOME to C:\Program Files\Java\jdk1.5.0_12 (as a system variable, not user level) * Ran the windows installer package and selected the full install option. At this point I expected to be able to test the service can start and serve requests using examples installed with the installation but I am unable to. Anytime I try to start the Windows service the following error is logged: [2007-07-05 15:53:54] [1276 prunsrv.c] [debug] Procrun log initialized [2007-07-05 15:53:54] [info] Running Service... [2007-07-05 15:53:54] [1098 prunsrv.c] [debug] Inside ServiceMain... [2007-07-05 15:53:54] [info] Starting service... [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[0] -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[1] -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[2] -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\endorsed [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[3] -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[4] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[5] -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\logging.properties [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[6] -Djava.class.path=C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\bootstrap.jar [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[7] vfprintf [2007-07-05 15:53:54] [info] Error occurred during initialization of VM [2007-07-05 15:53:54] [info] java/lang/NoClassDefFoundError [2007-07-05 15:53:54] [info] : java/lang/Object I'm assuming it's a class path issue but being new to the world of Java, I'm not sure what could be missing out of a basic installation. I have performed some Google searches and even searched through some of the archives but was unable to find anything specific to this situation. Any pointers or a push in the right direction would be greatly appreciated. FYI - Even at the Windows command prompt, if I type java -version I receive this error: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Same error, different cause so I'm not completely sure if this is even related to the Tomcat installation, rather possibly some odd situation that was encountered when the JDK was installed. Thanks, Tony
Re: Error starting Tomcat 5.5 as a Windows service
Make sure you have CATALINA_HOME pointed to your tomcat instance. make sure your java home is correct.. It sounds like it can't find the java home.. You did boot after the install right? If you added that environment variable to the system section, you'll need to boot to pick it up or open a new cmd prompt to re-read the environment. On 7/5/07, Tony Fountain [EMAIL PROTECTED] wrote: Hi, I am attempting to install Tomcat 5.5.23 as a Windows service on a Windows 2003 Server box. The steps I went through are as follows * Installed the JDK 1.5 Update 12 * Manually added the environment variable JAVA_HOME to C:\Program Files\Java\jdk1.5.0_12 (as a system variable, not user level) * Ran the windows installer package and selected the full install option. At this point I expected to be able to test the service can start and serve requests using examples installed with the installation but I am unable to. Anytime I try to start the Windows service the following error is logged: [2007-07-05 15:53:54] [1276 prunsrv.c] [debug] Procrun log initialized [2007-07-05 15:53:54] [info] Running Service... [2007-07-05 15:53:54] [1098 prunsrv.c] [debug] Inside ServiceMain... [2007-07-05 15:53:54] [info] Starting service... [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[0] -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[1] -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[2] -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\endorsed [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[3] -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[4] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[5] -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\logging.properties [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[6] -Djava.class.path=C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\bootstrap.jar [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[7] vfprintf [2007-07-05 15:53:54] [info] Error occurred during initialization of VM [2007-07-05 15:53:54] [info] java/lang/NoClassDefFoundError [2007-07-05 15:53:54] [info] : java/lang/Object I'm assuming it's a class path issue but being new to the world of Java, I'm not sure what could be missing out of a basic installation. I have performed some Google searches and even searched through some of the archives but was unable to find anything specific to this situation. Any pointers or a push in the right direction would be greatly appreciated. FYI - Even at the Windows command prompt, if I type java -version I receive this error: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Same error, different cause so I'm not completely sure if this is even related to the Tomcat installation, rather possibly some odd situation that was encountered when the JDK was installed. Thanks, Tony
Re: Error starting Tomcat 5.5 as a Windows service
java.lang.Object is the core ancestor of all java classes. Given it's pretty much available by default regardless of classpath or anything else I suspect your JVM install is messed up in some manner. Try reinstalling your JVM and start tomcat again. --David Tony Fountain wrote: Hi, I am attempting to install Tomcat 5.5.23 as a Windows service on a Windows 2003 Server box. The steps I went through are as follows * Installed the JDK 1.5 Update 12 * Manually added the environment variable JAVA_HOME to C:\Program Files\Java\jdk1.5.0_12 (as a system variable, not user level) * Ran the windows installer package and selected the full install option. At this point I expected to be able to test the service can start and serve requests using examples installed with the installation but I am unable to. Anytime I try to start the Windows service the following error is logged: [2007-07-05 15:53:54] [1276 prunsrv.c] [debug] Procrun log initialized [2007-07-05 15:53:54] [info] Running Service... [2007-07-05 15:53:54] [1098 prunsrv.c] [debug] Inside ServiceMain... [2007-07-05 15:53:54] [info] Starting service... [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[0] -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[1] -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[2] -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\endorsed [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[3] -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[4] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[5] -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\logging.properties [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[6] -Djava.class.path=C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\bootstrap.jar [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[7] vfprintf [2007-07-05 15:53:54] [info] Error occurred during initialization of VM [2007-07-05 15:53:54] [info] java/lang/NoClassDefFoundError [2007-07-05 15:53:54] [info] : java/lang/Object I'm assuming it's a class path issue but being new to the world of Java, I'm not sure what could be missing out of a basic installation. I have performed some Google searches and even searched through some of the archives but was unable to find anything specific to this situation. Any pointers or a push in the right direction would be greatly appreciated. FYI - Even at the Windows command prompt, if I type java -version I receive this error: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Same error, different cause so I'm not completely sure if this is even related to the Tomcat installation, rather possibly some odd situation that was encountered when the JDK was installed. Thanks, Tony - 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: Error starting Tomcat 5.5 as a Windows service
Tony, We had the same issue recently. Copying msvcr71.dll into the $CATALINA_HOME/bin directory fixed the issue... Here's a thread with more background: http://forum.java.sun.com/thread.jspa?threadID=5121172 Hope this helps! -randy Randy Bumgardner Software Engineer 1400 Marina Way South Richmond, CA 94804 +1 510.621.5010 direct +1 510.402.8750 cell [EMAIL PROTECTED] www.inovis.com -Original Message- From: Tony Fountain [mailto:[EMAIL PROTECTED] Sent: Thursday, July 05, 2007 1:14 PM To: users@tomcat.apache.org Subject: Error starting Tomcat 5.5 as a Windows service Hi, I am attempting to install Tomcat 5.5.23 as a Windows service on a Windows 2003 Server box. The steps I went through are as follows * Installed the JDK 1.5 Update 12 * Manually added the environment variable JAVA_HOME to C:\Program Files\Java\jdk1.5.0_12 (as a system variable, not user level) * Ran the windows installer package and selected the full install option. At this point I expected to be able to test the service can start and serve requests using examples installed with the installation but I am unable to. Anytime I try to start the Windows service the following error is logged: [2007-07-05 15:53:54] [1276 prunsrv.c] [debug] Procrun log initialized [2007-07-05 15:53:54] [info] Running Service... [2007-07-05 15:53:54] [1098 prunsrv.c] [debug] Inside ServiceMain... [2007-07-05 15:53:54] [info] Starting service... [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[0] -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[1] -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[2] -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\endorsed [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[3] -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[4] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[5] -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\logging.properties [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[6] -Djava.class.path=C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\bootstrap.jar [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[7] vfprintf [2007-07-05 15:53:54] [info] Error occurred during initialization of VM [2007-07-05 15:53:54] [info] java/lang/NoClassDefFoundError [2007-07-05 15:53:54] [info] : java/lang/Object I'm assuming it's a class path issue but being new to the world of Java, I'm not sure what could be missing out of a basic installation. I have performed some Google searches and even searched through some of the archives but was unable to find anything specific to this situation. Any pointers or a push in the right direction would be greatly appreciated. FYI - Even at the Windows command prompt, if I type java -version I receive this error: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Same error, different cause so I'm not completely sure if this is even related to the Tomcat installation, rather possibly some odd situation that was encountered when the JDK was installed. Thanks, Tony - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]