Re: Tomcat maven plugin
The official tomcat maven plugin has not been updated for years, for the latest tomcat/Maven support, I would like to use the Cargo maven plugin instead. https://codehaus-cargo.github.io/cargo/Maven+3+Plugin.html Example project: https://github.com/hantsy/jakartaee9-servlet-starter-boilerplate --- Regards, *Hantsy Bai* Self-employed consultant, fullstack developer, agile coach, freelancer/remote worker GitHub: https://github.com/hantsy Twitter: https://twitter.com/@hantsy Medium: https://medium.com/@hantsy On Wed, Jan 18, 2023 at 1:51 AM Mark Thomas wrote: > On 17/01/2023 17:35, Alex O'Ree wrote: > > Is the tomcat maven plugin still maintained? I noticed it hasn't been > > updated in a while > > Not at the moment, but if someone wants to volunteer to do so it is a > great opportunity to start contributing. > > Mark > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Tomcat maven plugin
On 17/01/2023 17:35, Alex O'Ree wrote: Is the tomcat maven plugin still maintained? I noticed it hasn't been updated in a while Not at the moment, but if someone wants to volunteer to do so it is a great opportunity to start contributing. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Maven Plugin release?
Hi! I have the same issue here. We currently use 2.3-SNAPSHOT but would much prefer to have a stable 2.3... Thanks in advance! Cheers, Konstantin Welke On 04/04/16 09:04, "Magnus Skoglund"wrote: >I have found that the current release 2.2 is not working for me, and there >are two issues that have been fixed in trunk development, that fixes the >problems I encounter. I have built the trunk version (2.3-SNAPSHOT) plugin >locally, and that works fine for me. > >I prefer not to use SNAPSHOT, and I would not like to do a local fork of >the project. > >Has anyone knowledge of the upcoming release plan for the Tomcat Maven >Plugin project?
Re: Tomcat Maven plugin failure: tries to use a TLSv1 handshake with a TLSv1.2 server.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Stu, On 3/5/15 2:23 AM, Stu Smith wrote: Hello, I'm using the tomcat maven plugin to deploy to an SSL-enabled host. I've pointed maven at copy of the keystore used on the tomcat server itself, so all the keys should be there. Also, I enabled java.net.ssl.debug=all, and confirmed the public key, intermediate cert, and CA cert are loaded. Yet, with TLSv1.2 on the server, the handshake failed at this point: 0070: 00 17 00 01 00 03 00 13 00 15 00 06 00 07 00 09 0080: 00 0A 00 18 00 0B 00 0C 00 19 00 0D 00 0E 00 0F 0090: 00 10 00 11 00 02 00 12 00 04 00 05 00 14 00 08 00A0: 00 16 00 0B 00 02 01 00 [Raw read]: length = 5 : 15 03 01 00 02 . [Raw read]: length = 2 : 02 28 .( main, READ: TLSv1 Alert, length = 2 main, RECV TLSv1 ALERT: fatal, handshake_failure main, called closeSocket() main, handling exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure main, called close() main, called closeInternal(true) I really had no idea how to interrupt the error - it's a bit ambiguous. I took a wild guess that maybe it was because it was trying TLSv1, and enabled 1.1 and 1 on the server - and it appeared to fix the error. So as best as I can tell, even thought tomcat 7 supports TLSv1, the tomcat maven plugin does not. I think? What's the configuration of Tomcat's Connector(s) in both the working and non-working example? What version of the JVM is in use? My two main questions would be: - is there a better way to debug this issue? - is there a way to enabled TLSv1.2 support in the tomcat maven plugin? The maven plugin is version 2.2, maven is 3.0.4 The server is tomcat 7. What about the JVM being used with Maven? Can you try running this tool against your server? http://markmail.org/thread/tz4z44nfjl7sy2lj - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJU+IWnAAoJEBzwKT+lPKRYwDIP/27+p8e6NAdn7qodRKO+WRlr ofecmUEk2OIxDz3V3NXMa6ZPBBkpnvEJ0snd8WuXDuLUjqsfy4SZpTnWuV2cx5Vh V84JJAnRN2aH3MIm9X+Qi8X4msrdmWg2ZBmU4yf+rNOuX9Uz1OO2kic9kBjRa/WF R7sZj4NUrdBag9d4WKCGt7gmUvFVSrmWmEAjof2fi/5FsSyqhT4Jue/J76RDIrGH HmRQXBrLyngUqExrVGlCbzQegPvpziBNX0P8mqlSZZ90BCEHm1eB7m4dsR3/wTAD 0o1Y2cOrWbgWt34pUiSDudX77p4/ENXDpusZ3rje2b7s278C9c5l2NVUJLyLO6uz mQNc6rJL8jzMAA6wsDMeOWlHCwjMS7EJ5mlB2teH8EVIG1V1LvJrmqVSC0GWKDz4 jMVMw/dG6cGEUPPt15uVX6PVDvRPHd54eZoFy/UDNeMhhg9e+6bRcHlV8UmtcOlb ZKNtp2TA+8cdpszvab/e6t84v9e78Iwd7k4Vhl+xqXPkVngVnr9zG2PXJq2PxDNj niSPIP3oQd9A7W4ctFr0A+u60ASIvWiottN69Yv0ku25Z00e3swXO3Q3OMEmymvk qFsVHP2FK9ARBJEQbpHAOgh3Vsg0Ttx6EnwkSztMQ2augYkUSNeR+qw1ORos82M1 cNilBEoJd3EdyeAijff0 =Z+h2 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Maven plugin failure: tries to use a TLSv1 handshake with a TLSv1.2 server.
Hello Chris, With maven, I am using: java -version java version 1.7.0_55 OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1~0.13.10.1) OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode) On the server, java version 1.7.0_65 OpenJDK Runtime Environment (IcedTea 2.5.1) (7u65-2.5.1-4ubuntu1~0.14.04.2) OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode) The tomcat configuration that works (password fields elided): Connector protocol=HTTP/1.1 port=443 maxThreads=200 scheme=https secure=true SSLEnabled=true keystoreFile=/etc/shareplaylearn.jks keyAlias=shareplaylearn keystorePass=[password] keyPass=[password] clientAuth=false sslProtocol=TLS sslEnabledProtocols=TLSv1.2,TLSv1,TLSv1.1 / The one that does not work: Connector protocol=HTTP/1.1 port=443 maxThreads=200 scheme=https secure=true SSLEnabled=true keystoreFile=/etc/shareplaylearn.jks keyAlias=shareplaylearn keystorePass=[password] keyPass=[password] clientAuth=false sslProtocol=TLS sslEnabledProtocols=TLSv1.2 / (Exactly the same, except more protocols enabled on sslEnabledProtocols) I can try to run the tool, but not tonight! Thanks! Also, given the only difference between working/not working is enabled protocol.. I'm not totally sure what we're looking for. I guess maybe to see what ciphers are enabled? The site, while neither beautiful nor functional, does support ssl correctly in all the browsers I've tested (even on my gingerbread phone): https://www.shareplaylearn.com/#/share I do have it working, and I was a bit frustrated last night - so I'm a little happier now - but still, it would be really nice to the plugin support 1.2.. even nicer it if was smart enough to look for the CA certs in the standard locations, and just work (or something close to that) like a browser. I've used HttpComponents HttpClient fairly often fairly recently, and the most recent stable version seems to handle ssl just fine, defaulting to the jvm cacert, etc.. no mavenrc necessary... which is one reason why I was little bit confused by the maven plugin behavior. Hope that doesn't sound too whiny - just explaining the POV - I do appreciate the help! Take care, -stu On Thu, Mar 5, 2015 at 8:34 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Stu, On 3/5/15 2:23 AM, Stu Smith wrote: Hello, I'm using the tomcat maven plugin to deploy to an SSL-enabled host. I've pointed maven at copy of the keystore used on the tomcat server itself, so all the keys should be there. Also, I enabled java.net.ssl.debug=all, and confirmed the public key, intermediate cert, and CA cert are loaded. Yet, with TLSv1.2 on the server, the handshake failed at this point: 0070: 00 17 00 01 00 03 00 13 00 15 00 06 00 07 00 09 0080: 00 0A 00 18 00 0B 00 0C 00 19 00 0D 00 0E 00 0F 0090: 00 10 00 11 00 02 00 12 00 04 00 05 00 14 00 08 00A0: 00 16 00 0B 00 02 01 00 [Raw read]: length = 5 : 15 03 01 00 02 . [Raw read]: length = 2 : 02 28 .( main, READ: TLSv1 Alert, length = 2 main, RECV TLSv1 ALERT: fatal, handshake_failure main, called closeSocket() main, handling exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure main, called close() main, called closeInternal(true) I really had no idea how to interrupt the error - it's a bit ambiguous. I took a wild guess that maybe it was because it was trying TLSv1, and enabled 1.1 and 1 on the server - and it appeared to fix the error. So as best as I can tell, even thought tomcat 7 supports TLSv1, the tomcat maven plugin does not. I think? What's the configuration of Tomcat's Connector(s) in both the working and non-working example? What version of the JVM is in use? My two main questions would be: - is there a better way to debug this issue? - is there a way to enabled TLSv1.2 support in the tomcat maven plugin? The maven plugin is version 2.2, maven is 3.0.4 The server is tomcat 7. What about the JVM being used with Maven? Can you try running this tool against your server? http://markmail.org/thread/tz4z44nfjl7sy2lj - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJU+IWnAAoJEBzwKT+lPKRYwDIP/27+p8e6NAdn7qodRKO+WRlr ofecmUEk2OIxDz3V3NXMa6ZPBBkpnvEJ0snd8WuXDuLUjqsfy4SZpTnWuV2cx5Vh V84JJAnRN2aH3MIm9X+Qi8X4msrdmWg2ZBmU4yf+rNOuX9Uz1OO2kic9kBjRa/WF R7sZj4NUrdBag9d4WKCGt7gmUvFVSrmWmEAjof2fi/5FsSyqhT4Jue/J76RDIrGH HmRQXBrLyngUqExrVGlCbzQegPvpziBNX0P8mqlSZZ90BCEHm1eB7m4dsR3/wTAD 0o1Y2cOrWbgWt34pUiSDudX77p4/ENXDpusZ3rje2b7s278C9c5l2NVUJLyLO6uz
Re: Tomcat Maven Plugin - Executable jar context loading and shutdown
2012/9/3 Sérgio Areias juger.on.n...@gmail.com: Hi. On 31 August 2012 21:24, Olivier Lamy ol...@apache.org wrote: 2012/8/27 Sérgio juger.on.n...@gmail.com: Hi. I am trying to use the Tomcat Maven Plugin to create an executable jar file with an embedded Tomcat7, but I am having two issues when trying to do so. The first one, is that I am not getting how I can stop my executable jar. I want to run it in from a script (like the shutdown.sh/bat from tomcat). I was not able to find any documentation about that particular issue. nope not supported. Can you give me some pointers of where I should look at if I decide to implement it? I could kill the process but that does not look a solution but a workaround instead. The second issue, is that when I run my executable jar it loads my webapp context twice (it tries because it will not be able to do it as I use a derby db, and it will give an error when trying to have the lock again). It creates a folder .extract, and the webapp works fine, but I do not want my context to be loaded twice. I am using the configurations I have found here http://tomcat.apache.org/maven-plugin-2/executable-war-jar.html . What am I missing here? Do you have a sample project as I cannot reproduce. What is the content of .extract/webapps Did you try java- jar pathtoyourjar -resetExtract (or cleanup .extract directory before) ? After taking a look to the plugin source code, I understood that I cannot use / as context, and that is why I was having the context loaded twice (ROOT and .war). Is it supported by the plugin to have a webapp running with no context when trying to have an executable jar? I ask this question because when I try to use ROOT (path/ROOT/path), I do not have the / context but /ROOT instead. (Also after studying the lines 264-272 from http://svn.apache.org/viewvc/tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java?view=markup ) Did you simply try: path/path :-) Info about the project: - Maven project; - pom.xml with packaging war using the build found here http://tomcat.apache.org/maven-plugin-2/executable-war-jar.html ; - Running in Ubuntu 11.04; - Using: groupIdorg.apache.tomcat.maven/groupId artifactIdtomcat7-maven-plugin/artifactId version2.0-beta-1/version Thanks in advance. Best regards, Sérgio Areias -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Thanks for you reply and your attention. Best regards, Sérgio Areias -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Maven Plugin - Executable jar context loading and shutdown
On 4 September 2012 09:26, Olivier Lamy ol...@apache.org wrote: 2012/9/3 Sérgio Areias juger.on.n...@gmail.com: Hi. On 31 August 2012 21:24, Olivier Lamy ol...@apache.org wrote: 2012/8/27 Sérgio juger.on.n...@gmail.com: Hi. I am trying to use the Tomcat Maven Plugin to create an executable jar file with an embedded Tomcat7, but I am having two issues when trying to do so. The first one, is that I am not getting how I can stop my executable jar. I want to run it in from a script (like the shutdown.sh/bat from tomcat). I was not able to find any documentation about that particular issue. nope not supported. Can you give me some pointers of where I should look at if I decide to implement it? I could kill the process but that does not look a solution but a workaround instead. The second issue, is that when I run my executable jar it loads my webapp context twice (it tries because it will not be able to do it as I use a derby db, and it will give an error when trying to have the lock again). It creates a folder .extract, and the webapp works fine, but I do not want my context to be loaded twice. I am using the configurations I have found here http://tomcat.apache.org/maven-plugin-2/executable-war-jar.html . What am I missing here? Do you have a sample project as I cannot reproduce. What is the content of .extract/webapps Did you try java- jar pathtoyourjar -resetExtract (or cleanup .extract directory before) ? After taking a look to the plugin source code, I understood that I cannot use / as context, and that is why I was having the context loaded twice (ROOT and .war). Is it supported by the plugin to have a webapp running with no context when trying to have an executable jar? I ask this question because when I try to use ROOT (path/ROOT/path), I do not have the / context but /ROOT instead. (Also after studying the lines 264-272 from http://svn.apache.org/viewvc/tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java?view=markup ) Did you simply try: path/path :-) I have tried now, and the context was set to the artifact id. I also took a look to the source code and I think that it is the expected behaviour (defaultValue = ${project.artifactId}). Well, after a few more tests I found new info about my problem. I was trying to use my server.xml file, when I remove it everything works fine (except one thing but I will address it later on this mail), even with / as context (does not seem valid following line 107 of the AbstractExecWarMojo class but it is working). When I try to use the server.xml it loads the context twice. Why that happens, I do not know yet. I really do not need my custom server.xml, but when I do not use it the configuration port50001/port in my pom.xml is not reflected when I try to run the jar. It runs always in the port 8080 without my server.xml. NOTE: I have attached my server.xml. Thanks for your attention and sorry for the taken time. Best regards, Sérgio Areias Info about the project: - Maven project; - pom.xml with packaging war using the build found here http://tomcat.apache.org/maven-plugin-2/executable-war-jar.html ; - Running in Ubuntu 11.04; - Using: groupIdorg.apache.tomcat.maven/groupId artifactIdtomcat7-maven-plugin/artifactId version2.0-beta-1/version Thanks in advance. Best regards, Sérgio Areias -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Thanks for you reply and your attention. Best regards, Sérgio Areias -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org ?xml version='1.0' encoding='utf-8'? !-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
Re: Tomcat Maven Plugin - Executable jar context loading and shutdown
A bit weird. Can you have a look at this project which works fine with empty path https://github.com/olamy/tomcat-foo-artifact 2012/9/4 Sérgio Areias juger.on.n...@gmail.com: On 4 September 2012 09:26, Olivier Lamy ol...@apache.org wrote: 2012/9/3 Sérgio Areias juger.on.n...@gmail.com: Hi. On 31 August 2012 21:24, Olivier Lamy ol...@apache.org wrote: 2012/8/27 Sérgio juger.on.n...@gmail.com: Hi. I am trying to use the Tomcat Maven Plugin to create an executable jar file with an embedded Tomcat7, but I am having two issues when trying to do so. The first one, is that I am not getting how I can stop my executable jar. I want to run it in from a script (like the shutdown.sh/bat from tomcat). I was not able to find any documentation about that particular issue. nope not supported. Can you give me some pointers of where I should look at if I decide to implement it? I could kill the process but that does not look a solution but a workaround instead. The second issue, is that when I run my executable jar it loads my webapp context twice (it tries because it will not be able to do it as I use a derby db, and it will give an error when trying to have the lock again). It creates a folder .extract, and the webapp works fine, but I do not want my context to be loaded twice. I am using the configurations I have found here http://tomcat.apache.org/maven-plugin-2/executable-war-jar.html . What am I missing here? Do you have a sample project as I cannot reproduce. What is the content of .extract/webapps Did you try java- jar pathtoyourjar -resetExtract (or cleanup .extract directory before) ? After taking a look to the plugin source code, I understood that I cannot use / as context, and that is why I was having the context loaded twice (ROOT and .war). Is it supported by the plugin to have a webapp running with no context when trying to have an executable jar? I ask this question because when I try to use ROOT (path/ROOT/path), I do not have the / context but /ROOT instead. (Also after studying the lines 264-272 from http://svn.apache.org/viewvc/tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java?view=markup ) Did you simply try: path/path :-) I have tried now, and the context was set to the artifact id. I also took a look to the source code and I think that it is the expected behaviour (defaultValue = ${project.artifactId}). Well, after a few more tests I found new info about my problem. I was trying to use my server.xml file, when I remove it everything works fine (except one thing but I will address it later on this mail), even with / as context (does not seem valid following line 107 of the AbstractExecWarMojo class but it is working). When I try to use the server.xml it loads the context twice. Why that happens, I do not know yet. I really do not need my custom server.xml, but when I do not use it the configuration port50001/port in my pom.xml is not reflected when I try to run the jar. It runs always in the port 8080 without my server.xml. NOTE: I have attached my server.xml. Thanks for your attention and sorry for the taken time. Best regards, Sérgio Areias Info about the project: - Maven project; - pom.xml with packaging war using the build found here http://tomcat.apache.org/maven-plugin-2/executable-war-jar.html ; - Running in Ubuntu 11.04; - Using: groupIdorg.apache.tomcat.maven/groupId artifactIdtomcat7-maven-plugin/artifactId version2.0-beta-1/version Thanks in advance. Best regards, Sérgio Areias -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Thanks for you reply and your attention. Best regards, Sérgio Areias -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - 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 -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Maven Plugin - Executable jar context loading and shutdown
I have downloaded the project and tested it. Replicated a bit of the structure on my project and seems that now I am able to do it with the empty value on path. Why I can do it with the / anyway? Even with your project, I was not able to change the running port defining it in the pom.xml. Only when I use -httpPort 9090, for example, I am able to do it. The port tag needs some extra configuration, or its purpose it is not to define the running port, and being so I am using it in the wrong way. About the shutdown feature (my jar is running as a service so I cannot just hit Ctrl+C to stop it), can you give me some pointers of where I should begin if I want to do it (any class for that purpose, etc.)? Thanks for the quick answer Olivier Lamy, and thanks for your attention. I am really enjoying this learning process :) Best regards, Sérgio Areias On 4 September 2012 16:43, Olivier Lamy ol...@apache.org wrote: A bit weird. Can you have a look at this project which works fine with empty path https://github.com/olamy/tomcat-foo-artifact 2012/9/4 Sérgio Areias juger.on.n...@gmail.com: On 4 September 2012 09:26, Olivier Lamy ol...@apache.org wrote: 2012/9/3 Sérgio Areias juger.on.n...@gmail.com: Hi. On 31 August 2012 21:24, Olivier Lamy ol...@apache.org wrote: 2012/8/27 Sérgio juger.on.n...@gmail.com: Hi. I am trying to use the Tomcat Maven Plugin to create an executable jar file with an embedded Tomcat7, but I am having two issues when trying to do so. The first one, is that I am not getting how I can stop my executable jar. I want to run it in from a script (like the shutdown.sh/bat from tomcat). I was not able to find any documentation about that particular issue. nope not supported. Can you give me some pointers of where I should look at if I decide to implement it? I could kill the process but that does not look a solution but a workaround instead. The second issue, is that when I run my executable jar it loads my webapp context twice (it tries because it will not be able to do it as I use a derby db, and it will give an error when trying to have the lock again). It creates a folder .extract, and the webapp works fine, but I do not want my context to be loaded twice. I am using the configurations I have found here http://tomcat.apache.org/maven-plugin-2/executable-war-jar.html . What am I missing here? Do you have a sample project as I cannot reproduce. What is the content of .extract/webapps Did you try java- jar pathtoyourjar -resetExtract (or cleanup .extract directory before) ? After taking a look to the plugin source code, I understood that I cannot use / as context, and that is why I was having the context loaded twice (ROOT and .war). Is it supported by the plugin to have a webapp running with no context when trying to have an executable jar? I ask this question because when I try to use ROOT (path/ROOT/path), I do not have the / context but /ROOT instead. (Also after studying the lines 264-272 from http://svn.apache.org/viewvc/tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java?view=markup ) Did you simply try: path/path :-) I have tried now, and the context was set to the artifact id. I also took a look to the source code and I think that it is the expected behaviour (defaultValue = ${project.artifactId}). Well, after a few more tests I found new info about my problem. I was trying to use my server.xml file, when I remove it everything works fine (except one thing but I will address it later on this mail), even with / as context (does not seem valid following line 107 of the AbstractExecWarMojo class but it is working). When I try to use the server.xml it loads the context twice. Why that happens, I do not know yet. I really do not need my custom server.xml, but when I do not use it the configuration port50001/port in my pom.xml is not reflected when I try to run the jar. It runs always in the port 8080 without my server.xml. NOTE: I have attached my server.xml. Thanks for your attention and sorry for the taken time. Best regards, Sérgio Areias Info about the project: - Maven project; - pom.xml with packaging war using the build found here http://tomcat.apache.org/maven-plugin-2/executable-war-jar.html ; - Running in Ubuntu 11.04; - Using: groupIdorg.apache.tomcat.maven/groupId artifactIdtomcat7-maven-plugin/artifactId version2.0-beta-1/version Thanks in advance. Best regards, Sérgio Areias -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:
Re: Tomcat Maven Plugin - Executable jar context loading and shutdown
Hi. On 31 August 2012 21:24, Olivier Lamy ol...@apache.org wrote: 2012/8/27 Sérgio juger.on.n...@gmail.com: Hi. I am trying to use the Tomcat Maven Plugin to create an executable jar file with an embedded Tomcat7, but I am having two issues when trying to do so. The first one, is that I am not getting how I can stop my executable jar. I want to run it in from a script (like the shutdown.sh/bat from tomcat). I was not able to find any documentation about that particular issue. nope not supported. Can you give me some pointers of where I should look at if I decide to implement it? I could kill the process but that does not look a solution but a workaround instead. The second issue, is that when I run my executable jar it loads my webapp context twice (it tries because it will not be able to do it as I use a derby db, and it will give an error when trying to have the lock again). It creates a folder .extract, and the webapp works fine, but I do not want my context to be loaded twice. I am using the configurations I have found here http://tomcat.apache.org/maven-plugin-2/executable-war-jar.html . What am I missing here? Do you have a sample project as I cannot reproduce. What is the content of .extract/webapps Did you try java- jar pathtoyourjar -resetExtract (or cleanup .extract directory before) ? After taking a look to the plugin source code, I understood that I cannot use / as context, and that is why I was having the context loaded twice (ROOT and .war). Is it supported by the plugin to have a webapp running with no context when trying to have an executable jar? I ask this question because when I try to use ROOT (path/ROOT/path), I do not have the / context but /ROOT instead. (Also after studying the lines 264-272 from http://svn.apache.org/viewvc/tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java?view=markup ) Info about the project: - Maven project; - pom.xml with packaging war using the build found here http://tomcat.apache.org/maven-plugin-2/executable-war-jar.html ; - Running in Ubuntu 11.04; - Using: groupIdorg.apache.tomcat.maven/groupId artifactIdtomcat7-maven-plugin/artifactId version2.0-beta-1/version Thanks in advance. Best regards, Sérgio Areias -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Thanks for you reply and your attention. Best regards, Sérgio Areias
Re: Tomcat Maven Plugin - Executable jar context loading and shutdown
2012/8/27 Sérgio juger.on.n...@gmail.com: Hi. I am trying to use the Tomcat Maven Plugin to create an executable jar file with an embedded Tomcat7, but I am having two issues when trying to do so. The first one, is that I am not getting how I can stop my executable jar. I want to run it in from a script (like the shutdown.sh/bat from tomcat). I was not able to find any documentation about that particular issue. nope not supported. The second issue, is that when I run my executable jar it loads my webapp context twice (it tries because it will not be able to do it as I use a derby db, and it will give an error when trying to have the lock again). It creates a folder .extract, and the webapp works fine, but I do not want my context to be loaded twice. I am using the configurations I have found here http://tomcat.apache.org/maven-plugin-2/executable-war-jar.html . What am I missing here? Do you have a sample project as I cannot reproduce. What is the content of .extract/webapps Did you try java- jar pathtoyourjar -resetExtract (or cleanup .extract directory before) ? Info about the project: - Maven project; - pom.xml with packaging war using the build found here http://tomcat.apache.org/maven-plugin-2/executable-war-jar.html ; - Running in Ubuntu 11.04; - Using: groupIdorg.apache.tomcat.maven/groupId artifactIdtomcat7-maven-plugin/artifactId version2.0-beta-1/version Thanks in advance. Best regards, Sérgio Areias -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat maven plugin + configuring virtual host for the embedded tomcat ?
Try last SNAPSHOT (see how here: http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/snapshot-test.html ) If any issue using this new feature, feel free to reopen: https://issues.apache.org/jira/browse/MTOMCAT-172 HTH, -- Olivier 2012/7/31 Albert Kam moonblade.w...@gmail.com: Hi, I have been developing with tomcat7:run happily for some months now. But then i am currently expanding the development where different domains would provide different behaviour for the same webapp (imagine multitenancy and ACLs based on the domain or the server name) To make this work in the development mode, i would have to modify the hosts file, mapping several .com domains to localhost + add some Alias to the localhost's Host Currently i am using the standalone tomcat, doing : - go to the parent module, install all modules, which results in the newest WAR for the webapp - go to the webapp project and tomcat7:deploy to it .. Not as fast-development-mode as tomcat7:run (which doesnt include installing the modules + WAR building), but this will do :-) I may be too hopeful, but is this useful enough to be added as a new feature of tomcat maven plugin ? I imagine putting these aliases in the plugin's configuration in the pom.xml .. Thanks ! On Tue, Jul 31, 2012 at 12:54 AM, Olivier Lamy ol...@apache.org wrote: Hi, Not possible currently. What is your use case ? those goals are for dev purpose. 2012/7/27 Albert Kam moonblade.w...@gmail.com: I am currently using the snapshot version of tomcat maven plugin. And i am using tomcat7:run and tomcat7:run-war-only (for webapps with overlay) actively. And the time has come for me to try out virtual host .. and as i understand it, i have to configure the host, context, etc .. But i've been using the embedded tomcat 'supplied' by the tomcat maven plugin so far, so i wonder if there's a way to configure virtual host on the embedded tomcat ? Or should i just forget embedded tomcat and setup an independent tomcat i can configure freely ? Thank you, Albert -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat maven plugin + configuring virtual host for the embedded tomcat ?
Wow, so fast ! It worked flawlessly : After adding this in the tomcat maven plugin's configuration .. aliases aliasmydomain1.com/alias aliasmydomain2.com/alias /aliases These work with tomcat7:run : http://localhost:8080 http://mydomain1.com:8080 http://mydomain2.com:8080 Bye2 tomcat:deploy ! Thanks ! On Tue, Jul 31, 2012 at 3:19 PM, Olivier Lamy ol...@apache.org wrote: Try last SNAPSHOT (see how here: http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/snapshot-test.html ) If any issue using this new feature, feel free to reopen: https://issues.apache.org/jira/browse/MTOMCAT-172 HTH, -- Olivier 2012/7/31 Albert Kam moonblade.w...@gmail.com: Hi, I have been developing with tomcat7:run happily for some months now. But then i am currently expanding the development where different domains would provide different behaviour for the same webapp (imagine multitenancy and ACLs based on the domain or the server name) To make this work in the development mode, i would have to modify the hosts file, mapping several .com domains to localhost + add some Alias to the localhost's Host Currently i am using the standalone tomcat, doing : - go to the parent module, install all modules, which results in the newest WAR for the webapp - go to the webapp project and tomcat7:deploy to it .. Not as fast-development-mode as tomcat7:run (which doesnt include installing the modules + WAR building), but this will do :-) I may be too hopeful, but is this useful enough to be added as a new feature of tomcat maven plugin ? I imagine putting these aliases in the plugin's configuration in the pom.xml .. Thanks ! On Tue, Jul 31, 2012 at 12:54 AM, Olivier Lamy ol...@apache.org wrote: Hi, Not possible currently. What is your use case ? those goals are for dev purpose. 2012/7/27 Albert Kam moonblade.w...@gmail.com: I am currently using the snapshot version of tomcat maven plugin. And i am using tomcat7:run and tomcat7:run-war-only (for webapps with overlay) actively. And the time has come for me to try out virtual host .. and as i understand it, i have to configure the host, context, etc .. But i've been using the embedded tomcat 'supplied' by the tomcat maven plugin so far, so i wonder if there's a way to configure virtual host on the embedded tomcat ? Or should i just forget embedded tomcat and setup an independent tomcat i can configure freely ? Thank you, Albert -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat maven plugin + [default] overlay
Hi, Yes, it is a reactor module, with childwebapp having dependency on the parentwebapp. Both webapps are own made (not third parties). So, i tried these : - Going to the maven parent module to do the install -- results on parentwebapp.war and childwebapp.war (overlays with parentwebapp.war) - On eclipse, on the childwebapp project, i do tomcat7:run .. Still the same error of org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory - And then i check the m2e run configuration, and i uncheck 'resolve workspace artifacts', and rerun it .. This time, the error has changed into unfamiliar apache tiles error that possibly mean the tiles' configuration file is missing or something Now this error doesnt appear if i use tomcat7:deploy on the childwebapp.war, so i assume tomcat7:run has some issues when merging parentwebapp with childwebapp, resulting in missing files .. Questions : - tomcat7:run's tomcat location to help debugging the error : Is there a temporary directory for the embedded tomcat for the merged childwebapp, so that i can check what files are probably missing after tomcat7:run merges parentwebapp and childwebapp ? - Pure tomcat7:run without building the WAR files ? Is it possible to have tomcat7:run to merge the dependant webapp modules without having to build the WAR files ? For example, tomcat7:run on childwebapp would 'magically' merges parentwebapp and childwebapp in terms of jars, classes, jsps, and other static files like xmls, properties, web files, etc (like overlay, but without making the WAR beforehand) ? Thank you ! On Tue, Jul 31, 2012 at 12:57 AM, Olivier Lamy ol...@apache.org wrote: 2012/7/26 Albert Kam moonblade.w...@gmail.com: Hello, I am having a situation where i couldnt tomcat7:run with overlay in eclipse. In the eclipse indigo, i am using the maven plugin, and have imported two maven modules, the childwebapp which depends on the parentwebapp, which is just like a skeleton, with it's own classes, jsps, static resources, but also a runnable webapp of itself. Doing tomcat7:run on the parentwebapp works well as expected .. Here's the dependency in the childwebapp's pom, and i dont have any specific overlay configuration : dependency groupIdgroup.id/groupId artifactIdparentwebapp/artifactId version${project.version}/version typewar/type scoperuntime/scope /dependency This dependency is a reactor modules ? So in this case I presume eclipse (m2e) see the build output directory rather than a war file. The plugin doesn't have any idea how your war dependency is available in an exploded mode (where are the webapp resources and/or classes etc..) try to install it first. When i try running tomcat7:run on the childwebapp, i get this error message, as if it tries to find the war of parentwebapp and try to extract it. But in my situation, i dont have the war in my development, since the eclipse maven plugin already resolves the workspace dependencies. I would imagine using the classes from the workspace instead of extracting the non-existent war file and load them into the childwebapp would solve the issue .. [INFO] [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ childwebapp --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ childwebapp --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] tomcat7-maven-plugin:2.0-SNAPSHOT:run (default-cli) @ childwebapp [INFO] [INFO] --- tomcat7-maven-plugin:2.0-SNAPSHOT:run (default-cli) @ childwebapp --- [INFO] Running war on http://localhost:8080/childwebapp [INFO] Creating Tomcat server configuration at C:\Users\albert\git\Startup\MavenParent\childwebapp\target\tomcat [INFO] create webapp with contextPath: /childwebapp [ERROR] fail to extract war file C:\Users\albert\git\Startup\MavenParent\parentwebapp\target\classes, reason:The source must not be a di rectory. org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory. at org.codehaus.plexus.archiver.AbstractUnArchiver.validate(AbstractUnArchiver.java:185) at org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:118) at org.apache.tomcat.maven.common.run.DefaultClassLoaderEntriesCalculator.calculateClassPathEntries(DefaultClassLoaderEntriesCalc ulator.java:149) at org.apache.tomcat.maven.plugin.tomcat7.run.RunMojo.createWebappLoader(RunMojo.java:254) at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.createContext(AbstractRunMojo.java:563) at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.startContainer(AbstractRunMojo.java:927) at
Re: tomcat maven plugin + configuring virtual host for the embedded tomcat ?
Sorry, forgot to mention a suggestion to document this feature in : http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/run-mojo-features.html Regards, Albert On Tue, Jul 31, 2012 at 4:01 PM, Albert Kam moonblade.w...@gmail.com wrote: Wow, so fast ! It worked flawlessly : After adding this in the tomcat maven plugin's configuration .. aliases aliasmydomain1.com/alias aliasmydomain2.com/alias /aliases These work with tomcat7:run : http://localhost:8080 http://mydomain1.com:8080 http://mydomain2.com:8080 Bye2 tomcat:deploy ! Thanks ! On Tue, Jul 31, 2012 at 3:19 PM, Olivier Lamy ol...@apache.org wrote: Try last SNAPSHOT (see how here: http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/snapshot-test.html ) If any issue using this new feature, feel free to reopen: https://issues.apache.org/jira/browse/MTOMCAT-172 HTH, -- Olivier 2012/7/31 Albert Kam moonblade.w...@gmail.com: Hi, I have been developing with tomcat7:run happily for some months now. But then i am currently expanding the development where different domains would provide different behaviour for the same webapp (imagine multitenancy and ACLs based on the domain or the server name) To make this work in the development mode, i would have to modify the hosts file, mapping several .com domains to localhost + add some Alias to the localhost's Host Currently i am using the standalone tomcat, doing : - go to the parent module, install all modules, which results in the newest WAR for the webapp - go to the webapp project and tomcat7:deploy to it .. Not as fast-development-mode as tomcat7:run (which doesnt include installing the modules + WAR building), but this will do :-) I may be too hopeful, but is this useful enough to be added as a new feature of tomcat maven plugin ? I imagine putting these aliases in the plugin's configuration in the pom.xml .. Thanks ! On Tue, Jul 31, 2012 at 12:54 AM, Olivier Lamy ol...@apache.org wrote: Hi, Not possible currently. What is your use case ? those goals are for dev purpose. 2012/7/27 Albert Kam moonblade.w...@gmail.com: I am currently using the snapshot version of tomcat maven plugin. And i am using tomcat7:run and tomcat7:run-war-only (for webapps with overlay) actively. And the time has come for me to try out virtual host .. and as i understand it, i have to configure the host, context, etc .. But i've been using the embedded tomcat 'supplied' by the tomcat maven plugin so far, so i wonder if there's a way to configure virtual host on the embedded tomcat ? Or should i just forget embedded tomcat and setup an independent tomcat i can configure freely ? Thank you, Albert -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat maven plugin + configuring virtual host for the embedded tomcat ?
documentation added here: http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/tomcat7-maven-plugin/run-mojo.html#aliases 2012/7/31 Albert Kam moonblade.w...@gmail.com: Sorry, forgot to mention a suggestion to document this feature in : http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/run-mojo-features.html Regards, Albert On Tue, Jul 31, 2012 at 4:01 PM, Albert Kam moonblade.w...@gmail.com wrote: Wow, so fast ! It worked flawlessly : After adding this in the tomcat maven plugin's configuration .. aliases aliasmydomain1.com/alias aliasmydomain2.com/alias /aliases These work with tomcat7:run : http://localhost:8080 http://mydomain1.com:8080 http://mydomain2.com:8080 Bye2 tomcat:deploy ! Thanks ! On Tue, Jul 31, 2012 at 3:19 PM, Olivier Lamy ol...@apache.org wrote: Try last SNAPSHOT (see how here: http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/snapshot-test.html ) If any issue using this new feature, feel free to reopen: https://issues.apache.org/jira/browse/MTOMCAT-172 HTH, -- Olivier 2012/7/31 Albert Kam moonblade.w...@gmail.com: Hi, I have been developing with tomcat7:run happily for some months now. But then i am currently expanding the development where different domains would provide different behaviour for the same webapp (imagine multitenancy and ACLs based on the domain or the server name) To make this work in the development mode, i would have to modify the hosts file, mapping several .com domains to localhost + add some Alias to the localhost's Host Currently i am using the standalone tomcat, doing : - go to the parent module, install all modules, which results in the newest WAR for the webapp - go to the webapp project and tomcat7:deploy to it .. Not as fast-development-mode as tomcat7:run (which doesnt include installing the modules + WAR building), but this will do :-) I may be too hopeful, but is this useful enough to be added as a new feature of tomcat maven plugin ? I imagine putting these aliases in the plugin's configuration in the pom.xml .. Thanks ! On Tue, Jul 31, 2012 at 12:54 AM, Olivier Lamy ol...@apache.org wrote: Hi, Not possible currently. What is your use case ? those goals are for dev purpose. 2012/7/27 Albert Kam moonblade.w...@gmail.com: I am currently using the snapshot version of tomcat maven plugin. And i am using tomcat7:run and tomcat7:run-war-only (for webapps with overlay) actively. And the time has come for me to try out virtual host .. and as i understand it, i have to configure the host, context, etc .. But i've been using the embedded tomcat 'supplied' by the tomcat maven plugin so far, so i wonder if there's a way to configure virtual host on the embedded tomcat ? Or should i just forget embedded tomcat and setup an independent tomcat i can configure freely ? Thank you, Albert -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail:
Re: tomcat maven plugin + configuring virtual host for the embedded tomcat ?
Hi, Not possible currently. What is your use case ? those goals are for dev purpose. 2012/7/27 Albert Kam moonblade.w...@gmail.com: I am currently using the snapshot version of tomcat maven plugin. And i am using tomcat7:run and tomcat7:run-war-only (for webapps with overlay) actively. And the time has come for me to try out virtual host .. and as i understand it, i have to configure the host, context, etc .. But i've been using the embedded tomcat 'supplied' by the tomcat maven plugin so far, so i wonder if there's a way to configure virtual host on the embedded tomcat ? Or should i just forget embedded tomcat and setup an independent tomcat i can configure freely ? Thank you, Albert -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat maven plugin + [default] overlay
2012/7/26 Albert Kam moonblade.w...@gmail.com: Hello, I am having a situation where i couldnt tomcat7:run with overlay in eclipse. In the eclipse indigo, i am using the maven plugin, and have imported two maven modules, the childwebapp which depends on the parentwebapp, which is just like a skeleton, with it's own classes, jsps, static resources, but also a runnable webapp of itself. Doing tomcat7:run on the parentwebapp works well as expected .. Here's the dependency in the childwebapp's pom, and i dont have any specific overlay configuration : dependency groupIdgroup.id/groupId artifactIdparentwebapp/artifactId version${project.version}/version typewar/type scoperuntime/scope /dependency This dependency is a reactor modules ? So in this case I presume eclipse (m2e) see the build output directory rather than a war file. The plugin doesn't have any idea how your war dependency is available in an exploded mode (where are the webapp resources and/or classes etc..) try to install it first. When i try running tomcat7:run on the childwebapp, i get this error message, as if it tries to find the war of parentwebapp and try to extract it. But in my situation, i dont have the war in my development, since the eclipse maven plugin already resolves the workspace dependencies. I would imagine using the classes from the workspace instead of extracting the non-existent war file and load them into the childwebapp would solve the issue .. [INFO] [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ childwebapp --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ childwebapp --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] tomcat7-maven-plugin:2.0-SNAPSHOT:run (default-cli) @ childwebapp [INFO] [INFO] --- tomcat7-maven-plugin:2.0-SNAPSHOT:run (default-cli) @ childwebapp --- [INFO] Running war on http://localhost:8080/childwebapp [INFO] Creating Tomcat server configuration at C:\Users\albert\git\Startup\MavenParent\childwebapp\target\tomcat [INFO] create webapp with contextPath: /childwebapp [ERROR] fail to extract war file C:\Users\albert\git\Startup\MavenParent\parentwebapp\target\classes, reason:The source must not be a di rectory. org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory. at org.codehaus.plexus.archiver.AbstractUnArchiver.validate(AbstractUnArchiver.java:185) at org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:118) at org.apache.tomcat.maven.common.run.DefaultClassLoaderEntriesCalculator.calculateClassPathEntries(DefaultClassLoaderEntriesCalc ulator.java:149) at org.apache.tomcat.maven.plugin.tomcat7.run.RunMojo.createWebappLoader(RunMojo.java:254) at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.createContext(AbstractRunMojo.java:563) at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.startContainer(AbstractRunMojo.java:927) at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.execute(AbstractRunMojo.java:476) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) What can i do to resolve this situation ? Thank you, Albert -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat maven plugin + configuring virtual host for the embedded tomcat ?
Hi, I have been developing with tomcat7:run happily for some months now. But then i am currently expanding the development where different domains would provide different behaviour for the same webapp (imagine multitenancy and ACLs based on the domain or the server name) To make this work in the development mode, i would have to modify the hosts file, mapping several .com domains to localhost + add some Alias to the localhost's Host Currently i am using the standalone tomcat, doing : - go to the parent module, install all modules, which results in the newest WAR for the webapp - go to the webapp project and tomcat7:deploy to it .. Not as fast-development-mode as tomcat7:run (which doesnt include installing the modules + WAR building), but this will do :-) I may be too hopeful, but is this useful enough to be added as a new feature of tomcat maven plugin ? I imagine putting these aliases in the plugin's configuration in the pom.xml .. Thanks ! On Tue, Jul 31, 2012 at 12:54 AM, Olivier Lamy ol...@apache.org wrote: Hi, Not possible currently. What is your use case ? those goals are for dev purpose. 2012/7/27 Albert Kam moonblade.w...@gmail.com: I am currently using the snapshot version of tomcat maven plugin. And i am using tomcat7:run and tomcat7:run-war-only (for webapps with overlay) actively. And the time has come for me to try out virtual host .. and as i understand it, i have to configure the host, context, etc .. But i've been using the embedded tomcat 'supplied' by the tomcat maven plugin so far, so i wonder if there's a way to configure virtual host on the embedded tomcat ? Or should i just forget embedded tomcat and setup an independent tomcat i can configure freely ? Thank you, Albert -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat maven plugin deploy to multiple tomcat instances...
Finally getting back to this. This does not work. If I include the executions section, then the url reverts back to the default http://localhost:8080 suggesting that it is not even using the configurations embedded in the executions section. It only seems to work if I create separate profiles and run them one at a time. Any other thoughts? What are others doing to deploy to multiple servers? On Thu, Apr 19, 2012 at 4:38 PM, Olivier Lamy ol...@apache.org wrote: Do that work adding in the execution section: goals goaldeploy/goal /goals ? 2012/4/19 Jeff predato...@gmail.com: (Didn't see a specific mailing list for the tomcat-maven-plugin...) I finally got the 2.0-SNAPSHOT version of the tomcat6-maven-plugin working against a single server, but wondered how I could configure it to push to multiple tomcat instances based on the environment. For example, our staging environment for this application has 2 load balance servers. I tried using the executions/ structure like I do when running ws-import but it doesn't seem to support that. Is there another way to easily handle deployments to multiple servers with this plugin? If not, what would it take to support executions? Here is what I tried. profile iddeploy-stage/id activation activeByDefaultfalse/activeByDefault /activation build plugins plugin groupIdorg.apache.tomcat.maven/groupId artifactIdtomcat6-maven-plugin/artifactId version2.0-SNAPSHOT/version executions execution idstage01/id configuration modewar/mode urlhttp://10.12.4.1/manager/url failOnErrortrue/failOnError charsetUTF-8/charset uriEncodingUTF-8/uriEncoding protocolHTTP/1.1/protocol updatetrue/update serverstage01/server /configuration /execution execution idstage06/id configuration modewar/mode urlhttp://10.12.4.6/manager/url failOnErrortrue/failOnError charsetUTF-8/charset uriEncodingUTF-8/uriEncoding protocolHTTP/1.1/protocol updatetrue/update serverstage06/server /configuration /execution /executions /plugin -- Jeff Vincent predato...@gmail.com See my LinkedIn profile at: http://www.linkedin.com/in/rjeffreyvincent I ♥ DropBox http://db.tt/9O6LfBX !! -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy -- Jeff Vincent predato...@gmail.com See my LinkedIn profile at: http://www.linkedin.com/in/rjeffreyvincent I ♥ DropBox http://db.tt/9O6LfBX !!
Re: [tomcat maven plugin] configure vm options on embedded tomcat ?
2012/5/1 Albert Kam moonblade.w...@gmail.com: I have successfully launched an embedded tomcat as detailed in here : http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/tomcat7-maven-plugin/adjust-embedded-tomcat-version.html But i wonder whether it is possible to fork and set the extra vm arguments for the embedded tomcat launch ? We do not fork a new vm. Extra vm arguments must be set via MAVEN_OPTS. I need to do it to supply javaagent argument because i am currently using spring and aop. Regards, Albert Kam - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [tomcat maven plugin] configure vm options on embedded tomcat ?
Works great now, thank you ! On Tue, May 1, 2012 at 5:45 PM, Olivier Lamy ol...@apache.org wrote: 2012/5/1 Albert Kam moonblade.w...@gmail.com: I have successfully launched an embedded tomcat as detailed in here : http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/tomcat7-maven-plugin/adjust-embedded-tomcat-version.html But i wonder whether it is possible to fork and set the extra vm arguments for the embedded tomcat launch ? We do not fork a new vm. Extra vm arguments must be set via MAVEN_OPTS. I need to do it to supply javaagent argument because i am currently using spring and aop. Regards, Albert Kam - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat maven plugin deploy to multiple tomcat instances...
Do that work adding in the execution section: goals goaldeploy/goal /goals ? 2012/4/19 Jeff predato...@gmail.com: (Didn't see a specific mailing list for the tomcat-maven-plugin...) I finally got the 2.0-SNAPSHOT version of the tomcat6-maven-plugin working against a single server, but wondered how I could configure it to push to multiple tomcat instances based on the environment. For example, our staging environment for this application has 2 load balance servers. I tried using the executions/ structure like I do when running ws-import but it doesn't seem to support that. Is there another way to easily handle deployments to multiple servers with this plugin? If not, what would it take to support executions? Here is what I tried. profile iddeploy-stage/id activation activeByDefaultfalse/activeByDefault /activation build plugins plugin groupIdorg.apache.tomcat.maven/groupId artifactIdtomcat6-maven-plugin/artifactId version2.0-SNAPSHOT/version executions execution idstage01/id configuration modewar/mode urlhttp://10.12.4.1/manager/url failOnErrortrue/failOnError charsetUTF-8/charset uriEncodingUTF-8/uriEncoding protocolHTTP/1.1/protocol updatetrue/update serverstage01/server /configuration /execution execution idstage06/id configuration modewar/mode urlhttp://10.12.4.6/manager/url failOnErrortrue/failOnError charsetUTF-8/charset uriEncodingUTF-8/uriEncoding protocolHTTP/1.1/protocol updatetrue/update serverstage06/server /configuration /execution /executions /plugin -- Jeff Vincent predato...@gmail.com See my LinkedIn profile at: http://www.linkedin.com/in/rjeffreyvincent I ♥ DropBox http://db.tt/9O6LfBX !! -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy
Re: Tomcat Maven Plugin - Resource /WEB-INF/classes not found
Hello, It looks you have a jar providing javax.servlet.* classes which doesn't use provided scope. Can you check that ? 2012/3/21 janne mattila jannepostilis...@gmail.com: I used tomcat-maven-plugin 1.1 to deploy my webapp to an embedded tomcat. It works ok. Now when I try to update to org.apache.tomcat.maven/tomcat7-maven-plugin/2.0-beta-1, deploy fails with an error (included in the end). My configuration is such - parent/web-app builds a web-app.war - parent/acceptance-tests compiles some acceptance tests, uses tomcat-maven-plugin to deploy web-app.war and run tests against it - so, I do NOT use tomcat-maven-plugin from a module with war packaging acceptance-tests/pom.xml: dependency groupIdfoo/groupId artifactIdmy-webapp/artifactId version${project.parent.version}/version typewar/type scopetomcat/scope /dependency plugin groupIdorg.apache.tomcat.maven/groupId artifactIdtomcat7-maven-plugin/artifactId version2.0-beta-1/version configuration addContextWarDependenciestrue/addContextWarDependencies ignorePackagingtrue/ignorePackaging forktrue/fork path//path port8080/port httpsPort8443/httpsPort keystoreFile${project.build.directory}/tomcat.keystore/keystoreFile keystorePasstomcat/keystorePass /configuration executions execution idstart-tomcat/id phasetest/phase goals goalrun/goal /goals /execution execution idstop-tomcat/id phasepost-integration-test/phase goals goalshutdown/goal /goals /execution /executions /plugin This setup works with 1.1, when I try 2.0-beta-1 I get: INFO: Starting Servlet Engine: Apache Tomcat/7.0.25 21.3.2012 10:32:50 org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(D:\foobar\parent\acceptance-tests\target\tomcat\webapps\my-webapp\WEB-INF\lib\servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, s ection 9.7.2. Offending class: javax/servlet/Servlet.class 21.3.2012 10:32:50 org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment INFO: No global web.xml found 21.3.2012 10:32:50 org.apache.catalina.startup.ContextConfig webConfig SEVERE: Unable to determine URL for WEB-INF/classes javax.naming.NameNotFoundException: Resource /WEB-INF/classes not found at org.apache.naming.resources.BaseDirContext.listBindings(BaseDirContext.java:733) at org.apache.naming.resources.ProxyDirContext.listBindings(ProxyDirContext.java:546) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1197) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:825) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:300) 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:5161) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1568) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1558) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) 21.3.2012 10:33:05 org.apache.catalina.core.ContainerBase startInternal SEVERE: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/]] at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) at java.util.concurrent.FutureTask.get(FutureTask.java:83) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1130) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:782) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1568) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1558) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138)
Re: [Tomcat Maven plugin] Not pulling in Test dependencies when useTestClasspath is true
2012/3/4 Nathan Schile nathan.sch...@gmail.com: I have the plugin configured to pull in test classes and dependencies [1], however it doesn't seem to be pulling in my test dependencies. I am recieving a NoClassDefFoundError on the class from a test dependency, if I switch the dependency to a scope of compile, it works file. Any ideas? Looks to be an issues with artifacts scoped test. Can you record an entry here: https://issues.apache.org/jira/browse/MTOMCAT [1] http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/tomcat7-maven-plugin/run-mojo.html#useTestClasspath plugin groupIdorg.apache.tomcat.maven/groupId artifactIdtomcat7-maven-plugin/artifactId version2.0-SNAPSHOT/version configuration useTestClasspathtrue/useTestClasspath warSourceDirectory${basedir}/src/test/webapp/warSourceDirectory ignorePackagingtrue/ignorePackaging /configuration executions execution idtomcat-run/id goals goalrun/goal /goals phasepre-integration-test/phase configuration path//path forktrue/fork useTestClasspathtrue/useTestClasspath warSourceDirectory${basedir}/src/test/webapp/warSourceDirectory ignorePackagingtrue/ignorePackaging port${reserved.tomcat.port}/port /configuration /execution execution idtomcat-shutdown/id goals goalshutdown/goal /goals phasepost-integration-test/phase /execution /executions /plugin - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [Tomcat Maven plugin] Not pulling in Test dependencies when useTestClasspath is true
I have the plugin configured to pull in test classes and dependencies [1], however it doesn't seem to be pulling in my test dependencies. I am recieving a NoClassDefFoundError on the class from a test dependency, if I switch the dependency to a scope of compile, it works file. Any ideas? [1] http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/tomcat7-maven-plugin/run-mojo.html#useTestClasspath plugin groupIdorg.apache.tomcat.maven/groupId artifactIdtomcat7-maven-plugin/artifactId version2.0-SNAPSHOT/version configuration useTestClasspathtrue/useTestClasspath warSourceDirectory${basedir}/src/test/webapp/warSourceDirectory ignorePackagingtrue/ignorePackaging /configuration executions execution idtomcat-run/id goals goalrun/goal /goals phasepre-integration-test/phase configuration path//path forktrue/fork useTestClasspathtrue/useTestClasspath warSourceDirectory${basedir}/src/test/webapp/warSourceDirectory ignorePackagingtrue/ignorePackaging port${reserved.tomcat.port}/port /configuration /execution execution idtomcat-shutdown/id goals goalshutdown/goal /goals phasepost-integration-test/phase /execution /executions /plugin - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat maven plugin datasource
Here are the plugin details http://mojo.codehaus.org/tomcat-maven-plugin/deployment.html n828cl wrote: From: fachhoch [mailto:fachh...@gmail.com] Subject: Re: tomcat maven plugin datasource I did as per the plugin instructions , what am i missing ? Telling us what plugin you're referring to. Where did you get it? I don't recall seeing any such plugin as part of any Tomcat distribution, but maybe I missed it. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://old.nabble.com/tomcat-maven--plugin-datasource-tp28037478p28085745.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: tomcat maven plugin datasource
On 26/03/2010 02:01, fachhoch wrote: I am having trouble setting datasource here is my configration for datasource Context Resource name=jdbc/artmsDataSource auth=Container type=javax.sql.DataSource username=username password=password driverClassName=oracle.jdbc.driver.OracleDriver url=myurl/ /Context and here my pom configration Perhaps you meant to include the server.xml? Rather than a POM, which doesn't tell me anything about what Tomcat is actually using. p plugin groupIdorg.codehaus.mojo/groupId artifactIdtomcat-maven-plugin/artifactId version1.0-beta-1/version configuration path/artms/path contextFile${basedir}/context.xml/contextFile reloadautomatic/reload /configuration dependencies dependency groupIdcommons-dbcp/groupId artifactIdcommons-dbcp/artifactId version1.2.2/version scopecompile/scope /dependency dependency groupIdcom.oracle/groupId artifactIdojdbc/artifactId version14/version scopecompile/scope /dependency /dependencies /plugin am I missing anything ? my application fails starting, complaining cannot find datasource ,please tell me what am I doing wrong ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat maven plugin datasource
Is the 'initialize' phase of maven executed? Timo 2010/3/26 Pid p...@pidster.com: On 26/03/2010 02:01, fachhoch wrote: I am having trouble setting datasource here is my configration for datasource Context Resource name=jdbc/artmsDataSource auth=Container type=javax.sql.DataSource username=username password=password driverClassName=oracle.jdbc.driver.OracleDriver url=myurl/ /Context and here my pom configration Perhaps you meant to include the server.xml? Rather than a POM, which doesn't tell me anything about what Tomcat is actually using. p plugin groupIdorg.codehaus.mojo/groupId artifactIdtomcat-maven-plugin/artifactId version1.0-beta-1/version configuration path/artms/path contextFile${basedir}/context.xml/contextFile reloadautomatic/reload /configuration dependencies dependency groupIdcommons-dbcp/groupId artifactIdcommons-dbcp/artifactId version1.2.2/version scopecompile/scope /dependency dependency groupIdcom.oracle/groupId artifactIdojdbc/artifactId version14/version scopecompile/scope /dependency /dependencies /plugin am I missing anything ? my application fails starting, complaining cannot find datasource ,please tell me what am I doing wrong ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Glück Auf Timo - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat maven plugin datasource
the pom is sent is maven plugin for embedded tomcat. I run my application for testing using embedded tomcat.I am not able to configure datasource for this embedded maven tomcat plugin. Pid Ster wrote: On 26/03/2010 02:01, fachhoch wrote: I am having trouble setting datasource here is my configration for datasource Context Resource name=jdbc/artmsDataSource auth=Container type=javax.sql.DataSource username=username password=password driverClassName=oracle.jdbc.driver.OracleDriver url=myurl/ /Context and here my pom configration Perhaps you meant to include the server.xml? Rather than a POM, which doesn't tell me anything about what Tomcat is actually using. p plugin groupIdorg.codehaus.mojo/groupId artifactIdtomcat-maven-plugin/artifactId version1.0-beta-1/version configuration path/artms/path contextFile${basedir}/context.xml/contextFile reloadautomatic/reload /configuration dependencies dependency groupIdcommons-dbcp/groupId artifactIdcommons-dbcp/artifactId version1.2.2/version scopecompile/scope /dependency dependency groupIdcom.oracle/groupId artifactIdojdbc/artifactId version14/version scopecompile/scope /dependency /dependencies /plugin am I missing anything ? my application fails starting, complaining cannot find datasource ,please tell me what am I doing wrong ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://old.nabble.com/tomcat-maven--plugin-datasource-tp28037478p28042749.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: tomcat maven plugin datasource
On 26/03/2010 13:52, fachhoch wrote: the pom is sent is maven plugin for embedded tomcat. I run my application for testing using embedded tomcat.I am not able to configure datasource for this embedded maven tomcat plugin. If the plugin can't configure a datasource, then that's your problem, no? Somewhere, something has to create a datasource called jdbc/artmsDataSource. p Pid Ster wrote: On 26/03/2010 02:01, fachhoch wrote: I am having trouble setting datasource here is my configration for datasource Context Resource name=jdbc/artmsDataSource auth=Container type=javax.sql.DataSource username=username password=password driverClassName=oracle.jdbc.driver.OracleDriver url=myurl/ /Context and here my pom configration Perhaps you meant to include the server.xml? Rather than a POM, which doesn't tell me anything about what Tomcat is actually using. p plugin groupIdorg.codehaus.mojo/groupId artifactIdtomcat-maven-plugin/artifactId version1.0-beta-1/version configuration path/artms/path contextFile${basedir}/context.xml/contextFile reloadautomatic/reload /configuration dependencies dependency groupIdcommons-dbcp/groupId artifactIdcommons-dbcp/artifactId version1.2.2/version scopecompile/scope /dependency dependency groupIdcom.oracle/groupId artifactIdojdbc/artifactId version14/version scopecompile/scope /dependency /dependencies /plugin am I missing anything ? my application fails starting, complaining cannot find datasource ,please tell me what am I doing wrong ? - 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: tomcat maven plugin datasource
I am asking why plugin is not creating datasource ?, I did as per the plugin instructions , what am i missing ? Pid Ster wrote: On 26/03/2010 13:52, fachhoch wrote: the pom is sent is maven plugin for embedded tomcat. I run my application for testing using embedded tomcat.I am not able to configure datasource for this embedded maven tomcat plugin. If the plugin can't configure a datasource, then that's your problem, no? Somewhere, something has to create a datasource called jdbc/artmsDataSource. p Pid Ster wrote: On 26/03/2010 02:01, fachhoch wrote: I am having trouble setting datasource here is my configration for datasource Context Resource name=jdbc/artmsDataSource auth=Container type=javax.sql.DataSource username=username password=password driverClassName=oracle.jdbc.driver.OracleDriver url=myurl/ /Context and here my pom configration Perhaps you meant to include the server.xml? Rather than a POM, which doesn't tell me anything about what Tomcat is actually using. p plugin groupIdorg.codehaus.mojo/groupId artifactIdtomcat-maven-plugin/artifactId version1.0-beta-1/version configuration path/artms/path contextFile${basedir}/context.xml/contextFile reloadautomatic/reload /configuration dependencies dependency groupIdcommons-dbcp/groupId artifactIdcommons-dbcp/artifactId version1.2.2/version scopecompile/scope /dependency dependency groupIdcom.oracle/groupId artifactIdojdbc/artifactId version14/version scopecompile/scope /dependency /dependencies /plugin am I missing anything ? my application fails starting, complaining cannot find datasource ,please tell me what am I doing wrong ? - 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 -- View this message in context: http://old.nabble.com/tomcat-maven--plugin-datasource-tp28037478p28045557.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: tomcat maven plugin datasource
From: fachhoch [mailto:fachh...@gmail.com] Subject: Re: tomcat maven plugin datasource I did as per the plugin instructions , what am i missing ? Telling us what plugin you're referring to. Where did you get it? I don't recall seeing any such plugin as part of any Tomcat distribution, but maybe I missed it. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org