Re: Tomcat 9 won't start according to Eclipse
> The key here is to double-click (not right-click) the server listed in > the server pane at the bottom center of the IDE. > Absolutely. I finally got it now, thanks for your patience - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 9 won't start according to Eclipse
On Wed, Aug 2, 2017 at 2:30 PM, Konstantin Kolinko <knst.koli...@gmail.com> wrote: > 2017-07-28 20:51 GMT+03:00 Roparzh Hemon <roparzhhe...@gmail.com>: >> On Fri, Jul 28, 2017 at 6:18 PM, Konstantin Kolinko >> <knst.koli...@gmail.com> wrote: >>> >>> Double click on the server (in "Servers" view) -> set "[x] Publish >>> module context to separate XML files". >> When I right-click on "Servers" in Project Explorer, I do not see >> any "Publish module" >> item. I also found a "Server" item in Preferences, which has a >> "Audio/Launching/Overlays/Profilers/Runtime environments" submenu. > > > http://help.eclipse.org/neon/topic/org.eclipse.platform.doc.user/concepts/concepts-5.htm > Help > Workbench User Guide > Concepts > Views > > To open the "Servers" view go to menu "Window" > "Show View" > "Other..." > > A dialog named "Show View" opens. > Type "ser" in the filter box at the top of the dialog. > Choose "Server" > "Servers", click OK. This simply sends me back to the Server component in Project Explorer (which I could attain by simply clicking on it instead of doing the more complicated sequence of operations you describe). I repeat, I do not see any "Publish module" item anywhere. All I see is, for each server, a list consisting of the following files : catalina.policy, catalina.properties, context.xml, server.out.xml, server.xml, tomcat-users.xml, web.xml. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 9 won't start according to Eclipse
On Fri, Jul 28, 2017 at 6:18 PM, Konstantin Kolinkowrote: > > Eclipse by default places element for web application into > Tomcat's server.xml file. > This is a discouraged practice. A result of such configuration is that > when the application fails to start (due to its own misconfiguration) > this failure is fatal for Tomcat as well. Which makes people mistake non-Tomcat issues for Tomcat issues, as happened to me here. On Fri, Jul 28, 2017 at 6:18 PM, Konstantin Kolinko wrote: > > Double click on the server (in "Servers" view) -> set "[x] Publish > module context to separate XML files". > When I right-click on "Servers" in Project Explorer, I do not see any "Publish module" item. I also found a "Server" item in Preferences, which has a "Audio/Launching/Overlays/Profilers/Runtime environments" submenu. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 9 won't start according to Eclipse
On Fri, Jul 28, 2017 at 6:29 PM, André Warnier (tomcat)wrote: > On 28.07.2017 18:18, Konstantin Kolinko wrote: >> >> Caused by: java.lang.IllegalArgumentException: L'association de >>> >>> servlet (servlet mapping) indique un nom de servlet inconnu [Taste] > > > This seems to be the underlying problem. > There is a element associating some URL pattern (?) with a > "Taste", but there is no such servlet. > You are 100% correct, this was a typo in my web.xml file. I corrected it and now everything works fine. All in all, this was not a tomcat issue. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 9 won't start according to Eclipse
On Fri, Jul 28, 2017 at 5:13 PM, Mark Eggerswrote: > My initial guess is that you have Tomcat running as a service left over > from your previous attempts and that it is bound to port 8080 already. That seems likely indeed, but 1) Eclipse says it is stopped before launching it and 2) when I do lsof -i tcp:8080 in my terminal I get an empty output. Below is the long output in the console. The one line I noticed in it is the following : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/Users/roparzhhemon/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.] Console output : juil. 28, 2017 5:44:55 PM org.apache.tomcat.util.digester.SetPropertiesRule begin AVERTISSEMENT: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:jupiter' did not find a matching property. juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener log INFOS: Server version:Apache Tomcat/9.0.0.M22 juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener log INFOS: Server built: Jun 21 2017 09:44:18 UTC juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener log INFOS: Server number: 9.0.0.0 juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener log INFOS: OS Name: Mac OS X juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener log INFOS: OS Version:10.11.3 juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener log INFOS: Architecture: x86_64 juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener log INFOS: Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener log INFOS: JVM Version: 1.8.0_131-b11 juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener log INFOS: JVM Vendor:Oracle Corporation juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener log INFOS: CATALINA_BASE: /Users/roparzhhemon/Documents/Web_Projects/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0 juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener log INFOS: CATALINA_HOME: /Users/roparzhhemon/Documents/Installations/usr/local/apache-tomcat-9.0.0.M22 juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener log INFOS: Command line argument: -Dcatalina.base=/Users/roparzhhemon/Documents/Web_Projects/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0 juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener log INFOS: Command line argument: -Dcatalina.home=/Users/roparzhhemon/Documents/Installations/usr/local/apache-tomcat-9.0.0.M22 juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener log INFOS: Command line argument: -Dwtp.deploy=/Users/roparzhhemon/Documents/Web_Projects/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener log INFOS: Command line argument: -Djava.endorsed.dirs=/Users/roparzhhemon/Documents/Installations/usr/local/apache-tomcat-9.0.0.M22/endorsed juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener log INFOS: Command line argument: -Dfile.encoding=UTF-8 juil. 28, 2017 5:44:55 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFOS: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/Users/roparzhhemon/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.] juil. 28, 2017 5:44:56 PM org.apache.coyote.AbstractProtocol init INFOS: Initializing ProtocolHandler ["http-nio-8080"] juil. 28, 2017 5:44:56 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector INFOS: Using a shared selector for servlet write/read juil. 28, 2017 5:44:56 PM org.apache.coyote.AbstractProtocol init INFOS: Initializing ProtocolHandler ["ajp-nio-8009"] juil. 28, 2017 5:44:56 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector INFOS: Using a shared selector for servlet write/read juil. 28, 2017 5:44:56 PM org.apache.catalina.startup.Catalina load INFOS: Initialization processed in 3480 ms juil. 28, 2017 5:44:56 PM org.apache.catalina.core.StandardService startInternal INFOS: Démarrage du service [Catalina] juil. 28, 2017 5:44:56 PM org.apache.catalina.core.StandardEngine startInternal INFOS: Starting Servlet Engine: Apache Tomcat/9.0.0.M22 juil. 28, 2017 5:44:58 PM org.apache.catalina.core.ContainerBase startInternal GRAVE: A child container
Re: Tomcat 9 won't start according to Eclipse
On Thu, Jul 27, 2017 at 5:35 PM, Mark Eggerswrote: > Images are stripped. Please type out the text. Sorry about that, the full error message said 'Starting Tomcat v9.0 Server at localhost (2)' has encountered a problem Server Tomcat v9.0 Server at localhost (2) failed to start. Thanks for all the rest of your feedback. I'll try to switch to Tomcat 8.15.6 and see if it works. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 9 won't start according to Eclipse
Hello all, in Eclipse Neon.3 Release (4.6.3) I get the following error message : Any help appreciated.
Re: Unable to run "Hello World" in Eclipse JEE on Mac 10.11.3
Thank you so much for your detailed feedback Mark, it helped me a lot On Sat, Jul 22, 2017 at 10:25 PM, Mark Eggers <its_toas...@yahoo.com.invalid> wrote: > Roparzh, > > This is going to be very long. I just wrote this, but have NOT done more > than a cursory proof-reading. > > I hope that you find it useful. > > On 7/22/2017 12:14 AM, Roparzh Hemon wrote: >> On my Mac 10.11.3 I've installed the Eclipse JEE IDE (Version: Neon.3 >> Release (4.6.3)) I also installed apache-tomcat 9 on my Mac, using the >> following commands : >> >> sudo mkdir -p /usr/local sudo mv ~/Downloads/apache-tomcat-9.0.0.M21 >> /usr/local sudo rm-f /Library/Tomcat sudo ln -s >> /usr/local/apache-tomcat-9.0.0.M21/ /Library/Tomcat sudo chown -R >> roparzhhemon /Library/Tomcat sudo chmod +x /Library/Tomcat/bin/*.sh >> >> When I try "Run as server" on a minimal html file in JEE, I get the >> following error message : >> >> Could not load the Tomcat server configuration at /Servers/Tomcat v9.0 >> Sever at localhost-config. The configuration may be corrupt or >> incomplete. > > This is going to be very long, and I'm going to split this into two > parts. Part A will be a straightforward (I hope) set of instructions. > Part B will reference Part A and give some rational (I hope) reasons for > why I do the things the way I do. > > Please note that I don't have a Macintosh (yet). Please also note that I > prefer NetBeans. However since the environment I build at $work has to > support both NetBeans and Eclipse, I am a little familiar with Eclipse. > I'll try to keep the soapbox stuff to a minimum. > > The instructions will be for UNIX-like systems (MacOS, Linux), The > Windows instructions are similar, only the locations and commands will > be changed to reflect the operating system. > > Let's get started. > > Part A - Quick Installation > === > > 0. JDK - Needed if you use Maven > > 1. Install Tomcat > > a. mkdir ~[user-name]/Apache > b. cp ~[user-name]Downloads/apache-tomcat-.tar.gz \ >~[user-name]/Apache > is the version that you want > c. cd ~[user-name]/Apache; tar xvfz apache-tomcat-.tar.gz > > 2. Install Maven (not required, but nice to have) > > a. cp ~[user-name]/Downloads/apache-maven-3.5.0-bin.tar.gz \ >~[user-name]/Apache > b. cd ~[user-name]/Apache; tar xvfz apache-maven-3.5.0-bin.tar.gz > c. ln -s ~[user-name]/Apache/apache-maven-3.5.0 \ >~[user-name]/Apache/maven > d. edit .bash_profile (create if needed) >PATH=$PATH:$HOME/Apache/maven/bin >export PATH > > 3. Install Eclipse > > You're on your own here. It looks like Eclipse for the Macintosh is > significantly different than Eclipse for Linux. > > 4. Install Eclipse Plugins > > You will use the Eclipse Marketplace plugin to install the following: > > a. JBoss tools (required for adding Tomcat 9 to Eclipse) > b. Log Viewer (nice to have for viewing log files) > c. Glassfish tools (nice to have for J2EE documentation) > > 5. Configuring Eclipse > > This is going to be really difficult to show without screen captures. > However, I'll give it a shot. > > a. JVM - required if you use Maven > 1. Navigate to Windows->Preferences->Java->Installed JREs > 2. Click on the Add button > 3. Select Standard VM and clieck the Next button > 4. Click on the Directory button > 5. Browse to the JRE included with the JDK >It will be underneath the JDK directory > 6. Click the Finish button > 7. Click the checkbox next to the new JRE (JDK) to make it the default > > b. External Maven - if you use Maven > 1. Navigate to Windows->Maven->Installations > 2. Click on the Add button > 3. Leave the External radio button selected > 4. Click on the Directory button > 5. Browse to ~[user]/Apache/maven > 6. Click on the Finish button > 7. Click the checkbox next to the new Maven to make it the default > > c. Tomcat servers > 1. In the bottom panel, select the Servers tab > 2. Right-mouse click in the empty window (how is this done on a >Macintosh?) > 3. Select New->Server from popup menu > 4. Browse to Tomcat v9.0 Server in the Select the server type > 5. Change the name (not necessary) to Tomcat v9.0.0.M22 > 6. Click the Next button > 7. Click on the Browse button > 8. Browse to ~[user]/Apache/ > 9. Select apache-tomcat-9.0.0.M22 > 10. Click OK > 11. Click Finish > 12. Repeat the above for each type of Tomcat server you want to install > > Part B - Notes > === > > 1. Install Tomcat > > It's been my philosophy to never use a system Tomcat for development > work. You will run into multi
Re: [OT] Unable to install Tomcat 9 on Windows 10
On Fri, Jul 21, 2017 at 6:35 PM, Christopher Schultzwrote: > I've been developing Java web applications since > 2000, and I use Eclipse, and I've never used Eclipse's "Run as > server". So, could you please tell a newbie like me how to view my bare "hello world" html file inside my Java project without using this "Run on server" command ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Unable to install Tomcat 9 on Windows 10
On Fri, Jul 21, 2017 at 6:35 PM, Christopher Schultzwrote: > Try re-posting your question on THIS list and see if you get better > answers. > Done : http://tomcat.markmail.org/search/?q=#query:+page:1+mid:zzrx4xb5l4mudhzm+state:results - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Unable to run "Hello World" in Eclipse JEE on Mac 10.11.3
On my Mac 10.11.3 I've installed the Eclipse JEE IDE (Version: Neon.3 Release (4.6.3)) I also installed apache-tomcat 9 on my Mac, using the following commands : sudo mkdir -p /usr/local sudo mv ~/Downloads/apache-tomcat-9.0.0.M21 /usr/local sudo rm-f /Library/Tomcat sudo ln -s /usr/local/apache-tomcat-9.0.0.M21/ /Library/Tomcat sudo chown -R roparzhhemon /Library/Tomcat sudo chmod +x /Library/Tomcat/bin/*.sh When I try "Run as server" on a minimal html file in JEE, I get the following error message : Could not load the Tomcat server configuration at /Servers/Tomcat v9.0 Sever at localhost-config. The configuration may be corrupt or incomplete. Any help appreciated. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Unable to install Tomcat 9 on Windows 10
Because I was bored and irritated by this persistent problem, I ended up doing what I seldom do, choosing "Ignore and Continue (Not Recommended)" in the list of options in the installation wizard. The installation then finishes, but localhost:8080 is not recognized in the browser. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Unable to install Tomcat 9 on Windows 10
On Thu, Jul 20, 2017 at 8:44 PM, Mark Thomas <ma...@apache.org> wrote: > On 20/07/17 19:16, Roparzh Hemon wrote: >> I am a long-time >> Mac fan, but on my mac I got stuck by a configuration problem in JEE >> and got ZERO feedback on half a dozen forums and mailing lists, >> including this one. > > Reference please. A quick search of the archives suggests this is the > first question you have asked on this list. > You are technically correct, my bad, the question I was referring to was on the Apache mailing list, not this Tomcat mailing list : look at http://httpd.markmail.org/search/?q=#query:%20list%3Aorg.apache.httpd.users+page:13+mid:w72upzzpj4uh3bgk+state:results - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Unable to install Tomcat 9 on Windows 10
On Thu, Jul 20, 2017 at 8:03 PM, Christopher Schultzwrote: > 4. Java on Windows is a nightmare. If you want to quip about moving to > a "real server OS," then suggest switching to a UNIX-like OS, where > the Real Servers run :) I am quite curious and interested in what you say here, because my feedback and experience go the opposite direction. My goal is to self-teach myself Java in JEE for Web development. I am a long-time Mac fan, but on my mac I got stuck by a configuration problem in JEE and got ZERO feedback on half a dozen forums and mailing lists, including this one. In contrast, in this windows question I got a lot of feedback very quickly. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to install Tomcat 9 on Windows 10
On Thu, Jul 20, 2017 at 4:59 PM, Suvendu Sekhar Mondalwrote: > Sounds like you have downloaded the binary version of Tomcat. Can you > please right-click on it and check the properties? If you see a > "unblocked" checkbox, then unblock it first. Then try to install it > with admin privilege. > When I right-click I don't have a checkbox but I do have a "Run as administrator" menu item, so I tried that and combined it with Igal Sapir's suggestion above to use another, homemade directory for install. Surprisingly, I STILL get the exact same problem and error message. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to install Tomcat 9 on Windows 10
On Thu, Jul 20, 2017 at 4:51 PM, Igal @ Lucee.orgwrote: > > > C:\Program Files\... is a bad place in my opinion, for two reasons: > > 1) There is a stupid space there added by some "genius" from Microsoft > 2) It often requires elevated rights for "write" > > I recommend putting it someplace else, e.g. C:\Apps > > But I don't have any Apps directory inside C:, (I only have PerfLogs, Program Files, Program Files x86, Users, Windows, Windows10Upgrade). Should I create that Apps directory ?
Re: Unable to install Tomcat 9 on Windows 10
On Thu, Jul 20, 2017 at 4:51 PM, M. Mannawrote: > what does the following show on command line > echo %TMP% > echo %TEMP% > Both those commands yield C:\Users\ROPARZ~1\AppData\Local\Temp - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to install Tomcat 9 on Windows 10
On Thu, Jul 20, 2017 at 4:23 PM, Mark Thomaswrote: > You probably need to install with admin privs. How would I do that ? Unless I missed something the installation wizard never mentions priviledges before the step where I get an error message - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to install Tomcat 9 on Windows 10
I created a C:\Program Files\Apache Software Foundation\Tomcat 9.0 again directory next to the original one, and retried the installation process with that location for the install directory, but the problem and error message stayed the same. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to install Tomcat 9 on Windows 10
On Thu, Jul 20, 2017 at 4:20 PM, M. Mannawrote: > Where is your TMP folder location? Is it somewhere inside Windows? > Try a different TMP folder location and restart. Not sure what you mean by TMP folder location. The default install directory in the wizard is C:\Program Files\Apache Software Foundation\Tomcat 9.0 (but it's not temporary as some items will permanently be stored there, so it shouldn't be called TMP) I'll try another location for that install directory and let you know the results. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Unable to install Tomcat 9 on Windows 10
Hello all, I am currently unable to install Tomcat 9.0 on my Windows 10 system (I didn't install any other version of Tomcat so far). I've retried several times and the same problem appears over and over again : The install process goes on smoothly with the install wizard, up to the point where I see the following output : Installing Tomcat9 service Apache Tomcat Setup Failed to install Tomcate9 service. Check your settings and permissions. Ignore and continue anyway (not recommended) ? Abort / Retry / Ignore How exactly should I "check my settings and permissions" ? Any help appreciated. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org