maven-tomcat-plugin

ClassNotFoundException for java.util.logging handler in Maven tomcat7:run

两盒软妹~` 提交于 2020-07-10 11:48:09
问题 I have followed the BIRT FAQ in regard to getting BIRT's logging (which seems to be based on java.util.logging ) redirected to log4j, which is my project's standard. I've subsequently made a BIRT logger like so: public class BirtLogger extends Handler { private final Logger log = Logger.getLogger(BirtLogger.class); @Override public void publish(LogRecord record) { Level level = record.getLevel(); String message = record.getMessage(); if (Level.SEVERE.equals(level)) { log.fatal(message); }

ClassNotFoundException for java.util.logging handler in Maven tomcat7:run

南楼画角 提交于 2020-07-10 11:47:59
问题 I have followed the BIRT FAQ in regard to getting BIRT's logging (which seems to be based on java.util.logging ) redirected to log4j, which is my project's standard. I've subsequently made a BIRT logger like so: public class BirtLogger extends Handler { private final Logger log = Logger.getLogger(BirtLogger.class); @Override public void publish(LogRecord record) { Level level = record.getLevel(); String message = record.getMessage(); if (Level.SEVERE.equals(level)) { log.fatal(message); }

Socket write error when I try to deploy maven project to tomcat

旧巷老猫 提交于 2020-01-05 07:34:15
问题 I have a maven project which includes 4 modules: news-management, news-common, news-admin and news-client. News-management module is a parent module. I enter mvn tomcat7.deploy -Dmaven.test.skip=true and result is: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] news-management [INFO] news-common [INFO] news-admin [INFO] news-client [INFO] [INFO] ------------------------------------------

Eclipse maven run configuration using 'run' goal from tomcat7 maven plugin doesn't respect default context path

白昼怎懂夜的黑 提交于 2020-01-04 04:03:55
问题 I'm working on a web service locally, built using maven and deploying to tomcat. I'm using the maven plugin to run locally, using mvn tomcat:run as my run configuration. Right now, my service is being deployed using the default project name as a context path: http://localhost:8080/myArtifactId/servletPath I would instead like to deploy to remove the context path, and deploy to this url through configuring the tomcat maven plugin : http://localhost:8080/servletPath Per this documentation: http

Eclipse maven run configuration using 'run' goal from tomcat7 maven plugin doesn't respect default context path

老子叫甜甜 提交于 2020-01-04 04:03:14
问题 I'm working on a web service locally, built using maven and deploying to tomcat. I'm using the maven plugin to run locally, using mvn tomcat:run as my run configuration. Right now, my service is being deployed using the default project name as a context path: http://localhost:8080/myArtifactId/servletPath I would instead like to deploy to remove the context path, and deploy to this url through configuring the tomcat maven plugin : http://localhost:8080/servletPath Per this documentation: http

ClassNotFoundException while loading class in Tomcat using custom ClassLoader

邮差的信 提交于 2019-12-25 16:26:33
问题 I'm using Maven 3.2.3 with an embedded Tomcat. Here is my configuration. server.xml - I've defined the Loader Component within the server.xml's Context Element. The location of the file is outside the classpath under /conf/tomcat .... <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false"> <Context docBase="../../myapp/" path="/myapp"> <Loader loaderClass="com.sample.MyClassLoader" delegate="false"

org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher cannot be cast to javax.servlet.Servlet

白昼怎懂夜的黑 提交于 2019-12-24 10:47:27
问题 I am using rest web service and building the project with maven. The project is building successfully, but when i hit url to test rest web services I am getting following exception. java.lang.ClassCastException: org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher cannot be cast to javax.servlet.Servlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1116) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809) at org.apache

How to stop tomcat 7 with maven in eclipse

末鹿安然 提交于 2019-12-24 00:49:26
问题 When I run my maven web project in eclipse. I go to pom.xml , right click on the file and 1. Maven Clean 2. Build Resources 3. Maven Build .. Then I type tomcat7:run (for tomcat 7) for tomcat 6 , tomcat:run in the tomcat goals field in eclipse . It just starts. But I want to know how 1. To stop it 2. Rebuild the source and redeploy in elipse or any other quick easy step. Isn't there any way to do all stuff to start the tomcat instead of repeating fore said steps(maven clean.. building

How do I configure an additional context path for Maven-Tomcat plugin?

痞子三分冷 提交于 2019-12-19 03:16:34
问题 I'm using Maven 3.0.3 with the Tomcat plugin. Using Maven and Tomcat, I would like to deploy an embedded instance of the site. My question is how do I configure an additional context path in my embedded Tomcat server? Below is my Tomcat configuration, but either my "" specification is invalid or the contents of that file (below) are invalid … <Context path="/all-new-jx-web" docBase="/Users/davea/Documents/workspace/NissanUSA2/Technology/nna/mycousa/jx/target/web"> because when I invoke mvn

How do I configure an additional context path for Maven-Tomcat plugin?

為{幸葍}努か 提交于 2019-12-19 03:16:06
问题 I'm using Maven 3.0.3 with the Tomcat plugin. Using Maven and Tomcat, I would like to deploy an embedded instance of the site. My question is how do I configure an additional context path in my embedded Tomcat server? Below is my Tomcat configuration, but either my "" specification is invalid or the contents of that file (below) are invalid … <Context path="/all-new-jx-web" docBase="/Users/davea/Documents/workspace/NissanUSA2/Technology/nna/mycousa/jx/target/web"> because when I invoke mvn